📝 Selective Repeat SR protocol flow control (29 MCQs)
Selective Acknowledgment and Out-of-Order Frame Acceptance
Selective Repeat (SR) is a sliding-window automatic repeat request protocol, normally studied at the OSI data link layer. Its receiver can accept and buffer correctly received frames that arrive out of order. Individual acknowledgments identify successful frames, allowing the sender to retransmit only missing or unacknowledged frames. SR improves recovery efficiency on lossy links but requires more buffering and sequence-management state than Go-Back-N.
Reducing Redundant Retransmissions After a Lost Frame
In Go-Back-N, a receiver discards frames received after a gap, so the sender may have to repeat frames that arrived correctly. SR retains those valid out-of-order frames until the missing frame is recovered. This avoids unnecessary transmission, but the receiver must store buffered data and distinguish delayed duplicates from new frames when sequence numbers wrap around.
Independent Windows, Per-Frame Timers and Buffering
The sender maintains a window of frames eligible for transmission and stores copies until they are acknowledged. A timer can be maintained for each outstanding frame. The receiver accepts valid frames within its current window, acknowledges them individually, and buffers those received beyond the next expected number. When the gap is filled, it delivers the contiguous sequence upward.
Recovering Frame 1 While Frames 2 and 3 Are Buffered
With a three-bit sequence field, SR commonly uses a maximum window of four frames. Suppose the sender transmits 0, 1, 2, and 3, but frame 1 is lost. The receiver accepts and acknowledges 0, 2, and 3, buffering 2 and 3. When frame 1 is retransmitted and accepted, it can deliver 1, 2, and 3 in order.
Better Error Efficiency with Greater State Requirements
Selective Repeat is efficient when errors occur because it avoids repeating correctly received frames. It is useful as a model for reliable links where retransmission cost is significant. The improvement requires receiver memory, individual acknowledgment tracking, and more complex timers. Window size must be limited to no more than half the sequence-number space to avoid ambiguity between old and new frames.
Distinguishing Selective Repeat from Flow Control and GBN
'Selective Repeat is only a flow-control algorithm' is incorrect: it is an ARQ error-control protocol that also uses windows to regulate outstanding frames. 'The receiver discards every out-of-order frame' is false: it buffers acceptable frames within its window. 'A sender retransmits the whole window after one loss' describes GBN, not SR, which retransmits only the missing frame in the usual model.
Exam Focus: Window Size, Buffering and Selective Retransmission
For an m-bit sequence field, calculate the SR window limit as 2^(m-1), then trace which frames are accepted, buffered, acknowledged, and retransmitted. With three bits, the maximum window is four. Compare the same loss event under GBN and SR, and explain why SR needs more receiver memory and tighter sequence-space rules.
Key Terms for Selective Repeat ARQ
- Selective Repeat - retransmits only missing frames.
- Individual ACK - acknowledges a particular frame.
- Out-of-order frame - valid frame arriving before a gap.
- Receiver buffer - stores frames awaiting delivery.
- Window size - permitted sequence positions.
- Sequence ambiguity - confusion between old and new numbers.
📝 All Selective Repeat SR protocol flow control MCQs
Q1. Which of the following best explains why Selective Repeat can achieve higher throughput than Go‑Back‑N when the channel error rate is moderate?
📖 Explanation: Selective Repeat sends ACKs for each correctly received frame and only retransmits those identified as lost or corrupted. This targeted approach avoids the costly waste of resending a whole window of frames, which is what Go‑Back‑N does, thereby increasing effective throughput when errors are occasional.
Q2. If the sender’s window size is and the sequence number space is , what logical problem is avoided?
📖 Explanation: When the sequence space is twice the window size, any outstanding frame’s sequence number remains unique, preventing the receiver from confusing a new frame for a retransmitted one. This eliminates ambiguity in ACK interpretation and ensures reliable operation of the Selective Repeat protocol.
Q3. A network engineer observes that increasing the receiver buffer size reduces the number of retransmissions in a Selective Repeat system. Which inference is most accurate?
📖 Explanation: Selective Repeat permits the receiver to accept frames that arrive out of order and hold them until missing ones are received. A larger buffer can accommodate more such frames, reducing the frequency of NACK‑triggered retransmissions and improving overall efficiency.
Q4. Consider two hosts using Selective Repeat with a window size of 4. Host A sends frames 0‑3, then 4‑7. Host B acknowledges frames 0,2,3 but not 1. What is the most likely state at Host B?
📖 Explanation: Selective Repeat allows out‑of‑order storage, so frames 2 and 3 can be buffered while awaiting frame 1. Delivery to the application is deferred until the missing frame arrives, preserving order without discarding later frames.
Q5. Which scenario best illustrates a drawback of using a very large sequence number space (e.g., ) in Selective Repeat?
📖 Explanation: A larger sequence space necessitates bigger buffers and more extensive bookkeeping to track each possible outstanding frame, consuming more memory and computational resources, which can be problematic for devices with limited capacity.
Q6. A student claims that Selective Repeat’s ACK packets are always cumulative. Is this statement correct?
📖 Explanation: Selective Repeat usually sends selective ACKs that identify each correctly received frame, allowing the sender to know precisely which frames need retransmission. Cumulative ACKs are characteristic of Go‑Back‑N, not Selective Repeat.
Q7. If the round‑trip time (RTT) doubles while the sender’s window size remains unchanged, what impact does this have on the protocol’s efficiency?
📖 Explanation: Efficiency in ARQ protocols is tied to the product of window size and RTT. When RTT grows without a corresponding increase in window size, the pipeline becomes underutilized, leading to lower throughput and reduced protocol efficiency.
Q8. In a scenario where the probability of a frame error is and the window size is 5, which statement best quantifies the expected number of retransmissions per window?
📖 Explanation: With independent errors, the expected number of erroneous frames in a window of size 5 is the sum of individual error probabilities: . This gives a straightforward estimate of retransmissions per window.
Q9. Why does Selective Repeat require both sender and receiver to maintain a buffer of size at least the window size?
📖 Explanation: Both ends must be able to hold up to frames: the sender buffers unacknowledged frames, while the receiver buffers correctly received out‑of‑order frames until missing ones arrive, ensuring reliable in‑order delivery.
Q10. A network simulation shows that when the sender’s timeout interval is set too low, the number of duplicate ACKs rises sharply. Which logical reasoning explains this behavior?
📖 Explanation: If the timeout expires before the ACK arrives, the sender retransmits the frame unnecessarily. The receiver, having already accepted the original frame, acknowledges it again, producing duplicate ACKs and inflating retransmission statistics.
Q11. Compare the memory overhead of Selective Repeat versus Go‑Back‑N for a window size of 8. Which statement is accurate?
📖 Explanation: Selective Repeat must keep any correctly received frames that arrive out of order, potentially storing up to the full window of 8 frames. Go‑Back‑N, by contrast, does not retain out‑of‑order frames, needing only the current sending window, thus lower memory usage.
Q12. If a receiver using Selective Repeat detects a missing frame number 4 but receives frames 5 and 6, what action should it take?
📖 Explanation: The receiver must hold onto later frames while it awaits the missing one. By sending a negative acknowledgment (or selective ACK) for frame 4, it informs the sender precisely which frame needs retransmission, preserving order without unnecessary loss.
Q13. Which of the following best characterizes the relationship between the sequence number space size and the maximum achievable window size in Selective Repeat?
📖 Explanation: To avoid ambiguity between new frames and retransmissions, the protocol limits the window to half the sequence space, ensuring that any outstanding frame’s sequence number remains unique. This relationship is fundamental to Selective Repeat’s correct operation.
Q14. A protocol analyst argues that increasing the sender’s window size beyond the receiver’s buffer capacity will improve throughput. Which analytical conclusion is correct?
📖 Explanation: If the sender’s window exceeds the receiver’s buffer, the receiver will be forced to discard excess out‑of‑order frames, leading to additional retransmissions and reduced effective throughput, negating any potential gains from a larger window.
Q15. In a scenario where the channel bandwidth is 10 Mbps and the frame size is 1,000 bits, what is the maximum theoretical throughput of Selective Repeat with a window size of 5, assuming no errors?
📖 Explanation: Throughput equals the amount of data in flight per RTT. With a window of 5 frames each 1,000 bits, the pipeline holds 5,000 bits. Dividing by the RTT yields the effective rate, which in an error‑free environment is less than the raw 10 Mbps but directly tied to the window and RTT.
Q16. Which logical deduction explains why Selective Repeat is unsuitable for highly lossy channels with loss probability > 30%?
📖 Explanation: When losses are very high, many frames will be missing, filling the receiver’s buffer with out‑of‑order frames while awaiting retransmissions. This situation leads to buffer overflow and a surge in retransmissions, eroding the protocol’s efficiency.
Q17. A designer proposes using a 3‑bit sequence number field for Selective Repeat with a window size of 4. What flaw does this introduce?
📖 Explanation: Selective Repeat mandates that the sequence number space be at least twice the window size to avoid ambiguity. With a 3‑bit space (size 8) and window 4, the condition is barely met, but any larger window would breach the rule, making the design fragile.
Q18. Which conceptual advantage does Selective Repeat provide over Stop‑and‑Wait ARQ?
📖 Explanation: Selective Repeat’s sliding window enables pipelining of several frames, so the sender doesn’t idle while waiting for each ACK. This dramatically increases utilization of the channel compared with Stop‑and‑Wait, which sends one frame at a time.
Q19. If a receiver using Selective Repeat sends ACKs for frames 0,2,3 but not for 1, what can the sender infer about frame 1?
📖 Explanation: Selective Repeat’s ACKs are selective; the absence of an ACK for a particular sequence number signals that the corresponding frame was not successfully received, prompting the sender to retransmit that specific frame.
Q20. Evaluate the impact of increasing the timeout interval from 100 ms to 500 ms in a high‑latency satellite link using Selective Repeat. Which outcome is most probable?
📖 Explanation: A longer timeout aligns better with the high RTT of satellite links, preventing unnecessary retransmissions caused by early timeouts. While this can boost throughput, it also means that when losses do occur, recovery takes longer, raising end‑to‑end latency.
Q21. What is the primary function of the NACK (negative acknowledgment) in Selective Repeat?
📖 Explanation: A NACK explicitly informs the sender about missing or corrupted frames, enabling targeted retransmission. This selective feedback is central to the efficiency gains of Selective Repeat over protocols that rely solely on cumulative ACKs.
Q22. A system implements Selective Repeat with a window size of 6 but experiences frequent duplicate ACKs for frame 4. Which logical cause is most likely?
📖 Explanation: Repeated duplicate ACKs for a specific frame indicate that the receiver consistently fails to obtain that frame, suggesting a persistent loss or corruption on the path, while other frames are arriving and being acknowledged.
Q23. Compare the effect of using a sliding window of size 1 (i.e., Stop‑and‑Wait) versus a sliding window of size 4 in Selective Repeat on channel utilization. Which statement is correct?
📖 Explanation: With a larger window, the sender can keep multiple frames in flight, reducing idle time caused by waiting for ACKs. Consequently, the channel’s effective utilization scales with the window size, assuming other factors remain constant.
Q24. In a network where packet loss is bursty, lasting for several consecutive frames, how does Selective Repeat handle this compared to Go‑Back‑N?
📖 Explanation: Selective Repeat’s ability to buffer out‑of‑order frames means that when a burst of losses occurs, only the missing frames are resent, while the subsequent correctly received frames remain stored. Go‑Back‑N would require resending the entire window, leading to greater overhead.
Q25. What is the most accurate definition of the term “receiver window” in the context of Selective Repeat?
📖 Explanation: The receiver window defines the set of sequence numbers that the receiver can accept without causing overflow, enabling it to store out‑of‑order frames until missing ones are recovered.
Q26. A developer claims that increasing the sender’s window size always linearly increases throughput in Selective Repeat. Which analytical critique refutes this claim?
📖 Explanation: While a larger window initially improves throughput by keeping more data in flight, once the window surpasses the product of bandwidth and RTT, additional frames cannot be transmitted faster. Moreover, excessive window sizes may overload receiver buffers, leading to dropped frames and diminishing returns.
Q27. If the sequence number space is 8 and the sender’s window is 4, what is the maximum number of outstanding unacknowledged frames the sender can have?
📖 Explanation: The window size directly limits the count of unacknowledged frames. With a window of 4, the sender may have up to 4 frames in flight, irrespective of the total sequence space size.
Q28. Why might a system designer choose Go‑Back‑N over Selective Repeat for a low‑bandwidth, high‑latency link?
📖 Explanation: Go‑Back‑N’s minimal buffering (only the sending window) eases memory constraints, which can be advantageous on devices where storing multiple out‑of‑order frames is infeasible, even though it may sacrifice some efficiency.
Q29. In an environment where the error probability is negligible, what is the most likely effect of using Selective Repeat with a window size equal to the sequence space size?
📖 Explanation: When errors are rare and the window spans the entire sequence space, the sender can continuously transmit frames without waiting for ACKs, effectively turning the protocol into a high‑throughput pipeline with minimal retransmission overhead.