How Routers Pick a Path
Age 17 · Technology
Data crosses the Internet as packets that hop from router to router until they reach their destination. Distance-vector protocols like RIP pick the route with the fewest hops, while link-state protocols like OSPF map the whole network and pick the route with the lowest total link cost, so fast links win even when the route is longer.
This picture is part of the full library
Every lesson is open to everyone for 7 days after it is published. This one came out on October 25, 2026: its text stays readable here, and its picture opens with a subscription.
The app is free. A subscription opens every lesson, in every school year.
In the picture
- The packet: a small chunk of data with a destination address
- A router: reads the address and forwards the packet to the next hop
- A fast, high-bandwidth link: low cost, so OSPF sends the packet this way
- A slow, low-bandwidth link: fewer hops, so RIP would pick this shorter route
Examples
- Your video call taking a longer but faster fibre route between cities instead of a short, congested one
- A GPS app choosing the motorway over a shorter road full of traffic lights
Key takeaways
- RIP counts hops; OSPF adds up link costs based on bandwidth
- The shortest route is not always the fastest one
Quiz: How Routers Pick a Path (Age 17)
-
How does a distance-vector protocol like RIP decide which route a packet should take?
-
What does a link-state protocol like OSPF do before it chooses a route?
-
Route A has 2 hops over slow, low-bandwidth links. Route B has 4 hops over fast, high-bandwidth links. Which route does OSPF choose?
The answers, each with its explanation, are in the app. This lesson has left the free week, so its quiz is part of the subscription.
Free app, optional subscription
App Store Google Play
Carry on in the app
At least one new illustrated lesson every weekday for your child’s year, with its quiz and a reminder at 6:15 pm.
Your child’s teacher does not use My Enhanced Teacher yet?
Tell them about it