Issue related ns3 mmwave

468 views
Skip to first unread message

Ashit Subudhi

unread,
Nov 25, 2023, 5:29:37 AM11/25/23
to ns-3-users
Greetings all,
   I was trying to run the scenario_zero.cc in the ns3-mmwave library, which i have used in the NS-3.38 version. Although the installation of the ns3-mmwave was successful but while trying to run the scenario_zero.cc I am getting this error:
bufferSize 10 OutageThreshold -5 HandoverMode DynamicTtt e2TermIp 10.0.2.10 enableE2FileLogging 0
e2lteEnabled 1 e2nrEnabled 1 e2du 1 e2cuCp 1 e2cuUp 1 controlFilename  indicationPeriodicity 0.1
msg="Could not set default value for ns3::LteEnbNetDevice::ControlFileName", file=../src/core/model/config.cc, line=896
NS_FATAL, terminating
terminate called without an active exception
Command 'build/scratch/ns3.38.rc1-scenario-zero-default' died with <Signals.SIGABRT: 6>.
So, is this error is due to the ns3.38 version or some thing else. can someone help me on this. Thank you in advance.

Tommaso Pecorella

unread,
Nov 25, 2023, 1:51:25 PM11/25/23
to ns-3-users
The error is about a missing attribute named "ControlFileName" in the class "LteEnbNetDevice".

I didn't check the mmWave model, but either it's based on an older ns-3 version (but I don't recall such an attribute), or it did require some changes in the LTE module, or it does have a bug.

Ashit Subudhi

unread,
Nov 26, 2023, 3:30:11 PM11/26/23
to ns-3-users
Greetings all,
   Thank you for the reply. I have tried to build https://github.com/nyuwireless-unipd/ns3-mmwave/tree/new-handover using NS 3.38 version earlier although it was properly built but the errors came. I tried again with lower version in NS 3.36.1 today still the error is same. So, any suggestions in this direction it seems the error in the config.cc file. 

Thanks and regards,  

Tommaso Pecorella

unread,
Nov 26, 2023, 7:52:31 PM11/26/23
to ns-3-users
The error is not in the config.cc file, that's just the point where the error is detected.
I did try to download the repo you pointed to, but there's no "scenario_zero.cc", and there's no "ControlFileName" attribute.
This makes me think that you did get the "scenario_zero.cc" script from somewhere else (and they might as well have modified the LTE model).

Ashit Subudhi

unread,
Nov 27, 2023, 12:34:59 AM11/27/23
to ns-3-users
Thank you for the detailed clarification, I understood my mistake which I have made above. Actually, I want to run the scenario_zero.cc example from here https://github.com/wineslab/ns-o-ran-ns3-mmwave in the NS3 in the ubuntu 20.04. So, for that I tried reading this documentation https://openrangym.com/tutorials/ns-o-ran where they mentions to use lower version of the NS3 so I tried using NS-3.35 where the ns-o-ran-ns3-mmwave package mentioned above the git link I have copied inside the NS-3.35-allinone folder. But when tried to build it was successfully done. 
After that I have entered into this directory ns-allinone-3.35/ns-o-ran-ns3-mmwave-release$
 Complied again two commands:
./waf configure --enable-examples --enable-tests :This command works successfully.
2 ./waf build :This gives me error as below
Waf: Entering directory `/home/user/ns-allinone-3.35_A1/ns-o-ran-ns3-mmwave-release/build'
Error:  Cannot find dependency 'oran-interface' of module 'lte'; check the module wscript for errors.

I am trying to run the scenario_zero.cc but as a result getting these issues. It will be a great help in resolving this. Thank you in advance!

Tommaso Pecorella

unread,
Nov 28, 2023, 2:04:03 PM11/28/23
to ns-3-users
That repository contains a "full" ns-3 distribution. You don't have to use another ns-3 on top (or instead). Just download the repo and configure/run things from there.
I'd also suggest to ask directly the authors of the mentioned paper, perhaps they have better info.

Andrea Lacava

unread,
Dec 10, 2023, 6:08:20 PM12/10/23
to ns-3-users
Hi Ashit,

original developer here of ns-O-RAN. The error is telling you that the oran-interface module (i.e., ns-O-RAN) is missing in the `contrib` folder. This module can be downloaded from the OSC repositories with the following commands:

cd ns-3-mmwave-oran/contrib git clone -b master https://github.com/o-ran-sc/sim-ns3-o-ran-e2 oran-interface cd .. # go back to the ns-3-mmwave-oran folder
This piece of code is taken from the tutorial you mentioned and clones the repository of ns-O-RAN in the ns-3-mmwave-oran/contrib/oran-interface folder.
After performing this operation you should be able to configure and build the project as intended.
Finally, the ControlFileName is a custom parameter we introduced in our modification of ns-3-mmwave, which I guess you already found.
Hope this helps!

Note to self: I really need to find a way to keep track of the issues in this group related to ns-O-RAN to help the admins. Thanks, Tommaso for taking care of this.
Best,

Sheng Li

unread,
Apr 6, 2025, 7:01:49 PM4/6/25
to ns-3-users
Hi Andrea,

Newbies here,  I've tried your solution, but got the same error, by the way, where can I download the container " coloran-near-rt-ric-prebuilt"?
Thanks.

Sheng

Andrea Lacava

unread,
Apr 7, 2025, 10:22:36 AM4/7/25
to ns-3-users
Hi Sheng, 

the container is not accessible outside the Colosseum environment. Nevertheless, you can download and build it from the github page as indicated here https://openrangym.com/tutorials/ns-o-ran

Best

Bhupendra Kumar

unread,
Apr 8, 2025, 4:38:06 AM4/8/25
to ns-3-users

Sheng Li

unread,
Apr 8, 2025, 5:31:05 PM4/8/25
to ns-3-users
Hi Andrea,

Thanks for your reply, I appreciated your help.

I have followed the turorial page you mentioned, during the RIC installation process, the subnet was set to default value "172.18.0.0/16", after I fixed it to "10.0.2.0/24", I could run "./start-xapp-ns-o-ran.sh" and got inside the docker, but when I ran "./run_xapp.sh", I got these errors in other terminal with command "docker logs e2term -f --since=1s 2>&1 | grep gnb:"

{"ts":1744137082673,"crit":"DEBUG","id":"E2Terminator","mdc":{"thread id":"140246377264896"},"msg":"Message from Xapp RAN name = gnb:131-133-31000000 message length = 40"}
{"ts":1744137082673,"crit":"INFO","id":"E2Terminator","mdc":{"thread id":"140246377264896"},"msg":"send message to gnb:131-133-31000000 address"}
{"ts":1744137082673,"crit":"ERROR","id":"E2Terminator","mdc":{"thread id":"140246377264896"},"msg":"Failed to send message no CU entry gnb:131-133-31000000"}
{"ts":1744137092674,"crit":"DEBUG","id":"E2Terminator","mdc":{"thread id":"140246377264896"},"msg":"Message from Xapp RAN name = gnb:131-133-32000000 message length = 40"}
{"ts":1744137092674,"crit":"INFO","id":"E2Terminator","mdc":{"thread id":"140246377264896"},"msg":"send message to gnb:131-133-32000000 address"}
{"ts":1744137092674,"crit":"ERROR","id":"E2Terminator","mdc":{"thread id":"140246377264896"},"msg":"Failed to send message no CU entry gnb:131-133-32000000"}

Are those errors normal? Or something messed up during installation?

Thanks a lot.
Sheng

Sheng Li

unread,
Apr 8, 2025, 7:59:22 PM4/8/25
to ns-3-users
Hi Andrea,

One more question, for the second part "ns-O-RAN Setup", I don't see "waf" under "ns-3-mmwave-oran", am I missing any thing? Should I set it up inside a container?

Thanks.
Sheng

Sheng Li

unread,
Apr 10, 2025, 1:56:31 PM4/10/25
to ns-3-users
Hi Andrea and Bhupendra,

I've figured is out with help from chatGPT, the "./waf ..." commands in the instruction https://openrangym.com/tutorials/ns-o-ran are obsolete, should be replaced as below

Obsolete:
./waf configure --enable-examples --enable-tests
./waf build
./waf --run scratch/scenario-zero.cc

Replace with:
./ns3 configure --enable-examples --enable-tests
./ns3 build
./ns3 run scratch/scenario-zero

Hope this info can help other newbies in the forum.

Thanks for your help.
Sheng

Andrea Lacava

unread,
Apr 10, 2025, 2:14:52 PM4/10/25
to ns-3-users
Hi Sheng,

yes it is correct. I will amend the tutorial.

Best

Sheng Li

unread,
Apr 10, 2025, 6:33:44 PM4/10/25
to ns-3-users
Hi Andrea,

That's great. Thanks again for your help, I appreciate it.

Sheng

Nayana Andrews

unread,
Apr 10, 2025, 9:11:09 PM4/10/25
to ns-3-...@googlegroups.com

Hi everyone,  is anybody working in encryption algorithms in ns3. How can we integrate those algorithms into ns3. Is there any one facing this issue? I am in stuck with this..I have made the skeleton module in the contrib folder but I don't know when building ns3, its showing errors. Could anyone help with this?


--
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 visit https://groups.google.com/d/msgid/ns-3-users/b3a176b6-0229-44e6-981f-cf9a2cc8449fn%40googlegroups.com.

Sheng Li

unread,
Apr 17, 2025, 9:16:13 PM4/17/25
to ns-3-users
Hi Andrea,

I have an error when I ran ./ns3 run "scratch/scenario-one.cc --e2TermIp='10.0.2.10' --simTime=10"

[0/2] Re-checking globbed directories...
ninja: no work to do.
rlcAmEnabled 1 bufferSize 10 traffic Model 0 OutageThreshold -1000 HandoverMode NoAuto BasicCellId 1 e2TermIp '10.0.2.10' enableE2FileLogging 1 minSpeed 2 maxSpeed 4
e2lteEnabled 1 e2nrEnabled 1 e2du 1 e2cuCp 1 e2cuUp 1 reducedPmValues 1 controlFilename ts_actions_for_ns3.csv indicationPeriodicity 0.1 useSemaphores 0
Simulation time is 10 seconds
msg="Can't open file ts_actions_for_ns3.csv", +0.105000000s -1 file=/mnt/la-fs02/users/sli/AI/kwic/rflearning/ns-3-mmwave-oran/src/lte/model/lte-enb-net-device.cc, line=170
NS_FATAL, terminating

terminate called without an active exception
Command 'build/scratch/ns3.38.rc1-scenario-one-default --e2TermIp='10.0.2.10' --simTime=10' died with <Signals.SIGABRT: 6>.

Any clue what is missing? 

Thanks.

Sheng

Andrea Lacava

unread,
Apr 18, 2025, 12:17:42 PM4/18/25
to ns-3-...@googlegroups.com
Hi Sheng,

if you have specified a controlFilename make sure that the file exists (`ts_actions_for_ns3.csv`in your case). If you are not planning to use the traffic steering control at the moment you can simply set it as an empty string and it should work fine

Best


-----------------------------------------------------
 Andrea Lacava, PhD
        www dot andrealacava dot com



--
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 a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/9Ne2aDo9vnw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ns-3-users/f4d2d685-734e-4de9-a73a-a4a0403884e3n%40googlegroups.com.

Sheng Li

unread,
Apr 18, 2025, 7:07:21 PM4/18/25
to ns-3-users
Hi Andrea,

Thanks for the info.

I just ran the example "as is", was not running with any traffic control for now. After I created a dummy ts_actiona_for_ns3.csv, I was able to run the example successfully.

Thanks for your help.

Sheng 

Sheng Li

unread,
Apr 21, 2025, 7:07:38 PM4/21/25
to ns-3-users
Hi Andrea,
I've read your paper "Programmable and Customized Intelligence for Traffic Steering in 5G Networks Using Open RAN Architectures", very impressive. Just wonder if you've shared your DQN model and training data? If so, where can I find them?
Thanks
Sheng

Andrea Lacava

unread,
Apr 22, 2025, 2:00:22 PM4/22/25
to ns-3-...@googlegroups.com
Hi Sheng,

for this paper we have only released ns-O-RAN. No training data or code for the DQN model has been released. In another paper we have recreated the traffic steering use case and we have wrapped it inside a gymnasium environment. Feel free to have a look at https://pypi.org/project/nsoran/ and https://ieeexplore.ieee.org/abstract/document/10619796.

Best,

-----------------------------------------------------
 Andrea Lacava, PhD
        www dot andrealacava dot com


Sheng Li

unread,
Apr 22, 2025, 2:27:07 PM4/22/25
to ns-3-users
Great! Thanks Adrea, I'll take a look.

Sheng

Bhupendra Kumar

unread,
Apr 23, 2025, 4:01:05 AM4/23/25
to ns-3-...@googlegroups.com
Oh that's the goldmine you gave. Thank you so much Andrea.

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 visit https://groups.google.com/d/msgid/ns-3-users/3610a69a-b0e3-4786-9ba3-9b739d88069en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages