Configuration example, Configuring traffic accounting, Configuration prerequisites – H3C Technologies H3C S3100 Series Switches User Manual

Page 604: Configuration procedure

Advertising
background image

1-25

Operation

Command

Description

Configure queue
scheduling

queue-scheduler { strict-priority |
hq-wrr queue0-weight queue1-weight
queue2-weight
| wrr queue0-weight
queue1-weight queue2-weight
queue3-weight
}

Required

By default, all the ports adopt the
WRR queue scheduling
algorithm, with the weights for
queues 0 to 3 as 1, 2, 3, and 4.

The SP queue scheduling algorithm is not available on H3C S3100-SI series Ethernet switches.

Configuration example

# Adopt the WRR queue scheduling algorithm, with the weight for queue 0, queue 1, queue 2, and

queue 3 as 12, 8, 4, and 1.

Display the configuration information after configuration.

Configuration procedure:

<Sysname> system-view

[Sysname] queue-scheduler wrr 12 8 4 1

[Sysname] display queue-scheduler

Queue scheduling mode: weighted round robin

weight of queue 0: 12

weight of queue 1: 8

weight of queue 2: 4

weight of queue 3: 1

Configuring Traffic Accounting

Only H3C S3100-EI series switches support this configuration.

Refer to section

Flow-Based Traffic Accounting

for information about traffic accounting.

Configuration prerequisites

The ACL rules for traffic classification are defined. Refer to the ACL module of this manual for

information about defining ACL rules.

Configuration procedure

You can generate traffic statistics or clear traffic statistics on all the packets matching specific ACL rules,

or on packets that match specific ACL rules and are of a VLAN, of a port group, or pass a port.

Advertising