| View previous topic :: View next topic |
| Author |
Message |
baalpeteor
Joined: 16 Aug 2008 Posts: 23
|
Posted: Sat Oct 18, 2008 1:27 am Post subject: How much bandwidth to purchase from the Internet Provider? |
|
|
I was wondering as a rule of thumb how does bandwidth match up with users at a given bitrate... here's a lab
Let's say I have a 64 kbps for low bandwidth and 128 kbps for high bandwidth. I expect to have nomore than 50 users at a time.. 40 high bandwidth 10 low bandwidth.
What kind of bandwidth should I have from AT&T or cox or whoever to accomodate this to get rid of buffer times?
Also if I drop it to live or near live (maybe 1 to 3 second buffer) wouldn't I need alot better internet? I currently have a 6/7 second buffer and in the morning when 10 or 13 people or so are on (11 high rest low) it can start buffering or people have told me it does. Now the computer is also an old pc with just 128 mb memory and prob 2. something ghz. The bandwidth we have now I believe is 768 kbps upstream... i forget the downstream but don't quote me to hard. I would have to run another speed test in person instead of over vnc.
Our station we have had the most of 14 high and 11 or 12 low bandwidth at once. I want it to be stable at at least 3 second to 2 second buffer running 25 livel isteners at 128 kbps... that is if its possible and affordable without needing fiber (the city is running our own private fiber line just for this city now). I can go with Cox or AT&T (cable and dsl) or I guess T1 if it isn't too much.
Last edited by baalpeteor on Sat Oct 18, 2008 1:33 pm; edited 1 time in total |
|
| Back to top |
|
 |
baalpeteor
Joined: 16 Aug 2008 Posts: 23
|
Posted: Sat Oct 18, 2008 1:15 pm Post subject: |
|
|
| oh and is there a graph for this? If not that would be useful to make. Like the X access at the top is users and the y access on the left is bandwidth and you could do one for each bitrate or at least 128, and 64 you would just double it. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Oct 18, 2008 1:22 pm Post subject: |
|
|
10*64 + 40*128 so total bandwidth is less then 6Meg/s. While this is the max link required at your end there are still concerns fort the server to player link. You'll want to make sure that the TCP windows can be large enough to handle any low latency links or else they will starve and drop down.
Low latency is not usually a concern for most people as there is no reference for the listener for comparison, but if you do want the lowest you can then you'll need to lower the burst size to represent the delay you want, eg 2 seconds @ 64kbps is a burst size of 16384 but the players may have setting of their own in which they will prebuffer a certain amount before playing, this could be 64k for instance.
karl. |
|
| Back to top |
|
 |
baalpeteor
Joined: 16 Aug 2008 Posts: 23
|
Posted: Sat Oct 18, 2008 1:35 pm Post subject: |
|
|
| karlH wrote: |
10*64 + 40*128 so total bandwidth is less then 6Meg/s. While this is the max link required at your end there are still concerns fort the server to player link. You'll want to make sure that the TCP windows can be large enough to handle any low latency links or else they will starve and drop down.
Low latency is not usually a concern for most people as there is no reference for the listener for comparison, but if you do want the lowest you can then you'll need to lower the burst size to represent the delay you want, eg 2 seconds @ 64kbps is a burst size of 16384 but the players may have setting of their own in which they will prebuffer a certain amount before playing, this could be 64k for instance.
karl. |
oh so you really have to have a whole 128 kbps per user. I was hoping there was an algorithm that if it is 10.. and 10 * 128.. but its really not 1280 kbps.. because of buffering it would be more like 900 kbps needed.
And one last thing.. is it a good idea to have a 2 or 3 second buffer? I find 6 to be rather high. I know buffering compensates for alot and helps stability though. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Oct 18, 2008 4:09 pm Post subject: |
|
|
buffering does not lower bandwidth, it just provides to a delay (adds latency) to allow for minor stalls in the throughput, because you'll notice the smallest of glitches on the audio playback. The typical way to reduce bandwidth is to use a better codec or to spread the load across several servers.
you'll want some buffering especially over a medium like the internet. Whether a 2-3 second burst is ideal is hard to say as there are many factors that are not defined. You say you find 6 seconds rather high, ok, but why, what makes 6 seconds delay a problem for you?
icecast will allow the burst to be configurable and you could relay a stream on a different mountpoint with a different burst.
karl. |
|
| Back to top |
|
 |
baalpeteor
Joined: 16 Aug 2008 Posts: 23
|
Posted: Sat Oct 18, 2008 5:08 pm Post subject: |
|
|
| karlH wrote: |
buffering does not lower bandwidth, it just provides to a delay (adds latency) to allow for minor stalls in the throughput, because you'll notice the smallest of glitches on the audio playback. The typical way to reduce bandwidth is to use a better codec or to spread the load across several servers.
you'll want some buffering especially over a medium like the internet. Whether a 2-3 second burst is ideal is hard to say as there are many factors that are not defined. You say you find 6 seconds rather high, ok, but why, what makes 6 seconds delay a problem for you?
icecast will allow the burst to be configurable and you could relay a stream on a different mountpoint with a different burst.
karl. |
well as of now I use mp3. I want to test out OGG as it will save me bandwidth more than likely. The player I have is a flash based one (embedded on the website) used for shoutcast. The reason for sticking with mp3 though is that I want to allow people to download the .m3u file on their desktop and listen to the radio station with just a double click if they aren't on the website. Everyone I know (and the majority of people not pc savvy) don't use ogg or have codecs...
The only problem with 6 seconds is that the djs complain of it being so far behind, but if it has to stay 6, then so it stays. 4 or 5 would be better so I may just lower it to that. Before it was like 10 which is real behind. You see the radio station is a real radio station not just internet radio. When my uncle builds his next 25k watt one though and we actually buy decent pcs I will try that one for 3 or 4 seconds... as we will probably also have fiber |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
|
| Back to top |
|
 |
baalpeteor
Joined: 16 Aug 2008 Posts: 23
|
Posted: Mon Oct 20, 2008 6:08 pm Post subject: |
|
|
| karlH wrote: |
10*64 + 40*128 so total bandwidth is less then 6Meg/s. While this is the max link required at your end there are still concerns fort the server to player link. You'll want to make sure that the TCP windows can be large enough to handle any low latency links or else they will starve and drop down.
Low latency is not usually a concern for most people as there is no reference for the listener for comparison, but if you do want the lowest you can then you'll need to lower the burst size to represent the delay you want, eg 2 seconds @ 64kbps is a burst size of 16384 but the players may have setting of their own in which they will prebuffer a certain amount before playing, this could be 64k for instance.
karl. |
Man I called everyone around here. Tell me do you stream audio? What is your down/upstream?
All the people here do is offer like high downstream (like 15 or more meg) but only like 512 kbps up or at most 2/3 meg up.. and the 3 meg is like 349 a month. What is a solution to having lets say 40 or so people listening ?
Currently I believe we have 512 kbps upstream dsl with bell south. I wanted people to be able to download the .m3u file to their desktop and listen with windows media player without needing excess downloads or encoders (simplicity), and also to listen to it on the website (i have a flash player on there now so it loads in all browsers with flash, and also I was using the embedded media player for the old site). Is it just that all you guys are using like some super leet encoder other than mp3 that allows for good audio (highs and lows) at like 32 kbps or something?
note: let me also point out our audio is bootleg at the moment.. we have a cheap wal-mart radio inside the radio station that picks up the broadcast and from there a 1/8" mono plug from the radio to the pc. we never ran a direct line from the audio board due to everything is hard wired. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Oct 20, 2008 6:38 pm Post subject: |
|
|
Use a hosting provider that runs the server for you (either icecast specific or dedicated hosting). Domestic connections are not going to be suitable for many listeners.
karl. |
|
| Back to top |
|
 |
baalpeteor
Joined: 16 Aug 2008 Posts: 23
|
Posted: Mon Oct 20, 2008 6:55 pm Post subject: |
|
|
| karlH wrote: |
Use a hosting provider that runs the server for you (either icecast specific or dedicated hosting). Domestic connections are not going to be suitable for many listeners.
karl. |
I see.. thanks.. it seems to be cheaper than I thought. Do you know any good "honest" providers? im checking out
http://www.serverroom.us/?page=icecast-hosting
I run icecast and darkice (mp3). So I take it I would run darkice on my own pc and send the 2 feeds to the icecast on their server and their server takes all the bandwidth correct? |
|
| Back to top |
|
 |
|