A homepage subtitle here And an awesome description here!

18 June 2025

Download VM Image of NS3 and Contiki NG

Dear Learners,

Good day. I have created a Virtual Machine Image with all the software modules in built in this Ubuntu 18.04 OS. You just need to do the following steps. 

Software Included in this Virtual Machine

  • Network Simulator 3
  • Gnuplot
  • Wireshark
  • Contiki NG
  • Java Compiler
  • Tracemetrics
  • COOJA Simulator for IoT

Assume you have a Windows Machine. 

Step 1: 

Download the VMware Workstation Player from this link

https://www.vmware.com/go/getplayer-win

Install the Software in your Machine.

Step 2: 

Download the VM Image from the following link, the total size of the file is around 4.6GB.

http://www.mediafire.com/file/3itf14zxb7gclp4/Ubuntu1804.rar

Step 3: 

Extract the above rar file into your D drive or E Drive preferably (As the total size may exceed 15GB). So do not extract it in the C Drive.

Step 4: 

Open your VMware Workstation player and click "Open a Virtual Machine" as shown in the Figure given below.

VMware


And then Go to the place where you extracted the VM Image. Only One file will be visible as indicated below


Open the file and you will get a screen like this as shown below.

Vmware


Just click the "Play Virtual Machine", It may ask whether you Moved It or copied it. Select "I Copied It"

And then it will boot to the Ubuntu OS. Username is pradeepkumar and Password is a1b2c3d4

That's It !!!!

For any queries, Comment below. 


09 June 2025

🧠 How to Install ns-3.45 on Ubuntu 24.04 (Step-by-Step Guide)

If you're working with network simulation and want to install the latest version of ns-3, you're in the right place. Today, we’ll walk through the installation of ns-3.45 on the recently released Ubuntu 24.04.


🖥️ System Requirements

Operating System: Ubuntu 24.04
ns-3 Version: ns-3.45

Find the complete video link here:



🔧 Step 1: Install Prerequisites in Ubuntu

Open a terminal and run the following commands one after the other:

$ sudo apt update $ sudo apt install g++ python3 cmake ninja-build git gir1.2-goocanvas-2.0 python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython3 tcpdump wireshark sqlite3 libsqlite3-dev qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools openmpi-bin openmpi-common openmpi-doc libopenmpi-dev doxygen graphviz imagemagick python3-sphinx dia imagemagick texlive dvipng latexmk texlive-extra-utils texlive-latex-extra texlive-font-utils libeigen3-dev gsl-bin libgsl-dev libgslcblas0 libxml2 libxml2-dev libgtk-3-dev lxc-utils lxc-templates vtun uml-utilities ebtables bridge-utils libxml2 libxml2-dev libboost-all-dev ccache python3-full python3-pip

📦 Step 2: Download and Extract ns-3.45

Download the software from the official ns-3 website:

🔗 ns-3.45 Download Link

Move the downloaded file to your home directory (e.g., /home/pradeepkumar). Then:

Right-click → Extract
You’ll now see a folder named ns-3.45 in your home directory.


⚙️ Step 3: Build and Install ns-3.45

Open a new terminal and run the following commands:

$ cd ns-3.45 $ ./ns3 configure --enable-examples --enable-tests $ ./ns3 build

✅ If you don’t encounter any errors, the installation was successful!


🚀 Step 4: Run Example Simulations

Now, test the ns-3 installation with these examples:


$ ./ns3 run hello-simulator
$ ./ns3 run first
$ ./ns3 run third

If these examples run with expected outputs, your ns-3.45 setup on Ubuntu 24.04 is complete!

Python Bindings
$ python3 -m venv NS3-venv
$ source ./NS3-venv/bin/activate

(NS3-venv)$ pip install cppyy

$ cd ns-3.45/

$ ./ns3 run --enable-python-bindings

$ ./ns3
(It will run and compile)
$ ./ns3 run third.py


🎥 Want More Simulations?

For more examples and advanced network simulations, check out my channel.
👉 Don’t forget to subscribe and join the community!


📌 Keywords for SEO:

  • install ns3 on Ubuntu 24.04

  • ns-3.45 installation guide

  • network simulator 3 ubuntu

  • ns-3.45 ubuntu commands

  • how to run ns3 examples

  • ubuntu 24.04 network simulation


#ns3 #Ubuntu2404 #NetworkSimulation #LinuxTutorial #OpenSourceTools #NetworkEmulation #ns3Installation #UbuntuTips #ns3Examples #NetworkResearch


06 June 2025

Installation Guide: NS3 Gym (Reinforcement Learning) on Ubuntu

If you're diving into reinforcement learning (RL) simulations using NS-3 and OpenGym, this step-by-step guide is exactly what you need. In this tutorial, we will walk you through the installation process of NS3-Gym (also known as OpenGym) with NS-3.40 on Ubuntu 24.04.

Whether you're a researcher, student, or developer working on AI-driven network simulation, this guide will help you get started with minimal errors.

Complete installation is available in the following Video



✅ System Requirements

  • Operating System: Ubuntu 24.04 LTS

  • Network Simulator: ns-allinone-3.40


🛠️ Step 1: Install All Required Dependencies

Open your terminal and execute the following commands one by one:

$ sudo apt update
$ sudo apt install g++ python3 cmake ninja-build git gir1.2-goocanvas-2.0 python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython3 tcpdump wireshark sqlite3 libsqlite3-dev qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools openmpi-bin openmpi-common openmpi-doc libopenmpi-dev doxygen graphviz imagemagick python3-sphinx dia imagemagick texlive dvipng latexmk texlive-extra-utils texlive-latex-extra texlive-font-utils libeigen3-dev gsl-bin libgsl-dev libgslcblas0 libxml2 libxml2-dev libgtk-3-dev lxc-utils lxc-templates vtun uml-utilities ebtables bridge-utils libxml2 libxml2-dev libboost-all-dev ccache python3-full python3-pip $ sudo apt install libzmq5 libzmq3-dev libprotobuf-dev protobuf-compiler pkg-config

These packages are essential to build and run NS3 with OpenGym support.


📦 Step 2: Download and Build NS3 (ns-allinone-3.40)

Download the NS3 source from the official site:

🔗 Download ns-allinone-3.40.tar.bz2

After downloading, move it to your home directory and extract it:

Right-click > Extract Here

Then in your terminal:

$ cd ns-allinone-3.40/ $ ./build.py --enable-examples --enable-tests

This step may take a while, depending on your system. Wait until the build completes.


🤖 Step 3: Clone and Integrate ns3-gym (OpenGym)

In a new terminal, run:

$ cd ns-allinone-3.40/ns-3.40/contrib $ git clone https://github.com/tkn-tub/ns3-gym.git ./opengym $ cd opengym $ git checkout app-ns-3.36+ $ cd ../../ $ ./ns3 configure --enable-examples $ ./ns3 build

If the build finishes without errors, congratulations! You’re ready to start running RL simulations.


🧪 Step 4: Install ns3gym (Python3 Module)

$ cd ns-allinone-3.40/ns-3.40/contrib/opengym $ sudo apt install python3-full $ python3 -m venv ns3gym-venv $ source ./ns3gym-venv/bin/activate $ pip3 install ./model/ns3gym

You’re now ready to run sample reinforcement learning scripts!


🧬 Run Example Scripts

Run a quick test to verify the setup:

$ cd examples/opengym $ ./simple_test.py

Or, run the NS3 simulation and Gym agent in two separate terminals.

Terminal 1:

$ cd ns-allinone-3.40/ns-3.40 $ ./ns3 run "opengym"

Terminal 2:

$ cd ns-allinone-3.40/ns-3.40/contrib/opengym/examples/opengym/ $ ./test.py --start=0

📡 Bonus: RL for TCP Congestion Control

🎥 Watch the demo here (Members only)


Unlock advanced NS3 simulations using reinforcement learning in network protocols.


🙌 Wrap-Up

With this setup, you can now begin developing and testing AI-powered networking solutions using NS3-Gym on Ubuntu 24.04. If you found this guide helpful:

Like,
Subscribe, and
Join for more advanced NS3 + RL content!

Stay tuned for upcoming tutorials on deep reinforcement learning, custom environments, and more!


Keywords for SEO: NS3-Gym installation Ubuntu 24.04, NS3.40 Reinforcement Learning, OpenGym setup, install ns3-gym, network simulator 3 gym, AI in networking simulations, RL in NS3, ns3 opengym configuration, Python gym NS3 integration.


Powered by Blogger.

About Me

Featured Post

5G Network Simulation in NS3 using mmWave | NS3 Tutorial 2024

5G Network Simulation in NS3 Using mmWave This post shows the installation of ns3mmwave in Ubuntu 24.04 and simulates 5G networks in ns3. In...

Contact form

Name

Email *

Message *

Total Pageviews

Search This Blog

Pages

Pages

Pages - Menu

Most Popular

Popular Posts