如何生成大量的SIP请求 [英] How to generate big number of SIP requests

查看:333
本文介绍了如何生成大量的SIP请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要测试一个处理SIP请求的应用程序.目前,我想测试应用程序的性能,因此我需要一种生成大量SIP请求的方法. 我知道有用于此目的的工具(例如SipP),但我不知道一台计算机在特定时间间隔内可以真正发送的最大请求数量是多少. 我从未进行过此类测试,我需要帮助.

I need to test an application that processes SIP requests. For now, I want to test the performance of the application, so I need a way to generate a big number of SIP requests. I know there are tools for this (like SipP), but I don't know what is the maximum number of requests that a single computer can really send in a particular time interval. I never done this type of test, i need help.

谢谢

推荐答案

很好的sipp可以快速生成请求,并且如果您正在测试呼叫建立和拆除,即INVITE请求d关联的事务处理,则几乎可以肯定工作工具.

Well sipp can generate requests pretty quickly and if you're testing call set up and tear down, i.e. INVITE requests an d associated transaction processing, it's almost certainly the tool for the job.

如果您不关心SIP事务处理,而只想用SIP请求轰炸服务器,则可以使用UDP套接字启动控制台应用程序,并通过使用模板请求并修改以下内容来发送虚拟请求:

If you're not concerned about SIP transaction processing and instead just want to bombard your server with SIP requests you could just whip up a console application with a UDP socket and send dummy requests by using a template request and modifying the following:

  • Via标头上的branchid参数
  • "From"标头上的tag参数,
  • Call-ID标头.

由于您的应用程序仅需执行几个字符串搜索并替换,并且通过UDP发送,因此它生成请求的速度可能比相同硬件上的服务器快100到1000倍,因此需要解析和理解请求,将能够对其进行处理.

Since your app will only be doing a few string search and replaces and a UDP send it will be able to generate requests probably a 100 to 1000 times faster than a server on the same hardware, that needs to parse and understand the requests, will be able to process them.

这篇关于如何生成大量的SIP请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆