<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    have you checked the file in the sources located at
    doc/tcp_tunning.txt?<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 09/09/14 14:40, Laurent Schweizer
      wrote:<br>
    </div>
    <blockquote
cite="mid:5b100c9fd0a24dbaad3efea54b2622a2@AMSPR07MB001.eurprd07.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Pr\00E9format\00E9 HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texte de bulles Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.PrformatHTMLCar
        {mso-style-name:"Pr\00E9format\00E9 HTML Car";
        mso-style-priority:99;
        mso-style-link:"Pr\00E9format\00E9 HTML";
        font-family:Consolas;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.TextedebullesCar
        {mso-style-name:"Texte de bulles Car";
        mso-style-priority:99;
        mso-style-link:"Texte de bulles";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <pre><span style="color:#1F497D">Dear all,<o:p></o:p></span></pre>
        <pre><span style="color:#1F497D"><o:p> </o:p></span></pre>
        <pre><span style="color:#1F497D"><o:p> </o:p></span></pre>
        <pre><span style="color:#1F497D" lang="EN-US">Since few weeks I have more and more TCP issue, I can see that sometimes the client send a TCP SYN but never get any response. <o:p></o:p></span></pre>
        <pre><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></pre>
        <pre><span style="font-size:8.0pt;color:#1F497D" lang="EN-US">106.123315 62.12.179.104 -> X.X.X.X  TCP 39174 > sip [SYN] Seq=0 Win=4380 Len=0 MSS=1380 TSV=4294942209 TSER=0 WS=1<o:p></o:p></span></pre>
        <pre><span style="font-size:8.0pt;color:#1F497D" lang="EN-US">109.124384 62.12.179.104 -> X.X.X.X  TCP 39174 > sip [SYN] Seq=0 Win=4380 Len=0 MSS=1380 TSV=4294942510 TSER=0 WS=1<o:p></o:p></span></pre>
        <pre><span style="font-size:8.0pt;color:#1F497D" lang="EN-US">111.202946 62.12.179.104 -> X.X.X.X  TCP 4993 > sip [SYN] Seq=0 Win=4380 Len=0 MSS=1380 TSV=4294942717 TSER=0 WS=1<o:p></o:p></span></pre>
        <pre><span style="font-size:8.0pt;color:#1F497D" lang="EN-US">114.204707 62.12.179.104 -> X.X.X.X  TCP 4993 > sip [SYN] Seq=0 Win=4380 Len=0 MSS=1380 TSV=4294943018 TSER=0 WS=1<o:p></o:p></span></pre>
        <pre><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></pre>
        <pre><span style="color:#1F497D" lang="EN-US">I have found on internet many doc regarding TCP and max connection issue and I have already done change in sysctl (see below) to increase the number of tcp connection but seems still not ok.<o:p></o:p></span></pre>
        <pre><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></pre>
        <pre><span style="color:#1F497D" lang="EN-US">Any idea ?<o:p></o:p></span></pre>
        <pre><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></pre>
        <pre><span style="color:#1F497D" lang="EN-US">Best regards<o:p></o:p></span></pre>
        <pre><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></pre>
        <pre><span style="color:#1F497D" lang="EN-US">Laurent<o:p></o:p></span></pre>
        <pre><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></pre>
        <pre><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D" lang="EN-US">net.ipv4.ip_forward = 0<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D" lang="EN-US">net.ipv4.conf.default.rp_filter = 1<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D">net.ipv4.conf.default.accept_source_route = 0<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D">kernel.sysrq = 0<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D">kernel.core_uses_pid = 1<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D">net.ipv4.tcp_syncookies = 0<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D" lang="EN-US">net.bridge.bridge-nf-call-ip6tables = 0<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D" lang="EN-US">net.bridge.bridge-nf-call-iptables = 0<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D" lang="EN-US">net.bridge.bridge-nf-call-arptables = 0<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D" lang="DE-CH">kernel.msgmnb = 65536<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D" lang="DE-CH">kernel.msgmax = 65536<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D" lang="DE-CH">kernel.shmmax = 68719476736<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D" lang="EN-US">kernel.shmall = 4294967296<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D" lang="EN-US">net.ipv4.tcp_timestamps = 1<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D" lang="EN-US">net.ipv4.tcp_fin_timeout = 30<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D" lang="EN-US">net.ipv4.tcp_keepalive_time = 1200<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D" lang="EN-US">net.ipv4.tcp_max_syn_backlog = 8192<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D" lang="EN-US">net.ipv4.tcp_max_tw_buckets = 5000<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D">fs.file-max = 2097152<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D">net.ipv4.ip_local_port_range = 2000 65535<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D" lang="EN-US">net.ipv4.tcp_max_tw_buckets = 1440000<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D" lang="EN-US">net.ipv4.tcp_tw_recycle = 1<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D" lang="EN-US">net.ipv4.tcp_tw_reuse = 1<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D" lang="EN-US">net.core.somaxconn = 65536<o:p></o:p></span></i></pre>
        <pre><i><span style="font-size:8.0pt;color:#1F497D" lang="EN-US">net.core.netdev_max_backlog = 65536<o:p></o:p></span></i></pre>
        <pre><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></pre>
        <pre><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></pre>
        <pre><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></pre>
        <pre><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></pre>
        <pre><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></pre>
        <pre><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></pre>
        <pre><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></pre>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Next Kamailio Advanced Trainings 2014 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Sep 22-25, Berlin, Germany</pre>
  </body>
</html>