1-22
QID: scheduling-group weight
-----------------------------------
0 : wrr , group2 20
1 : wrr , group2 20
2 : wrr , group2 40
3 : wrr , group1 20
4 : wrr , group1 20
5 : wrr , group1 30
6 : sp 0
7 : sp 0
Configuring Traffic Accounting
Refer to Flow-Based Traffic Accounting for information about traffic accounting.
Configuration prerequisites
The ACL rules for traffic classification have been defined. Refer to the ACL module of this manual for
information about defining ACL rules.
Configuration procedures
You can collect/clear traffic statistics about incoming ACL matching packets globally, in a VLAN, in a
port group, or on a port.
1) Configuring traffic accounting globally
Follow these steps to collect/clear statistics about the incoming ACL matching packets globally:
To do… Use the command… Remarks
Enter system view
system-view
—
Collect statistics of the packets
matching a specific ACL rule
traffic-statistic inbound acl-rule
Required
Clear statistics of the packets
matching a specific ACL rule
reset traffic-statistic inbound
acl-rule
Optional
2) Configuring traffic accounting for a VLAN
Follow these steps to collect/clear statistics about the incoming ACL matching packets in a VLAN:
To do… Use the command… Remarks
Enter system view
system-view
—
Collect statistics about incoming
ACL matching packets
traffic-statistic vlan vlan-id
inbound acl-rule
Required
Clear statistics about the packets
matching a specific ACL rule
reset traffic-statistic vlan vlan-id
inbound acl-rule
Optional
3) Configuring traffic accounting for a port group
Follow these steps to collect/clear statistics about incoming ACL matching packets in a port group: