Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    shaping-rate

    Syntax

    shaping-rate (rate | percent percentage);

    Hierarchy Level

    [edit class-of-service schedulers scheduler-name],[edit class-of-service traffic-control-profiles profile-name]

    Release Information

    Statement introduced in Junos OS Release 11.1 for the QFX Series.

    Description

    Configure the shaping rate. The shaping rate throttles the rate of packet transmission by setting a maximum bandwidth (rate in bits per second) or a maximum percentage of bandwidth for a queue or a forwarding class set. You specify the maximum bandwidth for a queue by using a scheduler map to associate a forwarding class (queue) with a scheduler that has a configured shaping rate. You specify the maximum bandwidth for a forwarding class set by setting the shaping rate for a traffic control profile, and then applying the traffic control profile and a forwarding class set to an interface.

    We recommend that you configure the shaping rate as an absolute maximum usage and not as additional usage beyond the configured transmit rate (the minimum guaranteed bandwidth for a queue) or the configured guaranteed rate (the minimum guaranteed bandwidth for a forwarding class set).

    Note: When you set the maximum bandwidth (shaping-rate value) for a queue or for a priority group at 100 Kbps or less, the traffic shaping behavior is accurate only within +/– 20 percent of the configured shaping-rate value.

    Default

    If you do not configure a shaping rate, the default shaping rate is 100 percent (all of the available bandwidth), which is the equivalent of no rate shaping.

    Options

    percent percentage—Shaping rate as a percentage of the available interface bandwidth.

    Range: 1 through 100 percent

    rate—Peak (maximum) rate, in bits per second (bps). You can specify a value in bits per second either as a complete decimal number or as a decimal number followed by the abbreviation k (1000), m (1,000,000), or g (1,000,000,000).

    Range: 1000 through 10,000,000,000 bps

    Required Privilege Level

    interfaces—To view this statement in the configuration.
    interface-control—To add this statement to the configuration.

    Published: 2013-01-16