๐Ÿท๏ธ Full Lesson ยท Networking
Class A: Huge Networks | Class B: Medium | Class C: Small
IP Address Classes

The original scheme for carving up the entire IPv4 address space into fixed-size chunks โ€” mostly retired today in favor of more flexible allocation, but still the historical foundation every networking explanation builds on.

The Core Idea
Fixed-Size Categories for Networks of Different Scale

The original IPv4 addressing scheme divided the entire address space into distinct classes, each with a fixed split between the 'network' portion (identifying which network an address belongs to) and the 'host' portion (identifying a specific device within that network). Different classes offered different trade-offs between how many separate networks could exist and how many individual devices each network could contain.

This 'classful' scheme was elegant in its simplicity but proved wasteful in practice โ€” an organization needing just 300 devices would often be allocated an entire Class B network capable of holding over 65,000 devices, since there was no size option in between Class B and Class C. This inefficiency is exactly why CIDR (Classless Inter-Domain Routing) was later introduced to replace rigid classful allocation with flexible, arbitrary-sized network blocks.

๐Ÿ’ก Memory Trick
Think of the classes as clothing sizes offered by an old-fashioned clothing store that only stocks Small, Medium, and Large โ€” no in-between sizes. CLASS A is 'Large': very few network 'labels' exist, but each one fits an enormous number of individual devices (like a handful of gigantic countries, each with millions of citizens). CLASS B is 'Medium': more network labels available, each fitting a moderate number of devices (like a moderate number of mid-sized cities). CLASS C is 'Small': a huge number of network labels available, each fitting only a small number of devices (like a vast number of individual small neighborhoods).
The Three Main Classes
Ranges and Capacity
A
Class A โ€” Very Large Networks
First octet ranges from 1 to 126. Uses only the first 8 bits for the network portion, leaving 24 bits for hosts โ€” supporting roughly 16.7 million host addresses per network, but only 126 total Class A networks exist. Default subnet mask: 255.0.0.0.
Example: 10.0.0.1 falls in the Class A range, commonly used for large private internal networks.
B
Class B โ€” Medium Networks
First octet ranges from 128 to 191. Uses the first 16 bits for the network portion, leaving 16 bits for hosts โ€” supporting roughly 65,000 host addresses per network, with about 16,000 possible Class B networks. Default subnet mask: 255.255.0.0.
Example: 172.16.0.1 falls in the Class B range, commonly used for mid-sized organizational networks.
C
Class C โ€” Small Networks
First octet ranges from 192 to 223. Uses the first 24 bits for the network portion, leaving only 8 bits for hosts โ€” supporting only 254 usable host addresses per network, but over 2 million possible Class C networks exist. Default subnet mask: 255.255.255.0.
Example: 192.168.1.1 falls in the Class C range, extremely common for home and small office networks.
Why This Matters Today
Mostly Historical, Still Foundational

Modern networks almost universally use CIDR notation (like 192.168.1.0/24) instead of rigid class-based allocation, since CIDR allows arbitrarily-sized network blocks tailored to actual need, rather than being forced into one of three fixed sizes. However, understanding classful addressing remains foundational because default subnet masks, certain legacy documentation, and many networking certification exams still reference and build on this original classification system.

It's also worth noting that certain address ranges within these classes are reserved for special purposes regardless of class โ€” most notably the private address ranges (like 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16) that are never routed on the public internet and are reused internally by countless separate private networks worldwide, which is part of what makes IPv4's limited address space stretch as far as it has.

๐Ÿ–ฅ๏ธ Applied Scenario
A small startup with 40 employees is assigned a Class B network under an old classful allocation scheme, when they'll never need more than a few hundred IP addresses.
1
You calculate that a Class B network supports roughly 65,000 host addresses, while this startup will realistically never use more than a few hundred โ€” over 99% of the allocated address space will sit permanently unused.
2
You recognize this exact kind of waste, repeated across countless similarly-sized organizations worldwide, is precisely why classful addressing exhausted the available IPv4 address space far faster than it needed to.
3
You explain that modern CIDR-based allocation would instead assign this startup an appropriately-sized block (like a /24 or even smaller), matching their actual need far more closely and leaving the rest of that address space available for other organizations.
4
Conclusion: this scenario is exactly the kind of real-world inefficiency that motivated the shift from rigid classful addressing to flexible CIDR allocation.
๐Ÿ“Œ Exam Application
Exam questions frequently ask you to identify the class of a given IP address based on its first octet's range, and to state that class's default subnet mask and approximate host capacity. You may also be asked to explain why classful addressing was largely replaced by CIDR, expecting you to reference the wasted address space problem illustrated by fixed-size class allocation.
โš ๏ธ Most Common IP Address Classes Mistakes
The most common mistake is confusing which class corresponds to which numeric range โ€” remembering that Class A starts lowest (1-126) and has the FEWEST networks but the MOST hosts per network, while Class C starts highest (192-223) and has the MOST networks but the FEWEST hosts per network, helps avoid mixing these up. Another frequent error is assuming classful addressing is still how modern networks are actually configured โ€” in practice, CIDR notation has replaced classful allocation almost universally, though the historical class ranges and their default subnet masks remain a common reference point and exam topic.
โœ“ Quick Self-Test
Given an IP address, can you correctly identify which class it falls into based on its first octet, and state that class's default subnet mask? Can you explain, using a concrete example, why classful addressing wasted so much of the available IPv4 address space?
Next Lesson
HTTP Methods
โ†’
โ† All Networking Lessons