Design Issues of Datalink Layer
Design Issues of Datalink Layer
Figure : A byte stream. (a) Without errors. (b) With one error.
2.1 DATA LINK LAYER DESIGN ISSUES
2.1.2 Framing
Figure : (a) A frame delimited by flag bytes. (b) Four examples of byte sequences
before and after byte stuffing.
2.1 DATA LINK LAYER DESIGN ISSUES
2.1.2 Framing
• The third method of delimiting the bit stream gets
around a disadvantage of byte stuffing, which is that it
is tied to the use of 8-bits. Framing can be also be
done at the bit level, so frames can contain an
arbitrary number of bits made up of units of any size.
• It was developed for the once very popular HDLC
(High-level Data Link Control) protocol. Each frame
begins and ends with a special bit pattern, 01111110.
• When the receiver sees five consecutive incoming 1
bits, followed by a 0 bit, it automatically de-stuffs (i.e.,
deletes) the 0 bit.
2.1 DATA LINK LAYER DESIGN ISSUES
2.1.2 Framing
2.1 DATA LINK LAYER DESIGN ISSUES
2.1.2 Framing
• The last method of framing is ‘‘coding violations’’
to delimit frames. The beauty of this scheme is
that, because it is easy to find the start and end of
frames and there is no need to stuff the data.
• Many data link protocols use a combination of
these methods for safety. A common pattern used
for Ethernet and 802.11 is to have a frame begin
with a well-defined pattern called a preamble.
• The preamble is then followed by a length (i.e.,
count) field in the header that is used to locate the
end of the frame.
2.1 DATA LINK LAYER DESIGN ISSUES
2.1.3 Error Control
The data link layer ensures error free link for data
transmission. The issues it caters to with respect to
error control are −
• Dealing with transmission errors
• Sending acknowledgement frames in reliable
connections
• Retransmitting lost frames
• Identifying duplicate frames and deleting them
• Controlling access to shared channels in case of
broadcasting
2.1 DATA LINK LAYER DESIGN ISSUES
2.1.3 Flow Control
• The data link layer regulates flow control so that a
fast sender does not drown a slow receiver. When
the sender sends frames at very high speeds, a
slow receiver may not be able to handle it. There
will be frame losses even if the transmission is
error-free.
The two common approaches for flow control are −
1. Feedback based flow control
2. Rate based flow control
2.1 DATA LINK LAYER DESIGN ISSUES
2.1.3 Error Control
• In the first one, feedback-based flow control, the
receiver sends back information to the sender
giving it permission to send more data, or at least
telling the sender how the receiver is doing.