beautypg.com

Configuration example – H3C Technologies H3C S3600 Series Switches User Manual

Page 752

background image

1-22

A port of an S3600 Ethernet switch supports eight output queues. These queue scheduling algorithms

are available: SP, WRR, and WFQ. With WRR (or WFQ) adopted, if you set the weight or the bandwidth

of one or multiple queues to 0, the switch will add the queue or these queues to the SP group, where SP

is adopted. For other queues, WRR (or WFQ) still applies. In this case, both SP and WRR (or WFQ) are

adopted.

In cases where both SP and WRR (or WFQ) queue scheduling algorithms are adopted, the queues in

the SP group take precedence over other queues. For example, if queue 0, queue 1, queue 2, and

queue 3 are in the SP group, queue 4, queue 5, queue 6, and queue 7 are scheduled using WRR (or

WFQ), the switch will schedule the queues in the SP group preferentially by using the SP algorithm.

Then queues outside the SP group are scheduled by using WRR (or WFQ) algorithm only when all the

queues in the SP group are empty.

z

The queue scheduling algorithm specified by using the queue-scheduler command in system

view takes effect on all the ports. The queue scheduling algorithm configured in port view must be

the same as that configured in system view. Otherwise, the system prompts configuration errors.

z

If the weight (or bandwidth value) specified in system view for a queue of WRR queuing or WFQ

queuing cannot meet the requirement of a port, you can modify the weight (or bandwidth value) for

this port in the corresponding Ethernet port view. The new weight (or bandwidth value) takes effect

only on the port.

z

If the weight (or bandwidth value) specified in system view for a queue of SP-WRR queuing or

SP-WFQ queuing in the command cannot meet the requirement of a port, you can modify the

weight (or bandwidth value) for this port in the corresponding Ethernet port view. The new weight

(or bandwidth value) takes effect only on the port.

z

The display queue-scheduler command cannot display the queue weight (or bandwidth value)

specified in Ethernet port view.

Configuration example

z

Adopts WRR for queue scheduling, setting the weights of the output queues to 2, 2, 3, 3, 4, 4, 5,

and 5 (in the order queue 0 through queue 7).

z

Verify the configuration.

Configuration procedure:

system-view

[Sysname] queue-scheduler wrr 2 2 3 3 4 4 5 5

[Sysname] display queue-scheduler

Queue scheduling mode: weighted round robin

weight of queue 0: 2

weight of queue 1: 2

weight of queue 2: 3

weight of queue 3: 3

weight of queue 4: 4

weight of queue 5: 4

weight of queue 6: 5

This manual is related to the following products: