Data Link Layer Intro
Data Link Layer Intro
Introduction
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 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
Page 2
Framing:
• To provide service to the network layer, the data link layer must use the
service provided to it by the physical layer.
• What the physical layer does is accept a raw bit stream and attempt to
deliver it to the destination. This bit stream is not guaranteed to be
error free.
• . It is up to the data link layer to detect and, if necessary, correct errors.
• The usual approach is for the data link layer to break the bit stream up
into discrete frames and compute the checksum for each frame. When
a frame arrives at the destination, the checksum is recomputed. If the
newly computed checksum is different from the one contained in the
frame, the data link layer knows that an error has occurred.
Page 4
• Figure above : Bit stuffing. (a) The original data. (b) The
data as they appear on the line. (c) The data as they
are stored in the receiver's memory after destuffing.