Frame Relay OverviewFrame Relay is probably
the simplest data communications protocol ever conceived. Designed to
run over virtually error- free circuits, it's a protocol stripped down
for speed. The need for a streamlined protocol like Frame Relay grows from several facts of modern data communications: Thanks especially to cleaner transmission and smarter workstations, the procedures that traditional Data Link and Network protocols use to recognize and correct errors have become redundant for jobs that require large volume at high speeds. Frame Relay handles volume and speed efficiently by combining the necessary functions of the Data Link and Network layers into one simple protocol. As a Data Link protocol, Frame Relay provides access to a network, delimits and delivers frames in proper order, and recognizes transmission errors through a standard Cyclic Redundancy Check. As a Network protocol, Frame Relay provides multiple logical connections over a single physical circuit and allows the network to route data over those connections to its intended destinations. In order to operate efficiently, Frame Relay eliminates all the error handling and flow control procedures common to conventional protocols such as SDLC and X.25. In their place, it requires both an error-free transmission path, such as a digital carrier circuit or a fiber span, and intelligent higher- layer protocols in the user devices. By definition, Frame Relay is an access protocol that operates between an end-user device such as a LAN bridge or router or a front-end processor and a network. The network itself can use any transmission method that's compatible with the speed and efficiency that Frame Relay applications require. Some networks use Frame Relay itself; others use either digital circuit switching or one of the new cell relay systems. Frame Relay NetworksThe logical path along
an originating Frame Relay link, through the network, and along a terminating
Frame Relay link to its ultimate destination is called a virtual route
or virtual circuit. In a network with Frame Relay access, a virtual circuit
uniquely defines the path between two endpoints. A Frame Relay network can discard data for any of three reasons: A Frame Relay network relies on the higher-layer protocols in its attached devices to recover from errors or congestion. In practice, this means that the higher layers must recognize that the network has discarded one or more frames of data. Most higher-layer protocols use rotating sequence numbers to recognize frames that have been discarded. When a device receives a sequence number out of order, it requests that its partner retransmit all frames in order since the last frame it received with a correct sequence number. In a well-tuned network, this typically includes the missing frame and all frames that its originator had transmitted in the time the destination device took to recognize the discard and send a message across the network requesting retransmission. In most cases, the originating device retransmits more data than would have been necessary. This is a very reliable way to recover data lost through occasional transmission errors. However, when data's been discarded because of traffic congestion, bulk retransmission can only make the problem worse. Fortunately, most higher-layer protocols use some form of throttling or flow control mechanism to recognize and prevent congestion. The Frame Relay protocol also provides a way for the network to alert its subscribers when it becomes congested. The header of each Frame Relay frame contains two Explicit Congestion Notification bits that the network can set if it transmits that frame over a congested path. Each of these bits signifies congestion in a specific direction on the virtual route. A value of 1 in the Forward Explicit Congestion Notification (FECN, pronounced "feacon") bit indicates that the frame has encountered a congested path on its way across the network. A value of 1 in the Backward Explicit Congestion Notification (BECN, pronounced "beacon") bit indicates that the path through the network in the direction opposite the frame's path (i.e., toward the frame's source) is congested. The FECN and BECN bits explicitly notify a subscriber's device of congestion on the network and implicitly ask that device to withhold traffic or reduce its transmission rate until the congestion has cleared. Frame Relay Frame Header
8 7 6 5 4 3 2 1
| | | | | | | | |
0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | FLAG
`-----`-----`-----`-----`-----`-----`-----`-----' ...
| | | | :
1 | DLCI (high-order bits) | C/R | EA | : FRAME
`-----------------------------------`-----`-----' > RELAY
| | | | | | : HEADER
2 | DLCI (low-order bits) | FECN| BECN| DE | EA | :
`-----------------------`-----`-----`-----`-----' ..:
| | | |
3 | ADDRESS EXTENSION | D/C | EA | EXTENDED
`-----------------------------------`-----`-----' ADDRESS
The Frame Relay frame
header is illustrated above. The first octet is a flag field that delimits
the frame from another frame or from idle time on the circuit. The second
octet contains the first 6 bits of the 10-bit DLCI followed by a Command/Response
bit (C/R) and the frame's first Extended Address (EA) bit. Local Management InterfaceA major area where
the Frame Relay protocol leaves room for improvement is the management
of the interface. The network and the subscriber's device should be able
to communicate information on which DLCIs have been configured for the
link and on which DLCIs are currently active. Since Frame Relay applications
can go for relatively long periods without bursts of data, the devices
also need a mechanism for ensuring that the physical link is running normally
in the absence of traffic. The subscriber begins an LMI exchange by sending a Status Enquiry message. The Network completes the exchange by answering with a Status message. An exchange of LMI messages can perform either of two functions:
LMI Frame Header8 7 6 5 4 3 2 1 | | | | | | | | | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | FLAG `-----`-----`-----`-----`-----`-----`-----`-----` ... 1 | 1 1 1 1 1 1 | 0 | 0 | : LMI `-----------------------------------`-----`-----` > DLCI 2 | 1 1 1 1 | 0 | 0 | 0 | 1 | : 1023 `-----------------------`-----`-----`-----`-----' ..: 3 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | LAPD UI `-----`-----`-----`-----`-----`-----`-----`-----' 4 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | PROT DISC `-----`-----`-----`-----`-----`-----`-----`-----' 5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | DUMMY CREF `-----`-----`-----`-----`-----`-----`-----`-----' 6 | MESSAGE TYPE (STATUS OR STATUS ENQUIRY) | `-----------------------------------------------' | INFORMATION ELEMENTS ACCORDING TO TYPE | `-----------------------------------------------' An LMI frame is divided
into a header of 6 octets (beyond the flag) and a list of Information
Elements (IEs) that carry the heartbeat or status information. The Data
Link protocol used for LMI is a subset of LAPD, the ITU's Link protocol
for ISDN signalling. Where the Frame Relay link protocol defines a 2-
octet frame header, the LAPD protocol defines a 6-octet header. LMI Frame Information ElementsBehind the header, the basic LMI protocol recognizes just three types of information elements (IEs): All LMI messages contain one Report Type element and one Keep- Alive element. A full Status message from the network to the subscriber also contains one PVC Status element for each PVC on the link. The Keep-Alive information element contains a pair of 8-bit sequence numbers, Current and Last Received, through which the heartbeat process maintains a running check on the health of the link. The heartbeat process is similar to the error detection mechanism used by higher-layer protocols. At a regular interval, the subscriber sends a Status Enquiry message that contains a Report Type value of Sequence Number Exchange and a Keep-Alive Element. When the Network receives the message, it records the Current Sequence Number as its Last Received Sequence Number, increments it by one to produce its new Current Sequence Number, and transmits a Status message with a Keep-Alive element that contains the new numbers. The sequence numbers rotate in Modulo 256 with one exception. In normal sequence counting, both the subscriber and the network must skip the value 0. Either side may reset its sequence count to 0 at any time: the LMI specification leaves this option open to implementers as a way to reset the heartbeat process in response to conditions on the link. If either side receives a heartbeat message in which the Sequence Numbers don't follow correctly, it may declare an LMI sequence error. The LMI protocol does not define how users are to handle errors, but suggests maintaining a count of "error events," including bad frames (failed frame checks) and LMI sequence errors, and initiating error-handling procedures when the count reaches a specified threshold within a specified period. Error handling mechanisms such as alarms and link resets are left to the implementers. After a specified number of sequence number exchanges, the subscriber issues a Status Enquiry with a value of "Full Status" in the Report Type element. The network answers with a Status Message containing a PVC Status information element for each DLCI currently defined for the link. Like all LMI information elements, it begins with 2 octets that indicate its element type and length. The next 2 octets contain the DLCI of the PVC on which the element reports. Note that the format of the DLCI octets is different from that in the Frame Relay header. In the first octet after the DLCI, the first 4 bits are not used and are set to 0. Two of the next 4 bits have meaning in all LMI implementations:
The N bit is set to
1 only when the PVC Status element is reporting on a newly defined DLCI.
The N bit will be reset to 0 in all subsequent PVC Status elements for
that DLCI. Optional LMI ExtensionsThe LMI specification also defines several optional extensions: Implementers may build any, all, or none of these features into their networks. Global AddressingThe global addressing
convention defines a simple commitment from the operator of a network
that DLCIs will remain unique throughout the network. In a globally addressed
network, each DLCI identifies a subscriber device uniquely. MulticastingThe LMI multicast
capability adapts a popular feature from the LAN world. It reserves a
block of DLCIs (1019 to 1022) as multicast groups so that a subscriber
wishing to transmit a message to all members of the group must transmit
the message only once on the multicast DLCI. Flow ControlThe optional LMI flow
control capability provides a way for the network to report congestion
to the subscriber. The flow control feature uses the optional R bit in
the PVC Status information element as a "Receive-Not-Ready"
signal for the PVC whose status is being reported. A 1 in the R bit indicates
congestion; a 0 indicates no congestion. Communicating the Minimum Bandwidth AvailableThe next optional
feature uses the three reserved octets at the end of the PVC Status information
element to communicate the minimum bandwidth available on the network
to the PVC. Status Update MessageThe final optional
feature of LMI allows the network to communicate changes in a PVC's status
by means of a message type called Status Update without first receiving
a Status Enquiry from the subscriber. Changes reported include:
Consolidated Link Layer ManagementAnother signalling
protocol for Frame Relay networks predates LMI. In its original Frame
Relay specification, the American National Standards Institute (ANSI)
defines an optional Consolidated Link Layer Management (CLLM) message. Frame Relay StandardsAlongside a very active community of implementers, several standards bodies have defined specifications for aspects of Frame Relay communications. In North America, Committee T1S1 of the Exchange Carrier Standards Association has been assigned to draft Frame Relay standard for the American National Standards Institute (ANSI):
Internationally, the International Telecommunications Union (ITU) has defined a corresponding set of standards:
The Frame Relay standards differ from the current practice of Frame Relay communications in one important respect. All the standards assume that the Frame Relay link will carry switched virtual circuits over one channel of an ISDN access interface, while virtually all real-world implementations of Frame Relay are carrying permanent virtual circuits over dedicated access circuits into special packet networks. Thus, the standards are much more complex than their current implementations. The standards define a set of necessarily elaborate signalling procedures for:
In practice so far, the one-time process of subscribing to a Frame Relay service replaces all of this signalling. As carriers implement ISDN more widely, the ISDN signalling aspects of the Frame Relay standards will become more important.
|