Communication Networks · Visualized

Stop-and-Wait ARQ

Transport Reliability

TCP connections, retransmission timers and sliding windows that make lossy links behave.

6 interactive subtopics — each one animated, step-through and explained.

Stop-and-Wait ARQ

Transport Reliability

Stop-and-Wait is the simplest reliable protocol: transmit a single numbered frame and freeze until its acknowledgment arrives. If the ACK (or the frame) is lost, a timeout fires and the frame is resent. Correct but glacially slow — throughput collapses to one frame per round-trip time.

How Stop-and-Wait ARQ Works

  1. Sender transmits frame n, starts a countdown timer, and stops.
  2. Receiver checks the checksum; if good, stores it and returns ACK n.
  3. Sender receives ACK n, cancels the timer, and only then sends frame n+1.
  4. Timer expiry (lost frame or lost ACK) triggers a resend of the same frame.
  5. Duplicate arrivals are spotted by sequence number and silently dropped while the ACK is repeated.

Stop-and-Wait ARQ Worked Example

Try it: Play — frame 0 succeeds; frame 1 is lost in transit; the timeout bar empties before the resend succeeds.

Note the dead air after each send: the pipe sits empty while the ACK crawls back. On a 50 ms RTT link sending 1 KB frames, that caps you near 160 kbps no matter how fat the link is.

SENDERRECEIVERFRAME 0retransmit timer
Stage 1 / 7
Send frame 0, start the retransmit timer, FREEZE. Nothing else may leave until ACK 0 returns.

Stop-and-Wait ARQ: Key Facts to Remember

UtilisationU = T_frame / (T_frame + 2·T_prop) — tiny for long fat pipes
Window sizeeffectively 1 frame
Valueperfect teaching model and fine on very short links

Recommended resourcesAffiliate links · may earn us a commission

Recommended for learners

Cloud hosting for side projectsShip the portfolio project that gets you hired — free credits for new accounts.Claim credits Pro code editor & AI assistantWrite, debug and explain code faster while you practice the patterns here.Try it free Structured coding coursesVideo courses that pair well with visual practice — pick one language and go deep.Browse courses

See how packets really travel

Networks are built on the structures and algorithms you can watch step by step — queues, trees, and routing algorithms.