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

Play it as a journeyTutor comes with a plan

Build it: read the capture (a pcap reader, layer by layer)

Inside Your Building
Inside Your Building · Open board

A packet on the wire is wrapped like a letter in a building: a corridor address outside, a street address inside, a flat number inside that, then the letter. This lesson builds the program that unwraps them.

Before you start. You need the street address (IP) of How a parcel finds any house on earth, the corridor address (MAC) of Inside your building (your router's life) and The corridor inside the building (frames, switches and VLANs), the handshake flags of TCP vs UDP, and the 3-way handshake, and the DNS question bytes of DNS on the wire. One click, every layer (what happens when you load a page) timed a page load phase by phase. This lesson opens the packets behind those phases. Python 3, standard library only.

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

  • 19 December 1992: watching the wire is a privilege
  • The file: a header, then records
  • The frame, one layer at a time
  • Padding, and why the reader trusts the inside
  • Where does the capture come from?
  • The reader’s output, and tcpdump’s
  • The pseudo-header
  • The files
  • What it skips

Terms it explains: Ethernet, 14 bytes, IPv4, 20 bytes, UDP, 8 bytes, DNS, 29 bytes.

Review Networking