Data Link Layer is responsible for reliable point-to-point data transfer over a physical medium. To implement this data link layer provides three functions :
Flow control is a set of procedures that restrict the amount of data a sender should send before it waits for some acknowledgment from the receiver.
Stop-and-wait protocol works under the assumption that the communication channel is noiseless and transmissions are error-free.
Working:
The sliding window protocol is the flow control protocol for noisy channels that allows the sender to send multiple frames even before acknowledgments are received. It is called a Sliding window because the sender slides its window upon receiving the acknowledgments for the sent frames.
Working:
The sender sends the frames 0 and 1 from the first window (because the window size is 2).
The receiver after receiving the sent frames, sends an acknowledgment for frame 2 (as frame 2 is the next expected frame).
The sender then sends frames 2 and 3. Since frame 2 is lost on the way, the receiver sends back a “NAK” signal (a non-acknowledgment) to inform the sender that frame 2 has been lost. So, the sender retransmits frame 2.
Error Control is a combination of both error detection and error correction. It ensures that the data received at the receiver end is the same as the one sent by the sender.
Error detection is the process by which the receiver informs the sender about any erroneous frame (damaged or lost) sent during transmission.
Error correction refers to the retransmission of those frames by the sender.
Error control is a vital function of the data link layer that detects errors in transmitted frames and retransmits all the erroneous frames. Error discovery and amendment deal with data frames damaged or lost in transit and the acknowledgment frames lost during transmission. The method used in noisy channels to control these errors is ARQ or Automatic Repeat Request.
To deal with the retransmission of lost or damaged frames, a few changes are made to the sliding window mechanism used in flow control.
Go-Back-N ARQ :
In Go-Back-N ARQ, if the sent frames are suspected or damaged, all the frames are re-transmitted from the lost packet to the last packet transmitted.
Selective Repeat ARQ:
Selective repeat ARQ/ Selective Reject ARQ is a type of Sliding Window ARQ in which only the suspected or damaged frames are re-transmitted.
Flow Control | Error Control |
|
|
Approaches For Flow Control:
| Approaches for error detection are
|
|
|
Examples of Flow control technique are 1.Stop and Wait protocol 2.Sliding Window Protocol | Example of Error Control 1.Stop and wait for ARQ 2.Slidingf window ARQ |
21 videos|113 docs|66 tests
|
1. What is flow control in networking? |
2. What are the different types of flow control techniques? |
3. How does error control help in data transmission? |
4. What is the difference between flow control and error control? |
5. Why is flow and error control important in networking? |
|
Explore Courses for Computer Science Engineering (CSE) exam
|