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 13 min to read

Watch: Routing: how a packet finds any house on earth
▶ VideoPlay it as a journeyTutor comes with a plan

Build it: ping, and the parcel that dies on purpose (ICMP and traceroute)

The Parcel's Journey
The Parcel's Journey · Open board

A parcel passes depot after depot, and each depot only knows the next one. This lesson builds the two tools that make that journey visible: one that asks “are you there, and how far?”, and one that makes every depot on the way give its name.

Before you start. You need How a parcel finds any house on earth, which did traceroute by hand: depots, hops, and the hop limit that stops a parcel circling forever. Inside one postal company (distance-vector, link-state, and ICMP) met ICMP, the notes routers send back, and showed ping and traceroute output without building either. Here you write both, in Python, with no root access.

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

  • December 1983: a thousand-line hack, written in an evening
  • The message that rides inside IP
  • Ping: send, wait for the matching number, time it
  • The hop limit, and the router that tells on itself
  • Traceroute: three probes, one hop limit at a time
  • Why one hop can show two routers
  • Why this runs without root

Terms it explains: Echo request, Echo reply, Time exceeded, Destination unreachable.

Related paper

Review Networking