Ns3 Projects for B.E/B.Tech M.E/M.Tech PhD Scholars.  Phone-Number:9790238391   E-mail: ns3simulation@gmail.com

NS 3.25 INSTALLATION STEPS

Stay in touch with us to get best explanation for ns3.25 installation. We also guide you to apply it in your project work. Stay connected with us for the best guidance on ns3.25 installation. We are here to assist you in implementing it into your project work. Network Simulator 3 (ns-3) is an open-source, supple, and powerful simulator designed for computer networks. It empowers users to design, assess, and legalize network and system behaviours under various scenarios. This simulator features a modular architecture, allowing for easy integration of new components and modifications to existing ones. With ns-3, network architects and researchers can simulate network protocols, topologies, and devices, facilitating the testing and refinement of cutting-edge network technologies and architectures.

We are excited to share an exclusive article with you, detailing the steps required for the installation of network simulator 3.

PRE-REQUISITES:

  1. Fresh installation of Ubuntu 16.04 LTS:

Screenshot:

Fresh installation of Ubuntu 16.04 LTS

2.Download ns-allinone-3.25.tar.bz2 file:

We have to download the ns-allinone-3.25.tar.bz2 under home directory by the clicking the Link, it will directly download to Download Location and move the compressed file to the home Directory.

Link: https://www.nsnam.org/releases/ns-allinone-3.25.tar.bz2

Screenshot:

Download ns-allinone-3_25_tar_bz

3.Extraction of the ns-allinone-3.25.tar.bz2 file:

Next, we have to extract the compressed file by right click and click Extract here to extract the ns-allinone-3.25 as folder in the home directory.

Screenshot:

Extraction of the ns-allinone-3_25_tar_bz2 file

Screenshot:

Extraction of the ns-allinone-3_25_tar_bz2 file

ns-allinone-3.25 compressed file Extracted Successfully in the home directory.

INSTALL DEPENDENCIES OF NS3:

  1. Open a terminal, Copy and Paste the commands to install required package:

Screenshot:

Open a terminal

2.System File Update Command:

First of all, we need to updates the list of available packages and their versions stored in the system’s package index. Use below command to update the system package.

Command:      “sudo apt-get update”

Screenshot:

System File Update Command

3.Install Essential Tools:

    1. g++: A C++ compiler from the GNU Compiler Collection, essential for compiling C++ programs.
    2. python: The Python programming language interpreter, used for running Python scripts and applications.
    3. cmake: A cross-platform tool for managing the build process of software using a compiler-independent method.
    4. git: A distributed version control system for tracking changes in source code during software development.
    5. gcc: A compiler system that supports various programming languages, including C, C++, Objective-C, Fortran, Ada, and more.

Command:      “sudo apt install g++ python cmake git gcc”

Screenshot:

Click the key Y to install the required Essentials tools for giving permission to install the package in the user system.

Screenshot:

Install Essential Tools

Installation of the Essential tools package completed successfully.

  1. Install Required Libraries and Development Tools:
    • gcc, g++: GNU Compiler Collection, C and C++ compilers.
    • python, python-dev: Python interpreter and development headers.
    • mercurial, bzr: Version control systems.
    • gdb: The GNU Project Debugger.
    • valgrind: Tool for memory debugging, memory leak detection, and profiling.
    • gsl-bin, libgsl0-dev, libgsl0ldbl: GNU Scientific Library binaries and development files.
    • flex, bison: Tools for generating and compiling lexical and syntax analyzers.
    • tcpdump: Network packet analyzer.
    • sqlite, sqlite3, libsqlite3-dev: SQLite database command-line interface and development files.
    • libxml2, libxml2-dev: Libraries for parsing XML.
    • 0-0, libgtk2.0-dev: Libraries and development files for GTK+ 2.0.
    • uncrustify: Source code beautifier for C, C++, C#, Objective-C, D, Java, Pawn, and Vala.
    • doxygen: Documentation generator from annotated C++ sources.
    • graphviz: Open source graph visualization software.
    • imagemagick: Software suite to create, edit, and compose bitmap images.
    • texlive, texlive-latex-extra, texlive-generic-extra, texlive-generic-recommended, texinfo, texlive-extra-utils: TeX Live and related utilities for typesetting documents.
    • texi2html: Converts Texinfo documents to HTML.
    • dia: Diagram editor for GNOME.
    • python-pygraphviz: Python interface to Graphviz.
    • python-kiwi: Framework for Python applications.
    • python-pygoocanvas, libgoocanvas-dev: Python bindings and development files for GooCanvas.
    • python-pygccxml: Python package for parsing C++ declarations.

Command:     

“sudo apt-get install -y gcc g++ python python-dev mercurial bzr gdb valgrind gsl-bin libgsl0-dev libgsl0ldbl flex bison tcpdump sqlite sqlite3 libsqlite3-dev libxml2 libxml2-dev libgtk2.0-0 libgtk2.0-dev uncrustify doxygen graphviz imagemagick texlive texlive-latex-extra texlive-generic-extra texlive-generic-recommended texinfo dia texlive texlive-latex-extra texlive-extra-utils texi2html python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev python-pygccxml”

Screenshot:

Click Yes to install Wireshark packages to capture the packets from Network simulator 3. 

Screenshot:

Install Required Libraries and Development Tools

Screenshot:

Install Required Libraries and Development Tools

To Enable Python Bindings, we need to use command to install required packages.

Command:

“sudo apt-get install python3-pip && sudo pip3 install cxxfilt” 

Screenshot:

Install Required Libraries and Development Tools

Installation of the Required Libraries and Development Tools package completed successfully.

INSTALL NETWORK SIMULATOR 3 (NS3):

  1. Locating the ns-allinone-3.25 Folder:

Next, we need to install the NS 3 in our system so locate the Extracted ns-allinone-3.25 folder in the home directory.

Screenshot:

Locating the ns-allinone-3_25 Folder

2.Launching the terminal in the ns-allinone-3.25 Folder:

Then Right Click in the current Directory and select the “Open in Terminal” button and it will launch the terminal.

Screenshot:

Launching the terminal in the ns-allinone-3_25 Folder

Here, we launched the terminal by that button in the folder.

Screenshot:

Launching the terminal in the ns-allinone-3_25 Folder

3.Building the terminal in the ns-allinone-3.25 Folder:

Next, we need to build the ns-3.25 to install the network simulation 3 Environment in the User system and it will build the netanim also. So, use the command to build the ns-3.25.

Command:      “./build.py”

Screenshot:

Building the terminal in the ns-allinone-3_25 Folder

Netanim Building process:

Screenshot:

Netanim Building process

Ns-3.25 Configuring process:

Screenshot:

Ns-3_25 Configuring process

The “./ns3 configure” command is to configure the Network Simulator 3 (NS-3) environment. This command is typically used to set various parameters, such as the simulation duration, network topology, and node properties. It can also be used to specify the output format and other simulation settings.

Screenshot:

Ns-3_25 Configuring process

Ns-3.25 Configuration Completed successfully.

Ns-3.25 Building process:

Screenshot:

Ns-3_25 Building process

The “./ns3 build” command is used to build the Network Simulator 3 (NS-3) framework from its source code. When use this command, It will compiles the source code, generates the Makefiles, and builds the NS-3 binary and libraries and make Runnable Environment.

Screenshot:

Ns-3_25 Building process

Ns-3.25 Installed successfully in the Ubuntu 16.04 system. If you have any questions regarding ns3.25, feel free to reach out to us, and we will promptly provide you with a solution.