Network Simulator-3 (NS-3) Practical Lab Manual
ISBN 9788119221820

Highlights

Notes

  

Practical 2:: List of Packages for Installing NS-3 in Ubuntu/Mint Systems

Perquisite for installing NS3.32

    1 sudo apt upgrade

    2 Sudo apt update

    3 Minimal requirements for C++ users

apt-get install g++ python3

    4 Minimal requirements for Python API users

apt-get install g++ python3 python3-dev pkg-config sqlite3

    5 Netanim animator: qt5 development tools are needed for Netanim animator;

apt-get install qt5-default mercurial

    6 ns-3-pyviz visualizer

apt-get install gir1.2-goocanvas-2.0 python-gi python-gi-cairo python- pygraphviz python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython ipython3

    7 Debugging:

    8 apt-get install gdb valgrind

    9 Doxygen and related inline documentation:

apt-get install doxygen graphviz imagemagick

apt-get install texlive texlive-extra-utils texlive-latex-extra texlive-font-utils dvipng latexmk

    10 The ns-3 manual and tutorial are written in reStructuredText for Sphinx (doc/tutorial, doc/manual, doc/models), and figures typically in dia (also needs the texlive packages above):

apt-get install python3-sphinx dia

    11 To read pcap packet traces

apt-get install tcpdump

    12 Support for generating modified python bindings

apt-get install cmake libc6-dev libc6-dev-i386 libclang-6.0-dev llvm-6.0-dev automake python3-pip

python3 -m pip install -- user cxxfilt

After installing the required packages, create a folder named workspace in the home directory and then put the NS3 tar package into the workspace.

Go to terminal and input these commands consecutively after each command finishes executing:

cd

cd workspace

tar xjf <name of NS3 downloaded file name>cd <name of extracted NS3>

./build.py --enable-examples --enable-tests

It takes time be patient!!

Test the NS3 build and installation success by running test.py in the ns directory using the following commands:

cd ns-<version number>./test.py