Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Networking   »   How does a browser receive the correct response back?

 
Thread Tools Display Modes
Question
 
 
#1  
Old Jun 4, 2008, 07:30 PM
baovle
New Member
baovle is offline
 
Join Date: Apr 2008
Posts: 8
baovle See this member's comment history on his/her Profile page.
How does a browser receive the correct response back?

Hi,

I have 2 browsers openned and each one access a different web site. When browser #1make a request to a website, how does the response from that website know to go back to browser #1 instead of browser #2? What makes that connection possible that a browser gets what it asks for?

Thanks,
Bao

Reply With Quote
 
     

Answers
 
 
Old Jun 4, 2008, 08:28 PM   #2  
Hardware Expert
Scleros is offline
 
Join Date: Feb 2007
Location: Virginia USA
Posts: 974
Scleros See this member's comment history on his/her Profile page.
When browser one makes a request a tcp/ip connection is created on a random port number. When browser two makes a request, another connection is created on a different port number. So for example, browser one will have a connection from local port 2300 to web server one port 80 (http) and browser two will have a connection from local port 2301 to web server two port 80. Each connection will be a distinct communication channel for each browser and generally do not remain active for the entire browsing session but are opened/closed per request.
  Reply With Quote
 
     
 
 
Old Jun 4, 2008, 09:00 PM   #3  
New Member
baovle is offline
 
Join Date: Apr 2008
Posts: 8
baovle See this member's comment history on his/her Profile page.
So what I see is a tcp/ip connection is a disctinct communication channel made up of the source ip (my machine) + the local port number (browser session), correct?

My machine has only one NIC (network interface card) so how many local port numbers can it create concurrently and hence how many browser sessions can I have openned at once?
  Reply With Quote
 
     
 
 
Old Jun 4, 2008, 10:51 PM   #4  
Hardware Expert
Scleros is offline
 
Join Date: Feb 2007
Location: Virginia USA
Posts: 974
Scleros See this member's comment history on his/her Profile page.
Quote:
Originally Posted by baovle
So what I see is a tcp/ip connection is a disctinct communication channel made up of the source ip (my machine) + the local port number (browser session), correct?
Essentially, your computer sends packets from a source ip/port combination to a server (usually fixed ip/fixed port) and the server replies back to the same ip/port. Perhaps thinking of it as a conversation with fixed endpoints, instead of a "channel" is more appropriate.

Quote:
Originally Posted by baovle
...so how many local port numbers can it create concurrently and hence how many browser sessions can I have openned at once?
A port is a 16 bit number. 2^16 = 65536 ports numbered 0 - 65535. Ports 0-1023 are reserved by IANA (See http://www.iana.org/assignments/port-numbers). The balance are free for use. I don't recall the specifics of Windows port allocation scheme without researching the resource kits or knowledgebase, it's probably less than 65536-1024 and available memory overhead for maintaining the connection in the tcp/ip stack would come into play at some point too, but the answer is ALOT.

Their are also UDP ports. See TCP and UDP Ports Explained.

You can issue "netstat -a" or "netstat -n" at a command prompt in Windows to see active ports.

The ip address/port number the server actually replies to will be different from your local machine ip/port too if your router does any NATing and you use private LAN addressing.

Comments on this post
baovle agrees: Thanks for a thorough explaination
  Reply With Quote
 
     
 
 
Old Jun 4, 2008, 10:57 PM   #5  
Hardware Expert
Scleros is offline
 
Join Date: Feb 2007
Location: Virginia USA
Posts: 974
Scleros See this member's comment history on his/her Profile page.
For a dateless evening, snuggle up with Microsoft Windows Server 2003 TCP/IP Implementation Details for all the exciting specifics.
  Reply With Quote
 
     

Bookmarks


Thread Tools
Display Modes

 
Similar Sponsors

Similar Threads
Question Asker Forum Answers Last Post
browser Concretelycan Internet & the Web 2 Jun 4, 2008 07:52 PM
Which is the best browser right now? Sunnywootxp Internet & the Web 5 May 11, 2008 10:32 PM
echoing response- i want to make sure i'm correct banjoplayer Accounting 0 Apr 18, 2008 06:06 PM
matching up the correct capacitor with the correct condenser fan motor? DGFL Heating & Air Conditioning 1 Aug 9, 2007 12:04 PM
Web Browser grannyburger Internet & the Web 0 May 22, 2007 01:31 PM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 10:31 PM.