Maximum Window Size in Selective Reject (Selective Repeat) with nn-Bit Sequence Numbers

Maximum Window Size in Selective Reject (Selective Repeat) with nn-Bit Sequence Numbers

Verified Sources
Nov 4, 2026

The selective reject protocol (commonly treated in textbooks as Selective Repeat ARQ) uses an nn-bit sequence number field, giving a total of 2n2^n 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:

Wmax⁡=2n−1W_{\max} = 2^{n-1}

Thus the correct option is (ii) 2n−12^{n-1}.

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 2n2^n, the sender window must satisfy:

W≤2n−1W \le 2^{n-1}

Because:

  • The sequence number space is modulo 2n2^n.
  • 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 2n−12^{n-1}, i.e., option (ii).

Derive the maximum window size for Selective Repeat with $n$-bit sequence numbers

  1. 1
    Step 1

    With nn-bit sequence numbers, there are 2n2^n distinct values before wrap-around.

  2. 2
    Step 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.

  3. 3
    Step 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.

  4. 4
    Step 4

    Therefore, Wmax⁡=2n−1W_{\max} = 2^{n-1}. Hence the correct option is (ii).

Answer options for maximum window size

Given nn-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: Wmax⁡=2n−1W_{\max}=2^{n-1}.

Why not larger than $2^{n-1}$?

If W>2n−1W > 2^{n-1}, then due to modulo 2n2^n wrap-around, frames from different “generations” can share the same sequence numbers within the acceptance range—leading to incorrect acknowledgments/retransmissions.

Selective Reject/Selective Repeat Window Size Quick Checks

1 / 4
Question · Term

Selective Repeat maximum window with $n$-bit sequence numbers?

Click to reveal
Answer · Definition

Wmax⁡=2n−1W_{\max}=2^{n-1} (option ii).

Knowledge Check

Question 1 of 4
Q1Single choice

For selective reject/selective repeat ARQ with nn-bit frame sequence numbers, the maximum window size is: