📚 College Credit Guide ✓ UPI Study 🕐 11 min read

What Are IP Addressing, Subnetting, and CIDR?

This article explains IP addressing, subnetting, CIDR notation, classful addressing, and how to read masks and prefix lengths with simple examples.

US
UPI Study Team Member
📅 June 16, 2026
📖 11 min read
US
About the Author
The UPI Study team works directly with students on credit transfer, degree planning, and course selection. We've helped thousands of students figure out what counts toward their degree and how to finish faster without paying more than they have to. This post is written the way we'd explain it to you directly.

IP addressing gives each device or interface a logical label, subnetting breaks large address space into smaller parts, and CIDR tells you the size of that part with a prefix like /24 or /16. Those three ideas sit at the center of basic networking, routing, and even entry-level cybersecurity work. Think of an IP address as the name a router can read. A laptop, printer, server, or phone uses that label so packets reach the right place. Subnetting then groups those labels so a network admin can control traffic, separate teams, and cut waste. CIDR made all of this cleaner by replacing the old class A, B, and C setup from the 1980s and 1990s. That old system used fixed blocks, which wasted huge chunks of IPv4 space. You will see IPv4 addresses like 192.168.1.10 and IPv6 addresses like 2001:db8::1. The format changes, but the idea stays the same: a prefix says which part names the network and which part names the host. Once you can read that split, you can find the subnet mask, count hosts, and spot why a /30 behaves very differently from a /24. That skill matters in class, in a cybersecurity course, and on real networks where one bad mask can break routing across an entire site.

Laptop displaying a security lock icon on a table with a potted plant and clock — UPI Study

What Does IP Addressing Actually Identify?

An IP address identifies a device interface on a network, not the physical box itself, and that logical label helps routers move packets across 2 or 200 networks. One laptop can have 2 addresses at once, such as one IPv4 and one IPv6, because each interface can carry more than 1 identity.

That detail trips people up. A MAC address belongs to hardware on the local link, but an IP address tells the network where to send traffic next. A router does not care whether the device is a phone, a server, or a printer; it only cares that 192.168.1.10 or 2001:db8::10 fits the route table. That is why IP addressing sits inside routing, not just inside the device.

The catch: The same device can move between networks and keep its name-change-friendly IP role, but the address itself can change when you switch from Wi‑Fi to mobile data or from one campus LAN to another.

IPv4 uses 32 bits, so it has about 4.3 billion possible addresses, and IPv6 uses 128 bits, which gives a much bigger pool. IPv4 still shows up everywhere in home routers and older labs, while IPv6 grows fast in modern networks because the 32-bit pool ran out. In 2024, most students still see both formats in the same class.

The practical point is simple. IP addressing gives packet delivery a target, and routing uses that target to decide where the packet goes next. If the address does not match the route, the packet stalls. That sounds small, but one wrong octet can knock out a whole lab in under 5 minutes.

I like IP addressing because it feels boring until it breaks, and then it gets loud fast.

Why Did Subnetting Become Necessary?

Subnetting became necessary because one giant network wastes address space and makes routing messy, while smaller 50-host or 500-host segments keep traffic tighter and administration cleaner. A /16 gives 65,536 addresses, and many organizations do not need that many devices in one flat network.

What this means: You split one big block into several smaller ones so departments, floors, labs, or services can stay apart without buying new address space every time.

Broadcast traffic creates another problem. In a flat network, every broadcast reaches every host in that segment, so a printer discovery packet or ARP request can hit 200 devices instead of 20. Subnets shrink that blast radius. That helps routing, and it helps the people who have to fix problems at 9 a.m. on a Monday.

Subnetting also gives admins cleaner control. A school can separate student devices, staff devices, and guest Wi‑Fi. A company can split finance, HR, and guest access. A hospital can keep imaging gear away from visitor traffic. Those are different settings, but the reason stays the same: 1 network should not behave like 1 giant room.

The downside is obvious. More subnets mean more planning, more routes, and more chances to mistype a mask. Still, I would rather manage 8 tidy subnets than 1 ugly network that grows until nobody understands it. That tradeoff is why subnetting shows up in every serious networking class and in plenty of Introduction to Networking material.

Introduction To Cybersecurity UPI Study Course

Learn Introduction To Cybersecurity Online for College Credit

This is one topic inside the full Introduction To Cybersecurity course on UPI Study — a self-paced, online class that earns real college credit. Credits are ACE and NCCRS evaluated and transfer to partner colleges across the US and Canada. Courses start at $250 with no deadlines and lifetime access.

Browse Cybersecurity Course →

How Do You Read CIDR Prefix Lengths?

CIDR prefix lengths tell you how many bits belong to the network part of an address, and the rest belong to hosts. A /24 is common in IPv4, a /16 holds far more hosts, and a /30 leaves only 2 usable device slots.

  1. A slash number like /24 means 24 bits are fixed for the network. That leaves 8 host bits in IPv4, which gives 2^8 = 256 total addresses.
  2. Subtract the prefix from 32 to find host bits. So /16 leaves 16 host bits, and /30 leaves 2 host bits, which means 4 total addresses and 2 usable hosts.
  3. Convert the prefix to a subnet mask. /24 becomes 255.255.255.0, /16 becomes 255.255.0.0, and /30 becomes 255.255.255.252.
  4. Use the mask to spot the block size. A /24 moves in steps of 256 in the last octet, while a /30 moves in steps of 4, which matters in exam questions and lab work that allow only 1–2 tries before time runs out.
  5. Count usable hosts by taking 2^host bits and subtracting 2 for network and broadcast addresses. A /24 gives 254 usable hosts, and a /30 gives 2, which makes it perfect for point-to-point links.

Reality check: People often memorize /24 and freeze on /27 or /29, but the math stays the same every time.

A prefix is not magic. It is just a compact way to say how much of the address belongs to the network. Once you learn that pattern, subnet masks stop looking random, and an intro cybersecurity course starts to feel much less scary.

Which CIDR Masks Replace Classful Networks?

Classful addressing used fixed A, B, and C boundaries, and that rigidity wasted space fast. CIDR replaced it with variable-length prefixes, which let engineers size networks to fit real needs instead of forcing every site into one of 3 old buckets.

ThingClassfulCIDR
Class A1.0.0.0–126.0.0.0/8 variable use
Class B128.0.0.0–191.255.0.0/16 to /30
Class C192.0.0.0–223.255.255.0/24 to /30
Default maskFixed by classAny prefix length
Why it wonRigid, wastefulSmaller routes, less waste

CIDR won because the internet could not keep wasting whole blocks just to support a few hundred hosts. That matters in IPv4, where every saved address counts. It also makes route tables smaller, which helps routers move traffic faster and keeps admin work from turning into a 2-hour headache.

Bottom line: CIDR lets one /20 act like a custom fit, while classful addressing forced everyone into oversized shoes.

How Do You Calculate Subnets and Hosts?

A simple /24 example makes subnet math easier because 256 total addresses fit neatly into one last-octet range, and you can split that range into 2, 4, 8, or 16 smaller pieces. The goal is to find the number of subnets, the usable hosts per subnet, the block size, the network address, the broadcast address, and the host range without guessing. That same process shows up on exams, in labs, and in real routing work.

Worth knowing: A /24 split into four /26 subnets gives 4 separate networks, each with 62 usable hosts, and that clean division is why subnetting feels useful instead of abstract.

If you can do those 5 steps, you can read most beginner subnet questions in under 3 minutes. That is not flashy, but it saves points.

Frequently Asked Questions about IP Addressing

Final Thoughts on IP Addressing

IP addressing, subnetting, and CIDR all solve the same basic problem: how do you name devices, split networks, and move packets without wasting space? Once you understand that IP gives the label, subnetting cuts the space into smaller pieces, and CIDR writes the size with a slash, the whole topic gets much less slippery. The numbers matter because they remove the guesswork. A /24 gives 254 usable hosts. A /30 gives 2. A /16 gives 65,536 total addresses. Those three facts can carry you through a lot of homework, lab work, and exam questions. They also explain why classful addressing faded out. Fixed blocks could not keep up with real network sizes, and they burned through IPv4 space too fast. Students usually get stuck when they try to memorize masks without seeing the pattern. That approach fails. Learn the prefix, count host bits, convert to a mask, and check the block size. Do that a few times, and the arithmetic starts to feel ordinary. If you keep one habit, make it this: write the prefix first, then work the rest from that number. That one move saves time on practice questions and makes real network troubleshooting far less messy.

How UPI Study credits actually work

Ready to Earn College Credit?

ACE & NCCRS approved · Self-paced · Transfer to colleges · $250/course or $99/month

© UPI Study. This article and its educational content are solely owned by UPI Study and licensed under CC BY-NC-ND 4.0. It is not free to reuse or modify. Any citation must credit UPI Study with a direct link to this page.