Network Address Translation�and DHCP
Enterprise Network 101 Workshop
Network Address Translation
• NAT has become a commonly used technique for prolonging the
use of IPv4 on today’s Internet
– Originally designed as a means of allowing isolated networks to connect to Internet without renumbering into public IP address space
Network Address Translation
• NAT is translation of one IP address into another IP address
• NAPT (Network Address & Port Translation) translates multiple IP
addresses into one other IP address
– TCP/UDP port distinguishes different packet flows
• NAT-PT (NAT – Protocol Translation) is a particular technology
which does protocol translation (v4 to v6) in addition to address
translation
– NAT-PT is has long been made obsolete by the IETF
Carrier Grade NAT (CGN)
• Service Provider version of subscriber NAT
– Subscriber NAT can handle only hundreds of translations
– ISP NAT can handle millions of translations
– Expensive high-performance hardware
• Not limited to just translation within one address family, but does
address family translation as well
• Sometimes referred to as Large Scale NAT (LSN)
How NAPT works
• NAPT allows mapping of multiple internal addresses to one
external address.
– Each TCP or UDP session is mapped to one TCP or UDP port of an
external address
– There are ~64000 unprivileged TCP and UDP ports
– Typical end user device consumes ~400 TCP and UDP ports at any one time
– Which allows around 150 end user devices per public IP address
• One /29 would allow only 900 simultaneous fully active end user
devices
Avoid multiple layers of NAT!
DHCP
DHCP (Dynamic Host Configuration Protocol)
DHCP DORA Process
DHCP DORA Process
DHCP DORA Process
QUESTIONS?