Skip to main content

Posts

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:  http://www.nsnam.com/2014/08/ns3-installation-in-linux-mint-17.html For another Animation NetAnim installation, follow this link:  http://www.nsnam.com/2014/08/installing-netanim-software-for-ns3-in.html 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 $] ./build.py --enable-examples --enable-tests Thus "visualize" is installed successfully. the...

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 http://www.nsnam.org 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 $] ./build.py --enable-examples --enable-tests This process will take some amount of tim...

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  http://code.nsnam.org/jabraham3/netanim-3.104 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:  http://www.nsnam.com/2013/09/ns3-installation-in-linux-mint-14-...

Printing the Routing Table in DSDV protocol

Printing the routing table for any protocol is quite a easier task if the data structure is known. You may read the post on "printing the routing table for AODV protocol"   Now this post will let you know how to print the routing table when using DSDV protocol. As you know, the DSDV protocol is a table driven protocol in which each node maintains a Routing table for a given source to destination and the table gets updated periodically to maintain the routes. But AODV protocol is a on demand routing protocol that deals with Route Request, Route Reply for forming the routes. So printing the routing table takes a minor tweak. But the DSDV protocol handles the routing table as a data structure, here is the steps to do it. OS Used : Linux Mint 17 - 64 bit NS2 Used : ns-2.35 Files to be modified: dsdv.cc and dsdv.h Step 1: The folder where ns2 installed on my machine  /home/pradeepkumar/ns-allinone-2.35/ns-2.35 Execute these commands to access the DSDV protocol $promp...

NS3 installation in Linux Mint 17 (64 bit)

This post tells you how to install the ns3 version in Linux Mint 17 (64bit)- Long Term Support till 2019. Preliminaries The following development libraries are to be installed before trying ns3 $prompt] sudo apt-get update  $prompt] sudo apt-get install build-essential autoconf automake libxmu-dev $prompt] sudo apt-get install ia32-libs  (the above software ia32-libs is needed only when you want to run the 32 bit applications inside a 64bit OS) Now download the ns3 software from the website http://www.nsnam.org I downloaded the version 3.20 ( ns-allinone-3.20.tar.bz2 ). Please do understand that ns2 is different from ns3 and they are not having any link between them (however, some network models were used in ns3 were adopted from ns2). Also ns3 will run using the main() of C++ and also it has python bindings. Here is the installation steps of ns3 1. copy the ns-allinone-3.20.tar.bz2 in the home directory(Ex: /home/pradeepkumar) 2. Set the following path infor...