Users Guide

Table Of Contents
Layer 2 Switching Commands 780
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.
Data rate expressed as rate-percent self-adjusts to the speed the links comes up.
For example, if the rate-percent is configured as 10%, the rate is 100 megabits
per second (Mb/s) if the link comes up with 1G speed and its 1000 Mb/s if the
link negotiates and comes up with 10G speed.
Example
The following example configures a single rate ingress meter with packets
received at a rate below 1000 kilobits per second (Kb/s) 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
Command History
Command syntax updated in version 6.7.0 firmware.
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 {
rate-kbps
|
rate-percent
}
burstsize excess-burstsize
conform-action
action
exceed-action
action
violate-action
action
rate-kbps
— Data rate in kilobits per second (Kbps). (Range: 1 to
4294967295)