Bandwidth Secrets

When considering hosting providers, you'll often notice that bandwidth commitments vary greatly. There's a reason for that; you don't need as much “bandwidth” as you're often lead to believe. You'll find many providers offering plans not limited by bandwidth, but by throughput (the actual amount of data transferred). To add to this confusion, they'll often still call this measurement “bandwidth”.

This posting is intended to help you establish realistic expectations, based on our examples of real world situations.

Overview

With many hosting providers, what they typically call “bandwidth” is really two specific metrics:

  1. Throughput: The amount of data you can transfer during a given period of time.
  2. Bandwidth: The maximum rate at which data can be transferred.

Unless you have a truly unmetered connection, understanding the above differences is extremely critical.

Clarifying Ethernet vs Broadband

Let's clarify one critical point before proceeding. Consider the following internet connection options:

  • Dial-up modem: 56Kbps
  • ISDN: 128Kbps
  • DSL: 768Kbps
  • T-1: 1.54Mbps (1Mbps = 1024Kbps)
  • Cable Broadband: 10Mbps
  • Ethernet: 10Mbps
  • Fast Ethernet: 100Mbps
  • Gigabit Ethernet: 1000Mbps

The types of connections that you'll find inside a datacenter are commonly ethernet (copper or fiber-based). These are nearly always “Full Duplex”, wheras your dial-up, DSL and broadband style connections are designed to run at half-duplex. Full-duplex network connections mean that data can be sent AND received at the listed speed simultaneously. So your datacenter's 10Mbit ethernet connection can really do roughly 20Mbps, while your 10Mbit home broadband connection can only do roughly 10Mbps.

Leaping From Bits-->Bytes

Marketing often gets a bad rap when selling you “MegaBits”, many techies would argue its an attempt to obscure what you're really purchasing…I'll leave that debate for another posting. The reality is, data transfer speeds are typically measured in bits, while data quantity is measured in bytes. The difference is significant; it takes eight bits to make one byte.

Understanding Bits vs Bytes:

Put another way, if you have a 100MB file, and you have a 10Mbps ethernet connection, it will take you not 10 seconds to transfer this file, it will take you roughly 80 seconds.

Your Typical Datacenter

Our typical datacenter/colocation plan is a 10Mbps connection, with a 1TB/month transfer limitation. This means you're able to transfer data at speeds of up to 20Mbps, but not continuously for that entire month. Why? Consider that a 20Mbps connection is really:

  • 1,200MegaBits/Minute
  • 72GigaBits/Hour
  • 1,728GigaBits/Day (aka: 1.72TerraBits)
  • 52TerraBits/Month (aka: 6.48TerraBytes/Month)

6.5TB/month (6,480GB) is most-certainly more than a 1TB/month allotment.

A Glaring Omission

Whenever considering the network resources required to transfer a certian file, the inherent protocol overheads are often overlooked. TCP alone introduces an approximate 8% overhead, just for its headers and other necessary meta-data, add HTTP overheads and even MIME/BASE64 encoding (transparently used when transferring files via email), you'll see anywhere from 15-30% “hidden” network consumption. Pad those estimates!

Metered vs Unmetered

An unmetered connection means a connection of a certain speed, of which you can use all or none of the available capacity.

A burstable connection means being able to send data at high (burst) speeds, but if you don't use that high speed all the time, you don't have to pay for it.

Bandwidth 'overage' fees

If you transfer more data than you were allotted, many providers will charge an over-usage fee. This can vary from between two to ten+ times your normal rates; such fees protect providers from customers using more resources than originally requested, without shutting-down legitimate customer services. You should monitor your usage throughout the month in order to prevent possible overage charges.

Monitoring Usage

We recommend you utilize vnstat for monitoring your usage; it's an excellent command-line based tool designed to log and trend up to a year's worth of network activity.

Defining Billing Plans

Providers use three methods to measure and charge for monthly usage.

CIR

Committed Information Rate (CIR) billing is often where you're assigned a certain allotment, such as 1Mbit/sec. Then enabled to utilize up to 100% of that, without worry of any overage fees or other limiting factors.

Total Bytes Per Month (GB/mo or TB/mo)

Total Bytes Per Month is the allotment of a certain amount of data per month, with fees established to cover any overage. For example, you purchase a 1TB/month plan, with a $1 per GB, per month, overage fee. The benefits here are a significant cost-savings, with minimal performance compromises; setup on a 10Mbit circuit, and assigned a generous 1TB/month allotment, you're enabled to burst up to 10Mbit speeds, but are only paying for the data you use. Although you must already have an excellent understanding of your bandwidth needs.

95th Percentile

The 95th percentile method more closely reflects needed capacities. The 95th percentile enables a short (less than 36 hours, given a monthly billing period) burst in traffic without overage charges. The 95th percentile says that 95% of the time, the usage is at or below this amount. Conversely, 5% of the samples may be bursting above this rate.

95th percentile billing is similar to the CIR billing plan, but without digging into specifics, you can pay significantly less, or more, depending on your site's typical traffic patterns.

Real World Examples

These numbers will fluctuate monthly, and a good portion of sites often end up using little or no bandwidth. Keep in mind this only considers web-based traffic. Other data, such as backups, file transfers, ssh connections, mail, etc. can easily add 10-25% to your monthly usage. Streaming music, VoIP services, and other bandwidth-intensive processes must also be watched closely.

Online Library/Museum

  • 10,000 Unique Visits/day. (200,000 hits)
  • Main page: 50KB
  • 90GB/mo (292Kbps avg.)

Medium Association Site

  • 5,000 Unique Visits/day. (80,000 hits)
  • Main page: 30KB
  • 40GB/mo (130Kbps avg.)

Medium Weblog Site

  • 10,000 Unique Visits/day. (100,000 hits)
  • Main page: 66KB
  • 25GB/mo (82Kbps avg.)

Small Text based Site (few pictures)

  • 400 Unique Visitors/day. (4000 hits)
  • Main Page: 10KB
  • 500MB/mo

Small Site (many pictures)

  • 200 Unique Visitors/day. (2000 hits)
  • Main Page: 25KB
  • 1GB/mo

Small Download Site (200 small files)

  • 600 Unique Visitors/day. (7,000 hits)
  • Main Page: 15KB
  • 15GB/mo

Software Company Site (3 medium programs)

  • 2000 Unique Visitors/day. (30,000 hits)
  • Main Page: 50KB
  • 50GB/mo

Large Medical Business Email Services (1,000 users)

  • 800 Unique Logins/day.
  • 700GB/mo

Discussion

Enter your comment
If you can't read the letters on the image, download this .wav file to get them read to you.
 
blog/bandwidth_secrets.txt · Last modified: 2010/04/27 08:25 (external edit)