22-19
ATM Switch Router Software Configuration Guide
OL-7396-01
Chapter 22 Configuring Quality of Service
Configuring IP QoS on Enhanced Gigabit Ethernet and Enhanced ATM Router Module Interfaces
• a set of classifiers (class-maps)
• their associated traffic conditioners (for input policy maps) or per hop behavior (PHB) definitions
(for output policy maps).
The following commands show how to configure a service policy on an ingress interface (input policy
map):
Example
Switch(config)# policy-map in-policy
Switch(config-pmap)# class one
Switch(config-pmap-c)# set ip dscp 48
Switch(config-pmap-c)# police 96000000 16000000 exceed-action set-dscp-transmit 0
Switch(config-pmap)# class two
Switch(config-pmap-c)# set ip precedence unchanged
Switch(config-pmap-c)# police 96000000 16000000 exceed-action set-dscp-transmit 0
Switch(config-pmap-c)# class-default
Switch(config-pmap-c)# set ip dscp 0
Note Input policy maps:
• can have a maximum of 16 class maps including the default class.
• may be configured on the physical interface or on any 64 subinterfaces on the physical
interface.
• have a maximum number of 32 policer instances which can be applied per physical
interface.
• should have sufficient TCAM space available for the policy to be programmed
(minimum 512 entries).
Command Purpose
Step 1
Switch(config) # policy-map
policy-name
Specifies the name of the service policy to configure.
Step 2
Switch(config-pmap) # class
class-name
Specifies the name of a predefined class, which was defined with
the class-map command
Switch(config-pmap-c) # class
class-default
Specifies the well known default class.
Step 3
Switch(config-pmap-c) # police
rate burst exceed-action [drop |
set-dscp-transmit dscp-value |
set-precedence-transmit ip
precedence-value]
Specifies three parameters to define the meter and policer rate is
the average rate of data arrival (in Kbits/sec) burst is the
maximum burst (in bytes) exceed action is either drop or mark
down.
Switch(config-pmap-c) # set
ip-precedence
ip-precedence-value
Specifies an IP precedence marker. The IP precedence value can
be any value between 0 and 7.
Switch(config-pmap-c) # set ip
dscp ip-dscp-value
Specifies a DSCP marker. The DSCP value can be any value
between 0 and 63.
Switch(config-pmap-c) # set ip
[precedence | dscp] unchanged
Specifies trusted traffic.