Color-aware policing
implies that the QoS DSCP field in a class of traffic has been previously
marked with values that you can use in a policer. This feature allows you to
mark traffic at one node in a network and then take action based on this
marking at a subsequent node.
For information on
the police command, see the “Configuring 1-Rate and 2-Rate, 2-Color and 3-Color
Policing” section.
You can use one or
more of the four police command class maps conform-color or exceed-color to
perform color-aware policing. These keywords require a class-map name that is
used to classify packets. Based on the match criteria that you specify in the
class maps, the traffic is classified into one of these two classes or
class-default if there is no match. The policer then takes the following
action:
-
Packets that
belong to the
conform-color class are policed with the
cir and
pir arguments to the
police command.
-
Packets that
belong to the
exceed-color class are policed only against the
pir argument to the
police command. If
pir is not specified, the
cir values are used.
-
Packets that end
up in class-default because they fail to match either the
conform-color or
exceed-color class will immediately take the violate
action.
A color other than
class-default cannot be assigned to the violate action because according to RFC
2697 and RFC 2698, all packets must be assigned a color.
You can set the DSCP
value for color-aware policing to a specified value. The list of valid DSCP
values is shown in the table below.
Table 7. Color-Aware
Policing Valid DSCP Values
Value
|
List of DSCP
Values
|
af11
|
AF11 dscp
(001010)—decimal value 10
|
af12
|
AF12 dscp
(001100)—decimal value 12
|
af13
|
AF13 dscp
(001110)—decimal value 14
|
af21
|
AF21 dscp
(010010)—decimal value 18
|
af22
|
AF22 dscp
(010100)—decimal value 20
|
af23
|
AF23 dscp
(010110)—decimal value 22
|
af31
|
AF31 dscp
(011010)—decimal value 26
|
af32
|
AF40 dscp
(011100)—decimal value 28
|
af33
|
AF33 dscp
(011110)—decimal value 30
|
af41
|
AF41 dscp
(100010)—decimal value 34
|
af42
|
AF42 dscp
(100100)—decimal value 36
|
af43
|
AF43 dscp
(100110)—decimal value 38
|
cs1
|
CS1
(precedence 1) dscp (001000)—decimal value 8
|
cs2
|
CS2
(precedence 2) dscp (010000)—decimal value 16
|
cs3
|
CS3
(precedence 3) dscp (011000)—decimal value 24
|
cs4
|
CS4
(precedence 4) dscp (100000)—decimal value 32
|
cs5
|
CS5
(precedence 5) dscp (101000)—decimal value 40
|
cs6
|
CS6
(precedence 6) dscp (110000)—decimal value 48
|
cs7
|
CS7
(precedence 7) dscp (111000)—decimal value 56
|
default
|
Default
dscp (000000)—decimal value 0
|
ef
|
EF dscp
(101110)—decimal value 46
|
After you apply
color-aware policing, all matching packets in the device are policed according
to the specifications of the color-aware policer.
To configure
color-aware policing:
-
Create the
class map. For information about configuring class maps, see “Configuring
Classification.”
-
Create a
policy map. For information about policy maps, see this chapter and “Using
Modular QoS CLI.”
-
Configure the
color-aware class map as described in this section.
-
Apply the
service policy to the interfaces. For information about attaching policies to
interfaces, see “Using Modular QoS CLI.”
Note |
The rates
specified in the shared policer are shared by the number of interfaces to which
you apply the service policy. Each interface does not have its own dedicated
rate as specified in the shared policer.
|