![Cisco 10000 Series Configuration Manual Download Page 242](http://html.mh-extra.com/html/cisco/10000-series/10000-series_configuration-manual_66373242.webp)
6-36
Cisco 10000 Series Router Quality of Service Configuration Guide
OL-7433-09
Chapter 6 Policing Traffic
Configuring Traffic Policing
Marking Traffic Using Police Actions
To mark traffic using police actions, enter the following commands beginning in global configuration
mode:
Configuration Example for Marking Traffic Using Police Actions
Example 6-15
shows how to configure conform, exceed, and violate actions in the police command. In
the example configuration, traffic is policed at 8000 bps with the normal burst size set to 2000 bytes and
the peak burst size set to 1000 bytes. Traffic whose rate is less than the conform burst rate has the CLP
bit set to 1; traffic whose rate is within the conform and conform plus exceed burst rate has the CoS bits
set to 3; and traffic whose rate is higher than the conform plus exceed rate has the CoS bits also set to 3.
Example 6-15 Marking Traffic Using Police Actions
Router(config)# policy-map policy1
Router(config-pmap)# class gold
Router(config-pmap-c)# police 8000 2000 1000 conform-action set-clp-transmit exceed-action
set-cos 3 violate-action set-cos 3
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
cir}
[
bc
]
burst-normal
[
pir
pir
]
[
be
]
peak-burst
[
conform-action
action
]
[
exceed-action
action
]
[
violate-action
action
]
Configures traffic policing and optionally configures the policing
action for conforming, exceeding, or violating traffic.
action
specifies the policing action, such as set-clp-transmit,
set-frde-transmit, set-cos-transmit, or set-cos-inner-transmit.
Valid values for these actions are 0 to 7. For more information
about the actions you can specify, see
Table 6-1 on page 6-3
.