5 DataLink Layer

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Data Link Layer

Dr.B.H.K
OSI Reference Model: 7 Layers

Dr.B.H.K
OSI: Data Link Layer
• Data link layer attempts to provide reliable
communication over the physical layer interface.
• Breaks the outgoing data into frames and reassemble
the received frames.
• Create and detect frame boundaries.
• Handle errors by implementing an acknowledgement
and retransmission scheme.
• Implement flow control.
• Supports points‐to‐point as well as broadcast
communication.
• Supports simplex, half‐duplex or full‐duplex
communication.

Dr.B.H.K
OSI: Data Link Layer
• Data Link Layer is second layer of OSI Layered Model. This
layer is one of the most complicated layers and has
complex functionalities and liabilities.
• Data link layer hides the details of underlying hardware and
represents itself to upper layer as the medium to
communicate.
• Data link layer works between two hosts which are directly
connected in some sense. This direct connection could be
point to point or broadcast. Systems on broadcast network
are said to be on same link.
• The work of data link layer tends to get more complex
when it is dealing with multiple hosts on single collision
domain.

Dr.B.H.K
OSI: Data Link Layer
• Data link layer is responsible for converting data
stream to signals bit by bit and to send that over
the underlying hardware.
• At the receiving end, Data link layer picks up data
from hardware which are in the form of electrical
signals, assembles them in a recognizable frame
format, and hands over to upper layer.
• Data link layer has two sub-layers:
– Logical Link Control: It deals with protocols, flow-
control, and error control
– Media Access Control: It deals with actual control of
media

Dr.B.H.K
Functionality of Data-link Layer
Functions of Data Link Layer:
• Framing: Frames are the streams of bits received from the network
layer into manageable data units. This division of stream of bits is
done by Data Link Layer.
• Physical Addressing: The Data Link layer adds a header to the frame
in order to define physical address of the sender or receiver of the
frame, if the frames are to be distributed to different systems on
the network.
• Flow Control: A flow control mechanism to avoid a fast transmitter
from running a slow receiver by buffering the extra bit is provided
by flow control. This prevents traffic jam at the receiver side.
• Error Control: Error control is achieved by adding a trailer at the
end of the frame. Duplication of frames are also prevented by using
this mechanism. Data Link Layers adds mechanism to prevent
duplication of frames.
• Access Control: Protocols of this layer determine which of the
devices has control over the link at any given time, when two or
more devices are connected to the same link.
Dr.B.H.K
Design Issues with Data Link Layer

Design Issues :
• The issue that arises in the data link layer(and most of
the higher layers as well) is how to keep a fast
transmitter from drowning a slow receiver in data.
• Some traffic regulation mechanism is often needed to
let the transmitter know how much buffer space the
receiver has at the moment. Frequently, the flow
regulation and the error handling are integrated.
• Broadcast networks have an additional issue in the
data link layer:
– How to control access to the shared channel.
– A special sublayer of the data link layer, the Medium
Access Control(MAC) sublayer, deals with this problem.

Dr.B.H.K

You might also like