Users Guide

Class-of-Service 1511
6
Create a simple policer in color blind mode. Packets below the committed
information rate (CIR) or committed burst size (CBS) are assigned drop
precedence green. Packets that exceed the CIR (in Kbps) or CBS (in
Kbytes) are colored red. Both the conform and violate actions are set to
transmit as WRED is used to drop packets when congested.
console(config-policy-classmap)#police-simple 10000000 64
conform-action transmit violate-action transmit
console(config-policy-classmap)#exit
console(config-policy-map)#exit
7
Define a policy-map in color aware mode matching class cos-any (IPv4).
Ingress IPv4 traffic arriving at a port participating in this policy will be
assigned green, yellow, or red coloring based on the meter.
console(config)#policy-map two-rate-policy in
console(config-policy-map)#class tcp
8
Create a two-rate policer per RFC 2698. The CIR value is 800 Kbps and
the CBS is set to 96 Kbytes. The PIR is set to 950 Kbps and the PBS is set
to 128 Kbytes.
Color-aware processing is enabled via the conform-color command; i.e.,
any packets not in CoS 0 or CoS 1 are pre-colored “red.” Packets in CoS 0
are pre-colored yellow. Packets in CoS 1 are pre-colored green. Pre-coloring
gives greater bandwidth to CoS 1 packets as they are initially subject to the
CIR/CBS limits. Packets in CoS 0 are subject to the PIR limits. Based on
the CIR/CBD, the PIR/PBS, and the conform, exceed, and violate actions
specified below:
TCP packets with rates less than or equal to the CIR/CBS in class
CoS 1 are conforming to the rate (green).
These packets will be dropped randomly at an increasing rate between
0 and 3% when the outgoing interface is congested between 80 and
100%.
TCP packets with rates above the CIR/CBS and less than or equal to
PIR/PBS in either class CoS 1 or class CoS 2 are policed as exceeding
the CIR (yellow). These packets will be dropped randomly at an
increasing rate between 0 and 5% when the outgoing interface is
congested between 70 and 100%.