How to generate big number of SIP requests

淺唱寂寞╮ 提交于 2019-12-24 09:44:26

问题


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.

Thanks


回答1:


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.

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:

  • The branchid parameter on the Via header,
  • The tag parameter on the From header,
  • The Call-ID header.

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.



来源:https://stackoverflow.com/questions/7878304/how-to-generate-big-number-of-sip-requests

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!