Chapter 18: Quality of Service (QoS) (CLI)
Configuring Policers (Rate Metering) (CLI)
phn-3963_004v000
Page 18-346
Configuring the Line Compensation Value for a Rate Meter
(Policer) (CLI)
A rate meter can measure CIR and EIR at Layer 1 or Layer 2 rates. Layer 1 capacity is equal to Layer
2 capacity plus 20 additional bytes for each frame due to the preamble and Inter Frame Gap (IFG).
In most cases, the preamble and IFG equals 20 bytes, but other values are also possible. Line
compensation defines the number of bytes to be added to each frame for purposes of CIR and EIR
calculation. When Line Compensation is 20, the rate meter operates as Layer 1. When Line
Compensation is 0, the rate meter operates as Layer 2. This parameter is very important to users
that want to distinguish between Layer 1 and Layer 2 traffic.
To configure the rate meter (policer) line compensation value for an interface, go to interface view
for the interface and enter the following command:
eth type eth [x/x]>rate-meter-compensation-value set <value>
To display the rate meter (policer) line compensation value for an interface, go to interface view for
the interface and enter the following command:
eth type eth [x/x]>rate-meter-compensation-value get
Table 163 Assigning Line Compensation Value for Rate Meter CLI Parameters
Parameter
Input Type
Permitted Values
Description
value
Number
0 – 32
Policers attached to the interface
use this value to compensate for
Layer 1 non-effective traffic bytes.
Example
The following command sets the line compensation value for policers attached to GbE 1 to 20:
eth type eth [1/1]>rate-meter-compensation-value set 20
Displaying Rate Meter Statistics for an Interface (CLI)
For the rate meter (policer) at the logical interface level, you can display the following statistics
counters:
Green Frames
Green Bytes
Yellow Frames
Yellow Bytes
Red Frames
Red Bytes