OSPF Route Summarization

Route summarization (or aggregation) combines multiple contiguous network addresses into a single summary route, reducing routing table size, memory usage, and CPU overhead. In OSPF, summarization can only be performed on Area Border Routers (ABRs) and Autonomous System Boundary Routers (ASBRs).

Types of Summarization

1. Inter-Area Summarization

Performed on ABRs to summarize routes between OSPF areas using Type-3 LSAs.

2. External Route Summarization

Performed on ASBRs to summarize external routes (redistributed from other protocols) using Type-5 LSAs.

Benefits

  • Reduces routing table size - fewer entries to process
  • Improves stability - specific route flaps don't affect other areas
  • Decreases LSA flooding - less control traffic
  • Faster convergence - smaller routing tables mean faster SPF calculations
  • Saves bandwidth and memory - fewer routes to advertise

Configuration Examples

Inter-Area Summarization (ABR)

Topology:

Area 1: 10.1.0.0/24, 10.1.1.0/24, 10.1.2.0/24, 10.1.3.0/24
   |
  R1 (ABR)
   |
Area 0 (Backbone)

Before Summarization: R1 advertises four separate routes to Area 0.

R1 Configuration:

R1(config)# router ospf 1
R1(config-router)# network 10.1.0.0 0.0.255.255 area 1
R1(config-router)# network 172.16.0.0 0.0.0.255 area 0
R1(config-router)# area 1 range 10.1.0.0 255.255.252.0

Explanation:

  • area 1 range command summarizes routes FROM Area 1 TO Area 0
  • Summary: 10.1.0.0/22 covers 10.1.0.0/24 through 10.1.3.0/24
  • R1 automatically creates a Null0 route to prevent routing loops

Verification:

R1# show ip route ospf
O    10.1.0.0/22 is a summary, Null0

R2# show ip route ospf
O IA 10.1.0.0/22 [110/20] via 172.16.0.1

External Route Summarization (ASBR)

Topology:

RIP Domain: 192.168.0.0/24, 192.168.1.0/24, 192.168.2.0/24, 192.168.3.0/24
   |
  R1 (ASBR)
   |
OSPF Domain

R1 Configuration:

R1(config)# router ospf 1
R1(config-router)# network 10.0.0.0 0.0.0.255 area 0
R1(config-router)# redistribute rip subnets
R1(config-router)# summary-address 192.168.0.0 255.255.252.0
R1(config-router)# exit
R1(config)# router rip
R1(config-router)# network 192.168.0.0
R1(config-router)# redistribute ospf 1 metric 5

Explanation:

  • summary-address summarizes external routes redistributed into OSPF
  • Summary: 192.168.0.0/22 covers all four subnets
  • Creates Type-5 LSA with summary route only

Advanced Example with Multiple Summaries

R1(config)# router ospf 1
R1(config-router)# area 1 range 10.1.0.0 255.255.248.0
R1(config-router)# area 2 range 10.2.0.0 255.255.248.0
R1(config-router)# summary-address 172.16.0.0 255.255.0.0
R1(config-router)# summary-address 192.168.0.0 255.255.0.0 not-advertise

Note: not-advertise keyword suppresses the summary advertisement.

Verification Commands

R1# show ip ospf summary-address
R1# show ip route
R1# show ip ospf database summary
R1# show ip protocols

Best Practices

  1. Plan summarization carefully - use proper IP addressing schemes
  2. Summarize at area boundaries for maximum benefit
  3. Avoid over-summarization - can cause suboptimal routing
  4. Monitor Null0 routes - ensure they're created automatically
  5. Document summary ranges for troubleshooting

Route summarization is essential for large OSPF deployments, providing scalability and improved network performance.

No comments:

Post a Comment