TCP Spurious Retransmissions

derasd
Posts: 4
Joined: Tue Oct 23, 2018 7:43 am

TCP Spurious Retransmissions

Postby derasd » Tue Nov 27, 2018 8:24 am

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 4216 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!

patakil
Posts: 8
Joined: Thu Apr 12, 2018 11:32 am

Re: TCP Spurious Retransmissions

Postby patakil » Tue May 10, 2022 9:16 am

Hi,
I am facing a similar issue.
In case you found could you share the solution?
Thanks

patakil
Posts: 8
Joined: Thu Apr 12, 2018 11:32 am

Re: TCP Spurious Retransmissions

Postby patakil » Tue Jun 14, 2022 8:42 pm

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.

Who is online

Users browsing this forum: No registered users and 126 guests