Administrator Guide

Class-of-Service 1497
Example 1: SLA Configuration
The following example configures a simple meter and a trTCM meter is
support of a network SLA. The SLA classes are segregated by CoS class as
described in the comments.
1
Define a class-map so that all traffic will be in the set of traffic “cos-any”.
console#config
console(config)#class-map match-all cos-any ipv4
console(config-classmap)#match any
console(config-classmap)#exit
2
Define a class-map such that all traffic with a CoS value of 1 will be in the
set of traffic “cos1.” We will use this as a conform color class map.
Conform-color class maps must be one of cos, secondary cos, dscp, or ip
precedence.
console(config)#class-map match-all cos1 ipv4
console(config-classmap)#match cos 1
console(config-classmap)#exit
3
Define a class-map such that all IPv4 traffic with a CoS value of 0 will be in
the set of traffic “cos0.” We will use this as a conform-color class map.
Conform-color class maps must be one of cos, secondary cos, dscp, or ip
precedence.
console(config)#class-map match-all cos0 ipv4
console(config-classmap)#match cos 0
console(config-classmap)#exit
4
Define a class-map such that all TCP will be in the set of traffic “TCP.”
We will use this as a base color class for metering traffic.
console(config)#class-map match-all tcp ipv4
console(config-classmap)#match protocol tcp
console(config-classmap)#exit
5
Define a policy-map to include packets matching class cos-any (IPv4).
Ingress IPv4 traffic arriving at a port participating in this policy will be
assigned red or green coloring based on the metering.
console(config)#policy-map simple-policy in
console(config-policy-map)#class cos-any