Subnetting

How Networks are Divided and Organized

Subnetting is one of the most important concepts in networking. It explains how a single large network can be divided into smaller and more organized networks. This helps with security, performance, and efficient use of IP addresses.

You do not need advanced math to understand subnetting. You only need to know how networks are split into two parts: one part identifies the network, the other part identifies the device inside that network.

This article explains subnetting simply and visually.

What is a Subnet

A subnet is a smaller part of a larger network. When you subnet, you divide a large network into multiple smaller ones.

Example:

You have the network 192.168.1.0/24.

It contains 256 addresses.

You can split it into two smaller networks, each containing 128 addresses.

Subnetting helps networks stay organized and reduces congestion.

Why Subnetting exists

Subnetting provides several benefits:

1. Better security: Devices in one subnet cannot reach another subnet unless rules allow it.

2. Better performance: Reduces broadcast traffic and improves speed.

3. Better organization: You can group devices logically. Example: one subnet for servers, one subnet for cameras, one subnet for employees.

4. Efficient use of IPs: You avoid wasting large blocks of addresses when only a few devices are needed.

Subnetting is the foundation of modern network design.

Understanding Network Bits and Host Bits

An IP address has two sections:

Network part: Identifies the network.

Host part: Identifies the device inside that network.

Example:

192.168.1.0/24

When you change the subnet mask, you change how many bits belong to the network and how many belong to the hosts.

That is the entire logic behind subnetting.

CIDR Notation

CIDR means Classless Inter-Domain Routing.

It represents the network with a slash value. Examples: /24, /25, /26, /16.

This number tells how many bits belong to the network part.

Examples:

More network bits means fewer host bits. Fewer network bits means more hosts per subnet.

A Simple Example of Subnetting

Start with a common network:

192.168.1.0/24

This network has:

Now, split this network into two sub-networks.

Two subnets of 128 IPs each:

192.168.1.0/25 Range: 192.168.1.0 to 192.168.1.127

192.168.1.128/25 Range: 192.168.1.128 to 192.168.1.255

This is subnetting. You took a /24 and turned it into two /25 networks.

Subnet Mask Explained

Subnet mask shows which bits are network bits.

Examples:

Mask values grow larger as the network portion grows.

Subnet mask helps devices know if another device is inside the same subnet or in a different one. If both devices share the same network address, routing is not needed. If not, the packet goes to a router.

How Routers Use Subnets

Routers use subnet boundaries to decide where to send packets.

If both devices are in the same subnet: Packet is sent directly.

If devices are in different subnets: Packet goes to router, which forwards it to the correct network.

Subnetting helps routers make faster decisions.

Real-World Subnetting Use Cases

Home networks:

Many routers use:

Offices:

Networks are divided for departments.

Examples:

Data centers:

Subnets isolate servers and improve security.

Examples:

Subnetting is everywhere.

The Simplest Way to Think About Subnetting

Subnetting is just splitting and grouping.

If you remember three rules, you understand subnetting:

  1. A subnet mask decides how many bits belong to the network.
  2. More network bits means smaller subnets.
  3. Routers use subnet boundaries to forward packets.

Everything else is math on top of this idea. You do not need deep math unless you take certifications like CCNA.

Small Visual Explanation

Here is a simple way to imagine a subnet:

192.168.1.0/24 Represents a big room with 256 chairs.

Subnetting cuts the room into smaller rooms. Each smaller room has fewer chairs but better organization and control.

Conclusion

Subnetting is a method to divide networks into smaller and more manageable parts. It makes networks more secure, more organized, and more efficient. You now understand what network bits and host bits are, how CIDR works, how subnets are created, and why subnetting is essential for routing.

Webmentions

If you liked this article and think others should read it, please share it.

👍 0 🔁 0 💬 0