Course overviewTopic 13 / 31
Computer Networks • Deep Lesson 12 min Network Layer: IP & Routing

NAT, Private Addressing & Why IPv6 Exists

Network Address Translation lets many private hosts share public IPv4 addresses by rewriting address/port information at a translation boundary. NAT became operationally important because public IPv4 addresses are scarce, but it also changes end-to-end connectivity assumptions. IPv6 restores a much larger address space and supports simpler globally unique addressing, while still requiring firewalls and careful policy.

LEARNING LOOPWatch→Read→Inspect→Retrieve→Teach back
NAT, Private Addressing & Why IPv6 Exists
Week 2–3 · Topic 13 / 31
Visual model

Watch the structure first. Then read the technical details.

10.0.0.24:51514
NAT 198.51.100.7:40001
203.0.113.10:443
Article companion· Week 2–3

Network Address Translation lets many private hosts share public IPv4 addresses by rewriting address/port information at a translation boundary. NAT became operationally important because public IPv4 addresses are scarce, but it also changes end-to-end connectivity assumptions. IPv6 restores a much larger address space and supports simpler globally unique addressing, while still requiring firewalls and careful policy.

01

Private IPv4 ranges

RFC 1918 defines 10/8, 172.16/12 and 192.168/16 for private IPv4 use. These are not globally routable addresses on the public Internet.

02

PAT/NAPT

In common home routers, many internal connections share one public IPv4 address by translating both addresses and transport ports, maintaining a state table for return traffic.

03

IPv6 is more than 'more addresses'

IPv6 expands addressing, changes header behavior, uses Neighbor Discovery instead of ARP, and supports different operational models. NAT is not the primary mechanism for IPv6 address conservation.

DUAL CODING

See the mechanism before you memorize it

One diagram, one causal story, one reconstruction task.

VISUAL RECONSTRUCTION

NAT, private ranges, and why IPv6 exists — causal map

4 stages
01

Private host

10.0.0.24:51514 opens a connection.

02

NAT gateway

Rewrites source to public-ip:40001 and records the mapping.

03

Internet

Remote server sees the public tuple, not the private address.

04

Reply

The NAT table maps the response back to the internal host.

Trace the mechanism from left to right. On smaller screens, follow the numbered sequence. Then redraw the same flow without looking.
ACTIVE RECONSTRUCTION

Draw the idea yourself

Rebuild the core flow on a real canvas before moving to the worked walkthrough.

SKETCHFLOW

NAT, private ranges, and why IPv6 exists — practice canvas

Sketch the NAT, private ranges, and why IPv6 exists mechanism from memory. Label the input, transformation, observation, and transfer.

Practice canvas ready

The canvas loads when you reach this section.

Draw first. Compare second.Touch + mouse friendly
STEP BY STEP

Walk the system

01

Private host

10.0.0.24:51514 opens a connection.

02

NAT gateway

Rewrites source to public-ip:40001 and records the mapping.

03

Internet

Remote server sees the public tuple, not the private address.

04

Reply

The NAT table maps the response back to the internal host.

05

IPv6 contrast

A globally routable IPv6 address can exist without requiring address translation for scarcity.

CONCRETE ARTIFACT

Translation state

The translation table behaves like a temporary correspondence between internal and external flow identifiers.

textcopy → rebuild → modify
inside: 10.0.0.24:51514
outside: 198.51.100.7:40001
remote: 203.0.113.10:443
MISCONCEPTIONS

What usually goes wrong

Say NAT is exactly the same thing as a firewall.

Say private IP addresses can be routed across the public Internet unchanged.

Assume IPv6 makes security automatic; security policy is still required.

RETRIEVAL PRACTICE

Close the tab. Rebuild it from memory.

Read the question, answer aloud, then reveal.

Why can NAT break inbound connections?Reveal answer

If no existing translation state or explicit port-forwarding rule maps an unsolicited inbound packet to an internal host, the gateway does not know where to send it.

What problem did NAT help address?Reveal answer

IPv4 address scarcity and the ability to connect many private hosts through fewer public addresses.

What replaces ARP in IPv6?Reveal answer

Neighbor Discovery Protocol, which uses ICMPv6.

FEYNMAN

Teach it back in plain English

Explain NAT as a state machine, not a magic 'private-to-public' button. Draw one outbound flow and one unsolicited inbound flow.

EXAM / INTERVIEW

What a strong answer sounds like

Exam questions often compare private/public addressing, NAT/PAT behavior, IPv4 exhaustion and IPv6 features.

NEXT CONNECTION

Make this idea travel.

Connect it next to: routing-protocols • dns • firewalls-vpn-proxies.

COURSE CONTENTS

NAT, private ranges, and why IPv6 exists

01How the Internet Works + OSI ModelWeek 1 · 4 topics0/4
02Physical & Data Link LayersWeek 1–2 · 5 topics0/5
03Network Layer: IP & RoutingWeek 2–3 · 6 topics0/6
04Transport Layer: TCP & UDPWeek 3–4 · 5 topics0/5
05Application Layer: HTTP, DNS & FriendsWeek 4–5 · 6 topics0/6
06Security & Troubleshooting ToolkitWeek 5 · 5 topics0/5