-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
run iperf in ns3 DCE #298
Comments
I haven't played with ns since version 1, and have no familiarity with ns3 or "DCE". It sounds like a way to run third-party applications inside ns? You can run without iperf3_profile...that's just a profiled version of the iperf3 binary that isn't even used in normal usage. |
DCE converts POSIX calls into ns3 calls so that you can run the linux kernel or real applications like vlc/ip/iperf2 on top of the simulator. It improves the realism of the simulations compared to CPU-limited simulations such as mininet. How can I disable iperf3_profile please ? I don't see the flag in ./configure --help . Btw good job updating iperf, it badly needed the changes you made. |
Thanks! Most of the iperf3 work was done before I joined the project. If you let the make job run to the end (where it errors out on iperf3_profile) has it already built the iperf3 executable? If not...hrm. You could try removing iperf3_profile from the definition of noinst_PROGRAMS, and then regenerating the build infrastructure by running bootstrap.sh. Effectively this removes iperf3_profile from the set of things that make will try to build. In December, someone else tried something similar, and we traded a few emails on the iperf-dev list. I wasn't able to help him, but maybe he was able to figure this out on his own (I didn't learn the end story). May you can post something on the iperf-dev list and see if anyone else succeeded with this. Wish I had some more help for you! |
I found the topic: |
I approved you for the group (and I found some other people who slipped through the cracks, so to speak). It's very strange that Google sent me the notification of your request to join in French...that was completely unexpected (je ne parle pas français). |
I suppose Google must have guessed you were fluent in French :) |
Apparently removing the "-pg" flag makes the compilation successful: |
Hello Teto I am having the same issue you were experiencing. I downloaded the iperf you uploaded on the link above https://github.com/teto/iperf/tree/dce_fix and configured with these flags as follows: Then I get the followoing error: One interesting observation is in your make file you have removed -pg however from my output you can see the -pg flag. How can I remove it? Any assistance will be greatly appreciated. Cheers |
The command I have noted which should work: If you plan to use it in DCE, you can use |
Wonderful thanks! You're a life saver. That worked like a charm!! Much appreciated :0) Cheers On Thu, Aug 11, 2016 at 4:27 PM, Matthieu Coudron [email protected]
|
Hello Mattthieu I am trying to use the dce-mptp-lte-wifi.cc example Client setup //Server setup On Thu, Aug 11, 2016 at 4:27 PM, Matthieu Coudron [email protected]
Client connecting to 10.1.1.2, TCP port 5001 TCP window size: 128 KByte (default)[ 3] local 10.1.1.1 port 49153 connected with 10.1.1.2 port 5001 |
I (still) have no insights about issues related to DCE. I can say that iperf3 is agnostic to whether it runs over Wi-Fi, Ethernet, LTE, or avian carriers. Some LTE carriers have a NAT between their LTE network and the rest of the Internet; depending on how you're running iperf3 that could be interfering with your setup. |
@bmah888 I close this ticket since I've been able to run iperf3 in DCE already (patches are available though not merged yet). IIRC there is an infinite loop (because it relies on time elapsing while in discrete simulators, time doesn't advance within the loop) that could be fixed or modified upstream. We'll see if someone volunteers :) @Ruvaak open a thread on ns3 mailing list but no one can help you without more details. Just look into stdout/stderr files to get the proper error message. |
Hello Matt My iperf3 has stopped working. I had configured it and made it exactly as I can confirm that my environment variables are set correctly to show the The sad part is that it worked once after I had configured it as you On Thu, Aug 11, 2016 at 4:27 PM, Matthieu Coudron [email protected]
|
DCE_PATH works as PATH, make sure the folder that contians the iperf3 binary is in it. |
@teto ./configure CFLAGS="-g -U_FORTIFY_SOURCE -fPIC" LDFLAGS="-pie -rdynamic" --with-pic --disable-shared --disable-static
make
make install I have problem when entering
I want to know how can I solve this problem? |
did you run $ make clean beforehand ? which version ? |
@teto |
Hi,
I would like to load iperf3 in the network simulator ns3 with DCE. Thus I tried compiling it with the flags described here: https://www.nsnam.org/docs/dce/manual/html/dce-user-newapps.html such as
Would it be possible to fix this please ?
The text was updated successfully, but these errors were encountered: