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

tcptrace graphic analysis

asked Aug 28 '25

updated Aug 28 '25

Hello,

I am working on the http-download-bad.pcapng from wireshark (uploaded here in order to udnerstand tcptrace graphic. The graph is made from 61.8.0.17:80 -> 10.0.52.164.2250

From packet 133, we have packet loss and from pkt 135 in the graph there is a vertical red line under the "I". This line grows up until packet 163 and then, a brown line appears in the graph and the red line is reduced. From my understanding brown lines are sack block form the tcp receiver whereas red lines are duplicate ack from the sender. But the graph does not reflect it. I probably misunderstood something. Can you clarify me the graph? Thanks

Comments

Wireshark version, there have been changes in this area over the years?

User 98587 ( Aug 28 '25 )

version: 3.6.2 (Git v3.6.2 packaged as 3.6.2-2) Linux.

User 82851 ( Aug 28 '25 )

1 Answer

0

answered Aug 30 '25

The brown line represents the (cumulative) ACK from the receiver side. The red lines represent the SACK blocks in the DUP-ACKs.

When frame 132 and 133 are received, there is a missing segment in between. This generated a DUP-ACK where the cumulative ACK (brown line at the bottom) is raised to ACK the reception of the data segment in frame 132. But sinde there is data missing in between, the data segment in frame 133 is SACKed which is visible in the red line. The gap between the brown line and the bottom of the red line is the missing data:

image description

Frame 216 fills the gap between the cumulative ACK and the left edge (LE) of the SACK block, this results in an ACK that now includes the newly received data segment as well as the previously received data segments. This is shown by the (cumulative) ACK being increased, represented by the brown line being raised:

image description

Comments

Hello, Thank you for the quick reply. I agree with your explanation, this is not the part that is problematic for me. I have uploaded a picutre with annotation here. Points I do not understand are 3 and 5. Regards,

User 82851 ( Sep 01 '25 )

Regarding 3: When there are multiple SACK blocks present in the TCP options, then the first one (which included the most recently received TCP segment) will be plotted in "red" and the other SACK blocks are plotted in "brown".

Regarding 5: There is limited space in the TCP header (ie max 60 bytes, so max 40 bytes for options), which means there can be more disjunct SACK block than fit in the header. Also, adding the most amount of SACK blocks is listed as a SHOULD in the RFC and not as a MUST. So a previously seen SACK block can be omitted in subsequent DUP-ACKs if there is either no room for it, or the specific SACK implementation is only sending a specific amount of SACK blocks. In this case, the receiver of the data is sending 2 SACK blocks even though there is room for sending 3 SACK blocks.

User 36540 ( Sep 01 '25 )

Thanks again for you clear explanation.

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