Course contents

Chapter 8: RoutingLesson 13 of 16

Route summarization

Find the summary prefix for contiguous networks, configure a static summary with Null0 and know when summarising is unsafe.

Intermediate · 9 min read

Technical definition

Route summarization is replacing several contiguous network routes with one route that covers them all. It is also called route aggregation or supernetting, and it uses a shorter prefix length than the routes it replaces.

Why summarise

  • Smaller routing tables use less memory and make lookups faster.
  • Less update traffic and less SPF work: a flapping network inside the summary is hidden from the rest of the network.
  • Simpler design: each site or region advertises one prefix.

Finding the summary: the shared bits

Route summarisation: find the bits that all routes share
Route summarisation: find the bits that all routes shareFour networks 192.168.0.0/24 to 192.168.3.0/24 have a third octet that differs only in its last two bits. The first six bits of that octet are the same, so 8 + 8 + 6 = 22 bits match and the summary is 192.168.0.0/22.NetworkThird octet in binary192.168.0.0/2400000000192.168.1.0/2400000001192.168.2.0/2400000010192.168.3.0/24000000116 shared bits (kept)2 varyingSummary: 192.168.0.0/228 + 8 + 6 shared bits = /22; mask 255.255.252.0
Rule: the networks must be contiguous and the count must be a power of two that starts on the right boundary. 192.168.0.0/22 covers 192.168.0.0 to 192.168.3.255 exactly.
  1. List the networks and write the changing octet in binary.
  2. Count the bits from the left that are the same in every network.
  3. That count is the summary prefix length. Keep the shared bits, set the rest to 0, for the network address.

A second example

Summarise 172.16.32.0/24 to 172.16.47.0/24. The third octets are 32 to 47, which is 00100000 to 00101111 in binary. The first four bits (0010) are shared, so the prefix is 16 + 4 = 20 and the summary is 172.16.32.0/20 (mask 255.255.240.0).

When it does not work

Which groups of /24 networks summarise cleanly
Which groups of /24 networks summarise cleanlyNetworks; Smallest covering prefix; Clean?. 192.168.0.0 to 192.168.3.0 (4 networks): 192.168.0.0/22 Yes: exactly the four 192.168.4.0 to 192.168.7.0 (4 networks): 192.168.4.0/22 Yes 192.168.1.0 to 192.168.4.0 (4 networks): 192.168.0.0/21 No: also covers 0, 5, 6 and 7 192.168.0.0 and 192.168.2.0 only: 192.168.0.0/22 No: also covers 1 and 3NetworksSmallest covering prefixClean?192.168.0.0 to192.168.3.0 (4networks)192.168.0.0/22Yes: exactly the four192.168.4.0 to192.168.7.0 (4networks)192.168.4.0/22Yes192.168.1.0 to192.168.4.0 (4networks)192.168.0.0/21No: also covers 0, 5, 6 and 7192.168.0.0 and192.168.2.0 only192.168.0.0/22No: also covers 1 and 3

On small screens, swipe sideways or focus the diagram and use the arrow keys.

A summary must cover only networks you own, or you risk attracting traffic you cannot deliver. Plan address blocks so that each site starts on a power-of-two boundary.

Configuring a static summary

Example commands and output on this page were written from Cisco IOS documentation and generally described behaviour. They were not captured from a live device, so prompts and details can differ on your platform and version.

! On the router that owns the four networks (R1) ip route 192.168.0.0 255.255.252.0 Null0 ! On the upstream router (R2), pointing at R1 ip route 192.168.0.0 255.255.252.0 10.0.12.1

R1 discards anything in the summary that it has no specific route for. R2 needs only one route instead of four.

Longest prefix match keeps this safe: the specific /24 routes on R1 still win for real networks, and the Null0 summary catches only what is left.

Summarising in routing protocols

Where each protocol summarises
Where each protocol summarisesProtocol; How; Where. OSPF between areas: area 1 range 192.168.0.0 255.255.252.0 On the ABR, for networks in area 1 OSPF external routes: summary-address 192.168.0.0 255.255.252.0 On the ASBR EIGRP: ip summary-address eigrp 100 192.168.0.0 255.255.252.0 On the outgoing interface Static: ip route ... Null0 On the router that owns the networksProtocolHowWhereOSPF between areasarea 1 range 192.168.0.0255.255.252.0On the ABR, for networks in area 1OSPF external routessummary-address 192.168.0.0255.255.252.0On the ASBREIGRPip summary-address eigrp 100192.168.0.0 255.255.252.0On the outgoing interfaceStaticip route ... Null0On the router that owns the networks

On small screens, swipe sideways or focus the diagram and use the arrow keys.

OSPF summarises only at area borders and at ASBRs, not on ordinary links inside an area.

IPv6 summaries

The same rule applies: 2001:db8:acad:0::/64 to 2001:db8:acad:3::/64 share all but the last two bits of the subnet ID, so the summary is 2001:db8:acad::/62.

Test yourself

Predict · scenario 1

Which summary covers 10.1.4.0/24, 10.1.5.0/24, 10.1.6.0/24 and 10.1.7.0/24 exactly?

Predict · scenario 2

Why does a router that owns a summary add a route to Null0 for it?

Predict · scenario 3

Which statement is true about summarising 192.168.1.0/24 through 192.168.4.0/24?

FAQ

What is the difference between summarisation, aggregation and supernetting?
They describe the same idea. Supernetting is the older name for combining classful networks, aggregation is the term used with BGP and IPv6, and summarisation is the common term in IGP design.
Why point a summary route at Null0?
A summary covers addresses you may not own yet. If the router has no more specific route, a packet to such an address would follow the summary or a default route and could loop. A route to Null0 discards it instead.
Can I summarise any group of networks?
Only if they are contiguous and align on a power-of-two boundary. Four /24s starting at 192.168.0.0 can be summarised to a /22; four starting at 192.168.1.0 cannot, because the smallest single prefix that covers them is wider.