<div dir="ltr"><div>Thank you for detailed reply. I will choose to implement on Opensips. I would also prefer performance over accuracy as my objective is to stop customers from flooding with too many calls so I can select RED?<br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 3, 2016 at 12:47 PM, Răzvan Crainea <span dir="ltr"><<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p><tt>Hi, John!</tt></p>
<p><tt>It depends on the logic of your platform. If you have
multiple FreeSWITCH servers behind OpenSIPS, and you want to
have a "global" limit, then you must do it on OpenSIPS side. It
is also recommended to do it there because for example if the
threashold is reached, you don't have to load FreeSWITCH with
traffic that's about to be denied. However, if you have local
(per FreeSWITCH) limits, then you can do it on the FreeSWITCH
side (with the earlier observations).</tt></p>
<p><tt>Regarding the algorithm, it depends on what you want to
limit. If you want to do CPS, then TAILDROP or RED is more
suitable. If you want to do a limitation based on the network
load, then use NETWORK.</tt></p>
<p><tt>Also take into account that the way RED and TAILDROP algorithm
work, they are not so accurate. That's why in OpenSIPS 2.2 we
added a new algorithm, SBT[1], which is very accurate and custamizable.</tt></p>
<p><tt>[1]
<a href="http://www.opensips.org/html/docs/modules/2.2.x/ratelimit.html#id293435" target="_blank">http://www.opensips.org/html/docs/modules/2.2.x/ratelimit.html#id293435</a></tt></p>
<p><tt>Best regards,<br>
</tt></p>
<pre cols="72">Răzvan Crainea
OpenSIPS Solutions
<a href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre><div><div class="h5">
<div>On 06/02/2016 08:49 AM, John Nash
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">Also how can I decide which Rate limit algorithm
should I choose ? Like RED or TAILDROP or NETWORK</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Jun 2, 2016 at 9:37 AM, John
Nash <span dir="ltr"><<a href="mailto:john.nash778@gmail.com" target="_blank">john.nash778@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I am using opensips(2,1) + freeswitch. At
opensips doing auth and drouting. Now i plan to test rate
limit but should I be checking CPS at opensips or at
freeswitch?...as Rate limit uses timers would it be more
appropriate to check at freeswitch?
<div><br>
</div>
<div><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>