beautypg.com

Configuration example – H3C Technologies H3C S6300 Series Switches User Manual

Page 60

background image

50

Step Command

Remarks

2.

Enter Ethernet interface view. interface interface-type

interface-number

N/A

3.

Enable byte-count or
packet-based WFQ

queuing.

qos wfq [ byte-count | weight ]

The default queuing algorithm on an
interface is WRR.

4.

Assign a queue to the SP

queue scheduling group.

qos wfq queue-id group sp

By default, all the queues of a
WFQ-enabled port are in WFQ group
1.

5.

Assign a queue to the WFQ
queue scheduling group,

and configure a scheduling
weight for the queue.

qos wfq queue-id group { 1 |
2 } { weight | byte-count }
schedule-value

Select weight or byte-count according to

the WFQ type (byte-count or
packet-based) you have enabled.
If you have enabled WFQ on the port,
all the queues are in WFQ group 1 by

default and the default scheduling
weight is 1 for each queue.

6.

(Optional.) Configure the

minimum guaranteed
bandwidth for a queue.

qos bandwidth queue queue-id
min bandwidth-value

The default setting is 64 kbps for each
queue in a WFQ group.

Configuration example

1.

Network requirements

{

Configure SP+WFQ queuing on interface Ten-GigabitEthernet 1/0/1, and use packet-based
WFQ.

{

Assign queues 0, 1, 2, and 3 to the SP group.

{

Assign queues 4 and 5 to WFQ group 1, with the weights being 1 and 2, respectively, and
assign queues 6 and 7 to WFQ group 2, with the weights being 1 and 3, respectively, and

configure the minimum guaranteed bandwidth for each of the four queues as 128 Mbps.

2.

Configuration procedure
# Enter system view.

system-view

# Configure SP+WFQ queuing on Ten-GigabitEthernet 1/0/1.

[Sysname] interface ten-gigabitEthernet 1/0/1

[Sysname-Ten-GigabitEthernet1/0/1] qos wfq weight

[Sysname-Ten-GigabitEthernet1/0/1] qos wfq 0 group sp

[Sysname-Ten-GigabitEthernet1/0/1] qos wfq 1 group sp

[Sysname-Ten-GigabitEthernet1/0/1] qos wfq 2 group sp

[Sysname-Ten-GigabitEthernet1/0/1] qos wfq 3 group sp

[Sysname-Ten-GigabitEthernet1/0/1] qos wfq 4 group 1 weight 1

[Sysname-Ten-GigabitEthernet1/0/1] qos bandwidth queue 4 min 128000

[Sysname-Ten-GigabitEthernet1/0/1] qos wfq 5 group 1 weight 2

[Sysname-Ten-GigabitEthernet1/0/1] qos bandwidth queue 5 min 128000

[Sysname-Ten-GigabitEthernet1/0/1] qos wfq 6 group 2 weight 1

[Sysname-Ten-GigabitEthernet1/0/1] qos bandwidth queue 6 min 128000

[Sysname-Ten-GigabitEthernet1/0/1] qos wfq 7 group 2 weight 3

[Sysname-Ten-GigabitEthernet1/0/1] qos bandwidth queue 7 min 128000