OSPF (Open Shortest Path First) is a powerful and widely used routing protocol in modern networks. It is a link-state protocol, which means it has a detailed understanding of the network topology and calculates the shortest paths using Dijkstra's algorithm.
OSPF networks are divided into logical segments called areas to:
Area 0 (Backbone Area):
Non-backbone Areas:
OSPF defines several router roles based on their location and function:
Internal Router:
ABR (Area Border Router):
ASBR (Autonomous System Boundary Router):
Backbone Router:
LSAs are packets used by OSPF to share network topology information. They are stored in the LSDB and flooded throughout the network.
Type 1: Router LSA:
Type 2: Network LSA:
Type 3: Summary LSA:
Other LSA Types:
In multi-access networks (like Ethernet), OSPF elects a Designated Router (DR) and a Backup Designated Router (BDR) to reduce overhead.
Purpose:
Election Process:
Benefits:
OSPF builds adjacencies between routers using a seven-step state machine. Each state reflects the progression of control-plane interactions between OSPF-speaking neighbors.
OSPF Neighbor States (in order):
Bidirectional communication established.
If the interface type is broadcast or NBMA, only DR/BDR routers form full adjacencies beyond this state.
Exam Tip:
You may be asked:
“Which state indicates bidirectional communication but not a full adjacency?”
Correct answer: 2-Way
The Router ID (RID) is a unique 32-bit identifier used to identify the router in the OSPF domain. It plays a critical role in:
DR/BDR elections
LSAs
OSPF session identification
OSPF Router ID Selection Order:
Manually configured router-id
Highest loopback interface IP address
Highest active physical interface IP address
Example CLI in Junos:
set protocols ospf router-id 1.1.1.1
Exam Tip:
A question may describe a router without a configured router ID and ask what it will use. You must remember that OSPF prefers loopback IPs before physical interfaces.
Interface types determine how OSPF neighbors interact and whether DR/BDR elections occur.
| Interface Type | DR/BDR Required | Example Media | Notes |
|---|---|---|---|
| Broadcast | Yes | Ethernet | OSPF automatically elects DR/BDR |
| Point-to-Point | No | PPP, P2P links | Direct neighbors; no DR/BDR |
| NBMA | Yes (manual config) | Frame Relay, ATM | No multicast; neighbors must be manually configured |
| Point-to-Multipoint | No | Hub-and-spoke IP tunnels | Treats each connection as individual P2P |
Exam Tip:
Expect questions that ask:
“Which OSPF interface type does not require a DR/BDR?”
Correct answer: Point-to-Point
OSPF LSA Types 1–5 are most relevant to JN0-351. However, understanding the presence of additional LSA types is useful for eliminating incorrect choices.
| LSA Type | Description | Exam Relevance |
|---|---|---|
| 6 | Multicast OSPF (MOSPF) LSA – not widely used | Low |
| 7 | NSSA External LSA – used in Not-So-Stubby Areas | Medium |
| 8 | External attributes for BGP – for MPLS VPNs | Rare |
| 9-11 | OSPFv3-specific LSAs (link, intra-area prefix LSAs) | Low |
Exam Tip:
You might see a question like:
“Which of the following is not a commonly used LSA type?”
Focus on identifying Type 6 or 8 as outliers.
| Area | Key Details |
|---|---|
| Neighbor States | 2-Way ≠ Full; Full = LSDB complete |
| Router ID Selection | Config > Loopback IP > Physical IP |
| Interface Types | Point-to-Point skips DR/BDR; NBMA needs manual neighbor config |
| Extended LSA Types | Type 6, 8, 9–11 rarely used; Type 7 used in NSSA |
What conditions must be met for two routers to become OSPF neighbors?
They must have matching key parameters such as area ID, authentication, timers, and subnet.
OSPF neighbors only form when several parameters match:
Area ID
Hello and dead timers
Authentication settings
Network mask
Stub area flag
If any of these values differ, routers remain stuck in the INIT or EXSTART state. Troubleshooting OSPF adjacency issues typically involves verifying interface configuration and checking OSPF hello packets.
Demand Score: 94
Exam Relevance Score: 95
What is the role of the Designated Router (DR) in OSPF?
The DR reduces the number of adjacencies on multi-access networks.
In networks like Ethernet where many routers share the same segment, OSPF would require each router to form adjacencies with all others.
Instead, OSPF elects a Designated Router (DR) and Backup Designated Router (BDR). Other routers form adjacencies with the DR and BDR only. This reduces protocol overhead and improves scalability.
Demand Score: 90
Exam Relevance Score: 92
What is the purpose of OSPF areas?
To reduce routing overhead and improve scalability.
OSPF divides large networks into multiple areas. Each area maintains its own link-state database.
Area 0 acts as the backbone, connecting all other areas. This structure reduces the size of routing updates and limits the scope of topology changes. Proper area design is important for large enterprise networks.
Demand Score: 88
Exam Relevance Score: 90
Why might OSPF neighbors be stuck in the EXSTART state?
Usually due to MTU mismatches between interfaces.
During the EXSTART state, routers negotiate the master/slave relationship and exchange database description packets.
If the interface MTU differs between routers, they may reject packets and remain stuck in EXSTART. Other causes include duplicate router IDs or mismatched interface types.
Demand Score: 91
Exam Relevance Score: 93
What is a stub area in OSPF?
A stub area blocks external routes to reduce routing table size.
In stub areas, external routes (Type 5 LSAs) are not allowed. Instead, routers receive a default route from the Area Border Router.
This reduces memory usage and routing updates in smaller branch networks. Variations include totally stubby areas and not-so-stubby areas (NSSA).
Demand Score: 85
Exam Relevance Score: 91