StudyGraph
Networking Explainer

How a Router Decides Where Packets Go

A router never knows the whole path. So how does your packet arrive?

Lesson notes

Key points

Definitions

Routing table
A list of destination networks, each with a next-hop address or outgoing interface the router uses to forward packets.

Takeaway: Routers forward hop by hop using the longest matching prefix.

Quick check: A packet matches both a /16 and a /24 route. Which route does the router use?
  1. The /16 route
  2. The /24 route
  3. The default route

Longest prefix match chooses the most specific route, the /24.

Routing tableLongest prefix matchDefault routeTTL

Lessons like this, for your syllabus.

Short narrated study videos written for your course, level and exam. Free to start.

Get lessons for your own syllabus