12-27-2010 11:27 AM
I am trying to make sure I can calculate bandwidth requirements for different vocoders correctly. Looking at G.711 with a sample size of 240, I get the right bandwidth for Frame Realy with and without cRTP. But ethernet gives me trouble. I am using the following method:
Total packet size (bytes) = (FrameRelay header of 6 bytes) + (IP/UDP/RTP header of 40 bytes) + (voice payload of 240 bytes) = 286 bytes
Total packet size (bits) = (240 bytes) * 8 bits per byte = 1920 bits
PPS = (64000 bps codec bit rate) / (1920 bits) = 33.3333 pps
Bandwidth per call = voice packet size (286 bits) * 33.33333 pps = 76267 Kbps
I get the right number of compressed traffic using cRTP. But when I try to calculate this for ethernet with a 18 byte header I get the wrong number. Would someone validate this? What do you get? Is my source incorrect? There is no errata for the text I am looking at. :-(
Message was edited by: sansari
Is the codec sample interval value ever going to change the result of this calculation? I am looking at the url: http://www.cisco.com/en/US/tech/tk652/tk698/technologies_tech_note09186a0080094ae2.shtml , and I am geting the same values. Seems Voice Payload Size is important; not the codec sample size in ms. I am just wondering if I have not run into an example where the sample size would change the packets per second. Seems sample size is a result of the speed of the coder.
12-31-2010 04:29 AM
For Ethernet at 50 packet per second (20 ms sampling)
Total packet size (bytes) = (Ethernet header 18 bytes) + (IP/UDP/RTP header of 40 bytes) + (voice payload of 160 bytes) = 218 bytes
PPS = (8 Kbps codec bit rate) / (160 bits) = 50 pps
Total packet size (bits) = (218 bytes) * 8 bits per byte = 1744 bits
Bandwidth = 1744 * 50 pps = 87200 bps
For Ethernet at 33.33 pps (30ms sampling)
Total packet size (bytes) = (Ethernet header 18 bytes) + (IP/UDP/RTP header of 40 bytes) + (voice payload of 240 bytes) = 298 bytes
PPS = (8 Kbps codec bit rate) / (240 bits) = 33.3333 pps
Total packet size (bits) = (298 bytes) * 8 bits per byte = 2384 bits
Bandwidth per call = 2384 * 33.333 = 94466 bps
I hope this helps.
Pierre.
07-13-2017 03:26 PM
Check out the Voice Codec Bandwidth Calculator under Tools and Resources:
https://cway.cisco.com/tools/vccalc/
Jerry J. Anderson, CCIE #5000
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide