Configuring a Policer Overhead
Configuring a policer overhead allows you to control the rate of traffic sent or received on an interface. When you configure a policer overhead, the configured policer overhead value (bytes) is added to the length of the final Ethernet frame. This calculated length of frame is used to determine the policer or the rate limit action. Therefore, the policer overhead enables you to control the rate of traffic sent or received on an interface. You can configure the policer overhead to rate-limit queues and Layer 2 and MAC policers. The policer overhead and the shaping overhead can be configured simultaneously on an interface.
This feature is supported on M Series and T Series routers with IQ2 PICs or IQ2E PICs, and on MX Series DPCs.
To configure a policer overhead for controlling the rate of traffic sent or received on an interface:
- In the [edit chassis] hierarchy level in configuration
mode, create the interface on which to add the policer overhead to
input or output traffic.[edit chassis]user@host# edit fpc fpc pic pic
For example:
[edit chassis]user@host# edit fpc 0 pic 1 - Configure the policer overhead to control the input or
output traffic on the interface. You could use either statement or
both the statements for this configuration. [edit chassis fpc fpc pic pic]user@host# set ingress-policer-overhead bytes;user@host# set egress-policer-overhead bytes;
For example:
[edit chassis fpc 0 pic 1]user@host# set ingress-policer-overhead 10;user@host# set egress-policer-overhead 20; - Verify the configuration:
[edit chassis] user@host# show fpc 0 { pic 1 { ingress-policer-overhead 10; egress-policer-overhead 20; } }
![]() | Note: When the configuration for the policer overhead bytes on a PIC is changed, the PIC goes offline and then comes back online. In addition, the configuration in the CLI is on a per-PIC basis and, therefore, applies to all the ports on the PIC. |