Applied number on Trunk inbound : 0
Applied number on Vlan Unknown Unicast : 0
Applied number on Vlan Multicast : 0
Applied number on Vlan Broadcast : 0
Applied number on ONU inbound : 0
Applied number on ONU outbound : 0
# Send traffic to GE 1/0/1 and GE 1/0/2 at the rate of 6000 kbit/s, 9000 kbit/s, and 11000 kbit/
s, and run the display qos car statistics command to check the QoS CAR statistics. If the
configuration is successful, you can obtain the following results:
l When packets are sent to GE 1/0/1 and GE 1/0/2 at the rate of 6000 kbit/s, all the packets are
forwarded.
l When packets are sent to GE 1/0/1 and GE 1/0/2 at the rate of 9000 kbit/s, all the packets on
GE 1/0/1 are forwarded but certain packets on GE 1/0/2 are discarded.
l When packets are sent to GE 1/0/1 and GE 1/0/2 at the rate of 11000 kbit/s, certain packets
on GE 1/0/1 and GE 1/0/2 are discarded.
Run the display qos car statistics command on GE 1/0/1 in the inbound direction, and the
following information is displayed:
<Switch> display qos car statistics interface gigabitethernet 1/0/1 inbound
Passed packets: 100
Passed bytes: 104800
Discard packets: 1
Discard bytes: 1048
----End
Configuration Files
l Configuration file of the Switch
#
sysname Switch
#
vlan batch 100 200 300
#
qos car qoscar1 cir 8000 pir 10000 cbs 1000000 pbs 1250000
qos car qoscar2 cir 5000 pir 8000 cbs 625000 pbs 1000000
#
interface Vlanif300
ip address 192.168.1.1 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk allow-pass vlan 100
qos car inbound qoscar1
#
interface GigabitEthernet1/0/2
port link-type trunk
port trunk allow-pass vlan 200
qos car inbound qoscar2
#
interface GigabitEthernet2/0/1
port link-type trunk
port trunk allow-pass vlan 100 200 300
#
return
2.6.2 Example for Configuring Traffic Policing Based on a Traffic
Classifier
The Switch provides different bandwidth by configuring traffic policing based on a traffic
classifier and setting different CAR parameters.
Quidway S7700 Smart Routing Switch
Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
67