📝 Stop and Wait ARQ protocol (23 MCQs)
One Outstanding Frame at a Time
Stop-and-Wait Automatic Repeat reQuest (ARQ) is a data link protocol that combines receiver flow control with error recovery. The sender transmits one frame and waits for an acknowledgement before sending the next. A timer detects a missing response, while sequence numbers distinguish new frames from retransmissions. The method is simple and limits how many unacknowledged frames can occupy the link.
Acknowledgements, Timers and Alternating Sequence Bits
The sender keeps a copy of the outstanding frame until it receives the expected acknowledgement. A small sequence-number space, commonly alternating 0 and 1, lets the receiver identify duplicates. If the acknowledgement is delayed or lost, the sender's timer expires and it retransmits the same numbered frame instead of advancing to new data.
How the Sender and Receiver Recover from Loss
After sending a frame, the sender starts a timer and waits. The receiver checks the frame, accepts new data, and returns an acknowledgement. If the sender receives it, the timer is stopped and the next frame is sent. If the timer expires, the same frame is retransmitted; the receiver uses its sequence number to avoid duplicate delivery.
Recovering When an Acknowledgement Is Lost
The sender sends frame 0, and the receiver accepts its payload and returns ACK 1, indicating the next expected sequence number. If ACK 1 is lost, the sender retransmits frame 0 after timeout. The receiver recognizes sequence 0 as a duplicate, does not deliver the payload again, and repeats ACK 1.
Efficiency and the Role of the Link Delay
Stop-and-wait is easy to implement and needs little buffer space, but it may leave a high-speed link idle while waiting for an acknowledgement, especially when propagation delay is large. Sliding-window protocols improve utilization by allowing multiple frames to remain outstanding. Stop-and-wait remains useful where simplicity matters more than maximum throughput.
Clarifying What an ARQ Acknowledgement Means
'A lost ACK means the data frame was lost' is incorrect because the receiver may already have accepted it. 'The receiver always accepts a retransmission as new data' ignores duplicate detection through sequence numbers. 'Stop-and-wait can send many unacknowledged frames' contradicts its defining rule of only one outstanding frame at a time.
Tracing Sequence Numbers and Timeout Events
For examinations, draw the send, receive, acknowledgement, and timeout sequence. Track the alternating frame numbers and identify whether a loss affects data or the acknowledgement. Explain why the receiver discards duplicate payloads but can repeat an acknowledgement. If asked about performance, relate utilization to frame transmission time and round-trip propagation and acknowledgement delay.
Stop-and-Wait ARQ Control Terms
- ARQ - Acknowledgement-based error recovery.
- Timeout - Expiry that triggers retransmission.
- ACK - Control response confirming receipt.
- Sequence bit - Distinguishes new and repeated frames.
- Duplicate - A retransmitted frame already accepted.
- Outstanding - Sent but not yet acknowledged.
📝 All Stop and Wait ARQ protocol MCQs
Q1. What is the primary purpose of the Stop-and-Wait ARQ protocol?
📖 Explanation: The protocol is designed to guarantee that every transmitted frame is correctly received before the next one is sent, which provides reliable data transfer over an unreliable link. This reliability is achieved through acknowledgments and possible retransmissions, distinguishing it from merely controlling flow or boosting throughput.
Q2. In Stop-and-Wait, how many frames can the sender have outstanding at any time?
📖 Explanation: Stop-and-Wait allows only a single frame to be transmitted and await its acknowledgment before sending another. This single outstanding frame characteristic simplifies error recovery but limits throughput, especially on links with large propagation delays.
Q3. If the round‑trip time (RTT) doubles while the frame transmission time remains constant, what is the effect on protocol utilization?
📖 Explanation: Utilization is defined as the fraction of time the link carries useful data. When RTT grows, the sender spends more time waiting for acknowledgments, so the proportion of useful transmission time falls roughly by half, reducing overall utilization.
Q4. Suppose a Stop-and-Wait link has frame size bits, transmission rate Mbps, and propagation delay ms. If the ACK is lost and the sender times out after , how many extra frames will be transmitted?
📖 Explanation: The frame transmission time is ms. The round‑trip time is ms. After the timeout the sender retransmits the same frame once, resulting in exactly one additional transmission.
Q5. Given a Stop-and-Wait link where the probability of a frame error is and ACK loss probability is also , derive the expected number of transmissions per successfully delivered frame.
📖 Explanation: A successful exchange requires both the data frame and its ACK to be error‑free, which occurs with probability . The expected number of attempts for a Bernoulli trial with success probability is the reciprocal, yielding .
Q6. If the sender’s timeout interval is set exactly to the sum of the frame transmission time and the round‑trip propagation time, what type of error does the protocol become most vulnerable to?
📖 Explanation: When the timeout matches the round‑trip time, any slight delay can cause the sender to believe the frame was lost, prompting a retransmission. The receiver may then see two copies of the same frame, creating duplicate‑frame errors.
Q7. Consider a Stop-and-Wait link with frame length bits, bandwidth bits/s, and propagation delay . The link utilization is given by . If the bandwidth is doubled while and stay constant, by what factor does change?
📖 Explanation: Doubling makes the term become . The new utilization is , which is smaller than the original . Hence utilization actually decreases when bandwidth grows without altering frame size or delay.
Q8. Which of the following best contrasts Stop-and-Wait ARQ with Go‑Back‑N ARQ regarding channel utilization?
📖 Explanation: Go‑Back‑N employs a sliding window that permits several frames to be sent before acknowledgments arrive, dramatically improving channel utilization compared with Stop‑and‑Wait, which must wait after each frame.
Q9. Evaluate the impact of increasing the ACK timeout value on throughput and latency in a Stop-and-Wait protocol.
📖 Explanation: A longer timeout means the sender waits longer before retransmitting lost frames, reducing the rate of successful transmissions (lower throughput) and adding extra waiting time for each loss event (higher latency).
Q10. A network designer must choose between Stop-and-Wait and Selective Repeat ARQ for a satellite link with long propagation delay. Which factor most strongly justifies selecting Selective Repeat?
📖 Explanation: Satellite links often suffer higher bit‑error rates; Selective Repeat can retransmit only erroneous frames, preserving bandwidth, whereas Stop‑and‑Wait would waste the long round‑trip time on each retransmission, making Selective Repeat far more efficient.
Q11. Compare the effect of frame size on efficiency in Stop-and-Wait versus Sliding Window protocols.
📖 Explanation: Increasing frame size raises the proportion of time spent transmitting data relative to waiting for acknowledgments, boosting efficiency for both protocols. However, the benefit is more pronounced for Stop‑and‑Wait because its waiting overhead is fixed per frame.
Q12. Differentiate the role of sequence numbers in Stop-and-Wait ARQ compared to Go‑Back‑N ARQ.
📖 Explanation: Stop‑and‑Wait only needs to distinguish between the current frame and the next one, so a single‑bit sequence number suffices. Go‑Back‑N must track a larger window of outstanding frames, requiring several bits to represent the sequence numbers.
Q13. If a Stop-and-Wait link experiences a 5% frame loss rate, what is the expected increase in average transmission time compared to an error‑free link? Assume timeout equals one RTT.
📖 Explanation: The expected number of transmissions per successful frame is , meaning about a 5.26 % increase in average transmission time over an error‑free scenario.
Q14. In Stop-and-Wait, what mechanism prevents the receiver from accepting duplicate frames?
📖 Explanation: Each frame carries a sequence number (typically 0 or 1). The receiver checks this number against the last correctly received frame; if it matches the previously acknowledged number, the frame is identified as a duplicate and discarded.
Q15. Apply the Stop-and-Wait protocol to a scenario where the sender’s buffer can hold 10 frames but the protocol only allows one outstanding frame. What is the consequence for buffer utilization?
📖 Explanation: Even though the sender can store many frames, Stop‑and‑Wait restricts transmission to one frame at a time, leaving most of the buffer idle while waiting for acknowledgments, thus underutilizing the available storage.
Q16. Synthesize a strategy to improve throughput of Stop-and-Wait on a high‑delay link without changing physical layer parameters.
📖 Explanation: By enlarging the frame size, the proportion of time spent transmitting data relative to waiting for acknowledgments grows, raising utilization. This change works within the existing physical layer, unlike adding pipelining, which would alter the protocol itself.
Q17. Explain how the Stop-and-Wait protocol ensures flow control between sender and receiver.
📖 Explanation: The protocol’s rule that the sender must wait for an acknowledgment before sending the next frame inherently caps the number of in‑flight frames, preventing the receiver from being overwhelmed and providing simple, effective flow control.
Q18. Which of the following best illustrates the relationship between Stop-and-Wait ARQ and the concept of a ‘handshaking’ protocol?
📖 Explanation: Stop‑and‑Wait embodies a handshake: after the sender transmits a frame, the receiver replies with an acknowledgment, and only then does the sender proceed with the next frame. This explicit exchange characterizes handshaking behavior.
Q19. Given a Stop-and-Wait link where the ACK transmission time is negligible, derive the expression for channel utilization in terms of frame transmission time and round‑trip propagation time .
📖 Explanation: When ACK time is ignored, each cycle consists of sending the frame () and then waiting for the round‑trip propagation (). Utilization is the fraction of time spent transmitting data: .
Q20. If the ACK transmission time is not negligible and equals half the frame transmission time, how does the utilization formula change?
📖 Explanation: The total cycle now includes the data transmission (), the round‑trip propagation (), and the ACK transmission (). Converting to bits yields , reflecting the added ACK overhead.
Q21. Compare the effect of increasing the timeout interval on the probability of unnecessary retransmissions in Stop-and-Wait.
📖 Explanation: A longer timeout gives the sender more time to wait for a legitimate acknowledgment before assuming loss, thereby reducing the chance that a correctly received frame triggers an unnecessary retransmission.
Q22. Which of the following best explains why Stop-and-Wait is unsuitable for high‑bandwidth, high‑delay networks?
📖 Explanation: When bandwidth and delay are both large, the sender spends a substantial portion of time idle while awaiting acknowledgments, leading to very low link utilization—a primary drawback of Stop‑and‑Wait in such environments.
Q23. Assume a Stop-and-Wait link where the probability of a frame being corrupted is 0.2, and ACKs are always correctly received. What is the expected number of transmissions needed for one successful frame?
📖 Explanation: Success occurs with probability . The expected number of trials for a Bernoulli process is . Thus, on average 1.25 transmissions are required for each correctly received frame.