Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

shaping-rate (CoS Interfaces)

Syntax

Hierarchy Level

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.

Logical and physical interface traffic shaping can be configured together. This means you can include the shaping-rate statement at the [edit class-of-service interfaces interface interface-name] hierarchy level and the [edit class-of-service interfaces interface interface-name unit logical-unit-number] hierarchy level. If you configure traffic shaping at both the logical and physical interface levels, the logical interface shaping credit is checked and updated before the physical interface shaping credit.

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.

On the physical interface, you can set the Layer 2 overhead adjustment to the shaping rate calculation at egress.

Default

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.

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: 1000 through 6,400,000,000,000 bps

overhead

Layer 2 shaping overhead adjustment to be applied at egress (bytes).

  • Range: -62 through 192

Required Privilege Level

interface—To view this statement in the configuration.

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

Release Information

Statement introduced in Junos OS Release 9.2.

overhead option introduced in Junos OS Release 18.1.

Platform-Specific Behavior

Use Feature Explorer to confirm platform and release support for specific features.

Use the following table to review platform-specific behavior for your platforms:

Platform

Difference

MX Series

Only MX Series routers support the overhead bytes option.