# Help with calculating bandwidth usage

**URL:** <https://community.wowza.com/t/help-with-calculating-bandwidth-usage/36610>\
**Category:** Wowza Streaming Engine\
**Created:** [May 17, 2011, 11:18pm UTC](https://community.wowza.com/t/help-with-calculating-bandwidth-usage/36610 "2011-05-17T23:18:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reza\_Rizvi](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@Reza\_Rizvi](https://community.wowza.com/u/Reza_Rizvi)\
**Post date:** [May 17, 2011, 11:18pm UTC](https://community.wowza.com/t/help-with-calculating-bandwidth-usage/36610/1 "2011-05-17T23:18:34Z")

</div>

I think this might be a silly questions, but I have been having a hard time figuring out how to calculate my estimated bandwidth usage. The thing is we’re going to be streaming 24/7 IPTV television feeds, and hundreds of channels. All the bandwidth calculators ask you to input a video clip length and obviously that is not possible in my case. It would make a big difference if the user turns on the stream and leaves it on for hours on end. Assuming we have 500Kbps streams and 500-1000 users, how can I calculate this to get a decent estimate?

Thanks.

---

<div class="post-metadata">

**Author:** ![Andrew\_Kennedy](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@Andrew\_Kennedy](https://community.wowza.com/u/Andrew_Kennedy)\
**Post date:** [May 18, 2011, 12:50am UTC](https://community.wowza.com/t/help-with-calculating-bandwidth-usage/36610/2 "2011-05-18T00:50:08Z")

</div>

I assume you need a ‘transferred byte count’ using your figures above.

So 500kbps = 62500 bytes per second ( divide by 8 )

So for 500 users = 31250000 bytes per second

1000 users = 62500000 bytes per second ( 62Mbytes approx )

For 1 hour 500 users = 112500000000 bytes ( 112Gigabytes )

1 hour 1000 users = 225000000000 bytes ( 225Gigabytes )

So 24 hours for 500 users = 2688 Gigabytes ( 2.6 TBytes )

24 hours for 1000 users = 5376 Gigabytes (5.3 TBytes )

For 30 days ( average month day count ) for 500 users = 78Tbytes

1000 users = 156Tbytes

I think the above is correct but please do check with other sources.

Shamrock

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 20, 2011, 11:54am UTC](https://community.wowza.com/t/help-with-calculating-bandwidth-usage/36610/3 "2011-05-20T11:54:40Z")

</div>

For Flash connections, the summary rows are stream/destroy and session/disconnect. There are tables of fields and events in the Logging chapter of user guide.

I like to look at the logs in excel, delete the top 4 rows so the header row comes to the top then freeze it.

Exceptions are possible: stream/destroy or session/disconnect rows might be missing because of sudden shutdown for example. So, alternatively, with everything in a table you can group by x-stream-id for streams and c-client-id for connections to get summary data from the last row in date order, regardless of event.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [August 23, 2012, 12:16pm UTC](https://community.wowza.com/t/help-with-calculating-bandwidth-usage/36610/4 "2012-08-23T12:16:56Z")

</div>

Use the data in the latest row, ordered by date, desc

For a Flash RTMP connection sc-bytes is per NetConnection, sc-stream-bytes is per NetStream

Richard

Richard

---

<div class="post-metadata">

**Author:** ![Peter\_Derston](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@Peter\_Derston](https://community.wowza.com/u/Peter_Derston)\
**Post date:** [May 19, 2011, 1:02pm UTC](https://community.wowza.com/t/help-with-calculating-bandwidth-usage/36610/5 "2011-05-19T13:02:38Z")

</div>

If i want to calculate total bandwidth from all sessions would I calculate on the scstreambytes field for all xevents of ‘destroy’ ? (basing my question on the logging setup here [https://www.wowza.com/docs/how-to-log-to-a-mysql-database](https://www.wowza.com/docs/how-to-log-to-a-mysql-database) )

Or would I need to include other events like disconnect and stop?

EDIT:

I’m thinking I need to calculate anything with the xevent stop or destroy. Is this true?

---

<div class="post-metadata">

**Author:** ![Flavio\_Oliveira](https://avatars.discourse-cdn.com/v4/letter/f/ed8c4c/32.png) [@Flavio\_Oliveira](https://community.wowza.com/u/Flavio_Oliveira)\
**Post date:** [August 22, 2012, 11:26pm UTC](https://community.wowza.com/t/help-with-calculating-bandwidth-usage/36610/6 "2012-08-22T23:26:28Z")

</div>

Hi,

I want to calculate the total bandwidth per stream.

If I understood, I can check the sc-bytes value in the destroy event. However, my question is when I don’t receive the destroy event due a shutdown.

So, in that case, let’s suppose that I had many Play/Stops because it was a live stream (cupertino). Has the last stop event the total bandwidth?

Regards, ollivera

---

<div class="post-metadata">

**Author:** ![Flavio\_Oliveira](https://avatars.discourse-cdn.com/v4/letter/f/ed8c4c/32.png) [@Flavio\_Oliveira](https://community.wowza.com/u/Flavio_Oliveira)\
**Post date:** [August 23, 2012, 1:05am UTC](https://community.wowza.com/t/help-with-calculating-bandwidth-usage/36610/7 "2012-08-23T01:05:05Z")

</div>

By the way, as I want to calculate the total bandwidth per stream. Should I use sc-bytes or sc-stream-bytes in the destroy event?
