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 device do not support the qos queue-profile (interface view) command.
- The 8ES2G and 8ES2GS 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.
Layer 2 FE interfaces and Layer 2 GE interfaces on the device do not support the queue length command.
Interfaces on the 8ES2G and 8ES2GScards 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.