Computing.Net > Forums > Networking > Understanding NAT

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Understanding NAT

Reply to Message Icon

Name: njax01
Date: July 18, 2006 at 08:44:10 Pacific
OS: Windows 2000
CPU/Ram: 2.8GHZ/1gb
Product: Dell/Optliplex
Comment:

Hello,

I'm a newbie to networking and am having a hard time understanding something.

Each device on the Internet needs it's own unique IP address. Where I am working, we have several devices behind our firewall (about 400). My understanding from our network guys is that when a user goes out to the internet, NAT kicks in and masks the internal address with a "real" IP address.

If we have 400 devices going with the same firewall, wouldn't each device get the same "real" IP address? If so, doesnt that make duplicates on the Internet?

Thanks




Sponsored Link
Ads by Google

Response Number 1
Name: Curt R
Date: July 18, 2006 at 11:15:00 Pacific
Reply:

Essentially that's correct. All devices would show the same "real" IP as far as the outside world goes. That is to say, all devices behind the NAT have separate IP's internally, but as far as the internet is concerned, all the traffic comes from the one external IP address....not multiples of the same IP.

Basically what happens is, the device sends it's external request, NAT makes note of the devices LAN IP, sends out the request with the one IP address assigned to your external connection. When the reply comes back in, NAT directs it to the LAN IP the request originall came from.


0

Response Number 2
Name: njax01
Date: July 18, 2006 at 11:30:40 Pacific
Reply:

Thanks Curt..

Just one follow up..

If more than one device though..was accessing the Internet, wouldn't the Internet see multiple devices using the same IP? Or does NAT somehow do something so the INternet would not see the same address used multiple times at the same time?


0

Response Number 3
Name: Curt R
Date: July 18, 2006 at 15:19:32 Pacific
Reply:

NAT fixes it so all outbound traffic appears to be from the single IP (device) regardless of how many are actually accessing from behind the NAT.


0

Response Number 4
Name: njax01
Date: July 18, 2006 at 16:07:17 Pacific
Reply:

Thanks again Curt..it's clearer to me now. The only part of it that confuses me a little is how there isnt a problem when all devices appear to the Internet as coming from a single IP. I guess because of the "each device needs it's own IP" rule, it's a little confusing.


0

Response Number 5
Name: heropsycho2177
Date: July 18, 2006 at 23:38:35 Pacific
Reply:

I think what you're confused about is how does NAT know which computer to send various traffic back to.

For example, if I'm surfing cnn.com, and you're surfing yahoo.com at the same time behind the same nat, how does NAT know to send my traffic to me, and your traffic to you? Normally, IP addressing takes care of that.

In this case, NAT monitors connections by source and destination ports.

While normal web surfing is always pointed to a destination port of 80 unless specified otherwise, that doesn't change. However, your source port does.

Incidentally, this is also how you can surf multiple sites simultaneously on the same machine, and the right traffic goes to the right web browser window.

Please help survivors of Hurricane Katrina!

www.redcross.org


0

Related Posts

See More



Response Number 6
Name: Bikky
Date: July 19, 2006 at 03:39:37 Pacific
Reply:

What happens is imagine an ip as a block of flats, and each ip has 65535 ports (the individual flats)

so when traffic goes out from 192.168.0.10 it leaves the pc on say port 44450, the router/firewall then tags that port and ip address, then sends out to the internet on its own ip eg. 212.212.212.212 port 44450, when the far end replies it replies to the firewall/router's ip address specifying that port (44450), the next machine's packet might go out on 23452 say, so the reply is 212.212.212.212:23452, the NAT device then checks its lookup table and says oh yea 44450 goes to 192.168.0.10, and 23452 goes to 192.168.20.3.

Its a bit more complex than that but its a fairly good description. Just remember the IP address is a towerblock, and the port number is each flat inside it.

(we'll ignore the going up into the application level from here)


0

Response Number 7
Name: njax01
Date: July 19, 2006 at 06:02:12 Pacific
Reply:

Thanks a lot for the info!!


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Networking Forum Home


Sponsored links

Ads by Google


Results for: Understanding NAT

Internet With 2 PC's Withough ICS? www.computing.net/answers/networking/internet-with-2-pcs-withough-ics/25012.html

wamp server->cant connect to server www.computing.net/answers/networking/wamp-servercant-connect-to-server/34579.html

What is 1 to 1 NAT www.computing.net/answers/networking/what-is-1-to-1-nat/23045.html