Overview

[[Networking]]

Used to overcome the shortcomings of static routing where static routing is simply impractical.

A dynamic routing table is made, maintained, and updated by routing protocol running within the router

The whole point of dynamic routing is to share routing info with other routers, discover remote networks and to chose the optimal path for your packets to travel.

Can automatically adapt to link failures and new nodes.

Classifying Dynamic Routing

Distance-Vector
RIP (Routing Information Protocol)

Count to infinity problem: We have 3 routers with their own tables. Each table holds the distance to the nodes. Eventually each routing table with reach convergence; which is good. When one of those nodes goes offline the neighboring table will continue to try and count until it reaches the offline router. This makes the router hop count become infinity and then, as normal, the infinite hop router will then send that information around to the other nodes subsequently spreading broken information around. Solutions: - Route poisoning: - Prevents routers from sending packets through a route that has been deemed invalid within a network. A metric called “infinity” is used to flag tables with invalid info - Split Horizon: - Used to prevent advertising the cost to a neighbor is this neighbor is the next hop on the current path