2013-08-21, 03:26 PM
YOU: Hey network.
NETWORK: Sup bro.
YOU: I'm a new node on your network.
NETWORK: Hey, DHCP, wake up.
DHCP: Oh, hi.
NETWORK: Give this node an IP address
DHCP: Sure. It's 192.168.1.123 (DHCP uses NAT to figure out IP addresses. Your node has a private IP address. Your network has a public IP address with the world)
NETWORK: Your IP address is 192.168.1.123.
YOU: Thanks.
YOU: I want to connect to Southperry.net.
NETWORK: We need an internet connection.
NETWORK: Hey, Modem, Wake up.
MODEM: Wazzup brah.
NETWORK: Connect to Southperry.net
MODEM: Sure.
MODEM: Hey, Comcast.
COMCAST: Sup.
MODEM: What is my public IP? (EDITOR: This is a dynamic IP address. Comcast gives it to you.)
COMCAST: For the next 6 hours, your public IP is guaranteed to be WW.XX.YY.ZZ. Check back with me in six hours.
MODEM: What IP address is for Southperry.net? (EDITOR: This is DNS)
COMCAST: I have a non-authoritative answer for 198.96.94.120.
MODEM: I want to connect to that IP on Port 80.
SOUTHPERRY: Oh, hi - redirect to portage.php.
MODEM: Okay.
SOUTHPERRY: Here's your page.
MODEM: Hey, network. I have a page here for you. You figure out where it goes.
NETWORK: Uhhh, I have a webpage for 192.168.1.123? Who is that? (EDITOR: This is NAT)
YOU: Me me me!
NETWORK: Here's your webpage brah.
YOU: Thanks.
In a nutshell:
DHCP - Assigns IP addresses to new nodes on a network.
DNS - Translates names (Southperry.net) to IP addresses (198.96.94.120)
NAT - Assists with DHCP in routing information on the private network. Also assists with moving packets. If you've ever used port forwarding, you are changing the NAT table
NETWORK: Sup bro.
YOU: I'm a new node on your network.
NETWORK: Hey, DHCP, wake up.
DHCP: Oh, hi.
NETWORK: Give this node an IP address
DHCP: Sure. It's 192.168.1.123 (DHCP uses NAT to figure out IP addresses. Your node has a private IP address. Your network has a public IP address with the world)
NETWORK: Your IP address is 192.168.1.123.
YOU: Thanks.
YOU: I want to connect to Southperry.net.
NETWORK: We need an internet connection.
NETWORK: Hey, Modem, Wake up.
MODEM: Wazzup brah.
NETWORK: Connect to Southperry.net
MODEM: Sure.
MODEM: Hey, Comcast.
COMCAST: Sup.
MODEM: What is my public IP? (EDITOR: This is a dynamic IP address. Comcast gives it to you.)
COMCAST: For the next 6 hours, your public IP is guaranteed to be WW.XX.YY.ZZ. Check back with me in six hours.
MODEM: What IP address is for Southperry.net? (EDITOR: This is DNS)
COMCAST: I have a non-authoritative answer for 198.96.94.120.
MODEM: I want to connect to that IP on Port 80.
SOUTHPERRY: Oh, hi - redirect to portage.php.
MODEM: Okay.
SOUTHPERRY: Here's your page.
MODEM: Hey, network. I have a page here for you. You figure out where it goes.
NETWORK: Uhhh, I have a webpage for 192.168.1.123? Who is that? (EDITOR: This is NAT)
YOU: Me me me!
NETWORK: Here's your webpage brah.
YOU: Thanks.
In a nutshell:
DHCP - Assigns IP addresses to new nodes on a network.
DNS - Translates names (Southperry.net) to IP addresses (198.96.94.120)
NAT - Assists with DHCP in routing information on the private network. Also assists with moving packets. If you've ever used port forwarding, you are changing the NAT table
