ns-3-lbt (laa-wifi-coexistance), Not clear which ns simulater must be used.

245 views
Skip to first unread message

George

unread,
Mar 7, 2022, 3:36:58 AM3/7/22
to ns-3-users
Hello! Sorry if this question has been answered before, I`ve tried to look for a certain answer but coudln`t find.

I am tying to run the LAA-WiFi coexistence scenario in order to learn and design my own NRU-WiFi coexistence scenario.
Is there a guide on how to get this repository working please?
I have tried the following website:
https://www.nsnam.org/wiki/LAA-WiFi-Coexistence
But without any success. I can not run any code, since the ./waf comes with a big list of errors.
Thank you!

Kind regards,
George

George

unread,
Mar 7, 2022, 6:59:28 AM3/7/22
to ns-3-users
I have also tried to use :
But I get a missing file which I cannot find anywhere in the repositories:

In file included from ../src/lte-wifi-coexistence/model/lbt-access-manager.cc:24:
../src/lte-wifi-coexistence/model/lbt-access-manager.h:36:10: fatal error: ns3/lte-channel-access-manager.h: No such file or directory
   36 | #include "ns3/lte-channel-access-manager.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

In file included from ../src/lte-wifi-coexistence/model/duty-cycle-access-manager.cc:22:
../src/lte-wifi-coexistence/model/duty-cycle-access-manager.h:25:10: fatal error: ns3/lte-channel-access-manager.h: No such file or directory
   25 | #include "ns3/lte-channel-access-manager.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

In file included from ../src/lte-wifi-coexistence/model/basic-lbt-access-manager.cc:22:
../src/lte-wifi-coexistence/model/basic-lbt-access-manager.h:28:10: fatal error: ns3/lte-channel-access-manager.h: No such file or directory
   28 | #include "ns3/lte-channel-access-manager.h"

How should I proceed to fix this error and run the laa-wifi simulation? Thank you very much!

Tom Henderson

unread,
Mar 7, 2022, 10:51:37 AM3/7/22
to ns-3-...@googlegroups.com, George
For old ns-3 releases, they can often be built on newer compilers if the
-Werror flag (on by default) is disabled. See this post:

https://www.nsnam.org/wiki/HOWTO_build_old_versions_of_ns-3_on_newer_compilers

For the old ns-3-lbt code that you found on the LAA wiki page, try this:

hg clone https://code.nsnam.org/laa/ns-3-lbt
cd ns-3-lbt
CXXFLAGS="-Wall" ./waf configure --enable-examples --enable-tests
./waf build

(Note: you must have Python2 installed for the above to work)

For the more recently maintained laa code on Bitbucket (note: this has
not been maintained in 2 years and still does not pass all tests), I
just committed a patch to fix a missing header file, but was then able
to build on Ubuntu 20.04.

https://bitbucket.org/ns3lteu/ns-3-dev-lbt/wiki/Home

Use the 'laa-wifi-coexistence-rebased' branch.

Please note that the above codebases are related to LTE LAA. For NR
unlicensed, see the CTTC code:

https://5g-lena.cttc.es/blog/10/

Hope this helps.

- Tom

Biljana Bojović

unread,
Mar 7, 2022, 1:36:52 PM3/7/22
to ns-3-users

Hi,
there is also an old version of ns-3 with LAA (LAA code is the one that Tom shared) and additionally, it has implemented CSAT LTE-U, and an example that supports both: https://bitbucket.org/cttc-lena/ns-3-lena-dev-lte-u/src/master/. This is my personal repo, on which I was working during my PhD thesis, and both models and findings are explained in this paper: https://ieeexplore.ieee.org/document/8752357.
Kind regards,
Biljana
Message has been deleted

Mohammadreza Fasihi

unread,
Nov 19, 2022, 1:35:30 PM11/19/22
to ns-3-users
Hello Tom,
I have a problem running the "cttc-coexistence-indoor-scenario" and "cttc-nr-wigig-interference" examples. Both files need "wifi-80211ad-nist-module" that is not available within the src. However, the example "cttc-nr-wifi-interference" works fine. 

Could you help me with that?

Best,
- Reza

Tom Henderson

unread,
Nov 19, 2022, 5:15:58 PM11/19/22
to ns-3-...@googlegroups.com, Mohammadreza Fasihi
On 11/19/22 10:35, Mohammadreza Fasihi wrote:
> Hello Tom,
> I have a problem running the "cttc-coexistence-indoor-scenario" and
> "cttc-nr-wigig-interference" examples. Both files need
> "wifi-80211ad-nist-module" that is not available within the src.
> However, the example "cttc-nr-wifi-interference" works fine.
>
> Could you help me with that?
>

I cannot (I don't know where the nist module is or whether it is
available publicly); perhaps someone else knows about it?

You might also try the 5g-lena-users list because it relates to the CTTC
code.

- Tom

Uzzam Javed

unread,
Aug 15, 2023, 8:10:38 PM8/15/23
to ns-3-users

Hello all,


I am new to ns3 and have started to use Laa-wifi-coexistence module for my research. I have started with the file ‘laa-wifi-simple.cc’ and the corresponding ‘laa-wifi-coexistence-helper.cc’ files. To understand the module I started to print the values of variables to understand the flow of code and also so that I could change those values for my simulation setup. I am using the code available on '
https://bitbucket.org/ns3lteu/ns-3-dev-lbt/branch/laa-wifi-coexistence-rebased'.

 

I want to assign different transmit power values to both the single LTE eNB and WiFi AP. I understood the these parameters are being set in ‘laa-wifi-simple.cc’ file through the struct PhyParams and being then forwarded to ‘laa-wifi-coexistence-helper.cc’ to assigned to WiFi node through the class SpectrumWifiPhyHelper.

 

I am not able to understand where is transmit power of LTE eNB is set. I studied the documentation and found a variable ‘TxPower’ for LteEnbPhy class. Based on this I made the addition of following lines to the code of ‘laa-wifi-coexistence-helper.cc’ file but it is giving the error attached.

 

Ptr <LteEnbPhy> enbPhy =lteEnbNetDevice -> Getphy ();

Ptr <LteEnbPhy> enbPhy =SetAttribute (“TxPower”, DoubleValue(30.0));

error_msg.jpeg

Tom Henderson

unread,
Aug 17, 2023, 12:30:12 PM8/17/23
to ns-3-...@googlegroups.com, Uzzam Javed
The error is in the below statement:
>
> Ptr <LteEnbPhy> enbPhy =SetAttribute (“TxPower”, DoubleValue(30.0));
>
>

You need to call SetAttribute method on the pointer:

enbPhy->SetAttribute("TxPower", DoubleValue(30.0));


> On Sunday, November 20, 2022 at 9:15:58 AM UTC+11 Tom Henderson wrote:
>
> On 11/19/22 10:35, Mohammadreza Fasihi wrote:
> > Hello Tom,
> > I have a problem running the "cttc-coexistence-indoor-scenario" and
> > "cttc-nr-wigig-interference" examples. Both files need
> > "wifi-80211ad-nist-module" that is not available within the src.
> > However, the example "cttc-nr-wifi-interference" works fine.
> >
> > Could you help me with that?
> >
>
> I cannot (I don't know where the nist module is or whether it is
> available publicly); perhaps someone else knows about it?
>
> You might also try the 5g-lena-users list because it relates to the
> CTTC
> code.
>
> - Tom
>
> --
> 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/3853cc5d-51d9-454a-a411-563fe5e5750bn%40googlegroups.com <https://groups.google.com/d/msgid/ns-3-users/3853cc5d-51d9-454a-a411-563fe5e5750bn%40googlegroups.com?utm_medium=email&utm_source=footer>.

Uzzam Javed

unread,
Aug 20, 2023, 7:03:59 AM8/20/23
to ns-3-users
Thank you for the reply Tom. After setting the attribute I am trying to retrieve the value set  using following command but it is giving the error attached.

PointerValue tmp;
tmp-> GetAttribute ("TxPower"); 

error.jpeg
code.jpeg

Tom Henderson

unread,
Aug 20, 2023, 11:28:10 AM8/20/23
to ns-3-...@googlegroups.com, Uzzam Javed

Uzzam Javed

unread,
Aug 21, 2023, 8:06:24 AM8/21/23
to ns-3-users
As per my understanding from the documentation the code should be as follows but it is giving the attached error:

PointerValue tmp;
enbPhy-> GetAttribute ("TxPower",tmp;)
 
Secondly NS_LOG_INFO command is used for printing output on screen but when I use it to print any statement, it is not showing any output on terminal.
error.jpeg
code.jpeg
Reply all
Reply to author
Forward
0 new messages