Definition

An aggregate route represents multiple more-specific networks with a shorter prefix. A routing loop occurs when forwarding decisions send a packet back through routers it has already visited.

Intuition

An aggregate describes a destination range, not necessarily one physical network. Routers still need enough information to reach each allocated part and handle unused parts without sending packets back and forth.

Worked example: page 16

R1 sends 200.23.16.0/20 toward R0, except 200.23.18.0/23, which goes toward R2. R0 directly serves .16.0/24 and .17.0/24; its default points to R1.

For 200.23.20.7:

R1: /20 matches -> R0
R0: no specific match -> default -> R1
R1: /20 matches -> R0
... until TTL expires

By contrast, 200.23.16.7 is delivered by R0, while 200.23.19.7 follows R1’s /23 route to R2.

Exact aggregation and alignment

Added workbook-based teaching: an exact aggregate covers precisely the union of the replaced prefixes and preserves their forwarding action. For a simple pairwise merge, routes must use the same next hop, have the same prefix length, be adjacent, and fill one aligned parent block. Two /24s become /23; recursively merge valid pairs for larger groups.

Original ranges (third octet, /24 each)Exact result
4 and 5192.168.4.0/23
5 and 6No single exact /23; crosses pairs 4-5 and 6-7
12, 13, 14, 15192.168.12.0/22
25, 26, 27, 28No single exact /22; crosses blocks 24-27 and 28-31

For /23, third-octet starts are multiples of 2; /22, multiples of 4; /21, multiples of 8, with last octet zero. A /22 containing third octet 18 starts at 16, not 18: find the containing block by rounding down to a multiple of four. Within the last octet, .0/26 plus .64/26 becomes .0/25; .64/26 plus .128/26 cannot form one exact /25.

Broader aggregates and exceptions

An aggregate may include extra addresses if the exercise allows supernets. Their forwarding must also be considered. Example:

192.168.4.0/22 -> R2
192.168.7.0/24 -> R3

The /22 covers third octets 4-7; the /24 preserves the exception through R3. These are routing instructions, not a merger of physical LANs. Aggregation depends on the current router’s viewpoint: two remote networks sharing R1’s next hop may require different actions at R2. Retain connected routes rather than trying to replace their direct-delivery behavior with a remote aggregate.

Addresses can be planned to favor this: assign compatible blocks to LANs sharing the intended router’s next hop. This may reserve more space than packing each subnet as tightly as possible. Recompute the grouping when path costs change. Exercises 7-12 explore these choices; the session introduced the principle but did not solve every planning exercise.

A default through the same neighbor can make a more-specific static entry redundant for forwarding if removing that entry preserves every affected action. A default through a different neighbor cannot replace a necessary specific route. Original path costs can differ after aggregation even when all destinations share a next hop; one displayed aggregate cost need not describe every underlying path.

Discard example for unused aggregate space

Added example: R1 routes 192.168.0.0/16 to R2; R2 serves only 192.168.1.0/24 and defaults back to R1. Unused .50.10 loops. On R2, a discard /16 catches such unused destinations, while the connected /24 wins for the real LAN and /0 still handles destinations outside the aggregate.

Important rules

  • A more-specific exception overrides an aggregate.
  • An aggregate route does not imply direct delivery.
  • A default pointing back toward an aggregate’s upstream router can create a loop for unused addresses.
  • TTL bounds the loop but does not repair routing.
  • Added design explanation: specific routes for allocated space and an intentional discard route for otherwise unused aggregate space can prevent this failure.

Common mistakes

Assuming every address inside an advertised aggregate is allocated or reachable, or expecting the default to override a matching aggregate.

Source

Lecture 01 - IPv4 Addressing and Routing, PDF pages 15-16. Packet trace and discard-route discussion are added explanations of the slide’s open question.

Workbook follow-up: Fulvio Risso, Exercises on Static IP Routing and Route Aggregation, 23 February 2018, PDF pages 10-19, Exercises 3-12 (22-30); see Exercise 01d - IP Static Routing. Added workbook-derived explanations and examples in this note are licensed CC BY-NC-SA 3.0: https://creativecommons.org/licenses/by-nc-sa/3.0/. Original workbook and figures remain local.