Apart from being defined in a DiffServ domain, colors of packets can also be defined in traffic
policing.
l When the burst size of a packet is smaller than the CBS value, the packet is colored green.
l When the burst size of a packet is equal to or larger than the CBS value but smaller than the
PBS value, the packet is colored yellow.
l When the burst size of a packet is equal to or larger than the PBS value, the packet is colored
red.
When you bind a DiffServ domain to an inbound interface and configure traffic policing in which
the CBS and PBS values are set:
l If the coloring mode of traffic policing is set to color-blind, the coloring of a packet depends
on the coloring of a packet defined in traffic policing, regardless of the coloring of a packet
defined in a DiffServ domain.
l If the coloring mode of traffic policing is set to color-aware, the coloring of a packet complies
with the following rules when the coloring rules of a packet defined in traffic policing and
in a DiffServ domain are applied to the same packet but conflict:
Table 2-1 Rules for making the color of a packet effective
Color of a Packet Defined
in a DiffServ Domain
Color of a Packet Defined in
Traffic Policing
Final Color of a
Packet
Green Yellow Yellow
Green Red Red
Yellow Green Yellow
Yellow Red Red
Red Green Red
Red Yellow Red
Step 4 Run:
quit
Exit from the traffic behavior view.
Step 5 (Optional) Conduct the following steps to configure aggregate CAR.
1. Run:
system-view
The system view is displayed.
2. Run:
qos car car-name cir cir-value [ cbs cbs-value [ pbs pbs-value ] | pir pir-
value [ cbs cbs-value pbs pbs-value ] ]
A CAR profile is created.
NOTE
Aggregate CAR supports only the single token bucket.
3. Run:
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.
55