Configuring Interface-based Traffic Shaping
Context
To limit the rate of outgoing traffic on an interface, configure interface-based traffic shaping. When the packet rate exceeds the traffic shaping rate, excess packets enter the buffer queue. When there are sufficient tokens in the token bucket, the device forwards the buffered packets at an even rate. When the buffer queue is full, the device discards the buffered packets.
Procedure
- Run system-view
The system view is displayed.
- (Optional) Run qos overhead layer { link | physics }
A mode for calculating the packet length during traffic policing or traffic shaping is configured.
By default, physical-layer and link-layer compensation information is included in packet lengths during traffic policing or traffic shaping.
- Run interface interface-type interface-number [ .subinterface-number ]
The interface or sub-interface view is displayed.
- Run qos gts cir cir-value [ cbs cbs-value ]
Traffic shaping is configured.
By default, traffic shaping is not performed on an interface.
- Layer 2 interfaces on AR100 series, AR120 series, AR150 series, AR160 series, AR200 series, AR1200 series do not support the qos gts command.
- The 9ES2, 4GE-2S, 4ES2G-S, and 4ES2GP-S cards do not support the qos gts command.