Configuring traffic policing on brocade devices, Described in, Configuring a – Brocade Multi-Service IronWare QoS and Traffic Management Configuration Guide (Supporting R05.6.00) User Manual
Page 33: Policy map

Multi-Service IronWare QoS and Traffic Management Configuration Guide
19
53-1003037-02
Traffic policing on the Brocade device
2
Configuring traffic policing on Brocade devices
The following sections show examples of how to configure each traffic policing policy type.
Configuring a policy map
To configure a policy map, enter a command such as the following.
Brocade(config)#policy-map map5
Brocade(config-policymap map5)#cir 1000000 cbs 2000000 eir 1000000 ebs 2000000
excess-dp 2 excess-dscp 37
The command configures the traffic policing policy map map1 to limit CIR rate to 1000000 the CBS
rate to 2000000, the EIR rate to 1000000 and the EBS to 2000000. In addition, traffic that
exceeds the bandwidth available in the CIR bucket will have its packets drop precedence set to 2
and its DSCP set to 37. This command only creates a policy, it must be applied to one or more ports
to be operational.
Syntax: [no] policy-map map-name cir cir-rate cbs cbs-rate [eir eir-rate ebs ebs-rate excess-priority
priority-num [excess-dscp dscp-num]] | [eir eir-rate ebs ebs-rate excess-dp dp-val
[excess-dscp dscp-num]]
The map-name variable is the name you will use to reference the policy map in traffic policing
command. It can be a character string up to 64 characters long.
The cir parameter defines the value of the Committed Information Rate (CIR) as the rate defined in
the cir-rate variable. Acceptable values are: 0 - 10000000000 bits per second (bps) in increments
of 8,144 bps.
The cbs parameter defines the value of the Committed Burst Size (CBS) as the rate defined in the
cbs-rate variable. Acceptable values are: 1250 - 1250000000 bytes in increments of 1 byte.
The eir parameter defines the value of the Excess Information Rate (EIR) as the rate defined in the
eir-rate variable. Acceptable values are: 0 - 10000000000 bits per second (bps) in increments of
8,144 bps.
The ebs parameter defines the value of the Excess Burst Size (EBS) as the rate defined in the
ebs-rate variable. Acceptable values are: 1250 - 1250000000 bytes in increments of 1 byte.
The excess-priority parameter specifies that traffic whose bandwidth requirements exceeds what is
available in the CIR bucket and is sent to the EIR bucket will have its packets priority queue set to
the value set in the priority-num variable. Acceptable values for the priority-num are 0-7.
The excess-dp parameter specifies the WRED drop precedence for traffic whose bandwidth
requirements exceed what is available in the CIR bucket and is sent to the EIR bucket. Acceptable
values for the dp-value are 0-3. Packets with a value of 0 are least likely to be dropped and packets
with a value of 3 are most likely to be dropped.
The excess-dp parameter is compared with the excess-dscp parameter in bit [2:1] first, then it is
converted.
The excess-dscp parameter specifies that traffic whose bandwidth requirements exceeds what is
available in the CIR bucket and is sent to the EIR bucket will have its packets DSCP priority set to
the value set in the dscp-num variable. Acceptable values for the dscp-num are 0-63. When this
parameter is used together with the excess-dp parameter, the value set for bits 2:1 (zero-based) in
the excess-dscp parameter must be equal to the value set for excess-dp.