Data Link Layer - I
Data Link Layer - I
UNIT-III
By
Deepika
Assistant Professor
Data Link Layer is second layer of OSI Layered Model.
The Data link layer protocol defines the format of the packet
exchanged across the nodes as well as the actions such as
Error detection, retransmission, flow control, and random
access.
The Data Link Layer protocols are Ethernet, token ring,
FDDI and PPP.
Logical Link Control (LLC): This sublayer of the
data link layer deals with multiplexing, the flow of data
among applications and other services, and LLC is
responsible for providing error messages and
acknowledgments as well.
Media Access Control (MAC): MAC sublayer
manages the device’s interaction, responsible for
Sub-Layers: addressing frames, and also controls physical media
access.
• The data link layer encapsulates the source and destination’s MAC address/ physical address in
the header of each frame to ensure node-to-node delivery.
• MAC address is the unique hardware address that is assigned to the device while manufacturing.
Error Control:
• Data can get corrupted due to various reasons like noise, attenuation, etc.
• So, it is the responsibility of the data link layer, to detect the error in the transmitted data and
correct it using error detection and correction techniques respectively.
• DLL adds error detection bits into the frame’s header, so that receiver can check received data is
correct or not.
Flow Control:
• If the receiver’s receiving speed is lower than the sender’s sending speed, then this can lead to an
overflow in the receiver’s buffer and some frames may get lost.
• So, it’s the responsibility of DLL to synchronize the sender’s and receiver’s speeds and establish
flow control between them.
Access Control:
• When multiple devices share the same communication channel there is a high probability of collision,
• So it’s the responsibility of DLL to check which device has control over the channel and CSMA/CD
and CSMA/CA can be used to avoid collisions and loss of frames in the channel.
Error detection:
• Errors can be introduced by signal attenuation and noise.
• Data Link Layer protocol provides a mechanism to detect one or more errors.
• This is achieved by adding error detection bits in the frame and then receiving node can perform an
error check.
Error correction:
• Error correction is similar to the Error detection, except that receiving node not only detect the errors
but also determine where the errors have occurred in the frame.
Half-Duplex & Full-Duplex:
• In a Full-Duplex mode, both the nodes can transmit the data at the same time.
• In a Half-Duplex mode, only one node can transmit the data at the same time.
Types of
Error on
DLL:
◦ Errors can be of three
types, namely single
bit errors, multiple
bit errors, and burst
errors.
◦ Single bit error:
◦ In the received frame,
only one bit has been
corrupted, i.e. either
changed from 0 to 1
or from 1 to 0.
MULTIPLE
BITS ERROR
In the received
frame, more than one bits
are corrupted.
Burst error In the received frame, more than one
consecutive bits are corrupted.
Error Detection Techniques:
◦ Error Detecting Codes:
◦ Implemented either on Data Link Layer Simple Parity Check
or Transport Layer:
◦ Whenever a message is transmitted, it
Two-dimensional Parity Check
may get scrambled by noise or data may
get corrupted. To avoid this, we use
error-detecting codes which are Checksum
additional data added to a given digital
message to help us detect if any error
has occurred during transmission of the Cyclic Redundancy Check
message.
Simple Parity check