PtokaX forum

PtokaX => Support => Topic started by: witch on 10 August, 2004, 11:42:22

Title: Bandwidth
Post by: witch on 10 August, 2004, 11:42:22
Hi guys!
Well it's already a month since i looking for host for my hub...people asking me qestions and i don't know what to say, some things still not clear for me. Well my qestion is about bandwidth, how it's count? For example 100 users in hub, how much bandwidth gona be used a month? Please explain me....

Thanx  :))
Title:
Post by: Cypher on 10 August, 2004, 13:21:29
Your looking for a host for your hub? Why not answer the questions of the people that were ready to host your hub. Give them more info on what you want or your goin to get no where.
Title:
Post by: witch on 10 August, 2004, 13:36:17
LOL i host my hub my self....and if u read my request with open eyes, u'll see there qestion.....lol  :rolleyes:
Title:
Post by: plop on 10 August, 2004, 17:24:07
taken from the docs of verlihub.
QuoteThis is interrresting to know, how many users can I have on my hub when my connection speed is such and such.

I give you an approximative solution which works for VerliHub and which I calculated based on sevral observations.

Let's say your you are allowed to use U kbits per second upload speed permanently. Then you can handle

 N=sqrt(U)*20

users approximately. (see note later)

Some orientating numbers:
U   N
128kbit   226
256kbit   320
512kbit   452
1Mbit   640
10Mbit   2020
100Mbit   6400

NOTE: These numbers are for an orientation, of course, that they may vary depending on user's activity. And they depend on the power of you cpu, and other factors. During the evening when people are more active, those mubers may lower by about 10-15%

plop
Title:
Post by: Cypher on 10 August, 2004, 18:45:00
QuoteLOL i host my hub my self....and if u read my request with open eyes, u'll see there qestion.....lol

lol joker. im on about this:

QuoteHi guys!
Well it's already a month since i looking for host for my hub...

your post in offtopic still remains unanswered and if i was those people i would just give up waiting ;)
Title:
Post by: witch on 10 August, 2004, 18:47:52
Thanx Plop mate!!! I still not get it... this zitat explains what the resoneble amount of users u can have on such and such speed conection. But i wana find out how much bandwidth hub will use on the server for 100 users a month. U know like pay servers seling web space:
-1GB space
-60GB  Bandwidth
-bla bla

So if the hub soft runing on the remote server, how much Bandwidth it will use it self? Only hub soft running on this server, no dc++ clients and no downloads and uploads.

Hope i'm explaining my self clear.

Thanx
Title:
Post by: UwV on 10 August, 2004, 21:41:17
Quote-60GB Bandwidth
this usually means the amount of data you are allowed to transfer (don't ask me why i's called bandwith .. )
so .. ...

given that you want to know about bandwithusage of with aprox. 100 users and need aprox. 58kbit/s to run a hub nicely ..  (taken the info from a few posts above)

(funktion make yer maths ;-)
Xb = 60                -- bandwith used per second
Xb = Xb * 60        -- per minute  (3480)
Xb = Xb * 60        -- and then per hour (208800)  
Xb = Xb * 24        -- then we have a day (5011200)
Xb = Xb * 28        -- and one "moon" (140313600)

-- i call a month 28 day's (Xb =Xb x 28 )  aah .. a roman month .. then .. just do the thing by doing
(funktion make yer maths again ;-)
Xb = 60                 -- bandwith per second
Xb = Xb * 60         -- per minute  (3480)
Xb = Xb * 60         -- and then per hour (208800)  
Xb = Xb * 24         -- then we have a day (5011200)
Xb = Xb * 365.25  -- makes a year (1830340800)
Xb = Xb / 12          --  is one month (152528400)

now you have an estimation of the datatransfer done by a hub, per mont in kbit  ..  so now don't ask me how many GB that is .. i forgot .. i don't want to remember  .. or i am too lazy to look inside any script here on the forum that does it ..  but maybe it was something to do with * 1024  and then * 8 or something  like that  ;0)
Title:
Post by: plop on 10 August, 2004, 22:55:03
made a script for it.
fill in the upload speed you have and execute it with the lua command line.
Mb = 1024
Upload_speed = 100 *Mb -- in Kbit's

N=sqrt(Upload_speed)*20

function con(num)
   local t = floor(num)
   if strlen(t) >= 10 then
      num = format("%0.3f", (num/1024/1024/1024)) .." T"
   elseif strlen(t) >= 7 then
      num = format("%0.3f", (num/1024/1024)) .." G"
   elseif strlen(t) >= 4 then
      num = format("%0.3f", (num/1024)) .." M"
   else
      num = num.." K"
   end
   return num
end

print("Maximum upload speed of "..con(Upload_speed).."bit's")
print("can handle maximum "..floor(N).." users")
print("-------------------------------------------------")
print("Upload per second: \t"..con(Upload_speed).."bits \t"..con(Upload_speed / 8).."B")
Umin = N *60
print("Upload per minute: \t"..con(Umin).."bits \t"..con(Umin / 8).."B")
Umin = Umin *60
print("Upload per hour: \t"..con(Umin).."bits \t"..con(Umin / 8).."B")
Umin = Umin *24
print("Upload per day: \t"..con(Umin).."bits \t"..con(Umin / 8).."B")
Umin = Umin *30
print("Upload per month: \t"..con(Umin).."bits \t"..con(Umin / 8).."B")
print("-------------------------------------------------")
print("This is just the uploaded data")
print("-------------------------------------------------")
but remember this is from an early version of verlihub.
this doesn't mean it's the same on ptokax.
the latests versions of verlihub can handle much more users.
10.000 user take 80Mbit on those versions, while on this formula/version the max is only 6400.

plop
Title:
Post by: witch on 10 August, 2004, 23:04:46
Thanx dudes for your help!!! Tomorow i will try work on bouth formules....one brain good, but 3 is better!!!

Thanx  :D
Title:
Post by: plop on 11 August, 2004, 01:17:20
QuoteOriginally posted by witch
Thanx dudes for your help!!! Tomorow i will try work on bouth formules....one brain good, but 3 is better!!!

Thanx  :D
there is only 1, the script i posted does what UwV told you/us about.
all you need 2 do is set your upload speed in the script and execute it.
examples:Maximum upload speed of 540 Kbit's
can handle maximum 464 users
-------------------------------------------------
Upload per second:      540 Kbits       67.5 KB
Upload per minute:      27.232 Mbits    3.404 MB
Upload per hour:        1.596 Gbits     204.239 MB
Upload per day:         38.295 Gbits    4.787 GB
Upload per month:       1.122 Tbits     143.606 GB
-------------------------------------------------
This is just the uploaded data
-------------------------------------------------
Maximum upload speed of 100.000 Mbit's
can handle maximum 6400 users
-------------------------------------------------
Upload per second:      100.000 Mbits   12.500 MB
Upload per minute:      375.000 Mbits   46.875 MB
Upload per hour:        21.973 Gbits    2.747 GB
Upload per day:         527.344 Gbits   65.918 GB
Upload per month:       15.450 Tbits    1.931 TB
-------------------------------------------------
This is just the uploaded data
-------------------------------------------------

plop
Title:
Post by: witch on 11 August, 2004, 12:04:38
Thanx Plop dude!
 Now it's clear.... with speed 10 Mbps and 100 users aprox = Upload per month: 70 GB

Am i right?
Title:
Post by: UwV on 11 August, 2004, 12:55:51
nope .. i think you're not actually ...

plop's schedule shows that a hub on a 540 kb connection (of wich i presume it is what a hub uses then) can do aprox. 464 users .. so devide the out come by 4  ..  to calculate the 'bandwith-usage' of a hub with 110 users in it .. (if you really need exactly 100 take 10% off your last result)
Title:
Post by: plop on 11 August, 2004, 17:34:37
Maximum upload speed of 26.000 Kbit's
can handle maximum 101 users
-------------------------------------------------
Upload per second:      26.000 Kbits    3.250 KB
Upload per minute:      5.975 Mbits     764.853 KB
Upload per hour:        358.525 Mbits   44.816 MB
Upload per day:         8.403 Gbits     1.050 GB
Upload per month:       252.088 Gbits   31.511 GB
-------------------------------------------------
This is just the uploaded data
-------------------------------------------------
you can't simply divide by 4 as you can see.

plop
Title:
Post by: witch on 11 August, 2004, 17:55:22
You are right Plop! Thanx a lot....at last this problem sorted!!!  :D  :D  :D
Title:
Post by: UwV on 12 August, 2004, 00:36:18
right you are ... plop ,.. as usual ;)

and it's logic .. again ..
more users .. more info send to each user ..
stupid me ..  :rolleyes:  
Title:
Post by: plop on 12 August, 2004, 06:50:57
yw guy's.

yep uwv.
2 users = 2*2= 4 myinfo's to send
4 users = 4*4=16 myinfo's to send
8 users = 8*8=64 myinfo's to send

plop