Originally posted by: bwanaaa
the whole nat thing is getting confusing-
when i have multiple windows of multiple browsers open (as well as other internet using apps) all the packets get to the right place. When each app sends a packet it opens a uniques port, sends the packet and lisens for the replly. Even though the pc only has 1 ip address, all the apps are sending and getting data. So why do we need different ip addresses anyway in a small network?
To extend this stupid and imaginary line of thought, couldnt linksys have made a 4 port 'router' in the following way- give a hundred unique ports to each rj45 jack on the back of the 'router'
The reason why each app gets its information properly is because of TCP/IP, and IP MASQ
is what makes it work in a NAT'ed enironment. Here's a mini summary of what happens :
Computer A does a request to anandtech.com
- Computer A browser (IE) makes a request to the remote IP on port 80.
- The packet is coming from an RFC1918 address and from a random port about 1024
- This packet is sent to the default gateway which is for this example a Linksys router.
- The Linksys router takes note of the internal IP, and the src port of the packet.
- It then replaces the src IP with the public IP of the router, and sends the packet on
to the next hop.
- The server receives the request, and sends it back. Note that the web-server only saw
the public IP address, so that is where the packet will be headed. The packet is returned
to the source port that made the request.
- Once the Linksys box receives the packet, it changes the packet headers again so that
destination machine is on the internal LAN. Keeping the destination port the same as the
source port that made the original request.
- Computer A receives the packet, and sends the appropriate packet data to the
application that made the original request on the destination port.
Hope that makes sense, and that if I got anything wrong, that someone will correct me

As you can see, the IP MASQing takes effect when the Linksys box rewrites the packet header information changing the source ip address of the packet. For small networks, NAT
is definitely the way to go in many situations.
Not sure what you are saying about the Router with a 100 ports in it though