Ask Experts Questions for FREE Help !
Ask
    baovle's Avatar
    baovle Posts: 19, Reputation: 1
    New Member
     
    #1

    Jun 4, 2008, 07:30 PM
    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
    Scleros's Avatar
    Scleros Posts: 2,165, Reputation: 262
    Hardware Expert
     
    #2

    Jun 4, 2008, 08:28 PM
    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.
    baovle's Avatar
    baovle Posts: 19, Reputation: 1
    New Member
     
    #3

    Jun 4, 2008, 09:00 PM
    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?
    Scleros's Avatar
    Scleros Posts: 2,165, Reputation: 262
    Hardware Expert
     
    #4

    Jun 4, 2008, 10:51 PM
    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 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 A lot.

    There 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.
    Scleros's Avatar
    Scleros Posts: 2,165, Reputation: 262
    Hardware Expert
     
    #5

    Jun 4, 2008, 10:57 PM
    For a dateless evening, snuggle up with Microsoft Windows Server 2003 TCP/IP Implementation Details for all the exciting specifics.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Matching up the correct capacitor with the correct condenser fan motor? [ 4 Answers ]

How crucial is it to match the right capacitor to the right condenser fan motor? If you have the wrong capacitor, can this cause the motor to stop after running for a while, say 20 or 40 minutes? It would start up again, but would allways stop. The specs for the motor are: Emerson E-line, model no...

Browser [ 2 Answers ]

Does anyone know how to disable your internet browser so it does not record the web sites you have visited?

Which is the best browser right now? [ 5 Answers ]

Hi everyone I want to know which browser have the best speed, organize, popup protection, and everything you can think of. Thanks


View more questions Search