beautypg.com

Configuration examples, Network requirements, Configuration procedure – H3C Technologies H3C WX6000 Series Access Controllers User Manual

Page 445: Configuring sp+wrr queues

background image

46-5

To do…

Use the command…

Remarks

Enter system view

system-view

Enter port
view

interface

interface-type

interface-number

Enter port
view or port
group view

Enter port
group view

port-group

{ manual

port-group-name | aggregation

agg-id

}

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

Configure WRR queue
scheduling

qos wrr queue-id group

group-id

weight

queue-weight

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 Examples

Network requirements

Configure WRR queue scheduling algorithm on GigabitEthernet0/0/1, and assign weight 1, 2, 4, 6, 8, 10,
12, and 14 to queue 0 through queue 7.

Configuration procedure

# Enter system view.

system-view

# Configure the WRR queues on GigabitEthernet0/0/1 port.

[Sysname] interface GigabitEthernet 0/0/1

[Sysname-GigabitEthernet0/0/1] qos wrr 0 group 1 weight 1

[Sysname-GigabitEthernet0/0/1] qos wrr 1 group 1 weight 2

[Sysname-GigabitEthernet0/0/1] qos wrr 2 group 1 weight 4

[Sysname-GigabitEthernet0/0/1] qos wrr 3 group 1 weight 6

[Sysname-GigabitEthernet0/0/1] qos wrr 4 group 1 weight 8

[Sysname-GigabitEthernet0/0/1] qos wrr 5 group 1 weight 10

[Sysname-GigabitEthernet0/0/1] qos wrr 6 group 1 weight 12

[Sysname-GigabitEthernet0/0/1] qos wrr 7 group 1 weight 14

Configuring SP+WRR Queues

As required, you can configure part of the queues on the port to adopt the SP queue-scheduling
algorithm and parts of queues to adopt the WRR queue-scheduling algorithm. Through adding the
queues on a port to the SP scheduling group and WRR scheduling group (namely, group 1), the
SP+WRR queue scheduling is implemented. During the queue scheduling process, the queues in the
SP scheduling group is scheduled preferentially. When no packet is to be sent in the queues in the SP
scheduling group, the queues in the WRR scheduling group are scheduled. The queues in the SP
scheduling group are scheduled according to the strict priority of each queue, while the queues in the
WRR queue scheduling group are scheduled according the weight value of each queue.

Configuration Procedure

Follow these steps to configure SP + WRR queues: