5-8
To do…
Use the command…
Remarks
Enter
interface view
interface interface-type
interface-number
Enter
interface
view or
port group
view
Enter port
group view
port-group manual
port-group-name
Use either command
Settings in interface view take effect
on the current interface; settings in
port group view take effect on all ports
in the port group.
Enable the WRR queue
scheduling on the port
qos wrr
Required
The default queuing algorithm on an
interface is WRR queuing.
Configure SP queue
scheduling
qos wrr queue-id group
sp
Required
By default, all the ports adopt the
WRR queue scheduling algorithm,
with the weight values assigned to
queue 0 through queue 7 being 1, 2,
3, 4, 5, 9, 13, and 15.
Configure WRR queue
scheduling
qos wrr queue-id group
group-id weight
schedule-value
Required
By default, all the ports adopt the
WRR queue scheduling algorithm,
with the weight values assigned to
queue 0 through queue 7 being 1, 2,
3, 4, 5, 9, 13, and 15.
Configuration Example
Network requirements
z
Configure to adopt SP+WRR queue scheduling algorithm on GigabitEthernet1/0/1.
z
Configure queue 0, queue 1, queue 2 and queue 3 on GigabitEthernet1/0/1 to be in SP queue
scheduling group.
z
Configure queue 4, queue 5, queue 6 and queue 7 on GigabitEthernet1/0/1 to be in WRR queue
scheduling group, with the weight being 2, 4, 6 and 8 respectively.
Configuration procedure
# Enter system view.
<Sysname> system-view
# Enable the SP+WRR queue scheduling algorithm on GigabitEthernet1/0/1.
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/0/1] qos wrr
[Sysname-GigabitEthernet1/0/1] qos wrr 0 group sp
[Sysname-GigabitEthernet1/0/1] qos wrr 1 group sp
[Sysname-GigabitEthernet1/0/1] qos wrr 2 group sp
[Sysname-GigabitEthernet1/0/1] qos wrr 3 group sp
[Sysname-GigabitEthernet1/0/1] qos wrr 4 group 1 weight 2
[Sysname-GigabitEthernet1/0/1] qos wrr 5 group 1 weight 4
[Sysname-GigabitEthernet1/0/1] qos wrr 6 group 1 weight 6
[Sysname-GigabitEthernet1/0/1] qos wrr 7 group 1 weight 8