Nuoji
Nuoji

Reputation: 3448

Suggested TCP socket settings for low latency and small packets

I'm wondering if there are tweaks I can do to a TCP socket, except disabling Nagle, in order to get the lowest possible latency for a client-server protocol with predominantly small packets.

Client packet are mostly smaller than 100 bytes, server packets 100-300 bytes in size.

I'm using java on the server end and (objective-) c on the client side.

Upvotes: 5

Views: 2685

Answers (1)

enobufs
enobufs

Reputation: 930

You may want to consider reducing delayed ack timeout (if possible). Even though Nagle is turned off, in a situation where you send packets infrequently and packet loss has occurred, delayed ack could cause delay in packet loss detection then retransmission delay.

Upvotes: 1

Related Questions