Classification of IPv4 Addresses
An IPv4 address is represented as 32 bits and is classified into several types depending on its purpose and allocation range. Historically, addresses were classified by class (A through E), but today classless addressing based on CIDR (Classless Inter-Domain Routing) is the mainstream approach. In addition, special-purpose address ranges are defined, such as global/private, loopback, link-local, and shared addresses.
Classful Addressing (Class A–E)
| Class | Leading Bits | Address Range | Default Subnet Mask | Purpose |
|---|---|---|---|---|
| Class A | 0 | 0.0.0.0 – 127.255.255.255 | 255.0.0.0 (/8) | Unicast addresses for large-scale networks. |
| Class B | 10 | 128.0.0.0 – 191.255.255.255 | 255.255.0.0 (/16) | Unicast addresses for medium-scale networks. |
| Class C | 110 | 192.0.0.0 – 223.255.255.255 | 255.255.255.0 (/24) | Unicast addresses for small-scale networks. |
| Class D | 1110 | 224.0.0.0 – 239.255.255.255 | None (no concept of a mask) | Reserved for multicast addresses. |
| Class E | 1111 | 240.0.0.0 – 255.255.255.255 | None (no concept of a mask) | Reserved for experimental future use. |
Classes A through C are defined as unicast addresses for hosts, and the boundary between the network portion and host portion (the classful mask) is determined by the pattern of the leading bits. Class D is reserved exclusively for multicast, and Class E is reserved for experimental use; neither is assigned to ordinary hosts.
Global Addresses (Public Addresses)
These are addresses whose uniqueness is guaranteed across the internet and that can be routed directly on the internet. They are allocated by IANA (Internet Assigned Numbers Authority) through the Regional Internet Registries (RIRs) to ISPs and organizations, and correspond to the ranges remaining after excluding special-purpose blocks such as private addresses and loopback addresses described below.
Private Addresses
These are address ranges reserved for use within local networks that are not directly connected to the internet, such as inside an organization. These addresses are not routed on the internet and can be reused independently by multiple organizations.
| Class Equivalent | Address Range | CIDR Notation | Number of Addresses |
|---|---|---|---|
| Class A | 10.0.0.0 – 10.255.255.255 | 10.0.0.0/8 | About 16.77 million |
| Class B | 172.16.0.0 – 172.31.255.255 | 172.16.0.0/12 | About 1.04 million |
| Class C | 192.168.0.0 – 192.168.255.255 | 192.168.0.0/16 | 65,536 |
Loopback Address
This is an address reserved to refer to the host itself. Packets addressed to the loopback address are processed internally by the host without passing through a network interface. In IPv4, the entire 127.0.0.0/8 block is reserved for loopback use, although 127.0.0.1 is typically used as the representative address.
| Item | Value |
|---|---|
| Address Range | 127.0.0.0 – 127.255.255.255 |
| CIDR Notation | 127.0.0.0/8 |
| Representative Address | 127.0.0.1 |
Link-Local Address
This is an address valid only within the same link (the same segment), used when a host automatically assigns itself an address (APIPA: Automatic Private IP Addressing) because it was unable to obtain one from a DHCP server or similar. Packets addressed to or originating from a link-local address are not forwarded beyond a router.
| Item | Value |
|---|---|
| Address Range | 169.254.0.0 – 169.254.255.255 |
| CIDR Notation | 169.254.0.0/16 |
Shared Address Space
This is an address space reserved for use within an ISP’s own network in Carrier-Grade NAT (CGN / CGNAT) environments. It occupies a position similar to private addresses (RFC 1918), but was newly defined to avoid address collisions in cases where both the ISP’s equipment and customer-premises equipment use RFC 1918 addresses.
| Item | Value |
|---|---|
| Address Range | 100.64.0.0 – 100.127.255.255 |
| CIDR Notation | 100.64.0.0/10 |
| Primary Use | Carrier-Grade NAT (CGN) within an ISP’s network |
Related RFCs
| RFC | Title | Summary |
|---|---|---|
| RFC 791 | Internet Protocol | The original specification for IPv4. Defines the Class A–C address scheme. |
| RFC 1112 | Host Extensions for IP Multicasting | Defines Class D as the multicast address range. |
| RFC 1918 | Address Allocation for Private Internets | Defines the private address ranges (10/8, 172.16/12, 192.168/16). |
| RFC 1122 | Requirements for Internet Hosts – Communication Layers | Specifies 127.0.0.0/8 as the loopback address range. |
| RFC 3927 | Dynamic Configuration of IPv4 Link-Local Addresses | Defines 169.254.0.0/16 as the link-local address range. |
| RFC 6598 | IANA-Reserved IPv4 Prefix for Shared Address Space | Defines 100.64.0.0/10 as the shared address space for Carrier-Grade NAT. |
| RFC 4632 | Classless Inter-Domain Routing (CIDR) | Replaces classful addressing with the classless routing scheme (CIDR). |
| RFC 6890 | Special-Purpose IP Address Registries | Specifies the registry for special-purpose addresses such as loopback and link-local. |