You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, TCP connections are recognized by first packet seen, where this can be a problem in lots of specific situations (TCP out of order packets, SYN missing, late PCAP recording because of slow start or similar). In our case, SYN packet is just not there, while the response SYN-ACK is considered as the initial connection attempt, making CAPE results having mixed source and destination.
So, I have couple of ideas on my mind, but I would not like to propose something too complicated for your taste. As you are already using dpkt it shouldn't be a too much hustle to check some flags.
For example, if first packet is for unknown connection, maybe to check whether it has SYN set and treat packet as you do it now, while in case of SYN-ACK to reverse the order dst<->src in your connection table. It can be even more complicated that this, but not sure if it is too much
The text was updated successfully, but these errors were encountered:
Again me :)
Problematic block is here
So, TCP connections are recognized by first packet seen, where this can be a problem in lots of specific situations (TCP out of order packets, SYN missing, late PCAP recording because of slow start or similar). In our case,
SYN
packet is just not there, while the responseSYN-ACK
is considered as the initial connection attempt, making CAPE results having mixed source and destination.So, I have couple of ideas on my mind, but I would not like to propose something too complicated for your taste. As you are already using
dpkt
it shouldn't be a too much hustle to check some flags.For example, if first packet is for unknown connection, maybe to check whether it has
SYN
set and treat packet as you do it now, while in case ofSYN-ACK
to reverse the order dst<->src in your connection table. It can be even more complicated that this, but not sure if it is too muchThe text was updated successfully, but these errors were encountered: