The Data Link Layer: Dr. Ajay Singh Raghuvanshi
The Data Link Layer: Dr. Ajay Singh Raghuvanshi
Takes the bits from Physical layer, and recover the frames
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 de-stuffing.
Framing Summary
Many data link protocols use a combination of
presented methods for safety. For example in
Ethernet or 802.3 and WiFi or 802.11 each
frame begin with a well-defined pattern called
a preamble.
Preamble is typically 56-72 bits long with sync
field and start frame limiter.
It is then followed by a length field specifing
length of frame.
Error Control Why
After solving the marking of the frame with start and
end the data link layer has to handle eventual errors
in transmission or detection.
Ensuring that all frames are delivered to the
network layer at the destination and in proper
order.
Unacknowledged connectionless service: it is OK for
the sender to output frames regardless of its
reception.
Reliable connection-oriented service: it is NOT OK.
Error Control
Reliable connection-oriented service usually will
provide a sender with some feedback about what is
happening at the other end of the line.
Receiver Sends Back Special Control Frames.
If the Sender Receives positive Acknowledgment it
will know that the frame has arrived safely.
Timer and Frame Sequence Number for the Sender is
Necessary to handle the case when there is no
response (positive or negative) from the Receiver .
Flow Control
Important Design issue for the cases when the
sender is running on a fast powerful computer and
receiver is running on a slow low-end machine.
Two approaches:
1. Feedback-based flow control
Receiver sends back information to the sender giving it
permission to send more data, or Telling sender how
receiver is doing
2. Rate-based flow control
Built in mechanism that limits the rate at which sender
may transmit data, without the need for feedback from the
receiver.
Error Detection and Correction
Two basic strategies to deal with errors:
1. Include enough redundant information to enable
the receiver to deduce what the transmitted data
must have been.
Error correcting codes.
2. Include only enough redundancy to allow the
receiver to deduce that an error has occurred
(but not which error).
Error detecting codes.
Error Detection & Correction Code