Post

OSPF Areas - Technical Notes

OSPF Areas - Technical Notes

πŸ›°οΈ OSPF Special Areas & LSAs – Complete Technical Notes


OSPF (Open Shortest Path First) operates using a Link State Database (LSDB), which contains Link State Advertisements (LSAs).
Each LSA type shares specific information about the OSPF topology.
Special areas (Stub, NSSA, etc.) function primarily by filtering or blocking certain LSA types to optimize performance.


πŸ“œ LSA Types Overview

LSA TypeNamePurpose / ContentScope & Border BehaviorPrefix Info?
1Router LSALists router links, costs, and neighbors (in point-to-point).Flooded only within the area.βœ… Yes
2Network LSALists router IDs of all routers on a broadcast network (DR/BDR).Flooded only within the area.❌ No (Router ID info only)
3Summary LSAContains inter-area prefixes (O IA). Generated by ABRs.ABR blocks LSA 1/2, translates into LSA 3 when moving between areas.βœ… Yes
4ASBR Summary LSAContains Router ID of the ASBR.Generated only by the ABR. Used to calculate the path to ASBR.❌ No
5External LSAContains external prefixes (e.g., redistributed RIP, EIGRP, BGP).Flooded throughout the OSPF domain.βœ… Yes
7NSSA External LSAExternal routes generated by an ASBR inside an NSSA.Flooded only within NSSA. ABR translates to LSA 5.βœ… Yes

Insight:
The main goal of special OSPF areas is to reduce LSDB size and routing table entries, lowering CPU and memory usage by limiting LSA flooding.


πŸ—ΊοΈ II. OSPF Special Area Types

Special OSPF areas modify which LSAs are flooded to reduce routing overhead.
They mainly block LSA 3 (inter-area), LSA 4 (ASBR Summary), and LSA 5 (External).


πŸ”Ή 1. Stub Area

Purpose: Prevent external routing information (LSA 4, 5) from entering the area.

FeatureDetails
LSAs Blocked (Incoming)LSA 4, LSA 5
Default RouteABR automatically generates a Type 3 Summary LSA (0.0.0.0)
Rules / Restrictions- Cannot be Area 0
- No Virtual Links
- No ASBR present
- All routers must have stub flag set
Configurationarea <area-id> stub

πŸ”Ή 2. Totally Stub Area

Purpose: A stricter version of Stub Area that also blocks inter-area routes (LSA 3).

FeatureDetails
LSAs Blocked (Incoming)LSA 3, LSA 4, LSA 5
Database ContentContains only LSA 1 (intra-area), LSA 2 (DR info), and one default LSA 3 (0.0.0.0)
Default RouteABR automatically generates Type 3 default route
Rules / RestrictionsSame as Stub Area
ConfigurationOn ABR: area <area-id> stub no-summary
On other routers: area <area-id> stub

πŸ”Ή 3. Not-So-Stubby Area (NSSA)

Purpose: Allows ASBR presence inside a stub area (for route redistribution).

FeatureDetails
LSAs Blocked (Incoming)LSA 4, LSA 5 (from other areas)
Internal ASBR BehaviorGenerates LSA 7 instead of LSA 5
LSA 7 TranslationABR converts LSA 7 β†’ LSA 5 and floods it externally
Default RouteNot generated automatically
Manual Default Routearea <area-id> nssa default-information-originate
ConfigurationOn all routers: area <area-id> nssa
On ABR (for default route): area <area-id> nssa default-information-originate

πŸ”Ή 4. Totally Not-So-Stubby Area (Totally NSSA)

Purpose: Most restrictive area type that still allows ASBRs. Blocks LSA 3, 4, and 5.

FeatureDetails
LSAs Blocked (Incoming)LSA 3, LSA 4, LSA 5
Internal ASBR BehaviorGenerates LSA 7, which ABR translates to LSA 5
Default RouteABR automatically generates Type 3 default route (0.0.0.0)
ConfigurationOn all routers: area <area-id> nssa
On ABR: area <area-id> nssa no-summary

🌐 Summary – Default Route Generation

Area TypeBlocked LSAsDefault Route Type (Generated by ABR)Automatic?
StubLSA 4, LSA 5Type 3 (O IA)βœ… Yes
Totally StubLSA 3, LSA 4, LSA 5Type 3 (O IA)βœ… Yes
NSSALSA 4, LSA 5Type 7 (O N1/N2)❌ No
Totally NSSALSA 3, LSA 4, LSA 5Type 3 (O IA)βœ… Yes

βš™οΈ Key Takeaways

  • LSA control = core of OSPF scalability.
  • Stub & Totally Stub Areas limit external routes for smaller LSDBs.
  • NSSA & Totally NSSA allow limited redistribution while restricting flooding.
  • ABRs handle LSA generation, summarization, and translation.
  • Ensure area-type consistency across routers to form stable adjacencies.

πŸ“˜ Use Case Summary

EnvironmentRecommended Area TypePurpose
Backbone (Area 0)NormalFull LSDB visibility
Branch / Remote SitesStub / Totally StubLightweight routing
Partner / Edge ZonesNSSA / Totally NSSALimited redistribution with control

🧠 Interview Prep Questions

  1. What is the difference between Stub and Totally Stub areas?
  2. How does an NSSA handle redistributed routes?
  3. Which LSA types are area-scoped vs domain-wide?
  4. What happens if an ASBR exists inside a Stub Area?
  5. How does the ABR handle LSA 7 translation?

βœ… End of OSPF Special Areas & LSAs Notes

πŸ™Œ Connect With Me

GitHub LinkedIn YouTube Gmail

This post is licensed under CC BY 4.0 by the author.