H3C Technologies H3C WX3000 Series Unified Switches User Manual

Page 370

Advertising
background image

37-26

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.

Configuration example

# Configure a device to adopt SP+SDWRR combination for queue scheduling, assigning queue 3,
queue 4, and queue 5 to WRR scheduling group 1, with the weigh of 20, 20 and 30; assigning queue 0,
queue 1, and queue 2 to WRR scheduling group 2, with the weight 20, 20, and 40; using SP for
scheduling queue 6 and queue 7. Display the configuration information after configuration.

Configuration procedure:

<device> system-view

[device] queue-scheduler wrr group1 3 20 4 20 5 30 group2 0 20 1 20 2 40

[device] display queue-scheduler

QID: scheduling-group weight

-----------------------------------

0 : wrr , group2 20

1 : wrr , group2 20

2 : wrr , group2 40

3 : wrr , group1 20

4 : wrr , group1 20

5 : wrr , group1 30

Advertising