Alex Rivera | Logout

Do Web browsers use different port numbers for open tabs?

Asked 2011-07-09T04:49:41.123
27

I'm wondering how browsers internally works. Now, connecting to different Web sites using 'Tabs' within the same browser can be handled in one of two ways: 1 - Using threads 2 - Using Different Source Port Numbers for each open tab

I know there might not be a single answer for this question, and it might differ from one browser to another, however all responses are appreciated.

Thanks


Thanks for everyone.I really appreciate that. My question relates to the Source Port at the client side. I'm asking if the browser uses different source ports for each tab it opens, or the same source port for the entire process 'I mean window that includes different tabs', or the same source port for the entire windows?

Or, do web browsers use threads?

Edit
Report

1 Answer

10

A quick check using netstat (or sockstat on BSD machines) reveals that different source port numbers are used for different connections. In that regard, you are right.

Firefox uses at least one thread for each tab. Each thread could open multiple connections for different data (for example, loading images from a media server and content from the web server). Each connection should have its own source port.

answered 2011-07-09T04:58:25.520

Your Answer