The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Bandwidth Calculations

Discussion in 'General Discussion' started by JustinK, Oct 12, 2002.

  1. JustinK

    JustinK Well-Known Member

    Joined:
    Sep 4, 2001
    Messages:
    251
    Likes Received:
    0
    Trophy Points:
    16
    Read through the threads, but didn't find the answers to the questions users are asking me. Going to do some manual testing if no one knows the answer, but I thought I'd ask first just so I could answer the customers sooner.

    Bandwidth in WHM is calculated from FTP, POP3, and HTTP access (IMAP now too or no?) however my clients are starting to pick at those and want more exact answers as to what parts of those are calculated. Is it incoming traffic, outgoing traffic or both for FTP that's calculated? With popmail, is the bandwidth calculated when the mail arrives or just when it's downloaded (I assume just downloaded as receiving is more of an SMTP thing, but I'm just making sure here)?

    I appreciate any help answering those questions. :)
     
  2. mikerayner

    mikerayner Well-Known Member

    Joined:
    Apr 10, 2002
    Messages:
    192
    Likes Received:
    0
    Trophy Points:
    16
    There is a longer thread with similar topic &Bandwidth calculation&
    Please click on the link:
    http://forums.cpanel.net/read.php?TID=3259
     
  3. JustinK

    JustinK Well-Known Member

    Joined:
    Sep 4, 2001
    Messages:
    251
    Likes Received:
    0
    Trophy Points:
    16
    Read that and a couple other ones when I did a few searches, but it didn't contain the info the clients were looking for. Guess I'll just have to do some testing and see what happens.
     
  4. mikerayner

    mikerayner Well-Known Member

    Joined:
    Apr 10, 2002
    Messages:
    192
    Likes Received:
    0
    Trophy Points:
    16
    [quote:a61e20df9d][i:a61e20df9d]Originally posted by JustinK[/i:a61e20df9d]

    Read through the threads, but didn't find the answers to the questions users are asking me. Going to do some manual testing if no one knows the answer, but I thought I'd ask first just so I could answer the customers sooner.

    Bandwidth in WHM is calculated from FTP, POP3, and HTTP access (IMAP now too or no?) however my clients are starting to pick at those and want more exact answers as to what parts of those are calculated. Is it incoming traffic, outgoing traffic or both for FTP that's calculated? With popmail, is the bandwidth calculated when the mail arrives or just when it's downloaded (I assume just downloaded as receiving is more of an SMTP thing, but I'm just making sure here)?

    I appreciate any help answering those questions. :)[/quote:a61e20df9d]
    bandwidth = 'inbound' plus 'outbound'
     
  5. techid

    techid Member

    Joined:
    Aug 5, 2002
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    I came accross a script that runs within Shell.. When running it will display the traffic a user is using on ALL ports and from what I can tell is very accurate. It has no logging feature, but I was thinking, if a logging option could be added could it not report to the bytes log thus providing a more robust bandwidth monitoring solution rather then just HTTP POP3 FTP?

    Just my two cents.. don't know if it is possible.. but it can't hurt to find out..
     
  6. mikerayner

    mikerayner Well-Known Member

    Joined:
    Apr 10, 2002
    Messages:
    192
    Likes Received:
    0
    Trophy Points:
    16
    [quote:0ddde44d59][i:0ddde44d59]Originally posted by techid[/i:0ddde44d59]

    I came accross a script that runs within Shell.. When running it will display the traffic a user is using on ALL ports and from what I can tell is very accurate. It has no logging feature, but I was thinking, if a logging option could be added could it not report to the bytes log thus providing a more robust bandwidth monitoring solution rather then just HTTP POP3 FTP?

    Just my two cents.. don't know if it is possible.. but it can't hurt to find out..

    [/quote:0ddde44d59]
    Please click on the link to go to appropriate thread :
    http://forums.cpanel.net/read.php?TID=4519
     
  7. techid

    techid Member

    Joined:
    Aug 5, 2002
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    I don't see the relevance between what I mentioned and that post...

    Yes I understand how WHM calculates bandwidth…
    Yes I know how Bandmin works…
    This script I am talking about parses /proc/net/tcp and /proc/net/udp to provide the user (running the script) with an overview of per-user bandwidth usage plus some other information about the connections at that time.

    I am just saying if we can take the realtime per-user bandwidth usage that this script produces and somewhat report it into the bytes log or where ever WHM calculates bandwidth would it not give almost a 100% accurate report of a per-user (not per IP)bandwidth report using ALL ports instead of just HTTP, POP3, FTP.
     
Loading...

Share This Page