1 IPv4 (Part III) รศ. ดร. อนันต์ ผลเพิ่ม Asso. Prof. Anan Phonphoem, Ph.D. Computer Engineering Department Kasetsart University, Bangkok, Thailand Dec 2011
2 Outline IP Fundamental Operation Internet Protocol Addressing Supporting Protocol ARP ICMP: ping + traceroute NAT DHCP
3 Network Address Translation (NAT)
4 Private Network Good practice to use private address Map local addresses to (real) public IP address(es) Security (not expose internal details) Alleviate IP depletion
5 Private IP address ClassRFC 1918CIDR prefix A – /8 B – /12 C – /16
6 NAT Operates at the border of a stub network
7 NAT
8 ADSL Router WLAN ADSL Router ADSL Connection ADSL Modem Internet ISP Telephone Line ADSL Modem ADSL Modem
9 Configure NAT Static Translation Dynamic Translation
10 Static Translation
Example 11
12 Dynamic Translation
13 PAT: Port Address Translation (Overloaded NAT)
14 PAT
15 Disadvantages of NAT Delay Loss of end-to-end ability Might not work with some applications
16 Bootstrap Protocol (BOOTP)
17 BOOTP Diskless terminal Discover its own IP address Download executable image file Small program built in chip BOOTH and TFTP Application Protocol Encapsulated in IP and UDP
18 BOOTP packet format
19 Operation
20 Dynamic Host Configuration Protocol (DHCP)
21 DHCP BOOTP Enhancement Same message structure as BOOTP Can choose among many DHCP servers
22 DHCP packet
23 Operation
24 DHCP Message
25 DHCP transition diagram
26 DHCP Relay
27 DHCP Relay
28 Summary IP Fundamental Operation Internet Protocol Addressing Supporting Protocol ARP ICMP: ping + traceroute NAT DHCP