Index

Module 05 · NetworkingBuild it yourself

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.

Continue reading with a plan

The first three lessons of every track are free. This lesson is included with a plan, which unlocks every lesson, board, video, lab and paper for one price.

View plans →Already a member? Sign in

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 →

Saved in this browser, and to your account when you sign in.