1-21
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
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, or pass a port.
Table 1-23
Generate traffic statistics on all the packets matching specific ACL rules
Operation
Command
Description
Enter system view
system-view
—
Generate the statistics on the packets
matching specific ACL rules
traffic-statistic
inbound
acl-rule
Required
Clear the statistics on the packets matching
specific ACL rules
reset traffic-statistic
inbound
acl-rule
Optional
Table 1-24
Generate traffic statistics on packets that are of a VLAN and match specific ACL rules
Operation
Command
Description
Enter system view
system-view
—
Generate the statistics on the packets
matching specific ACL rules
traffic-statistic vlan vlan-id
inbound
acl-rule
Required
Clear the statistics on the packets matching
specific ACL rules
reset traffic-statistic vlan
vlan-id
inbound
acl-rule
Optional