分类目录

Howto: Voip Performance test – SIPp

Homepage: http://sipp.sourceforge.net/

测试软件
SIPp v3.2-TLS-PCAP, version unknown, built Feb 17 2011, 10:19:21.

安装编译:
下载源代码后重新编译
# wget http://sourceforge.net/projects/sipp/files/sipp/3.2/sipp.svn.tar.gz/download?use_mirror=ncu
# tar zxvf sipp.svn.tar.gz
# cd sipp.svn
# make pcapplay_ossl

备注:测试RTP需要pcap包,测试认证需要OpenSSL包,e.g.
* C++ Compiler
* curses or ncurses library
* For authentication and TLS support: OpenSSL >= 0.9.8
* For pcap play support: libpcap and libnet
* For distributed pauses: Gnu Scientific Libraries

测试脚本命令
sipp -sf meeting.xml -inf meeting.csv -l 60 -m 60 -i 192.168.1.67 192.168.1.40:5060

测试流程
1. 创建会议接入号:10000;
2. 创建会议:123456,密码:123;

SIPp UAC MCU
|(1) INVITE |
|——————>|
|(2) 100 (optional) |
|<——————|
|(3) 183 (optional) |
|<——————|
|(4) 200 |
|<——————|
|(5) ACK |
|——————>|
| |
|(6) RFC2833 DIGIT |
| (123456#) |
| |
|==================>|
|(7) RFC2833 DIGIT |
| |
| (123#) |
|==================>|
| |
|(8) RTP send (600s)|
|==================>|
| |
|(9) BYE |
|——————>|
|(10) 200 |
|<——————|

相关脚本:
gennum.sh

#!/bin/bash
echo "SEQUENTIAL" > meeting.csv
i=80000
while [ $i != 89999 ]
do
i=$(($i+1))
echo "$i;10000" >>meeting.csv
# j=$(($i+1))
#echo "$i;[authentication username=$i password=$i]" >>meeting.csv
done

meeting.csv

SEQUENTIAL
80001;10000
80002;10000
80003;10000

meeting.sh

./sipp -sf meeting.xml -inf meeting.csv -p 10000 -l 60 -m 10000 -i 192.168.1.67 192.168.1.40:15060

meeting.xml
参考uac_pcap.xml

Refer to:
SIP压力测试最好的工具,SIPp的安装与使用

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>