Configuring Queue-based Congestion Management
Context
Procedure
- Run system-view
The system view is displayed.
- Run qos queue-profile queue-profile-name
A queue profile is created and the queue profile view is displayed.
- Run the following
commands as required.
On a WAN interface, run schedule { pq start-queue-index [ to end-queue-index ] | wfq start-queue-index [ to end-queue-index ] }*
A scheduling mode is configured for each queue on the WAN interface.
On a layer 2 VE interface, run schedule { pq start-queue-index [ to end-queue-index ] | wfq start-queue-index [ to end-queue-index ] }*
A scheduling mode is configured for each queue on the layer 2 VE interface.
On a LAN interface, run schedule { pq start-queue-index [ to end-queue-index ] | drr start-queue-index [ to end-queue-index ] | wrr start-queue-index [ to end-queue-index ] }*
A scheduling mode is configured for each queue on the LAN interface.
By default, all the queues on the LAN side use WRR; Ethernet WAN interfaces do not use queue scheduling, and other WAN interfaces use WFQ.
- (Optional) Run queue { start-queue-index [ to end-queue-index ] } &<1-10> length { bytes bytes-value | packets packets-value }*
The length of each queue is set on the interface.
- A queue profile that defines the queue length using the queue length command cannot be applied to Layer 2 FE interfaces and Layer 2 GE interfaces.
A queue profile that defines the queue length using the queue length command cannot be applied to an interface of the 8ES2G or 8ES2GS card.
When a queue profile is applied to a LAN interface, the queue length can be set to an integer in the range of 1 to 25.
- (Optional) Run queue { start-queue-index [ to end-queue-index ] } &<1-10> weight weight-value
The weight of each queue is set on the interface.
By default, the weight of a queue is 10.
A queue profile that defines the queue weight using the queue weight command cannot be applied to Layer 2 FE interfaces.
A queue profile that defines the queue weight using the queue weight command cannot be applied to an interface of the 8ES2G or 8ES2GS card.
- Run quit
Exit from the queue profile view.
- Run interface interface-type interface-number
The interface view or sub-interface view is displayed.
- Run qos queue-profile queue-profile-name
The queue profile is applied to the interface or sub-interface.