SIP协议Word文件下载.docx

上传人:b****1 文档编号:4562839 上传时间:2023-05-03 格式:DOCX 页数:24 大小:105.06KB
下载 相关 举报
SIP协议Word文件下载.docx_第1页
第1页 / 共24页
SIP协议Word文件下载.docx_第2页
第2页 / 共24页
SIP协议Word文件下载.docx_第3页
第3页 / 共24页
SIP协议Word文件下载.docx_第4页
第4页 / 共24页
SIP协议Word文件下载.docx_第5页
第5页 / 共24页
SIP协议Word文件下载.docx_第6页
第6页 / 共24页
SIP协议Word文件下载.docx_第7页
第7页 / 共24页
SIP协议Word文件下载.docx_第8页
第8页 / 共24页
SIP协议Word文件下载.docx_第9页
第9页 / 共24页
SIP协议Word文件下载.docx_第10页
第10页 / 共24页
SIP协议Word文件下载.docx_第11页
第11页 / 共24页
SIP协议Word文件下载.docx_第12页
第12页 / 共24页
SIP协议Word文件下载.docx_第13页
第13页 / 共24页
SIP协议Word文件下载.docx_第14页
第14页 / 共24页
SIP协议Word文件下载.docx_第15页
第15页 / 共24页
SIP协议Word文件下载.docx_第16页
第16页 / 共24页
SIP协议Word文件下载.docx_第17页
第17页 / 共24页
SIP协议Word文件下载.docx_第18页
第18页 / 共24页
SIP协议Word文件下载.docx_第19页
第19页 / 共24页
SIP协议Word文件下载.docx_第20页
第20页 / 共24页
亲,该文档总共24页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

SIP协议Word文件下载.docx

《SIP协议Word文件下载.docx》由会员分享,可在线阅读,更多相关《SIP协议Word文件下载.docx(24页珍藏版)》请在冰点文库上搜索。

SIP协议Word文件下载.docx

SIPp是一个测试SIP协议性能的工具软件。

这是一个GPL的开放源码软件。

它包含了一些基本的用户代理工作流程(UAC和UAS),并可使用INVITE和BYE建立和释放多个呼叫。

它也可以读XML的场景文件,即描述任何性能测试的配置文件。

它能动态显示测试运行的统计数据(呼叫速率、信号来回的延迟,以及消息统计)。

周期性地把CSV统计数据转储,在多个套接字上的TCP和UDP,利用重新传输管理的多路复用。

在场景定义文件中可以使用正规表达式,动态调整呼叫速率。

SIPp可以用来测试许多真实的SIP设备,如SIP代理,B2BUAs,SIP媒体服务器,SIP/x网关,SIPPBX,等等,它也可以模仿上千个SIP代理呼叫你的SIP系统。

2安装

四种安装方法(本文使用第四种安装):

1.没有TLS支持与密码验证支持

#tar-xvfsipp-xxx.tar.gz

#cdsipp-xxx

#make

Make出来的sipp文件就是一个可执行的文件,只需要搭配场景xml文件与csv文件即可进行SIP测试

2.拥有TLS支持与密码验证支持,但是不支PCAP语音播放

#makeossl

这样编译出来的文件就加入了TLS至于与密码验证支持功能sipp软件了。

3.支持PCAPPlay,但是没有密码验证支持:

(PCAPPlay即为可以进行RTP语音,但是没有407AUTH验证)

#makepcapplay

4.支持PCAP声音文件播放,而且支持密码验证支持:

(支持407auth验证支持)

#tar-xvfsipp-xxx.tar

#makepcapplay_ossl

3使用方法

./sipp-sfreg.xml-infreg.csv-p6077-i<

local-ip>

-m4<

ipaddressofregistrar>

:

5060

-sf读取场景文件

-inf读取csv文件

-p本机采用端口

-i本机IP

-m要进行压力测试的次数

Ipaddressofregistrar要进行压力测试的IP地址

4情景

Uac(192.216.2.224)Asterisk(192.216.224.183)Uas

4.1注册

模拟若干个注册包到asterisk,asterisk回100tring和401authentication,SIPp发送invite带auth验证消息到asterisk,asterisk回100tring和200ok。

4.1.1测试

./sipp-r1-l1-sfreg.xml-inftest.csv192.216.224.183

4.1.2reg.xml

<

?

xmlversion="

1.0"

encoding="

ISO-8859-1"

?

>

!

DOCTYPEscenarioSYSTEM"

sipp.dtd"

--Thisprogramisfreesoftware;

youcanredistributeitand/or-->

--modifyitunderthetermsoftheGNUGeneralPublicLicenseas-->

--publishedbytheFreeSoftwareFoundation;

eitherversion2ofthe-->

--License,or(atyouroption)anylaterversion.-->

---->

--Thisprogramisdistributedinthehopethatitwillbeuseful,-->

--butWITHOUTANYWARRANTY;

withouteventheimpliedwarrantyof-->

--MERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.Seethe-->

--GNUGeneralPublicLicenseformoredetails.-->

--YoushouldhavereceivedacopyoftheGNUGeneralPublicLicense-->

--alongwiththisprogram;

ifnot,writetothe-->

--FreeSoftwareFoundation,Inc.,-->

--59TemplePlace,Suite330,Boston,MA02111-1307USA-->

--Sippdefault'

branchc'

scenario.-->

--首先发送SIP注册消息,Register。

里面的From与To是注册的号码-->

scenarioname="

branch_client"

<

sendretrans="

500"

[CDATA[

REGISTERsip:

[remote_ip]SIP/2.0

Via:

SIP/2.0/[transport][local_ip]:

[local_port];

branch=[branch]

From:

[field0]<

sip:

[field0]@[local_ip]:

[local_port]>

;

tag=[call_number]

To:

[field0]@[remote_ip]:

[remote_port]>

Call-ID:

[call_id]

CSeq:

1REGISTER

Contact:

sip:

[local_port]

Content-Length:

0

Expires:

300

]]>

/send>

recvresponse="

100"

optional="

true"

/recv>

--SIPp会收到来自AST要求验证的401消息体,Recv意思为Receive,接收到来自AST的401要求验证的消息,Next为如果收到401,那么转至Label为1的地方进行操作-->

401"

auth="

next="

1"

--sendinvitewithauthenticationmessages-->

--开始发送Register消息,里面将把验证的密码消息发送给对方,在消息体里面是抓不到密码消息的,而且已经被md5方式加密过。

-->

labelid="

/>

[remote_port]SIP/2.0

2REGISTER

[field1]

[len]

3600

--收到来自AST的200ACK消息后,系统转至等待1000ms,或者可以直接去掉该设置-->

200"

2"

pausemilliseconds="

1000"

--Keepthecallopenforawhileincasethe200islosttobe-->

--abletoretransmititifwereceivetheBYEagain.-->

4000"

--definitionoftheresponsetimerepartitiontable(unitisms)-->

ResponseTimeRepartitionvalue="

10,20,30,40,50,100,150,200"

--definitionofthecalllengthrepartitiontable(unitisms)-->

CallLengthRepartitionvalue="

10,50,100,500,1000,5000,10000"

/scenario>

4.1.3test.csv

SEQUENTIAL

6666609;

[authenticationusername=6666609password=6666609]

4.2呼叫

SIPp发送Invite消息到asterisk,AST回407要求密码验证,SIPp返回200ok,并发送invite带密码消息到asterisk,asterisk返回200OK,接着返回180,SIPp此时开始传输RTP到asterisk,延迟5000ms发送DTMF=1的号码,然后SIPp发送Bye消息到asterisk,asterisk返回200ok给SIPp。

4.2.1测试

./sipp-r1-i192.216.2.224-l1-sfuac-media.xml-inftest.csv192.216.224.183

4.2.2uac-media.xml

--Sipp'

uac'

scenariowithpcap(rtp)play-->

UACwithmedia"

--Inclientmode(sippplacingcalls),theCall-IDMUSTbe-->

--generatedbysipp.Todoso,use[call_id]keyword.-->

INVITEsip:

[field1]@[remote_ip]:

[field1]<

1INVITE

Max-Forwards:

70

Subject:

PerformanceTest

Content-Type:

application/sdp

v=0

o=user1536557652353687637INIP[local_ip_type][local_ip]

s=-

c=INIP[local_ip_type][local_ip]

t=00

m=audio[auto_media_port]RTP/AVP8

a=rtpmap:

8PCMA/8000

101telephone-event/8000

a=fmtp:

1010-11,16

407"

--Byaddingrrs="

(RecordRouteSets),theroutesets-->

--aresavedandusedforfollowingmessagessent.Usefultotest-->

--againststatefulSIPproxies/B2BUAs.-->

--Packetlostcanbesimulatedinanysend/recvmessageby-->

--byaddingthe'

lost="

10"

'

.Valuecanbe[1-100]percent.-->

send>

ACKsip:

[peer_tag_param]

1ACK

2INVITE

[field2]

c=INIP[media_ip_type][media_ip]

m=audio[auto_media_port]RTP/AVP0

0PCMU/8000

183"

180"

rtd="

2ACK

--Playapre-recordedPCAPfile(RTPstream)-->

nop>

action>

execplay_pcap_audio="

pcap/g711a.pcap"

/action>

/nop>

--Pause8seconds,whichisapproximatelythedurationofthe-->

--PCAPfile-->

5000"

--PlayanoutofbandDTMF'

1'

-->

pcap/dtmf_2833_1.pcap"

--The'

crlf'

optioninsertsablanklineinthestatisticsreport.-->

BYEsip:

2BYE

Conten

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 求职职场 > 简历

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2