Stop-and-Wait ARQ Explained: Efficiency, Lost ACKs and Solved Numericals

Build Stop-and-Wait ARQ from the one-frame rule to solved numericals. Trace sequence bits, lost ACKs, retransmissions, utilisation and throughput step by step.

KnowledgeGate Team

Exam prep & CS education

Updated 24 Nov 20266 min read
Stop-and-Wait ARQ Explained: Efficiency, Lost ACKs and Solved Numericals

"Send one frame and wait" sounds easy, but numericals become error-prone when transmission delay, propagation delay, ACK time, timeout and retransmission interact. Stop-and-Wait ARQ involves packet timelines, efficiency calculations, lost-ACK tracing with sequence numbers, and distinctions between flow control, sliding windows and TCP. The protocol trades link utilisation for small sender state and simple recovery. For the wider Computer Networks foundation, use CS Fundamentals.

Stop-and-Wait ARQ: the sender, receiver and one-frame rule

ARQ means Automatic Repeat reQuest. The sender keeps one unacknowledged frame outstanding: send, start a timer, then advance only after its matching ACK. The receiver checks for errors before accepting payload.

The data frame carries payload; its error-detection field exposes corruption. The ACK confirms acceptance, the timer turns silence into retransmission, and an alternating sequence bit prevents duplicate delivery.

Event

Sender action

Receiver action

Clean frame and ACK

Accept matching ACK, then advance

Accept payload and send ACK

Damaged or lost data frame

Retransmit on timeout

Reject a damaged frame, or see nothing

Lost ACK

Retransmit on timeout

Discard the duplicate payload and repeat its ACK

Delayed duplicate

Keep the current protocol state

Detect the old sequence bit, discard payload, repeat ACK

A timeout proves only that the ACK did not arrive, not that the frame was lost.

Stop-and-Wait ARQ timeline and the alternating-bit protocol

In a successful exchange, the sender transmits sequence 0. The receiver validates it, accepts its payload and returns ACK0. Here, ACK0 acknowledges frame 0 and ACK1 acknowledges frame 1. After receiving ACK0, the sender toggles to sequence 1. Keep this convention throughout a solution.

One bit suffices because only one frame can be outstanding. After accepting frame 0, the receiver expects 1. Another valid frame 0 is the previous frame, so the receiver discards its duplicate payload and repeats ACK0.

After timeout, the sender cannot distinguish a lost frame from a lost or delayed ACK, so it retransmits the same number. Receiver-side duplicate detection preserves one payload delivery.

Worked example 1: Stop-and-Wait efficiency and throughput

Let L = 1,000 bytes = 8,000 bits, R = 2 Mb/s, one-way T_p = 20 ms, and T_ack = 0.5 ms; processing is negligible.

Data transmission takes:

T_t = L/R = 8,000/(2 x 10^6) = 0.004 s = 4 ms

The cycle runs from the start of data transmission until the complete ACK returns:

T_cycle = T_t + T_p + T_ack + T_p

T_cycle = 4 + 20 + 0.5 + 20 = 44.5 ms

Transmission finishes at t = 4 ms; the last data bit arrives at t = 24 ms; the ACK finishes transmission at t = 24.5 ms and arrives completely at t = 44.5 ms.

The data-transmission fraction is:

U = T_t/T_cycle = 4/44.5 = 0.0899, or about 8.99%.

Useful throughput is:

8,000/0.0445 = 179,775 bit/s, or about 179.8 kb/s.

Cross-checking, 2 Mb/s x 0.0899 is about 179.8 kb/s. If ACK transmission is neglected, use 4 + 40 = 44 ms and 4/44 = 9.09%; do not combine that denominator with the given 0.5 ms.

Timing strip depicting Stop-and-Wait efficiency with a 4 ms frame transmission, 20 ms propagation, 44.5 ms cycle, and 8.99% utilisation.

Worked example 2: a lost ACK, timeout and duplicate frame

Take sequence 0 of 1,024 bytes = 8,192 bits at 1 Mb/s, with one-way propagation 5 ms and negligible ACK transmission and processing. A 25 ms timer starts with transmission at t = 0. Transmission lasts 8,192/10^6 = 8.192 ms.

The complete frame arrives at 8.192 + 5 = 13.192 ms. The receiver accepts it, delivers its payload once and sends ACK0, which is lost. It would otherwise arrive at 13.192 + 5 = 18.192 ms; the timer instead expires at 25 ms.

The sender retransmits sequence 0 from t = 25 to 33.192 ms; its last bit arrives at 33.192 + 5 = 38.192 ms. Expecting sequence 1, the receiver discards the payload and repeats ACK0, which reaches the sender at 38.192 + 5 = 43.192 ms. The sender may then transmit sequence 1.

Useful throughput counts one unique payload over the elapsed time:

8,192/0.043192 = 189,665 bit/s, or about 189.7 kb/s.

Two copies crossed the link, but only 8,192 useful bits were delivered. A 15 ms timeout precedes the clean ACK arrival at 18.192 ms and causes an unnecessary retransmission.

Sequence chart depicting a lost-ACK Stop-and-Wait exchange with a 25 ms timeout, retransmission, duplicate receipt, and ACK0 arriving at 43.192 ms.

Stop-and-Wait timeout rules and the assumptions hidden in formulas

A timeout formula needs a timer convention. From the first transmitted bit, the earliest no-loss ACK is approximately T_t + 2T_p + T_ack + receiver processing. If timing starts after the frame leaves, T_t is outside the interval. State the convention.

In example 2, the first-bit timer gives 8.192 + 2(5) = 18.192 ms. Thus 25 ms is adequate for this deterministic model and 15 ms is not. Neither is universally optimal because processing and queueing can vary.

After timeout, the frame may be lost, rejected as damaged, or accepted before its ACK fails. All require retransmission; only the last creates a valid duplicate.

Stop-and-Wait versus sliding windows, flow control and TCP

For a textbook window comparison only, ignore the 0.5 ms ACK time. Then a = T_p/T_t = 20/4 = 5, so Stop-and-Wait utilisation is 1/(1 + 2a) = 1/11 = 9.09%. The simplified error-free model needs W = 1 + 2a = 11 outstanding frames to fill the path; Stop-and-Wait fixes W = 1.

Stop-and-Wait flow control limits the sender to one outstanding frame. Stop-and-Wait ARQ adds ACKs, timeout, retransmission and sequence bits for error recovery. Sliding-window ARQ allows more outstanding frames and needs more sequence numbers.

Go-Back-N Protocol Explained owns cumulative ACKs, one base timer and retransmission from the missing frame onward. Selective Repeat ARQ owns per-frame ACKs, receiver buffering and retransmission of only the missing frame. Stop-and-Wait has neither sliding window: it permits one outstanding frame. TCP uses end-to-end byte sequence numbers and moving receive and congestion windows, so it is not this link-layer ARQ mechanism.

Stop-and-Wait ARQ exam traps and a reliable solving order

Typical tasks ask you to draw the timeline; calculate T_t, cycle time, utilisation or throughput; choose a timeout under a stated convention; trace damage or ACK loss; handle a duplicate; or compare Stop-and-Wait with Go-Back-N and Selective Repeat.

Use this six-step desk routine:

  1. Convert bytes to bits.

  2. Compute transmission delay before propagation delay.

  3. Mark when the last data bit reaches the receiver.

  4. Add ACK transmission only when it is supplied.

  5. Mark exactly where the timer starts.

  6. Count only uniquely delivered payload bits in useful throughput.

Common traps are using T_p once, confusing propagation with transmission, and treating timeout as proof of data loss. Toggle only after a matching ACK, never on timeout. Do not deliver duplicates or count retransmissions as useful payload. Low utilisation means idle capacity, not incorrect delivery.

Next, try IP Addressing and Subnetting Explained, a separate Computer Networks numerical topic.

Stop-and-Wait ARQ short version and the next step

Remember one frame, one timer and one alternating bit. A matching ACK means advance and toggle; timeout means resend the same number; an old-bit duplicate is discarded and re-ACKed.

Reproduce two anchors: a 44.5 ms cycle gives 8.99% and 179.8 kb/s; lost ACK0 causes timeout at 25 ms and replacement ACK arrival at 43.192 ms. Continue with GATE Guidance by Sanchit Sir to place ARQ within Computer Networks and GATE CS preparation.