Elementary data link layer protocols
Elementary data link layer protocols
Protocols in the data link layer are designed so that this layer can perform its
basic functions: framing, error control and flow control. Framing is the process
of dividing bit - streams from physical layer into data frames whose size ranges
from a few hundred to a few thousand bytes.
A protocol refers to a defined set of guidelines and regulations that control the
communication between different devices in a network. These guidelines
specify the way in which data is formatted, timed, sequenced, and checked for
errors during transmission
Simplex Protocol
Step1 − The receiver send the acknowledgement frame back to the sender
telling the sender that the last received frame has been processed and passed to
the host.
Step 2 − Permission to send the next frame is granted.
Step 3 − The sender after sending the sent frame has to wait for an acknowledge
frame from the receiver before sending another frame.
This protocol is called Simplex Stop and wait protocol, the sender sends one
frame and waits for feedback from the receiver. When the ACK arrives, the
sender sends the next frame.
2)Error Detection and Correction in Data link
Layer
Error Detection and Correction
Whenever data is transmitted or stored, it's possible that the data may become
corrupted. This can take the form of bit flips, where a binary 1 becomes a 0 or
vice versa. Error correcting codes seek to find when an error is introduced into
some data. This is done by adding parity bits, or redundant information, to the
data.
Hamming code uses a block parity mechanism. The data is divided into blocks,
and parity is added to the block. Hamming code can correct single-bit errors and
detect the presence of two-bit errors in a data block.