Data Link Layer (1)
Data Link Layer (1)
A.Pratibha Meghana
319126511067
IT-B
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 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
Functionality of Data-link Layer
Data link layer does many tasks on behalf of upper layer. These are:
Framing
Data-link layer takes packets from Network Layer and encapsulates
them into frames. Then, it sends each frame bit-by-bit on the hardware.
At receiver’ end, data link layer picks up signals from hardware and
assembles them into frames.
Addressing
Data-link layer provides layer-2 hardware addressing mechanism.
Hardware address is assumed to be unique on the link. It is encoded into
hardware at the time of manufacturing.
Synchronization
When data frames are sent on the link, both machines must be
synchronized in order to transfer to take place.
Error Control
Sometimes signals may have encountered problem in transition and the
bits are errors are detected and attempted to recover actual data bits.
It also provides error reporting mechanism to the sender.
Flow Control
Stations on same link may have different speed or capacity. Data-link
layer ensures flow control that enables both machine to exchange data
on same speed.
Multi-Access
When host on the shared link tries to transfer the data, it has a high
probability of collision. Data-link layer provides mechanism such as
CSMA/CD to equip capability of accessing a shared media among
multiple Systems.
Data Link Layer Design Issues
When data is transmitted from one device to another device, the system
does not guarantee whether the data received by the device is identical
to the data transmitted by another device. An Error is a situation when
the message received at the receiver end is not identical to the message
transmitted.
Types Of Errors
Errors can be classified into two categories:
•Single-Bit Error
•Burst Error
Single-Bit Error:
The only one bit of a given data unit is changed from 1 to 0 or from 0 to 1.
The duration of noise in Burst Error is more than the duration of noise
in Single-Bit.
Burst Errors are most likely to occurr in Serial Data Transmission.
The number of affected bits depends on the duration of the noise and
data rate.
Error Detecting Techniques:
Checksum Checker
A Checksum is verified at the receiving side. The receiver subdivides the
incoming data into equal segments of n bits each, and all these segments are
added together, and then this sum is complemented. If the complement of
the sum is zero, then the data is accepted otherwise data is rejected.