Chapter 23
| Quality of Service Commands
– 652 –
police flow This command defines an enforcer for classified traffic based on the metered flow
rate. Use the no form to remove a policer.
Syntax
[no] police flow committed-rate committed-burst
conform-action transmit
violate-action {drop| new-dscp}
committed-rate
- Committed information rate (CIR) in kilobits per second.
(Range: 0-10000000 kbps at a granularity of 64 kbps or maximum port
speed, whichever is lower)
committed-burst
- Committed burst size (BC) in bytes.
(Range: 64-16000000 at a granularity of 4k bytes)
conform-action - Action to take when packet is within the CIR and BC.
(There are enough tokens to service the packet, the packet is set green).
violate-action - Action to take when packet exceeds the CIR and BC. (There
are not enough tokens to service the packet, the packet is set red).
transmit - Transmits without taking any action.
drop - Drops packet as required by violate-action.
new-dscp - Differentiated Service Code Point (DSCP) value. (Range: 0-63)
Default Setting
None
Command Mode
Policy Map Class Configuration
Command Usage
â—† You can configure up to 16 policers (i.e., class maps) for ingress ports.
â—† The
committed-rate
cannot exceed the configured interface speed, and the
committed-burst
cannot exceed 16 Mbytes.
â—† Policing is based on a token bucket, where bucket depth (i.e., the maximum
burst before the bucket overflows) is by specified the
committed-burst
field, and
the average rate tokens are added to the bucket is by specified by the
committed-rate
option. Note that the token bucket functions similar to that
described in RFC 2697 and RFC 2698.
â—† The behavior of the meter is specified in terms of one token bucket (C), the rate
at which the tokens are incremented (CIR – Committed Information Rate), and
the maximum size of the token bucket (BC – Committed Burst Size).
The token bucket C is initially full, that is, the token count Tc(0) = BC. Thereafter,
the token count Tc is updated CIR times per second as follows:
â–
If Tc is less than BC, Tc is incremented by one, else