How does this work ? - ResellerRatings Store Ratings
Comparison shop, read reviews, find savings, at ResellerRatings.com.
Comparison shop, read reviews, find savings, at ResellerRatings.com.
Comparison shop, read reviews, find savings.
What are you shopping for?
Digital Cameras Plasma and LCD
HDTv's iPods and Other
MP3 Players PC Laptops Camcorders

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 05-29-2002, 02:58 PM   #1 (permalink)
Registered User
 
Join Date: Oct 2001
Location: Houston
Posts: 307
Armadel is on a distinguished road
How does this work ?

Could someone explain to me how this works.

I have 2 PCs at home connected to a linksys router, which is connected to a cable modem.

The I/P addresses of the PCs are 192.168.2.1 and 192.168.2.2, and the I/P address of the cable modem is something like
24.xx.yy.zz. I know that the address get translated when going out but how does it work with incoming.

So my question is, how does the router keep the incoming packets straight ?
For the sake of illustration say that one PC is doing Google searches and one is playing Everquest.
The packets coming back will need to be routed to the correct PC. We can't have Google searches
popping up in the middle of a dungeon raid, now can we .

thanks

Armadel is offline   Reply With Quote
Old 05-29-2002, 03:05 PM   #2 (permalink)
Registered User
 
Imanage's Avatar
 
Join Date: Oct 2001
Location: New York, New York
Posts: 254
Imanage is on a distinguished road
http://www.howstuffworks.com/category.htm?cat=Netw

Please look under NAT or network address translation. Good site for a quick answer on most anything you've ever wondered about.
Imanage is offline   Reply With Quote
Old 05-29-2002, 03:19 PM   #3 (permalink)
Registered User
 
DVNT1's Avatar
 
Join Date: Oct 2001
Location: Ohio
Posts: 5,577
DVNT1 is on a distinguished road
The key part from Imanage's excellent link...
Quote:
Here's how dynamic NAT works:
*An internal network (stub domain) has been set up with IP addresses that were not specifically allocated to that company by IANA (Internet Assigned Numbers Authority), the global authority that hands out IP addresses. These addresses should be considered non-routable since they are not unique.
* The company sets up a NAT-enabled router. The router has a range of unique IP addresses given to the company by IANA.
* A computer on the stub domain attempts to connect to a computer outside the network, such as a Web server.
* The router receives the packet from the computer on the stub domain.
* The router saves the computer's non-routable IP address to an address translation table. The router replaces the sending computer's non-routable IP address with the first available IP address out of the range of unique IP addresses. The translation table now has a mapping of the computer's non-routable IP address matched with the one of the unique IP addresses.
* When a packet comes back from the destination computer, the router checks the destination address on the packet. It then looks in the address translation table to see which computer on the stub domain the packet belongs to. It changes the destination address to the one saved in the address translation table and sends it to that computer. If it doesn't find a match in the table, it drops the packet.
* The computer receives the packet from the router. The process repeats as long as the computer is communicating with the external system.
DVNT1 is offline   Reply With Quote
Old 05-29-2002, 03:24 PM   #4 (permalink)
Registered User
 
Epyon9283's Avatar
 
Join Date: Mar 2002
Location: South Brunswick, NJ, USA
Posts: 783
Epyon9283 is on a distinguished road
Send a message via ICQ to Epyon9283 Send a message via AIM to Epyon9283 Send a message via Yahoo to Epyon9283
Its magic.
Epyon9283 is offline   Reply With Quote
Old 05-29-2002, 03:49 PM   #5 (permalink)
Registered User
 
Imanage's Avatar
 
Join Date: Oct 2001
Location: New York, New York
Posts: 254
Imanage is on a distinguished road
For us geniuses, a picture is worth a thousand words...
Imanage is offline   Reply With Quote
Old 05-29-2002, 04:56 PM   #6 (permalink)
Guest
 
Posts: n/a
the router uses the 192.168.1.* numbers to direct the information to the right computers using NAT technology like Imanage link explains

simple stuff
  Reply With Quote
Old 05-30-2002, 07:03 AM   #7 (permalink)
Registered User
 
Join Date: Oct 2001
Location: Houston
Posts: 307
Armadel is on a distinguished road
So that's how it works.

I understand fully how the router keeps a cross reference of
"stub" I/P addresses to "real" I/P addresses.
My initial confusion was because I thought my ISP was only issuing me one I/P address, hence the router would not know which way to redirect it.
My ISP must be issuing multiple I/P addresses for this scheme to work.

*gulps*, that means they have a means to see that I am in fact using more than one I/P address, yet am only paying for one.

Should I worry ?
Armadel is offline   Reply With Quote
Old 05-30-2002, 07:18 AM   #8 (permalink)
Registered User
 
DVNT1's Avatar
 
Join Date: Oct 2001
Location: Ohio
Posts: 5,577
DVNT1 is on a distinguished road
If you only use a typical broadband router and it is connected directly to the cable modem then you are only using one IP address.

I say typical broadband router because those do not work with more than one public IP address. Router that will usually cost more money than just a couple hundred dollars (USD).


The router does know where to direct traffic because of port mapping and the cross reference table it keeps.
DVNT1 is offline   Reply With Quote
Old 05-30-2002, 07:27 AM   #9 (permalink)
Registered User
 
Join Date: Oct 2001
Location: Houston
Posts: 307
Armadel is on a distinguished road
Hmmmm,

that shoots my understanding in the head then.
If I follow it correctly, within the router, there is a translation table that goes something like this.
All numbers are fictious

ISP only assigns one I/P address
192.168.2.1(PC1) equates to 24.25.26.27 (ISP assigned)
192.168.2.2(PC2) equates to 24.25.26.27 (ISP assigned)

So on the return trip, how does the router send the packet to the
correct PC given that 24.25.26.27 might have multiple
equivalences ?

If the ISP were to assign multiple I/P address like this,
192.168.2.1(PC1) equates to 24.25.26.27 (ISP assigned)
192.168.2.2(PC2) equates to 24.25.26.28 (ISP assigned)
then I could see how it works.

I love computers.
Armadel is offline   Reply With Quote
Old 05-30-2002, 07:40 AM   #10 (permalink)
Registered User
 
DVNT1's Avatar
 
Join Date: Oct 2001
Location: Ohio
Posts: 5,577
DVNT1 is on a distinguished road
Re: Hmmmm,

Quote:
Originally posted by Armadel
...ISP only assigns one I/P address
192.168.2.1(PC1) equates to 24.25.26.27 (ISP assigned)
192.168.2.2(PC2) equates to 24.25.26.27 (ISP assigned)

If the ISP were to assign multiple I/P address like this,
192.168.2.1(PC1) equates to 24.25.26.27 (ISP assigned)
192.168.2.2(PC2) equates to 24.25.26.28 (ISP assigned)

Your first example is called "dynamic" NAT. The second is called "static" NAT.

How dynamic NAT works, is pointed out in my first reply. You may need to re-read it a few times because it may initially sound like Static NAT which you already understand.
DVNT1 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Most Active Discussions
Cyberpowerpc.com Any Good? (10)

Recent Discussions
Cyberpowerpc.com Any Good? (10)
Like New Wacom 12x19 Intuos 3 +.. (1)
For Sale BFG GTX285 OC2 with 10.. (2)
www.szprice.com - any experienc.. (1)
Games, Cables, PCI cards, and m.. (5)
Buymoreshopping.com? Wigix.com (3)
I want your old/new unused pc p.. (6)
:mad: Spam At-hon (3)
Fall-Winter Cleaning Sale (1)
DON'T BUY.COM Advisory (232)
Is certifiedwatchstore.com legi.. (1)
Beware of used XBOX 360's (12)
Cheap Used Computers (0)
Reputation: Establishing Trust .. (0)
Are the sites like this for rea.. (3)

All times are GMT -6. The time now is 09:12 PM.