Understanding Subnetting: Breaking Down a Network

This post introduces subnetting for beginners, explaining how networks are divided into smaller subnets using subnet masks and CIDR notation. It covers IP address segments, the role of the subnet mask, and a practical real-world example of network division. Perfect for CCST Networking exam prep.

Understanding Subnetting: Breaking Down a Network
Quick answer

Subnetting divides one large network into smaller networks called subnets. The subnet mask, or its CIDR prefix such as /24, marks which bits of an IP address identify the network and which identify the host. With each subnet on its own VLAN or router interface, broadcasts stay inside the subnet, traffic between groups passes through a router where rules can be applied, and devices are organised by department or location.

When you first hear the word "subnetting," it can feel like one of those intimidating networking concepts that only experienced engineers understand. The truth is, once you break it down into its core pieces, subnetting is a logical and practical skill that makes total sense. Let's walk through what subnetting is, why it matters, and how it actually works.

What Is Subnetting?

Subnetting is the process of dividing a larger network into smaller, more manageable pieces called subnets. Think of it like splitting a large office building into separate departments. Each department has its own section of the building, its own resources, and its own traffic. Network division works the same way: instead of every device on a company's network communicating with every other device all the time, subnetting organizes them into logical groups.

This matters for a few key reasons:

  • Performance: Smaller networks mean less unnecessary traffic. Broadcast messages only travel within a subnet, not across the entire network.
  • Security: You can control which subnets can talk to each other, limiting the blast radius of a security incident.
  • Organization: Subnets help you logically group devices by function, floor, department, or location.

IP Address Segments: The Building Blocks

To understand subnetting, you first need to understand how an IP address is structured. An IPv4 address is a 32-bit number written in four groups of digits called octets, separated by dots. For example: 192.168.1.100

Each octet represents 8 bits, and those bits tell routers two things: which network the address belongs to, and which specific host (device) on that network it identifies. The IP address segments are split into a network portion and a host portion. That split is defined by the subnet mask.

What Is a Subnet Mask?

The subnet mask works alongside an IP address to identify where the network portion ends and the host portion begins. A common subnet mask looks like this: 255.255.255.0

In binary, that subnet mask is:

11111111.11111111.11111111.00000000

Wherever you see a 1 in the mask, that bit in the IP address is part of the network. Wherever you see a 0, that bit is part of the host identifier. So with a subnet mask of 255.255.255.0 applied to the address 192.168.1.100:

  • Network address: 192.168.1.0
  • Host address: .100 (the last octet)

This tells you that all devices with addresses from 192.168.1.1 to 192.168.1.254 are on the same subnet, and there are 254 usable host addresses available.

Slash Notation (CIDR)

You will also see subnet masks written in a shorthand format called CIDR (Classless Inter-Domain Routing) notation. Instead of writing out the full mask, you write a slash followed by the number of network bits. For example:

  • 192.168.1.0/24 is the same as using subnet mask 255.255.255.0
  • 192.168.0.0/16 is the same as 255.255.0.0

The /24 tells you that 24 bits are used for the network, leaving 8 bits for host addresses. That gives you 256 possible addresses (2 to the power of 8), with 254 usable after subtracting the network address and broadcast address.

A Quick Real-World Example

Imagine a small company with two departments: Sales and IT. Instead of putting all devices on one flat network, the administrator creates two subnets:

SALES 192.168.10.0/24IT 192.168.20.0/24G0/0 .1G0/1 .1 R1 SW1 SW2 Sales PC192.168.10.21 Sales PC192.168.10.22 IT PC192.168.20.31 IT server192.168.20.10
Two subnets, one per department. Broadcasts stay inside each subnet, and Sales-to-IT traffic must cross the router, where security rules can be applied
  • Sales: 192.168.10.0/24
  • IT: 192.168.20.0/24

Devices in Sales can talk freely to each other, and devices in IT can do the same. If someone in Sales needs to reach the IT subnet, that traffic must pass through a router, where security rules can be applied. That is understanding subnetting in action: organized, controlled, efficient.

Subnetting: common questions

What does a subnet mask do?

It shows which part of an IP address is the network and which part is the host. Bits set to 1 in the mask are network bits; bits set to 0 are host bits.

What does /24 mean?

The first 24 bits of the address are the network portion, which is the same as the subnet mask 255.255.255.0. That leaves 8 bits for hosts.

How many usable hosts are in a /24?

254. Eight host bits give 256 addresses, minus the network address and the broadcast address.

Why subnet a network at all?

When each subnet is its own VLAN or routed segment, broadcasts stay inside it, which cuts unnecessary traffic, and traffic between subnets has to pass through a router where security rules can be applied.

How do devices in different subnets communicate?

Through a router. A device sends traffic for other subnets to the next hop its routing table picks, which is usually its default gateway, and routers forward it on towards the destination subnet.

What's Next

Now that you understand what subnetting is and how subnet masks define IP address segments, the next step is learning how to calculate subnets manually. In the next post, we will cover how to determine the number of subnets and hosts from a given CIDR prefix, which is a core skill tested in the CCST Networking exam.

๐Ÿ”ง
If you're working through subnetting practice, a visual subnet calculator like Visual Subnet Calculator or ipcalc can help you check your work and build intuition fast โ€” especially when converting between CIDR notation and dotted-decimal masks. Subnet Calculator (subnetcalc.it), Visual Subnet Calculator and ipcalc.