Nepedia
Back to Discover
Fluent Reader
💻

Subnet

technology Maturity 7-9 Next article →

Computers on the internet need a way to find each other. They use special numbers called IP addresses to do this. A subnet, or subnetwork, is a way to divide one big network into smaller pieces. This process is called subnetting.

Subnetting Concept-en
Subnetting Concept-en

Dividing a network helps it stay organized. It also makes it easier to manage many different devices. Large organizations use subnets to keep their many parts running smoothly.

Every IP address is split into two logical parts. The first part is the routing prefix, which shows the network number. The second part is the host identifier, which identifies a specific device.

Subnetting Concept
Subnetting Concept

Computers in the same subnet always share the same prefix. To find this prefix, computers use a subnet mask. The mask is a string of bits used to separate the network part from the host part. In IPv4, this mask is often written in dot-decimal notation, like 255.255.255.0.

People have used different ways to manage these addresses over time. In the past, computers used classful networking. This meant the prefix was determined by the highest bits in the address. This system used classes named A, B, and C. Later, a better system called CIDR was introduced. CIDR stands for Classless Inter-Domain Routing. It is the modern standard used for both IPv4 and IPv6.

Subnetting Concept-en
Subnetting Concept-en

There are many specific rules for how these addresses work. An IPv4 address is made of 32 bits. An IPv6 address is much larger with 128 bits. Since 2006, IPv6 has been used more often because it has a huge amount of addresses.

Subnetting Concept
Subnetting Concept

In IPv4, a network might use CIDR notation to show its prefix. For example, /24 means the first 24 bits are the network prefix. This leaves 8 bits for the hosts. A network with 8 host bits can have 254 usable addresses. This is because the first and last addresses are reserved for special jobs.

Subnets work together like a giant tree or a mesh. Special computers called routers act as the borders between these subnets.

Subnetting Concept-en
Subnetting Concept-en

If two computers have different prefixes, the router moves the data between them. If they have the same prefix, the data stays on the local network. This is just like how mail moves between different towns. A router helps the data find the right path to its destination. This makes the whole internet much more efficient.

395 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (2)
File:Subnetting Concept-en.svg
Subnetting Concept-en.svg
File:Subnetting Concept.svg
Subnetting Concept.svg
More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.