MAC address vs IP address: What’s the difference?
MAC address vs IP address: One is a unique hardware identifier, while the other identifies a device's network connection. Learn more with BlueCat.
Read moreNetwork Address Translation (NAT) is an addressing method that remaps IP address spaces by rewriting packet headers as traffic passes through routers or firewalls, enabling multiple private hosts to share public IPv4 addresses and conserving limited IPv4 space. NAT operates at Layer 3 (and Layer 4 for port translation) by maintaining translation tables that map internal addresses and ports to external ones, with Port Address Translation (PAT) being the most common form, allowing thousands of hosts to share a single public address. While NAT solved IPv4 address exhaustion and provides incidental connection filtering, it introduces operational challenges including state management, source attribution loss, protocol incompatibilities, and complexity in merged networks, though IPv6's vastly larger address space eliminates the primary driver for NAT adoption.
A NAT device sits between two address realms, commonly a private internal network and the public internet. It keeps a translation table that maps internal connections to external addresses and ports.
Port address translation, also called NAT overload, is the most common form and allows thousands of internal hosts to share one public address. Static NAT maps one internal address to one external address, which suits inbound access to servers. Unsolicited inbound traffic has no table entry, so it is dropped unless a static mapping or port forward exists. Some protocols embed addresses in their payloads and need an application-layer helper to work through NAT.
A single public address has a limited pool of source ports, so a busy client or proxy can use them all. New connections then fail or stall intermittently, often during peak load, while existing sessions keep working.
Protocols that carry IP addresses or ports inside the payload can fail when only the headers are rewritten. Some voice, video and file transfer sessions connect but carry no media or data unless the NAT device has an application-level helper or the endpoints use traversal techniques.
Internet-facing logs show only the translated address, so many users appear as one. Investigators cannot trace an event to a host unless translation logs with timestamps and ports are kept and correlated.
Internal clients that reach a server through its public address may fail when the NAT device cannot loop the traffic back inside. Symptoms are services that work from the internet but time out from the internal network, and a common workaround is split-horizon DNS.
Merging networks that both use the same private range, often after an acquisition, causes routing conflicts. Teams add double NAT or translation between the realms, which complicates troubleshooting and DNS records.