Calculating Bandwidth – VoIP
Typically when deploying VoIP in the enterprise your going to be dealing with G.711 and/or G.729 codecs. Â Both of these codecs sample at 10ms intervals. Â The default is to usually send packets every 20ms, however in some situations one might see this set to every 30ms.
If your doing packets every 20ms this creates about 50 packets per second. Â If your set to 30ms you will be creating 33.3 packets per second.
Lets focus on G.711 for a second. Â G.711 has a sample size of 80 bytes. Â So if we are set to use the default voice payload freq. of 20ms and we know that samples are taken every 10ms then our G.711 voice payload will be two samples of 80bytes = 160bytes of voice in every packet.
Thats only part of the equation though, you can’t forget about headers!
You will need to know what headers your going to be dealing with such as Layer 2, Layer 3 or both combined? And possibly WAN headers also.
In a typical ethernet packet your looking at about 58 bytes of header overhead. Â 18 bytes of ethernet (Layer 2) and 40 bytes of IP, UDP and RTP (Layer 3). Â So with your 160 bytes of voice and 58 bytes of header overhead your dealing with 218 byte packets.
In this example we are using the default 20ms voice payload freq. which we said corresponds to about 50 packets per second right? Â So we take our total packet size of 218bytes x 8bits x 50 packets per seconds = 87.2 Kb/s for every voice call.
