<div dir="ltr">Dear Hamstra thanks you for your suggestion. <div><br></div><div>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. <br><div><br></div><div>modparam("pike", "sampling_time_unit", 1)</div><div>modparam("pike", "reqs_density_per_unit", 500)</div><div><br>If I want to block any IP sending more than  500 CPS, what should be the values of these two params?<br><br></div><div>Thank you for your time. </div><div><br></div><div>Best wishes,  </div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 22 July 2016 at 02:16, Aaron Hamstra <span dir="ltr"><<a href="mailto:ahamstra@carnegietechnologies.com" target="_blank">ahamstra@carnegietechnologies.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>

<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>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.</p>
<p><br>
</p>
<p>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.</p>
<p><br>
</p>
<p>If it is not enabled, it must be something else completely.</p>
</div>
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> sr-users <<a href="mailto:sr-users-bounces@lists.sip-router.org" target="_blank">sr-users-bounces@lists.sip-router.org</a>> on behalf of Aqs Younas <<a href="mailto:aqsyounas@gmail.com" target="_blank">aqsyounas@gmail.com</a>><br>
<b>Sent:</b> Thursday, July 21, 2016 3:40:02 PM<br>
<b>To:</b> <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<b>Subject:</b> [SR-Users] Kamailio stops accepting calls for few seconds after 80 CPS.</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">Greeting list.
<div><br>
</div>
<div>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. </div>
<div><br>
</div>
<div>This is my dispatcher code snippet. </div>
<div><br>
</div>
<div>
<div>        $avp(quality) = "1";</div>
<div>        ds_select_dst("$avp(quality)", "4");</div>
<div>        route(RELAY);</div>
</div>
<div><br>
</div>
<div>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. </div>
<div><br>
</div>
<div>100 CPS for sip proxy is not hot cake. </div>
<div><br>
</div>
<div>Also, I see in <a href="http://www.kamailio.org/docs/openser-performance-tests/" target="_blank">http://www.kamailio.org/docs/openser-performance-tests/</a> tests were made with -l27 and -m7000 which looks wronged to me.<br>
<br>
<span style="color:rgb(0,0,0);font-family:monospace;font-size:medium;white-space:pre-wrap;background-color:rgb(255,255,221)">./sipp -sf
</span><a href="http://www.kamailio.org/docs/openser-performance-tests/data/uac_inv.xml" style="color:rgb(4,31,197);text-decoration:none;font-family:monospace;font-size:medium;white-space:pre-wrap" target="_blank">uac_inv.xml</a><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium;white-space:pre-wrap;background-color:rgb(255,255,221)">
 -rsa <a href="http://192.168.2.102:5060" target="_blank">192.168.2.102:5060</a> <a href="http://192.168.2.102:5070" target="_blank">
192.168.2.102:5070</a> -m 200000 -r 7000 -d 1 -l 27 </span><br>
<br>
There must be something wrong in my configuration since this cps is very low. <br>
<br>
<div>kamailio -version</div>
<div>version: kamailio 4.4.1 (x86_64/linux) 90be8b</div>
<div>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</div>
<div>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB</div>
<div>poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.</div>
<div>id: 90be8b</div>
</div>
<div><br>
<br>
<div>SHM_MEMORY=768</div>
<div>PKG_MEMORY=64</div>
</div>
<div><br>
Any suggestion is much appreciated. </div>
<div><br>
</div>
<div>Best Regards,</div>
</div>
</div>
</div></div></div>

<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>