NadirTools

Supernetting vs Subnetting: Routing Aggregation Guide

2 min read

Understand the differences between breaking networks apart (subnetting) and combining them (supernetting).

Subnetting: Dividing and Conquering

Subnetting is the process of taking a single, large block of IP addresses and partitioning it into multiple smaller, logically isolated networks. This is the foundation of local area network (LAN) design.

**Primary Goals of Subnetting:**

1. **Reduce Broadcast Domains**: Large networks with thousands of hosts suffer from 'broadcast storms' that cripple performance. Subnetting restricts broadcasts to smaller groups.

2. **Enhance Security**: By separating traffic (e.g., HR data vs. Guest Wi-Fi), you can place firewalls and access control lists (ACLs) between the subnets.

3. **Address Conservation**: Avoid wasting large blocks of IPs on small departments.

Supernetting: Aggregation and Efficiency

Supernetting (also known as Route Aggregation or [CIDR](/tools/subnet-calculator/cidr-notation-guide) Blocks) is the exact opposite of subnetting. It involves combining multiple contiguous smaller networks into a single larger routing entry with a shorter prefix.

For example, instead of a router advertising four separate `/24` networks to the internet core:

- `192.168.0.0/24`

- `192.168.1.0/24`

- `192.168.2.0/24`

- `192.168.3.0/24`

It can advertise a single supernet route: `192.168.0.0/22`.

**Primary Goals of Supernetting:**

1. **Reduce Routing Table Size**: Without route aggregation, core internet routers would run out of memory trying to store millions of individual subnet routes.

2. **Increase Routing Speed**: Smaller routing tables mean faster lookup times and lower latency for packets.

The Strict Rules of Supernetting

You cannot simply combine random subnets. To create a valid supernet, the target networks must meet three mathematical conditions:

1. **Contiguous Block**: The networks must be perfectly sequential in address space with no gaps.

2. **Power of Two Count**: You can only combine networks in multiples of powers of two (2, 4, 8, 16, etc.). You cannot supernet three /24s into a single clean route.

3. **Boundary Alignment**: The first subnet in the block must start on a boundary address that is cleanly divisible by the total number of subnets being combined.

Frequently Asked Questions

Q: What is route aggregation?

Route aggregation is another term for supernetting. It is the process of summarizing multiple smaller IP prefixes into a single larger prefix to reduce the size of routing tables.

Q: Why can't I supernet three /24 networks together?

Because supernetting relies on binary logic, the number of combined networks must be a power of two. Three is not a power of two, so it cannot be summarized cleanly with a single subnet mask.

Q: Does supernetting affect local LAN traffic?

No. Supernetting is primarily a routing protocol optimization (BGP, OSPF). It affects how routers advertise paths to other routers, not how local hosts communicate.