Suggested TCP Socket Settings for Low Latency and Small Packets

I am wondering if I have tweaks that I can do for the TCP socket, with the exception of disabling Nagle, in order to get the minimum possible delay for the client-server protocol with mostly small packets.

The client packet is generally less than 100 bytes, the server packets are 100-300 bytes in size.

I use java on the server side and (target -) c on the client side.

+4
source share
1 answer

You might want to consider reducing the waiting time (if possible). Although Nagle is disabled, in a situation where you send packets infrequently and packet loss has occurred, a delay can cause a delay in packet detection and then a delay in retransmission.

+1
source

Source: https://habr.com/ru/post/1493768/


All Articles