<div dir="ltr">Hi Kristin,<div><br></div><div>From what I know of people working for the military in networking matters they use openDDS. Your scenario seems worst possible conditions so they might have support for that in openDDS, no idea, but in my mind ENET is not built for "ultimate" reliability of connection rather "ultimate" speed of delivery and assumes a not too bad connection.</div><div><br></div><div>I do not work for or endorse openDDS, nor do I use it as I prefer the lightweight ENet.</div><div><br></div><div>Best regards,</div><div><br></div><div>Pablo</div><div><br></div><div>PS - Maybe you can cut a deal with Lee to extend it for this circumstance and we all benefit? Nudge, nudge.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 18, 2015 at 3:56 PM,  <span dir="ltr"><<a href="mailto:kristin.nielsen@se.atlascopco.com" target="_blank">kristin.nielsen@se.atlascopco.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font size="2" face="sans-serif">I've been investigating a system with two
Enet hosts under bad network conditions, and noticed  a spurious disconnect
at the server.</font>
<br>
<br><font size="2" face="sans-serif">I've used Enet v.1.3.13 and for simulating
bad network I've used netem with configuration "delay 100ms 100ms
5% loss random 45% corrupt 35%"</font>
<br><font size="2" face="sans-serif">which means a delay of all packets of
100ms a random loss of 45% for all packets and 35% of all packets are corrupt.</font>
<br>
<br><font size="2" face="sans-serif">At first, the network is good and both
client and server connects to each other, Enet reports </font><font size="2">ENET_EVENT_TYPE_CONNECT</font><font size="2" face="sans-serif">.</font>
<br>
<br><font size="2" face="sans-serif">Then I apply the bad network and both
the client and the server disconnects, Enet reports </font><font size="2">ENET_EVENT_TYPE_DISCONNECT
</font><font size="2" face="sans-serif">on both client and server.</font>
<br>
<br><font size="2" face="sans-serif">When the bad network conditions are
restored, at first, everything seems to work fine. Enet reports </font><font size="2">ENET_EVENT_TYPE_CONNECT</font><font size="2" face="sans-serif">
 for both client and server. </font>
<br><font size="2" face="sans-serif">But then, after some second, I will
get a spurios </font><font size="2">ENET_EVENT_TYPE_DISCONNECT </font><font size="2" face="sans-serif">on
the server side only. The client still thinks everything is up and running.</font>
<br><font size="2" face="sans-serif">And I'm stuck in a state that I can
only get out from by restarting one of the applications(either the server
or the client doesn't matter)</font>
<br><font size="2" face="sans-serif">This happens almost everytime.</font>
<br>
<br><font size="2" face="sans-serif">I have also noted that if I apply really
bad network, for example a random loss of 95% of all packets, and the restore.
Then, I havn't seen this strange disconnect.<br>
</font><font size="2" face="Arial"><br>
Best regards, </font>
<table>
<tbody><tr valign="top">
<td>
</td><td>
</td><td>
</td><td>
</td></tr><tr valign="top">
<td colspan="4"><font size="3" color="#00a1e0" face="Arial"><b><i>Kristin Nielsen</i></b></font><font size="1" face="Arial">
</font><font size="1" face="Arial"><b><i><br>
Software Developer LHD Applications</i></b></font><font size="1" face="Arial">
</font><font size="1" face="Arial"><b><i><br>
Rocktec Division</i></b></font><font size="1" face="Arial"> </font>
<hr noshade>
</td></tr><tr valign="top">
<td colspan="4"><font size="1" color="#2f2f2f" face="Arial">Atlas Copco Rock
Drills AB </font>
</td></tr><tr valign="top">
<td><font size="1" color="#00a1e0" face="Arial"><b>Address: </b></font>
</td><td><font size="1" color="#2f2f2f" face="Arial">Klerkgatan 21 <br>
701 91 Örebro <br>
Sweden <br>
</font>
</td><td><font size="1" color="#00a1e0" face="Arial"><b>Phone:</b> </font>
</td><td><font size="1" color="#2f2f2f" face="Arial"><a href="tel:%2B46%20019%20768%2025%2085" value="+46197682585" target="_blank">+46 019 768 25 85</a> </font>
</td></tr><tr valign="top">
<td>
</td><td>
</td><td>
</td><td>
</td></tr><tr valign="top">
<td><font size="1" color="#00a1e0" face="Arial"><b>E-mail: </b></font>
</td><td><a href="mailto:kristin.nielsen@se.atlascopco.com" target="_blank"><font size="1" color="#2f2f2f" face="Arial">kristin.nielsen@se.atlascopco.com</font></a><font size="1" color="#2f2f2f" face="Arial">
</font>
</td><td><font size="1" color="#00a1e0" face="Arial"><b>Visit us at: <br>
Follow us at:</b></font><font size="1" face="Arial"> </font>
</td><td><a href="http://www.atlascopco.com/" target="_blank"><font size="1" color="#2f2f2f" face="Arial">http://www.atlascopco.com</font></a><font size="1" color="#2f2f2f" face="Arial"><i><br>
</i></font><a href="https://www.facebook.com/atlascopco" target="_blank"><font size="1" color="#2f2f2f" face="Arial"><i>Facebook
</i></font></a><font size="1" color="#2f2f2f" face="Arial">/ </font><a href="https://twitter.com/AtlasCopcoGroup" target="_blank"><font size="1" color="#2f2f2f" face="Arial"><i>Twitter
</i></font></a><font size="1" color="#2f2f2f" face="Arial">/ </font><a href="http://www.linkedin.com/company/atlas-copco" target="_blank"><font size="1" color="#2f2f2f" face="Arial"><i>LinkedIn
</i></font></a><font size="1" color="#2f2f2f" face="Arial">/ </font><a href="http://www.youtube.com/user/atlascopcogroup" target="_blank"><font size="1" color="#2f2f2f" face="Arial"><i>YouTube</i></font></a><font size="1" color="#2f2f2f" face="Arial">
</font>
</td></tr><tr>
<td colspan="2"><font size="1" color="#00a1e0" face="Arial"><b>Committed to sustainable
productivity              </b></font>
</td><td colspan="2"></td></tr></tbody></table>
<br>
<table>
<tbody><tr valign="top">
<td><a href="http://www.atlascopco.com.cn/cnus/atlascopcogroup/" target="_blank"><img src="cid:_1_0A59A4240A59A050004C8C18C1257E68" alt="Atlas Copco"></a></td></tr></tbody></table>
<br><br>_______________________________________________<br>
ENet-discuss mailing list<br>
<a href="mailto:ENet-discuss@cubik.org">ENet-discuss@cubik.org</a><br>
<a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" rel="noreferrer" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br><br></blockquote></div><div class="gmail_signature"></div>
</div></div>