It refers to a set of procedures used to restrict the amount of data flow between sending and receiving stations. It tells the sender how much data it can transmit before it must wait for an acknowledgement from the receiver.
There are two methods that are used. They are.
1. Stop and wait
2. Sliding window
In this method the sender waits for acknowledgement after every frame it sends. Only after an acknowledgement has been received, then the sender sends the next frame.
The advantage is simplicity. The disadvantage is inefficiency.
The sliding window refers to imaginary boxes at both the sender and receiver. This window provides the upper limit on the number of frames that can be transmitted before requiring an acknowledgement. To identify each frame, the sliding window scheme introduces the sequence number. The frames are numbered as 0 to n-1. And the size of the window is n-1. Here the size of the window is 7, and the frames are numbered as 0, 1, 2, 3, 4, 5, 6, 7.
Error control is implemented in such a way that every time an error is detected, a negative acknowledgement is returned and the specified frame is retransmitted. This process is called automatic repeat request (ARQ).
The error control is implemented with the flow control mechanism. So there are two types in error control. They are,
1. Stop and wait ARQ
2. Sliding window ARQ
Lost Data Frame:
The sender is equipped with a timer that starts every time a data frame is transmitted. If the frame lost in transmission the receiver can never acknowledge it. The sending device waits for an ACK or NAK frame until its timer goes off, then it tries again. It retransmits the last data frame
Lost Acknowledgement
The data frame was received by the receiver but the acknowledgement was lost in transmission. The sender waits until the timer goes off, then it retransmits the data frame. The receiver gets a duplicated copy of the data frame. So it knows the acknowledgement was lost so it discards the second copy.
SELECTIVE REPEAT ARQ
Selective repeat ARQ retransmits only the damaged or lost frames instead of sending multiple frames. The selective transmission increases the efficiency of transmission and is more suitable for noisy links. The receiver should have a sorting mechanism.
DAMAGED FRAME:
21 videos|128 docs|66 tests
|
1. What is flow control in the link layer? | ![]() |
2. How does flow control work in the link layer? | ![]() |
3. What are the advantages of flow control in the link layer? | ![]() |
4. What are the different flow control techniques used in the link layer? | ![]() |
5. How does flow control relate to error detection and correction in the link layer? | ![]() |