First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

Does the PSH bit force client to ack

  • retag add tags

Hi All,

First off, thank you to the awesome community. I have just started my packet analysis journey, and have become quite addicted.

My question is if the server/client sends 1 packet with the push bit set, would this cause the receiver to ack even though 2 packets were not sent? I have seen/read many times that the rule of TCP is ack every other packet, but occasionally in a capture I am looking at the sender will set the psh bit after sending only 1 packet, and the receiver will ack immediately (empty ack). What confuses me is the receiver will then immediately send another packet with data. Wouldn't the rule of TCP prevent an empty ack since only 1 packet was sent, and since the client is sending data, wouldn't it just piggy back off the first ack rather than send an empty ack, then send data?

Thank you, and please let me know if I am not making sense. I will attempt to clarify.

Grrrshark's avatar
3
Grrrshark
asked 2019-05-20 18:09:11 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

The rule of TCP is there is no rule of TCP. There are howevers RFCs that a stack can follow or not. In the first RFC about TCP the ACK mechanism was defined as sending an ACK to every data packet received. Then in RFC 1122 it is proposed to only send an ACK every other data packet as an efficiency enhancement. So there is not one standard way to determine when to send an ACK as long as all data is being ACKed (within a reasonable timeframe).

SYN-bit's avatar
18.5k
SYN-bit
answered 2019-05-20 18:23:04 +0000
edit flag offensive 0 remove flag delete link

Comments

Thank you for the answer. So really the psh bit is send now (don't buffer), it does not solicit an immediate ack. Ack is fairly irrelevant as long as the data is being acked and TCP delta is staying reasonable?

Grrrshark's avatar Grrrshark (2019-05-20 18:31:01 +0000) edit

That's how I understand it at least :-)

SYN-bit's avatar SYN-bit (2019-05-21 14:26:18 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer