Skip to main content
Skip table of contents

Bit Rate Calculation

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.

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)


Audio Format (MP3 in VBR)Audio Data Rate (Kbit/sec)Packet/sec (Wireshark)Overhead (bit)Total Bit Rate (Kbit/sec)
PCM 16 bit 8 KHz, mono12813.551524135.1
PCM 16 bit 24 KHz, mono38442.213524406.12
uLaw 8 KHz, mono646.752467.5
ALaw 8 KHz, mono646.752467.5
ALaw 24KHz, mono19220.28524202.62
uLaw 24 KHz, mono19220.28524202.62
MPEG1 48KHz quality 0, stereo8816.4652496.62
MPEG1 48KHz quality 4, stereo14422.56524155.82
MPEG1 48KHz quality 719227.81524206.57
MPEG1 48KHz quality 4, mono9616.08524104.42
MPEG1 44.1KHz, quality 0, mono6512.2752471.43
MPEG1 44.1KHz, quality 4, mono9015.7652498.25
MPEG1 44.1KHz, quality 7, mono14025524153.1
MPEG2 16KHz quality 0, mono285.852431.03
MPEG2 16KHz quality 4, mono447.5852447.97
MPEG2 16KHz quality 76411.552470


Without Ethernet Overhead

Audio Format (MP3 in VBR)Audio Data Rate (Kbit/sec)Packet/sec (Wireshark)Overhead (bit)Total Bit Rate (Kbit/sec)
PCM 16 bit 8 Khz, mono12813.551224131.4
PCM 16 bit 24 Khz, mono38442.213224393.46
uLaw 8 Khz, mono646.722465.5
ALaw 8 Khz, mono646.722465.5
ALaw 24KHz, mono19220.28224196.54
uLaw 24 Khz, mono19220.28224196.54
MPEG1 48KHz quality 0, stereo8816.4622491.69
MPEG1 48KHz quality 4, stereo14422.56224149.05
MPEG1 48KHz quality 7, stereo19227.81224198.23
MPEG1 48KHz quality 4, mono9616.0822499.6
MPEG1 44.1KHz quality 0, mono6512.2722467.75
MPEG1 44.1KHz quality 4, mono9015.7622493.53
MPEG1 44.1KHz quality 7, mono14025224145.6
MPEG2 16KHz quality 0, mono285.822429.3
MPEG2 16KHz quality 4, mono447.5822445.7
MPEG2 16KHz quality 7, mono6411.522466.58


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)


Audio Format (VBR)Audio Data Rate (Kbit/sec)Packet/sec (Wireshark)Overhead (bit)Total Bit Rate (Kbit/sec)
MPEG1 48KHz quality 0, stereo8841.7652115.2
MPEG1 48KHz quality 4, stereo14441.7652171.2
MPEG1 48KHz quality 7, stereo19241.7652219.2
MPEG1 48KHz quality 4, mono9641.7652123.2
MPEG1 44.1KHz quality 0, mono6538.365290
MPEG1 44.1KHz quality 4, mono9038.3652114.97
MPEG1 44.1KHz quality 7, mono14038.3652164.97
MPEG2 16KHz quality 0, mono2827.865246.12
MPEG2 16KHz quality 4, mono4427.865262.12
MPEG2 16KHz quality 7, mono6427.865282.12
Audio Format (STL)Audio Data Rate (Kbit/sec)Packet/sec (Wireshark)Overhead (bit)1Total Bit Rate (Mbit/sec)2
ALaw 8 Khz, mono64506200.09
PCM MSB 16 bit 8 KHz mono128506200.16
PCM MSB 16 bit 11.025 KHz mono176.4506200.2
PCM MSB 16 bit 12 KHz mono192506200.22
PCM MSB 16 bit 16 KHz mono256506200.29
PCM MSB 16 bit 22.050 KHz mono352.8506200.38
PCM MSB 16 bit 24 KHz mono384506200.41
PCM MSB 16 bit 32 KHz mono512506200.54
PCM MSB 16 bit 44.1 KHz mono705.6706200.75
PCM MSB 16 bit 48 KHz mono768756200.81
PCM MSB 16 bit 8 KHz stereo256506200.29
PCM MSB 16 bit 11.025 KHz stereo352.8506200.38
PCM MSB 16 bit 12 KHz stereo384506200.41
PCM MSB 16 bit 16 KHz stereo512506200.54
PCM MSB 16 bit 22.050 KHz stereo705.6706200.75
PCM MSB 16 bit 24 KHz stereo768756200.81
PCM MSB 16 bit 32 KHz stereo10241006201.08
PCM MSB 16 bit 44.1 KHz stereo1411.21376201.5
PCM MSB 16 bit 48 KHz stereo15361506201.63

1 - in PCM and A/uLaw streaming mode, there is not MPA wrapper.

2 - 1 Mbit = 1000 Kbit.


Without Ethernet Overhead

Audio Format (VBR)Audio Data Rate (Kbit/sec)Packet/sec (Wireshark)Overhead (bit)Total Bit Rate (Kbit/sec)
MPEG1 48KHz quality 0, stereo8841.7352102.67
MPEG1 48KHz quality 4, stereo14441.7352158.67
MPEG1 48KHz quality 7, stereo19241.7352206.67
MPEG1 48KHz quality 4, mono9641.7352110.67
MPEG1 44.1KHz quality 0, mono6538.335278.48
MPEG1 44.1KHz quality 4, mono9038.3352103.48
MPEG1 44.1KHz quality 7, mono14038.3352153.48
MPEG2 16KHz quality 0, mono2827.835237.78
MPEG2 16KHz quality 4, mono4427.835253.78
MPEG2 16KHz quality 7, mono6427.835273.78
Audio Format (STL)Audio Data Rate (Kbit/sec)Packet/sec (Wireshark)Overhead (bit)1Total Bit Rate (Mbit/sec)2
ALaw 8 Khz, mono64503200.08
PCM MSB 16 bit 8 KHz mono128503200.14
PCM MSB 16 bit 11.025 KHz mono176.4503200.2
PCM MSB 16 bit 12 KHz mono192503200.2
PCM MSB 16 bit 16 KHz mono256503200.27
PCM MSB 16 bit 22.050 KHz mono352.8503200.36
PCM MSB 16 bit 24 KHz mono384503200.4
PCM MSB 16 bit 32 KHz mono512503200.52
PCM MSB 16 bit 44.1 KHz mono705.6703200.72
PCM MSB 16 bit 48 KHz mono768753200.8
PCM MSB 16 bit 8 KHz stereo256503200.27
PCM MSB 16 bit 11.025 KHz stereo352.8503200.36
PCM MSB 16 bit 12 KHz stereo384503200.4
PCM MSB 16 bit 16 KHz stereo512503200.52
PCM MSB 16 bit 22.050 KHz stereo705.6703200.72
PCM MSB 16 bit 24 KHz stereo768753200.8
PCM MSB 16 bit 32 KHz stereo10241003201.05
PCM MSB 16 bit 44.1 KHz stereo1411.21373201.45
PCM MSB 16 bit 48 KHz stereo15361503201.58

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]].

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.