ns3-ai module

1,565 views
Skip to first unread message

Breno Melo

unread,
May 14, 2021, 9:47:15 AM5/14/21
to ns-3-users
Hello,

I am studying machine learning algorithms using the ns3-ai module to detect anomalies on the Internet of Vehicles. I read about it at https://apps.nsnam.org/app/ns3-ai/, but I did not understand how to use a separate neural network algorithm implemented in Python with NS3.

Thanks for any help.

Rima Benelmir

unread,
May 16, 2021, 8:02:00 AM5/16/21
to ns-3-users
Hello,
Did you get some solution to integrate machine learning with NS3 ?

Breno Melo

unread,
May 16, 2021, 10:19:16 AM5/16/21
to ns-3-users
Not yet. I am trying to follow the ns3-ai documentation.

Ashar Tariq

unread,
May 16, 2021, 8:51:10 PM5/16/21
to ns-3-...@googlegroups.com
Search for ns3-gym. ns3 has a module that you can read about. There is a paper you can follow to implement machine learning with ns3. I have attached the paper.




--
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 on the web visit https://groups.google.com/d/msgid/ns-3-users/2e1d0ac0-bffe-4cd6-aa16-ccf237132e80n%40googlegroups.com.
ns-3 meets OpenAI Gym - The Playground for Machine Learning in Networking Research.pdf

Breno Melo

unread,
May 17, 2021, 8:37:20 AM5/17/21
to ns-3-users
Thank you so much, @tariq. I will take a look and see if it performs better than the ns3-ai module.

Rima Benelmir

unread,
May 17, 2021, 9:31:50 AM5/17/21
to ns-3-users
@tariq thanks for sharing that , but i have a question : if my environment doesn't exist in the list of the API what should i do? knowing that i want to use 5G vehicular networks.

Ashar Tariq

unread,
May 17, 2021, 9:35:47 AM5/17/21
to ns-3-...@googlegroups.com
As far as I understand, you will need to make your environment as they explain in the paper. There are also some examples in the provided ns3gym module, it has gym environment, ns3 code n along with that you'll need to make your agent in Python acc to your application.

On Mon, May 17, 2021 at 10:32 PM Rima Benelmir <rima.b...@gmail.com> wrote:
@tariq thanks for sharing that , but i have a question : if my environment doesn't exist in the list of the API what should i do? knowing that i want to use 5G vehicular networks.

--
Muhammad Ashar Tariq,
Research Engineer
Wireless and Mobile Internet Laboratory 
Kyungpook National University, South Korea

Silvestre Malta

unread,
May 17, 2021, 10:40:43 AM5/17/21
to ns-3-...@googlegroups.com

Hi,

 

Does anyone have tried ns3-gym with NS3 release ns-3.33 ?

Latest ns3-gym release is from December 2018.

 

BR,

SM

monikap...@gmail.com

unread,
Jul 1, 2021, 3:10:38 AM7/1/21
to ns-3-users
Hi,

I have tried with ns-3.29 and it works!

Thanks
Monika
PhD Research Fellow

UUM LM

unread,
Aug 19, 2021, 7:27:55 AM8/19/21
to ns-3-users

Hello,
did anyone try ns3-ai module?

Tom Henderson

unread,
Aug 19, 2021, 9:54:36 AM8/19/21
to ns-3-...@googlegroups.com, UUM LM
On 8/19/21 4:27 AM, UUM LM wrote:
>
> Hello,
> did anyone try ns3-ai module?

You may be interested in a recent tutorial on this module:

https://www.nsnam.org/research/wns3/wns3-2021/tutorials/

(see the second tutorial listed on that page)

- Tom

> On Friday, 14 May 2021 at 16:47:15 UTC+3 brenof...@gmail.com wrote:
>
> Hello,
>
> I am studying machine learning algorithms using the ns3-ai module to
> detect anomalies on the Internet of Vehicles. I read about it at
> https://apps.nsnam.org/app/ns3-ai/
> <https://apps.nsnam.org/app/ns3-ai/>, but I did not understand how
> to use a separate neural network algorithm implemented in Python
> with NS3.
>
> Thanks for any help.
>
> --
> 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/bab5223e-9ce5-4424-bfa6-d2b4a670a2b3n%40googlegroups.com
> <https://groups.google.com/d/msgid/ns-3-users/bab5223e-9ce5-4424-bfa6-d2b4a670a2b3n%40googlegroups.com?utm_medium=email&utm_source=footer>.

UUM LM

unread,
Sep 4, 2021, 8:04:49 PM9/4/21
to ns-3-users
Hello Tom Henderson, I checked this tutorial and actually i was invited to the workshop, however I haven't get my code run, i think i need to re-read the paper once again and will post the update i got.

Mubanga Nsofu

unread,
Oct 3, 2021, 4:44:10 PM10/3/21
to ns-3-users
Hi folks,

did anyone get ns3-ai working on a different example other than what was outlined in their paper?



Mubanga

UUM LM

unread,
Oct 4, 2021, 5:46:22 AM10/4/21
to ns-3-...@googlegroups.com
Honestly I didn't find anything regarding it except the example.
I also struggle to learn ns-3, I think users are very conservative regarding using it.
I barely find material to go through.

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/y3d6dl6Yeus/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/485b0505-6edc-43da-8643-0476531d8250n%40googlegroups.com.

Tom Henderson

unread,
Oct 4, 2021, 7:16:04 PM10/4/21
to ns-3-...@googlegroups.com, UUM LM
On 10/4/21 2:46 AM, UUM LM wrote:
> Honestly I didn't find anything regarding it except the example.
> I also struggle to learn ns-3, I think users are very conservative
> regarding using it.
> I barely find material to go through.
>

In case you are not aware of the below tutorial, there was a tutorial on
the use of the ns3-ai module in June, and materials are archived online:

https://www.nsnam.org/research/wns3/wns3-2021/tutorials/

- Tom


Shey Janota

unread,
Oct 27, 2021, 2:09:13 PM10/27/21
to ns-3-users
Hi Monika,

I'm using ns3-gym as well but i'm having some doubts regarding the gameover condition for the interference pattern example.

Best Regards.

prasanth marri

unread,
Dec 30, 2021, 4:45:57 AM12/30/21
to ns-3-users

Hi , i am using ns 3.34, i tried to install ns3gym, i followed the instructions given in the https://github.com/tkn-tub/ns3-gym, but it is showing error, can anyone help me to install
Screenshot from 2021-12-30 15-11-41.png

Anandakrishnan Anil

unread,
Dec 30, 2021, 8:39:47 AM12/30/21
to ns-3-users
Hi, prasanth. Have you tried cloning the GitHub repository? Clone it to your desktop and then execute the pip command. It will work. I had faced the same issues initially.

prasanth marri

unread,
Dec 30, 2021, 8:49:19 AM12/30/21
to ns-3-...@googlegroups.com
No I didn't tried by clone it, I will try it, if you don't can you share the knowledge.


prasanth marri

unread,
Dec 30, 2021, 10:56:08 PM12/30/21
to ns-3-...@googlegroups.com
i tried i cloned the git repository it working thank you
--
Thank you
MARRI PRASANTH,

Gabriel Villagran

unread,
Mar 30, 2022, 2:10:47 PM3/30/22
to ns-3-users
Hi all, dear devs from NS3-AI
I'm working with the module and I have  the next question what is the difference on executing an example with ./waf --run "lte_cqi" instead of python3  run_online.py 
(I know that with ./waf I can generate the LOGS and use the visualization mode) or what is the correct way to execute the examples.
Thanks in advance

Ehab Hegazy

unread,
8:01 AM (8 hours ago) 8:01 AM
to ns-3-users
dears, hope you all are good 
I'm working on ns3-gym which is a framework that integrates both OpenAI Gym and ns-3 to connect with RL. version ns3.39.
already follow this guide https://github.com/tkn-tub/ns3-gym/tree/app-ns-3.36%2B.and tested one example and its working fine.
how ever, i tried to make my customized network with action, space, observation) but finally traning not started as attached screen shot.
seeking your help and advice.
Screenshot from 2025-10-06 12-29-01.png
Reply all
Reply to author
Forward
0 new messages