esnet / iperf

iperf3: A TCP, UDP, and SCTP network bandwidth measurement tool
Other
6.99k stars 1.28k forks source link

compiling iperf3 for ipv4 #266

Closed nprp closed 7 years ago

nprp commented 9 years ago

hi there, i have cross compiled iperf3 and then download binary in my system. Can anyone guide me how to compile it for ipv4

when i run server i got following msg

./iperf3 -s

warning: this system does not seem to support IPv6 - trying IPv4

Server listening on 5201

iperf3: error - unable to receive parameters from client: Address family not supported by protocol

and on clinet side

./iperf3 -c 192.168.1.2 Connecting to host 192.168.1.2, port 5201 iperf3: error - unable to receive control message: Connection reset by peer

bmah888 commented 9 years ago

More information will be required to try to come up with an answer. What types of systems (hardware and OS) are the builder and target systems? Also what version of iperf3 are you running?

iperf3 compiles with IPv6 support built-in by default; almost every modern operating systems has IPv6 support in that they have the headers and definitions necessary to compile programs that use IPv6. At runtime, a host may or may not have IPv6 enabled. iperf3, when running as a server, tries at first to assume that it's running on an IPv6 capable system. If it doesn't, it falls back to IPv4-only support.

I vaguely remember fixing some bugs in this area awhile back, so I'd like to hear more details about the circumstances under which you saw this bug. One additional thing to try would be to pass the -4 flag to the server when you start it up, to force it to only do IPv4. That was at one point a workaround for this issue, although on recent versions of the code that shouldn't be necessary.

nprp commented 9 years ago

Thanks for prompt reply. iperf version = iperf-3.0.11 CROSS_COMPILE=microblazeel-xilinx-linux-gnu- I have an fpga on which i have installed microblaze softcore. i have cross compiled iperf and it has successfully generate iperf3 binary file. now for testing one iperf3 is running on my system and other iperf is running on FPGA board.

./iperf3 -s -4

Server listening on 5201

Accepted connection from 192.168.1.2, port 45785 iperf3: error - unable to receive control message: Connection reset by peer

./iperf3 -c 192.168.1.1

Connecting to host 192.168.1.1, port 5201 iperf3: error - unable to initialize stream: Transport endpoint is not connected

bmah888 commented 9 years ago

Hrm. It's not immediately obvious to me what's going wrong here. Which side is the Microblaze host? What kind of host is on the other side (the "my system") side? Does the Microblaze environment have any limits on the number of TCP connections or sockets that can be open at once?

What if you run both the client and server on the same host (invoke the client side with -c 127.0.0.1), does it work then?

syedjawad commented 9 years ago

Microblaze is softcore processor for xilinx devices (FPGAs). i have cross compile iperf3 by writing this command ./configure powerpc

it is not showing me the option for microblaze processor. Can you guide me how to cross compile iperf3 for softcore processor.

bmah888 commented 9 years ago

@syedjawad : I think you'd have to get the OP to answer this question, or at least someone with more familiarity with the Microblaze than me. Cross-compiling should theoretically work although I haven't any first-hand experience with this myself.

bmah888 commented 7 years ago

No activity on this issue in 21 months, closing.