Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Configuring CoS for L2TP Tunnels on ATM Interfaces

The Layer 2 Tunneling Protocol (L2TP) is often used to carry traffic securely between an L2TP network server (LNS) to an L2TP access concentrator (LAC). CoS is supported for L2TP session traffic to a LAC on platforms configured as an LNS that include egress IQ2 PICs. Supported routers are:

  • M7i and M10i routers

  • M120 routers

To enable session-aware CoS on an L2TP interface, include the per-session-scheduler statement at the [edit interfaces unit logical-unit-number] hierarchy level.

You also must set the IQ2 PIC mode for session-aware traffic shaping and set the number of bytes to add to or subtract from the packet before ATM cells are created. To configure these options on the ingress side of the tunnel, include the ingress-shaping-overhead and mode session-shaping statements at the [edit chassis fpc slot-number pic pic-number traffic-manager] hierarchy level.

Various limitations apply to this feature:

  • Only 991 shapers are supported on each IQ2 PIC.

  • Sessions in excess of 991 cannot be shaped (but they can be policed).

  • There is no support for PPP multilinks.

  • The overall traffic rate cannot exceed the L2TP traffic rate, or else random drops result.

  • There is no support for logical interface scheduling and shaping at the ingress because all schedulers are now reserved for L2TP.

  • There is no support for physical interface rate shaping at the ingress.

You can provide policing support for sessions with more than the 991 shapers on each IQ2 PIC. Each session can have four or eight different classes of traffic (queues). Each class needs its own policer; for example, one for voice and one for data traffic. The policer is configured within a simple-filter statement and only forwarding class is supported in the from clause. Only one policer can be referenced in each simple filter.

The following example shows a policer within a simple filter applied to two assured forwarding classes:

You can also set the number of bytes to add to or subtract from the packet at the egress of the tunnel. To configure these options on the egress side of the tunnel, include the egress-shaping-overhead and mode session-shaping statements at the [edit chassis fpc slot-number pic pic-number traffic-manager] hierarchy level.