6-34
Cisco 10000 Series Router Quality of Service Configuration Guide
OL-7433-09
Chapter 6 Policing Traffic
Configuring Traffic Policing
Configuration Example for Configuring Percent-Based Policing in a Hierarchical Policy
Example 6-12
shows how to configure a hierarchical policy and attach it to PVC 5/101. The router first
shapes the bandwidth to 512000 bits per second as indicated in the Parent policy class-default class. The
router then polices the Bronze and Gold classes in the policy-map named Child. The router allocates
30 percent of the committed rate to the Bronze traffic and allows committed bursts of 6 ms and excess
bursts of 4 ms. The router transmits Bronze traffic that conforms to the committed rate and drops Bronze
traffic that exceeds the burst sizes. The router polices Gold traffic at 8000 bits per second and allows
committed bursts of 2000 bytes and excess bursts of 4000 bytes. The router transmits Gold traffic that
conforms to the committed rate and sets the QoS transmit value to 4 for traffic that exceeds burst sizes.
Example 6-12 Policing in a Hierarchical Policy
Router(config)#
policy-map Child
Router(config-pmap)#
class Bronze
Router(config-pmap-c)#
police percent 30 6 ms 4 ms conform-action transmit exceed-action
drop
Router(config-pmap-c)#
class Gold
Router(config-pmap-c)#
police 8000 2000 4000 conform-action transmit exceed-action
set-qos-transmit 4
Router(config-pmap-c)#
exit
Router(config-pmap)#
policy-map Parent
Router(config-pmap)#
class class-default
Router(config-pmap-c)#
shape 512000
Router(config-pmap-c)#
service-policy Child
!
Router(config-if)#
interface atm 3/0/0.3 point-to-point
Router(config-subif)#
no atm pxf queuing
Router(config-subif)#
pvc 5/101
Router(config-if-atm-vc)#
vbr-nrt 5000 2000
Router(config-if-atm-vc)#
service-policy out Parent
Configuration Example for Percent-Based Policing of a Priority Service
Example 6-13
shows how to configure the
police percent
command for a priority service. In the
example, the priority class named Voice is configured in the policy map named New-Traffic. The router
allocates 25 percent of the committed rate to Voice traffic and allows committed bursts of 4 ms and
excess bursts of 1 ms. The router transmits Voice traffic that conforms to the committed rate, sets the
QoS transmit value to 4 for Voice traffic that exceeds the burst sizes, and drops Voice traffic that violates
the committed rate.
Example 6-13 Policing a Priority Service Using Percent-Based Policing
Router(config)#
policy-map New-Traffic
Router(config-pmap)#
class Voice
Router(config-pmap-c)#
priority
Router(config-pmap-c)#
queue-limit 32
Router(config-pmap-c)#
police percent 25 4 ms 1 ms conform-action transmit exceed-action
set-qos-transmit 4 violate-action drop