Interfaces LTE and Wi-Fi in the same node.

579 views
Skip to first unread message

Joahannes Bruno

unread,
Jun 9, 2016, 3:50:39 PM6/9/16
to ns-3-users
Hello friends. I am searching to implement an example that a node has two simultaneous interfaces, an LTE and other Wifi. But in my tests I have the following message of error:

"msg="InternetStackHelper::Install (): Aggregating an InternetStack to a node with an existing Ipv4 object", file=../src/internet/helper/internet-stack-helper.cc, line=428
terminate called without an active exception
Command ['/home/joahannes/repos/ns-3-allinone/ns-3-dev/build/scratch/lte-wifi'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>")."

Annex the project to see how it is mounted.

Can anybody help me?
lte-wifi.cc

Konstantinos

unread,
Jun 9, 2016, 4:41:19 PM6/9/16
to ns-3-users
Hi Joahannes,

The error message is clear pointing out where the error comes from.
    NodeContainer ueNodes;
    ueNodes.Create(node_ue);
    NodeContainer wifiNode;
    wifiNode.Add (ueNodes.Get (0));
    internet.Install(ueNodes);
    internet.Install(wifiNode);

You have created the UE node and the WiFi node is actually one of those UE nodes.
Then you try to install the InternetStack on the same node twice, once as UE and once as WiFi.

Regards,
K

Joahannes Bruno

unread,
Jun 20, 2016, 2:09:12 PM6/20/16
to ns-3-users
Thanks for the answer, my friend.

I removed the words "internet.Install (wifiNode);" and have no more error. However, implementation got the following message and without the expected success:

Waf: Leaving directory `/ home / joahannes / repos / ns-3-allinone / ns-3-dev / build '
Build commands will be stored in build / compile_commands.json
'Build' finished successfully (8.963s)
Command [/ home / joahannes / repos / ns-3-allinone / ns-3-dev / build / scratch / lte-wifi '] terminated with signal SIGSEGV. Run it under a debugger to get more information (./waf --run <program> --command-template = "gdb --args% s <args>").

Upgraded project attached.
lte-wifi.cc

Konstantinos

unread,
Jun 20, 2016, 2:17:49 PM6/20/16
to ns-3-users
Again the output tells you what your next step should be:

Run it under a debugger to get more information (./waf --run<program> --command-template = "gdb --args% s <args>").

If you do not know how to use gdb or other debugger, study those first. 

Joahannes Bruno

unread,
Jul 23, 2016, 11:50:56 PM7/23/16
to ns-3-users
Hello friends.
I can add two interfaces (WiFi and LTE) in a single node, but I face problems at the time of IP assignment.
At the end is only the IP Wi-Fi, not both.

Can someone help me? The following code attached.
lte-wifi.cc

Tommaso Pecorella

unread,
Jul 26, 2016, 4:52:51 AM7/26/16
to ns-3-users
Why do you think that the nodes have just one IP address ?
I.e., don't mistake the fact that you are not able to use the node second address with the fact that it doesn't have one.
Read your code and try to understand the meaning of each line.

T.

Joahannes Bruno

unread,
Sep 14, 2016, 3:19:24 PM9/14/16
to ns-3-users
Thank you friends. Now I understand.

Alkondan Balaji

unread,
Jan 31, 2017, 5:41:36 AM1/31/17
to ns-3-users
Could you send the working code. Please
Reply all
Reply to author
Forward
Message has been deleted
0 new messages