< Home

qos { pq | wrr | drr }

Function

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.

Format

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.

Parameters

Parameter

Description

Value

pq

Indicates the PQ scheduling mode.

-

wrr

Indicates the WRR scheduling mode.

-

drr

Indicates the WDRR scheduling mode.

-

Views

GE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view, Scheduling profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When congestion occurs on a network, configure a combination of queue scheduling modes to adjust the delay and jitter of various service packets as follows:
  • Packets of delay-sensitive services, such as the voice and video services, are processed preferentially.
  • Among the delay-insensitive services, such as the email service, the packets with the same priority are processed equally and the packets with different priorities are processed based on their weights.

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.

  • On the S5730-SI, S5730S-EI, S6720-SI, and S6720S-SI, the WRR scheduling changed from WDRR scheduling takes effect only after the switch runs for a period with traffic transmitted.
  • For GE interfaces (including XGE interfaces configured with GE optical modules) on the S5731-H, S5731-S, S5731S-H, and S5731S-S, if severe congestions occur, queue scheduling is inaccurate on these interfaces, and traffic forwarding may even be interrupted in some low-priority queues. To prevent this, you are advised to configure congestion avoidance.

Example

# Set the scheduling mode of queues on GE0/0/1 of the S5720-HI to PQ.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >