Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 02 · Networking · How a packet finds a house · with code: Python · about 18 min to read

Play it as a journeyTutor comes with a plan

The page that never arrived (TCP reliable delivery)

Postcards and Phone Calls
Postcards and Phone Calls · Open board

The postcard and the phone call. This lesson stays on the call after the handshake and asks what happens when a page read down the line goes missing. The lab at the end of the story lets you set how often that happens.

Before you start. You know from TCP vs UDP, and the 3-way handshake that the network only carries postcards: chunks of data, called packets, that arrive or silently don’t. TCP builds a phone call on top of them, opened by a three-message handshake in which each side says a random starting number and hears it read back. This lesson is what happens after the handshake: how every page arrives, in order, when postcards keep getting lost.

Lesson 6 of 44 in Networking

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 29 October 1969: “Did you get the L?”
  • A number on every page, and “got it”: the sequence number and the ack
  • How long to wait: the retransmission timeout
  • One page at a time is slow: stop-and-wait, and then a window
  • When one page is lost mid-window: go-back-N or selective repeat
  • Not waiting for the timer: three repeated acks and fast retransmit
  • Hanging up: four messages, and TIME_WAIT
  • What stop-and-wait costs, on a measured line
  • Go-back-N against selective repeat, counted
  • The timeout formula
  • Loss, measured, and what it does not prove
  • The close, packet by packet
  • How long TIME_WAIT lasts

Terms it explains: sequence number, acknowledgement, ack, retransmission timeout, RTO, stop-and-wait, window, go-back-N, selective repeat, fast retransmit, TIME_WAIT.

Lab

The post loses one page in ten. What should you send again, and how much does the answer cost?

Drag Pages the post loses to 20%, then drag Pages allowed in the post at once and watch pages delivered per round trip.

Open The lost page

Related paper

Review Networking