qos wrr { byte-count | weight }
Use qos wrr { byte-count | weight } to configure the WRR queuing parameters for a queue on an interface.
Use undo qos wrr to restore the default WRR queuing parameters of a queue on an interface.
Syntax
qos wrr queue-id group 1 { byte-count | weight } schedule-value
undo qos wrr queue-id
Default
An interface uses the byte-count WRR queuing algorithm, and queues 0 through 7 are in WRR group, with their weights of 1, 2, 3, 4, 5, 9, 13, and 15, respectively.
Views
Layer 2 Ethernet interface view
Predefined user roles
network-admin
Parameters
queue-id: Specifies a queue by its ID.
group 1: Specifies WRR group 1. Only one WRR group is supported.
byte-count: Allocates bandwidth to queues in terms of bytes.
weight: Allocates bandwidth to queues in terms of packets.
schedule-value: Specifies a scheduling weight, in the range of 1 to 15.
Usage guidelines
You must use the qos wrr command to enable WRR queuing before you can configure WRR queuing parameters for a queue on an interface.
The queue-id argument can be either a number or a keyword. Table 33 shows the number-keyword map.
Table 33: The number-keyword map for the queue-id argument
Number | Keyword |
---|---|
0 | be |
1 | af1 |
2 | af2 |
3 | af3 |
4 | af4 |
5 | ef |
6 | cs6 |
7 | cs7 |
Examples
# Enable byte-count WRR queuing on GigabitEthernet 1/0/1, and assign queues 0 and 1 (with the scheduling weights 10 and 5, respectively) to WRR group 1.
<Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] qos wrr byte-count [Sysname-GigabitEthernet1/0/1] qos wrr 0 group 1 byte-count 10 [Sysname-GigabitEthernet1/0/1] qos wrr 1 group 1 byte-count 5
Related commands
display qos queue wrr interface
qos wrr