iperf: "write failed: Connection reset by peer"
Hello all you iperf users!
Anyone had this error message with iperf: "write failed: Connection reset by peer"?
On the Internet, I found only someone saying that happens if older iperf processes don't get killed.
But that's not the case with my setup.
I am connecting a board with a MIPS processor running a custom 2.6 kernel to a standard Linux PC running Red Hat with 2.6 kernel via an Ethernet cross-ver cable and a USB host-to-host cable.
I can run the benchmark programs ttcp and netperf in both directions on this system.
But iperf can only run when the MIPS board is the sender and the PC the receiver.
The other way around, iperf launches this "write failed: Connection reset by peer" messages.
The interesting thing is that this happens always after the PC has sent 18 TCP packets (and got 18 responses). Then this disobient MIPS board dares to send an RST (reset) TCP packet for no apparent reason.
If I try different data packet sizes, no matter, this RST packet comes always after 18 TCP packets (in one direction).
If I try UDP, the PC sends only two UDP packets that get each one responded by an ICMP packet (data value 03) saying "Port unreachable".
The effect is the same. iperf prints out the same error.
The same thing happens with the cross-over cable over an Ethernet port as well as with the USB host-to-host cable on a USB port.
Anyone has a clue why the MIPS board is doing this?