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 05 · Networking · Build it yourself · with code: Python · about 14 min to read

Play it as a journeyTutor comes with a plan

Build it: the page that gets through (stop-and-wait, then a window)

Postcards and Phone Calls
Postcards and Phone Calls · Open board

The postcard and the phone call. TCP builds the call out of postcards that may vanish. This lesson builds a small call of its own, on a road that loses and delays postcards on purpose, and watches what each design costs.

Before you start. The page that never arrived (TCP reliable delivery) told the idea: number every page, answer with “got it”, resend after a timeout, and keep several pages on the road at once with a window. Here you write that, in about 40 lines each, and measure it. TCP vs UDP, and the 3-way handshake gave the picture underneath: the network only carries postcards, and TCP is a phone call made from them. A later lesson, Build it: only the lost page (selective repeat, loss and reordering), finishes the job with selective repeat. You need Python 3 and nothing else.

Lesson 40 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

  • October 1988: a road too long for the window
  • The road we build on
  • Stop-and-wait: send one, wait for the note
  • What it costs: one page per round trip
  • A window: eight on the road at once
  • The arithmetic

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