Configuring the Shaping Rate for Physical Interfaces
To configure the shaping rate on the physical interface,
either include the shaping-rate
statement at the [edit
class-of-service interfaces interface-name]
hierarchy level or include the output-traffic-control-profile
statement at the [edit class-of-service interfaces interface-name]
hierarchy level.
You can specify a peak bandwidth rate in bps, 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, the range is from 1000 through 6,400,000,000,000
bps.
For physical interfaces on 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.
The following are two example configurations for applying a shaping rate of 5 Gbps on a T4000 12x10 Gbps physical interface (xe-4/0/0):
Applying a shaping rate at the [edit class-of-service interfaces interface-name
] hierarchy:
[edit class-of-service] interfaces { xe-4/0/0 { shaping-rate 5g; } }
Applying a shaping rate using traffic-control-profiles:
[edit class-of-service] traffic-control-profiles { output { shaping-rate 5g; } } interfaces { xe-4/0/0 { output-traffic-control-profile output; } }
To view the results of your configuration, issue the following show
commands:
show class-of-service interface interface-name
show interfaces interface-name extensive