desk-switch-lan-connect-instable.txt
This is interesting because it's mostly normal at first. The connection was established and the first keep-alive ping worked:
0000046506 [comm.coap] TRACE: Sending CoAP message
0000046507 [comm.coap] TRACE: CON 0.00 size=4 token= id=51
0000047082 [app] INFO: Ethernet: ready, WiFi: not ready, Cloud: connected
0000048084 [app] INFO: Ethernet: ready, WiFi: not ready, Cloud: connected
0000049082 [app] INFO: Ethernet: ready, WiFi: not ready, Cloud: connected
0000049956 [comm.coap] TRACE: Received CoAP message
0000049957 [comm.coap] TRACE: ACK 0.00 size=4 token= id=51
...
The next one, 25-ish seconds later, required 1 retry but eventually worked:
000075153 [comm.coap] TRACE: Sending CoAP message
0000075182 [comm.coap] TRACE: CON 0.00 size=4 token= id=52
...
0000079443 [comm.coap] TRACE: Retransmitting CoAP message; ID: 52; attempt 1 of 3
0000079513 [comm.coap] TRACE: Sending CoAP message
0000079517 [comm.coap] TRACE: CON 0.00 size=4 token= id=52
...
0000087356 [comm.coap] TRACE: Received CoAP message
0000087358 [comm.coap] TRACE: ACK 0.00 size=4 token= id=52
At 220 seconds in, things get worse and required 2 retries, but then recovered and worked normally.
0000220702 [comm.coap] TRACE: Retransmitting CoAP message; ID: 56; attempt 2 of 3
0000220704 [comm.coap] TRACE: Sending CoAP message
At 299 seconds, this message never got a response after 3 retries and the connection was reset:
0000299704 [comm.coap] TRACE: Sending CoAP message
0000299728 [comm.coap] TRACE: CON 0.00 size=4 token= id=59
If the problem was your router deleting the port forwarding, which would stop packets from being received, resetting the connection should have created a new socket and created a new port forwarding, so this behavior is not expected.
Interestingly, on reconnect, no packets were received either. At 360 seconds the firmware gave up on Ethernet and tried switching to cellular. This is in the firmware, not Device OS.
0000360057 [app.ethcell] INFO: Took too long to connect to the cloud by Ethernet, switching to cellular
That also failed, and switch back to Ethernet at 660 seconds from the firmware.
0000660144 [app.ethcell] INFO: Trying to connect by Ethernet
It's still unable to receive packets and switches again at 690 seconds.
0000690375 [app.ethcell] INFO: Took too long to connect to the cloud by Ethernet, switching to cellular
Eventually, at 1330 seconds, it attempts to connect by Ethernet and this time packets can be received and the cloud connection works. Some CoAP messages are still lots, but retry successfully until the end of the log at 1921 seconds.
0001330653 [app.ethcell] INFO: Cloud connected over Ethernet keepAlive=25
I can't explain this behavior.