46
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enter interface view.
interface
interface-type
interface-number
N/A
3. Enable byte-count or
packet-based WRR
queuing.
qos wrr
{
byte-count
|
weight
}
By default, byte-count WRR queuing is
used.
4. Assign a queue to a
WRR group, and
configure scheduling
parameters for the
queue.
qos wrr
queue-id
group
1
{
byte-count
|
weight
}
schedule-value
Select
weight
or
byte-count
according to
the type (byte-count or packet-based) of
WRR you have enabled.
By default, all queues are in group 1, and the
weights of queues 0 through 7 are 1, 2, 3, 4,
5, 9, 13, and 15, respectively.
Configuration example
1. Network requirements
Enable packet-based WRR on port GigabitEthernet 1/0/1, and assign queues 0 through 7 to the
WRR group, with their weights being 1, 2, 4, 6, 1, 2, 4, and 6, respectively.
2. Configuration procedure
# Enter system view.
<Sysname> system-view
# Configure WRR queuing on GigabitEthernet 1/0/1.
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/0/1] qos wrr weight
[Sysname-GigabitEthernet1/0/1] qos wrr 0 group 1 weight 1
[Sysname-GigabitEthernet1/0/1] qos wrr 1 group 1 weight 2
[Sysname-GigabitEthernet1/0/1] qos wrr 2 group 1 weight 4
[Sysname-GigabitEthernet1/0/1] qos wrr 3 group 1 weight 6
[Sysname-GigabitEthernet1/0/1] qos wrr 4 group 1 weight 1
[Sysname-GigabitEthernet1/0/1] qos wrr 5 group 1 weight 2
[Sysname-GigabitEthernet1/0/1] qos wrr 6 group 1 weight 4
[Sysname-GigabitEthernet1/0/1] qos wrr 7 group 1 weight 6
Configuring WFQ queuing
Configuration procedure
To configure WFQ queuing:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enter interface view.
interface
interface-type
interface-number
N/A
3. Enable byte-count or
packet-based WFQ queuing.
qos wfq
{
byte-count
|
weight
}
The default queuing algorithm on
an interface is WRR queuing.
4. Assign a queue to a WFQ group,
and configure scheduling
parameters for the queue.
qos wfq
queue-id
group 1
{
byte-count
|
weight
}
schedule-value
Select
weight
or
byte-count
according to the type (byte-count or
packet-based) of WFQ you have
enabled.