Users Guide

Layer 2 Switching Commands 755
User Guidelines
The simple form of the police command uses a single data rate and burst size,
resulting in two outcomes: conform and violate. Conforming packets are
colored green and non-conforming packets are colored red for use by the
WRED mechanism. Only one style of police command (simple, single-rate or
two-rate) is allowed for a given class instance in a particular policy. The
conform-color
command can be used to pre-color packets prior to policing.
Packets pre-colored red are not re-colored by the policer.
Example
The following example configures a single rate ingress meter with packets
received at a rate below 1000 Kbps and 4096 byte burst size are transmitted
and packets above that rate are dropped. The transmitted packets are colored
green should the operator desire to configure a WRED drop policy.
console(config-policy-classmap)#police-simple 1000 64 conform-action
transmit violate-action drop
police-single-rate
Use the police-single-rate command to implement a single-rate Three Color
Market (srTCM) per RFC 2697.
NOTE: This command is not available on the N1500 Series switches.
Syntax
police-single-rate datarate burstsize 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 kilobits per seconds (Kbps). (Range 1-128)
excess-burstsize—Excess burst size in kilobits per seconds (Kbps). (Range
1-128)
action—The action to take according to the color. Select one:
drop: Drop the packet.
set-prec-transmit ip-prec: Remark the IP precedence in the packet to
ip-prec and transmit. (Range 0-7)