iperf -u for lte-wifi in ns3-dce

114 views
Skip to first unread message

tina

unread,
Apr 11, 2017, 11:33:34 AM4/11/17
to ns-3-users
Hi all,
-c
I am trying to use "dce-mptcp-lte-wifi" arcitechture for using iperf -u. My goal is that i can run "iperf -c 10.2.0.1 -u" and "iperf -c 10.2.1.1 -u". i deleted all manual routingtable sets and i added 
LinuxStackHelper::PopulateRoutingTables ();

although there was not any error with ./waf build and ./waf --run, but all pcaps were empty and no packet transferred in network.

so i did:
 "#include "ccnx/misc-tools.h" 

and following lines:

 Ipv4GlobalRoutingHelper::PopulateRoutingTables ();
LinuxStackHelper::PopulateRoutingTables ();

i will attach the program to this email. When "./waf build" i will receive following errors that i can't understand what is the reason could you please guide me?


../example/dce-mptcp-lte-wifi.cc: In function 'int main(int, char**)':
../example/dce-mptcp-lte-wifi.cc:116:40: error: call of overloaded 'setPos(ns3::Ptr<ns3::Node>, int, int, int)' is ambiguous
   setPos (nodes.Get (0), -20, 30 / 2, 0);
                                        ^
../example/dce-mptcp-lte-wifi.cc:116:40: note: candidates are:
../example/dce-mptcp-lte-wifi.cc:45:6: note: void setPos(ns3::Ptr<ns3::Node>, int, int, int)
 void setPos (Ptr<Node> n, int x, int y, int z)
      ^
In file included from ../example/dce-mptcp-lte-wifi.cc:40:0:
../example/ccnx/misc-tools.h:8:6: note: void ns3::setPos(ns3::Ptr<ns3::Node>, int, int, int)
 void setPos (Ptr<Node> n, int x, int y, int z);
      ^
../example/dce-mptcp-lte-wifi.cc:117:40: error: call of overloaded 'setPos(ns3::Ptr<ns3::Node>, int, int, int)' is ambiguous
   setPos (nodes.Get (1), 100, 30 / 2, 0);
                                        ^
../example/dce-mptcp-lte-wifi.cc:117:40: note: candidates are:
../example/dce-mptcp-lte-wifi.cc:45:6: note: void setPos(ns3::Ptr<ns3::Node>, int, int, int)
 void setPos (Ptr<Node> n, int x, int y, int z)
      ^
In file included from ../example/dce-mptcp-lte-wifi.cc:40:0:
../example/ccnx/misc-tools.h:8:6: note: void ns3::setPos(ns3::Ptr<ns3::Node>, int, int, int)
 void setPos (Ptr<Node> n, int x, int y, int z);
      ^
../example/dce-mptcp-lte-wifi.cc:127:44: error: call of overloaded 'setPos(ns3::Ptr<ns3::Node>, int, int, int)' is ambiguous
      setPos (enbNodes.Get (0), 60, -4000, 0);
                                            ^
../example/dce-mptcp-lte-wifi.cc:127:44: note: candidates are:
../example/dce-mptcp-lte-wifi.cc:45:6: note: void setPos(ns3::Ptr<ns3::Node>, int, int, int)
 void setPos (Ptr<Node> n, int x, int y, int z)
      ^
In file included from ../example/dce-mptcp-lte-wifi.cc:40:0:
../example/ccnx/misc-tools.h:8:6: note: void ns3::setPos(ns3::Ptr<ns3::Node>, int, int, int)
 void setPos (Ptr<Node> n, int x, int y, int z);
      ^
../example/dce-mptcp-lte-wifi.cc:158:30: error: call of overloaded 'setPos(ns3::Ptr<ns3::Node>&, int, int, int)' is ambiguous
  */     setPos (pgw, 70, 0, 0);
                              ^
../example/dce-mptcp-lte-wifi.cc:158:30: note: candidates are:
../example/dce-mptcp-lte-wifi.cc:45:6: note: void setPos(ns3::Ptr<ns3::Node>, int, int, int)
 void setPos (Ptr<Node> n, int x, int y, int z)
      ^
In file included from ../example/dce-mptcp-lte-wifi.cc:40:0:
../example/ccnx/misc-tools.h:8:6: note: void ns3::setPos(ns3::Ptr<ns3::Node>, int, int, int)
 void setPos (Ptr<Node> n, int x, int y, int z);
      ^
../example/dce-mptcp-lte-wifi.cc:230:43: error: call of overloaded 'setPos(ns3::Ptr<ns3::Node>, int, int, int)' is ambiguous
  */     setPos (routers.Get (0), 70, 30, 0);
                                           ^
../example/dce-mptcp-lte-wifi.cc:230:43: note: candidates are:
../example/dce-mptcp-lte-wifi.cc:45:6: note: void setPos(ns3::Ptr<ns3::Node>, int, int, int)
 void setPos (Ptr<Node> n, int x, int y, int z)
      ^
In file included from ../example/dce-mptcp-lte-wifi.cc:40:0:
../example/ccnx/misc-tools.h:8:6: note: void ns3::setPos(ns3::Ptr<ns3::Node>, int, int, int)
 void setPos (Ptr<Node> n, int x, int y, int z);

tina

unread,
Apr 13, 2017, 10:06:49 AM4/13/17
to ns-3-users
It is strange because i attached the code here! but it seems it was not attached. However, there is the code here. I would grately appreciate if you can guide me.
dce-mptcp-lte-wifi.cc

tina

unread,
Apr 18, 2017, 4:45:47 PM4/18/17
to ns-3-users

Hi,

the reason of " error: call of overloaded 'setPos(ns3::Ptr<ns3::Node>, int, int, int)' is ambiguous" error was that the setpos function was defined in ccnx/misc-tools.h and also in my program.  but yet, when i deleted all manual linux routings, and i added
 Ipv4GlobalRoutingHelper::PopulateRoutingTables ();
LinuxStackHelper::PopulateRoutingTables ();

i have the following error i am using available image in docker (mptcp 0.89) so i think all the libraris and dependencies are installed correctly:

Traceback (most recent call last):
  File "/home/ns3/mptcp-0.89/mptcp/arch/sim/test/buildtop/source/ns-3-dce/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Scripting.py", line 97, in waf_entry_point
    run_commands()
  File "/home/ns3/mptcp-0.89/mptcp/arch/sim/test/buildtop/source/ns-3-dce/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Scripting.py", line 155, in run_commands
    run_command('shutdown')
  File "/home/ns3/mptcp-0.89/mptcp/arch/sim/test/buildtop/source/ns-3-dce/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Scripting.py", line 143, in run_command
    ctx.execute()
  File "/home/ns3/mptcp-0.89/mptcp/arch/sim/test/buildtop/source/ns-3-dce/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Context.py", line 87, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File "/home/ns3/mptcp-0.89/mptcp/arch/sim/test/buildtop/source/ns-3-dce/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Context.py", line 128, in recurse
    user_function(self)
  File "/home/ns3/mptcp-0.89/mptcp/arch/sim/test/buildtop/source/ns-3-dce/wscript", line 998, in shutdown
    visualize=Options.options.visualize)
  File "/home/ns3/mptcp-0.89/mptcp/arch/sim/test/buildtop/source/ns-3-dce/wutils.py", line 250, in run_program
    return run_argv(execvec, env, cwd=cwd)
  File "/home/ns3/mptcp-0.89/mptcp/arch/sim/test/buildtop/source/ns-3-dce/wutils.py", line 164, in run_argv
    retval = subprocess.Popen(argv, env=proc_env, cwd=cwd).wait()
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Please guide me how can i make routings with ns3 or linux kernel without doing that with linux?

tesla pop

unread,
Feb 14, 2024, 9:20:00 AMFeb 14
to ns-3-users
Hi were you able to solve this issue
If yes can you please tell me the reason for empty pcap files.
Reply all
Reply to author
Forward
0 new messages