Friday, December 19, 2008

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

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.
please download the PDF for more details:
http://openvox.com.cn/downloadsFile/Test_Report_of_Atom_CPU_with_asterisk_G729-G711.pdf

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

25 comments:

助けて~! said...

凄く困ってます☆ love-cac@docomo.ne.jp すぐに連絡ください

精神年齢 said...

あなたの精神年齢を占ってみよう!当サイトは、みんなの「精神年齢度」をチェックする性格診断のサイトです。精神年齢度には、期待以上の意外な結果があるかも??興味がある方はぜひどうぞ

出張ホスト said...

マダムと甘い時間を過ごしてみませんか?性欲を持て余しているセレブたちは出張ホストサービスで男性を探し、セックスを求めているのです。ホスト希望の方なら容姿や年齢は一切不問!ご近所の女性を探して、多額の報酬をゲットしよう

メル友募集 said...

今まで同い年や年下としか付き合ったことなくて疲れてしまいました…優しくリードしてくれるような大人の男性に憧れます。 ayu-cha@docomo.ne.jpよかったらメールしてみてください。

逆円助 said...

さあ、今夏も新たな出会いを経験してみませんか?当サイトは円助交際の逆、つまり女性が男性を円助する『逆円助交際』を提供します。逆円交際を未経験の方でも気軽に遊べる大人のマッチングシステムです。年齢上限・容姿・経験一切問いません。男性の方は無料で登録して頂けます。貴方も新たな出会いを経験してみませんか

精神年齢 said...

みんなの精神年齢を測定できる、メンタル年齢チェッカーで秘められた年齢がズバリわかっちゃう!かわいいあの子も実は精神年齢オバサンということも…合コンや話のネタに一度チャレンジしてみよう

童貞卒業 said...

童貞卒業を考えているなら、迷わずココ!今まで童貞とヤッた事がない女性というのは意外と多いものです。そんな彼女たちは一度童貞とやってみたいと考えるのは自然な事と言えるでしょう。当サイトにはそんな好奇心旺盛な女性たちが登録されています

熟女 said...

熟女だって性欲がある、貴方がもし人妻とSEXしてお金を稼ぎたいのなら、一度人妻ワイフをご利用ください。当サイトには全国各地からお金持ちのセレブたちが集まっています。女性から男性への報酬は、 最低15万円からと決めております。興味のある方は一度当サイト案内をご覧ください

小向美奈子 said...

話題の小向美奈子ストリップを盗撮!入念なボディチェックをすり抜けて超小型カメラで撮影した神動画がアップ中!期間限定配信の衝撃的映像を見逃すな

素人 said...

癒されたい女性や、寂しい素人女性を心も体も癒してあげるお仕事をご存じですか?女性宅やホテルに行って依頼主の女性とHしてあげるだけで高額の謝礼を手に入れる事が出来るのです。興味のある方は当サイトTOPページをご覧ください

メル友募集 said...

最近仕事ばかりで毎日退屈してます。そろそろ恋人欲しいです☆もう夏だし海とか行きたいな♪ k.c.0720@docomo.ne.jp 連絡待ってるよ☆

動物占い said...

あなたの性格を、動物に例えて占っちゃいます。もしかしたらこんな動物かも!?動物占いをうまく使って、楽しい人間関係を築いてください

家出 said...

家出中の女性や泊まる所が無い女性達がネットカフェなどで、飲み放題のドリンクで空腹を満たす生活を送っています。当サイトはそんな女性達をサポートしたいという人たちと困っている女性たちの為のサイトです

セレブラブ said...

セレブ女性との割り切りお付き合いで大金を稼いでみませんか?女性に癒しと快楽、男性に謝礼とお互い満たしあえる当サイト、セレブラブはあなたの登録をお待ちしております。

夏フェス!! said...

夏フェス一緒に行ってくれる人募集!!夏の思い出一緒につくろぉ☆ megumi-0830@docomo.ne.jp 連絡してね♪

無料ゲーム said...

あなたのゲーマー度を無料ゲーム感覚で測定します。15個の質問に答えるだけの簡単測定で一度遊んでみませんか?ゲームが得意な人もそうでない人もぜひどうぞ。

素人 said...

Hな女性たちは素人ホストを自宅やホテルに呼び、ひとときの癒しを求めていらっしゃいます。当サイトでは男性ホスト様の人員が不足しており、一日3~4人の女性の相手をするホストもおられます。興味を持たれた方は当サイトにぜひお越しください

出会い系 said...

実は出会い系には…関係者用入り口があるのを知っていますか?広告主やスポンサー用に用意されたIDではサクラや業者が立ち入ることが出来ないようになっているのです。当サイトでは極秘に入手した関係者用URLが公開されています

逆援助 said...

男性はお金、女性は快楽を得る逆援助に興味はありませんか?お金を払っても性的欲求を満たしたいセレブ達との割り切り1日のお付き合いで当サイトでは大金を得ることができます。無料登録なのでアルバイト感覚でOK、詳しくはTOPページでどうぞ。

友達募集 said...

ホムペ完成記念!私の事みんなに知ってもらいたくて頑張りましたぁ。色々とご感想をお待ちしているので思った事を意見してください。メアドはほむぺにのせてありますぅ!★ fan.jna@docomo.ne.jp

家出 said...

夏休みで気軽に家出する女子○生が急増しています。しかし家出したはいいものの泊る所やお金が無い彼女たちは、掲示板などで泊めてくれる男性を探す子も多いようです。当掲示板にも夏休みに入ってから通常の3倍以上のメッセージが寄せられています

逆円 said...

今夏も新たな出会いを経験してみませんか?当サイトは円交の逆、つまり女性が男性を円助する『逆円交際』を提供します。未経験の方でも気軽に遊べる大人のマッチングシステムです。年齢上限・容姿・経験一切問いません。男性の方は無料で登録して頂けます。貴方も新たな出会いを経験してみませんか

人妻 said...

今最もアツイバイトは人妻とのセフレ契約です。当サイトではお金を払ってでもセフレがほしい人妻が集まり、男性会員様との逆援生活を待っています。当サイトで欲求不満の女性との出会いをしてみませんか

素人 said...

素人ホストでは、男性のテクニック次第で女性会員様から高額な謝礼がもらえます。欲求不満な人妻や、男性と出会いが無い女性達が当サイトで男性を求めていらっしゃいます。興味のある方はTOPページからどうぞ

友達募集中 said...

少し魅惑な自分をネットだから公開してみました。普段言えない事など、思い切って告白しているプロフなので興味ある方はぜひ除いてみてください連絡待ってまぁす。 hinyaaaaa@docomo.ne.jp