356 Chapter 9: QoS Support on the Catalyst 6500 MSFC and FlexWAN
Class-Based Policer
The class-based policer is an alternative policing mechanism available for the FlexWAN
module. Because of the development of the MQC, the class-based policer is the recom-
mended policer for newer deployments. Similar to CAR, the class-based policer uses a
token bucket mechanism to perform the policing action. Compared to CAR, however, the
class-based policer is more versatile and actually employs the use of two token buckets
rather than one. The two token buckets for the class-based policer represent the committed
burst size (CBS) and the excess burst size (EBS). The committed information rate is respon-
sible for defining how the rate tokens are replenished in both token buckets. As a result of
using the additional token bucket, the class-based policer offers three possible policing
actions. These three actions are modeled after the behavior described in RFC 2697, which
discusses the single-rate three-color policer. The various available actions—conform, exceed,
and violate—represent the three different colors green, yellow, and red, respectively.
The class-based policer is configured using the MQC. The policing parameters are
configured under the policy map class using the following command:
police {
rate
} [
normal burst
] [
excess burst
] conform-action {
conform-action
} [exceed-
action {
exceed-action
}] [violate-action {
violate-action
}]
params: 344000 bps, 65625 limit, 131250 extended limit
conformed 294270 packets, 80617800 bytes; action: set-dscp-transmit 0
exceeded 641561 packets, 209489650 bytes; action: continue
last packet: 4ms ago, current burst: 131010 bytes
last cleared 00:31:56 ago, conformed 336000 bps, exceeded 874000 bps
matches: access-group 111
params: 400000 bps, 75000 limit, 150000 extended limit
conformed 315610 packets, 93739250 bytes; action: set-dscp-transmit 6
exceeded 529878 packets, 197663700 bytes; action: continue
last packet: 4ms ago, current burst: 149850 bytes
last cleared 00:31:56 ago, conformed 391000 bps, exceeded 825000 bps
matches: access-group 112
params: 400000 bps, 75000 limit, 150000 extended limit
conformed 550546 packets, 93677725 bytes; action: set-dscp-transmit 16
exceeded 104531 packets, 18620850 bytes; action: continue
last packet: 1ms ago, current burst: 88350 bytes
last cleared 00:31:56 ago, conformed 391000 bps, exceeded 77000 bps
matches: access-group 113
params: 1000000 bps, 187500 limit, 375000 extended limit
conformed 658258 packets, 230390300 bytes; action: set-dscp-transmit 26
exceeded 0 packets, 0 bytes; action: continue
last packet: 4ms ago, current burst: 250 bytes
last cleared 00:31:58 ago, conformed 960000 bps, exceeded 0 bps
matches: access-group 114
params: 4000000 bps, 750000 limit, 1500000 extended limit
conformed 1276414 packets, 425802136 bytes; action: drop
exceeded 0 packets, 0 bytes; action: drop
last packet: 4ms ago, current burst: 400 bytes
last cleared 00:31:58 ago, conformed 1775000 bps, exceeded 0 bps
Example 9-10 Configuring Distributed CAR for Ingress Traffic Flows (Continued)