also @ TechSpot: Seven Intel P55 Motherboards Compared, Reviewed
Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Login to participate.

Go Back   TechSpot OpenBoards > TechSpot Community > The Meeting Spot - Chat & Socialize

How do Internet packets know where to go?

Reply
Bookmark Thread Tools
  #1  
Old 05-07-2009
TechSpot Member
 
Location: Southern Ontario
Member since: Apr 2007, 146 posts
How do Internet packets know where to go?

Here's an example to show what I mean:
Let's say you're planning a road trip from Los Angeles to Halifax, which is quite some distance. You look at a map and can see highways (connections) that intersect at cities (routers) and plan the shortest route through a certain set of cities.

Now, afaik nobody - not even Google - has completed a near-complete map of all the connections in the whole Internet, which change regularly anyway. How, then, do packets know where to go? Or, more precisely, how does one router know where to send it next?

Thanks,
Chris
Reply With Quote
  #2  
Old 05-07-2009
jobeard's Avatar
TechSpot Evangelist
 
Location: Southern Calif.
Member since: Apr 2005, 7,931 posts
The Internet, or more properly the TCP/IP transport layer that is relies upon,
is far more myopic than anyone would imagine.

Using the analogy of posting a letter to a friend who lives in Halifax,
you address the letter and drop it into the mail box. You know it goes first to
your local Post Office, but what routing does your letter take to finally arrive
at the Halifax Post Office and thence to your friend?

At the very bottom of TCP is the Network Interface Card (NIC) which has Your TCP address
(aka your street address in Los Angeles). It is given the address of your friend in Halifax and performs like this
send this where? I don't know anything about xxx, so I'll send it to someone (hopefully) who does; that is ALWAYS the default gateway address on the NIC.
This continues until some system somewhere has a routing table that says
AHH; xxx is located over here and forwards to that location.
Just like we have a Phone Book of Names and addresses (from the actual Phone company, or a Contact file on our system), we lookup JoeDoe to find the mailing address to write on the cover of the letter. Our systems use the Domain Name Service (DNS) to lookup the readable domainName.com in a URL or Email address and it replies with the Post Office address in Halifax; which is the IP address of the ISP that the server is running upon or which your friend has a connection to.

So a URL like www.google.com or email like user@google.com both ask the DNS,
'where is google.com' and get the IP address. Notice the www and user are stripped off at this point.
The address is returned and the 'letter' is sent to it (xxx above)

When the 'letter' arrives at xxx, the system sees the prefix www or user@ and repeats the DNS lookup (locally this time) for the system supporting www or that which supports email and --- the final system receives the 'letter'
Reply With Quote
To remove this ad, sign in. To register for a new account, click here.
  
  #3  
Old 05-18-2009
TechSpot Member
 
Location: Scotland,UK
Member since: May 2009, 54 posts
System specs
hi there

warriors of the net have an excellent, educational video to explain packet journeys

get it here

FREE for home / educational use

hope that helps
Reply With Quote
  #4  
Old 05-19-2009
Justin's Avatar
TechSpot Elite
 
Location: Oregon, USA
Member since: Apr 2002, 1,387 posts
System specs
http://en.wikipedia.org/wiki/Border_Gateway_Protocol

Everything you need to know about how the Internet knows where the Internet is!
Reply With Quote
Reply

Tip: Download Advanced SystemCare 3 Freeware - 1 Click A Day to Clean, Repair, Protect & Optimize your PC.

Thread Tools


Similar Topics
Topic Category Replies Last Post
Internet sending far more packets than receiving Virus & Malware removal 13 05-19-2009 09:52 AM
Packets stand for... Windows OS 3 05-27-2008 02:47 PM
Billions of packets sent Virus & Malware removal 3 04-21-2008 12:06 PM
Fragmented IP Packets? Virus & Malware removal 20 08-25-2007 04:21 PM
my internet is sending but not receiving packets Storage & Networking 6 08-12-2006 01:58 PM


All times are GMT -4. The time now is 01:06 AM.