Test report of Atom CPU with asterisk G729-g711 codec transcoding

发布于 2022-08-04 07:47:19 字数 6482 浏览 18 评论 4

Some people buy the Intel CPU (Atom 230) to build an asterisk server. I did a simple test for codec transcoding.
The purpose of test case is only for reference when you build a Atom CPU based asterisk server,
maybe the test environment is not really completed due to some limitations such as test tools, bandwidth of LAN,
Network card, version of g729 and the duration of timing, but I try to give you a picture for asterisk server with transcoding.
In this paper, I will cover installation of G729, testing tools, result of testing and some screens.  Note: please download the PDF file for more details.
1)        Installation of Open Source G729
Before installing g729 codec, make sure the asterisk server can run properly,
then go to the official website to get the binary files and copy those two files into the default path.
2)        Set testing tools
Here, three tools are used: Sipp, tpcdump and wireshark. Please go to those official websites to get those tools.
You must use tcpdump or wireshark to get a G729 code pcap file.
The easy way to get G729 file is that, using Xlite-Pro version to call other SIP phone and record down the file with G729 codec by this:
tcpdump -T rtp -vvv dst 192.168.2.108 -w g729.pcap
This should capture the RTP stream from asterisk server and save it as g729.pcap file.
You must make sure the Xlite-pro solely use G729 codec.
You also can use Wireshark to capture G729 codec and save as G729.pcap. Capturing the G729 RTP stream by Wireshark  filter:
(ip.dst == 192.168.2.10 && (rtp.p_type == 1
this will filter the G729 codec from 192.168.2.108. Once you get the G729 codec file, you put the file under pacp folder under Sipp:
After that, you have to edit the uac_pcap.xml to make sure Sipp will play with RTP stream.
Once the Sipp side is done, you have to add a sip account in asterisk server 1.
The sip is named sipp. Please add an account in asterisk sip.conf.
And you add other sip (for example 1000) account with codec allow=ulaw or alaw only. SIP 1000 will forward the sip call from Spp to asterisk 2, in asterisk 2, some sound files will be played for certain periods.
In this scenario, transcoding will be done from G729 to G711. If you do not set it properly, asterisk server will report codec compatibility error. The Sipp test can not be made, please double check that. Until this step, you can execute the Sipp command to test:
sipp –sf uac_pcap.xml –s 2005 192.168.2.108 –r 20 –rp 10000
sipp will call uac_pcap.xml file first, and go to asterisk dialplan, the context “internal” will be called with asterisk server 1. It will generate 20 calls in 10 seconds. You can test it with different time variables. You also can press =-*/ to increase the calls or decrease calls. You can monitor the calls during call connection time by running sip show channels under asterisk console,
3)        Result of Testing
The results are summarized to give users some statistical data. The scenarios are:
The scenario one:
Sipp(g711)->asterisk-1 with Atom CPU (g711)->asterisk-2(g711)
The scenario two:
Sipp(g729)->asterisk-1 with Atom CPU (g729->g711)->asterisk-2(g711)

In conclusion, codec contanscoding will consume much CPU resource. During the test, some factors must be considered. They are duration of each events, codecs, length of RTP streams, condition of Lan transmission, Network cards of asterisk servers. For Intel Atom CPU, the current calls should be limited less 30 calls. When the peak time reaches, the SIP calls will generate some warning. For further test improvement, it is very necessary to make a further investigation with g729 codec under Sipp RTP test for more accurate result.
References:
www.openvox.com.cn
asterisk.org
voip-info.org
http://www.woojar.com/sipp-testing-about-rtp.html
http://www.voipphreak.ca/2007/04 ... risk-14-pbx-system/
http://sipp.sourceforge.net/wiki ... k_server_using_SIPp
http://sipx-wiki.calivia.com/ind ... n_performance_tests
http://www.transnexus.com/White% ... _as_a_SIP_B2BUA.pdf
http://transnexus.blogspot.com/2 ... rmance-testing.html
http://callsolutions.org/voip-tu ... -14-h323-g729-g723/
http://asteriskglobe.blogspot.co ... -discussion-on.html
http://www.wireshark.org/
http://www.asteriskblog.com/sniffin-the-voip-traffic/
http://www.panoramisk.com/151/analyzing-voip-with-wireshark/en/

Test environments:
Cnetos-5.0
Intel Atom 230 CPU
Tools: Sipp-3.1, tcpdump and Wireshark
Asterisk-1.4.21

[ 本帖最后由 zhulizhong 于 2008-11-6 22:16 编辑 ]

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

不必了 2022-08-16 19:44:24

atom做viop只能用在小企业了,

G729太耗cpu了

[ 本帖最后由 xieweihua 于 2008-11-28 22:07 编辑 ]

清晰传感 2022-08-14 10:01:01

绝对好的一个广告机会

经过这几个月的测试分析,我知道怎么降低成本了。还记得我在论坛里发的1700的IPPBX吧.

现在我能做到最低1400元了。

打个广告,商店地址: http://shop36502387.taobao.com/

相对绾红妆 2022-08-08 21:57:20

问题是atomic整体下来价格还是不便宜呢。正考虑用这东西作点啥,谁有好的产品需要作么?

染火枫林 2022-08-06 09:27:32

能否在 Pentium(R) 4 CPU 3.00GHz 双核 机器上测试一下看看性能如何?
model name      : Intel(R) Pentium(R) 4 CPU 3.00GHz
cpu MHz         : 3014.704
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe constant_tsc pni monitor ds_cpl cid
阿童木的CPU我还没用过呢.

这样我可以看看和我的g723/g729的处理能力做一下比较。

如果有测试结果,请 email 我一下, hexiaoyuan@gmail.com
谢谢!

[ 本帖最后由 xyhe 于 2008-11-22 11:22 编辑 ]

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文