Noiseless Channels
Simplest Protocol
Stop-and-wait Protocol
Stop-and-Wait protocol is data link layer protocol for transmission of frames over noiseless channels.
It provides unidirectional data transmission with flow control facilities but without error control facilities.
The idea of stop-and-wait protocol is straightforward.
After transmitting one frame, the sender waits for an acknowledgement before transmitting the next frame.
Primitive of stop-and-wait protocol
Sender side:
Receiver side
Problems of stop-and -wait protocol
Noisy Channels
Drawbacks:
One frame at a time.
Poor utilization.
Sliding Window Protocol
Send multiple frames at a time.
Number of frames to be sent is based on Window size
Each frame is numbered->Sequence number.
N - Sender's Window Size.
For example, if the sending window size is
The number of bits in the sequence number is 2 to generate the binary sequence 00,01,10,11.
2. Selective Repeat ARQ
In Selective Repeat ARQ, only the erroneous or lost frames are retransmitted, while correct frames are receiver and buffered.
The receiver while keeping track of sequence numbers, buffers the frames in memory and sends NACK for only frame which is missing or damaged.
The sender will send/retransmit packet for which NACK is received.