iperf3-python icon indicating copy to clipboard operation
iperf3-python copied to clipboard

Client is not responding with num_streams > 22

Open goopilot opened this issue 3 years ago • 2 comments

Tested with iperf 3.9, 3.6, 3.0.11 client is not responding with num_streams > 22

Working scenario:

import iperf3
import os

remote_site = os.getenv('REMOTE_SITE_IP')

client = iperf3.Client()
client.server_hostname = remote_site
client.zerocopy = True
client.verbose = False
client.reverse = False
client.port = 5201
client.num_streams = 22
client.protocol = 'tcp'

result = client.run()

sent_mbps = int(result.sent_Mbps)
received_mbps = int(result.received_Mbps)

print('sent speed:%',sent_mbps)
print('received speed:%',received_mbps)

Non-working scenario:

import iperf3
import os

remote_site = os.getenv('REMOTE_SITE_IP')

client = iperf3.Client()
client.server_hostname = remote_site
client.zerocopy = True
client.verbose = False
client.reverse = False
client.port = 5201
client.num_streams = 23
client.protocol = 'tcp'

result = client.run()

sent_mbps = int(result.sent_Mbps)
received_mbps = int(result.received_Mbps)

print('sent speed:%',sent_mbps)
print('received speed:%',received_mbps)

goopilot avatar Dec 10 '22 05:12 goopilot

I do experience the same behavior, but already with > 10 streams. If you set less than 10 streams, it works perfectly. However, with a higher number, iperf never returns.

firefrei avatar Mar 24 '23 10:03 firefrei

I have the same issue - Ubuntu 24.04 here.

Any fix or workaround? thanks

fernandomiguelsantos avatar Jul 22 '24 18:07 fernandomiguelsantos