Network Address Translation (NAT) : Scott Rixner
Network Address Translation (NAT) : Scott Rixner
Translation (NAT)
Scott Rixner
Review: Private IPv4 Addressing
Not routable on public internet
No chance of conflict with a valid public IP
Why do I want private addresses?
Not every printer / fax machine / IPod / etc. needs to
be publicly accessible from the Internet
Useful for local collections of computers not
connected to internet
Name IP address range Number of IPs
24-bit block 10.0.0.0 – 10.255.255.255 16,777,216
20-bit block 172.16.0.0 – 172.31.255.255 1,048,576
16-bit block 192.168.0.0 – 192.168.255.255 65,536
TCP UDP
Network A Network B
Multiple computers trying to Traffic from network A
access network B appears with addresses in
Don’t want to reveal Network B’s space
network A’s structure to May be mapped as single
network B or multiple addresses
Public Network
different external IP 213.18.15.111
192.168.32.12
PC 2 NAT
213.18.15.112
Static PC 3
192.168.32.15
Internal IP is always
mapped to same NAT Mapping Table: Static or Dynamic
External IP Internal IP External IP
192.168.32.10 213.18.15.116
Dynamic / Pooled 192.168.32.12 213.18.15.112
Internet
128.42.218.97
192.168.32.10 213.18.15.116
Packet PC 1 NAT PC 2
A B C X Y Z
… …
… …
Internet
128.42.218.97
192.168.32.10 213.18.15.116
PC 1 NAT PC 2 Packet
A B C X Y Z
… …
… …
Internet
128.42.218.97
192.168.32.10 213.18.15.116
PC 1 NAT PC 2 Packet
A B C Z
… …
… …
Public Network
mapped to one (or a 192.168.32.12 213.18.15.116
Port 1831 Port 1502
few) external IPs PC 2 NAT
192.168.32.15 213.18.15.116
TCP/UDP port number PC 3
Port 1200 Port 1503
Internal Network
Network Systems Architecture 15
NAT/PAT – Protocol Problems
PAT Fails: Protocols that require incoming connections
Example: FTP Active Mode
Client sends request
Server attempts to open new connection back to client to send data
No entry in PAT table so connection is rejected
Example: SIP / RTP (VOIP telecommunication)
Student PC
Student PC
68.7.230.x
10.101.23.x
Rice
(Private) (Private) NAT
My PC 1
My PC 2
192.168.20.x My
PAT 10.101.23.245
My PC 3