This is our old Q&A Site. Please post any new questions and answers at

I have 30+ TCP streams in a trace that all have in common that they miss the first 2 packets in the 3-way handshake and have some weird SEQ/ACK numbers going on. The trace is done on the computer. The data being sent is either SQL queries or simply a dot "."

Here is one such stream's traffic:


-why would a large amount of TCP streams lack the first 2 packets in the handshake? I can't find any signs of packet loss elsewhere in the trace file.

-The 1st packet in this trace in reality is the 3rd packet of the TCP handshake. Why would the third packet in the handshake contain a "." ? Make sense to anyone?

-I cannot make sense of the ACKs and SEQ's going up/down all the time. Shouldn't they just keep going up as long as there is no packet loss?

Thanks, Skjalg

asked 01 Mar '16, 03:05

Skjalg's gravatar image

accept rate: 0%

edited 01 Mar '16, 03:07

The trace you uploaded contains only TCP_KeepAlive packets with a single garbage byte.
So there have been sessions sitting idle when you started the capture.
Just the sequence and ack number being 1 doesn't make them the 3rd packet of the three-way handshake.
Regards Matthias

permanent link

answered 01 Mar '16, 04:11

mrEEde's gravatar image

accept rate: 20%

That's one of the dangers of relative sequence numbers - it can fool you in some situations :-)

(01 Mar '16, 04:59) Jasper ♦♦

The fact that ACKs/SEQs start at 0 regardless of where in the stream you start capturing allured me - makes perfect sense of course :-)

Did a little search on the garbage byte you mentioned and learned that these are in fact a part of TCP Keep Alives. Since many TCP implementations will not reliably deliver a segment containing only an ACK & no data, it is common to use a garbage octet/byte as payload in a Keep Alive. By lowering the SEQ# accordingly, the receiving end will understand it is a Keep Alive and simply reply to the sender without passing any data to the application layer (since it knows it already acknowledged the data represented by the sender's SEQ#)

I live and learn :-)

Thanks Matthias!

(01 Mar '16, 22:20) Skjalg
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 01 Mar '16, 03:05

question was seen: 1,131 times

last updated: 02 Mar '16, 00:16

p​o​w​e​r​e​d by O​S​Q​A