Aquasim in ns3

This post shows you how to install aquasim in ns3. Aquasim is a simulator used for simulating underwater Wireless Sensor networks which was used with ns2 earlier, and now it is available for ns3 too.

OS Used: Linux Mint 18.1 or Ubuntu 16.04
Ns version used: ns-3.27

You should have installed ns3 before trying the following. Please follow the ns3 installation instructions here.

Open the terminal and give the following instructions.

$] cd ns-allinone-3.27/ns-3.27/src

$] git clone

$] cd ..

$] ./waf --enable-examples --enable-tests configure --disable-python

$] ./waf 

Once successful, you will get a screen like this which indicates that aquasim is installed successfully in ns3.

To test an example, go to the folder

~ns-3.27/src/aqua-sim-ng/examples/ and copy the file to the scratch/ folder and type the command to run the example.

$] cd ns-allinone-3.27/ns-3.27
$] ./waf --run scratch/broadcastMAC_example (give the name …

ns3 installation in Ubuntu 16.04

This post serves the installation instructions of ns3 in ubuntu 16.04 version. Some of my students are working in ns3, this post will benefit them in installing ns3.

OS Used: Ubuntu 16.04.4
ns3 version: ns3 version 3.27

The same procedure will be applied for OS like Debian, Linux Mint.

Fresh installation of Ubuntu 16.04 Let you try the fresh installation of ubuntu in your hard disk along with windows.
Installation of ns3 dependencies ns3 needs so many dependencies, developmental libraries, drivers, etc. so install all those
$] sudo apt update  $] sudo apt upgrade
$] sudo apt-get install build-essential autoconf automake libxmu-dev python-pygoocanvas python-pygraphviz cvs mercurial bzr git cmake p7zip-full python-matplotlib python-tk python-dev python-kiwi python-gnome2 python-gnome2-desktop-dev python-rsvg qt4-dev-tools qt4-qmake qt4-qmake qt4-default gnuplot-x11 wireshark
The above command make take some time to download, compile and install it, Be Patient. 
Installing ns3 Download the…

Routing Protocol for Lossy Networks (RPL)

RPL protocol for Internet of Things is called as Routing Protocol for Low Power Lossy Networks. The following video depicts the use of RPL in Contiki OS with COOJA Framework.

The simulation was carried out using sky motes.  These are the modules that are used as firmware.

~contiki-2.7/examples/ipv6/rpl-border-router/border-router.c (This firmware is used for one of the sky mote)

~contiki-2.7/examples/skywebsense/skywebsense.c (this is programmed with other 5 nodes)

Please refer the video for more details.

T S Pradeep Kumar

Internet of Things - Presentation

The following three slides gives the importance of internet of things. These are basic slides that features

IoT ApplicationsIoT Communication Protocols RPL - Routing Protocol for Low Power and Lossy Networks

RPL - Routing Protocol for Low Power and Lossy Networks from Pradeep Kumar TS, PhD

IoT Applications from Pradeep Kumar TS, PhD

IoT Communication Protocols from Pradeep Kumar TS, PhD
T S Pradeep Kumar

Network Simulator 2 - presentation Slides

I have gone across more than 80 institutions in the country to give hands on session, workshop, seminars related to network simulator 2. Mostly I will try different simulations, different models for simulation, etc.

But basically, every researcher/students needs some basics to get to know about ns2.

These slides make you understand the basics of ns2. Still in the country, there are so many universities uses ns2 as their simulated platform for the networking course, wireless networks course, etc. reading these slides make you know the basics of ns2.

These slides can be downloaded from my slideshare profile.

Introduction to Network Simulator 2

Introduction to ns2 from Pradeep Kumar TS, PhD

Installation of Network Simulator 2

Installation of ns2 from Pradeep Kumar TS, PhD
Wired and Wireless Network Examples in ns2

Wired and Wireless Examples in ns2 from Pradeep Kumar TS, PhD
OTCL and C++ Linkages in ns2

OTcl and C++ linkages in NS2 from Pradeep Kumar TS, PhD
Recompiling Network Simulator 2


Error: Meta size 4064 too large (max = 1000)

Error: Meta size 4064 too large (max = 1000)

When using Mannasim Simulator for ns2, you may encounter this error when you are trying to run a tcl file with LEACH protocol. Here is a small workaround for the solution.

To install mannasim, please go here.

To overcome the above error, open the file
and change the following line

struct hdr_rca {
       int msg_type_;
       char meta_[1000];


struct hdr_rca {
       int msg_type_;
       char meta_[5000];

Since I get 4064 as meta size, i changed it to 5000, if you get more than 4064, then accordingly you can increase the meta size and compile it. 
Here is the important step to compile
~ns-2.35 $] ./configure --with-tcl-ver=8.5
~ns-2.35 $] make

Sometimes simply typing make will compile, but the .object files would not be created. So use the above two steps.

Here is the screenshot.

T S Pradeep Kumar

Installing Kali Linux Tools in Ubuntu or Linux Mint

Kali linux is a debian based and its not easy to configure it on a typical PC. If the machine is UEFI based, then Kali is tough to customize.

So what is the alternative....? Here is the answer: Katoolin

Its the name of the package system for installing the entire kali linux tools (Penetration Testing) in Ubuntu or Debian based system.

Here I am trying to install inside my Linux Mint

OS Used: Linux Mint 18.2 Sonya
Prequisites: Python 2.7
Always perform these steps after the installation of ubuntu or Linux Mint

$] sudo apt update
$] sudo apt install build-essential autoconf automake libxmu-dev
$] sudo apt install git
$] git clone
$] sudo cp katoolin/ /usr/bin/katoolin
$] sudo katoolin

This will give various options as shown below
 In the above pic. Select 2 to View categories and you will get the screen as shown in the next image.
Select "0" to install all the applications.

This will install 1.3G to download and 3.5 GB space will be…