OSPF Key Terms and Concepts Every Network Engineer Should Know

Router IDs, ABRs, ASBRs, stub areas, LSAs, costs, and adjacencies: the OSPF vocabulary is large. A plain-English reference to the key terms and concepts every network engineer working with OSPF should know.

OSPF Key Terms and Concepts Every Network Engineer Should Know - PingLabz OSPF article title card

Router Roles and Identifiers

Router ID

What it is:
A unique 32-bit identifier for each OSPF router. It looks like an IP address (e.g., 1.1.1.1), but it's not the router's interface IP - it's just a label.

If you want the bigger picture first, the OSPF complete guide covers the architecture this article plugs into.

Why it matters:
OSPF uses the router ID to identify routers in the LSDB and during DR/BDR election. No two routers in the same OSPF domain should have the same router ID.

How it's selected (Cisco routers):

  1. Manually configured router-id (highest priority)
  2. Highest IP address on a loopback interface
  3. Highest IP address on an active physical interface

Example:

Router(config-router)# router-id 10.0.0.1

Where you'll see it:

Router# show ip ospf
 Routing Process "ospf 1" with ID 10.0.0.1

Learn more: OSPF Router ID Configuration Guide

Internal Router

What it is:
A router with all interfaces in the same OSPF area.

Why it matters:
Internal routers have the simplest LSDB - they only know about their own area.

Example:
A router with all interfaces in Area 0.

Area Border Router (ABR)

What it is:
A router that connects two or more OSPF areas. At least one interface must be in Area 0 (the backbone).

Why it matters:
ABRs summarize routes between areas and are responsible for inter-area routing.

Where you'll see it:

Router# show ip ospf
  Area BACKBONE(0)
    Number of interfaces in this area is 2
  Area 10
    Number of interfaces in this area is 1
  This router is an ABR

Learn more: OSPF Areas Explained, Multi-Area OSPF Configuration

Autonomous System Boundary Router (ASBR)

What it is:
A router that injects external routes (from static routes, RIP, EIGRP, BGP, etc.) into OSPF.

Why it matters:
ASBRs are the "import points" for routes from outside the OSPF domain. They generate Type 5 LSAs.

Example:
An edge router redistributing a static default route into OSPF.

Where you'll see it:

Router# show ip ospf
  This router is an ASBR (injecting external routing information)

Learn more: Advertise a Default Route in OSPF, OSPF Redistribution

Backbone Router

What it is:
A router with at least one interface in Area 0.

Why it matters:
All inter-area traffic must pass through Area 0. Backbone routers form the core of the OSPF domain.

OSPF Areas

Area

What it is:
A logical grouping of routers and networks. Areas reduce OSPF overhead by limiting the scope of LSA flooding.

Why it matters:
Without areas, every router would need to know about every link in the entire network. Areas create boundaries that isolate SPF calculations and reduce LSDB size.

Example:

  • Area 0 (backbone)
  • Area 10 (branch offices)
  • Area 20 (data center)

Learn more: OSPF Areas Explained

Area 0 (Backbone Area)

What it is:
The central area in an OSPF domain. All other areas must connect to Area 0, either directly or via a virtual link.

Why it matters:
Area 0 is the "hub" through which inter-area traffic flows. If Area 0 is broken or discontiguous, OSPF routing can fail.

Rule:
All ABRs must have at least one interface in Area 0.

Learn more: OSPF Areas Explained

Stub Area

What it is:
An area that blocks Type 5 LSAs (external routes). Instead, the ABR injects a default route into the stub area.

Why it matters:
Stub areas reduce routing table size and LSDB size in branch offices that don't need to know about external routes.

Types of stub areas:

  • Stub - Blocks Type 5 LSAs
  • Totally Stubby - Blocks Type 3, 4, and 5 LSAs (Cisco proprietary)
  • NSSA (Not-So-Stubby Area) - Like a stub area, but allows limited external route injection
  • Totally NSSA - Combines totally stubby and NSSA

Learn more: OSPF Stub Area Configuration

OSPF Neighbors and Adjacencies

Neighbor

What it is:
Another OSPF router discovered on the same link via Hello packets.

Why it matters:
Neighbors are the foundation of OSPF. If routers can't become neighbors, OSPF won't work.

Where you'll see it:

Router# show ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
192.168.1.2     1     FULL/DR         00:00:35    192.168.1.2     Gi0/0

Learn more: OSPF Neighbor States, OSPF Neighbors Not Forming

Adjacency

What it is:
A fully formed relationship between two OSPF neighbors where they exchange LSAs and synchronize their LSDBs.

Why it matters:
Not all neighbors form adjacencies. On multi-access networks (Ethernet), only the DR and BDR form full adjacencies with all routers. Other routers remain in the "2-Way" state with each other.

State when adjacency is formed: FULL

Designated Router (DR)

What it is:
On multi-access networks (like Ethernet), the DR is the router responsible for generating Network LSAs and acting as the central point for LSA exchange.

Why it matters:
The DR prevents all routers from forming full adjacencies with each other (which would create a flood of LSA traffic). Instead, all routers form adjacencies with the DR.

How it's elected:

  1. Highest OSPF priority (default = 1, 0 = never become DR)
  2. Highest router ID (tiebreaker)

Learn more: OSPF DR and BDR

Backup Designated Router (BDR)

What it is:
The second-in-command on a multi-access network. The BDR becomes the DR if the DR fails.

Why it matters:
Provides redundancy. If the DR goes down, the BDR takes over immediately without needing an election.

How it's elected:
Second-highest priority (or second-highest router ID).

Learn more: OSPF DR and BDR

OSPF Packets and Messages

Hello Packet

What it is:
A multicast packet sent every 10 seconds (default on broadcast networks) to discover neighbors and maintain adjacencies.

What's inside:

  • Router ID
  • Area ID
  • Hello and Dead intervals
  • DR/BDR addresses
  • Authentication info
  • List of known neighbors

Why it matters:
If Hello packets don't match (area ID, timers, etc.), neighbors won't form.

Multicast address: 224.0.0.5 (AllSPFRouters)

Database Description (DBD / DD)

What it is:
A packet that contains a summary of the LSAs in a router's LSDB. It's exchanged during the adjacency formation process.

Why it matters:
DBD packets let routers compare their databases without sending every LSA. If a router sees an LSA it doesn't have, it requests it.

When you'll see it:
During the ExStart and Exchange neighbor states.

What it is:
A packet requesting a specific LSA from a neighbor.

Why it matters:
After comparing DBDs, a router sends LSRs to request missing LSAs.

What it is:
A packet containing one or more LSAs.

Why it matters:
LSUs are how routers actually share link-state information.

What it is:
A packet acknowledging receipt of an LSU.

Why it matters:
OSPF uses reliable flooding - LSAs must be acknowledged. If no ack is received, the LSU is retransmitted.

What it is:
A data structure describing a router's links, their state, and their cost. LSAs are flooded throughout an OSPF area and stored in the LSDB.

Why it matters:
LSAs are the building blocks of the LSDB. Understanding LSA types is critical for troubleshooting and design.

Where you'll see them:

Router# show ip ospf database
    OSPF Router with ID (10.0.0.1)

                Router Link States (Area 0)
Link ID         ADV Router      Age         Seq#       Checksum Link count
10.0.0.1        10.0.0.1        123         0x80000003 0x00A1B2 2

Learn more: OSPF LSA Types Explained

What it is:
A collection of all LSAs received by a router. Every router in an area has an identical LSDB.

Why it matters:
The LSDB is the "map" of the network. OSPF uses the LSDB to run the SPF algorithm and calculate routes.

Where you'll see it:

Router# show ip ospf database

SPF (Shortest Path First)

What it is:
The algorithm OSPF uses to calculate the best path to each destination. Also called Dijkstra's algorithm.

Why it matters:
SPF runs every time the LSDB changes. Fast SPF = fast convergence.

When it runs:

  • When a new LSA is received
  • When a link state changes
  • When OSPF is first enabled

Learn more: How OSPF SPF Algorithm Works

OSPF Metrics and Costs

Cost

What it is:
OSPF's metric. Lower cost = better path.

How it's calculated (Cisco default):

Cost = 10^8 / Bandwidth (bps)

Examples:

  • FastEthernet (100 Mbps): Cost = 1
  • GigabitEthernet (1 Gbps): Cost = 1 (same as FastEthernet unless you change reference bandwidth!)
  • Serial (1.544 Mbps T1): Cost = 64

Where you'll see it:

Router# show ip ospf interface gi0/0
  Cost: 1

Learn more: How OSPF Calculates Metric and Cost

Reference Bandwidth

What it is:
The bandwidth value (in Mbps) used as the numerator in the cost formula. Default is 100 Mbps.

Why it matters:
If you don't change it, all interfaces 100 Mbps and faster get a cost of 1, which means OSPF can't differentiate between a FastEthernet and a 100 Gbps link.

How to change it:

Router(config-router)# auto-cost reference-bandwidth 10000

(This sets reference bandwidth to 10,000 Mbps = 10 Gbps)

Learn more: How OSPF Calculates Metric and Cost

Miscellaneous Terms

Passive Interface

What it is:
An interface that advertises its connected network into OSPF but does not send or receive OSPF packets.

Why it matters:
Use passive interfaces on user-facing networks (VLANs, LANs) to prevent unauthorized routers from forming adjacencies and to reduce overhead.

How to configure it:

Router(config-router)# passive-interface gi0/1

Learn more: OSPF Passive Interfaces

Network Statement

What it is:
A command that tells OSPF which interfaces to enable OSPF on, based on their IP addresses.

Format:

Router(config-router)# network [network-address] [wildcard-mask] area [area-id]

Example:

Router(config-router)# network 192.168.1.0 0.0.0.255 area 0

What it does:
Enables OSPF on any interface whose IP address falls within the specified range and assigns it to the specified area.

Learn more: How to Configure Single-Area OSPF

Wildcard Mask

What it is:
The inverse of a subnet mask, used in OSPF network statements and access lists.

Example:

  • Subnet mask: 255.255.255.0
  • Wildcard mask: 0.0.0.255

Rule:
0 = must match, 255 = don't care

Learn more: How to Configure Single-Area OSPF

What it is:
A temporary OSPF tunnel used to connect a discontiguous Area 0 or to connect an area to Area 0 through a non-backbone area.

Why it matters:
Virtual links are a workaround when the OSPF design isn't ideal. They should be temporary.

Learn more: How to Configure OSPF Virtual Links

OSPF Timers

Hello Interval

What it is:
How often (in seconds) a router sends Hello packets.

Default values:

  • Broadcast/Point-to-Point networks: 10 seconds
  • NBMA networks: 30 seconds

Where you'll see it:

Router# show ip ospf interface gi0/0
  Timer intervals configured, Hello 10, Dead 40

Learn more: OSPF Timers: Hello and Dead Intervals

Dead Interval

What it is:
How long (in seconds) a router waits to hear Hello packets from a neighbor before declaring it dead.

Default values:

  • Broadcast/Point-to-Point: 40 seconds (4x Hello)
  • NBMA: 120 seconds

Learn more: OSPF Timers: Hello and Dead Intervals

OSPF Network Types

Broadcast

What it is:
The default OSPF network type for Ethernet interfaces.

Characteristics:

  • DR/BDR election: Yes
  • Hello interval: 10s
  • Dead interval: 40s
  • Multicast Hellos: Yes (224.0.0.5)

Point-to-Point

What it is:
Used on links with only two routers (e.g., serial WAN links).

Characteristics:

  • DR/BDR election: No
  • Hello interval: 10s
  • Dead interval: 40s

NBMA (Non-Broadcast Multi-Access)

What it is:
Used on Frame Relay, X.25, and ATM.

Characteristics:

  • DR/BDR election: Yes
  • Hello interval: 30s
  • Dead interval: 120s
  • Unicast Hellos: Yes (no multicast support)

Point-to-Multipoint

What it is:
A hybrid type often used on MPLS or Metro Ethernet.

Characteristics:

  • DR/BDR election: No
  • Hello interval: 30s
  • Dead interval: 120s

Learn more: OSPF Network Types Explained

Summary: Your OSPF Vocabulary Checklist

Now you know:

Router roles - Internal router, ABR, ASBR, DR, BDR
Areas - Area 0, stub areas, NSSA
Neighbors and adjacencies - How routers form relationships
OSPF packets - Hello, DBD, LSR, LSU, LSAck
LSAs and LSDB - The building blocks of OSPF
Metrics - Cost, reference bandwidth
Timers - Hello and Dead intervals
Network types - Broadcast, point-to-point, NBMA

Next Step:
Now that you speak OSPF, it's time to understand how neighbors form and adjacencies are established. Read OSPF Neighbor States Explained next.

Internal Links:

References

Take the OSPF reference with you
The free OSPF field-reference PDF: neighbor states, LSA types, and the show commands you will actually run. Delivered by email, no card required.
Get the free PDF

Read next