~3 min read • Updated Apr 7, 2026
Introduction
With the rapid growth of the Internet, managing IPv4 addresses became a major challenge. The old classful addressing system caused massive waste of IP addresses. Three key techniques were developed to solve this: CIDR, VLSM, and Supernetting. In this article, each concept is explained with practical examples, precise calculations, and real network scenarios.
What is CIDR?
CIDR (Classless Inter-Domain Routing) is a classless method introduced in 1993. Instead of fixed class A, B, and C masks, it uses variable prefix lengths.
Standard notation:
192.168.10.0/24The number after the slash (/) indicates the number of network bits.
Calculating Addresses in CIDR
General formula:
Number of addresses = 2^(32 - Prefix Length)
Usable hosts = 2^(32 - Prefix Length) - 2Example:
192.168.10.0/26
Host bits = 32 - 26 = 6
Total addresses = 2^6 = 64
Usable hosts = 62What is VLSM?
VLSM (Variable Length Subnet Mask) allows us to create subnets with different mask lengths within the same major network, significantly reducing IP address waste.
Example 1: Simple VLSM (Three Subnets)
Major network: 172.16.0.0/22 (1024 addresses)
Requirements:
- 60 users → minimum 62 addresses (
/26) - 20 users → minimum 30 addresses (
/27) - 10 users → minimum 14 addresses (
/28)
Step-by-step allocation:
172.16.0.0/26 → 62 hosts (main users)
172.16.0.64/27 → 30 hosts (secondary users)
172.16.0.96/28 → 14 hosts (servers)
172.16.0.112/28 → 14 hosts (reserved)Total addresses used: 120 (very low waste).
Example 2: Advanced VLSM (Enterprise Network)
Major network: 10.0.0.0/20 (4096 addresses)
Requirements:
- 200 users in headquarters →
/23 - 50 users in Branch 1 →
/26 - 20 users in Branch 2 →
/27 - 8 servers →
/28 - 4 printers →
/29
Allocation:
10.0.0.0/23 → 510 hosts (headquarters)
10.0.2.0/26 → 62 hosts (Branch 1)
10.0.2.64/27 → 30 hosts (Branch 2)
10.0.2.96/28 → 14 hosts (servers)
10.0.2.112/29 → 6 hosts (printers)What is Supernetting?
Supernetting (Route Summarization or Aggregation) combines multiple contiguous small networks into a single larger route. This reduces the size of routing tables and improves router performance.
Example 1: Supernetting Four Networks
Existing networks:
192.168.0.0/24
192.168.1.0/24
192.168.2.0/24
192.168.3.0/24Supernet:
192.168.0.0/22Binary check for contiguity:
192.168.000.000 11000000 00000000
192.168.003.255 11000000 00000011Common bits: 22 → /22.
Example 2: Supernetting Eight Networks
Networks: 172.16.16.0/24 to 172.16.23.0/24
Supernet:
172.16.16.0/21Number of summarized networks: 8 (power of 2) and contiguous.
Complete Combined Scenario: Company Network Design
Company “TechNet” has major network 10.10.0.0/16.
Requirements:
- 500 headquarters users →
/23 - 100 users in North Branch →
/25 - 50 users in South Branch →
/26 - 30 servers →
/27 - 10 IoT devices →
/28
VLSM Allocation:
10.10.0.0/23 → Headquarters users
10.10.2.0/25 → North Branch
10.10.2.128/26 → South Branch
10.10.2.192/27 → Servers
10.10.2.224/28 → IoT devicesSupernetting for the core router:
10.10.0.0/21 → Summarizes all subnetsOne single route is advertised instead of five separate routes.
Benefits and Applications
CIDR: Dramatically reduces the size of BGP routing tables on the InternetVLSM: Saves up to 70% of IP addressesSupernetting: Reduces router CPU load and improves packet forwarding speed
Comparison Table
| Criteria | Classful | CIDR + VLSM + Supernetting |
|---|---|---|
| Mask Flexibility | Fixed | Fully Variable |
| Address Waste | High (50%+) | Less than 10% |
| Routing Table Size | Large | Small and Efficient |
| Current Usage | Obsolete | Standard for Internet and Enterprise Networks |
Conclusion
CIDR, VLSM, and Supernetting are the foundation of modern network design. By practicing the examples above and mastering binary calculations, you can design any network efficiently. These techniques not only conserve IP addresses but also improve router performance and network scalability.
Written & researched by Dr. Shahin Siami