Dear Hamstra thanks you for your suggestion. 

Surely it was pike module that was kicking in and blocking my IP address. But I am unable to clearly understand these two params of pike module. 

modparam("pike", "sampling_time_unit", 1)
modparam("pike", "reqs_density_per_unit", 500)

If I want to block any IP sending more than  500 CPS, what should be the values of these two params?

Thank you for your time. 

Best wishes,  


On 22 July 2016 at 02:16, Aaron Hamstra <ahamstra@carnegietechnologies.com> wrote:

I do not recall if pike is enabled by default in the base config file or not, but you may be running into it blocking you.


Check to see if WITH_ANTIFLOOD is defined.  If it is and you want it you will need to adjust your pike modparams.  If it is enabled, and you do not needed remove the define.


If it is not enabled, it must be something else completely.


From: sr-users <sr-users-bounces@lists.sip-router.org> on behalf of Aqs Younas <aqsyounas@gmail.com>
Sent: Thursday, July 21, 2016 3:40:02 PM
To: sr-users@lists.sip-router.org
Subject: [SR-Users] Kamailio stops accepting calls for few seconds after 80 CPS.
 
Greeting list.

I am doing the load test of Kamailio with SIPp using most basic script(kamailio.cfg) with logging level set to minimum to dispatch requests to SIPp UAS. 

This is my dispatcher code snippet. 

        $avp(quality) = "1";
        ds_select_dst("$avp(quality)", "4");
        route(RELAY);

At 70 CPS calls work fine. But if I increase CPS to 80, Kamailio stops accepting calls for few seconds and comes to life after being idle for some time. 

100 CPS for sip proxy is not hot cake. 

Also, I see in http://www.kamailio.org/docs/openser-performance-tests/ tests were made with -l27 and -m7000 which looks wronged to me.

./sipp -sf uac_inv.xml -rsa 192.168.2.102:5060 192.168.2.102:5070 -m 200000 -r 7000 -d 1 -l 27

There must be something wrong in my configuration since this cps is very low. 

kamailio -version
version: kamailio 4.4.1 (x86_64/linux) 90be8b
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 90be8b


SHM_MEMORY=768
PKG_MEMORY=64

Any suggestion is much appreciated. 

Best Regards,

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users