iperf icon indicating copy to clipboard operation
iperf copied to clipboard

iperf3: error - unable to send control message: Bad file descriptor

Open zhongyong opened this issue 4 years ago • 7 comments

iperf3 -c 192.168.189.167 -t 3 -p 5201 -l 16K -f M -P 3

zhongyong avatar May 24 '21 10:05 zhongyong

What version?

TheRealDJ avatar May 24 '21 16:05 TheRealDJ

Could we see the complete output from the client (and server if available)?

bmah888 avatar May 26 '21 21:05 bmah888

I also have this problem on Arch Linux:

iperf 3.9 (cJSON 1.7.13) Linux hostname 5.12.6-arch1-1 #1 SMP PREEMPT Sun, 23 May 2021 00:45:50 +0000 x86_64 Optional features available: CPU affinity setting, IPv6 flow label, TCP congestion algorithm setting, sendfile / zerocopy, socket pacing, authentication

However, I have built an AUR git version it does not seems to have this error.

igo95862 avatar May 27 '21 17:05 igo95862

I also have this problem on Arch Linux:

iperf 3.9 (cJSON 1.7.13) Linux hostname 5.12.6-arch1-1 #1 SMP PREEMPT Sun, 23 May 2021 00:45:50 +0000 x86_64 Optional features available: CPU affinity setting, IPv6 flow label, TCP congestion algorithm setting, sendfile / zerocopy, socket pacing, authentication

However, I have built an AUR git version it does not seems to have this error.

Can you provide client and server output showing the issue? Is the server running iperf 3.9 also?

TheRealDJ avatar Jun 05 '21 15:06 TheRealDJ

i also have this error

on server:

root@omvnap:~# iperf3 -s -p 5100 -B 192.168.1.246 -V
iperf 3.9
Linux omvnap 6.1.0-0.deb11.13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1~bpo11+1 (2023-10-08) x86_64
-----------------------------------------------------------
Server listening on 5100
-----------------------------------------------------------

on client:

root@bo-omv:~# iperf3 -c **.2.xxx.181 -p 5100 --udp
iperf3: error - unable to send control message: Bad file descriptor

both are version 3.9... only port 5100 udp are open at the server end

Client:

iperf 3.9 (cJSON 1.7.13)
Linux bo-omv 6.1.0-0.deb11.17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.69-1~bpo11+1 (2024-01-05) x86_64
Optional features available: CPU affinity setting, IPv6 flow label, SCTP, TCP congestion algorithm setting, sendfile / zerocopy, socket pacing, authentication

Server:

iperf 3.9 (cJSON 1.7.13)
Linux omvnap 6.1.0-0.deb11.13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1~bpo11+1 (2023-10-08) x86_64
Optional features available: CPU affinity setting, IPv6 flow label, SCTP, TCP congestion algorithm setting, sendfile / zerocopy, socket pacing, authentication

boelle avatar Aug 28 '24 16:08 boelle

works fine if i also run the client on same box as the server

root@omvnap:~# iperf3 -c 192.168.1.246 -p 5100 --udp -R
Connecting to host 192.168.1.246, port 5100
Reverse mode, remote host 192.168.1.246 is sending
[  5] local 192.168.1.246 port 53224 connected to 192.168.1.246 port 5100
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-1.00   sec   160 KBytes  1.31 Mbits/sec  2.119 ms  0/5 (0%)
[  5]   1.00-2.00   sec   128 KBytes  1.05 Mbits/sec  1.649 ms  0/4 (0%)
[  5]   2.00-3.00   sec   128 KBytes  1.05 Mbits/sec  1.285 ms  0/4 (0%)
[  5]   3.00-4.00   sec   128 KBytes  1.05 Mbits/sec  1.005 ms  0/4 (0%)
[  5]   4.00-5.00   sec   128 KBytes  1.05 Mbits/sec  0.784 ms  0/4 (0%)
[  5]   5.00-6.00   sec   128 KBytes  1.05 Mbits/sec  0.609 ms  0/4 (0%)
^C[  5]   6.00-6.15   sec  0.00 Bytes  0.00 bits/sec  0.609 ms  0/0 (0%)
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-6.15   sec  0.00 Bytes  0.00 bits/sec  0.000 ms  0/0 (0%)  sender
[  5]   0.00-6.15   sec   800 KBytes  1.06 Mbits/sec  0.609 ms  0/25 (0%)  receiver
iperf3: interrupt - the client has terminated

also works with public servers, so yeah will double check my router settings as something is blocking it

boelle avatar Aug 28 '24 16:08 boelle

works fine if i also run the client on same box as the server

root@omvnap:~# iperf3 -c 192.168.1.246 -p 5100 --udp -R
Connecting to host 192.168.1.246, port 5100
Reverse mode, remote host 192.168.1.246 is sending
[  5] local 192.168.1.246 port 53224 connected to 192.168.1.246 port 5100
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-1.00   sec   160 KBytes  1.31 Mbits/sec  2.119 ms  0/5 (0%)
[  5]   1.00-2.00   sec   128 KBytes  1.05 Mbits/sec  1.649 ms  0/4 (0%)
[  5]   2.00-3.00   sec   128 KBytes  1.05 Mbits/sec  1.285 ms  0/4 (0%)
[  5]   3.00-4.00   sec   128 KBytes  1.05 Mbits/sec  1.005 ms  0/4 (0%)
[  5]   4.00-5.00   sec   128 KBytes  1.05 Mbits/sec  0.784 ms  0/4 (0%)
[  5]   5.00-6.00   sec   128 KBytes  1.05 Mbits/sec  0.609 ms  0/4 (0%)
^C[  5]   6.00-6.15   sec  0.00 Bytes  0.00 bits/sec  0.609 ms  0/0 (0%)
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-6.15   sec  0.00 Bytes  0.00 bits/sec  0.000 ms  0/0 (0%)  sender
[  5]   0.00-6.15   sec   800 KBytes  1.06 Mbits/sec  0.609 ms  0/25 (0%)  receiver
iperf3: interrupt - the client has terminated

also works with public servers, so yeah will double check my router settings as something is blocking it

You also need to allow TCP on port 5100 as well for the iperf3 control connection.

bmah888 avatar Aug 28 '24 20:08 bmah888