22-18
ATM Switch Router Software Configuration Guide
OL-7396-01
Chapter22 Configuring Quality of Service
Configuring IP QoS on Enhanced Gigabit Ethernet and Enhanced ATM Router Module Interfaces
A traffic class consists of two major elements:
a name
one or more match criteria / rules
The following commands describe how to configure a traffic class in global configuration mode:
Example
The following example shows how to configure a multi-field c lassifier:
Switch(config)# class-map eng-traffic
Switch(config-cmap)# match access-group 101
Switch(config-cmap)# match access-group name tac-traffic
The following example shows how to configure a BA classifier:
Switch(config)# class-map critical-traffic
Switch(config-cmap)# match ip precedence 7
Switch(config)# class-map other-traffic
Switch(config-cmap)# match ip dscp 1 2 3 4 5 6 7 8
Switch(config-cmap)# match ip dscp 9 10 11
Switch(config)# class-map mixed-traffic
Switch(config-cmap)# match ip dscp af11
Switch(config-cmap)# match ip precedence 1
Note Multiple match commands may be specified within the same class-map.
Multifield (MF) classifiers may only be used within input policy maps while Behavior
Aggregate classifiers may be used within input and/or output policy maps.
Creating a Service Policy
The policy-map command is used to define a service policy.
A policy map definition consists of:
a name
Command Purpose
Step1 Switch(config) # class-map
class-map name
Specifies the user-defined name of the traffic class.
Step2 Switch(config-cmap) # match
access-group access-group
Specifies the numbered access list, against whose contents packet
headers will be checked to determine if they belong to the class.
(Multifield classification)
Switch(config-cmap) # match
access-group name access-group
Specifies the named access list, against whose contents packet
headers will be checked to determine if they belong to the class.
(Multifield classification)
Switch(config-cmap) # match ip
precedence number
Specifies up to eight IP precedence values separated by spaces, to
be used as match criteria. (Behavior Aggregate classification).
Switch(config-cmap) # match ip
dscp number
Specifies up to eight differentiated services code point (DSCP)
values, separated by spaces, to be used as match criteria. The
value of each service code point is between 0 and 63. (Behavior
Aggregate classification).