Users Guide

Layer 2 Switching Commands 724
Example
The following example uses a simple policer to color TCP packets that exceed
an average rate of 1000 Kbps or a burst size of 16 Kbytes as red. Conforming
packets (those in CoS queue 1) are pre-colored green prior to metering. After
metering, non-conforming packets are colored red. Both green and red
packets are transmitted, but may be subject to further color-based action on
egress. The example configuration below also shows the configuration of
WRED drop thresholds and probabilities for colored traffic.
console(config)#class-map match-all class-ipv4
console(config-classmap)#match any
console(config-classmap)#exit
console(config)#class-map match-all class-cos1
console(config-classmap)#match cos 1
console(config-classmap)#exit
console(config)#policy-map color in
console(config-policy-map)#class class-ipv4
console(config-policy-classmap)#police-simple 1000 16 conform-action
transmit violate-action transmit
console(config-policy-classmap)#conform-color class-cos1
console(config-policy-classmap)#exit
console(config-policy-map)#exit
cos-queue min-bandwidth
Use the cos-queue min-bandwidth command in either Global Configuration
mode or Interface Configuration mode to specify the minimum transmission
bandwidth for each interface queue. To restore the default for each queue’s
minimum bandwidth value, use the no form of this command.
Syntax
cos-queue min-bandwidth bw-0 bw-1 … bw-n
no cos-queue min-bandwidth
bw-0 — Specifies the minimum transmission bandwidth guarantee for an
interface. You must specify as many bandwidth parameters as there are
COS queues (bw-0 through bw-n). (Range: 0–100 in increments of 5)
Default Configuration
By default, all CoS queues are configured with a 0% minimum bandwidth
guarantee.