Woody Home Page
 
   
Speex Bandwidth Usage with IAX2 Protocol
  
Nov 10, 2007
SIP was planned as a simple VoIP protocol when H.323 was popular years ago. However it is not simple at all today. IAX2 is the native protocol of Asterisk system. It is a true simple VoIP protocol. We used only 19k bytes binary code for IAX2 protocol with AR1688 software, and used 44k bytes on SIP.
IAX2 also uses less bandwidth than SIP when using the same codec. It does not use RTP protocol for voice data. Most voice data was packaged in "Mini Frame", which has only 4 bytes head, less than the 12 bytes header of RTP.
Following the same way we calculated with SIP, the total number in an IAX2 and Speex ethernet packet is (50 + x) bytes. When 2 frames (40ms) of Speex data is packed in one ethernet frame, the actual bandwidth usage with different bitrate are in the table below.
(50 + 2x) / 5 is coming from: 8kbps * ((50 + 2x) / 2x) * (x / 20). 8kbps is the bitrate same as 20 bytes in every 20 miliseconds.
Bitrate (kbps) 2.15 3.95 5.95 8 11 15 18.2 24.6
20ms frame (x byte) 6 10 15 20 28 38 46 62
SIP (58 + 2x) / 5 (kbps) 14 15.6 17.6 19.6 22.8 26.8 30 36.4
IAX2 (50 + 2x) / 5 (kbps) 12.4 14 16 18 21.2 25.2 28.4 34.8

No comments for this page yet.

More options? Please login or register account.