Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Apr 1999 22:24:00 -0700
From:      David Greenman <dg@root.com>
To:        Alex Rousskov <rousskov@ircache.net>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: _Some_ acks delayed for 200 msec? 
Message-ID:  <199904220524.WAA16883@implode.root.com>
In-Reply-To: Your message of "Wed, 21 Apr 1999 23:16:07 MDT." <Pine.SGI.4.10.9904212307090.6184-100000@Meta-Bug> 

next in thread | previous in thread | raw e-mail | index | archive | help
>On Wed, 21 Apr 1999, David Greenman wrote:
>
>> >Now, if that is the infamous delayed ack problem, then
>> >	- why only *some* acks are delayed?
>> 
>>    Probably because of timing of the response packets. It's impossible to
>> say with your limited, one-sided tcpdump.
>
>Response packets are coming as soon as an ack is sent or prior to that, as
>far as I can tell. There was a small bi-directional tcpdump in the original
>post. By "one-sided", do you mean a dump collected on a single [client]
>host, or that server responses were filtered out in the long dump that I
>sent? I can certainly provide more info. Just tell me what would be useful.
>I was afraid of posting long tcpdumps...

   I mean both.

>>    The Nagle algorithm doesn't know or care about "local" networks.
>
>Right. I confused Nagle with TCP_ACK_HACK (which is sort of a Nagle-like
>algorithm). TCP_ACK_HACK (a sysctl option in 3.1) does depend on network
>"locality" from our experience.
> 
>> >	- why disabling Nagle (TCP_NODELAY) does not help?
>> 
>>    It will likely have to be disabled on both sides for your application since
>> there appears to be a syncronous request/response involved.
>
>It was disabled on both sides.

   I'm not familiar with what your application is doing over the wire, so I
can only speculate. It sounds to me as though TCP_NODELAY wasn't actually
set properly on the socket. Keep in mind that this option is not inherited
in the accept()'ed file descriptor and thus the option must be set on that
descriptor and not on the listen() socket.

-DG

David Greenman
Co-founder/Principal Architect, The FreeBSD Project - http://www.freebsd.org
Creator of high-performance Internet servers - http://www.terasolutions.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904220524.WAA16883>