Cisco 300-410: OSPF Design, Optimization and Troubleshooting — Study Guide
Part of the Cisco CCNP Enterprise 300-410 ENARSI — Study Guide. Practice with verified answers in the Cisco exam hub, or take timed practice tests on ExamRoll.io.
Overview
Open Shortest Path First (OSPF) is a link-state IGP with rapid convergence, strong hierarchy, and flexible policy controls. Effective designs emphasize clean area boundaries, bounded LSDB size, coherent network types, and consistent security and timers. This section distills adjacency mechanics, LSA behavior, area types, border-router roles, security, convergence tuning, OSPFv3 specifics, and a structured troubleshooting approach.
Neighbor Adjacency, Network Types, and DR/BDR Design
Neighbor states and formation
- States: Down → Init → 2-Way → ExStart → Exchange → Loading → Full. NBMA adds Attempt.
- Hello processing forms 2-Way when bidirectional; Full occurs only with elected peers (DR/BDR/DROther logic) or on point-to-point.
- Database sync uses DBD, LSR, LSU, and LSAck to reach Full.
Common mismatches and failure modes
- Area ID/type mismatch (normal vs stub/NSSA flags) prevents adjacency.
- MTU mismatch commonly stalls at EXSTART/EXCHANGE; fix by matching interface MTU or using ip ospf mtu-ignore.
- Hello/dead mismatch aborts neighbor formation.
- Authentication/type/key mismatch blocks adjacency.
- Network type mismatch (broadcast vs NBMA vs point-to-point/point-to-multipoint) disrupts DR logic.
- Duplicate router IDs, unreachable source IPs, or unicast RPF/filtering can break sessions.
Network types and DR/BDR
- Broadcast (e.g., Ethernet, DMVPN mGRE defaults) and NBMA elect a DR/BDR; point-to-point and point-to-multipoint do not.
- DR election: highest interface priority, then highest router ID. Nonpreemptive; to replace DR/BDR, reset adjacencies or change segment.
- Interface-priority design:
- On shared LANs, prefer a stable, well-powered device as DR. Example: interface-level ip ospf priority 200.
- In single-hub DMVPN, ensure the hub becomes DR to avoid hub-and-spoke reachability holes: interface Tunnel0 ip ospf priority 200
- On unstable segments, consider point-to-multipoint to eliminate DR churn at the cost of extra LSAs and less efficient flooding.
LSAs, LSDB Sync, SPF, and Route Installation
LSA types and scope
- Type 1 Router and Type 2 Network (intra-area topology).
- Type 3 Summary (ABR) and Type 4 ASBR Summary (ABR reachability to ASBR).
- Type 5 AS-External (E1/E2) for redistributed routes.
- Type 7 NSSA-External (N1/N2), translated to Type 5 at the NSSA ABR.
- Opaque LSAs (Type 9/10/11) for extensions such as TE; scope is link/area/AS.
LSDB synchronization
- After neighbor election, DBD exchange determines newer LSAs. Missing entries are requested via LSR and sent via LSU.
- Consistent LSA checksums/sequence numbers are mandatory; corruption leads to stuck LOADING states.
SPF calculation and incremental SPF
- SPF computes a shortest-path tree per area. Costs are additive; intra-area paths preferred over inter-area, then externals.
- External preference: E1/N1 includes internal cost; preferred over E2/N2 of same destination.
- Route installation ranks (default AD): OSPF routes have 110; if needed, tune with distance ospf intra-area inter-area external.
- Incremental SPF (ispf) recomputes only affected subgraphs, reducing CPU during flaps: router ospf 1 ispf
Forwarding address and external reachability
- External LSAs may carry a forwarding address (FA). The router must have a route to the FA; otherwise, it uses the advertising ASBR.
- Missing Type 4 LSAs or lack of FA reachability prevents external route installation.
Areas, Borders, Virtual Links, Summarization, and Externals
Area types
- Backbone (area 0): mandatory transit for inter-area traffic; must be contiguous.
- Normal: all LSAs allowed.
- Stub: blocks Type 5; ABR injects a default (Type 3).
- Totally stubby (vendor-specific): blocks Type 3,4,5 except a single default.
- NSSA: permits Type 7 (local redistribution) but blocks Type 5; no default unless configured.
- Totally NSSA: like NSSA but suppresses most Type 3s; can still receive a default.
ABRs and ASBRs
- ABR has interfaces in area 0 and one or more non-backbone areas; originates Type 3 and Type 4 LSAs; ideal place for summarization.
- ASBR redistributes external routes into OSPF (Type 5 or Type 7 in NSSA).
- Place ABRs at stable, high-capacity nodes; avoid deep area nesting; bound each area’s topology to manageable size.
Virtual links
- Use sparingly to bridge an area to backbone via a common transit area. Both endpoints must be ABRs; avoid using unstable or stub/NSSA transit areas.
Summarization and default origination
- Inter-area summarization on ABRs: router ospf 1 area 10 range 10.0.0.0 255.255.0.0 advertise
- External summarization on ASBRs: router ospf 1 summary-address 172.16.0.0 255.255.0.0
- Defaults:
- Into normal areas: default-information originate [always] [metric-type 1|2].
- Stub/totally stub areas: ABR injects default automatically.
- NSSA: area 10 nssa default-information-originate.
External route handling
- E1/N1 vs E2/N2 selection: prefer cost-aware (E1/N1) when multiple exits exist.
- In NSSA, a single ABR performs Type7-to-Type5 translation (highest router ID or explicitly configured). Ensure consistent policy.
Security, Timers, Convergence Tuning, OSPFv3, and Structured Diagnosis
Authentication and secure adjacencies
- OSPFv2 supports simple and cryptographic authentication; prefer key chains with HMAC-SHA/MD5 and lifetimes for zero-downtime rollover: key chain OSPF-KEYS key 1 key-string OLDKEY accept-lifetime 00:00:00 1 Jan 2026 23:59:59 30 Jun 2026 key 2 key-string NEWKEY accept-lifetime 00:00:00 1 Jun 2026 infinite interface GigabitEthernet0/0 ip ospf authentication key-chain OSPF-KEYS
- OSPFv3 omits built-in auth; use IPsec (AH/ESP) or the OSPFv3 Authentication Trailer. Apply per interface or via key chains where supported.
Timers, throttling, and fast detection
- Hello/dead defaults: 10/40s on broadcast/point-to-point, 30/120s on NBMA/point-to-multipoint. Tune consistently on both sides.
- Fast hellos: ip ospf dead-interval minimal hello-multiplier 5 (use with BFD for robustness).
- BFD: rapid peer failure detection integrated with OSPF (ip ospf bfd).
- Throttling and pacing: router ospf 1 timers throttle spf 50 200 5000 timers throttle lsa all 50 200 5000 timers lsa arrival 20
- Incremental SPF (ispf) reduces recomputation impact under churn.
OSPFv3 behavior and IPv6/IPv4 deployment
- Neighbors form using link-local IPv6; router ID remains 32-bit and must be unique per process.
- Interface-based activation per address family; OSPFv3 supports IPv6 and, on modern platforms, IPv4: interface GigabitEthernet0/0 ospfv3 1 ipv6 area 0 ospfv3 1 ipv4 area 0
- LSA model updated (functionally equivalent types with different numbering); area design and preference rules mirror OSPFv2.
Structured diagnosis: missing routes and unstable adjacencies
- Missing OSPF routes:
- Verify adjacency state and LSDB: show ip ospf neighbor, show ip ospf database.
- Confirm area type allows expected LSAs (e.g., Type 5 pruned in stub; Type 7 only in NSSA).
- Check for absent Type 4 LSAs to an ASBR; ensure ABR presence and backbone reachability.
- Validate external FA reachability and redistribution policy/metrics.
- In VRF/VRF-lite, enable capability vrf-lite under router ospf X vrf NAME when needed, and use show ip route vrf NAME to confirm RIB installation.
- Unstable adjacencies:
- Correlate with L2 events; consider BFD for detection and reduce DR churn by fixing interface priority or using point-to-multipoint.
- Resolve EXSTART/EXCHANGE stalls by matching MTUs; LOADING stalls by clearing LSDB inconsistencies and ensuring unique router IDs.
- Align hello/dead/authentication/network type on both sides; on NBMA, ensure neighbor statements or dynamic discovery per design.
Short configuration examples
- Convert a broadcast segment to point-to-multipoint to remove DR: interface GigabitEthernet0/1 ip ospf network point-to-multipoint
- NSSA default injection: router ospf 1 area 20 nssa default-information-originate
Practical Problem Scenario
Contoso Warehousing operates a single-hub DMVPN with 120 spokes. OSPF runs over the mGRE/IPsec overlay. Operations report intermittent reachability between spokes and missing external routes from a data center ASBR.
Approach
- Ensure deterministic DR/BDR on the DMVPN hub
- Rationale: The DMVPN overlay behaves as a multiaccess segment for OSPF. A stable DR at the hub prevents partial LSDBs and spoke-to-spoke black holes.
- Action: interface Tunnel0 ip ospf priority 200
- Normalize OSPF network type and hello/dead timers
- Rationale: Mixed network types and timer mismatches cause frequent neighbor resets. Consistency stabilizes the adjacency matrix.
- Action: Set all tunnel interfaces to broadcast with hello/dead 10/40, or switch to point-to-multipoint if suppressing DR is preferred.
- Fix EXSTART/EXCHANGE stalls by aligning MTUs
- Rationale: MTU mismatches block DBD negotiation and stall at EXSTART/EXCHANGE.
- Action: Match tunnel and physical MTUs; as a last resort, apply ip ospf mtu-ignore on all tunnel interfaces.
- Enable BFD on tunnels
- Rationale: Rapid failure detection reduces convergence time without aggressive hello timers.
- Action: interface Tunnel0 ip ospf bfd
- Throttle SPF and LSA generation, and enable iSPF
- Rationale: With 120 spokes, unthrottled SPF/LSA bursts can spike CPU and extend outages.
- Action: router ospf 100 ispf timers throttle spf 50 200 5000 timers throttle lsa all 50 200 5000 timers lsa arrival 20
- Restore external route visibility from the data center
- Rationale: Spokes miss redistributed prefixes because Type 5 LSAs are not present in a spoke NSSA.
- Action: If spokes are in NSSA, ensure Type 7 translation at the hub ABR and inject a default where needed: router ospf 100 area 10 nssa default-information-originate Confirm a single ABR performs Type7-to-Type5 translation and that Type 4 LSAs to the ASBR exist.
- Summarize at ABRs and ASBRs
- Rationale: Summarization shrinks the LSDB and limits churn scope.
- Action: router ospf 100 area 10 range 10.50.0.0 255.255.0.0 summary-address 172.20.0.0 255.255.0.0
- Secure and roll keys without downtime
- Rationale: Authentication mismatches create flaps; rolling keys with lifetimes avoids adjacency loss.
- Action: key chain OSPF-KEYS key 10 key-string OLD accept-lifetime … key 20 key-string NEW accept-lifetime … interface Tunnel0 ip ospf authentication key-chain OSPF-KEYS
By enforcing stable DR selection, harmonizing network types and timers, eliminating MTU-induced stalls, constraining SPF/LSA churn, and correcting area/external policy, Contoso’s DMVPN OSPF domain converges predictably and advertises all intended prefixes to every spoke.
← Advanced IPv4 and IPv6 Addressing · All domains · EIGRP Design →
Practice these questions → · Timed practice on ExamRoll.io →
Pass the whole exam — not just this question
You found this answer. Get every verified question and explanation in one place, and save hours of prep. Free to start.
Pass your exam →