Tuesday 6 April 2010

Layer 2 Technologies - Implement Frame Relay (Part 1)

1.60   Implement Frame Relay

(a) Local Management Interface (LMI)

(b) Traffic shaping

(c) Topologies

(e) Discard eligible (DE)

(f) Static versus Dynamic L2 to L3 Resolution

(g) Frame-Relay Interface-DLCI

(h) Broadcast Queue

(i) Frame End to End Keepalives

(j) Load Interval

(k) PING Local Interface


LMI

So, once upon a time, Cisco, Stratacom (who got bought out by Cisco), Northern Telecom (Nortel) and Digital Equipment Corporation (HP) got together to come up with a standard for signalling things like PVC status, addressing and multicast.  Frame Relay was proving a popular technology in the WAN space, so ANSI and the ITU also came up with their take on how to make LMI behave which is each slightly different and incompatible (not really an issue as such as routers can autosense the appropriate LMI type)

A Frame Relay router (DTE) can send an LMI Status Enquiry message to a Frame Relay switch (DCE) and the switch will reply with a LMI status message to get information about the VCs configured on the interface, with their DLCIs and status.   LMI messages are sent every 10 seconds, with every sixth message containing a full Status message (more detailed VC info)

The LMI Status Enquiry/LMI Status messages act as a keep alive function, if there is no activity on LMI after the typical 3 intervals (30 seconds), the interface is considered down at layer 2.

LMI is enabled/disabled with "keepalive/no keepalive" interface commands on the FR interface. It is possible to have back to back routers using FR with both interfaces with a Frame-relay interface-type DTE (default) and keepalive turned off to allow communications to occur at Layer 2.

LMI TypeStandards Referenceframe-relay lmi-typeValid DLCI RangeLMI DLCI
CiscoProprietarycisco16-10071023
ANSIANSI T1.617 Annex Dansi16-9910
ITUITU Q.933 Annex Aq933a16-9910


Traffic Shaping

Although traffic shaping is QoS topic and will be documented further in that topic area;FR has mechanisms that require mentioning on their own.

Traffic shaping is used on router to control the traffic flow towards the WAN to ensure that the outgoing traffic is within the purchased traffic contract (a 128kbps circuit

may be bought on an interface that is physically capable of delivering 1984kbps traffic)  Traffic shaping allows the user to take action on the traffic, for example smooth

some of the burstiness of the traffic at the cost of slightly delaying it, since the WAN provider will most likely drop out of contract traffic immediately on ingress into

their network or mark out of contract traffic as eligible to be dropped if their is network congestion further downstream.

Traffic shaping works on the concept of credits.  Each packet to be sent requires a credit for each bit to be transmitted.  If there is enough credit for the packet, it is

deducted from the interface credit balance and the packet enters the queue for transmission.

Cisco Terminology for Traffic Shaping
AbbreviationTermDefinition
ARAvailable RateThis is the port speed defined by the DCE clock (for example 1984kbps)
CIRCommitted Information RateThis is the target traffic rate - this is the traffic rate the route will attempt to send traffic out at
MinCIRMinimum CIRThis is the guaranteed data rate the WAN provider will support, with all excess traffic being marked as DE (discard eligible)
BcCommitted BurstThis is number of committed bits (credits) that can be sent during an interval
BeExcess BurstThis is the number of excess burst bits (credits) above Bc a router can use in an interval (Tc) Be credits accumulate from unused Bc

credits in previous intervals
TcCommitted Rate Measurement IntervalThis is the time interval for which Bc or Bc + Be can be transmitted.  Min 10ms, Max 25ms



Traffic Shaping Commands:

frame-relay traffic-shaping

This interface level command enables traffic shaping to occur for PVCs on the interface.  Note: All PVCs will receive a default CIR of 56kbps requiring specific configuration to change this.

map-class frame-relay

This global level command defines various FR parameters related to QoS and keepalives.
 

frame-relay cir

Map-class configuration command used to define the target transmit rate.

frame-relay mincir

Map-class configuration command used to define the guaranteed transmit rate - the default value is half cir and is only used for adaptive shaping

frame-relay bc


Map-class configuration command used to define the committed burst size.  Tc is indirectly defined and calculated from Bc/CIR

frame-relay be


Map-class configuration command used to define the excess burst size.

frame-relay adaptive-shaping


Map-class configuration used to enable adaptive traffic shaping.  The method can be becn (described below), foresight (Stratacom proprietary), or interface-congestion with a listed queue depth (allow egress limiting based on available output queue)

frame-relay fecn-adapt

Map-class configuration used to enable a router to reflect FECNs (Forward congestion notification is detected by the WAN switches and attached to Frames destined to the router, which then replies with frames that have BECN (Backward congestion notification) which informs the transmitting router that it needs to reduce its transmission rate

frame-relay class

Interface/sub-interface configuration used to bind the map-class to the interface.

class

frame-relay interface-dlci sub configuation used to bind a map-class to a particular PVC.  When a class is bound to both the interface and the PVC, the interface specific configuration details will be ignored and the PVC parameters used.

FR Topologies

Frame Relay enables a rich variety of logical topologies enabling direct connection, mesh and partial mesh configurations using point-to-point and point-to-multipoint configurations.  FR sub-interface configurations enable the possibility to have multiple point-to-point configurations enabling a L3 subnet per link, as opposted to the point-to-multipoint configurations where multiple links share the same L3 domain.  It is possible to combine these configuration types on the same physical interface.

Configuring Discard Eligiblity

The Router itself to mark time-sensitive traffic with the DE bit enabling an extra level of QoS at layer 2.  Refer to this note on CCO


Static versus Dynamic L2 to L3 Resolution

Dynamic Mapping occurs using Inverse ARP and is enabled by default. Inverse ARP matches looks at each active PVC and looks for the Layer 3 address associated with it (which is the reverse of ARP on ethernet).
Static mapping bypasses the use of Inverse ARP where a specific PVC is assigned reachability for one (or more) PVCs  (make sure to include the broadcast capability if you need to support multicast/broadcast protocols).


To disable inverse arp use the "no frame-relay inverse-arp" interface level command. Why might you want to not use dynamic mapping? The WAN SP may be advertising more PVCs than you are currently interested in (for example during a network migration) static mapping will ensure the right next hop is used.

show frame-relay map is used to show static or dynamic L2/L3 mappings

Frame-relay interface-dlci

The paragraph below is summarised from http://blog.ine.com/2008/08/14/that-pesky-frame-relay-interface-dlci-command/

This command is used:

  • On point-to-point subinterfaces specifying the DLCI  (the remote side does not have to have an IP mapped to the DLCI since it is implied that non-local traffic on the subnet goes down the PVC)
  • On multipoint subinterfaces when Inverse ARP is active
  • Not used on physical interfaces because all DLCIs appear there by default (until a subinterface claims it)
When subinterfaces have map-classes associated with them, all PVCs inherit those parameters, however to attach a specific map-class to a PVC, sub commands of frame-relay interface-dlci is used to attach it.


Broadcast Queue

For large frame-relay hub and spoke networks, performance issues can manifest themselves particularly if there is a lot of broadcast traffic generated that requires replication across the PVCs such as routing protocol updates.  Cisco supports a dedicated interface level broadcast queue with its own traffic parameters limiting the maximum rate and is prioritised ahead of regular traffic when the throughput is below the limited rated.

frame-relay broadcast-queue 

Where is the byte size of the queue and and is the maximum transfer rate are specified for emptying the broadcast-queue onto the wire.

Frame-Relay End to End Keepalives

Using LMI, keepalives are used to determine remote host availability and logical circuit continuity .

Four methods are possible:


Bidirectonal mode - where each side sends out and waits for keepalive requests
Request mode - where only one side sends out and waits for keepalive responses
Reply mode - where only waits for and replies to keepalive requests
Passive-reply mode - which is like reply mode but doesn't use timers nor maintain event state

These are configurable per PVC using the frame-relay map-class configurations

frame-relay end-to-end keepalive event-window - this is the size of the event window (default send and recieve is 3)
frame-relay end-to-end keepalive mode - this is the mode of operation (bidirectional, request, reply, passive-reply)
frame-relay end-to-end success-events - how many keepalive success events must occur to bring a down interface up (default 2)
frame-relay end-to-end timer - configures the timers (default send 10s, default receive 15s)

Load-Interval

When you use the "show interface " command, the interface statistics are updated based on the load-interval which by default is 300 seconds.  When testing aspects of traffic shaping, waiting 5 minutes can be annoying, setting the load-interval to the lowest value (30 seconds) can be closer to realtime for viewing behaviour.  


The configuration can be applied directly to the physical interface, or in the frame-relay interface-dlci sub configuration.

Ping Local Interface

Blog post http://blog.ine.com/2009/12/02/ping-thyself-in-frame-relay/

Summary: By default you cannot ping your local frame-relay IP address unless you include a frame-relay map ip for the local interface address

Monday 5 April 2010

Still about!

Study has slowed down a bit lately but not completely halted.  For the last few weeks my workload has increased and I have had to do a little interstate travel for work related activities as well.

I've been working on MPLS related services on non-Cisco platforms which has been good to view how different members of industry implement similar things.

On the homelab front - I believe that I have secured my final ethernet switch.  Joining my existing 3550-24PWR and 3750-24s is a 3350-24.

The break over Easter hasn't really been open for study but I think I'll get in now while I can and put together some Frame Relay notes.