Log in Sign up
Back to Discover
💻

Routing

technology Maturity 7-9

Computers send messages to each other. They must find the best way to go. This is like finding a path. It helps your data get home fast. It works even if a path breaks. Do you like to find paths?

40 words

Computers send messages to each other. They must find a path. This is called routing. It is like finding a way home.

Small networks can use a list of paths. These lists are made by hand. Large networks change very fast. They need to find paths on their own.

Machines can learn the best way. They talk to their neighbors. They share what they know. This helps them find a new way if a path breaks.

Some machines use a map. They look at the whole network. They pick the path with the lowest cost.

This keeps the messages moving fast. It helps the Internet work well.

107 words

Computers send messages across networks. To do this, they must find a path. This set of steps is called routing. It helps data move from one place to another.

Devices like routers help with this task. A router is a piece of hardware. It uses a routing table to make choices. This table is a list of paths to different places. A person can make this list by hand. This is called static routing. It works well for small networks.

Large networks like the Internet change very fast. They use dynamic routing. This means the machines find paths on their own. They use rules called routing protocols. One way is called distance vector routing. In this way, nodes send info to neighbors. They look for the path with the lowest cost. Cost can be a number assigned to a link.

Another way is link-state routing. In this way, each node makes a map. It uses the map to find the best path. This helps data avoid broken parts of the network. If a path breaks, the machines find a new way quickly.

182 words

Routing is the way a network finds a path for data. Think of it like a GPS for digital information. Data travels in small pieces called packets. These packets move from a source to a destination through many middle points. These middle points are called intermediate nodes. Most nodes are special hardware like routers, gateways, or switches. Even regular computers can perform routing tasks. Routing is very important because it keeps the Internet working. Without it, data would not know where to go.

To make choices, devices use a routing table. This is a list of paths to different places. A person can write these paths by hand. This is called static routing. It works well for small, simple networks. However, large networks change too fast for people to manage. These networks use dynamic routing instead. This means the machines find paths on their own. They use rules called routing protocols to talk to each other. This helps the network fix itself if a part breaks.

There are different ways these machines talk. One way is called distance vector routing. It uses the Bellman-Ford algorithm to find paths. Each link in the network is given a cost number. Nodes want to find the path with the lowest total cost. They share what they know with their neighbors. Over time, every node learns the best way to reach every destination. Another way is link-state routing. In this method, each node makes a map of the whole network. It uses Dijkstra's algorithm to find the shortest path on that map.

Different types of routing work in different places. For example, path-vector routing is used for inter-domain routing. This happens between large, independent networks called autonomous systems. In this system, a special node called a speaker node shares information. It does not just share a cost number. Instead, it shares a description of the whole path. This helps very large networks stay organized. There is also a special version called OLSR. This is used for mobile networks that move around. It uses Hello messages to find neighbors.

How a machine picks the best path is called path selection. It uses a metric to judge different routes. A metric can be many things. It might look at how much data a path can hold, or how much delay it has. It can even look at how reliable a path is. Sometimes, a machine might use multiple paths at once. This is called multipath routing. This helps keep the network from getting too crowded. Routing makes sure our digital world stays connected and fast.

434 words

Routing is the essential process of selecting a path for data traffic within a network or across multiple networks. In packet switching networks, routing acts as a high-level decision-making mechanism. It directs network packets from their original source toward a specific destination. This process happens through intermediate network nodes. These nodes are typically hardware devices such as routers, gateways, firewalls, or switches. General-purpose computers can also perform routing, though they lack specially optimized hardware. Routing is critical for the functionality of the Internet and the public switched telephone network (PSTN).

To make these decisions, devices rely on routing tables. A routing table is a record that maintains routes to various network destinations. These tables can be created manually by a network administrator. They can also be learned by observing network traffic or built using routing protocols. In a narrow sense, routing often refers specifically to IP routing. IP routing assumes that network addresses are structured. This means that similar addresses imply proximity within the network. Structured addressing allows one table entry to represent a group of devices. This method outperforms unstructured addressing, known as bridging, in large networks.

Networks use different methods to distribute their topology. Static routing involves manually configuring routing tables. This is useful for small networks but is unfeasible for large, complex topologies that change rapidly. In contrast, dynamic routing constructs routing tables automatically. This is done using information carried by routing protocols. Dynamic routing allows a network to act nearly autonomously to avoid failures or blockages. It is the dominant form of routing on the Internet. Common examples of dynamic-routing protocols include the Routing Information Protocol (RIP), Open Shortest Path First (OSPF), and the Enhanced Interior Gateway Routing Protocol (EIGRP).

There are several distinct algorithms used to determine paths. Distance vector algorithms use the Bellman–Ford algorithm to assign a cost to each link between nodes. Nodes attempt to send data via the path with the lowest total cost. When a node starts, it only knows its immediate neighbors and the direct cost to reach them. Each node regularly sends its assessment of total costs to its neighbors. Neighbors compare this to their own data and update their tables with any improvements. If a node fails, adjacent nodes discard the entry and spread updated information to find new paths.

Link-state algorithms function differently by using a graphical map of the network. Each node floods the network with information about its connections to create this map. Once a node assembles the map, it independently determines the least-cost path using a shortest paths algorithm, such as Dijkstra's algorithm. This creates a tree graph rooted at the current node. The tree specifies the best next hop for any destination. For mobile ad hoc networks, an optimized version called the Optimized Link State Routing (OLSR) protocol is used. OLSR is proactive and uses Hello and Topology Control messages to discover neighbors.

While distance vector and link-state protocols work within a single autonomous system, they cannot manage inter-domain routing. Large networks require path-vector routing to communicate between different autonomous systems. In this system, a designated speaker node acts on behalf of its entire system. The speaker node advertises a routing table to neighboring speaker nodes in other systems. Instead of just sharing a metric, path-vector routing advertises the entire path description. This path is recorded as a special attribute that shows the sequence of routing domains traversed. This prevents the instability and heavy traffic loads seen in other methods.

Path selection is the final step where a routing metric is applied to multiple routes. A metric is a value used to predict the best route based on factors like bandwidth, delay, hop count, or reliability. Most algorithms use only one path at a time, but multipath routing allows for the use of multiple alternative paths. When routes overlap, routers use a specific priority order to choose. They first look at the prefix length to find the most exact destination. They then look at the metric, where a lower value is preferred. Finally, they consider administrative distance, which indicates how reliable a routing source is.

Routing technology has evolved significantly to handle increasing speeds and complexity. Early high-speed systems used circuit switching to set up a path once for a series of packets. Modern high-speed systems often use next-hop routing, where no single device calculates the entire path. This is necessary because the sheer number of connections makes full calculation impossible. Some systems even use a randomized algorithm called Valiant's paradigm to avoid congestion. This routes packets to a random intermediate destination before sending them to the true target. By choosing different metrics, such as minimum latency for web requests, routing ensures the digital world remains efficient.

790 words
Up Next
💻
Router (computing)
Technology
More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.