Bandwidth = package length × packets per second
= Package length × (1/package cycle)
= (Ethernet header + IP header + UDP header + RTP Header + payload) × (1/packaging cycle)
= (208bit + 160bit + 64bit + 96bit + payload) × (1/package cycle)
= (528bit + (package cycle (seconds) × number of bits per second) × (1/package cycle)
= (528/packaging cycle) + bits per second
According to the above formula:
G711: 20 ms package, bandwidth (528/20 + 64) kbit/s = 90.4 kbit/s
G729: 20 ms package, bandwidth (528/20 + 8) kbit/s = 34.4 kbit/s
G723: 5.3 K, 30 ms package, bandwidth (528/30 + 5.3) kbit/s = 22.9 kbit/s
In the industry, the following table lists the IP network bandwidth coefficient and Ethernet bandwidth coefficient to design the network bandwidth:
Encoding/decoding technology compression rate (Kbps) Packaging cycle (MS) IP network bandwidth coefficient Ethernet bandwidth Coefficient
G.711 A/u 64 20 1.25 1.41
G.729 a/B 8 20 0.38 0.54
G.723.1 (5.3 kbit/s) 5.3 30 0.27 0.37
G.723.1 (6.3 kbit/s) 6.3 30 0.25 0.36
H.263 (384 kbit/s) ≈ 384 10 6 6.2
Note: When some encoding method is used, multiply 64 K by the corresponding bandwidth coefficient to obtain the actual bandwidth occupied by the method. Of course, if it is a relay interface, you also need to consider that signaling occupies a certain amount of bandwidth, which is generally calculated according to 2.5%.
If you do not understand the above calculation method, remember the following results:
G711 actual bandwidth usage: 90.4 kbit/s, 100 lines, and 9 Mbps
G729 actual bandwidth usage: 34.4 kbit/s, 100 lines, and 3.4 Mbps
G723 actual bandwidth usage: 22.9 kbit/s, 100 lines, and 2.2 Mbps
Winsip Diagram