What Is Routing?
How Does Routing Determine the Path That Data Takes Across Networks?
Routing is the process of determining the path that data packets follow as they travel from a source device to a destination across one or more interconnected networks. It is a fundamental function of Internet Protocol (IP) networking and enables communication between devices located on different local area networks, across wide area networks, and throughout the global Internet.
The basic principle is straightforward. When a packet reaches a router, the router examines the packet's destination IP address and compares it with entries in its routing table. Each entry identifies a known destination network and the preferred next step, or next hop, toward that destination. Using this information, the router forwards the packet to another router or directly to the destination network. At each subsequent router, the process is repeated until the packet arrives at its final destination.
A useful analogy is planning a journey by road. A driver travelling from one city to another follows a sequence of roads and intersections rather than attempting to drive directly across the countryside. At every major intersection, road signs indicate the best direction to continue. Similarly, routing determines the sequence of networks and routers through which a packet should travel.
Routing may be static or dynamic. In static routing, routes are entered manually by a network administrator and remain unchanged until they are modified. Static routing is simple and predictable but is practical only for relatively small or stable networks. Dynamic routing uses specialised routing protocols that allow routers to exchange information automatically, discover new networks, and adapt to changes such as failed links or network congestion. Common dynamic routing protocols include Open Shortest Path First (OSPF) and Intermediate System to Intermediate System (IS-IS) within an organisation, and the Border Gateway Protocol (BGP) between Internet service providers and other autonomous systems.
Routing decisions are based on various metrics that describe the desirability of different paths. Depending on the routing protocol, these metrics may include hop count, available bandwidth, link delay, reliability, administrative preference, or network policy. Rather than always choosing the physically shortest path, routing algorithms generally select the path that best satisfies these criteria while maintaining reliable communication.
It is important to distinguish routing from switching. Routing forwards IP packets between different networks using network-layer addresses, whereas switching forwards Ethernet frames within a single LAN using MAC addresses. Likewise, routing differs from bridging, which also operates within a local network at the data link layer. A router is the hardware or software that performs routing, while routing itself is the decision-making process.
Today, routing is one of the fundamental functions that enables the Internet and other IP-based communication networks to operate. Through a combination of routing tables, dynamic routing protocols, and intelligent path selection, routing ensures that billions of packets are delivered efficiently and reliably between devices located anywhere in the world.
Back to reading