Maximum Window Size in Selective Reject (Selective Repeat) with -Bit Sequence Numbers
The selective reject protocol (commonly treated in textbooks as Selective Repeat ARQ) uses an -bit sequence number field, giving a total of distinct frame sequence values. The core constraint is that the sender’s window size must be small enough to avoid ambiguity caused by sequence number wrap-around: at any time, the receiver must be able to clearly distinguish “new” frames from “old” (previously used) frames whose sequence numbers have wrapped.
For Selective Repeat, the maximum window size is:
Thus the correct option is (ii) .
Key idea: if the window were larger than half the sequence space, then a frame with a wrapped sequence number could fall inside the receiver’s acceptance set and be misinterpreted as a current-frame duplicate or vice versa, breaking correctness.
Mermaid intuition (wrap-around hazard if window is too large):
Keyword links: selective repeat ARQ selective reject window size sequence number wrap-around.
Selective Repeat ARQ and window size intuition
Selective Repeat (Selective Reject) operates with sliding windows at both sender and receiver. The receiver can store out-of-order frames and acknowledge individually. To ensure correct operation, the window must be limited so that no two different frames within the receiver’s window share the same sequence number meaning across time.
In particular, when the sequence space is , the sender window must satisfy:
Because:
- The sequence number space is modulo .
- The receiver’s “acceptance range” must not include frames that are actually from the previous cycle with the same sequence number values.
- Therefore, the effective distance between “current” and “previous-cycle” meanings of sequence numbers must be at least one window length, which yields the half-space restriction.
So the maximum permissible window is , i.e., option (ii).
Derive the maximum window size for Selective Repeat with $n$-bit sequence numbers
- 1Step 1
With -bit sequence numbers, there are distinct values before wrap-around.
- 2Step 2
The receiver must not confuse a newly received frame with a frame from an earlier cycle that has the same sequence number after wrap-around.
- 3Step 3
To prevent overlap between “current” and “previous-cycle” sequence numbers in the receiver’s acceptance window, the sender/receiver window must be at most half the sequence space.
- 4Step 4
Therefore, . Hence the correct option is (ii).
Answer options for maximum window size
Given -bit sequence numbers for selective reject/selective repeat.
Rule of thumb
For Selective Repeat/Selective Reject ARQ, the window cannot exceed half the sequence number space: .
Why not larger than $2^{n-1}$?
If , then due to modulo wrap-around, frames from different “generations” can share the same sequence numbers within the acceptance range—leading to incorrect acknowledgments/retransmissions.
Common related facts
Selective Reject/Selective Repeat Window Size Quick Checks
Knowledge Check
For selective reject/selective repeat ARQ with -bit frame sequence numbers, the maximum window size is: