<div><div>&quot;kamailio&quot; &lt;<a href="mailto:users@lists.kamailio.org">users@lists.kamailio.org</a>&gt;, <div><br></div><div>Hi</div><div><br></div><div>I am sorry to ask again about this topic but I don&#39;t understand yet how the TCP keep-alive are sent.</div>

<div><br></div><div>With Kamailio 3.0.1 and the following configuration:</div><div><br></div></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><div>

<div>tcp_keepalive=yes</div></div></div></div><div><div><div><div>tcp_keepidle=10</div></div></div></div><div><div><div><div>tcp_connection_lifetime=3600</div></div></div></div></blockquote><div><div><div><br></div><div>
The TCP connection is kept alive and TCP Keep-Alive packets are sent when the TCP connection is idle.</div>
<div><br></div><div>But I don&#39;t understand why the time between KA is not linear:</div><div><br></div><div>first KA is sent 10 seconds after last last TCP message. This is logical and connected with the tcp_keepidle=10 configuration.</div>

<div><br></div><div>then 2nd KA is sent 75 seconds after first KA</div><div><br></div><div>Then my client sends some traffic and 23 seconds after last message, a new KA is sent. Another time it was 54 seconds. etc. etc.</div>

<div><br></div><div>Could you explain me where do come from these values of 75 seconds, 23, 54 ?</div><div><br></div><div>Everything works well: my client behind NAT is kept connected but I&#39;d like to understand why it does work :-)</div>

<div><br></div><div>Thanks in advance,</div><div>Pascal</div><div><br></div></div></div>