What is Routing? How Data Finds Its Destination

Summary
Understand the fundamentals of network routing. Learn how routers make decisions to send data across the internet efficiently.

What is Routing? How Data Finds Its Destination

Direct Answer: Routing is the process of selecting the best path for data packets to travel across one or more networks. A router acts as a traffic director at an intersection, reading the destination address on incoming data and sending it down the correct physical cable to get it closer to its goal.

The Postal System Analogy

Imagine sending a letter from Dhaka to New York. You drop it in a local mailbox. The local post office looks at the zip code and determines it needs to go to the central sorting facility. The central facility puts it on a plane to the US. A facility in the US routes it to the specific state, then the city, and finally the local mail carrier drops it at the correct house.

In networking:

  • The letter is the Data Packet.
  • The zip code is the Destination IP Address.
  • The post offices and sorting facilities are the Routers.

How Routers Make Decisions

When a router receives a packet of data, it does not magically know where every computer in the world is located. It only knows about the networks it is directly connected to, and what other routers have told it.

To make a decision, the router checks its Routing Table.

The Routing Table

The routing table is essentially a list of rules that says:

  • “If the destination is 192.168.2.x, send the packet out of Port 1.”
  • “If the destination is 10.5.0.x, send the packet to the router at 192.168.1.5 because he knows where it is.”

If the router looks at the destination IP address and cannot find a specific match in its routing table, it uses the Default Route.

The Default Route (Gateway of Last Resort)

The default route is the rule that says: “If you have absolutely no idea where this IP address is, hand it to the router above you and let them figure it out.”

For your home Wi-Fi router, the default route points to your Internet Service Provider (ISP). When you request google.com, your home router doesn’t know where Google’s servers are, so it uses the default route to forward the request to the ISP’s massive routers, which do know the way.

Types of Routing

  • Static Routing: A network administrator manually types the rules into the routing table. This is highly secure but difficult to manage in large networks.
  • Dynamic Routing: Routers use specialized languages (like OSPF or BGP) to constantly talk to each other and automatically update their routing tables if a cable gets cut or a faster path becomes available. BGP is the protocol that runs the global internet.