1.6 Maintaining Class-based QoS
If the traffic statistics function is enabled, you can view and clear the flow-based traffic statistics.
1.6.1 Displaying the Flow-based Traffic Statistics
You can use the
display traffic policy statistics
command to view the traffic statistics matching
the specified traffic classification rule.
Context
To view the flow-based traffic statistics, a traffic policy must exist and contain the traffic
statistics action.
Procedure
l
Run the
display traffic policy statistics
{
global
[
slot
slot-id
] |
interface
interface-type
interface-number
|
vlan
vlan-id
} {
inbound
|
outbound
} [
verbose
{
classifier-base
|
rule-base
} [
class
classifier-name
] ] command to check the flow-based traffic statistics.
----End
1.6.2 Clearing the Flow-based Traffic Statistics
You can use the
reset
command to clear the flow-based traffic statistics.
Context
CAUTION
The flow-based traffic statistics cannot be restored after being cleared. Exercise caution when
you run the command.
Procedure
l
Run the
reset traffic policy statistics
{
global
[
slot
slot-id
] |
interface
interface-type
interface-number
|
vlan
vlan-id
} {
inbound
|
outbound
} command in the user view to
clear the flow-based traffic statistics.
----End
1.7 Configuration Examples
This section provides several configuration examples of class-based QoS.
S3700HI Ethernet Switches
Configuration Guide - QoS
1 Class-based QoS Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
38