Slashdot Mirror


Managing Bandwidth and Bandwidth Costs?

azav asks: "The company I work for has bandwidth requirements that occasionally spike to satisfy the immediate requirements of a several meg download to say 30,000 users. We hope to make this several million in the future. With that in mind, this request is directed to any person who manages a site that must deliver content on an irregular schedule. How do you manage your bandwidth costs? How do you manage the availability of bandwidth?"

"I'd like to illustrate the second concept. When you have your (for example) T1 and you're not really using it, you are still paying for all that bandwidth. It's like the car that sits in your garage, you're still paying insurance and car payments on it even though you're not using it. But then you put up a new game, serve new media or suddenly become the 'Site of the Day' and your bandwidth is flooded and maxed out. For that case, it's like you've bought a car that only goes 40 miles an hour but while the demand exists and only while that demand exists, you need a car that goes 150 miles an hour. You don't want to pay the money for a car that goes 150 because you only need it occasionally. Later, you know you'll need that car to go 220 but you're not there yet.

So if this makes sense with regards to bandwidth, it is like you'd want burst-bandwidth depending on need. Do any of you face this problem? If you do and have solved it, I'd love to hear about your strategy. Once this is solved, we get back to the first question, how do you manage that cost, put a number on it and either fit it in to your business model or pass it on to your customers?"

20 of 202 comments (clear)

  1. Many Options by voxel · · Score: 3, Informative

    Too many to spell out here.. Search google, LOTS of people sell bandwidth at X mbits/s with a BURST to x mbit/s.

    You figure our how much you will estimate you will use as a total per month, and you pay for that. You cruise at 2mbit/s mostly, then you explode to 145mbit/s and at the end of the month you average out to 6mbit/s.

    The idea is you BUY your peak speed, but pay for a low average..

    EVERYONE does this now, call around... It was kind of silly for you to ask Slashdot how to do this. UGH.

    - Voxel

    --
    Modesty is one of life's greatest attributes
  2. Managing bandwidth by js62 · · Score: 4, Informative

    Where possible BitTorrent is your friend. If you can use it, let your customers help out with the bandwidth usage. They will probably get the file(s) quicker and you won't have servers getting torched.

    1. Re:Managing bandwidth by Neophytus · · Score: 3, Informative

      What must be noted is that a custom tracker would almost be a necessity. Trackers overload REAL easy, so having one you can run over a load balanced system or that keeps CPU and memory usage to a bare minimum is a must.

    2. Re:Managing bandwidth by KDan · · Score: 4, Informative

      Yes, this is one thing where it would probably be VERY worthwhile to write a custom bit-torrent client (which looks like one of these installers which goes and downloads the data from a server, but actually goes and downloads it from everyone else). Just give people a choice in the maximum speed of the download, eg: 20k/sec if you don't want to share, 150k/sec if you're willing to share the file 10 times, and max out bandwidth if they're willing to share it whenever the application is open. Seeing as it seems you're distributing updates to an application, incorporating a bit-torrent client in the app shouldn't be beyond possibility, and even if only 10% of people who say they'll be sharing actually let it through their firewall, that will still make it a lot easier on your servers.

      Daniel

      --
      Carpe Diem
    3. Re:Managing bandwidth by mskfisher · · Score: 2, Informative

      The newest experimental versions of the BitTorrent client allow you to throttle your upstream usage.

      I don't have the problem very often on my cable connection, but the one time I experienced a major BT-related slowdown, I was quite annoyed - so I can empathize with your hatred.

      Here's the link to the experimental client:
      http://ei.kefro.st/projects/btclient/

      --
      0x0D 0x0A
    4. Re:Managing bandwidth by Anonymous Coward · · Score: 1, Informative

      Why is it that BitTorrent is the fix-all solution for the /. crowd? I for one HATE BT, because, seeing as I am on DSL, I usually get no more than 20K/Sec even when sharing to my maximum potential. Why you ask? Because due to the assymetrical nature of ADSL, once my upstream gets clogged, it cannot facilitate the neccisary ACK's that need to be sent out to the other end in order to ensure my download stays up.

      In other words, if I'm uploading at my maximum speed, I can't reply quickly enough to tell the nodes I am downloading from that the last packet got through, so they resend it instead of the next packet until I can squeak out an ACK or two to let them know to move on.

      BT is a nice concept, but in practice it needs work.


      You should look into doing some traffic shaping on your router (if it is supported). If you have a Cisco, they do it very easily. I use BitTorrent, and I have 384kbps upload. I set the upstream to about 256k to 300k and never have problems downloading with bittorrent. Of course with 128kbps upload, you would have to doing some smaller shaping, but 64kbps upload should allow some ACKs to get through. Now I'm not sure how quickly the other end will send you the data, but you shouldn't have any bottlenecks on your end. Heres some info on generic shaping:

      http://www.cisco.com/univercd/cc/td/doc/product/ so ftware/ios120/12cgcr/qos_c/qcpart4/qcgts.htm

    5. Re:Managing bandwidth by Anonymous Coward · · Score: 1, Informative

      You can let the Linux kernel limit your upload
      speed to avoid the problem, and you don't need
      to throttle it in the client software then:

      http://www.fokus.gmd.de/linux/HOWTO/Adv-Routing- HO WTO.html

      The gist of it is that something like that in /etc/ppp/ip-up.d/upload-limit solves your TCP
      problem: /sbin/tc qdisc add dev $PPP_IFACE root tbf rate 196kbit latency 50ms burst 1540

  3. Get what you want... by anthony_dipierro · · Score: 4, Informative

    If you want to pay for data by the gig, rather than by the pipe size, just sign up with an ISP which allows that.

  4. Get Burstable Fibre by manly_15 · · Score: 4, Informative

    At the ISP where I work we offer fiber connections that allow for increased bandwidth for certain periods of time. For example, our burstable connections are usually around 1-3 meg for normal times, then burstable up to 10 megs. I'm sure you can find something suitable to you.

    *blatant sales pitch*
    If your buisness is near Southern Ontario, check out our website at www.sentex.net. We rock :-)

  5. Akamai or other offsite hosting by sully67 · · Score: 5, Informative

    This is what Akamai and the like are sold for.
    It's almost certainly going to be cheaper than just buying bandwidth.
    Or you could go for the approach of colocating your own box somewhere central for the heavily hit stuff.
    Even this will be a whole lot cheaper and won't impact on your normal traffic to your organisation.

  6. One word by LittleLebowskiUrbanA · · Score: 2, Informative
  7. Find a new provider... by IpSo_ · · Score: 4, Informative

    that offers "pay by the GB". The hosting company I work for has GiGE links but only pays for the exact amount of traffic we push through the link. The monthly cost on the line is minimal, or nonexistent depending on the provider.

    Since we have more then one link as well, it gives us redundancy and the upper hand to negotiate the best price per GB, so we can send 90% of our traffic out that link. If the next month a different provider comes back with a cheaper price, we switch it around and send the 90% out their link. Within days of cutting the traffic off for a link, we can usually expect a phone call from the sales rep with lower price offer.

    Any idle links we have don't cost us anything extra, since we _will not_ deal with any provider that doesn't offer pay by the GB. Paying for the raw link speed, regardless of how much traffic you push through, or paying 95th percentile prices are all mostly a rip off.

    --
    Open Source Time and Attendance, Job Costing a
    1. Re:Find a new provider... by Anonymous Coward · · Score: 1, Informative

      95th percentile billing is NOT a rip-off. It is usually billed at a 25-50% premium, and for large Ethernet fiber providers (e.g. Neopolitan Networks or similar), the burstable bandwidth is straight to the core like your high-quality baseline bandwidth. The good providers that offer burstable bandwidth have more core capacity than they have baseline bandwidth.

      A lot of companies use burstable fiber for their backup connections. They pay for a 1-Mbit baseline, but the circuit can smoothly handle a 50+ Mbit spike if their primary circuit fails. Often with 95th percentile billing, this high-bandwidth failover never generates an additional billing event because it would take a day and a half of continuous outage before it starts to tally. 95th percentile billing absolutely rocks for companies that have short periods of high transient bandwidth. They get all the benefits with minimal additional cost even in the event that they actually generate a billing event. A 50% insurance premium that occurs only in the event of an extended incidence of high usage is pretty damn cheap.

  8. CDN, colocation by UnderAttack · · Score: 5, Informative

    Couple of different options. First, you could talk to the Content Delivery Networks (CDN's) like Akamai or Digital Island. They can probably help you (for a price).

    Another option is colocation. In particular if you have short traffic spikes. Many colocation places charge your for at a '95 Percentile'. This will cut out about 3 days worth of 'peek traffic' and you only pay for the maximum bandwidth you use after removing the top 5%. Just make sure the colocation place has enough bandwidth to handle the spikes.

    Some ISPs (e.g. Yipes) offer flexible contracts that allow fast (daily?) bandwidth changes. So if you announce a new version of your product, you can increase your bandwidth until the rush is over.

    One hint: Try to move the large file/content away from your 'importants' networks, so other things like e-mail keep flowing even if the content site is running into issues due to load.

    --
    ---- join dshield.org Distributed Intrusion Detec
  9. Content Delivery Network by ryuspeed · · Score: 3, Informative

    It seems to me that this is exactly the type of problem that places like akamai and cable and wireless (was digital island) are trying to solve. Pay only for the bandwidth you use, leverage their existing distributed architecture, profit. You can try to get bustable bandwidth etc, but in the past I've found it to be more expensive. Things may have changed since them (a year ago) but you should still look into a content delivery network.

    1. Re:Content Delivery Network by borkus · · Score: 2, Informative

      My employer is looking at CDNs. I understand that they had an impressive presentation from Speedera as well. It looks like Speedera has a service specifically for downloads.

      No, I didn't site through the presentation; however, our admin guys seemed impressed. Just another option.

  10. Managing your network is an ongoing process by f1ipf10p · · Score: 2, Informative

    Start with a best guess for amount of bandwidth based on number of users and type of usage. Then monitor and adjust. If you pay for uneeded bandwidth you may be losing money. If underestimate bandwith needs and lose business, you may lose money...

    Some things to consider checking into:

    Use SNMP and RMON to manage and monitor your wide area connections. You will be able to do trending on your traffic to see what percentage of used is used during any predetermined interval. Free tools like MRTG are a great place to start.

    Good network hardware, maybe most specifically your edge router(s) and firewall(s), that allows you to configure some sort of priority queuing or traffic shaping. Cisco's QOS features in its IOS based routers are known to be particularly strong.

    A service or dedicated person to make sense of the traffic reports. It is an ongoing process.

    You will also likely want to consider measuring "latency" as well as bandwidth consumption.

    Also note that during a one minute average, 50% use can be 30 seconds of 100% and 30 seconds of 0%. Be aware that many of the bandwidth utilization numbers that are reported can be averages. You will want to look for peaks as well.

    Good Luck.

    --
    ~8^]
  11. Your Options by Zebra_X · · Score: 2, Informative

    How to handle this situation primarily depends on where your site is hosted.

    If you have your servers hosted with co-location provider like AT&T, Globix, Cable and Wireless (ha ha), Verio ot the like then you'll almost always have the option to "burst" above your monthly allotment of transfer per month - problem solved. Just do some simple math and figure out what is the max of the LAN connection of the provider, how much your server(s) can handle with respect to transfer and you'll be able to figure out if you need to add hardware or NIC's to handle the load. Generally speaking the "bursting" is usually calculated fairly. Also, in months that you use less bandwidth you won't have to pay for a higher class of service above the already agreed upon monthly transfer rates.

    However, It doesn't sound like this is the case. A t-1 has a physical capacity to transfer 1.544 Mb/sec. You will never be able to "burst" above this rate. As long as your servers are at the end of this pipe they will never be able to transfer more than ~ 180K/sec to the internet at large. Your options at this point are:

    * Add more capacity to your hosting site (expensive).

    * "Partner" with a company like Akamai for content delivery. It'll be a few thousand dollars plus the cost of bandwith to set up the content redistribution. Not really a bad deal if you are serious about delivering your content to your users. They also have great reporting about who and where your users are coming from.

    * Your last option is to set up a shared/dedicated hosting account with a provider that charges you by the GB. That way you only pay for what you use + the monthly cost of the server. Try interland they have some good deals.

    The bottom line is that if your site is hosted at the end of a physical connection you own - it's not going to be enough. You'll need a datacenter environment that has a PhatPipe to the internet and a machine or machine(s) that can handle the throughput. If you have the cash go with Akamai - they are good at what they do.

  12. Characterize your traffic, then apply rules. by Mordant · · Score: 2, Informative

    First of all, you need to know what's normal for your network, and how your bandwidth is actually being used:

    http://www.linuxgeek.org/netflow-howto.php

    http://wwwstats.net.wisc.edu/

    http://www.arbornetworks.com/products_sp.php

    Then you need to make use of technologies which allow you to provision accordingly:

    http://www.cisco.com/en/US/tech/tk543/tk757/tech no logies_white_paper09186a008017f93b.shtml

    http://www.cisco.com/pcgi-bin/Support/browse/ind ex .pl?i=Technologies&f=1387

    Juniper and other vendors have equivalent capabilities, I'm just not very familiar with them. But the concepts are the same.

  13. Colocation! by danejasper · · Score: 5, Informative
    Colocation or contracted file hosting is probably your best bet. You'll pay by the gigabyte, or by peak utilization. Careful as you quote this - a 95th percentile means that they bill you monthly for the PEAK after tossing out the top 5%. For a site which is pretty even all month long, this works great. However, if you're serving a single file, once in a while, and expect heavy traffic only then, you do NOT want to pay on 95th, as you'll pay for your peak utilization all month long.

    Be sure to tell your colo or file hosting provider what your projected usage is, and how many megabits you may want access to, to assure that they can handle it. You may also want to make a courtesy call a day or so prior to each launch to let them know what to expect.

    Remember when Eddy Van Halen got tounge cancer a couple years ago? THAT was a busy weekend for their website, which we host. Of course, they didn't have any warning, but boy-o, that was bigger than any slashdot effect that I've ever seen. We also host O'Reilly (the computer book folks), so we certainly see plenty of slashdotting.

    We're at: http://www.sonic.net/sales/colo/

    Shop around - but keep in mind that buying from someone near your intended downloader may help you with both latency and costs. The SF Bay Area has the best pricing for bandwidth, and the lowest latency connections to the highest number of users - that said, if your target market is on the east coast, you should be in Hearndon, VA or NY or Boston.

    -Dane Jasper (Sonic.net)

    --
    -- Dane Jasper Sonic.net, Inc.