文章目录
- 作为服务端时,source ip 随机的问题
- 命令示例
- bind_local
- watchdog_minor_maxtriggers
作为服务端时,source ip 随机的问题
https://sipp.sourceforge.net/doc/reference.html
https://github.com/SIPp/sipp/issues/83
https://github.com/SIPp/sipp/commit/cf588dcbfe9224f4a9f4d9ea883a0a0151e663b9
后续应该可以绑定到-i指定的ip上去了。需要确认版本。从3.5开始有的这个功能。
命令示例
sipp.latest 192.333.444.2:5061 -rsa 192.444.555.2 5061 -inf ./data/datafile -sf /home/_uac_invite -bind_local -i 192.222.128 -p 5060 -r 10.50 -key mode c2p -key type orig -key pool 0 -rp 100 -nd -aa -t t1 -watchdog_interval 400 -buff_size 262144 -trace_err -trace_logs
bind_local
-bind_local : Bind socket to local IP address, i.e. the local IP address is used as the
source IP address. If SIPp runs in server mode it will only listen on the
local IP address instead of all IP addresses.
watchdog_minor_maxtriggers
{“watchdog_minor_maxtriggers”, “How many times the minor watchdog timer can be tripped before the test is terminated. Default is 120.”, SIPP_OPTION_INT, &watchdog_minor_maxtriggers, 1},
20***: The minor watchdog timer 1000ms has been tripped (1250), 115 trips remaining…
20***: The watchdog timer has tripped the minor threshold of 1000ms too many times (121 out of 120 allowed) (3000 out of 7 major 10ms timeouts tripped)
一半说来,如果有这个strip的日志,代表当前CPU的压力比较大,处理上慢于定时器。
注释:
// Check if either watchdog has taken longer than expected to run,
// and if so, warn that we are overloaded.
// If the watchdogs have tripped too many times, end the SIPp run.