Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

shaping-rate (Applying to an Interface)

Syntax

shaping-rate rate;

Hierarchy Level

[edit class-of-service interfaces interface-name],[edit class-of-service interfaces interface-name unit logical-unit-number]

Release Information

Statement introduced before Junos OS Release 7.4.

[edit class-of-service interfaces interface-name] hierarchy level added in Junos OS Release 7.5.

Statement introduced in Junos OS Release 13.2 on PTX Series Packet Transport Routers.

Description

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 and T4000 routers with Type 5 FPCs only, configure traffic shaping based on the rate-limited bandwidth of the total interface bandwidth.

Logical and physical interface traffic shaping rates are mutually exclusive. This means you can include the shaping-rate statement at the [edit class-of-service interfaces interface-name] hierarchy level or the [edit class-of-service interfaces interface-name unit logical-unit-number] hierarchy level, but not both.

Note: For MX Series routers and for EX Series switches, 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. If the value is less than the sum of the logical interface guaranteed rates, the user is not allowed to apply the shaping rate to a physical interface.

For T4000 routers with Type 5 FPCs, the shaping rate value for the physical interface must be a minimum of 292 Kbps. The maximum value of shaping-rate is limited by the maximum transmission rate of the interface.

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.15 and FRF.16 bundles on link services interfaces, only shaping rates based on percentage are supported.

Default

If you do not include this statement at the [edit class-of-service interfaces 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-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.

Options

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).

Range: For logical interfaces, 1000 through 32,000,000,000 bps. For physical interfaces, 1000 through 160,000,000,000 bps.

Note: For all MX Series and EX series interfaces, the rate can be from 65,535 through 160,000,000,000 bps.

Note: For T4000 physical interfaces, the rate can be from 1000 through 160,000,000,000 bps.

Required Privilege Level

interface—To view this statement in the configuration.

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

Published: 2013-08-28