2008-06-01 18:51:16

by Jan Engelhardt

[permalink] [raw]
Subject: RE: Question regarding TCP behavior


On Thursday 2008-05-29 18:56, David Schwartz wrote:
>> Greetings.
>>
>> I have a question about how linux's TCP stack behaves.
>> I apologize if this is not the right place to ask this question and
>> please redirect me.
>>
>> When a TCP end point (A) sends x bytes of data to the other end point (B),
>> does B immediately ACK the received bytes or will it do so only
>> when the data
>> is passed to the upper layer ?
>>
>>
>> Thanks
>> Thomas
>
>If the TCP connection was idle and there is no unacknowledged data in either
>direction, the answer is neither.
>
>Acknowledging the data immediately is wasteful.[...]

And for everything else, there is the PSH bit. (I assume?)