<div dir="ltr"><div>Just an idea: to isolate you use something else just to offload SRTP: e.g use rtpengine for SRTP/RTP bridging. This could show whether FreeSWITCH+SRTP is really to blame. You could even run rtpengine on the same box as FreeSWITCH since the CPU load looks manageable.</div><div><br></div><div><br></div><div>Media path would look like:</div><div>webrtc --[SRTP] -- (rtpengine+kamailio-to-rewrite-SDP) --[ RTP] -- FreeSWITCH</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 31, 2017 at 4:37 AM, Matthew Meek <span dir="ltr"><<a href="mailto:mmeek@livexchange.com" target="_blank">mmeek@livexchange.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_2347995029845243684WordSection1">
<p class="MsoNormal">We have been using Freeswitch as our SBC and core switch for many years without issues. Recently we added public facing softphones using an additional server running Kamailio as TLS and webrtc bridge with FS handling media back to our core
 FS farm.  We run a mix of webrtc and Zoiper softphones. All running SIPS (tls) but webrtc is SRTP (PCMU) and Zoiper is RTP (PCMU).
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We have been ramping up the webrtc traffic and at some magic point at busy times (~150 concurrent calls) the RTT and Packet loss for the webrtc calls goes crazy (as measured in the browser via RTCP and captured back on our logging servers).
 RTT jumps from 100ms to 2-3 seconds for most or all webrtc users and packet loss jumps from nothing to troubling on the Sending side back to FS only. Packets received are not an issue on webrtc side… webrtc can hear end caller, but end caller cannot hear webrtc
 well.  Non webrtc traffic (Zoiper) have no reported impact. Server CPU (dual socket 6 core) looks great (no core over 20%) according to nmon… packets per second within reason (10Gb NICs).<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am assuming the SRTP has some hidden scaling issue since this is the only difference between the two types of softphones. Has anyone seen this or have a workaround?
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am at a loss. I assume if it is encryption overhead the CPU would be saturated and it is not. Why a single direction of SRTP traffic is impacted has me up late at night.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">A side note… does anyone know of a SIPP replacement that does SRTP so I can test load against this to isolate?
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="color:#1f497d">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">Matthew Meek<u></u><u></u></span></p>
</div>
</div>

<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><font color="#000000" face="Droid Sans"><span style="font-size:15px">Richard Chan</span></font></div><div dir="ltr"><font color="#000000" face="Droid Sans"><span style="font-size:15px">Chief Architect</span></font></div><div dir="ltr"><font color="#000000" face="Droid Sans"><span style="font-size:15px"><br></span></font></div><div dir="ltr"><font color="#000000" face="Droid Sans"><span style="font-size:15px">TreeBox Solutions Pte Ltd</span></font></div><div dir="ltr"><font color="#000000" face="Droid Sans"><span style="font-size:15px">1 Commonwealth Lane #03-01</span></font></div><div dir="ltr"><font color="#000000" face="Droid Sans"><span style="font-size:15px">Singapore 149544</span></font></div><div dir="ltr"><font color="#000000" face="Droid Sans"><span style="font-size:15px">Tel: 6570 3725</span></font></div><div dir="ltr"><font color="#000000" face="Droid Sans"><span style="font-size:15px"><a href="http://www.treeboxsolutions.com" target="_blank">http://www.treeboxsolutions.com</a></span></font></div><div dir="ltr"><font color="#000000" face="Droid Sans"><span style="font-size:15px"><br></span></font></div><div dir="ltr"><font color="#000000" face="Droid Sans"><span style="font-size:15px"><a href="http://Co.Reg.No" target="_blank">Co.Reg.No</a>. 201100585R<span style="white-space:pre"> </span></span></font></div></div></div></div></div>
</div>