13-25
Cisco 10000 Series Router Quality of Service Configuration Guide
OL-7433-09
Chapter 13 Defining QoS for Multiple Policy Levels
Configuration Examples
Router(config-pmap-c)#
random-detect dscp 44 100 200 10
Router(config-pmap-c)#
service-policy Business-Meter
[Applies bottom-level child policy.]
Router(config-pmap-c)#
exit
Router(config-pmap)#
class Non-Essential
Router(config-pmap-c)#
random-detect dscp-based
Router(config-pmap-c)#
random-detect dscp 20 10 20 10
Router(config-pmap-c)#
random-detect dscp 24 100 200 10
Router(config-pmap-c)#
service-policy Default-Meter
[Applies bottom-level child policy.]
Router(config-pmap-c)#
exit
Router(config-pmap)#
exit
Router(config)#
policy-map Region1
[Defines top-level parent policy.]
Router(config-pmap)#
class class-default
Router(config-pmap-c)#
shape 20000
Router(config-pmap-c)#
service-policy Southwest
[Applies middle-level child policy.]
Router(config-pmap-c)#
exit
Router(config-pmap)#
exit
Router(config)#
interface serial 5/0/0.1 point-to-point
Router(config-subif)#
ip address 10.1.0.2 255.255.255.252
Router(config-subif)#
service-policy output Region1
[Applies top-level parent.]
Configuration Example for Hierarchical Input Policing
Example 13-12
shows how to configure a hierarchical input policing policy to limit the rate of traffic that
the router accepts on an inbound interface. This example configuration includes the following
•
Class maps named class-default and Click that define the classification criteria the router uses to
classify packets.
•
A bottom-level child policy map named Policy2 that defines a two-rate three-color policer for the
Click traffic class.
•
A top-level parent policy named Parentbps1 that contains the class-default class, which defines a
two-rate three-color policer for default traffic. The bottom-level child policy named Policy2 is
applied to the Parentbps1 class-default class.
•
The top-level parent policy is attached to PVC 101/102 on the ATM point-to-point
subinterface 1/0/0.10.
Example 13-12 Configuring Hierarchical Input Policing
Router(config)#
class-map match-any class-default
[Defines classification criterion.]
Router(config-cmap)#
class-map Click
[Defines classification criterion.]
Router(config-cmap)#
match ip precedence 2
Router(config-cmap)#
exit
Router(config)#
policy-map Policy2
[Defines bottom-level child policy.]
Router(config-pmap)#
class Click
Router(config-pmap-c)#
police 200000 2000 pir 400000 3000 conform-action set-dscp-transmit
59 exceed-action set-dscp-transmit 60 violate-action drop
[Configures two-rate policer.]
Router(config-pmap-c)#
exit
Router(config-pmap)#
policy-map Parentbps1
[Defines top-level parent policy.]
Router(config-pmap)#
class class-default
Router(config-pmap-c)#
police 128000 2000 pir 256000 4000 conform-action transmit
exceed-action transmit violate-action drop
[Configures two-rate three-color policer.]
Router(config-pmap-c)#
service-policy Policy2
[Applies bottom-level child to parent.]
Router(config-pmap-c)#
exit
Router(config-pmap)#
exit
Router(config)#
interface atm 1/0/0.10 point-to-point
Router(config-subif)#
pvc 101/102
Router(config-subif-atm-vc)#
ubr 1000
Router(config-subif-atm-vc)#
service-policy input Parentbps1
[Attaches parent to PVC.]