Configuring SP+WFQ queuing
Configuration procedure
To configure SP+WFQ queuing:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter interface view. | interface interface-type interface-number | N/A |
3. Enable byte-count or packet-count WFQ queuing. | qos wfq { byte-count | weight } | By default, an interface uses byte-count WRR queuing. |
4. Assign a queue to the SP group. | qos wfq queue-id group sp | By default, all queues on a WFQ-enabled interface are in WFQ group 1. |
5. Assign a queue to the WFQ group, and configure a scheduling weight for the queue. | qos wfq queue-id group 1 { byte-count | weight } schedule-value | By default, all queues on a WFQ-enabled interface are in WFQ group 1 and have a scheduling value of 1. Select byte-count or weight according to the WFQ type (byte-count or packet-count) you have enabled. |
6. (Optional.) Set the minimum guaranteed bandwidth for a queue. | qos bandwidth queue queue-id min bandwidth-value | The default setting is 64 kbps. |
Configuration example
Network requirements
Configure SP+WFQ queuing on , and use packet-count WFQ.
Assign queues 4 through 7 to the SP group.
Assign queues 0 through 3 to WFQ group 1, with their weights as 1, 2, 1, and 3, respectively.
Set the minimum guaranteed bandwidth to 128 Mbps for each of the four WFQ queues.
Configuration procedure
# Enter system view.
<Sysname> system-view
# Configure SP+WFQ queuing on .
[Sysname] interface [Sysname-] qos wfq weight [Sysname-] qos wfq 4 group sp [Sysname-] qos wfq 5 group sp [Sysname-] qos wfq 6 group sp [Sysname-] qos wfq 7 group sp [Sysname-] qos wfq 0 group 1 weight 1 [Sysname-] qos bandwidth queue 0 min 128000 [Sysname-] qos wfq 1 group 1 weight 2 [Sysname-] qos bandwidth queue 1 min 128000 [Sysname-] qos wfq 2 group 1 weight 1 [Sysname-] qos bandwidth queue 2 min 128000 [Sysname-] qos wfq 3 group 1 weight 3 [Sysname-] qos bandwidth queue 3 min 128000