Join our Newsletter — 33% off our NHI Course

How does IPv4 work?

IPv4 works by addressing devices with 32-bit numbers and forwarding packets across networks using routers and subnetting. Each packet carries source and destination addresses, and routers choose the next hop. Defenders should monitor address allocation, NAT use, routing changes, and exposure from public IP ranges that should remain internal or restricted.

How IPv4 addresses fit into packet delivery

IPv4 is the Internet Protocol version that gives every interface a 32-bit address space and a standard way to label packets for delivery. Its job is not to guarantee delivery, but to make forwarding possible across many independent networks. That is why IPv4 is often described as connectionless and best effort: the network moves packets, while higher layers handle reliability.

In practice, the address is only part of the story. An IPv4 packet also carries source and destination information, plus fields that help routers forward it and detect fragmentation issues. The destination address tells the network where the packet should go next, while the source address identifies where the traffic came from and is used for return traffic and filtering decisions.

Subnetting is what makes the 32-bit space usable at scale. A network prefix separates the local network portion from the host portion, so devices can tell whether a destination is on the same subnet or must be sent to a router. That local versus remote decision is central to how IPv4 traffic moves efficiently without every device needing a route to every other device.

Routing, subnetting, and the role of NAT

Routers are the core forwarding devices in IPv4 networks. They examine the destination address, consult a routing table, and choose the next hop that gets the packet closer to its destination. This hop-by-hop process is why routing changes can affect reachability, latency, and the path traffic takes through internal and external networks.

Subnetting and routing work together. Subnetting defines which addresses belong to a broadcast domain or local segment, while routing connects those segments and moves traffic between them. In many environments, this is also where address summarization and network segmentation reduce routing table size and make administration more manageable.

NAT changes the practical behaviour of IPv4 by translating internal private addresses into one or more public addresses. It is often used to conserve address space and to hide internal addressing from the public Internet, but it does not remove the need for sound routing and filtering. NIST Cybersecurity Framework 2.0 is a useful reference for thinking about how address exposure, routing dependencies, and boundary controls fit into a broader network governance picture.

What defenders should watch when IPv4 is exposed

From a defender’s perspective, IPv4 creates risk when address allocation is inconsistent, routing is changed without control, or systems meant to stay internal become reachable from public IP space. The protocol itself is not the weakness, but its reachability model makes misconfiguration highly visible and immediately exploitable. That is especially true when public addressing, NAT exceptions, or route advertisements expand the attack surface unintentionally.

Failure mechanism: an incorrect subnet, stale route, permissive ACL, or NAT rule can place a sensitive service on an address path that operators assumed was internal only. Once that assumption fails, discovery and scanning become much easier for an attacker, and the exposure can spread across multiple hosts if the same pattern was repeated in other segments.

Impact: unintended IPv4 exposure can lead to unauthorized access attempts, service probing, data leakage, or the bypass of internal-only trust assumptions. Even without exploitation, unstable routing or poorly managed address space can create outages, asymmetric paths, and hard-to-diagnose connectivity failures that slow recovery and incident response.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0, NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST CSF 2.0 ID.AM-01 — Physical Devices and Systems Inventory IPv4 management depends on knowing what is addressed and reachable.
PR.AA-01 — Identity Management, Authentication, and Access Control IPv4 exposure is reduced by controlling which systems and users can reach services.
PR.IR-01 — Network Resilience Routing and subnet design directly affect reachability and recovery.
Recommendation — Maintain an accurate inventory of IPv4-exposed devices and systems. Enforce access control on IPv4-reachable services and interfaces. Design IPv4 routing and segmentation to preserve resilient connectivity.
NIST SP 800-53 Rev 5 AC-4 — Information Flow Enforcement IPv4 traffic needs policy enforcement at network boundaries and segments.
SC-7 — Boundary Protection Public IPv4 exposure is governed by boundary controls and routing paths.
CM-8 — System Component Inventory IPv4 address management requires an accurate view of reachable components.
Recommendation — Enforce information flow restrictions on IPv4 traffic paths. Protect IPv4 boundaries with routing, filtering, and segmentation controls. Keep an authoritative inventory of IPv4-addressed systems and interfaces.
CIS Controls v8 CIS-4 — Secure Configuration of Enterprise Assets and Software Misrouting and exposed IPv4 services often come from configuration drift.
CIS-12 — Network Infrastructure Management Routing, subnetting, and NAT are core network infrastructure controls.
Recommendation — Harden network and host configurations that affect IPv4 exposure. Manage IPv4 routing, NAT, and network topology changes under control.

Practitioner Guidance

What to verify: Confirm which IPv4 ranges are meant to be public, which are private, and which depend on NAT or routing exceptions to remain reachable. Review routing tables, ACLs, and firewall policy together, because each one can make a service reachable even when the others appear restrictive.

What to measure: Track address utilization, duplicate allocations, unexpected route changes, and new public exposure events. A clean inventory matters because IPv4 failures are often operational rather than protocol-level, and the first sign of trouble is frequently a change in reachability rather than an obvious alert.

Practitioner takeaway: Treat IPv4 as a forwarding system whose security depends on address discipline, route control, and exposure management, not just on the correctness of the protocol header itself.