How a Router Picks the Path
Age 18 · Technology
A router chooses which way to send each packet using a routing protocol. OSPF adds up the cost of each link and picks the cheapest path, even if it passes more routers, while RIP just counts hops and picks the route with the fewest.
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 22, 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 piece of data travelling from the laptop to the server
- The first router: it compares the routes and decides where to send the packet next
- A fast, thick link: low OSPF cost, so the longer upper route costs less in total
- A slow, thin link: high OSPF cost, but RIP would pick this route because it has fewer hops
Examples
- A sat-nav that sends you along a longer motorway instead of the shorter route through slow town streets
- A video call travelling through several fast fibre links instead of one slow, congested connection
Key takeaways
- OSPF picks the path with the lowest total link cost, and faster links usually cost less
- RIP picks the path with the fewest hops and treats more than 15 hops as unreachable
Quiz: How a Router Picks the Path (Age 18)
-
How does OSPF decide which path a packet should take?
-
Under RIP, how is a destination treated if reaching it would take more than 15 hops?
-
One route crosses more routers but uses fast links, and another crosses fewer routers but includes a slow link. Which statement is correct?
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