7-36
Cisco 10000 Series Router Quality of Service Configuration Guide
OL-7433-09
Chapter 7 Marking Traffic
Configuring Traffic Marking
Configuring Tunnel Header Marking Using the police Command
To configure tunnel header marking using the
police
command, enter the following commands beginning
in global configuration mode:
Example Configuration for Tunnel Header Marking Using the police Command
The following example configuration shows how to mark the tunnel header of a packet using the
police
command. In the example, the policer sets the DSCP bits to 4 for all conforming traffic belonging to the
match_ip class.
class-map match_ip
match protocol ip
policy-map Tunnel_Marking
class match_ip
police 8000 conform-action set-dscp-tunnel-transmit 4
class class-default
shape 64000
Command
Purpose
Step 1
Router(config)#
policy-map
policy-map-name
Specifies the name of the policy map and enters policy-map
configuration mode.
policy-map-name
is the name of the policy map.
Step 2
Router(config-pmap)#
class
class-map-name
Assigns the traffic class you specify to the policy map.
Enters policy-map class configuration mode.
class-map-name
is the name of a previously configured
class map and is the traffic class for which you want to
define QoS actions.
Step 3
Router(config-pmap-c)#
police
[
cir
]
bps
[
bc
]
burst-normal
[
pir
pir
] [
be
]
burst-excess
[
conform-action
{
set-dscp-tunnel-transmit
value
|
set-prec-tunnel-transmit
value
}]
[
exceed-action
{
set-dscp-tunnel-transmit
value
|
set-prec-tunnel-transmit
value
}]
[
violate-action
{
set-dscp-tunnel-transmit
value
|
set-prec-tunnel-transmit
value
}]
Configures policing and uses the policer action to mark a
packet’s outer tunnel header.
set-dscp-tunnel-transmit
value
is a number from 0 to 63
or one of the following reserved keywords:
•
EF (expedited forwarding)
•
AF11 (assured forwarding class AF11)
•
AF12 (assured forwarding class AF12)
set-prec-tunnel-transmit
value
is a number from 0 to 7
that sets the precedence bit in the packet header.
For more information, see the
“police Command
(Single-Rate)” section on page 6-6
or the
“police Command
(Two-Rate)” section on page 6-9
.