Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    How to count number of connections needed for webpage to load?


    Hello,

    i have a webserver with higher number of websites and i seek for advice on how to discover how many HTTP / port 80 connections will be established from client to the webserver to load one average webpage.

    My firewall CSF needs to know it

    1) CONNLIMIT (concurrent connections limit)

    I assume it will be under 100 connectios per one IP per 80 port... But i dont need to know which number i should enter, but rather how to count right number myself based on websites i host. I use Firefox browser which has Dev tool with Network tab showing elements loaded. It shows 10 requests and 9 out of them is GET when loading google.com. Does it mean google page load eats 10 http connections?

    2) PORTFLOOD (connections limit per the interval)

    I assume for the 60 seconds interval, human will browse maximum at speed 1 page load per 5 second. So it is 12 page loads. But how much connections one load takes. How to count it exactly for particular webpage?

    Thank You
    https://zeronet.io - Open, free and uncensorable websites, using Bitcoin cryptography and BitTorrent network

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    14,038
    Generally, every graphic/video on a page takes a separate connection. Links only take another connection when clicked on. Also, remember that a lot of web pages have 1-pixel graphics images for tracking info. You need to closely analyze the page source code to determine how many real connections are going to be needed for each page.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    14,038
    Also, remember that basic algorithm - figure out how many resources you need (connections in your case), double that, and then double that again. You may then be ok.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  4. $spacer_open
    $spacer_close
  5. #4
    -->
    Quote Originally Posted by postcd View Post
    Hello,
    1) CONNLIMIT (concurrent connections limit)
    2) PORTFLOOD (connections limit per the interval)
    You can't get that numbers exactly to be sure because every static resource on your page hosted at your own server most likely require a separate connection, and those numbers will vary from page to page.
    If you're keeping apache logs you can analyze them for the starting numbers.

    And about portflood you can get connlimit for starting point I think.

    Anyway it will be not easy task without any simple questions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •