Selective Repeat Sliding Window Protocol (original) (raw)

Last Updated : 30 Dec, 2025

The Selective Repeat Protocol (SRP) is a reliable data transmission technique that enhances protocols like Go-Back-N by retransmitting only those packets that are lost or corrupted, rather than resending all subsequent packets after an error. This selective retransmission reduces unnecessary overhead and improves efficiency, especially on unreliable or noisy communication links.

η = N / 1+2a

​where N is the window size and a=Tp/Tt

Why Window Size is Important

Selective Repeat Protocol (SRP): the sender and receiver window size must be less than or equal to 2m-1, which is half of the available sequence number space. If the window size exceeds this limit, sequence numbers may wrap around before earlier packets are acknowledged. As a result, the receiver may be unable to distinguish between new packets and old retransmitted packets. This ambiguity can cause incorrect packet acceptance and lead to transmission errors.

Selective-Repeat-Sliding-Window-Protocol

Sender only retransmits frames, for which a NAK is received

The efficiency of the Selective Repeat Protocol (SRP) is the same as that of the Go-Back-N protocol. It is defined as the ratio of the data transmission time to the total time taken for successful transmission and acknowledgment. The efficiency is given by:

η = Tt(data) / Tt(data) + 2Tp + Tq + Tpro + Tt(ack)

where,

**Buffers and Sequence Numbers

**Buffers Required:

**Sequence Numbers:

**Efficiency Relation:

η = N / 1+2a

where, a = Tp/Tt

Tp is the propagation delay and Tt​ is the transmission delay.