The client is attempting to read a final "server report" which is supposed
to originates from the server.  This read is failing per the following
messages.

read failed: Connection refused
[  3] WARNING: did not receive ack of last datagram after 1 tries.

With out looking closely, the UDP read() is likely failing per the "connected
with x.x.x.x"

Can you try with a fully qualified host instead of domain.com, e.g.
myhost.domain.com?

Are you running iperf -s -u on the server?

Probably should figure out why tcp isn't working too.

http://man7.org/linux/man-pages/man7/unix.7.html

*ECONNREFUSED*
              The remote address specified by connect(2)
<http://man7.org/linux/man-pages/man2/connect.2.html> was not a
listening
              socket.  This error can also occur if the target pathname is
              not a socket.

Bob



On Tue, Jan 31, 2017 at 3:20 PM, NoBloat <bl...@grounded.net> wrote:

> I'm having some strange results using iperf, in this case, on a ramips
> device running openwrt and iperf - 2.0.5-1.
>
> First of all, I cannot seem to use tcp, it always defaults to udp so I end
> up using udp as the example shows below.
> Second, I can never get the final results such as loss, pings etc.
>
> ---
>
> root# iperf -c domain.com -p 2131 -u -b 1m -t 5 -i 1 -f m
> ------------------------------------------------------------
> Client connecting to domain.com, UDP port 2131
> Sending 1470 byte datagrams
> UDP buffer size: 0.16 MByte (default)
> ------------------------------------------------------------
> [  3] local 192.168.2.102 port 55537 connected with x.x.x.x port 2131
> [ ID] Interval       Transfer     Bandwidth
> [  3]  0.0- 1.0 sec  24576 MBytes  206159 Mbits/sec
> [  3]  1.0- 2.0 sec  4096 MBytes  34361 Mbits/sec
> [  3]  2.0- 3.0 sec  4096 MBytes  34361 Mbits/sec
> [  3]  3.0- 4.0 sec  4096 MBytes  34361 Mbits/sec
> [  3]  4.0- 5.0 sec  4096 MBytes  34361 Mbits/sec
> [  3]  0.0- 5.0 sec  40961 MBytes  68413 Mbits/sec
> [  3] Sent 427 datagrams
> read failed: Connection refused
> [  3] WARNING: did not receive ack of last datagram after 1 tries.
>
> ---
>
> What is the connection refused? It is consistent yet this port is open on
> the server.
> And of course, I assume 'did not receive' is where I'm not receiving the
> final stats?
>
> I've read countless messages searching the net and cannot find an answer
> so thought it might be time to ask here.
>
> Anyone know anything about this?
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Iperf-users mailing list
> Iperf-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iperf-users
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Iperf-users mailing list
Iperf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iperf-users

Reply via email to