880 CHAPTER 68: CONGESTION MANAGEMENT
Configuration Examples Network requirements
Configure GigabitEthernet1/0/1 to adopt SP queue scheduling algorithm.
Configuration procedure
# Enter system view.
<Sysname> system-view 
# Configure an SP queue for GigabitEthernet1/0/1 port.
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/0/1] qos sp 
Configuring a WRR 
Queue
By default, SP queue scheduling algorithm is adopted on all the ports. You can 
adopt WRR queue scheduling algorithm as required.
Configuration Procedure Follow these steps to configure WRR queues:
Enter 
port view 
or port 
group 
view 
Enter 
port 
view 
interface interface-type 
interface-number 
Perform either of the two operations.
The configuration performed in 
Ethernet port view applies to the 
current port only. The configuration 
performed in port group view applies 
to all the ports in the port group. 
Enter 
port 
group 
view 
port-group { manual 
port-group-name | 
aggregation agg-id }
Configure SP queue 
scheduling 
algorithm
qos 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.
To do… Use the command…  Remarks 
To do… Use the command…  Remarks 
Enter system view system-view - 
Enter port 
view or 
port group 
view 
Enter port 
view 
interface interface-type 
interface-number 
Perform either of the two 
operations.
The configuration performed in 
Ethernet port view applies to the 
current port only. The 
configuration performed in port 
group view applies to all the ports 
in the port group 
Enter port 
group 
view 
port-group { manual 
port-group-name | aggregation 
agg-id }
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.