11 Oct 2011 01:17
Re: Option to auto stop UDP traffic when network goes down
Excerpts from Shashank Khanvilkar's message of Mon Oct 10 16:43:16 -0500 2011: > Hello, > Thanks for any response in advance. > > I would like to know if iperf supports (or planning to support) any > mechanism where the sender will automatically detect (using some sort of > keep-alives, say) that the network is down and stop pumping in UDP traffic. > Let me know if something like this exists. Well it depends on what you mean. If the far end host goes down or is partitioned from the network (it becomes unreachable fro some reason) Iperf will exit due to the conventional mechanics of using the sockets interface. For example: (192.168.1.1 is not reachable from my test host.) $ iperf -u -c 192.168.1.1 ------------------------------------------------------------ Client connecting to 192.168.1.1, UDP port 5001 Sending 1470 byte datagrams UDP buffer size: 9.00 KByte (default) ------------------------------------------------------------ [ 3] local 198.124.252.117 port 59240 connected with 192.168.1.1 port 5001 write2 failed: No route to host [ ID] Interval Transfer Bandwidth [ 3] 0.0- 0.0 sec 1.44 KBytes 1.04 Mbits/sec [ 3] Sent 1 datagrams read failed: No route to host [ 3] WARNING: did not receive ack of last datagram after 1 tries. The important bit above is: "write2 failed: No route to host"(Continue reading)
RSS Feed