LTE Carrier Aggregation Problem

217 views
Skip to first unread message

Dasha Sayed

unread,
Jun 6, 2017, 4:12:22 AM6/6/17
to ns-3-users
Hi everyone, I'm trying to enable carrier aggregation in the lena-simple-epc.cc example. I'm basing it on this website https://www.nsnam.org/doxygen/lena-simple-epc_8cc_source.html .
However, whenever i put bool useCa = true, instead of useCa = false, the terminal will give me the next output:
msg="Could not set default value for ns3::LteHelper::UseCa", file=../src/core/model/config.cc, line=779
terminate called without an active exception

I will appreciate so much your help.

Dasha Sayed

unread,
Jun 7, 2017, 4:16:53 AM6/7/17
to ns-3-users

Also I would like to make it clear that when i run the script with useCa=false, it compiles perfectly without any error message.

Biljana Bojovic

unread,
Jun 7, 2017, 7:00:01 PM6/7/17
to ns-3-...@googlegroups.com
Hi Dasha,

if you are running the script from the terminal, you should type 1 for true, and 0 for false, e.g.
./waf --run "lena-simple --useCa=1"

Can you please try and let me know.

Cheers,
Biljana


On Wed, Jun 7, 2017 at 10:16 AM, Dasha Sayed <dasha...@gmail.com> wrote:

Also I would like to make it clear that when i run the script with useCa=false, it compiles perfectly without any error message.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Dasha Sayed

unread,
Jun 8, 2017, 2:35:57 AM6/8/17
to ns-3-users
Hi Biljana, thank you for your suggestion. I did it as you put but still it gives me the same message msg="Could not set default value for ns3::LteHelper::UseCa", file=../src/core/model/config.cc, line=779

terminate called without an active exception

I literally copied and past the lena-simple-epc example and it doesn't work.

I hope you could give me any other suggestion.

Thanks!

Zoraze Ali

unread,
Jun 9, 2017, 3:01:17 AM6/9/17
to ns-3-users
Hi, 

Did you solve the reported problem? If not, could you please tell me, which version of ns-3 you are using?

Kind regards,
Zoraze

Dasha Sayed

unread,
Jun 9, 2017, 3:40:29 AM6/9/17
to ns-3-users
Hi Zoraze. Unfortunately I haven't solved it yet. I have ns3.26.

Zoraze Ali

unread,
Jun 9, 2017, 3:58:48 AM6/9/17
to ns-3-users
Hi Dasha, 

Carrier Aggregation (CA) is not there in ns-3.26. You can either use ns-3-dev (https://www.nsnam.org/ns-3-dev/download/) or wait for ns-3.27 release. 

Kind regards,
Zoraze

Dasha Sayed

unread,
Jun 9, 2017, 4:02:21 AM6/9/17
to ns-3-users
Thank you very much!!!

Dasha Sayed

unread,
Jun 9, 2017, 8:59:28 AM6/9/17
to ns-3-users
Hey Zoraze, I'm sorry to bother you again. I tried to download ns-3-dev but when i build wa i also get some error message.

 [ 970/1820] Compiling src/wave/model/channel-coordinator.cc
In file included from ../src/wifi/model/wifi-mac-queue.h:27:0,
                 from ../src/wifi/model/wifi-mac-queue.cc:28:
./ns3/queue.h: In instantiation of ‘bool ns3::Queue<Item>::DoEnqueue(ns3::Queue<Item>::ConstIterator, ns3::Ptr<T>) [with Item = ns3::WifiMacQueueItem; ns3::Queue<Item>::ConstIterator = std::_List_const_iterator<ns3::Ptr<ns3::WifiMacQueueItem> >]’:


Hope you can guide through this; and thank you so much in advance.

Zoraze Ali

unread,
Jun 9, 2017, 9:47:26 AM6/9/17
to ns-3-users
Hi Dasha, 

Are you sure you didn't change any thing (just to be sure)? I have just cloned and successfully built the code. Please check if you are full filling the prerequisites ( https://www.nsnam.org/wiki/Installation#Prerequisites) depending on your OS. I am using Ubuntu 16.04. 

Kind regards,
Zoraze

Dasha Sayed

unread,
Jun 12, 2017, 4:19:22 AM6/12/17
to ns-3-users
I didn't modify anything. It took me by surprise that the folder of ns3-development doesn't come with the "build" folder and the build.py as the other versions. Then i just tried to run waf configure and I keep getting the error in the wifi-mac-queue part. I have all the prerequisites and I'm using Ubuntu 14.

Regards,

Dasha

Zoraze Ali

unread,
Jun 12, 2017, 9:29:40 AM6/12/17
to ns-3-users
Hi Dasha,

Could you please tell me which version of GCC compilier (command: gcc --version) you have? And, is this the complete error message?

Kind regards,
Zoraze

Dasha Sayed

unread,
Jun 13, 2017, 9:21:23 AM6/13/17
to ns-3-users
Dear Zoraze I want to thank you very much for your kind help. In fact, my GCC Compiler was by default the version 8 instead of 9. Once i switched that I solved my problem. Thank you again for your patience and help,

Dasha

Zoraze Ali

unread,
Jun 13, 2017, 9:30:09 AM6/13/17
to ns-3-users
Hi Dasha, 

You are welcome. Just to be sure, you updated GCC 4.8 to 4.9, right? Not 8 to 9. 

Kind regards,
Zoraze

Dasha Sayed

unread,
Jun 14, 2017, 3:19:36 AM6/14/17
to ns-3-users
Yes exactly. Thanks again for your help!!!
Reply all
Reply to author
Forward
0 new messages