qos wfq { byte-count | weight }
Use qos wfq { byte-count | weight } to assign a queue to a WFQ group with a certain scheduling weight.
Use undo qos wfq to restore the default.
Syntax
qos wfq queue-id group 1 { byte-count | weight } schedule-value
undo qos wfq queue-id
Default
When WFQ queuing is used on an interface, all the queues are in WFQ group and have a weight of 1.
Views
Layer 2 Ethernet interface view
Predefined user roles
network-admin
Parameters
queue-id: Specifies a queue by its ID. The value is an integer in the range of 0 to 7 or a keyword listed in Table 33.
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 for the specified queue, in the range of 1 to 15.
Usage guidelines
You must use the qos wfq command to enable WFQ before you configure this command.
Examples
# Enable byte-count WFQ queuing on GigabitEthernet 1/0/1, and assign queues 0 and 1 (with the scheduling weights 10 and 5, respectively) to WFQ group 1.
<Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] qos wfq byte-count [Sysname-GigabitEthernet1/0/1] qos wfq 0 group 1 byte-count 10 [Sysname-GigabitEthernet1/0/1] qos wfq 1 group 1 byte-count 5
Related commands
display qos queue wfq interface
qos bandwidth queue
qos wfq