Using iperf from ns-3 source code instead of DCE source code

84 views
Skip to first unread message

Kun Win

unread,
Mar 11, 2022, 5:46:36 AM3/11/22
to ns-3-users
Good Morning,

I am trying to use iperf from within NS-3 source code (example: from "scratch" folder). I have been going though lot of suggestion here in the group such as


I still not be able to use "iperf" executable from within ''scratch' folder.

I would be really grateful, if someone could point be to the right direction. Or is it even possible?

sincerely,
Win

Tom Henderson

unread,
Mar 11, 2022, 11:44:14 AM3/11/22
to ns-3-...@googlegroups.com
See the post I just sent a few seconds ago to another thread. If you
want to use iperf, you should put your program in DCE, not ns-3/scratch.

If you want to use a different version of iperf than the one that bake
provides, then you will want to edit the bakeconf.xml to build your
different iperf source code so that the binary is found in bake's
'build/bin_dce/' directory.

- Tom

Veeramani Ramasamy

unread,
Mar 11, 2022, 12:04:29 PM3/11/22
to ns-3-users
Hi 
I am trying to create my own folder-> myfiles-ns3 in the scratch folder. while running its giving error can someone help in this context. I would be grateful.

Veeramani

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/7aef14c9-27f8-f881-6057-fdcbe9b9e32e%40tomh.org.

Tom Henderson

unread,
Mar 11, 2022, 12:22:48 PM3/11/22
to ns-3-...@googlegroups.com, Veeramani Ramasamy
On 3/11/22 09:03, Veeramani Ramasamy wrote:
> Hi
> I am trying to create my own folder-> myfiles-ns3 in the scratch folder.
> while running its giving error can someone help in this context. I would
> be grateful.
>
> Veeramani

Please start a new subject thread name when you have a new question; do
not reply to an unrelated message. Please also give more details. You
may want to read our guidelines for posting:

https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting

Kun Win

unread,
Mar 11, 2022, 1:21:59 PM3/11/22
to ns-3-users
Hi Tom,

Thank you for answering my question. I already read your answer in another thread. That really help because I was trying to do the exact same thing, by using iperf from ns-3 source code and not from dce source code. If it is possible, would you mind explaining a bit more, why we can't just add a path to bake/build to wscript while compiling ns3 source code (so that it could see dce-module.h and *.so)? From what I observed, the DCE uses modules from NS3 to compile, but if those paths was added when compiling NS3, the program in scratch folder should be able to see the dce code? (I already tried that and get an error, for instance: [undefined reference to `ns3::DceManagerHelper::DceManagerHelper()'])

I am quite new to this simulation and already manage to make iperf3 works with DCE. I am trying this out so that it would be easier for other to just use NS3 and iperf without having to worry about which source code folder the custom program is located.

Sincerely,
Win

Veeramani Ramasamy

unread,
Mar 12, 2022, 12:31:45 AM3/12/22
to Tom Henderson, ns-3-users
Will do, thanks!
Reply all
Reply to author
Forward
0 new messages