OSPF
RouterOS v7+ includes an enhanced OSPF implementation with improved performance, better scalability, and support for modern OSPF features including graceful restart and traffic engineering extensions.
OSPF fundamentals
How OSPF works
Link-state operation:
Each router maintains complete network topology database
Routers exchange Link State Advertisements (LSAs)
Shortest Path First (SPF) algorithm calculates optimal paths
Hierarchical area design provides scalability
Key concepts:
Areas - Logical subdivisions that limit LSA flooding scope
Router ID - Unique identifier for each OSPF router
Cost - Metric based on bandwidth (100Mbps/interface bandwidth)
Designated Router (DR) - Reduces LSA flooding on broadcast networks
Adjacencies - Full neighbor relationships for LSA synchronization
OSPF advantages
Fast convergence:
Sub-second convergence with proper tuning
Immediate detection of link failures
Incremental SPF calculations for efficiency
Scalability features:
Area hierarchy reduces routing overhead
Route summarization at area boundaries
Support for thousands of routes
Load balancing:
Equal-Cost Multi-Path (ECMP) support
Automatic load distribution across equal paths
Unequal cost load balancing with careful design
Basic OSPF configuration
Single area OSPF
Simple OSPF deployment for small to medium networks:
Multi-area OSPF
Hierarchical OSPF design for larger networks:
Advanced OSPF features
OSPF area types
Different area types for optimization:
OSPF authentication
Secure OSPF communications:
OSPF route filtering and summarization
Control route advertisement and summarization:
OSPF network types
Point-to-Point networks
Direct connections between two routers:
Broadcast networks
Ethernet LANs with multiple routers:
NBMA and Point-to-Multipoint
Non-broadcast networks (Frame Relay, etc.):
OSPF performance tuning
Convergence optimization
Tune OSPF for faster convergence:
Scalability optimization
Configure OSPF for large-scale deployments:
OSPF monitoring and troubleshooting
Monitoring OSPF health
Track OSPF performance and status:
Troubleshooting procedures
Systematic OSPF troubleshooting approach:
OSPF design best practices
Network design principles
Hierarchical design - Always use Area 0 as backbone, connect other areas to it
Area sizing - Keep areas under 50 routers for optimal performance
Router ID planning - Use loopback addresses or planned IDs for stability
Cost planning - Design consistent cost metrics for predictable paths
Redundancy design - Multiple ABRs between areas for resilience
Configuration guidelines
Authentication - Always enable OSPF authentication in production
Timer consistency - Ensure consistent hello/dead intervals per network
Area types - Use stub areas to reduce routing overhead where appropriate
Summarization - Implement route summarization at area boundaries
Filtering - Control route advertisement with appropriate filters
Operational practices
Monitor actively - Track neighbor states and convergence times
Document topology - Maintain current network diagrams and area designs
Test changes - Verify OSPF behavior after configuration changes
Capacity planning - Monitor LSA database growth and CPU utilization
Backup configuration - Regular backups of OSPF configuration
Complete OSPF examples
Enterprise campus network
Last updated
Was this helpful?