Lesson 04Layer 3 · Network
NAT: Sharing a Public Address
Follow a connection as a router translates its source address and port, keeps a mapping, then uses that state to deliver the reply to the right device.
- Layer
- Network edge · IPv4
- Reference
- RFC 3022
- Steps
- 4
NETLEARN · your study buddy
Net · guide
Hi! I’m Net, your guide today. We’ll look at NAT: Sharing a Public Address in the IP & Routing: Finding the Way module.
how it works
tap Net · advance one step⟲ button · start overEnter · open the full explanation
legendrequestresponsemessage in flight
Common misunderstandings
- NAT is address/port translation with state, not encryption and not a replacement for a firewall.
- NAT is common in IPv4 networks but is not performed by every router or on every packet path.
Key notes
- PAT / NAPT
- Port translation lets many private flows share one public IPv4 address; implementations differ.
- Inbound traffic
- An unsolicited inbound connection usually has no mapping to identify an internal device; port forwarding or another mechanism is needed.
- IPv6
- IPv6's large address space reduces the need for address sharing, though firewalls and other translation designs still exist.
