In previous article we studied about sliding window protocol.
- Selective repeat protocol is based on sliding window protocol.
- It is also called Selective Repeat ARQ (Automatic Repeat reQuest).
- Here, only the erroneous or lost frames are re-transmitted.
- Here, window size of sender and receiver are equal.
- Window size is half of maximum sequence number.
- If maximum sequence numbers are 8.
- Than sender having window size of 4 and receiver having window size of 4.
- Window size is greater than one else it will become stop and wait.
- Sender transmit multiple frames to the receiver.
- Number of frames transmitted depends on window size.
- Now sender wait for the acknowledgement.
- Receiver stores valid frames in receivers window.
- It sends the sequence numbers of the erroneous and missing frame to the sender along with acknowledgement.
- Sender re-transmits the frames whose sequence number is given by the acknowledgements.
- Sender then continues sending the other frames.