IGP Routing Protocol Algorithms
The term routing protocol algorithm refers to the logic and processes used by different routing protocols to solve the problem of learning all routes, choosing the best route to each subnet, and converging in reaction to changes in the internetwork. Three main branches of routing protocol algorithms exist for IGP routing protocols:
* Distance vector (sometimes called Bellman-Ford after its creators).
* Balanced hybrid (sometimes called enhanced distance vector).
EIGRP is called either a balanced hybrid protocol or an advanced distance vector protocol.
Routing protocols choose the best route to reach a subnet by choosing the route with the lowest metric.
|RIP-1, RIP-2||Hop count||The number of routers (hops) between a router and the destination subnet.|
|OSPF||Cost||The sum of all interface cost settings for all links in a route, with the cost defaulting to be based on interface bandwidth.|
|EIGRP||Composite of bandwidth and delay||Calculated based on the route’s slowest link and the cumulative delay associated with each interface in the route.|
The bandwidth interface subcommand does not change the actual physical speed of the interface. It just tells the IOS what speed to assume the interface is using.
IGP Comparisons: Summary
|Sends mask in update||No||Yes||Yes||Yes||Yes|
|Supports manual summarization||No||Yes||Yes||Yes||Yes|
|Routing updates are sent to a multicast IP address||No||Yes||Yes||Yes||–|
*EIGRP is often described as a balanced routing protocol, instead of link-state or distance vector. Some documents refer to EIGRP as an advanced distance vector protocol.
Comparing Features of IGPs: RIP-2, EIGRP, and OSPF:
|Metric||Hop count||Link cost||Function of bandwidth, delay|
|Sends periodic updates||Yes (30 seconds)||No||No|
|Full or partial routing updates||Full||Partial||Partial|
|Where updates are sent||126.96.36.199*||188.8.131.52, 184.108.40.206|
|Metrics considered to be “infinite”||16||(2^24)-1||(2^32)-1|
|Supports unequal-cost load balancing||No||No||Yes|
*This table specifically refers to features of RIP-2, but the only difference with RIP-1 in this table is that RIP-1 broadcasts updates to IP address 255.255.255.255.
When a single routing protocol learns multiple routes to the same subnet, the metric tells it which route is best. When two different routing protocols learn routes to the same subnet, because each routing protocol’s metric is based on different information, IOS cannot compare the metrics.
When IOS must choose between routes learned using different routing protocols, IOS uses a concept called administrative distance. Administrative distance is a number that denotes how believable an entire routing protocol is on a single router. The lower the number, the better, or more believable, the routing protocol.
Default Administrative Distances:
|Route Type||Administrative Distance|
|BGP (external routes)||20|
|EIGRP (internal routes)||90|
|EIGRP (external routes)||170|
|BGP (internal routes)||200|
IOS can be configured to change the administrative distance of a particular routing protocol, a particular route, or even a static route. You can use the ip route command to do this by tacking on the administrative distance at the end of the command.