<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (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:Verdana;
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;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
code
{mso-style-priority:99;
font-family:"Courier New";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Vorformatiert Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLVorformatiertZchn
{mso-style-name:"HTML Vorformatiert Zchn";
mso-style-priority:99;
mso-style-link:"HTML Vorformatiert";
font-family:Consolas;}
p.ecxmsonormal, li.ecxmsonormal, div.ecxmsonormal
{mso-style-name:ecxmsonormal;
margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.E-MailFormatvorlage23
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 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]-->
</head>
<body lang="DE" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Hi Hamid,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">I can not comment on this particular error, but I would suggest to try the latest 5.4.x version. There were some bugs in the diameter modules which I fixed, it might help also for your
issue.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">If not, you can also open an issue on our tracker.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Henning<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">-- <o:p>
</o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Henning Westerholt –
</span><span style="mso-fareast-language:EN-US"><a href="https://skalatan.de/blog/"><span lang="EN-GB" style="color:#0563C1">https://skalatan.de/blog/</span></a></span><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Kamailio services –
</span><span style="mso-fareast-language:EN-US"><a href="https://gilawa.com/"><span lang="EN-GB" style="color:#0563C1">https://gilawa.com</span></a></span><span style="mso-fareast-language:EN-US">
<span lang="EN-GB"><o:p></o:p></span></span></p>
</div>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:35.4pt"><b>From:</b> sr-users <sr-users-bounces@lists.kamailio.org>
<b>On Behalf Of </b>Hamid Hashmi<br>
<b>Sent:</b> Thursday, November 26, 2020 7:56 PM<br>
<b>To:</b> sr-users@lists.kamailio.org<br>
<b>Subject:</b> [SR-Users] [Mod: CDP] TCP Zero Window Error<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt;color:#2672EC">Dear Users<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt;color:#2672EC"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt;color:#2672EC">I have been facing a diameter peer disconnection issue between I-CSCF and HSS. after taking traces on both sides, I saw a lot of TCP Zero Window packets from HSS towards
I-CSCF and after that HSS disconnects with the following errors in the log. <o:p></o:p></span></p>
</div>
<div>
<pre style="margin-left:35.4pt;box-sizing:border-box;background-color:var(--color-bg-tertiary);border-radius:6px;overflow:auto"><code><span style="color:#24292E">Nov 26 20:30:25 PROD-HSS-STANDBY [HSS][16401]: ERROR: cdp [peerstatemachine.c:157]: sm_process(): sm_process(): In state Closed invalid event Timeout<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:31:25 PROD-HSS-STANDBY [HSS][16401]: ERROR: cdp [peerstatemachine.c:157]: sm_process(): sm_process(): In state Closed invalid event Timeout<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:32:25 PROD-HSS-STANDBY [HSS][16401]: ERROR: cdp [peerstatemachine.c:157]: sm_process(): sm_process(): In state Closed invalid event Timeout<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:33:04 PROD-HSS-STANDBY systemd[1]: Stopping LSB: Start the Kamailio SIP proxy server...<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:33:04 PROD-HSS-STANDBY kamailio_hss[18098]: Stopping Kamailio SIP Server: kamailio_hss:.<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:33:04 PROD-HSS-STANDBY systemd[1]: kamailio_hss.service: Succeeded.<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:33:04 PROD-HSS-STANDBY systemd[1]: Stopped LSB: Start the Kamailio SIP proxy server.<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:33:04 PROD-HSS-STANDBY [HSS][16274]: CRITICAL: cdp [diameter_peer.c:423]: diameter_peer_destroy(): destroy_diameter_peer(): Bye Bye from C Diameter Peer test<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:33:07 PROD-HSS-STANDBY systemd[1]: Starting LSB: Start the Kamailio SIP proxy server...<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:33:07 PROD-HSS-STANDBY kamailio_hss[18138]: Starting Kamailio SIP Server: kamailio_hss:loading modules under config path: /usr/local/lib64/kamailio/modules/:/usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/:/usr/local/lib/kamailio/modules/<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:33:07 PROD-HSS-STANDBY kamailio_hss[18138]: Listening on<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:33:07 PROD-HSS-STANDBY kamailio_hss[18138]: udp: 10.161.224.81 [10.161.224.81]:8080<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:33:07 PROD-HSS-STANDBY kamailio_hss[18138]: tcp: 127.0.0.1 [127.0.0.1]:5090<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:33:07 PROD-HSS-STANDBY kamailio_hss[18138]: tcp: 10.161.224.81 [10.161.224.81]:8080<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:33:07 PROD-HSS-STANDBY kamailio_hss[18138]: Aliases:<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:33:07 PROD-HSS-STANDBY [HSS][18155]: WARNING: sl [../../modules/tm/tm_load.h:149]: load_tm_api(): Cannot import load_tm function from tm module<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:33:07 PROD-HSS-STANDBY [HSS][18155]: WARNING: sl [../../modules/tm/tm_load.h:149]: load_tm_api(): Cannot import load_tm function from tm module<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:33:07 PROD-HSS-STANDBY [HSS][18281]: WARNING: cdp [tcp_accept.c:120]: create_socket(): create_socket(): Trying to open/bind/listen on 10.161.224.81 port 3868<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:33:07 PROD-HSS-STANDBY [HSS][18281]: WARNING: cdp [tcp_accept.c:145]: create_socket(): create_socket(): Successful socket open/bind/listen on 10.161.224.81 port 3868<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:33:07 PROD-HSS-STANDBY kamailio_hss[18138]: .<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:33:07 PROD-HSS-STANDBY systemd[1]: Started LSB: Start the Kamailio SIP proxy server.<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:38:44 PROD-HSS-STANDBY [HSS][18282]: WARNING: cdp [peermanager.c:310]: peer_timer(): Inactivity on peer [icscfcdp2.ims.mnc006.mcc410.3gppnetwork.org] and no DWA, Closing peer...<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:39:01 PROD-HSS-STANDBY systemd[1]: Starting Clean php session files...<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:39:01 PROD-HSS-STANDBY systemd[1]: phpsessionclean.service: Succeeded.<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:39:01 PROD-HSS-STANDBY systemd[1]: Started Clean php session files.<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Nov 26 20:39:20 PROD-HSS-STANDBY [HSS][18282]: ERROR: cdp [peerstatemachine.c:157]: sm_process(): sm_process(): In state Closed invalid event Timeout</span></code><span style="font-size:9.0pt;font-family:Consolas;color:#24292E"><o:p></o:p></span></pre>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt;color:#2672EC"> <o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt;color:#2672EC">I am using the following Kamailio version<o:p></o:p></span></p>
</div>
<div>
<pre style="margin-left:35.4pt;box-sizing:border-box;background-color:var(--color-bg-tertiary);border-radius:6px;overflow:auto"><code><span style="color:#24292E">Distributor ID: Debian<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Description: Debian GNU/Linux 10 (buster)<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Release: 10<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Codename: buster<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E"><o:p> </o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Version: kamailio 5.2.8 (x86_64/linux) 5a7f5b<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Default config: /usr/local/etc/kamailio/kamailio.cfg<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Default paths to modules: /usr/local/lib64/kamailio/modules<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Compile flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">MAX_RECV_BUFFER_SIZE=262144<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">MAX_URI_SIZE=1024<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">BUF_SIZE=65535<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">DEFAULT PKG_SIZE=8MB<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">DEFAULT SHM_SIZE=64MB<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">ADAPTIVE_WAIT_LOOPS=1024<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">TCP poll methods: poll, epoll_lt, epoll_et, sigio_rt, select<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Source code revision ID: 5a7f5b <o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Compiled with: gcc 8.3.0<o:p></o:p></span></code></pre>
<pre style="margin-left:35.4pt"><code><span style="color:#24292E">Compiled on: 04:34:39 Nov 19 2020</span></code><span style="font-size:9.0pt;font-family:Consolas;color:#24292E"><o:p></o:p></span></pre>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt;color:#2672EC"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt;color:#2672EC">How I can resolve TCP Zero Window Error? I have already tried increasing CDP worker threads, TCP read and write buffers etc.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt;color:#2672EC"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt;color:#2672EC"><o:p> </o:p></span></p>
</div>
<div id="Signature">
<div>
<p class="ecxmsonormal" style="margin-left:35.4pt">Regards<o:p></o:p></p>
<p class="ecxmsonormal" style="margin-left:35.4pt"><b><span style="font-size:12.0pt;font-family:"Verdana",sans-serif;font-variant:small-caps;color:navy">Hamid R. Hashmi</span></b><o:p></o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>