This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How to search for the first four packets of a particual stream

0

Hi guys, I have an issue where randomly I see the following flow: - SYN - SYN+ ACK - RST+ACK - ACK

I want to know how is possible to find in a capture just those four packets, in other words, I want a filter that scan the first with a SYN flag, then search the second packet for a SYN+ACK, then the third packet for a RST+ACK and finally the fourth packet should be an ACK

asked 11 Feb '15, 08:39

ventiz's gravatar image

ventiz
6113
accept rate: 0%

Jasper and Kurt thank you for your tips they really help me to find very fast the stream of the packets I was looking for, it's sad that wireshark can find yet packet dependencies but definitely would be a great feature. Thx again

(11 Feb '15, 14:22) ventiz

2 Answers:

2

It's not really possible to filter on packet dependencies with Wireshark. But what I get from your problem description you're basically looking for a connection reset after the three way handshake is almost complete. For that it should be possible to look for reset flags where the relative sequence number is 1 (0 would be the SYN, so the next packet following it must have sequence number of 1)

Maybe that's good enough?

answered 11 Feb '15, 08:54

Jasper's gravatar image

Jasper ♦♦
23.8k551284
accept rate: 18%

Thank you Jasper and Kurt, it's sad that cannot filter via dependencies but would be great to have that feature

(12 Feb '15, 13:10) ventiz

0

This sounds similar to the following question:

https://ask.wireshark.org/questions/10640/how-to-find-syn-not-followed-by-a-synack

I'll update my answer to this:

  • set a display filter for RST+ACK
  • then: Statistics -> Conversations
  • Select the option "Limit to display filter" (at the bottom)
  • Select the tab TCP
  • Sort the output by "Packets".

Those connections with 3-4 packet are likely the connections you are looking for.

  • Select one of them and then "Follow Stream".
  • Repeat that method for all stream you want to check.

Regards
Kurt

answered 11 Feb '15, 14:12

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%