📝 Stop and Wait ARQ protocol mechanism (27 MCQs)
One-Frame-at-a-Time Error Control at the Data Link Layer
Stop-and-Wait ARQ is an automatic repeat request technique commonly presented at the OSI data link layer. The sender transmits one frame and waits for an acknowledgment before sending another. A timer detects missing responses, while a one-bit sequence number distinguishes a new frame from a retransmission. This simple protocol provides reliable frame transfer in the model but permits only one unacknowledged frame at a time.
Why Frames Need Feedback and Timeout Recovery
A transmitted frame may be damaged or lost, and an acknowledgment may also disappear even when the receiver obtained the data correctly. Without feedback, the sender cannot know whether to proceed or repeat transmission. Stop-and-Wait uses acknowledgments and a timeout to recover from these cases, while its one-frame limit prevents an unrestricted sender from overwhelming a slower receiver.
Alternating Sequence Numbers and Retransmission Logic
The sender transmits frame 0 and starts a timer. If the receiver accepts it, it delivers the payload and returns the acknowledgment indicating that frame 1 is expected. The sender then transmits frame 1. If the timer expires before a valid acknowledgment arrives, the sender repeats the outstanding frame. The receiver checks the sequence bit to identify duplicates.
What Happens When an Acknowledgment Is Lost
Assume frame 0 reaches the receiver but its acknowledgment is lost. When the sender's timer expires, it retransmits frame 0. The receiver recognizes sequence 0 as a duplicate, avoids delivering the payload a second time, and sends the acknowledgment again. Once that response reaches the sender, transmission can continue with frame 1 without duplicate delivery to the upper layer.
Simple Recovery at the Cost of Link Utilization
Stop-and-Wait needs little buffering and is easy to implement, but the sender remains idle while waiting for each acknowledgment. On a long-delay or high-bandwidth link, much of the available capacity is unused. With negligible acknowledgment and processing time and no errors, utilization is approximately U = 1/(1 + 2a), where a is propagation time divided by frame transmission time.
Clarifying the Meaning of ACK Loss and Sequence Bits
'A lost acknowledgment proves the data frame was lost' is false: the receiver may already have accepted it. 'The receiver delivers every retransmitted frame again' is false: the sequence bit identifies duplicates. 'The one-bit sequence number counts all frames indefinitely' is false: it alternates between 0 and 1, distinguishing the current frame from its immediate predecessor.
Exam Focus: State Traces, Timers and Utilization
Trace sender and receiver actions for successful delivery, damaged frames, lost data, and lost acknowledgments. Show why retransmission is necessary and how the sequence bit prevents duplicate delivery. In numerical problems, define a = Tp/Tt and use U = 1/(1 + 2a) only when its assumptions apply; include acknowledgment transmission and processing delays when a question specifies them.
Key Terms for Stop-and-Wait ARQ
- ARQ - automatic repeat request error recovery.
- ACK - acknowledgment of frame reception.
- Timeout - timer expiry that triggers retransmission.
- Sequence bit - alternating zero-or-one frame identifier.
- Duplicate frame - retransmitted copy already accepted.
- Utilization - fraction of link time carrying data.
📝 All Stop and Wait ARQ protocol mechanism MCQs
Q1. What is the primary purpose of the Stop and Wait protocol?
📖 Explanation: The protocol’s main goal is to guarantee that each transmitted frame is correctly received before the next one is sent, providing reliability through acknowledgments and retransmissions. This contrasts with mechanisms that aim to boost speed or share resources.
Q2. In Stop and Wait, after sending a data frame the sender must wait for which type of signal from the receiver?
📖 Explanation: The sender pauses until it receives an ACK, confirming successful reception. RTS and CTS are used in hardware flow control, while NAK indicates a problem; ACK is the definitive signal for proceeding to the next frame.
Q3. If a timeout occurs before an ACK is received, what is the most likely cause?
📖 Explanation: A timeout indicates that the expected acknowledgment did not arrive within the prescribed interval, which typically means the original frame never reached the receiver or was damaged, prompting a retransmission.
Q4. How does the Stop and Wait protocol detect errors in a transmitted frame?
📖 Explanation: Although checksums, CRCs, and parity can all detect errors, many textbook descriptions of Stop and Wait highlight the use of a simple checksum field to verify data integrity before an ACK is sent.
Q5. Compared to a sliding‑window protocol, Stop and Wait typically has lower ___?
📖 Explanation: Because only one frame can be in transit at any time, the link is idle for much of the round‑trip time, reducing the amount of useful data transferred per unit time, i.e., its throughput.
Q6. If the round‑trip time (RTT) doubles while all other parameters stay the same, what happens to the utilization of Stop and Wait?
📖 Explanation: Utilization follows . Doubling RTT increases the denominator, causing the fraction to shrink dramatically; the link appears almost idle, though it never truly reaches zero.
Q7. What role does the sequence number play in Stop and Wait?
📖 Explanation: A single‑bit sequence number toggles between 0 and 1, allowing the receiver to recognize whether an incoming frame is a fresh transmission or a duplicate caused by a lost ACK.
Q8. When multiple connections share the same physical link and all use Stop and Wait, what effect is most noticeable?
📖 Explanation: Because each connection can occupy the link for the full round‑trip time, the link becomes a bottleneck, and some flows may dominate the medium while others wait longer, reducing fairness.
Q9. If the data frame arrives correctly but its ACK is lost, what will the sender do after the timeout expires?
📖 Explanation: The sender cannot differentiate between a lost ACK and a lost data frame; after the timeout it assumes the frame was not acknowledged and retransmits it, ensuring reliability.
Q10. Suppose a channel has bandwidth Mbps and frame size bits. The round‑trip time is 20 ms. What is the utilization of Stop and Wait?
📖 Explanation: Utilization . Convert RTT to seconds (0.02 s): bits. Thus or 2.4 %.
Q11. Which scenario would most benefit from replacing Stop and Wait with a Go‑Back‑N protocol?
📖 Explanation: Go‑Back‑N shines when the channel has long round‑trip times and non‑negligible error rates; the satellite link example fits this description, whereas the other options either already have low latency or do not need pipelining.
Q12. How does the sender determine the appropriate timeout interval in a Stop and Wait system?
📖 Explanation: Dynamic timeout calculation uses measured RTT samples (often via exponential weighted moving average) to adapt to changing network conditions, ensuring the interval is neither too short nor excessively long.
Q13. If the probability of a frame error is and errors are independent, what is the expected number of transmissions per successful frame?
📖 Explanation: The expected transmissions equal , meaning on average just a little more than one transmission is needed for each successful delivery.
Q14. When the timeout is set too low relative to the actual RTT, which performance metric suffers most?
📖 Explanation: A premature timeout forces unnecessary retransmissions, filling the channel with duplicate frames and drastically lowering the amount of useful data transferred per unit time, i.e., the throughput.
Q15. How does using a single‑bit sequence number prevent acceptance of duplicate frames?
📖 Explanation: The bit toggles between 0 and 1 for each new transmission; if a frame arrives with the same bit as the previously accepted one, the receiver knows it is a duplicate and discards it.
Q16. If a network experiences burst errors that cause three consecutive frame losses, how does the average delay change in Stop and Wait?
📖 Explanation: Each lost frame triggers a timeout and retransmission, adding roughly the same timeout duration per loss; thus the total delay grows proportionally to the number of consecutive losses.
Q17. Which modification would most improve efficiency of Stop and Wait without altering its fundamental behavior?
📖 Explanation: A shorter, more accurate timeout reduces idle waiting time between frames, directly raising utilization while preserving the single‑frame‑in‑flight nature of the protocol.
Q18. Why might ACK frames be transmitted using a shorter time than data frames on a wireless link?
📖 Explanation: ACKs are typically small packets; sending them quickly frees the shared wireless medium for subsequent data frames, improving overall channel efficiency.
Q19. If a sender’s timeout is exactly equal to the measured RTT, what risk does this pose?
📖 Explanation: Network jitter can make the actual RTT slightly larger than the measured value; setting timeout equal to RTT leaves no margin, so occasional variations cause premature timeout and unnecessary retransmissions.
Q20. Given two links: Link X (10 Mbps, RTT = 5 ms) and Link Y (1 Mbps, RTT = 50 ms). Assuming identical frame size, which link yields higher utilization under Stop and Wait?
📖 Explanation: Utilization . For both links the product equals 50 kb, making the denominator identical; thus the utilization is the same for the two links.
Q21. Design a hybrid protocol that uses Stop and Wait for control frames and a sliding window for data frames. Which advantage does this design primarily provide?
📖 Explanation: By applying a pipelined sliding‑window approach to bulk data, the protocol can keep the link busy, while still using the simple, reliable Stop‑and‑Wait method for small control packets.
Q22. Assume a Stop and Wait system with frame size , bandwidth , and propagation delay . Derive the expression for the optimal timeout that maximizes utilization. Which formula is correct?
📖 Explanation: The round‑trip time consists of the propagation delay in both directions plus the transmission time of the frame: . Setting the timeout equal to this RTT maximizes the chance of receiving the ACK before retransmission.
Q23. If a malicious node consistently drops every third ACK in a Stop and Wait connection, what pattern of retransmissions will the sender observe?
📖 Explanation: Because the sender waits for an ACK before sending the next frame, the loss of every third ACK forces a timeout and retransmission of the corresponding third data frame, creating a predictable periodic pattern.
Q24. Compare the effect of increasing frame size versus decreasing timeout on utilization when RTT dominates the transmission time. Which yields a greater relative improvement?
📖 Explanation: When RTT is large, utilization is more sensitive to changes in ; enlarging the frame reduces the proportion of time spent waiting, whereas a modest reduction in timeout cannot overcome the dominant RTT component.
Q25. Why can the concept of ‘piggybacking’ not be directly applied to Stop and Wait? Which protocol element prevents it?
📖 Explanation: Piggybacking requires the ability to send acknowledgments together with outgoing data. Stop and Wait permits only one unacknowledged frame at a time, so there is never a simultaneous data packet to carry the ACK.
Q26. In a network where propagation delay is negligible but processing delay at each node is significant, how should the timeout be set to minimize idle time?
📖 Explanation: The timeout must cover the time the frame spends being processed plus the time needed to transmit it, ensuring the sender does not wait longer than necessary while still accounting for the dominant processing overhead.
Q27. Given a Stop and Wait link with frame error probability , frame length , bandwidth , and timeout , which expression correctly represents the expected throughput ?
📖 Explanation: Throughput equals the fraction of time spent transmitting useful data. The effective cycle time includes the frame transmission plus the timeout ; factoring the success probability yields .