Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iperf3: error - unable to write to stream socket: Connection reset by peer #942

Closed
Carlos7619 opened this issue Dec 20, 2019 · 3 comments
Closed

Comments

@Carlos7619
Copy link

Computer with Windows 10 and two network interface one dedicated to client, another to server. The two interface are connected to a router that we want to test (correctly configured).
I launch following commands:
Server side: iperf3.exe -s -i 1 -p 5001 -B 192.168.1.100 -f k
Client side : iperf3.exe -c 192.168.1.100 -P 1 -i 1 -p 5001 -w 56.0K -B 192.168.2.100 -N -f k -t 10

If I disconnect ethernet cable and connect it again the connection is resetted (Please see picture below displaying server and client windows).
With Windows 7 it was working fine, the connection was not resetted and client was continuing to perform measures of bandwith.
Please help to fix this issue (any windows 10 configuration to change or timeout setting in iperf client, ... ?).
iperf error

NOTE: The iperf3 issue tracker is for registering bugs, enhancement
requests, or submissions of code. It is not a means for asking
questions about building or using iperf3. Those are best directed
towards the iperf3 mailing list at iperf-dev@googlegroups.com or
question sites such as Stack Overflow
(http://www.stackoverflow.com/). A list of frequently-asked questions
regarding iperf3 can be found at http://software.es.net/iperf/faq.html.

Context

  • Version of iperf3:

  • Hardware:

  • Operating system (and distribution, if any):

Please note: iperf3 is supported on Linux, FreeBSD, and macOS.
Support may be provided on a best-effort basis to other UNIX-like
platforms. We cannot provide support for building and/or running
iperf3 on Windows, iOS, or Android.

  • Other relevant information (for example, non-default compilers,
    libraries, cross-compiling, etc.):

Please fill out one of the "Bug Report" or "Enhancement Request"
sections, as appropriate.

Bug Report

  • Expected Behavior

  • Actual Behavior

  • Steps to Reproduce

  • Possible Solution

Please submit patches or code changes as a pull request.

Enhancement Request

  • Current behavior

  • Desired behavior

  • Implementation notes

If submitting a proposed implementation of an enhancement request,
please use the pull request mechanism.

@oliveiraleo
Copy link

@Carlos7619 Do you still have this problem or is it solved already? I'm trying to run a test between a Ubuntu iperf3 server and a Windows 10 machine but this error stops the test.
Maybe should I change any configuration?

@bmah888
Copy link
Contributor

bmah888 commented Apr 16, 2020

@Carlos7619 It feels like this is really a Windows networking issue, not related to iperf3. We don't really have the ability to troubleshoot issues with Windows...iperf3 isn't even officially supported by ESnet for the Windows platform. Apologies, I don't think we can help with this.

(The build you're running is produced by a third party. It's also a very old version of iperf3.)

@asterwyx
Copy link

I'm having problems as well in my local area network. I want to measure SCTP performance between two servers. Both of their iperf version is 3.10.1 and the os version is CentOS 7.9.2009. I have run service firewalld stop to stop firewalld. I run
iperf3 -s --debug
on one server and then:
iperf3 -c 192.168.0.89 --sctp -i 1 -t 30 -p 5201
on another server. I got the below output on the server:

# iperf3 -s --debug
-----------------------------------------------------------
Server listening on 5201 (test #1)
-----------------------------------------------------------
get_parameters:
{
        "sctp": true,
        "omit": 0,
        "time": 30,
        "parallel":     1,
        "len":  65536,
        "pacing_timer": 1000,
        "client_version":       "3.10.1"
}
Accepted connection from 192.168.0.88, port 50492
[  5] local 192.168.0.89 port 5201 connected to 192.168.0.88 port 37184
interval_len 1.000067 bytes_transferred 117833728
interval forces keep
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   112 MBytes   943 Mbits/sec
iperf3: error - unable to read from stream socket: Bad file descriptor

and on the client:

# iperf3 -c 192.168.0.89 --sctp -i 1 -t 30 -p 5201
Connecting to host 192.168.0.89, port 5201
[  5] local 192.168.0.88 port 37184 connected to 192.168.0.89 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   113 MBytes   944 Mbits/sec
iperf3: error - unable to write to stream socket: Connection reset by peer

I have no idea why this happens, please reopen this issue. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants