Dynamic Routing Protocols: How Networks Find Another Way
When a network connection fails, routers can learn about the change and choose another available path. A dynamic routing protocol supplies the rules for exchanging that information; it doesn't create a backup connection where none exists.
A router forwards packets, the small units that carry network data, toward their destinations. Its routing information helps it choose a next hop, the next router or connection to use.
How Routers Learn the Way on Their Own
Routers exchange directions before forwarding traffic
Dynamic routing lets routers advertise destinations they can reach and receive information from other routers. An advertisement is a routing message, not a commercial ad.
Each router uses the learned information, the protocol's rules and its configuration to select routes. Juniper's routing overview describes how these exchanges feed a routing table, the router's collection of known routes.
The route exchange and the delivery of your video, message or document are separate activities. Once a forwarding choice is available, the router can send packets onward without asking every other router for directions each time.
“Best” depends on the rules
Routing protocols don't all measure a route the same way. A metric is a value used to compare routes, while a routing policy sets preferences or limits chosen by the network operator.
| Protocol | What influences the choice? |
|---|---|
| RIP, Routing Information Protocol | Hop count: how many router steps a route takes. |
| OSPF, Open Shortest Path First | The combined cost of links along a path, within its routing rules. |
| BGP, Border Gateway Protocol | Configured policies and route information, including the networks a route passes through. |
Cisco's RIP explanation describes its hop-count metric. Fewer router steps don't guarantee a faster download if one of those connections is slow or crowded.
The OSPF specification assigns configurable costs to connections and calculates paths from network information. “Shortest” refers to the routing cost, not miles on a map or necessarily the fewest milliseconds.
OSPF commonly handles routing within one administratively managed network. BGP exchanges routes between such networks and can also distribute BGP information within them.
The BGP specification makes locally configured policy part of route selection. An operator may prefer one connection because of its agreements or design, rather than because it wins a speed test.
- Get five gigabit ports and a fast ARM processor for the price of a basic home router.
- Practice real routing at your desk on gear that network pros also deploy.
- Tuck it beside your modem: it takes up almost no room.
A broken link starts a process
Suppose a branch office has two usable paths to headquarters, and its preferred connection fails. A router detects the failure and can switch to a usable alternative, while routing updates help the network adjust.
Convergence is the process of routing information settling to reflect the changed network. While that happens, packets may be lost or take an unintended path because routers don't all learn the news at once.
The time involved depends on the protocol, failure detection and network configuration. If both connections are broken, exchanging more routing messages won't restore the missing path.
Dynamic routing also uses processing power and network capacity for its updates. A static route is configured by an administrator instead of learned through a routing protocol, and simple networks may need only a few such routes.
Automatic routing still needs an owner
Administrators choose which routers exchange updates and which routes they'll accept or advertise. An incorrect announcement can misdirect traffic even when every router faithfully follows its configured rules.
The Internet Engineering Task Force's BGP operational-security guidance covers protecting routing connections and filtering announcements. Filtering means rejecting route information that shouldn't be accepted or passed on.
For a network meant to survive an outage, test the failure you expect it to handle. Check that an alternative actually exists, becomes usable in time and has enough capacity for the traffic that moves onto it.
Static Routing: A Written Instruction for the Next Hop

Link-State Routing: How Routers Share a Changing Map

Distance-Vector Routing: How Routers Learn the Way

QUOTE:
"Amateurs hack systems, professionals hack people."
