Module: B1.5-R5: Data Communications and Computer Networks
Chapter: Network Layer
Subnetting divides a large network into smaller subnetworks, improving security, performance, and efficient IP address usage.
CIDR (Classless Inter-Domain Routing) replaces classful addressing and allows flexible network prefix lengths.
Subnetting breaks a network into multiple smaller networks by borrowing bits from the host portion.
Number of Subnets = 2^n Number of Hosts per Subnet = 2^(remaining bits) - 2Where **n = number of borrowed bits**.
Network: 192.168.10.0/24 Required Subnets: 4
Original mask: /24 → 255.255.255.0 Borrow 2 bits → new mask = /26 → 255.255.255.192
| Subnet | Network Address | Host Range | Broadcast |
|---|---|---|---|
| 1 | 192.168.10.0 | 192.168.10.1 – 192.168.10.62 | 192.168.10.63 |
| 2 | 192.168.10.64 | 192.168.10.65 – 192.168.10.126 | 192.168.10.127 |
| 3 | 192.168.10.128 | 192.168.10.129 – 192.168.10.190 | 192.168.10.191 |
| 4 | 192.168.10.192 | 192.168.10.193 – 192.168.10.254 | 192.168.10.255 |
CIDR replaces class A/B/C addressing and uses network prefixes like /16, /19, /23 instead of fixed class boundaries.
IP Block: 172.16.0.0/20 Covers: 172.16.0.0 – 172.16.15.255 Total Hosts: 4094
Combining four /24 networks into one /22 block:
192.168.4.0 192.168.5.0 192.168.6.0 192.168.7.0 Combined → 192.168.4.0/22
| CIDR | Hosts | Subnet Mask |
|---|---|---|
| /30 | 2 | 255.255.255.252 |
| /29 | 6 | 255.255.255.248 |
| /28 | 14 | 255.255.255.240 |
| /27 | 30 | 255.255.255.224 |
| /26 | 62 | 255.255.255.192 |
| /25 | 126 | 255.255.255.128 |
| /24 | 254 | 255.255.255.0 |
| /23 | 510 | 255.255.254.0 |
| /22 | 1022 | 255.255.252.0 |
Subnetting and CIDR are essential for modern IP addressing, enabling efficient address utilization, improved routing, and scalable network design. CIDR’s flexibility has replaced traditional classful addressing and allows networks to grow or shrink as required.