Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jun 2008 17:25:49 +1000
From:      Jerahmy Pocott <quakenet1@optusnet.com.au>
To:        freebsd-stable@freebsd.org
Subject:   Sysctl knob(s) to set TCP 'nagle' time-out?
Message-ID:  <0222EAC1-A278-41D2-9566-C9CF19811068@optusnet.com.au>

next in thread | raw e-mail | index | archive | help
Hi,

I'm wondering if anything exists to set this.. When you create an INET  
socket
without the 'TCP_NODELAY' flag the network layer does 'naggling' on your
transmitted data. Sometimes with hosts that use Delayed_ACK  
(net.inet.tcp.
delayed_ack) it creates a dead-lock where the host will not ACK until  
it gets
another packet and the client will not send another packet until it  
gets an ACK..

The dead-lock gets broken by a time-out, which I think is around 200ms?

But I would like to change that time-out if possible to something  
lower, yet
I can't really see any sysctl knobs that have a name that suggests  
they do
that..

So does anyone know IF this can be tuned and if so by what?

Cheers,
Jerahmy.

(And yes you could solve it by setting the TCP_NODELAY flag on the  
socket,
but not everything has programmed in options to set it and you don't  
always
have access to the source, besides setting a sysctl value would be much
simpler than recompiling stuff)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0222EAC1-A278-41D2-9566-C9CF19811068>