imsnif / bandwhich

Terminal bandwidth utilization tool
MIT License
9.9k stars 291 forks source link

Unable to detect some traffic #360

Open cyqsimon opened 7 months ago

cyqsimon commented 7 months ago

TLDR

I set up an iperf3 on a remote machine with iperf3 -s, and connected to it on my local box with iperf3 -c <ADDR>. bandwhich is able to detect the upload traffic as expected.

However, if I connect to it with iperf3 -R -c <ADDR>, so that the server is sending data to the client instead, bandwhich shows very little traffic (which I suppose is the control channel).

Screenshots

up

down

Here you can see bandwhich side-by-side with btop, which is able to detect both upload and download traffic correctly. There's obviously something wrong.

cyqsimon commented 7 months ago

This issue is just to document my findings. Any help (e.g. debugging, reproduction attempt, etc.) would be greatly appreciated. Thanks in advance.

handewo commented 5 months ago

I test myself, It's lower performance than iftop if network traffic is huge image iperf3 output image htop shows the CPU utilization is too high image

cyqsimon commented 5 months ago

@handewo Hmm. This is interesting but it's a separate problem - please open another issue so we can keep the discussion focused.

Meanwhile, can you please run iperf3 with -R flag to see if bandwhich can detect that traffic on your box? Much thanks.

handewo commented 5 months ago

@handewo Hmm. This is interesting but it's a separate problem - please open another issue so we can keep the discussion focused.

Meanwhile, can you please run iperf3 with -R flag to see if bandwhich can detect that traffic on your box? Much thanks.

bandwhich detect as expected if run iperf3 with '-R' I ran iperf3 and bandwhich on platform: almalinux 9.2 and iperf3 as server on Linux Mint 21.1