免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 8422 | 回复: 4
打印 上一主题 下一主题

Test report of Atom CPU with asterisk G729-g711 codec transcoding [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-06 22:04 |只看该作者 |倒序浏览
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 编辑 ]

table1.gif (9.94 KB, 下载次数: 77)

table1.gif

g729-ulaw-tu.gif (5.06 KB, 下载次数: 69)

g729-ulaw-tu.gif

13.gif (10.73 KB, 下载次数: 81)

13.gif

122223.gif (36.2 KB, 下载次数: 60)

122223.gif

g729-so.gif (5.29 KB, 下载次数: 72)

g729-so.gif

g729-pcap.gif (4.48 KB, 下载次数: 86)

g729-pcap.gif

uac_pcap.gif (11.04 KB, 下载次数: 73)

uac_pcap.gif

Test Report of Atom CPU with asterisk G729-G711.pdf

249.63 KB, 下载次数: 165

论坛徽章:
0
2 [报告]
发表于 2008-11-22 11:19 |只看该作者
能否在 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 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2008-11-25 14:04 |只看该作者
问题是atomic整体下来价格还是不便宜呢。正考虑用这东西作点啥,谁有好的产品需要作么?

论坛徽章:
0
4 [报告]
发表于 2008-11-28 14:54 |只看该作者
绝对好的一个广告机会

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

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

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

论坛徽章:
0
5 [报告]
发表于 2008-11-28 22:02 |只看该作者
atom做viop只能用在小企业了,

G729太耗cpu了

[ 本帖最后由 xieweihua 于 2008-11-28 22:07 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP