OSPF & EIGRP

Link-state vs distance-vector algorithms, OSPF areas and DR/BDR election, EIGRP DUAL algorithm, and enterprise routing tradeoffs.

Overview

Overview OSPF (Open Shortest Path First) and EIGRP (Enhanced Interior Gateway Routing Protocol) are the two dominant interior gateway protocols (IGPs) used within enterprise and service provider networks. While BGP handles inter-AS routing, IGPs handle routing within a single autonomous system.

OSPF is an open-standard link-state protocol defined in RFC 2328. Each router maintains a complete map of the network topology (the Link State Database or LSDB) and runs Dijkstra's SPF algorithm to compute the shortest path tree. OSPF is organized into areas — the backbone area 0 is required, with all other areas connecting to it. This hierarchy limits the size of the LSDB and reduces SPF computation overhead. OSPF is widely used in enterprise networks, service provider cores, and is the IGP of choice for large-scale deployments.

EIGRP is a Cisco-proprietary (later partially open-sourced) advanced distance-vector protocol. Unlike classical distance-vector protocols (like RIP) that simply share routing tables, EIGRP uses the DUAL (Diffusing Update Algorithm) to maintain loop-free paths and provides instant convergence using pre-computed feasible successor routes. EIGRP is unequal-cost load balancing capable and has lower overhead than OSPF in stable networks.

In cloud and SRE contexts, OSPF appears in on-premises enterprise networks, SD-WAN underlay routing, and sometimes within large VPN environments. EIGRP appears in Cisco-centric enterprise environments. Understanding convergence behavior, neighbor relationships, and failure recovery is critical when dealing with network outages and SRE incident response.

Key concepts

  • Link-State vs Distance-Vector
  • OSPF DR/BDR Election
  • OSPF Areas
  • DUAL Algorithm (EIGRP)
  • Administrative Distance

Interview questions

  • Describe the OSPF neighbor adjacency formation process and what causes routers to get stuck in each state.
  • How does EIGRP achieve fast convergence compared to OSPF, and when would EIGRP converge faster or slower?

Sign up free to read the full topic

More Networking topics

Start free on Cariara · Coding problems · System design studio