Communication Networks · Visualized
Subnetting & CIDR
Addressing & Names
How devices get numbers, find each other on the LAN, and turn human-readable names into addresses.
7 interactive subtopics — each one animated, step-through and explained.
Subnetting & CIDR
Addressing & NamesSubnetting carves one network into several smaller ones by borrowing bits from the host part of the address. CIDR (Classless Inter-Domain Routing) generalises the idea: the /n suffix — not an old class A/B/C letter — defines the split, so address blocks can be sized to actual need. Every borrowed bit doubles the number of subnets and halves the hosts per subnet; the router uses the mask to tell neighbouring subnets apart.
How Subnetting & CIDR Works
- Start from a block, say 192.168.1.0/24, with 8 host bits.
- Borrow 1 bit → /25: two subnets (…0 and …128), 126 usable hosts each.
- Borrow 2 bits → /26: four subnets (…0, …64, …128, …192), 62 usable hosts each.
- Per subnet: host bits all-0 = network address, all-1 = broadcast; everything between is assignable.
- Routers AND each destination with the mask — the resulting network ID picks the outgoing interface.
Subnetting & CIDR Worked Example
Try it: Toggle the prefix and watch one /24 split into 1, 2, 4 or 8 subnets.
At /26 the block divides into four quarters of 62 hosts. 192.168.1.130 lives in the …128 quarter — AND its address with 255.255.255.192 and the network ID 192.168.1.128 appears. That single AND-operation is how routers make every forwarding decision.
Subnetting & CIDR: Key Facts to Remember
Recommended resourcesAffiliate links · may earn us a commission
Recommended for learners
See how packets really travel
Networks are built on the structures and algorithms you can watch step by step — queues, trees, and routing algorithms.