How to Build Aqua-Sim NG in NS-3.40 on Ubuntu 24.04 – Complete Guide for Underwater Sensor Network Simulations

Are you exploring underwater sensor network simulations using NS-3? Look no further! This guide walks you through building Aqua-Sim NG in ns-3.40 on Ubuntu 24.04, a powerful setup for researchers and students working in underwater wireless communication simulations.

👉 Join My YouTube Channel for exclusive simulation videos, early access tutorials, and other valuable perks!


🧰 Tools and Software Requirements

To begin, make sure your system is ready with the following:

  • Operating System: Ubuntu 24.04

  • NS-3 Version: ns-3.40

  • Third-Party Tool: Aqua-Sim NG (for underwater simulation)


🔧 Step-by-Step Guide to Build NS-3.40

Follow the video for complete installation setup


Step 1: Install Prerequisites

Open a terminal and install all dependencies required to build NS-3 and Aqua-Sim NG:

$ 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 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 libboost-all-dev \ ccache python3-full python3-pip

Step 2: Download and Build NS-3.40

$ wget -c https://www.nsnam.org/releases/ns-allinone-3.40.tar.bz2 $ tar jxvf ns-allinone-3.40.tar.bz2 $ cd ns-allinone-3.40/ns-3.40/ $ ./ns3 configure --build-profile=debug --enable-examples --enable-tests --disable-python --disable-werror $ ./ns3 build

Step-by-Step Guide to Build Aqua-Sim NG in NS-3

Step 3: Clone Aqua-Sim NG Repository

$ cd ns-allinone-3.40/ns-3.40/src $ git clone https://github.com/rmartin5/aqua-sim-ng.git

Step 4: Reconfigure and Rebuild NS-3 with Aqua-Sim NG


$ cd .. $ ./ns3 configure --build-profile=debug --enable-examples --enable-tests --disable-python --disable-werror $ ./ns3 build

Aqua-Sim NG is now successfully installed with ns-3.40!


▶️ How to Run an Aqua-Sim NG Example

Test your installation using the following command:

$ ./ns3 run "LibraGridTest --lambda=0.01 --packet_size=800 --grid_size=10000 --range=3000 --n_nodes=128 --tx_power=60 --simStop=10000 --RngRun=0"

📊 You’ll get output data and simulation results—ready for visualisation and analysis!

Aquasim
Aquasim in NS3



🔗 Useful Links and Resources


🔔 Stay Connected and Learn More

Follow me for regular updates, simulation tips, and research ideas:

Don’t Miss Out!

Thanks for watching and reading! If you found this guide useful:

Subscribe to my YouTube channel
🔁 Share with your academic or developer community
💬 Comment your questions or feedback


📈 Keywords for SEO Optimisation:

ns3, aquasim, aquasim-ng, underwater sensor networks, ubuntu 24.04, ns3 simulation, ns3.40, build ns3, linux network simulation, underwater communication, ns3 aquasim installation, open source network simulator

Post a Comment

0 Comments

Featured Post

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