October 2013 | Reading Time: 10 minutes
Open Shortest Path First (OSPF) remains one of the most deployed interior gateway protocols (IGPs) in enterprise networks. When networks scale, OSPF's support for hierarchical design using areas becomes invaluable. However, poorly structured multi-area OSPF designs can create instability, introduce suboptimal routing, and complicate troubleshooting.
Why Use Multi-Area OSPF?
OSPF scales better when the link-state database (LSDB) is segmented. Area 0 serves as the backbone, and additional areas (1, 2, etc.) connect to it via Area Border Routers (ABRs). This segmentation improves convergence and limits flooding scope for LSAs.
Key Design Principles
- Always connect non-backbone areas to Area 0: Virtual links should only be temporary workarounds.
- Minimize ABRs: Too many ABRs can result in inconsistent LSDBs and route flapping.
- Summarize: Use area range statements on ABRs to reduce routing table size and provide stability.
- Plan LSAs: Understand which LSAs are injected where. Type 3 LSAs (summary) are most common between areas.
Common Pitfalls
Misunderstanding LSA propagation often causes routing loops or instability. For example, injecting Type 5 LSAs (external routes) into stub or totally stubby areas causes configuration issues. Misplacing ABRs or neglecting area summarization results in excessive LSA flooding and convergence delays.
ABR Behavior in IOS and IOS-XE
In IOS-based routers, ABR behavior is based on active interfaces belonging to multiple areas. In OSPFv2 (IPv4), at least one interface must be in Area 0. In newer platforms, ABRs behave differently when using passive interfaces — a key consideration when virtualizing edge routers.
Optimizing with Stub, Totally Stubby, and NSSA Areas
Using stub area types reduces Type 5 LSA propagation and can simplify routing decisions. NSSA areas allow redistribution of external routes without exposing the entire external LSA set to the backbone. Remember that NSSA Type 7 LSAs are converted to Type 5 by the ABR.
Design Example
Consider a WAN with 3 branch offices and a central hub. Each branch connects to Area 1, Area 2, and Area 3, respectively, while the core remains in Area 0. Using summarization on ABRs prevents detailed branch prefixes from polluting the backbone. Virtual links are avoided entirely, and NSSA is deployed on Area 3 to support Internet redistribution.
Tuning OSPF Timers
In high-performance environments, adjusting hello and dead timers can improve convergence. Fast hello intervals (e.g., 1 second hello, 3 second dead) may be acceptable on Ethernet segments but can increase CPU usage. Apply carefully in LANs, not across WANs.
Best Practices
- Design with hierarchy in mind and limit areas to fewer than 50 routers.
- Use summarization aggressively at ABRs.
- Deploy NSSA or stub areas where appropriate.
- Visualize LSDB and SPF calculations using tools like IOS commands:
show ip ospf database
andshow ip ospf border-routers
.
With careful planning and proper LSA scoping, multi-area OSPF can scale efficiently even in complex enterprise topologies. Avoid overengineering and focus on simplicity, summarization, and proper ABR placement.
No comments:
Post a Comment