Difference between revisions of "Bit Rate Calculation"
Line 37: | Line 37: | ||
For MPEG1/2 Layer3 (MP3) bit rate | For MPEG1/2 Layer3 (MP3) bit rate | ||
the following Encoding range is supported as Variable Bit Rate in IPAM100 based devices: | the following Encoding range is supported as Constant & Variable Bit Rate in IPAM102 based devices (e.g. new Instreamer): | ||
28kbps (MPEG2@16KHz mono) - 320kbps (MPEG1@48KHz stereo)<br> | |||
the following Encoding range is supported as Variable Bit Rate in IPAM100 based devices (e.g. old Instreamer100): | |||
28kbps (MPEG2@16KHz mono) - 192kbps (MPEG1@48KHz stereo)<br> | |||
Decoding range on both IPAM100 and IPAM300 as Constant or Variable Bit Rate is: | Decoding range on both IPAM100 and IPAM300 as Constant or Variable Bit Rate is: | ||
8kbps (MPEG2) - 320kbps (MPEG1) | 8kbps (MPEG2) - 320kbps (MPEG1) | ||
Line 54: | Line 61: | ||
{| class="wikitable" border="1" cellspacing="0" | {| class="wikitable" border="1" cellspacing="0" | ||
| <center>'''Audio Format'''</center> | | <center>'''Audio Format (MP3 in VBR)'''</center> | ||
| <center>'''Audio Data Rate (Kbit/sec)'''</center> | | <center>'''Audio Data Rate (Kbit/sec)'''</center> | ||
| <center>'''Packet/sec (Wireshark)'''</center> | | <center>'''Packet/sec (Wireshark)'''</center> | ||
Line 178: | Line 185: | ||
{| class="wikitable" border="1" cellspacing="0" | {| class="wikitable" border="1" cellspacing="0" | ||
| <center>'''Audio Format'''</center> | | <center>'''Audio Format (MP3 in VBR)'''</center> | ||
| <center>'''Audio Data Rate (Kbit/sec)'''</center> | | <center>'''Audio Data Rate (Kbit/sec)'''</center> | ||
| <center>'''Packet/sec (Wireshark)'''</center> | | <center>'''Packet/sec (Wireshark)'''</center> | ||
Line 322: | Line 329: | ||
{| class="wikitable" border="1" cellspacing="0" | {| class="wikitable" border="1" cellspacing="0" | ||
| <center>'''Audio Format'''</center> | | <center>'''Audio Format (VBR)'''</center> | ||
| <center>'''Audio Data Rate (Kbit/sec)'''</center> | | <center>'''Audio Data Rate (Kbit/sec)'''</center> | ||
| <center>'''Packet/sec (Wireshark)'''</center> | | <center>'''Packet/sec (Wireshark)'''</center> | ||
Line 551: | Line 558: | ||
{| class="wikitable" border="1" cellspacing="0" | {| class="wikitable" border="1" cellspacing="0" | ||
| <center>'''Audio Format'''</center> | | <center>'''Audio Format (VBR)'''</center> | ||
| <center>'''Audio Data Rate (Kbit/sec)'''</center> | | <center>'''Audio Data Rate (Kbit/sec)'''</center> | ||
| <center>'''Packet/sec (Wireshark)'''</center> | | <center>'''Packet/sec (Wireshark)'''</center> |
Latest revision as of 11:55, 7 June 2013
BIT RATE CALCULATION WITH BARIX DEVICES
With this document we want to explain how to calculate the total bit rate flowing on an Ethernet cable connected to a Barix device.
The total bit rate is equal at the audio bit rate plus the overhead due to the encapsulation of audio packet inside the layers of OSI stack [1].
We have used for the test an Instreamer 100 (with standard firmware) configured first in RAW UDP and then in RTP, and an Exstreamer 1000 (with STL firmware).
RAW UDP STREAMING MODE
For the structure of the Ethernet packet see here: [2]
The Total Ethernet Overhead per packet is 300 bit.
For the structure of the IP packet see here: [3]
The Total IP Overhead per packet is 160 bit.
For the structure of the UDP packet see here: [4]
The Total UDP Overhead per packet is 64 bit.
Total Bit of Overhead per Packet = Ethernet Overhead + IP Overhead + UDP Overhead = 524 bit
The Audio Bit rate is expressed in bit/sec but the Overhead is expressed in bit/packet.
So we have to translate the Overhead (bit/packet) in Overhead rate (bit/sec).
For this we need to know the amount of packet/sec, that depends by Audio Format and is measurable with Network Protocol Analyzer software like Wireshark.
The values of Audio Data for audio format, sampling frequency and quality (MP3 bitrate average), come from Instreamer Manual (firmware V3.10 – page 18 - [5])
For MPEG1/2 Layer3 (MP3) bit rate
the following Encoding range is supported as Constant & Variable Bit Rate in IPAM102 based devices (e.g. new Instreamer):
28kbps (MPEG2@16KHz mono) - 320kbps (MPEG1@48KHz stereo)
the following Encoding range is supported as Variable Bit Rate in IPAM100 based devices (e.g. old Instreamer100):
28kbps (MPEG2@16KHz mono) - 192kbps (MPEG1@48KHz stereo)
Decoding range on both IPAM100 and IPAM300 as Constant or Variable Bit Rate is:
8kbps (MPEG2) - 320kbps (MPEG1)
Overhead/sec = Overhead/Packet x Packet/sec
Total Bit Rate (Kbit/sec) = Audio Data Rate (Kbit/sec) + Overhead/sec (Kbit/sec)
(1 Kbit = 1000 bit)
Without Ethernet Overhead
RTP STREAMING MODE
For the structure of the RTP packet see here: [6]
The Total RTP Overhead per packet is 128 bit (counting also the MP3 MPA wrapper inside the RTP payload, which has an extra 32 bit header).
Total Bit of Overhead per Packet =
Ethernet Overhead + IP Overhead + UDP Overhead + RTP Overhead = 652 bit
The values of Audio Data for audio format, are the same of above, since the transmission protocol doesn't affect audio bit rate.
Overhead/sec = Overhead/Packet x Packet/sec
Total Bit Rate (Kbit/sec) = Audio Data Rate (Kbit/sec) + Overhead/sec (Kbit/sec)
(1 Kbit = 1000 bit)
1 - in PCM and A/uLaw streaming mode, there is not MPA wrapper.
2 - 1 Mbit = 1000 Kbit.
Without Ethernet Overhead
1 - in PCM and A/uLaw streaming mode, there is not MPA wrapper.
2 - 1 Mbit = 1000 Kbit.
The PDF version of the original document is downloadable here [[media:bit_rate_calculation_3_0.pdf]].
Back to FAQ