Caffeinated Coder
Book an appointment
Lesson 34 · Routing

Routing tables and longest prefix match

A router decides where every packet goes by reading its routing table: a list of destination prefixes, each with a port and a next hop. Watch four packets arrive at one router. For each, several rows match, and the router always picks the most specific one: the longest prefix. 0.0.0.0/0, the default route, catches everything else.

10 min11 steps5 questionsBeginner
Fig 34 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.