3.1 IPv4 Addressing Architecture and Classes
Key Takeaways
IPv4 addresses contain 32 bits represented as four decimal octets.
Modern prefix lengths define network boundaries; historical classes do not override CIDR routing.
RFC 1918 reserves 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 for private use.
Loopback, link-local, limited broadcast, and subnet broadcast addresses have different purposes.
3.1 IPv4 Addressing Architecture and Classes
Quick Answer: An IPv4 address is a 32-bit binary identifier divided into four 8-bit octets expressed in dotted-decimal notation (such as
192.0.2.1). Historically, addresses were divided into five classes (Class A:1.0.0.0–126.255.255.255, Class B:128.0.0.0–191.255.255.255, Class C:192.0.0.0–223.255.255.255, Class D:224.0.0.0–239.255.255.255for multicast, and Class E:240.0.0.0–255.255.255.255for experimental use). To conserve address space, RFC 1918 defines three private blocks:10.0.0.0/8,172.16.0.0/12, and192.168.0.0/16. Special blocks include127.0.0.0/8(loopback),169.254.0.0/16(link-local/APIPA), and255.255.255.255(limited broadcast).
In TCP/IP internetworking, the Internet Protocol version 4 (IPv4) provides logical addressing and host identification at the Network Layer (Layer 3 of the OSI reference model). Whether configuring Nokia 7750 Service Router (SR) line interfaces or troubleshooting routed services across a service-provider backbone, a thorough mastery of IPv4 addressing fundamentals is mandatory.
Structure of an IPv4 Address
An IPv4 address consists of exactly 32 binary bits. Because raw 32-bit binary strings (such as 11000000101010000000101000000001) are difficult for network engineers to read and manage, IPv4 addresses are formatted using dotted-decimal notation.
Octets and Positional Weight
The 32 bits are partitioned into four groups of 8 bits, with each 8-bit group termed an octet:
- The octets are separated by decimal periods (dots).
- Each octet has a decimal value range from 0 (
00000000in binary) to 255 (11111111in binary). - The total mathematical address space encompasses unique addresses.
To convert an octet from binary to decimal, calculate the sum of the positional weights for every bit position set to 1:
| Bit Position | Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
|---|---|---|---|---|---|---|---|---|
| Positional Weight | ||||||||
Example (11000000) | 128 | 64 | 0 | 0 | 0 | 0 | 0 | 0 |
| Decimal Value | 192 | () |
The Two-Level Hierarchy: Network ID and Host ID
Every IPv4 unicast address is divided into two distinct components:
- Network Identifier (Network ID): Specifies the physical or logical network to which the device belongs. Routers inspect the network portion of the destination IP address to determine the outgoing interface and next-hop router along the transit path.
- Host Identifier (Host ID): Identifies the specific host interface, router interface, server, or end device within that designated network segment.
In early TCP/IP networking, the boundary separating the network ID from the host ID was fixed by rigid class rules. In modern networking, that boundary is dynamically specified using subnet masks and prefix lengths.
Historical Classful Addressing Architecture
Historical classful conventions, later expanded for multicast, categorized the address space into five classes: Class A, Class B, Class C, Class D, and Class E. The class of an address was determined strictly by the leading binary bits of the first octet.
Class A Networks
- Leading Bits:
0(the most significant bit is always zero). - First Octet Range:
1to126in decimal (00000001to01111110binary). - Boundary Structure: The first octet serves as the Network ID (8 bits), while the remaining three octets represent the Host ID (24 bits).
- Default Subnet Mask:
255.0.0.0(or/8prefix length). - Scale: Supports usable networks and usable host addresses per network.
- Historical Intent: Assigned to very large organizations, government agencies, and major universities with millions of connected nodes.
Class B Networks
- Leading Bits:
10(the first two bits are binary 1 and 0). - First Octet Range:
128to191in decimal (10000000to10111111binary). - Boundary Structure: The first two octets serve as the Network ID (16 bits), while the final two octets represent the Host ID (16 bits).
- Default Subnet Mask:
255.255.0.0(or/16prefix length). - Scale: Supports networks and usable host addresses per network.
- Historical Intent: Assigned to medium-to-large enterprises, regional telecommunications providers, and large academic campuses.
Class C Networks
- Leading Bits:
110(the first three bits are binary 1, 1, and 0). - First Octet Range:
192to223in decimal (11000000to11011111binary). - Boundary Structure: The first three octets serve as the Network ID (24 bits), while the final octet represents the Host ID (8 bits).
- Default Subnet Mask:
255.255.255.0(or/24prefix length). - Scale: Supports networks and usable host addresses per network.
- Historical Intent: Assigned to small businesses and local area networks (LANs).
Class D (Multicast)
- Leading Bits:
1110. - First Octet Range:
224to239in decimal (11100000to11101111binary). - Purpose: Reserved exclusively for multicast groups (one-to-many communication). Multicast addresses do not use subnet masks or host identifiers; instead, receiving hosts join specific multicast groups to listen for streaming media, routing updates (such as OSPF at
224.0.0.5), or control signaling.
Class E (Experimental / Reserved)
- Leading Bits:
1111. - First Octet Range:
240to255in decimal (11110000to11111111binary). - Purpose: Reserved by the IETF for experimental, research, and future development purposes. Addresses in this range are non-routable on the public Internet.
Classful Addressing Summary Table
| Class | High-Order Bits | 1st Octet Binary | 1st Octet Decimal | Default Mask | Network Bits / Host Bits | Total Networks | Usable Hosts / Network |
|---|---|---|---|---|---|---|---|
| A | 0 | 00000001 - 01111110 | 1 - 126 | 255.0.0.0 (/8) | 8 / 24 | 126 | 16,777,214 |
| B | 10 | 10000000 - 10111111 | 128 - 191 | 255.255.0.0 (/16) | 16 / 16 | 16,384 | 65,534 |
| C | 110 | 11000000 - 11011111 | 192 - 223 | 255.255.255.0 (/24) | 24 / 8 | 2,097,152 | 254 |
| D | 1110 | 11100000 - 11101111 | 224 - 239 | N/A (Multicast) | N/A | N/A | Multicast Groups |
| E | 1111 | 11110000 - 11111111 | 240 - 255 | N/A (Reserved) | N/A | N/A | Experimental |
Exam Tip: Notice that first octet values
0and127are omitted from the usable Class A range. The0.0.0.0/8special-purpose block must not be confused with the default route0.0.0.0/0, while network127.0.0.0/8is permanently dedicated to internal loopback testing.
RFC 1918 Private IPv4 Address Space
Because the global pool of 4.29 billion IPv4 addresses was depleting rapidly in the early 1990s, the IETF published RFC 1918 (Address Allocation for Private Internets). RFC 1918 set aside three distinct blocks of IPv4 addresses that cannot be routed over the public Internet.
Any enterprise, service provider, or home user may freely deploy RFC 1918 addresses internally without obtaining permission or registration from the Internet Assigned Numbers Authority (IANA) or Regional Internet Registries (RIRs). RFC 1918 addresses are not globally unique and must not be advertised as public Internet destinations. Routers can route them internally; correct boundary filtering is an operational policy, not an automatic property of the address bits.
The Three RFC 1918 Address Blocks
| RFC 1918 Block | Classful Parent | Subnet Prefix | Decimal Range | Total Addresses | Purpose |
|---|---|---|---|---|---|
| 24-bit block | Class A | 10.0.0.0/8 | 10.0.0.0 – 10.255.255.255 | 16,777,216 | Large enterprises, data centers, mobile core networks |
| 20-bit block | 16 Class B networks | 172.16.0.0/12 | 172.16.0.0 – 172.31.255.255 | 1,048,576 | Mid-sized enterprise campuses, service provider internal infrastructure |
| 16-bit block | 256 Class C networks | 192.168.0.0/16 | 192.168.0.0 – 192.168.255.255 | 65,536 | Small offices, residential broadband, management LANs |
Important Nuances Regarding the 172.16.0.0/12 Block
A frequent trap in networking examinations involves the exact boundary of the 172.16.0.0/12 private space:
- The private range extends from
172.16.0.0through172.31.255.255. - Addresses with first and second octets below
172.16(such as172.15.1.1) or above172.31(such as172.32.1.1or172.50.10.1) are outside that RFC 1918 block. This alone does not establish allocation, route advertisement, or reachability.
To connect devices operating with RFC 1918 private addresses to the public Internet, organizations deploy Network Address Translation (NAT) or Network Address Port Translation (NAPT) at the border router or firewall, translating private source IPs into globally routable public IPs.
Reserved and Special-Purpose IPv4 Addresses
Beyond RFC 1918 private spaces, TCP/IP specifications reserve several specialized address ranges with distinct operational behaviors:
1. Loopback Address Block (127.0.0.0/8)
- RFC Standard: RFC 1122.
- Range:
127.0.0.0to127.255.255.255. - Primary Address:
127.0.0.1(localhost). - Function: Packets addressed to
127.0.0.1never leave the local device and are not transmitted onto any physical network link. The host operating system intercepts the packet at the network layer and loops it back up the local TCP/IP stack. Network administrators useping 127.0.0.1to test local IP processing. This does not test the physical NIC, cable, switch, or remote path.
2. Link-Local / APIPA Block (169.254.0.0/16)
- RFC Standard: RFC 3927.
- Range:
169.254.0.0to169.254.255.255. - Function: Known as Automatic Private IP Addressing (APIPA) in operating systems like Microsoft Windows, link-local addressing allows a host to automatically assign itself an IP address when no static IP is configured and no Dynamic Host Configuration Protocol (DHCP) server responds on the local segment.
- Routing Boundary: Link-local traffic is strictly non-routable. Routers, including Nokia Service Routers, must never forward packets with source or destination addresses in the
169.254.0.0/16range across router interfaces.
3. Limited Broadcast Address (255.255.255.255)
- Binary Representation: All 32 bits set to
1(11111111.11111111.11111111.11111111). - Function: Represents the limited broadcast (also called local wire broadcast). When a host transmits a packet to
255.255.255.255, the packet is delivered to every active host on the local physical network segment. - Router Behavior: Routers block limited broadcast frames at Layer 3 boundaries. By default, a Nokia 7750 SR or 7705 SAR will never forward a packet addressed to
255.255.255.255out another interface, thereby preventing broadcast storms from traversing the wider network.
4. Directed Broadcast Address
- Structure: The host portion of the address has all bits set to binary
1within a specific subnet (for example,192.168.1.255in a/24network). - Function: Enables an off-subnet sender to transmit a packet that routers can route across intermediate hops until reaching the target destination subnet, where it is converted into a broadcast frame for all local hosts.
- Security: Modern routers disable forwarding of directed broadcasts by default to prevent Distributed Denial of Service (DDoS) reflection attacks (such as the historic Smurf attack).
5. Network Identifier (Network Address)
- Structure: The host portion of the address has all bits set to binary
0(for example,192.168.1.0in a/24network). - Function: Identifies the entire network or subnetwork. It represents the route prefix in router routing tables (RIB) and forwarding tables (FIB). It is not a host address in a conventional LAN subnet. RFC 3021 /31 point-to-point links and /32 host routes have different semantics.
6. Unspecified Address (0.0.0.0/8)
- Function: The address
0.0.0.0is used by a host that has not yet acquired an IP address during system bootstrap (for example, as the source IP address in a DHCP Discover packet). In router routing tables,0.0.0.0/0represents the default route (the gateway of last resort), matching all destination IP addresses not explicitly covered by more specific prefix entries.
Primary technical reference
Specification or Nokia manual, checked October 20, 2026. Examples are teaching scenarios, not captured router execution.
Which binary leading bit pattern and first octet decimal range identify a historical Class B IPv4 network?
Leading bits 10, decimal range 128.0.0.0 to 191.255.255.255
Leading bits 0, decimal range 1.0.0.0 to 126.255.255.255
Leading bits 110, decimal range 192.0.0.0 to 223.255.255.255
Leading bits 1110, decimal range 224.0.0.0 to 239.255.255.255
Which of the following IPv4 addresses belongs to the RFC 1918 private address space and is non-routable across the public Internet?
172.32.100.15
192.169.1.50
172.28.45.10
11.200.0.1
When configuring an IP address on a router interface in the 192.168.10.0/26 subnet, why can the address 192.168.10.63 not be assigned to a host device?
It is reserved for host internal loopback testing
It is an unroutable link-local APIPA automatic configuration address
It represents the network identifier for the subnet
It represents the directed broadcast address for the subnet
Sections you finish are checked off in the contents.