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 03 · Networking · Faster, private, everywhere · about 18 min to read

Play it as a journeyTutor comes with a plan

No centre at all: peer to peer, DHTs and Tor

DNS Resolution
DNS Resolution · Open board

: a lookup that walks from the root down to the office that owns a name. Every step trusts one office above it. This lesson asks how to find things when no such office exists.

Before you start. From DNS Resolution you have the walk from the root to the office that owns a name, which is a lookup that depends on a few special servers. From A call without a server: WebRTC, STUN, TURN and ICE you have peer to peer, two ends talking with no server in the middle, and the NAT that blocks a packet nobody asked for. From TCP vs UDP, and the 3-way handshake you have UDP, single messages with no promise of arrival. From The whisper code (how a call goes private) you have encryption, a lock that only the right key opens. From KV: the ring you have a rule that decides which machine holds which key. Nothing else is assumed.

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

  • July 2001: the music stopped because one list was in one place
  • Pieces: how one file comes from many people
  • The missing step: who is in the swarm?
  • XOR distance: a measure of closeness for ids
  • Finding the peer: each answer gets you closer
  • Onion routing: hiding who is asking
  • The torrent file and the infohash
  • The four DHT messages and the token
  • Buckets: the routing table
  • A lookup model, run
  • Layers you can run
  • How the circuit is built
  • What each design gives up

Terms it explains: hash, pieces, distributed hash table, id, XOR distance, circuit, layers, infohash, token, buckets.

Lab

You changed the address. How long until the world stops sending people to the old one?

Set Seconds the concierge keeps the note to 300, press Add next question through the run, and watch the stranded count in The tally.

Open The TTL dial

Review Networking