2020-08-31 23:55:21 +0000 | received badge | ● Famous Question (source) |
2019-12-23 22:52:41 +0000 | received badge | ● Notable Question (source) |
2019-12-23 22:52:41 +0000 | received badge | ● Popular Question (source) |
2018-07-04 12:43:43 +0000 | edited question | Big time delay for ACK packets, both sent and received Big time delay for ACK packets, both sent and received Hi all, I have to send some data to a server on a PC directly li |
2018-07-04 12:43:11 +0000 | edited question | Big time delay for ACK packets, both sent and received Big time delay for ACK packets, both sent and received Hi all, I have to send some data to a server on a PC directly li |
2018-07-04 12:43:11 +0000 | received badge | ● Editor (source) |
2018-07-04 10:52:21 +0000 | commented answer | Big time delay for ACK packets, both sent and received Yes, it was that problem. I have not enough points to upvote :( |
2018-07-04 10:50:29 +0000 | commented answer | Big time delay for ACK packets, both sent and received Many thanks for your solution, I post the complete fix in the question. |
2018-07-04 10:49:37 +0000 | marked best answer | Big time delay for ACK packets, both sent and received Hi all, I have to send some data to a server on a PC directly linked to mine, but I find that the connection is quite slow (500ms to send simple data) and I'm trying to figure out where are the problems. It is a local connection, from a PC to another, so no override from router, switch and so on. Here is a snapshot of a POST request from The column time indicates the time from the previous packet: as you can see there are 2 quite slow packets: the number 5 from the destination to the source and the number 8 from the source to the destination. Both of the packets are communication ACK packets, I'm wondering why ACK packets can be slower that the real request packets (number 6 and 7). Here you can find the pcapng captured data. Is there a way to debug the problem further? How could I increase the speed of the communication? SOLUTION As NJL and Packet_vlad said it was TCP Delayed Acknowledgement with Nagle algorithm. Both of the PC are Windows so in order to fix it you have to add the following DWORD registry keys both on the sender and to the receiver:
I added also the following code in my C# .NET based software: Here you can find the new wireshark captured data with almost no delay in ACKs. |
2018-07-04 10:49:37 +0000 | received badge | ● Scholar (source) |
2018-07-03 14:37:26 +0000 | asked a question | Big time delay for ACK packets, both sent and received Big time delay for ACK packets, both sent and received Hi all, I have to send some data to a server on a PC directly li |