Page 1 of 1

TCP Spurious Retransmissions

Posted: Tue Nov 27, 2018 8:24 am
by derasd
Hi there,

I have two ESP32 sending data more or less simultaneously to a server over WIFI. If one of the ESP is further away (i.e. is close to the border of it's connection range) than wireshark running on the server shows spurious retransmissions. This means that the ESP sends data to the server, the server sends back an acknowledgment but the ESP does not receive the ACK in time or not at all. So the ESP sends the data again and the server acknowledges it again. This is called a spurious retransmission.
This behaviour might be normal since the ESP is further away. What is weird now is that the second ESP (in close proximity to the server) does the same thing just after it started with the first ESP.
The server is a windows machine creating a hotspot via a virtual hosted network adapter with the IP: .137.1. The ESPs have the IPs .137.100 & .137.102.
wireshark3.png
wireshark3.png (64.65 KiB) Viewed 3944 times

Since the server actually received the data but the ESP didn't get the ACK (in time?) might it be possible to increase the retransmission timeout of the ESP?

Thanks and best regards


*Edit*
Setting TcpAckFrequency to 1 in the Windows registry has helped dramatically!

Re: TCP Spurious Retransmissions

Posted: Tue May 10, 2022 9:16 am
by patakil
Hi,
I am facing a similar issue.
In case you found could you share the solution?
Thanks

Re: TCP Spurious Retransmissions

Posted: Tue Jun 14, 2022 8:42 pm
by patakil
FYI, issues with your hardware around the ethernet chip can cause losing some of the packets, including TCP ACK, which can cause this problem. If anyone has a similar problem, confirm your hardware.