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 LAN-side interfaces (except Layer 2 VE interfaces) use WRR, and all the queues on WAN-side interfaces and Layer 2 VE 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.
- (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.
- Run quit
Exit from the queue profile view.
- Run interface interface-type interface-number[.subinterface-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.