The qos { pq | wrr | drr } command configures a scheduling mode for queues on an interface.
The undo qos { pq | wrr | drr } command restores the default scheduling mode of queues on an interface.
By default, the scheduling mode of queues on an interface of the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S is WDRR, and the scheduling mode of queues on an interface of other models is WRR.
qos { pq | wrr | drr }
undo qos { pq | wrr | drr }
Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735S-S, S5735-S-I, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this command in interface mode.
Only the S2720-EI, S5720I-SI, S5720-LI, S5720S-LI, S5720S-SI, S5720-SI, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI support this command using a schedule template.
The S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S do not support wrr.
Parameter |
Description |
Value |
---|---|---|
pq |
Indicates the PQ scheduling mode. |
- |
wrr |
Indicates the WRR scheduling mode. |
- |
drr |
Indicates the WDRR scheduling mode. |
- |
GE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view, Scheduling profile view
Usage Scenario
The switch supports PQ+WRR and PQ+WDRR. When a combination of queue scheduling modes is used, the switch first schedules the packets in queues using PQ scheduling. When all packets in the queues using PQ scheduling are sent out, the switch schedules the packets in queues using WRR or WDRR scheduling. Packets from the queues using PQ scheduling are scheduled based on packet priorities.
Precautions
Before configuring a queue scheduling mode, map packet priorities to PHBs and colors or re-mark local priorities of packets. The packets of different priorities enter different queues.
To set the same queue scheduling mode on multiple interfaces, perform the configuration on a port group to reduce the workload.
When the scheduling mode of queues on an interface is set to PQ+WRR or PQ+WDRR, a queue can use only one scheduling mode. If you set multiple scheduling modes for a queue, only the latest configuration takes effect.
If the queue scheduling mode is set to WDRR or WRR on an interface on the S2720-EI, S5720I-SI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S5720S-SI, S5720-SI, S5735-S, S5735-S-I, and S5735S-S, other interfaces on the switch use the same queue scheduling mode as this interface.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] qos pq
# Set the scheduling mode of queues on GE0/0/1 of the S5720-LI, S5735-L, S5735S-L, S5735S-L-M to WDRR.
<HUAWEI> system-view [HUAWEI] qos schedule-profile test [HUAWEI-qos-schedule-profile-test] qos drr [HUAWEI-qos-schedule-profile-test] quit [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] qos schedule-profile test