Computer Networks Essentials / Network Layer

Supernetting

πŸ€” What is Supernetting? (Basic Idea)

Supernetting means combining multiple small networks into one large network.

πŸ“Œ In simple words:

Subnetting divides networks, Supernetting joins networks.


🧠 Real-Life Analogy

🧩 Puzzle Example

  • Many small puzzle pieces 🧩 β†’ one big picture

  • Many small networks β†’ one large network

πŸ‘‰ That process is Supernetting.


🧠 Simple Definition

πŸ“Œ Supernetting is the process of combining multiple contiguous IP networks into a single larger network by borrowing bits from the network portion.


πŸ”„ Subnetting vs Supernetting (Quick Recall)

Subnetting

Supernetting

One network β†’ many

Many networks β†’ one

Borrow host bits

Borrow network bits

Smaller networks

Larger network

Used in LANs

Used by ISPs


🎯 Why Do We Need Supernetting?

Supernetting is mainly used to:

  • πŸ“‰ Reduce routing table size

  • πŸš€ Improve routing efficiency

  • 🌍 Support CIDR

  • πŸ“‘ Simplify Internet routing

  • 🧠 Aggregate multiple networks

πŸ“Œ Especially important for Internet Service Providers (ISPs).


🧭 Where is Supernetting Used?

  • At the Network Layer

  • In CIDR (Classless Inter-Domain Routing)

  • In route aggregation


πŸ”‘ Golden Rule of Supernetting

πŸ‘‰ Supernetting borrows bits from the NETWORK portion to create fewer, larger networks.


🧩 Basic Requirements for Supernetting

To combine networks using supernetting:

βœ”οΈ Networks must be contiguous (continuous)

βœ”οΈ Networks must have same subnet mask

βœ”οΈ Number of networks must be a power of 2


🧠 Simple Example (Without Math)

Given networks:

  • 192.168.0.0/24

  • 192.168.1.0/24

πŸ‘‰ These can be combined into:

192.168.0.0/23

πŸ“Œ Two Class C networks β†’ one larger network.


πŸͺœ Supernetting Step-by-Step

βœ… Step 1: Write All Network Addresses

Example:

192.168.0.0/24
192.168.1.0/24

βœ… Step 2: Convert Network Portion to Binary

192.168.0.0

192.168.1.0

Binary (last octet):

00000000
00000001

πŸ“Œ Only 1 bit differs.

βœ… Step 3: Reduce Network Bits

Original: /24

Remove 1 network bit β†’ New prefix = /23

βœ… Step 4: New Supernet Address

192.168.0.0/23

Subnet Mask:

255.255.254.0

πŸ“¦ Address Range of the Supernet

For 192.168.0.0/23:

  • Network Address: 192.168.0.0

  • First Host: 192.168.0.1

  • Last Host: 192.168.1.254

  • Broadcast: 192.168.1.255

πŸ“Œ Total hosts:

2⁹ βˆ’ 2 = 510

🧠 Another Example (4 Networks Combined)

Networks:

  • 200.10.0.0/24

  • 200.10.1.0/24

  • 200.10.2.0/24

  • 200.10.3.0/24

πŸ‘‰ Combine 4 networks:

/24 β†’ /22

Supernet:

200.10.0.0/22

Subnet Mask:

255.255.252.0

πŸ“Š Subnetting vs Supernetting

Feature

Subnetting

Supernetting

Direction

Split

Combine

Borrowed Bits

Host bits

Network bits

Network Count

Increases

Decreases

Host Count

Decreases

Increases

Usage

LAN design

ISP routing


🌐 Supernetting & Route Aggregation

Supernetting is also called Route Aggregation or Route Summarization.

πŸ“Œ Instead of advertising:

192.168.0.0/24
192.168.1.0/24

πŸ‘‰ Router advertises:

192.168.0.0/23

βœ”οΈ Smaller routing table

βœ”οΈ Faster routing decisions


🧠 Diagram View (Conceptual)

⚠️ Limitations of Supernetting

  • Requires careful planning

  • Wrong aggregation can misroute traffic

  • Only contiguous networks allowed


🧠 Memory Trick

  • SUBnetting β†’ SUBdivide

  • SUPERnetting β†’ SUPER size (bigger network)


⭐ One-Line Summary

πŸ”Ή Supernetting combines multiple smaller networks into a single larger network by borrowing network bits, mainly to simplify routing.