Tech●●●●●Difficulty 3 of 5

How does a router decide where each packet goes?

No router on the internet knows the whole route your data will take. Each one only knows the next hop.

▶ Start the story

A router reads the address on each packet and passes it to the next router that gets it closer. That is all. When a packet arrives, the router looks at the network address in its , checks its routing table, and sends the packet on to the next network on its journey. A packet is forwarded from one router to another until it reaches its destination.

No single router needs to know the whole path. A routing table holds network and next-hop pairs: for each destination, which neighbouring router is the best way to go. Think of a distribution map in package delivery, where each depot only knows which truck to load a parcel onto next. If the tables are consistent, simply relaying a packet to its is enough to deliver data anywhere.

What a router does with each packet
  1. Step 1: Packet arrives

    On one of the router's lines

  2. Step 2: Read the address

    The destination in the

  3. Step 3: Check the table

    Find the

  4. Step 4: Forward it

    To the next router on the journey

A router does not keep a line for every device in the world. Because addresses are structured, a single routing table entry can stand for a whole group of devices. And the tables are not typed in by hand. Large networks change too quickly for that, so routers build their tables automatically with , which lets the network steer around failures and blockages. Dynamic routing dominates the internet.

The most familiar router is the box at home that links your computers to the internet. The first true IP router, however, was built by Ginny Travers at BBN in 1975 to 1976, and by the end of 1976 three of them were running on the experimental internet.

Quiz me

0/3

  1. 1.Why can the internet deliver data even though no router knows the full route?
  2. 2.How does a routing table avoid needing one entry for every device in the world?
  3. 3.What happens when a link in a large network breaks?

Recap

Each router only needs to know the next hop for a destination, and routing protocols keep those tables up to date automatically.

💡 A trick to remember it · Routers play pass-the-parcel: nobody holds the map of the whole trip, each one just knows who to hand it to next.

Surprising fact · The first true IP router was built by Ginny Travers at BBN in 1975 to 1976, and three were running by the end of 1976.

Sources (3)

No source, no claim. Every fact in this lesson (14 claims) cites at least one of these.

  1. [1]Router (computing) · Wikipedia
  2. [2]Routing table · Wikipedia
  3. [3]Routing · Wikipedia
More lessons in 💻 Tech (3) See all tech lessons →

One more light on your map.

Get one lesson like this every day, about the things you love. Free, in two or five minutes.

Get the share card for this lesson ↗