Configuring Queue-based Traffic Shaping
Context
To shape packets in each queue on an interface, configure a queue profile and apply it to the interface. The packets received on an interface enter different queues based on priority mapping. The device provides differentiated services by setting different traffic shaping parameters for queues with different priorities.
- Layer 2 interfaces on the AR100&AR120serise, AR161, AR161EW, AR161EW-M1, AR161G-L, AR161G-Lc, AR161G-U, AR161W, AR169, AR169CVW, AR169CVW-4B4S, AR169JFVW-4B4S, AR169JFVW-2S, AR169EGW-L, AR169EW, AR169G-L, AR169-P-M9, AR169RW-P-M9, AR169W-P-M9, AR1220C, AR1220F, AR1220E, AR1220EV, AR1220EVW and AR1220-8GE do not support the qos queue-profile (interface view) command.
- The 9ES2, 4GE-2S, 4ES2G-S, and 4ES2GP-S cards do not support the qos queue-profile (interface view) command.
Procedure
- Run system-view
The system view is displayed.
- (Optional) Run qos overhead layer { link | physics }
A mode is specified for calculating packet lengths during traffic policing or traffic shaping.
By default, the system counts the physical-layer and link-layer compensation information in packet lengths during traffic policing or traffic shaping.
- Run qos queue-profile queue-profile-name
A queue profile is created and its view is displayed.
- Run queue { start-queue-index [ to end-queue-index ] } &<1-10> length { bytes bytes-value | packets packets-value }*
The length of a queue is set.
Interfaces on the 4GE-2S, 4ES2G-S, 4ES2GP-S and 9ES2 cards do not support the queue length command.
Layer 2 FE interfaces on the AR150&AR200 series do not support the queue length command.
Layer 2 GE interfaces on the AR100&AR120&AR160 series do not support the queue length command.
FE interfaces on the SRU of the AR1200 series do not support the queue length command.
- Run queue { start-queue-index [ to end-queue-index ] } &<1-10> gts cir cir-value [ cbs cbs-value ]
Queue-based traffic shaping is configured.
By default, queue-based traffic shaping is not performed.
- Run quit
Exit from the queue profile view.
- Run interface interface-type interface-number[subinterface-number]
The interface or sub-interface view is displayed.
- Run qos queue-profile queue-profile-name
The queue profile is applied to the interface or sub-interface.