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

New behaviour of Conversation Filter TCP

asked Oct 22 '26

Hello, in the past the Conversation filter TCP created a filter like "ip.sr==xxx and ip.dst==yyy and tcp.port==aaa and tcp.port==bbb" Now it just creates "tcp.stream eq xxx".

Can I change this behavoour back? Because this is just minor different to follow tcp stream. The other filter showed more...

Comments

1

Also, "follow TCP stream" does not apply a tcp.stream filter anymore in 5.0

But I do understand the wish for a 5-tuple filter, because if you want to use the filter in another capture, the stream number is useless. Being able to do so from a packet rightclick instead of detouring through conversations seems like a valid functionality wish. Maybe just copying the Community-ID instead is a proper solution. As that is 5-tuple based anyways.

User 36540 ( Oct 22 '26 )

@Chukc. Thanks for the very good workarounds. In the conversation dialog it is nice, you can either filter on 4-Tupel or on stream-ID (5-Tupel). Maybe it would be nice as well for the context menu.

In the past it was good for me to have both 4 Tupel filter via context menu and stream filter via follwo tcp stream. Both have Pros and Cons. But the 4 Tupel filter is of cours a little bit more unprecise and sometimes you can spot more artefacts or reuse it for different captures. Maybe it worth to think about to distinguish in the context menu between 4 Tupel filter or 5 Tupel filter.

@User 36540:Should we keep it as it is or should I write an enhancement request.

User 23750 ( Oct 22 '26 )
1

5-tuple in my book is ip-src,ip-dst,proto,src-port-dst-port, in that way a tcp.stream filter is not a 5-tuple, you might want to see it as some form of 6-tuple as it takes the STATE and sequence number into the mix to distinguish multiple sessions that have the same 5-tuple.

(and yes, in wireshark filters, the protocol is implied in the port filter, so then you might consider it a 4-tuple)

Anyways... I would not mind an entry in the right-click menu to generate a stream or a ip/port filter.

User 36540 ( Oct 22 '26 )

@User 36540 Now I got yout your point. But if I filter for "ip.src; ip.dst; tcp.srcport; tcp.dstport) then it is just a 4 Tupel filter even in Wireshark or? Meaning if I filter for port 22 I always got packets for port 22 equal if it is SSH or not? Or have I missed here something?

User 23750 ( Oct 23 '26 )
1

The protocol in the 5-tuple is not referring to an application protocol, but to a transport protocol ie TCP or UDP, as port numbers in itself do not make that distinction. An example of a 5-tuple is 192.168.0.10,10.0.0.100,TCP,1025,80, it uniquely identifies a session. Well, until port reuse of course, but within a certain timeframe it uniquely identifies a session.

In a display filter the protocol is implicit in the port filter, as it is either udp.port==X or tcp.port==X. So yes, a Wireshark display filter to filter on a 5-tuple is actually using 4 filter elements instead of 5, as the ip.proto==6 (for TCP) can be omitted.

See also https://www.router-switch.com/faq/wha...

In the end, we mean the same thing, I'm just being rigid about the term ;-)

User 36540 ( Oct 23 '26 )

Indeed, thanks for the explanation.

User 23750 ( Oct 23 '26 )

2 Answers

0

answered Oct 22 '26

updated Oct 22 '26

Which release version?
Changed here: 14279: Conversations: Introduce a deinterlacing method

With a few extra clicks you can get the old filter style:
- in the Conversation table
- follow the conversation, pick Filter Out This Stream and tweak the filter
- lua script to add the old functionality in a new context menu pick.

0

answered Oct 22 '26

Adding this as a second answer for visibility:
Ask: How to auto-select TCP conversations the old way?

Includes the lua script I imagined possible this morning. :-)

Comments

Nice I missed this question. I wasn´t aware about comunity ID and how to enable it.But for me the first answer solves my question better. So thank you, for this answer.

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