![Cisco 10000 Series Configuration Manual Download Page 246](http://html.mh-extra.com/html/cisco/10000-series/10000-series_configuration-manual_66373246.webp)
6-40
Cisco 10000 Series Router Quality of Service Configuration Guide
OL-7433-09
Chapter 6 Policing Traffic
Configuration Examples
If the policy map is attached to Frame Relay DLCI 101 that is configured for Layer 2 VPN, the output
from the
show policy-map interface
command displays the following information:
Router#
show policy-map serial4/0/0.1
Serial4/0/0.1: DLCI 101 -
Service-policy input: frde
Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
0 packets, 0 bytes
5 minute rate 0 bps
Police:
104000 bps, 100 limit, 10 extended limit
conformed 0 packets, 0 bytes; action:
set-frde-transmit
set-mpls-exp-imposition-transmit 1
exceeded 0 packets, 0 bytes; action:
set-frde-transmit
set-mpls-exp-imposition-transmit 2
violated 0 packets, 0 bytes; action:
set-frde-transmit
set-mpls-exp-imposition-transmit 3
Configuration Example of the set-cos-transmit Police Action
The following example shows how to configure the set-cos-transmit police action on the PRE2. In the
example, the traffic class group2 is policed at 20000 bps with a normal burst of 100 bytes. Traffic that
conforms to the rate is transmitted; traffic that exceeds the rate has the CoS bits set to 3; and traffic that
violates the rate has the CoS bits set to 4.
policy-map police
class group2
police 20000 100 0 conform-action transmit exceed-action set-cos-transmit 3
violate-action set-cos-transmit 4
The following example shows sample output from the
show running-config
command for a 2-level
hierarchical policy that is configured with the set-cos-transmit action on the PRE2:
policy-map in-parent
class class-default
police percent 85 1000 ms 2000 ms conform-action transmit exceed-action drop
violate-action drop
service-policy in-child
policy-map in-child
class c0
priority
police 1000000 20000 30000 conform-action set-cos-transmit 0 exceed-action
set-cos-transmit 0 violate-action set-cos-transmit 0
class c1
police 1000000 20000 30000 conform-action set-cos-transmit 1 exceed-action
set-cos-transmit 1 violate-action set-cos-transmit 1
class c2
police 1000000 20000 30000 conform-action set-cos-transmit 2 exceed-action
set-cos-transmit 2 violate-action set-cos-transmit 2
class c3
police 1000000 20000 30000 conform-action set-cos-transmit 3 exceed-action
set-cos-transmit 3 violate-action set-cos-transmit 3