This is a static, read-only archive of Wireshark Q&A. Older questions and answers from October 2017 and earlier can be found at osqa-ask.wireshark.org.
0

Two ACKs sent after client receives HTTP response

asked Oct 23 '25

updated Oct 23 '25

Hi, I made a packet capture of a simple HTTP request + response.

After receiving the GET request the server sends an ACK+PSH (frame 5), then it sends the remaining response (frame 6). Then the client sends a double ACK (frame 7 ack=248 and frame 8 ack=249); and the wireshark detail window says that the second ack=249 is in response to frame 6. Why does the client sends two ACKs?

The image of the trace can be seen here (not enough points to upload)
The .pcap file is here

The question is not directly related to Wireshark, but I'm using it to learn how TCP/IP works "under the hood". Thank you in advance.

1 Answer

0

answered Oct 23 '25

Frame 6 contains a data segment, but also has the FIN flag set. When the FIN flag is set, it counts as if there was one byte of data (the phantom byte), which will trigger an ACK. The ACKing of both the data segment and the phantom byte of the FIN could have been done in one ACK, but apparently this TCP/IP stack ACKs the data part of the response separately from the phantom byte of the FIN flag. This results in one ACK for the data (ACK=248) and one ACK acking the phantom byte (ACK=249).

Which OSes are used for the client and the server?

Comments

Thanks for the reply!!! The client and server are both implemented in Delphi using a "quite old" Indy library and are running on Windows (Win 2019 as client / Win 7 as server). Note that the Winshark [SEQ/ACK analysis] is empty on frame 7 ACK, and on frame 8 ACK says "[This is an ACK to the segment in frame: 6]"

User 9042 ( Oct 23 '25 )

Wireshark does not make a distinction between the data and the phantom byte for it's SEQ number analysis, so it does not know how to link the ACK in frame 7 to any packet from the server. Having the FIN in a data packet is a corner case and I believe so is ACKing them separately.

Thanks for mentioning which stack is used :-)

BTW it is not Winshark, but Wireshark. If your program is called Winshark, you might have been tricked into downloading some malware infected version ;-)

User 36540 ( Oct 23 '25 )

Thanks for the clarifications! BTW I've been using Wireshark for a long time (though I'm only now delving into the details of TCP/IP)... the fact that I've called it WINshark several times means only one thing: I'm old (and also very tired at the end of the day) :-)) Thanks again.

User 9042 ( Oct 23 '25 )

No worries, it at least gave me a smile.

Happy learning in your TCP/IP journey, if you run into any more questions, you know where to find us!

User 36540 ( Oct 23 '25 )
cc-by-sa Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.