Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
 

Related Documentation

 

Configuring Rate Limiting of Ethernet OAM Messages

M Series, M320 with Enhanced III FPC, M120, M7i and M10 with CFEB, and MX Series routers support rate limiting of Ethernet OAM messages. Depending on the connectivity fault management (CFM) configuration, CFM packets are discarded, sent to the CPU for processing, or flooded to other bridge interfaces. This feature allows the router to intercept incoming CFM packets for prevention of DoS attacks.

You can apply rate limiting of Ethernet OAM messages at either of two CFM policing levels, as follows:

  • Global-level CFM policing—uses a policer at the global level to police the CFM traffic belonging to all the sessions.
  • Session-level CFM policing—uses a policer created to police the CFM traffic belonging to one session.

To configure global-level CFM policing, include the policer statement and its options at the [edit protocols oam ethernet connectivity-fault-management] hierarchy level.

To configure session-level CFM policing, include the policer statement at the [edit protocols oam ethernet connectivity-fault-management maintenance-domain name level number maintenance-association name] hierarchy level.

The following example shows a CFM policer used for rate-limiting CFM:

[edit]
firewall {policer cfm-policer {if-exceeding {bandwidth-limit 8k;burst-size-limit 2k;}then discard;}}

Case 1: Global-Level CFM Policing

This example shows a global level policer, at the CFM level, for rate-limiting CFM. The continuity-check cfm-policer statement at the global connectivity-fault-management policer hierarchy level specifies the policer to use for policing all continuity check packets of the CFM traffic belonging to all sessions. The other cfm-policer1 statement at the connectivity-fault-management policer hierarchy level specifies the policer to use for policing all non-continuity check packets of the CFM traffic belonging to all sessions. The all cfm-policer2 statement specifies to police all CFM packets with the specified policer cfm-policer2. If the all policer-name option is used, then the user cannot specify the previous continuity-check and other options.

[edit protocols oam ethernet]
connectivity-fault-management {policer {continuity-check cfm-policer;other cfm-policer1 ;# all cfm-policer2;}}

Case 2: Session-Level CFM Policing

This example shows a session-level CFM policer used for rate-limiting CFM. The policer statement at the session connectivity-fault-management maintenance-domain md maintenance-association ma hierarchy level specifies the policer to use for policing only continuity check packets of the CFM traffic belonging to the specified session. The other cfm-policer1 statement at the connectivity-fault-management maintenance-domain md maintenance-association ma hierarchy level specifies the policer to use for policing all non-continuity check packets of the CFM traffic belonging to this session only. The all cfm-policer2 statement specifies to police all CFM packets with the specified policer cfm-policer2. If the all policer-name option is used, then the user cannot specify the previous continuity-check and other options.

[edit protocols oam ethernet]
connectivity-fault-management {maintenance-domain md {level number;maintenance-association ma {continuity-check {interval 1s;}policer { continuity-check cfm-policer;other cfm-policer1; # all cfm-policer2; }mep 1 {interface ge-3/3/0.0;direction up;auto-discovery;}}}}

In the case of global CFM policing, the same policer is shared across multiple CFM sessions. In per-session CFM policing, a separate policer must be created to rate-limit packets specific to that session.

Service-level policer configuration for any two CFM sessions on the same interface at different levels must satisfy the following constraints if the direction of the sessions is the same:

  • If one session is configured with policer all, then the other session cannot have a policer all or policer other configuration.
  • If one session is configured with policer other, then the other session cannot have a policer all or policer other configuration.

Note: A commit error will occur if such a configuration is committed.

Note: Policers with PBB and MIPs are not supported.

 

Related Documentation

 

Published: 2013-02-13

 

Related Documentation

 

Published: 2013-02-13