<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hello Ravitez,<br>
      <br>
      OK, so you see data being pending for reading from UAS - are you
      sure the outbound TCP is the bottleneck ? have you tried to set
      some thresholds on the script to see what the slowest part ? Maybe
      it is not TCP related.<br>
      <br>
      Best regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>

OpenSIPS Summit May 2017 Amsterdam
  <a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2017Amsterdam.html">http://www.opensips.org/events/Summit-2017Amsterdam.html</a>
</pre>
    <div class="moz-cite-prefix">On 05/11/2017 06:41 PM, Ravitez Ravi
      wrote:<br>
    </div>
    <blockquote
cite="mid:CANs_LF8tbYwNEsC9e6ha2rtOMZsY_wi++8X1huiVahcChMeEOg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello Bogdan,
        <div>          Good Day,</div>
        <div>          Congestion happens on the receive Q of
          opensips(UAS -> opensips) when UAS tries to send ~3000
          messages in one second.</div>
        <div>          and  i see multiple tcp_connections being created
          to the same destination (SBC) but based on the logic only the
          recent or the last connection is</div>
        <div>          being used,when tcp_async is used i see readQ
          (USA->opensips) not being read (still see n number of
          bytes).</div>
        <div>          Thank you.</div>
        <div><br>
        </div>
        <div>Regards,</div>
        <div>Ravitez.D</div>
        <div><br>
          <div class="gmail_extra"><br>
            <div class="gmail_quote">On Thu, May 11, 2017 at 4:13 AM,
              Bogdan-Andrei Iancu <span dir="ltr"><<a
                  moz-do-not-send="true"
                  href="mailto:bogdan@opensips.org" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a></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"> <tt>Hello
                    Ravitez,<br>
                    <br>
                    yes, there will be only one connection between
                    OpenSIPS and SBC, which will be shared between all
                    the SIP workers. In OpenSIPS TCP, there is no
                    concept of "connection per child". Still, what is
                    the kind of congestion you are experience ? could
                    you provide here some more details ?<br>
                    <br>
                    Best regards,<br>
                  </tt>
                  <pre class="m_-3818756346655549772moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a moz-do-not-send="true" class="m_-3818756346655549772moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a>

OpenSIPS Summit May 2017 Amsterdam
  <a moz-do-not-send="true" class="m_-3818756346655549772moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2017Amsterdam.html" target="_blank">http://www.opensips.org/<wbr>events/Summit-2017Amsterdam.<wbr>html</a>
</pre>
    <div class="m_-3818756346655549772moz-cite-prefix">On 05/01/2017 05:48 PM, Ravitez Ravi
      wrote:

    </div>
    <blockquote type="cite">
      <div dir="ltr">Hi Bogdan,
        <div>               Good Day,</div>
        <div>               Thank you for reaching out.</div>
        <div>               Considering the below example,though we have
          multiple UAC</div>
        <div>               opensips creates only one tcp connection to
          SBC which is valid because it only sees the SBC</div>
        <div>               but this creates congestion and in few
          scenarios opensips creates too many tcp connections(bug).</div>
        <div>               in order to solve this i was thinking if we
          can have 1 tcp connection per child.</div>
        <div>               Please share your thoughts.</div>
        <div>               Thank you.</div>
        <div>               </div>
        <div>               </div>
        <div>

        </div>
        <div><img src="cid:part4.FB997AE8.D8630C84@opensips.org" alt="Inline image 1" height="204" width="345">

        </div>
        <div>

        </div>
        <div>

        </div>
        <div>Regards,</div>
        <div>Ravitez.D</div>
        <div>

        </div>
      </div>
      <div class="gmail_extra">

        <div class="gmail_quote">On Mon, May 1, 2017 at 4:43 AM,
          Bogdan-Andrei Iancu <span dir="ltr"><<a moz-do-not-send="true" class="m_-3818756346655549772moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:

          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> <tt>Hi Ravitez,

                

                OpenSIPS is doing connection reusage, so, if there IP
                destination is the same, the existing connection will be
                used.

                

                Why do you want to change this ?

                

                Best regards,

              </tt>
              <pre class="m_-3818756346655549772m_-5510514055668416396moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a moz-do-not-send="true" class="m_-3818756346655549772m_-5510514055668416396moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a>

OpenSIPS Summit May 2017 Amsterdam
  <a moz-do-not-send="true" class="m_-3818756346655549772m_-5510514055668416396moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2017Amsterdam.html" target="_blank">http://www.opensips.org/events<wbr>/Summit-2017Amsterdam.html</a>
</pre>
    <div class="m_-3818756346655549772m_-5510514055668416396moz-cite-prefix">On 04/28/2017 07:28 AM, Ravitez Ravi
      wrote:

    </div>
    <blockquote type="cite">
      <div dir="ltr">Hello,
        <div>       I have been using opensips 1.11.5 as a proxy between
          the application server and clients,things were fine as each
          client had a dedicated tcp connection to opensips.</div>
        <div>       once i introduced SBC ,opensips has only one TCP
          connection to SBC .would it be possible to create multiple TCP
          connections to the same destination?.</div>
        <div>        eg :</div>
        <div>             Each child having a TCP connection to the same
          destination.</div>
        <div>

        </div>
        <div>     from what i understand is if a tcp connection exists
          to a destination opensips passes on the fd to a requesting
          child to send data.</div>
        <div>     please share your thoughts.</div>
        <div>

        </div>
        <div>

        </div>
        <div>Regards,</div>
        <div>Ravitez.D</div>
      </div>
      

      <fieldset class="m_-3818756346655549772m_-5510514055668416396mimeAttachmentHeader"></fieldset>
      

      <pre>______________________________<wbr>_________________
Users mailing list
<a moz-do-not-send="true" class="m_-3818756346655549772m_-5510514055668416396moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="m_-3818756346655549772m_-5510514055668416396moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    

  </div>

</blockquote></div>
</div>



</blockquote>
</div></blockquote></div>
</div></div></div>



</blockquote>
</body></html>