Administrator Guide

Layer 2 Switching Commands 719
Command Modes
Policy-Class-Map Configuration mode
User Guidelines
An srTCM meters a traffic stream and colors packets according to three
parameters: Committed Information Rate (CIR), Committed Burst Size
(CBS), and Peak Burst Size (PBS). A packet is colored red if it exceeds the
CBS and the PBS, yellow if it exceeds the CBS, and green if it exceeds neither.
An srTCM is useful in situations where only the length of the burst, but not
the peak rate, determines the service assignment.
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.
NOTE: This command is not available on the N1500 Series switches.
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)
2CSNXXX_SWUM204.book Page 719 Monday, January 25, 2016 1:25 PM