Why Subnetting Exists: The Big Picture

Learning Objectives

Pre-Quiz: What Is a Subnet?

1. A subnet is best described as which kind of construct?

A physical cable that connects two separate buildings
A logical subdivision of a larger IP network
A piece of hardware that encrypts traffic between hosts
A backup copy of a network's routing table

2. Subnetting adds a third level to IP addressing. Where do the bits for the new "subnet" level actually come from?

They are borrowed from the host portion of the address
They are borrowed from the network portion of the address
They are added on as extra bits, making the address longer than 32 bits
They come from the router's MAC address

3. Two devices have IP addresses whose network portions are identical. What does this tell you?

They must communicate through a router to reach each other
They are on the same network and can communicate directly
They are guaranteed to be running the same operating system
One of them must be a router and the other a host

4. Why does splitting a flat network into subnets reduce broadcast-related problems?

Subnets convert broadcasts into encrypted unicast messages
Each subnet is its own broadcast domain, so broadcasts stay confined to it
Subnets disable broadcasts entirely across the whole network
Subnets make every device respond to broadcasts faster

5. At which layer of the OSI model does subnetting operate, and why?

Layer 2, because it deals with MAC addresses and switching
Layer 3, because it divides IP address space, which lives in the Network layer
Layer 4, because it controls TCP and UDP port numbers
Layer 1, because it depends on the physical cabling layout

What Is a Subnet?

Key Points

Picture a large office with one wide-open floor and no interior walls. With ten people it works; with ten thousand it is chaos—every shout reaches everyone. The fix is to add walls so most conversations stay local. A subnet ("subnetwork") is one of those walled-off rooms for a computer network: a logical subdivision of a larger IP network whose devices share a common address range and can communicate directly.

Networks vs. Hosts

IPv4 uses 32-bit addresses written in dotted-decimal form like 192.168.10.25. Every address splits into two conceptual parts:

A host is any device with an IP address: a laptop, server, printer, phone, or router interface. Devices sharing the same network portion can talk directly; devices on different networks must route their traffic. Subnetting adds a third level by borrowing bits from the host portion and reassigning them to identify a subnet. A subnet mask marks exactly where the network-and-subnet part ends and the host part begins.

LevelClassful hierarchy (original)Subnetted hierarchy
1NetworkNetwork
2HostSubnet
3Host

Figure 1.1: The network → subnet → host addressing hierarchy. The network portion is the building's street address, the subnet is the floor or department, and the host is the individual desk.

graph TD Network["Network
(building street address)"] Network --> SubnetA["Subnet A
(floor / department)"] Network --> SubnetB["Subnet B
(floor / department)"] SubnetA --> HostA1["Host
(desk / device)"] SubnetA --> HostA2["Host
(desk / device)"] SubnetB --> HostB1["Host
(desk / device)"] SubnetB --> HostB2["Host
(desk / device)"]

Broadcast Domains

The single most important reason subnets exist is the broadcast domain. Some messages are broadcasts—one message delivered to every device in a group. Broadcasts are essential (devices use them to discover neighbors and services), but in a flat network every device sits in one broadcast domain, so every broadcast reaches everyone. The key rule: each subnet is its own broadcast domain. Carve a network into subnets and a broadcast sent inside one subnet stays inside it—you have built acoustic walls.

Figure 1.2: A broadcast stays confined to its own subnet.

flowchart TD subgraph Accounting["Accounting Subnet (broadcast domain)"] Sender["Device sends broadcast"] A1["Accounting device"] A2["Accounting device"] Sender --> A1 Sender --> A2 end subgraph Engineering["Engineering Subnet (broadcast domain)"] E1["Engineering device"] E2["Engineering device"] end Router{{"Router boundary"}} Sender -. broadcast blocked .-x Router Router -.-x Engineering

Visual animation — coming soon

Why One Flat Network Doesn't Scale

Consider a company that grows from 50 to 5,000 devices, all on one flat network:

ProblemWhat happens on a flat network
Broadcast stormsEvery broadcast reaches all 5,000 devices, consuming bandwidth and CPU on every machine.
CongestionUnrelated departments share one crowded channel, slowing everyone down.
Weak securityAny compromised device can reach every other device—no internal walls to contain an attacker.
Hard troubleshootingA problem anywhere can affect everyone; there is no natural boundary to isolate the fault.

Subnetting attacks all four at once by replacing one giant broadcast domain with several small ones. One placement note: subnetting is a Layer 3 activity. Layer 3 (the OSI Network layer, or the TCP/IP Internet layer) handles logical addressing and routing. Because IP addresses and routing live at Layer 3, and subnetting divides IP address space, a subnet is a Layer 3 logical network. This is why subnetting is distinct from VLANs, which enforce segmentation at Layer 2.

Post-Quiz: What Is a Subnet?

1. A subnet is best described as which kind of construct?

A physical cable that connects two separate buildings
A logical subdivision of a larger IP network
A piece of hardware that encrypts traffic between hosts
A backup copy of a network's routing table

2. Subnetting adds a third level to IP addressing. Where do the bits for the new "subnet" level actually come from?

They are borrowed from the host portion of the address
They are borrowed from the network portion of the address
They are added on as extra bits, making the address longer than 32 bits
They come from the router's MAC address

3. Two devices have IP addresses whose network portions are identical. What does this tell you?

They must communicate through a router to reach each other
They are on the same network and can communicate directly
They are guaranteed to be running the same operating system
One of them must be a router and the other a host

4. Why does splitting a flat network into subnets reduce broadcast-related problems?

Subnets convert broadcasts into encrypted unicast messages
Each subnet is its own broadcast domain, so broadcasts stay confined to it
Subnets disable broadcasts entirely across the whole network
Subnets make every device respond to broadcasts faster

5. At which layer of the OSI model does subnetting operate, and why?

Layer 2, because it deals with MAC addresses and switching
Layer 3, because it divides IP address space, which lives in the Network layer
Layer 4, because it controls TCP and UDP port numbers
Layer 1, because it depends on the physical cabling layout
Pre-Quiz: A Brief History of IP Addressing

1. What was the fundamental flaw baked into classful addressing?

It offered only three fixed network sizes with no middle ground
It could not represent addresses in dotted-decimal form
It required every host to run a routing protocol
It made all networks exactly the same size

2. An organization needs 2,000 addresses under classful addressing. Why is this situation so wasteful?

A Class C (254 hosts) is too small, so they must take a Class B (65,534) and waste over 63,000 addresses
Class A blocks are the only option and each holds exactly 2,000 hosts
They must combine two Class C blocks, which is not permitted
Classful addressing forbids networks larger than 1,000 hosts

3. What problem did subnetting (RFC 950, 1985) directly solve for organizations?

It let them internally divide one network number instead of requesting a new one per segment
It doubled the total size of the IPv4 address space
It replaced IPv4 with a 64-bit addressing scheme
It removed the need for routers between networks

4. Which set of pressures converged to push the Internet toward CIDR in the early 1990s?

Class B exhaustion, routing-table growth, and depletion of the 32-bit space
A shortage of MAC addresses and slow physical cabling
Too many operating systems and incompatible file formats
The invention of Wi-Fi and mobile phones

5. How does CIDR's route aggregation (supernetting) shrink global routing tables?

It deletes routes to networks that are rarely used
It advertises many contiguous small networks as a single larger route
It compresses each routing entry into a smaller binary format
It moves the routing table off the routers and onto DNS servers

A Brief History of IP Addressing

Key Points

Classful Addressing Origins

The original 8-bit network identifier could describe only 256 networks—clearly too few. So in September 1981, RFC 791 (Jon Postel) introduced address classes to divide the 32-bit space into a few fixed sizes.

ClassLeading bitsUsable hostsRough intent
ABegins 1–126~16,000,000Very large organizations
BBegins 128–19165,534Medium-to-large organizations
CBegins 192–223254Small organizations

The design was elegant but had a fatal flaw: only three fixed sizes. An organization with 2,000 devices faced grim choices—a Class C (254) was far too small, while a Class B (65,534) wasted more than 63,000 addresses. Because most organizations were too big for Class C but nowhere near Class B, huge swaths of address space were handed out and left unused. This was the original sin of classful addressing.

Subnetting arrives (RFC 950). In August 1985, RFC 950 formally introduced subnetting, defining the subnet mask mechanism (plus ICMP "Address Mask Request/Reply" messages so a host could discover its mask at boot). Subnetting let an organization take a single network number and divide it across many segments, instead of demanding a brand-new network number for each one—directly easing both the constant requests for new numbers and the resulting routing-table growth.

IPv4 Address Exhaustion

Subnetting helped from inside an organization, but three Internet-wide forces converged in the late 1980s and early 1990s:

  1. Exhaustion of Class B space. Class B was the "just right" size for so many organizations that demand outstripped supply.
  2. Routing-table growth. Every separately announced network needed its own routing entry; tables grew beyond what hardware, software, and staff could manage.
  3. Exhaustion of the entire 32-bit space. The ~4.3 billion IPv4 addresses were finite and being consumed rapidly.

Imagine a postal system where mail routes only if every street has its own line in a master directory. As the country grows, the directory swells until no post office can hold it (routing-table bloat), while valid street addresses also run out (address exhaustion). The Internet faced both at once.

The Move to Classless Routing

The solution was to abandon the class boundaries entirely. In September 1993, the IETF published RFC 1518 and RFC 1519, formalizing Classless Inter-Domain Routing (CIDR). CIDR made two powerful moves:

Figure 1.3: Supernetting aggregates many small routes into one.

flowchart LR N1["Network: 192.168.0.0/24"] N2["Network: 192.168.1.0/24"] N3["Network: ... (16 total)"] N4["Network: 192.168.15.0/24"] Agg{{"CIDR route aggregation"}} Supernet["Advertised route: 192.168.0.0/20
(one routing-table entry)"] N1 --> Agg N2 --> Agg N3 --> Agg N4 --> Agg Agg --> Supernet

The impact was measurable. Routing-table growth actually spiked in late 1993/early 1994 (CIDR blocks assigned but still routed as legacy Class-C networks), then dropped sharply in 1994 once providers deployed BGP4, which could advertise aggregated supernet blocks as single entries. CIDR remains the foundation of Internet addressing today.

YearMilestoneWhat it introduced
1981RFC 791Classful addressing (Classes A, B, C)
1985RFC 950Subnetting and the subnet mask
1993RFC 1518 / RFC 1519CIDR, classless routing, VLSM, supernetting
2006RFC 4632Current CIDR standard (obsoletes RFC 1519)
Post-Quiz: A Brief History of IP Addressing

1. What was the fundamental flaw baked into classful addressing?

It offered only three fixed network sizes with no middle ground
It could not represent addresses in dotted-decimal form
It required every host to run a routing protocol
It made all networks exactly the same size

2. An organization needs 2,000 addresses under classful addressing. Why is this situation so wasteful?

A Class C (254 hosts) is too small, so they must take a Class B (65,534) and waste over 63,000 addresses
Class A blocks are the only option and each holds exactly 2,000 hosts
They must combine two Class C blocks, which is not permitted
Classful addressing forbids networks larger than 1,000 hosts

3. What problem did subnetting (RFC 950, 1985) directly solve for organizations?

It let them internally divide one network number instead of requesting a new one per segment
It doubled the total size of the IPv4 address space
It replaced IPv4 with a 64-bit addressing scheme
It removed the need for routers between networks

4. Which set of pressures converged to push the Internet toward CIDR in the early 1990s?

Class B exhaustion, routing-table growth, and depletion of the 32-bit space
A shortage of MAC addresses and slow physical cabling
Too many operating systems and incompatible file formats
The invention of Wi-Fi and mobile phones

5. How does CIDR's route aggregation (supernetting) shrink global routing tables?

It deletes routes to networks that are rarely used
It advertises many contiguous small networks as a single larger route
It compresses each routing entry into a smaller binary format
It moves the routing table off the routers and onto DNS servers
Pre-Quiz: Benefits of Subnetting

1. Why does placing sensitive systems on their own subnet improve security?

Because inter-subnet traffic must pass through a router/firewall where access policy can be enforced
Because devices on a separate subnet automatically encrypt all their traffic
Because subnets hide devices from the operating system's firewall
Because a subnet prevents any device from ever being compromised

2. In the hospital example, what does subnetting the guest Wi-Fi, patient monitors, and billing systems achieve?

It lets malware on the guest network freely reach the patient monitors
It contains a guest-network compromise so it cannot reach patient monitors or billing
It merges all three systems into one flat, easy-to-manage network
It removes the need for any access-control policy at all

3. What is the correct relationship between network segmentation and subnetting?

Segmentation is the broader security concept; subnetting is its Layer 3 form
They are two names for the exact same Layer 2 mechanism
Subnetting is broader; segmentation is only ever done with VLANs
Neither has anything to do with security

4. What is the underlying mechanism behind subnetting's performance benefit?

It shrinks broadcast domains, so each device processes fewer broadcasts and congestion drops
It increases the clock speed of every device on the network
It upgrades every link to a faster physical cable
It caches web pages closer to end users

5. How does modern subnetting (CIDR/VLSM) enable efficient address allocation?

It matches each segment's block to its actual size, from a large data-center block to a tiny point-to-point link
It forces every segment to use an identical fixed-size block
It expands IPv4 to a larger address space so waste no longer matters
It exposes the organization's internal structure to the global routing table

Benefits of Subnetting

Key Points

Security Segmentation

Subnetting is a primary tool for network segmentation—dividing a network into isolated zones so a problem in one cannot spread. Placing sensitive systems on their own subnet lets administrators control exactly who can reach them: because inter-subnet traffic must pass through a router or firewall, that boundary becomes a natural place to enforce access-control policy. If an attacker compromises a device, the damage is contained to a single subnet.

Consider a hospital. Patient monitors, guest Wi-Fi, and billing systems have very different security needs. Put each on its own subnet and malware from the guest network cannot reach the monitors, while billing access stays restricted to authorized staff. Without subnets, all three sit in one flat network where any device can reach any other.

Figure 1.4: A firewall boundary enforces policy between subnets.

flowchart TD Guest["Guest Wi-Fi subnet"] Firewall{{"Router / firewall
(access-control policy)"}} Monitors["Patient monitor subnet"] Billing["Billing systems subnet"] Guest -->|"traffic must pass through"| Firewall Firewall -->|"blocked: no access"| Monitors Firewall -->|"blocked: no access"| Billing

Visual animation — coming soon

A precise note: network segmentation is the broader concept, and subnetting is its Layer 3 form. Segmentation can also be enforced at Layer 2 using VLANs; in practice the two are used together but operate at different layers.

Performance and Broadcast Control

The performance benefit flows directly from the broadcast-domain concept. By limiting the number of devices in a single broadcast domain, subnetting reduces the broadcast traffic each device must process, cutting congestion and preventing any one segment from overwhelming the network. Because each subnet is its own broadcast domain, broadcasts reach only local devices—traffic stays local, bandwidth is freed, and communication is faster. Subnetting also eases troubleshooting: a fault is contained within a specific subnet, so teams can pinpoint it rather than chase it network-wide.

BenefitMechanismEveryday result
Less congestionBroadcasts confined to a small domainFaster data transfer, less wasted bandwidth
Traffic isolationEach subnet keeps its own traffic localSegments run at their fastest capability
Faster troubleshootingFaults contained to one subnetTeams pinpoint problems instead of chasing them network-wide

Efficient Address Allocation

Finally, subnetting—especially in its modern CIDR/VLSM form—lets engineers match allocations to the actual size of each segment rather than wasting a fixed-size block per site. Recall the classful dilemma: 2,000 addresses meant choosing between a too-small Class C and a wasteful Class B. With VLSM you carve out a block sized for each segment—a large block for a busy data center, a tiny block for a two-router point-to-point link, everything in between—all from a single allocation. This conserves IPv4 space and keeps internal structure tidy without exposing it to the global routing table.

Think of a moving company that stocks only two box sizes—tiny and enormous—versus one that stocks a full range. With the full range you pack each item in a box that fits, wasting no space. VLSM gives network engineers that full range of "box sizes" for addresses.

Post-Quiz: Benefits of Subnetting

1. Why does placing sensitive systems on their own subnet improve security?

Because inter-subnet traffic must pass through a router/firewall where access policy can be enforced
Because devices on a separate subnet automatically encrypt all their traffic
Because subnets hide devices from the operating system's firewall
Because a subnet prevents any device from ever being compromised

2. In the hospital example, what does subnetting the guest Wi-Fi, patient monitors, and billing systems achieve?

It lets malware on the guest network freely reach the patient monitors
It contains a guest-network compromise so it cannot reach patient monitors or billing
It merges all three systems into one flat, easy-to-manage network
It removes the need for any access-control policy at all

3. What is the correct relationship between network segmentation and subnetting?

Segmentation is the broader security concept; subnetting is its Layer 3 form
They are two names for the exact same Layer 2 mechanism
Subnetting is broader; segmentation is only ever done with VLANs
Neither has anything to do with security

4. What is the underlying mechanism behind subnetting's performance benefit?

It shrinks broadcast domains, so each device processes fewer broadcasts and congestion drops
It increases the clock speed of every device on the network
It upgrades every link to a faster physical cable
It caches web pages closer to end users

5. How does modern subnetting (CIDR/VLSM) enable efficient address allocation?

It matches each segment's block to its actual size, from a large data-center block to a tiny point-to-point link
It forces every segment to use an identical fixed-size block
It expands IPv4 to a larger address space so waste no longer matters
It exposes the organization's internal structure to the global routing table

Your Progress

Answer Explanations