Calculating bandwidth math

bandwidth

I think I'm having a pretty fundamental problem in calculating bandwidth math.

I work in streaming video and I often have clients asking me the famous question: "How many streams can I push at once?"

My response is invariably the same:

Let's say you have a 1,024 kilo-bit per second stream. It's unlikely, as that's an extremely high-quality HD stream. In any case, if you have a 100 mega-bit per second link, that means that by simple math, you should be able to push out 100 of these extremely high-quality streams concurrently, theoretically.

…to which I always receive a response like "Only 100 streams!?!?!"

I don't know how to reply. Is my math accurate? Clients in the wild often see much higher concurrent users than this with high-quality streams. Am I missing something in my math?

Best Answer

Technically, given the units in your question your math is wrong. However, it is more semantically wrong as it could be construed as right depending on how one defines the units.

The big confusion comes down to the unit being used. A kilobit versus a kibibit. A megabit versus a mebibit.

See the Wikipedia page on Data rate units for more detail.

Additionally, I am going to assume on the wire data rates for the stream. If your media stream -- what the encoder is outputting, is 1,024 kilobits per second the on the wire data rate (RTP, UDP, IP, Ethernet overhead) will be larger than 1,024 kilobits per second. You must take into account overhead if you want to be exact in the real world. However, the example below is to illustrate the math regardless of encoder output rate.

For our example, I assume the on the wire data rate is 1,024 kilobits per second, meaning encoder output is less than 1,024 kilobits per second.

A 1,024 kilobit per second on the wire data rate is 1,024,000 bits per second. A 100 megabit per second link is 100,000,000 bits per second.

100,000,000 bps / 1,024,000 bps yields 97 possible "streams/data rates" of 1,024 kilobits per second on a 100 megabit link.

Like my physics teacher always stammered: Units! Units! Units!

Related Topic