3.2.a Compare EIGRP and OSPF: algorithm, load balancing, path selection, metrics, areas
ENCOR 350-401 v1.2 · 3.0 Infrastructure
EIGRP and OSPF are the two interior routing protocols ENCOR compares. EIGRP is an advanced distance-vector protocol using DUAL; OSPF is a link-state protocol using SPF. They differ in what they know, how they pick paths, how they load-balance and how they scale.
What you must know
- Compare the algorithms: DUAL (successor, feasible successor, feasibility condition) and Dijkstra SPF over the LSDB.
- Compare metrics: EIGRP composite (bandwidth and delay) and OSPF cost.
- Explain load balancing: equal-cost for both, unequal-cost with EIGRP
variance. - Compare scaling: OSPF areas and LSA types, EIGRP stub and summarisation.
Side by side
| EIGRP | OSPF | |
|---|---|---|
| Type | Advanced distance vector | Link state |
| Algorithm | DUAL | Dijkstra SPF |
| Metric | Composite: minimum bandwidth and total delay (K1, K3); wide metrics for 64-bit | Cost = reference bandwidth / interface bandwidth, summed |
| Knows | Neighbors' advertised distances | The full topology of its area (LSDB) |
| Hierarchy | None needed; stubs and summarisation limit queries | Areas around backbone area 0 |
| Load balancing | Equal-cost, plus unequal-cost with variance | Equal-cost only |
| AD | 90 internal, 170 external | 110 |
| Transport | IP protocol 88, 224.0.0.10 | IP protocol 89, 224.0.0.5 / .6 |
DUAL, successors and feasible successors
For each prefix EIGRP knows its feasible distance (FD, its best metric) and each neighbor's reported distance (RD). The best neighbor is the successor. A neighbor whose RD is lower than the FD is a feasible successor: it is guaranteed loop-free and becomes the successor instantly if the successor fails. Without one, the route goes active and EIGRP queries its neighbors.
Here R3's reported distance (3,072) is not lower than R1's FD (3,072), so it fails the feasibility condition and is not a feasible successor, even though it may be a valid path. OSPF does no such test: every router runs SPF over the same database and installs the lowest total cost.
router eigrp 100
variance 2 ! install feasible successors whose metric is up to 2 × the FDCommands
show ip eigrp topology | Successors and feasible successors with FD and RD. |
show ip ospf database | The LSDB that SPF runs on. |
show ip protocols | Metric weights, variance, maximum paths, areas. |
Exam traps
- A feasible successor needs RD strictly less than the current FD.
- Only EIGRP does unequal-cost load balancing (
variance), and only over feasible successors. - EIGRP's default metric uses the minimum bandwidth and cumulative delay.
- OSPF's default reference bandwidth (100 Mbps) makes all fast links cost 1.
Check yourself
- FD is 3,000. Neighbor X reports 2,500, neighbor Y 3,000. Which is a feasible successor?
- X only: Y's RD is not lower than the FD.
- Which protocol can load-balance over unequal-cost paths?
- EIGRP, with
variance. - What does an OSPF router know that an EIGRP router does not?
- The full topology of its area (every router and link), not just neighbors' distances.
More topics in 3.0 Infrastructure
- 3.1.a Troubleshoot 802.1Q trunks, whether configured statically or negotiated
- 3.1.b Troubleshoot static and dynamic EtherChannels
- 3.2.c Configure and verify eBGP between directly connected neighbors
- 3.2.d Describe policy-based routing
- 3.3.a Interpret NTP and PTP configurations
- 3.3.b Configure NAT and PAT
- 3.3.c Configure first-hop redundancy with HSRP and VRRP
- 3.3.d Describe multicast: RPF check, PIM-SM, IGMPv2/v3, SSM, bidir, MSDP