Qos and Frame Relay
Qos and Frame Relay
Vesa Kosonen
Helsinki University of Technology
Laboratory of Telecommunications Technology
P.O.Box 3000
02015 HUT, Finland
Email: [email protected]
1
With modern, high-speed telecommunications systems, • Flag (1 oct.): At the beginning and in the end there
this overhead is unnecessary since the amount of errors is a bit pattern 01111110 to tell the limits of the
has been dramatically lowered. Frame relay was frame.
developed to take advantage of the high data rates and • Address (2-4 oct.): Contains the Virtual Circuit
low error rates [2]. Frame relay was originally designed address and extra bits for congestion control.
to be used for speeds up to T1/E1 speeds (2 Mbps), but • Information (variable): Contains higher layer
has already been demonstrated to be practical for speeds protocol data. This field can contain any integral
up to 50 Mbps and even higher. number of octets. The frame relay standards suggest
that the minimum length should be 1600 octets in
Today the main usage of frame relay is to connect connection of LAN interconnection applications.
LAN/WAN networks. Other services include image Most frame relay services support a maximum
transfer, private line replacement and Internet access [3]. length of 4096 octets.
Frame relay has become very popular and many • FCS (2 oct.): The frame check sequence [3]
applications are being developed based on it.
Note the absence of a Control field in this frame. Since
2. Protocol Architecture frame relay treats all frames the same regardless of their
type and does not provide any guarantee of sequentially,
The protocol stack of frame relay is simple, only one and there is no reason for frame relay to ever examine a
a half layers. The protocol layers used are the Physical Control field. If one is present, LAPF’s core protocol
Layer and a subset of the Data Link Layer, called LAPF would consider it to be part of a higher-layer protocol
core (LAPF = Link Access Procedures to Frame Mode [3].
Bearer Services) which is defined in Q.922. LAPF is
based on and is an extension of LAPD, which is used in The address field contains information necessary for the
ISDN (Figure 1). operation of the frame relay service. This field contains
addressing information (DLCI) as well as congestion and
Data Link LAPD fairness indicators (C/R, EA, FECN, BECN and DE)
Layer LAPF core (Figure 3). The default length of this field is two octets.
Physical Physical Physical Three or four octet address field may be employed, too
Layer Layer Layer [3].
OSI ISDN Frame Relay 6 oct. 1 oct. 1 oct.
Figure 1. Comparing Protocol Stack of OSI, ISDN DLCI (high order) C/R EA0
and Frame Relay DLCI (low order) FECN BECN DE EA1
4 oct. 1 oct. 1 oct. 1 oct. 1 oct.
The Physical Layer is no different from any Physical Figure 3. Address Field Format – 2 octets (default)
Layer with definitions of how bits are transmitted. The
Data Link Layer on the other hand provides some of the Explanations to Figure 3:
same functions as defined in OSI model such as framing, • DLCI = Data Link Connection Identifier (10 bits)
addressing and bit error detection. The difference is that • C/R = Command/Response bit (1 bit)
there is no sequencing or no acknowledgements. In case • EA = Address Field Extension bit (1 bit)
of errors the frame is simply discarded. Since frame
• FECN = Forward Explicit Congestion
relay has no error correction it assumes that the network
Notification(1 bit)
infrastructure is relatively error-free (e.g. fiberglass).
• BECN = Backward Explicit Congestion Notification
Multiplexing is also performed at the Data Link Layer
(1 bit)
[3].
• DE = Discard Eligibility (1 bit)
2.1 LAPF Frame Format The Address Extension (EA) bits are used in accordance
The operation of frame relay for user data transfer is best with extended address fields. If EA is set to 0 it means
explained by beginning with the frame format (Figure 2). that more octets follow in this field. EA value 1 on the
other hand indicates that this is the final octet [3].
Flag Address Information FSC Flag
1 oct. 2-4 oct. variable 2 oct. 1 oct. 3. The Frame Relay Network
Figure 2. LAPF Core Formats Frame relay provides an unreliable, connection-oriented
service to the user. It means that a virtual circuit (VC)
has to be established before any data can be sent, but
network doesn’t give any guarantee that the data will be
delivered to the destination [3]. There are two options for
2
VC’s to choose from: Permanent Virtual Circuit (PVC)
or Switched Virtual Circuit (SVC). PVC is the original
VC, but SVC is gaining more popularity due to its
flexibility. Frame
Valid Discard
DLCI DLCI
#762 #18 Host Known
DLCI Discard
A
Host C
DLCI
3
eligible by setting the DE-bit in the frame address field be reduced. Otherwise the Frame Relay nodes will start
(Figure 3). In this way the applications that need to send discarding frames to maintain internal buffer levels. If
traffic only now and then is guaranteed bandwidth while end-points do not reduce their transmission rate in this
the applications that need to send much traffic are situation, "packet storms" can result as stations
allowed to do so. Bandwidth across the access line never retransmit discarded data onto an already overloaded
goes unused as long as some applications have data to network [5].
send (Figure 6) [3].
Figure 7 shows the problem of congestion graphically.
During periods of no congestion, network throughput is
able to keep pace with the incoming traffic. At some
level of incoming traffic (point A), the network may
discard some frames due to localized congestion.
Network throughput decreases gradually once this period
of mild congestion begins (from A to B). As a result two
responses may occur. First, end users who have lost
frames will request retransmission, adding even more to
the traffic load in the network. Second, congestion in the
network results in delays at end-user equipment, causing
timeouts and, again, requests for retransmission. As a
result the incoming traffic will increase to point B, where
Frame 1 Frame 2 Frame 3 Frame 4 severe congestion begins. If this point is reached,
within CIR within CIR marked “DE” discarded at ingress
network throughput will degrade rapidly. To offset the
Figure 6. Relationship between CIR, DE and other negative effects of congestion, frame relay’s congestion
Class of Service Parameters. control strategy is to slow down the rate of incoming
traffic if the level reaches point A; in that way, incoming
Explanations to Figure 6: traffic level will never reach the potentially crippling
• Tc= the Committed Rate Measurement Interval, is point B [3].
the interval of time over which information transfer
rates are measured, normally 1 s. Congestion control is normally the function of the
• Bc=Committed Burst Size, is the maximum number Network Layer prototocol, but since frame relay doesn’t
of bits the network guarantees to deliver during the have one it is the function of the Data Link Layer.
time interval Tc under normal circumstances. Congestion control can be implemented in a frame relay
• CIR is defined as "the troughput rate that the network in the following ways:
network agrees to support under normal conditions" • use of the Explicit Congestion Notification bits
or CIR = Bc/Tc [bit/s] • the Consolidated Link Layer Management Protocol
• Be= Excess Burst Size, which is the maximum • Implicit Congestion Notification [3].
number of bits above the CIR that the network will
attempt to deliver during Tc (DE=1).
• EIR= Excess Information Rate, EIR=Be/Tc
• All the frames that exceed Bc+Be will be discarded.
• To avoid frame discards: Access Rate = Bc + Be
4
5.1 Explicit Congestion Notification (ECN) 3. If a consecutive sequence of frames with the
BECN bit set to zero are received, then gradually
In frame relay there are two congestion bits in use increase the flow of frames [2].
(Figure 3 and Figure 8):
In general terms, for explicit congestion avoidance, the
• FECN - Forward Explicit Congestion Notification network alerts end systems to growing congestion within
• BECN - Backward Explicit Congestion Notification the network and the end systems take steps to reduce the
offered load to the network [6].
The FECN bit is set to notify the receiving end system
that the marked frame has encountered congestion. In 5.2 The Consolidated Link Layer
response to this, the receiving system should try to
reduce the flow of data from the sending system on this Management Protocol (CLLM)
frame relay connection. The mechanism for doing so There is a potential deficiency when using the ECN bits:
must be above the level of the frame relay bearer service, How does the source become informed about congestion,
which provides no direct flow-control facilities [2]. if there are no frames being sent back to it by the
destination? For this kind of situation there exists CLLM
User message. It is generated by the network and sent to the
source host to inform to reduce the number of frames
that it is sending. CLLM message is sent in LAPF
frames on DLCI 1007 and indicates the list of all
affected VCs as well as the cause and expected duration
of the congestion [3].
1. When the first frame with the BECN bit is Frame relay has become an interest of many research
received, reduce the information rate to CIR. projects and will be one of the most popular transport
2. If additional consecutive frames with the BECN technologies used in the Internet in the future, too.
bit set are received, then institute additional
reductions.
5
References
[1] http://www.frforum.com/6000/FRF_14PR.html
[2] Stallings, William: ISDN and broadband ISDN with
Frame Relay and ATM, Fourth edition, Prentice-Hall,
Inc. 1999.
[3] Kessler, Gary and Southwick Peter: ISDN: concepts,
facilities and services, Signature (4th) edition, McGraw-
Hill series, 1998.
[4] http://135.145.192.160:80/cgi-
bin/auth.pl?file=framerelay_security_guide.htm&session
=35f6c3c61b015f2f#2-1
[5] http://www.datacraft.com.au/whitepapers/f_relay.htm
[6] Stallings, William: High-Speed Networks, TCP/IP
and ATM Design Principles, Prentice-Hall, Inc. 1998.