Mastering OSPF.
Chapter 02 · Link-State Routing · CCIE
Macro photograph of an integrated circuit die
CCIE OSPF BGP Summarization

While both OSPF and BGP offer summarization capabilities, their underlying architectures dictate completely different mechanisms and primary goals. This article contrasts OSPF's topology-hiding inter-area summarization with BGP's route-hiding NLRI aggregation.

01

BGP NLRI Summarization

In BGP, Network Layer Reachability Information (NLRI) simply refers to the prefixes contained in a BGP UPDATE message. While Path Attributes tell the router how to reach a destination, the NLRI tells it what destinations exist.

Before: 10.1.0.0/24, 10.1.1.0/24, 10.1.2.0/24, 10.1.3.0/24

After: 10.1.0.0/22

The benefits of BGP summarization are immense at scale: a smaller BGP table, fewer UPDATE messages, reduced CPU and memory consumption, and vastly improved overall network scalability.

BGP Aggregation Example
router bgp 65000
 aggregate-address 172.16.0.0 255.255.252.0 summary-only
CCIE Tip: The summary-only keyword suppresses the advertisement of the component routes (the more specific prefixes). Without it, BGP advertises both the aggregate and the specifics.

When NLRI is summarized, the aggregate prefix receives new path attributes. Look out for the AGGREGATOR and ATOMIC_AGGREGATE attributes, which signal that path detail may have been lost during aggregation.

02

OSPF Inter-Area Summarization

Unlike BGP, OSPF is a link-state protocol. An Area Border Router (ABR) can summarize routes from one area before advertising them into another area.

OSPF ABR Summarization
router ospf 1
 area 1 range 10.1.0.0 255.255.252.0

The ABR suppresses the individual Type-3 Summary LSAs and generates a single Type-3 LSA for the aggregate prefix. Crucially, inside the originating area, full topology knowledge remains intact (Type-1 and Type-2 LSAs are unaffected). Across the boundary, only summarized reachability is advertised.

Topology Hiding: OSPF summarization is essentially topology hiding, not true topology summarization.
03

The Core Distinction

By summarizing at the ABR, OSPF prevents other areas from learning the internal structure of the originating area, thereby protecting them from SPF recalculations if a link flaps.

04

Application Comparison

BGP Goal
SCALE

ISP Example: 200,000 customer prefixes reduced to 100 aggregate prefixes to save global table size.

OSPF Goal
HIERARCHY

Enterprise Example: Area 1=NYC, Area 2=Miami. Link failure in Miami means NYC doesn't need details or an SPF run.

05

BGP as an Application

"The network is the responsibility of the IGP. BGP is an application."

The IGP provides transport and topology awareness, while BGP provides reachability and policy. Consider the following BGP characteristics:

Important Dependency: BGP depends on underlying IP reachability for NEXT_HOP resolution. A BGP route is usable ONLY if the NEXT_HOP is reachable through the routing table (usually populated by OSPF or IS-IS).

In short: "OSPF builds the roads. BGP decides which destination signs to advertise."

06

The Service Provider Model

In an MPLS core environment, OSPF or IS-IS is deployed to provide reachability to loopbacks, next-hops, and transport addresses. BGP rides on top as an overlay protocol.

Service Provider Core Architecture
BGP OVERLAY (Reachability)
PE1
iBGP Session
PE2
IGP UNDERLAY (Transport)
PE1
P
P
PE2

If the IGP cannot reach a BGP next-hop (for example, if a P router drops the route to a PE's loopback), BGP cannot install the route.

07

OSPF Point-to-Point on Ethernet

Configuring ip ospf network point-to-point on an Ethernet interface avoids the DR/BDR election process, speeding up convergence.

Interface Configuration
interface GigabitEthernet0/0
 ip address 192.168.1.1 255.255.255.252
 ip ospf network point-to-point

Best Practice: Always configure this on BOTH ends of the link. Although the OSPF network type is not carried as a must-match parameter (unlike area ID or authentication), asymmetric configuration creates confusion and can lead to unreachability despite forming a full adjacency.

Note: The IOS parser does NOT remove the command from the configuration—it remains as an explicit configuration. Serial links default to point-to-point automatically.

08

Summary Table

Aspect BGP Summarization OSPF Summarization
What's summarized NLRI (prefixes) Reachability (topology hidden)
Command aggregate-address area X range
Goal Scale Hierarchy
Hides Routes Topology
Protocol type Application (TCP 179) Link-state (IP protocol 89)
09

CCIE Interview One-Liners

  • "BGP summarization reduces routing information; OSPF summarization creates hierarchical topology and contains SPF calculations."
  • "The IGP is responsible for transport and topology; BGP is responsible for reachability and policy."
  • "NLRI = destination prefixes; Path Attributes = how to reach them."

← Back to Overview