Skip to main content


Showing posts from August, 2014

Installing ns-3.37 and ns-3.35 in Ubuntu | Ubuntu 22.04 | NS3

Multiple Versions of ns3 in Ubuntu 22.04 In this post, we are going to install two versions of ns3 namely ns-3.35 and ns-3.37  My OS is : Ubuntu 22.04 LTS (Long Term Support) ns-3.35 uses waf and (./waf --run scratch/first)  ns-3.37 uses cmake  (./ns3 run scratch/ So we will install both the packages  Go through the video for complete instructions To start with  $ sudo apt update  $ sudo apt install build-essential autoconf automake libxmu-dev g++ python3 python3-dev pkg-config sqlite3 cmake python3-setuptools git qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools gir1.2-goocanvas-2.0 python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython3 openmpi-bin openmpi-common openmpi-doc libopenmpi-dev autoconf cvs bzr unrar gsl-bin libgsl-dev libgslcblas0 wireshark tcpdump sqlite sqlite3 libsqlite3-dev  libxml2 libxml2-dev libc6-dev libc6-dev-i386 libclang-dev llvm-dev automake python3-pip libxml2 libxml2-dev libboost-all-dev  I have downloaded both the versions of ns3 fr

Installing PyViz in NS3

This post tells the method to install PyViz (or visualizer module) in ns3. Visualize is a module that shows the output in the form of animation and there are some packages need to be installed. For installation of ns3, you may refer this link: For another Animation NetAnim installation, follow this link: Steps to install PyViz (visualizer) 1. Open the termina and execute the command one by one pradeep@localhost $] sudo apt-get install python-dev python-kiwi python-pygoocanvas python-pygraphviz pradeep@localhost $]   sudo apt-get install python-gnome2 python-gnomedesktop python- rsvg Once installed, go to the ns-allinone-3.20 folder and execute this command  pradeep@localhost $] cd ns-allinone-3.20 pradeep@localhost $] ./ --enable-examples --enable-tests Thus "visualize" is installed successfully. the general comma

NS3 installation in Linux Mint 17

This post tells you how to install ns3 in Linux Mint 17 64 bit OS or Ubuntu 14.04. For both the OS, the installation procedure is same. OS Used: Ubuntu 14.04 and Linux Mint 17 Instruction Set: 64 bits NS3 Version: ns-allinone-3.20 Steps1: Open the Terminal and execute the command one by one pradeep@localhost $] sudo apt-get update pradeep@localhost $]sudo apt-get install build-essential autoconf automake libxmu-dev python-pygoocanvas python-pygraphviz cvs mercurial bzr git cmake NetAnim p7zip-full the following screenshot shows the installation. NS3 installation in Linux Mint Step 2: Download the ns-allinone-3.20.tar.bz2 from the website. Step 3: Copy the file to the /home/user/  and execute the commands one by one by opening the terminal pradeep@localhost $] tar jxvf ns-allinone-3.20.tar.bz2 pradeep@localhost $] cd ns-allinone-3.20/ pradeep@localhost $] ./ --enable-examples --enable-tests This process will take some amount of time to

Installing NetAnim software for NS3 in Ubuntu 14.04

This post will tell you the installation instructions for NetAnim Software in Ubuntu. NS3 is a discrete event simulator similar to ns2 and both vary depends on the languages in which they were used. NS3 uses C++ with optional Python bindings, whereas ns2 uses OTCL with C++. The ns2 comes with a default network animator called nam and it will be there in the allinone package of ns2.  But ns3 does not have any default animator, but there is a support from the NetAnim. NetAnim is a software that process the xml files for graphical output which are generated through ns3.  Method 1: NetAnim can be downloaded from the URL Method 2: However, ubuntu or debian or Linux Mint solves this problem through apt-get itself. Prerequisites: NS3 compiled (or installed)  OS Used: Ubuntu 14.04 64 bit NS3 Version (ns-3.20) See this post to install ns3: pradee