Quick Reference Guide

QoS Commands 673
User Guidelines
The CIR is measured in Kbps, the CBS in Kbytes, and the PBS in Kbytes. It is
recommended that the CBS and PBS be configured to be larger than the
largest expected IP packet. A class command in policy-map mode must be
issued for an existing class-map before entering this command.
Example
console#police-single-rate 100000000 32 64 conform-action set-cos-transmit 7
exceed-action set-prec-transmit 7 violate-action drop
police-two-rate
Use the police-two-rate command to implement a two-rate Three Color
Market (trTCM) per RFC 2698. A trTCM meters a traffic stream and colors
packets according to four parameters:
Committed Information Rate (CIR)
Committed Burst Size (CBS)
Peak Information Rate (PIR)
Peak Burst Size (PBS)
A packet is colored red if it exceeds the PIR, yellow if it exceeds the CIR, and
green if it does not exceed either. A trTCM is useful when a peak rate needs to
be enforced separately from a committed rate.
Syntax
police-two-rate
datarate burstsize peak-data-rate excess-burstsize
conform-
action
action
exceed-action
action
violate-action
action
datarate
— Data rate in kilobits per second (kbps). (Range:
1–4294967295)
burstsize
— Burst size in Kbytes (Range: 1–128)
peak-data-rate
— Peak data rate in kilobits per second (kbps). (Range 1-
4294967295)
excess-burstsize
— Excess burst size in kilobits per seconds (kbps). (Range
1-128)
action
— The action to take according to the color. Select one of:
drop— Drop the packet.
2CSNXXX_SWUM200.book Page 673 Tuesday, December 10, 2013 1:22 PM