iperf2 fails in DCE-ns3

69 views
Skip to first unread message

tesla pop

unread,
Jul 3, 2023, 10:02:19 AM7/3/23
to ns-3-users

Hello ns3-users,
I am trying to use iperf2 in DCE-ns3 however i am getting this error

*** unable to open non-shared object file=elf-cache/0/iperf ***
assert failed. cond="false", msg="make it sure that DCE binrary file elf-cache/0/iperf was built with correct options: (CFLAGS=-fPIC, LDFLAGS=-pie -rdynamic)", +0.600000000s 1 file=../model/elf-cache.cc, line=275
terminate called without an active exception
Command ['/home/nanami/playground/ns-3-dce/build/bin/dce-iperf'] terminated with signal SIGABRT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").

I have tried different versions of iperf however none of them work
I think i am missing one flag but i dont know which one
https://github.com/lynxis/iperf2 this is the iperf i am getting error in.

i also used iperf3 from https://github.com/esnet/iperf
I have used iperf3 but the pcap files generated are empty for any example i try to use it in.

Please help me solve this issue.
If required I can send screen shots of the error.


Tom Henderson

unread,
Jul 3, 2023, 2:18:01 PM7/3/23
to ns-3-...@googlegroups.com
this is the version of iperf that is tested with DCE:

http://sourceforge.net/projects/iperf/files/iperf-2.0.5.tar.gz

It requires a patch from here: ns-3-dce/utils/iperf_4_dce.patch

Here are the flags:

"CFLAGS=-fPIC CFLAGS+=-U_FORTIFY_SOURCE CXXFLAGS=-fPIC
CXXFLAGS+=-U_FORTIFY_SOURCE LDFLAGS=-pie LDFLAGS+=-rdynamic"

This is all listed in the 'iperf' module of bakeconf.xml.
> --
> Posting to this group should follow these guidelines
> https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
> <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
> <mailto:ns-3-users+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ns-3-users/bcef5af3-781c-4928-8c94-97ef6cec52a4n%40googlegroups.com <https://groups.google.com/d/msgid/ns-3-users/bcef5af3-781c-4928-8c94-97ef6cec52a4n%40googlegroups.com?utm_medium=email&utm_source=footer>.

tesla pop

unread,
Aug 9, 2023, 6:53:12 AM8/9/23
to ns-3-users
Thank you so much i was able to follow and get iperf working
However the program i am running also requires iproute i followed the bakeconf.xml downloaded iproute-2.6.38 applied the patch
i also did
export CCOPTS="-fPIC -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g"
export LDFLAGS= "-pie -rdynamic"
however after running configure i am getting error
TC schedulers
 ATM no
 IPT using iptables
iptables modules directory: not found!

so i checked the availibility of iptables using :
which iptables
and got the output :
/sbin/iptables

however it won't configure, is there any way to fix this issue?

Tom Henderson

unread,
Aug 9, 2023, 11:10:34 AM8/9/23
to ns-3-...@googlegroups.com, tesla pop
Those are not fatal errors; on my system, I see the same, but iptables
is built and installed into the build/bin directory (because I use bake
to install it-- if you are manually configuring and building, it will
just reside in that source directory until you try to install it somewhere).

When you call 'which', it relies on the PATH environment variable to
search for programs, so if your local iptables directory is not first on
the PATH, it will find the system installed one. When using DCE, it is
important to set some environment variables correctly to point to the
bake 'build' directory:

If you set a variable to the path of your bake directory:
export DCE_HOME=/path/to/your/bake

then you should set the following

export PATH=$DCE_HOME/build/bin:$PATH
export LD_LIBRARY_PATH=$DCE_HOME/build/lib
export DCE_PATH=$DCE_HOME/build/sbin:$DCE_HOME/build/bin_dce


On 8/9/23 03:53, tesla pop wrote:
> Thank you so much i was able to follow and get iperf working
> However the program i am running also requires iproute i followed the
> bakeconf.xml downloaded iproute-2.6.38 applied the patch
> i also did
> *export CCOPTS="-fPIC -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g"
> export LDFLAGS= "-pie -rdynamic"*
> however after running configure i am getting error
> *TC schedulers
>  ATMno
>  IPTusing iptables
> iptables modules directory: not found!*
> **
> so i checked the availibility of iptables using :
> *which iptables*
> and got the output :
> */sbin/iptables*
> https://groups.google.com/d/msgid/ns-3-users/bcef5af3-781c-4928-8c94-97ef6cec52a4n%40googlegroups.com <https://groups.google.com/d/msgid/ns-3-users/bcef5af3-781c-4928-8c94-97ef6cec52a4n%40googlegroups.com> <https://groups.google.com/d/msgid/ns-3-users/bcef5af3-781c-4928-8c94-97ef6cec52a4n%40googlegroups.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/ns-3-users/bcef5af3-781c-4928-8c94-97ef6cec52a4n%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> --
> Posting to this group should follow these guidelines
> https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
> <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
> <mailto:ns-3-users+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ns-3-users/2989cb69-00c5-46f6-bbc3-e944936c929bn%40googlegroups.com <https://groups.google.com/d/msgid/ns-3-users/2989cb69-00c5-46f6-bbc3-e944936c929bn%40googlegroups.com?utm_medium=email&utm_source=footer>.

Reply all
Reply to author
Forward
0 new messages