Open Shortest Path First (OSPF) Protocol Fundamentals (original) (raw)

Last Updated : 8 Oct, 2025

Open Shortest Path First (OSPF) is a link-state Interior Gateway Protocol (IGP) developed by the Internet Engineering Task Force (IETF) to provide efficient routing within an Autonomous System (AS). OSPF uses the Shortest Path First (SPF) algorithm, developed by Dijkstra, to determine the best route to each destination.

OSPF

OSPF Network Topology

**Note: Unlike distance-vector protocols (like RIP), OSPF does not send periodic updates, instead, it triggers updates only when a change occurs in the network. This makes OSPF faster, more scalable and more efficient, making it widely used in large enterprise and service provider networks.

Open Shortest Path First (OSPF) Basics

**224.0.0.5: All OSPF routers.
**224.0.0.6: Designated Router (DR) and Backup Designated Router (BDR).

OSPF Terminologies

**1. Link-State Advertisements (LSAs): Carry network topology information.

**2. Link-State Database (LSDB): Collection of all LSAs in the area.

**3. Areas

4. Router Types

5. Neighbor Adjacency Requirements

OSPF Configuration Steps

  1. Assign a Router ID (manual or automatic).
  2. Enable OSPF on interfaces using network statements.
  3. Define areas and network types (Area 0 is mandatory).
  4. Set authentication (Null, Plain-text or MD5).
  5. **Verification commands:

show ip ospf neighbor – Displays OSPF neighbors.
show ip ospf database – Displays LSDB.

OSPF Message Types

  1. **Hello Message: Discovers and maintains neighbor relationships.
  2. **Database Description (DBD): Summarizes LSDB contents for comparison.
  3. **Link-State Request (LSR): Requests missing LSAs from neighbors.
  4. **Link-State Update (LSU): Contains full LSAs to update neighbors.
  5. **Link-State Acknowledgment (LSAck): Confirms receipt of LSUs.

OSPF Timers

OSPF Network Types

Pros of OSPF

Cons of OSPF