
1-26
Configuration prerequisites
The algorithm for queue scheduling to be used and the related parameters are determined.
Configuration procedure
Follow these steps to configure SP queue scheduling algorithm:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Configure SP queue
scheduling algorithm
undo queue-scheduler
[
queue-id
]
&<1-8>
Optional
By default, SP queue scheduling
algorithm is adopted on all the
output queues of a port.
Follow these steps to configure SDWRR queue scheduling algorithm:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Configure SDWRR
queue scheduling
algorithm
queue-scheduler wrr
{
group1
{
queue-id queue-weight
} &<1-8> |
group2
{
queue-id queue-weight
}
&<1-8> }*
Required
By default, SP queue scheduling
algorithm is adopted on all the
output queues of a port.
A port on a device can accommodate up to eight output queues. You can configure to use SP queue
scheduling algorithm, SDWRR queue scheduling algorithm, or combine the two as required.
z
With SDWRR queue scheduling algorithm adopted, the output queues of a port can be assigned to
group 1 and group 2. The two groups are scheduled using SP algorithm. For example, you can
assign queue 0, queue 1, queue 2, and queue 3 to group 1, and assign queue 4, queue 5, queue 6,
and queue 7 to group 2. The queues in group 2 are scheduled preferentially using WRR queue
scheduling algorithm. Queues in group 1 are scheduled using WRR queue scheduling algorithm
only when all the queues in group 2 are empty.
z
With both SP and SDWRR queue scheduling algorithms adopted, groups are scheduled using SP
algorithm. Assume that queue 0 and queue 1 are scheduled using SP algorithm; queue 2, queue 3,
and queue 4 are assigned to group 1; queue 5, queue 6, and queue 7 are assigned to group 2. The
queues in group 2 are scheduled preferentially using WRR queue scheduling algorithm. When all
the queues in group 2 are empty, queues in group 1 are scheduled using WRR queue scheduling
algorithm. Then, queue 1 is scheduled, and then queue 0.
When using SDWRR or SP+SDWRR combination for queue scheduling, you are recommended to
assign queues with successive queue numbers to the same scheduling group.