Skip to content

fix: resolve #360 — Unable to detect some traffic#505

Open
chinhkrb113 wants to merge 3 commits into
imsnif:mainfrom
chinhkrb113:improve/quality/normalize-connection-identity-so-inbound
Open

fix: resolve #360 — Unable to detect some traffic#505
chinhkrb113 wants to merge 3 commits into
imsnif:mainfrom
chinhkrb113:improve/quality/normalize-connection-identity-so-inbound

Conversation

@chinhkrb113

Copy link
Copy Markdown

Summary

Combined multi-file contribution:

Changes

  • src/network/connection.rs
  • src/network/sniffer.rs
  • src/network/utilization.rs

Why

src/network/connection.rs: The iperf3 reverse-mode case indicates that packets flowing from the remote server to the local client are not being attributed to the same tracked connection as packets flowing from local to remote. This is commonly caused by treating a TCP/UDP 4-tuple as directional, eg. (src_ip, src_port, dst_ip, dst_port), while process/socket lookup data is usually represented from the local endpoint perspective. For reverse traffic, the packet tuple is flipped, so lookup misses and the traffic is either ignored or counted only as unrelated control traffic.

Fixes imsnif#360

Signed-off-by: ChinhLee <76194645+chinhkrb113@users.noreply.github.com>
Fixes imsnif#360

Signed-off-by: ChinhLee <76194645+chinhkrb113@users.noreply.github.com>
Fixes imsnif#360

Signed-off-by: ChinhLee <76194645+chinhkrb113@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant