NOTE:
An S5800&S5820X switch supports coloring packets by using either of the following two traffic policing
functions, common CAR and aggregation CAR. For more information about common CAR and
aggregation CAR, see the chapter "Traffic policing, traffic shaping, and line rate configuration" and the
chapter "Global CAR configuration".
Mapping drop precedence
Without traffic policing configured, an S5800&S5820X switch looks up the 802.1p priority of a packet
in the 802.1p-to-drop priority mapping table, allocates the drop precedence value to the packet, and
colors the packet according to the drop precedence value. Drop precedence value 0 denotes green
packets, 1 denotes yellow packets, and 2 denotes red packets.
NOTE:
For more information about priority mapping tables, see the chapter "Priority mapping configuration."
Color-based priority marking configuration
Configuring priority marking based on colors obtained through traffic policing
After traffic policing evaluates and colors packets, the S5800&S5820X switch can mark traffic with
various priority values (including DSCP values, 802.1p priority values, and local precedence values) by
color. Configure priority marking in either of the following methods:
Configuring the priority marking actions by color in the traffic policing action
•
Configuring the priority marking actions by color in the behavior where the traffic policing action is
•
configured
NOTE:
You can use the two methods at the same time to mark multiple priority values for packets in the same
•
color, however, do not use the two methods to mark different values of the same priority type for packets.
Otherwise, the QoS policy configured with the behavior cannot be applied normally.
An S5800&S5820X switch implements both common CAR and aggregation CAR by using a QoS
•
policy. For more information about configuring classes and behaviors in a QoS policy, see the chapter
"Traffic policing, traffic shaping, and line rate configuration" and the chapter "Global CAR
configuration".
Configuring priority marking based on colors obtained through mapping drop precedence
When packets are colored based on drop precedence values, you can create priority marking actions
for packets in different colors in a traffic behavior, and mark DSCP values, 802.1p priority values, and
local precedence values for packets.
Configuring priority marking
Follow these steps to configure priority marking:
To do...
Enter system view
Use the command...
system-view
60
Remarks
—