Routing tables and longest-prefix match

Follow one packet through a router's route table, see why the longest matching prefix wins, and learn when several routes can be summarised as one. Switching and routing · Computer networks.

Three routes in one table all contain the same destination address, and each sends the packet somewhere else. See how a router picks one, and what it does when none fits.

What you will learn

  • Match a destination against a route's prefix bit by bit
  • Choose among matching routes by the longest prefix
  • Predict default, connected and dropped outcomes

Lesson outline

  1. Reading a route
  2. The longest prefix wins
  3. Default, connected and missing routes
  4. Summarising routes

18 minutes · 8 scenes · 0 predict checks · 10 quiz questions

The full lesson is available with Premium.