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 02 · Networking · How a packet finds a house · about 14 min to read

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

Who you trust to tell you the way: BGP policy and RPKI

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

One parcel tracked from a laptop to example.com. Every hop on that path trusted a stranger’s word about which way to hand the parcel on. This lesson is about how that trust is limited.

Before you start. From How a parcel finds any house on earth you have the router (the depot of that lesson), its list of rows, the rule that the narrower row wins (longest-prefix match), and BGP, the conversation where each network (an autonomous system) tells its neighbours which addresses it owns. From Inside one postal company (distance-vector, link-state, and ICMP) you have the other half: routing protocols such as OSPF work inside one company, where every router has one owner. BGP is different because nobody owns both ends of the conversation. This lesson adds the rules that decide whose word a router accepts.

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

  • 27 June 2024: a DNS service most people use became unreachable
  • The two ways a route can be wrong
  • The policy that stops leaks: who may hear what
  • The check that stops hijacks: signing who may originate
  • What dropping invalid routes does
  • The longest length: the one setting that opens a hole
  • Route origin validation
  • Longest-prefix match, with and without validation
  • The leak rule, in code
  • The maxLength count, printed
  • Edges and trade-offs

Terms it explains: A route hijack, A route leak, customer, provider, peers, BGP policy, prefix limit, ROA, RPKI, route origin validation, Valid, Invalid, Not found, maxLength, minimal ROA, covers, matches, valley-free, Cloudflare's 2019 list.

Related paper

Review Networking