See the following sections:
- shaping-rate (percent percentage | rate);
- [edit class-of-service adaptive-shapers adaptive-shaper-name trigger type]
Statement introduced before JUNOS Release 7.4.
For J-series Services Routers only, define the list of trigger types and associated rates.
percent percentage—Shaping rate as a percentage of the available interface bandwidth.
rate—Peak 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).
See Configuring an Adaptive Shaper for Frame Relay.
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
- shaping-rate rate;
- [edit class-of-service interfaces interface-name],
- [edit class-of-service interfaces interface-name unit logical-unit-number]
Statement introduced before JUNOS Release 7.4.
[edit class-of-service interfaces interface interface-name] hierarchy level added in JUNOS Release 7.5.
For logical interfaces on which you configure packet scheduling, configure traffic shaping by specifying the amount of bandwidth to be allocated to the logical interface.
For physical interfaces on IQ PICs, configure traffic shaping based on the rate-limited bandwidth of the total interface bandwidth.
![]() |
Note: The shaping-rate statement cannot be applied to a physical interface on J-series routing platforms. |
Logical and physical interface traffic shaping is mutually exclusive. This means you can include the shaping-rate statement at the [edit class-of-service interfaces interface interface-name] hierarchy level or the [edit class-of-service interfaces interface interface-name unit logical-unit-number] hierarchy level, but not both.
![]() |
Note: For MX-series Ethernet Services routers, the shaping rate value for the physical interface at the [edit class-of-service interfaces interface-name] hierarchy level must be a minimum of 160 kbps. |
Alternatively, you can configure a shaping rate for a logical interface and oversubscribe the physical interface by including the shaping-rate statement at the [edit class-of-service traffic-control-profiles] hierarchy level. With this configuration approach, you can independently control the delay-buffer rate, as described in Oversubscribing Interface Bandwidth.
For FRF.16 bundles on link services interfaces, only shaping rates based on percentage are supported.
If you do not include this statement at the [edit class-of-service interfaces interface interface-name unit logical-unit-number] hierarchy level, the default logical interface bandwidth is the average of unused bandwidth for the number of logical interfaces that require default bandwidth treatment. If you do not include this statement at the [edit class-of-service interfaces interface interface-name] hierarchy level, the default physical interface bandwidth is the average of unused bandwidth for the number of physical interfaces that require default bandwidth treatment.
rate—Peak 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).
For physical interfaces, 1000 through 160,000,000,000 bps.
See Associating the Scheduler Map.
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
- shaping-rate (percent percentage | rate);
- [edit class-of-service schedulers scheduler-name]
Statement introduced before JUNOS Release 7.4.
For J-series Services Routers only, define a limit on excess bandwidth usage.
The transmit-rate statement at the [edit class-of-service schedulers scheduler-name hierarchy level configures the minimum bandwidth allocated to a queue. The transmission bandwidth can be configured as an exact value or allowed to exceed the configured rate if additional bandwidth is available from other queues. For J-series Services Routers only, you limit the excess bandwidth usage with this statement.
You should configure the shaping rate as an absolute maximum usage and not the additional usage beyond the configured transmit rate.
If you do not include this statement, the default shaping rate is 100 percent, which is the same as no shaping at all.
percent percentage—Shaping rate as a percentage of the available interface bandwidth.
rate—Peak 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).
See Associating the Scheduler Map.
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
- shaping-rate (percent percentage | rate);
- [edit class-of-service traffic-control-profiles profile-name]
Statement introduced in JUNOS Release 7.6.
For Gigabit Ethernet IQ, Channelized IQ PICs, and AS PIC FRF.16 LSQ interfaces only, configure a shaping rate for a logical interface. The sum of the shaping rates for all logical interfaces on the physical interface can exceed the physical interface bandwidth. This practice is known as oversubscription of the peak information rate (PIR).
The default behavior depends on various factors. For more information, see Table 37.
percent percentage—For LSQ interfaces, shaping rate as a percentage of the available interface bandwidth.
rate—For IQ and IQ2 interfaces, peak 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).
See Oversubscribing Interface Bandwidth and Configuring a Shared Scheduler and Shaper.
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
output-traffic-control-profile
- shaping-rate (percent percentage | rate);
- [edit class-of-service virtual-channel-groups group-name virtual-channel-name]
Statement introduced before JUNOS Release 7.4.
For J-series Services Routers only, define the shaping rates to be associated with the virtual channel.
percent percentage—Shaping rate as a percentage of the available interface bandwidth.
rate—Peak 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).
See Configuring CoS Virtual Channels.
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
default, scheduler-map (Virtual Channels), virtual-channel-group, virtual-channel-groups, virtual-channels