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

Side by side

EIGRPOSPF
TypeAdvanced distance vectorLink state
AlgorithmDUALDijkstra SPF
MetricComposite: minimum bandwidth and total delay (K1, K3); wide metrics for 64-bitCost = reference bandwidth / interface bandwidth, summed
KnowsNeighbors' advertised distancesThe full topology of its area (LSDB)
HierarchyNone needed; stubs and summarisation limit queriesAreas around backbone area 0
Load balancingEqual-cost, plus unequal-cost with varianceEqual-cost only
AD90 internal, 170 external110
TransportIP protocol 88, 224.0.0.10IP 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 FD

Commands

show ip eigrp topologySuccessors and feasible successors with FD and RD.
show ip ospf databaseThe LSDB that SPF runs on.
show ip protocolsMetric weights, variance, maximum paths, areas.

Exam traps

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