RE: Question regarding TCP behavior

From: Jan Engelhardt
Date: Sun Jun 01 2008 - 14:51:16 EST



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?)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/