IPv4

February 12, 2021
Update date: January 15, 2026
Internet Protocol version 4 (IPv4) is the fourth iteration of the Internet Protocol, serving as the foundational addressing system that enables devices to communicate across networks.

Definition and historical context

Deployed in Arpanet in 1983, IPv4 revolutionized digital communication by establishing a standardized method for identifying and routing data between connected devices.

Despite being over four decades old, IPv4 continues to route the majority of Internet traffic worldwide. Each IPv4 address consists of a 32-bit numerical identifier, typically displayed in dotted-decimal notation. A classic example is 192.168.1.1, commonly used for private network routers.

With approximately 4.3 billion possible addresses, IPv4’s address space initially seemed vast but has proven insufficient for the exponentially growing number of Internet-connected devices.

Components of an IPv4 address

IPv4 decryption

Every IPv4 address comprises distinct logical components that define network topology and device identification:

Network ID

The Network ID represents the unique identifier assigned to a specific network segment. This portion determines which class or subnet a device belongs to, enabling routers to efficiently direct traffic to the appropriate network.

Host ID

The Host ID distinguishes individual devices within the same network. While all devices on a network share an identical Network ID, each must possess a unique Host ID to prevent addressing conflicts and ensure proper packet delivery.

Subnetting

Subnetting divides larger networks into smaller, manageable segments, improving security and performance. This technique utilizes:

  • Subnet masks: Define the boundary between Network ID and Host ID (e.g., 255.255.255.0)
  • Prefix notation: Shorthand representation indicating network bits (/16, /24, /32)
Prefix
Subnet Mask
Available Hosts
/24
255.255.255.0
254
/16
255.255.0.0
65,534
/8
255.0.0.0
16,777,214

Properties and characteristics of IPv4

IPv4 possesses several technical attributes that define its operation:

Address structure: Each address consists of 32 bits, organized into four octets separated by dots. These numeric values range from 0 to 255 in each position.

Communication types:

  • Unicast: One-to-one communication between specific devices
  • Multicast: One-to-many transmission to subscriber groups
  • Broadcast: One-to-all messages within a network segment

Address assignment methods:

  • Manual (static) configuration for servers and network infrastructure
  • Dynamic Host Configuration Protocol (DHCP) for automatic assignment to client devices

Protocol headers: IPv4 packets contain 12 distinct header fields that manage routing, fragmentation, time-to-live parameters, and error checking.

Advantages and disadvantages of IPv4

Advantages

Initial scalability: IPv4’s design efficiently accommodated early Internet growth, supporting billions of simultaneous connections through hierarchical addressing and routing protocols.

Universal compatibility: Decades of widespread implementation ensure IPv4 functions seamlessly across virtually all networking hardware, operating systems, and applications. This ubiquity simplifies network deployment and troubleshooting.

Ease of configuration in large networks: Administrators can leverage established tools, extensive documentation, and proven methodologies for IPv4 network design, making it accessible even for complex enterprise environments.

Disadvantages

IPv4 address exhaustion: The finite pool of 4.3 billion addresses cannot accommodate the explosive proliferation of smartphones, IoT devices, and cloud services. Regional Internet registries have exhausted their available allocations.

Security limitations: IPv4 was designed before modern security threats existed. While IPsec can be implemented, encryption and authentication are optional rather than mandatory, leaving networks vulnerable to interception and spoofing attacks.

Complexity in managing large networks: As networks scale, IPv4’s address conservation techniques (like NAT) introduce additional layers of complexity, complicating troubleshooting, degrading performance for certain applications, and creating compatibility issues.

IPv4 exhaustion and transition to IPv6

The IPv4 address space officially reached exhaustion when the Internet Assigned Numbers Authority (IANA) allocated its final address blocks in 2011. Regional registries followed suit between 2011 and 2020, creating a critical shortage that threatens Internet expansion.

Temporary mitigation strategies have extended IPv4’s viability:

  • Network Address Translation (NAT): Allows multiple devices to share a single public IP address by translating private addresses
  • Carrier-Grade NAT (CG-NAT): Internet Service Providers implement large-scale NAT, enabling thousands of customers to share limited public address pools

While these solutions provide temporary relief, they introduce latency, complicate peer-to-peer applications, and cannot sustainably support long-term growth.

Progressive migration to IPv6 represents the permanent solution. IPv6 offers a vastly expanded address space (340 undecillion addresses), built-in security features, and simplified routing. Organizations should implement dual-stack configurations—running IPv4 and IPv6 simultaneously—to ensure seamless connectivity during the transition period.

Technical FAQ

What is the difference between IPv4 and IPv6?

The fundamental distinction lies in address capacity and architecture. IPv4’s 32-bit structure supports roughly 4.3 billion unique identifiers displayed in dotted-decimal notation (like 192.168.1.1), whereas IPv6’s 128-bit framework generates an astronomical 340 undecillion addresses using colon-separated hexadecimal groups. Beyond sheer volume, IPv6 integrates encryption and authentication natively, streamlines header design for faster packet processing, and removes dependency on address translation technologies that complicate IPv4 networks.

How many IPv4 addresses are there?

Mathematically, IPv4 generates 4,294,967,296 distinct addresses through its 32-bit binary structure. In practical terms, the usable public address pool is substantially smaller. Large ranges remain permanently allocated for specialized functions: three private address blocks (10.x.x.x, 172.16-31.x.x, and 192.168.x.x networks) serve internal networking, while additional reservations support diagnostic loopback operations, group messaging protocols, and future research initiatives.

How does subnetting work in IPv4?

Subnetting functions by reallocating bits traditionally assigned to host identification toward network segmentation instead. Administrators apply subnet masks as binary filters that separate the network portion from the host portion within each address. This technique transforms a single large network into multiple isolated broadcast domains, improving traffic management, strengthening access control between departments, and maximizing the utility of limited address allocations through hierarchical distribution.

What happens when IPv4 addresses run out?

IPv4 exhaustion forces organizations to rely on address sharing through NAT, purchase addresses on secondary markets at premium prices, or accelerate IPv6 adoption. New Internet services increasingly require IPv6 support, as obtaining fresh IPv4 allocations has become nearly impossible for most entities.