mapOSPF

circle-info

OSPF is a link-state interior gateway protocol that builds a complete topology database and calculates shortest paths using Dijkstra's algorithm, providing fast convergence and load balancing capabilities.

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

  1. Hierarchical design - Always use Area 0 as backbone, connect other areas to it

  2. Area sizing - Keep areas under 50 routers for optimal performance

  3. Router ID planning - Use loopback addresses or planned IDs for stability

  4. Cost planning - Design consistent cost metrics for predictable paths

  5. Redundancy design - Multiple ABRs between areas for resilience

Configuration guidelines

  1. Authentication - Always enable OSPF authentication in production

  2. Timer consistency - Ensure consistent hello/dead intervals per network

  3. Area types - Use stub areas to reduce routing overhead where appropriate

  4. Summarization - Implement route summarization at area boundaries

  5. Filtering - Control route advertisement with appropriate filters

Operational practices

  1. Monitor actively - Track neighbor states and convergence times

  2. Document topology - Maintain current network diagrams and area designs

  3. Test changes - Verify OSPF behavior after configuration changes

  4. Capacity planning - Monitor LSA database growth and CPU utilization

  5. Backup configuration - Regular backups of OSPF configuration


Complete OSPF examples

Enterprise campus network

Last updated

Was this helpful?