< Home

qos queue wrr

Function

The qos queue wrr command sets the WRR weight of queues that participate in WRR scheduling.

The undo qos queue wrr command restores the default WRR weight of queues that participate in WRR scheduling.

By default, the WRR weight of queues that participate in WRR scheduling is 1.

Format

qos queue queue-index wrr weight weight

undo qos queue queue-index wrr

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 this command.

Only the support this command using a schedule template.

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.

Parameters

Parameter

Description

Value

queue-index

Specifies the index of a queue.

The value is an integer that ranges from 0 to 7.

weight weight

Specifies a WRR weight.

The value is an integer. The value range is as follows:
  • S5720-EI: 0 to 63
  • Other models: 0 to 127

Views

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

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Weighted Round Robin (WRR) ensures that packets in all the queues are scheduled in turn.

When using WRR scheduling, set the weight for each queue. The switch schedules queues in turn according to the weights.

Precautions

When WRR scheduling is applied and the weight of a queue is set to 0, the queue uses PQ scheduling and the scheduling mode is PQ+WRR.

For 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:

  • When configuring the PQ+WRR scheduling mode, ensure that queues with weight 0 (queues using PQ scheduling) are consecutively configured, without being interrupted by the configuration of the queues using WRR scheduling.

  • If PQ+WRR scheduling is used and the numbers of the queues using PQ scheduling are consecutive (for example, queue 0, queues 0 and 1, and queues 0 to 2), the device schedules packets in queues using PQ scheduling after scheduling for the packets in queues using WRR scheduling is completed.

On the S5720-EI, if the queue scheduling mode is changed or the weight is changed during queue scheduling, packet loss occurs within 250 ms.

On the S6720-EI and S6720S-EI, if the queue scheduling mode is changed or the weight is changed during queue scheduling, packet loss occurs within 20 ms.

To set the same WRR weight on multiple interfaces, perform the configuration on a port group to reduce the workload.

Example

# Set the WRR weight of queue 4 on GE0/0/1 of the S5720-LI, S5735-L, S5735S-L, S5735S-L-M to 9.
<HUAWEI> system-view
[HUAWEI] qos schedule-profile test
[HUAWEI-qos-schedule-profile-test] qos wrr
[HUAWEI-qos-schedule-profile-test] qos queue 4 wrr weight 9
[HUAWEI-qos-schedule-profile-test] quit
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] qos schedule-profile test
[HUAWEI-GigabitEthernet0/0/1] quit
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >