NETWORKING / TECHNICAL EXPLAINER

What Is a Network Class? Understanding IP Address Classes, Types, and Their Uses

IPv4 address classes A, B, and C are a useful historical teaching model, but they are not the rule that determines subnet sizes on modern […]

In this article

IPv4 address classes A, B, and C are a useful historical teaching model, but they are not the rule that determines subnet sizes on modern networks. An old classful system inferred a network boundary from the first bits of an IPv4 address. Today’s classless inter-domain routing (CIDR) explicitly carries the prefix length, so 192.0.2.0/27 can describe a subnet regardless of any historical Class C label.

What the original classful categories meant

Early IPv4 network assignments used fixed network/host boundaries. The first octet often helped identify the assumed default size, and many introductory diagrams still use this convention. That historical context helps explain older networking commands and textbooks, but using it for a modern routing or address-allocation decision would be misleading.

Historic category First-octet range Historic default mask / purpose
Class A 0–127 (with special-purpose portions) Network/host split usually described as /8
Class B 128–191 Network/host split usually described as /16
Class C 192–223 Network/host split usually described as /24
Class D 224–239 Multicast address space, not ordinary unicast host allocation
Class E 240–255 Reserved or special-purpose space rather than ordinary allocation

These ranges are historical categories, not a list of today’s freely assignable subnets. For example, 127.0.0.0/8 is loopback space; other address ranges have special uses too. The old A/B/C default masks should never override an explicit modern network prefix.

CIDR makes the prefix length explicit

CIDR notation writes an address followed by a slash and the number of leading bits belonging to the network prefix. In 192.0.2.0/27, the first 27 of 32 IPv4 bits form the prefix and the remaining five bits vary inside that block. The block contains 32 total addresses, commonly leaving 30 assignable unicast host addresses in an ordinary IPv4 subnet where network and broadcast addresses are reserved.

This example uses a documentation address range. A /27 is smaller than a /24, and a /23 is larger, even if all three begin with octets historically described as Class C. For router forwarding and address planning, the actual prefix length is the meaningful parameter.

The IETF’s CIDR architecture (RFC 4632) explains why classless prefixes replaced the inference of masks from address classes and how aggregation reduces unnecessary routing-table entries.

Understand network, host, and broadcast calculations

Consider 192.0.2.64/27. A /27 network advances in blocks of 32 addresses. Its conventional network address is 192.0.2.64; the last address is 192.0.2.95, typically the directed broadcast address in an ordinary Ethernet subnet. The common unicast host range is 192.0.2.65 through 192.0.2.94. The calculation follows the prefix bits rather than the initial number 192.

There are important exceptions to the familiar subtract-two-hosts shortcut. Point-to-point /31 designs and /32 host routes serve different purposes, and IPv6 does not use IPv4 broadcast addressing. Network engineers should derive the usable addresses from the application and platform rather than blindly apply one classroom formula.

Private IPv4 ranges are a separate concept

Private IPv4 space is not defined by the classful labels either. Common RFC 1918 ranges include 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. They are reserved for private addressing under RFC 1918 and are not globally routed on the public Internet as ordinary public prefixes. A private /24 or /27 created inside those ranges is a local subnetting choice; network address translation, firewall policy, and address overlap must be managed separately.

Do not confuse “Class A” with “private address.” Many historically Class A addresses are public, and many private subnets use prefix lengths other than /8. Likewise, using 192.168 does not inherently make a connection secure; segmentation and access control still determine exposure.

Routing uses the longest matching prefix

If a routing table contains both a general 10.0.0.0/8 route and a more specific 10.20.30.0/24 route, the more specific route ordinarily matches a destination inside the /24. The router compares prefixes; it does not classify the address as A/B/C and choose a classful default. Dynamic routing protocols and BGP communicate network prefixes explicitly so the right reachability information is available.

The site’s CIDR notation guide and IPv4 subnetting overview are relevant next steps for learning to calculate boundaries and design subnets consistently.

Use classes for history, prefixes for operations

Recognizing the traditional A/B/C ranges can help interpret legacy material, but modern configuration should name an explicit prefix and confirm the network’s actual requirements: number of addresses, growth, isolation, summarization, and route advertisement. For troubleshooting, verify the configured mask, longest-prefix match, and any overlapping subnet routes before drawing conclusions from the first octet alone.

Practical conclusion: When someone says a host “belongs to Class C,” ask for the actual IP prefix. That single question prevents many addressing and routing mistakes.