Skip to main content

Posts

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 ~ns-2.35/common/packet.h and change the following line struct hdr_rca {        int msg_type_;        char meta_[1000]; to 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. Mannas...

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 https://github.com/LionSec/katoolin.git $] sudo cp katoolin/katoolin.py /usr/bin/katoolin $] sudo katoolin This will give various options as shown below Fig 1 Katoolin Fig 2 Katoolin Select the option '1' to add Kali repositories and update After it is done, Select "2" -> update If you want to go to the prev...

Contik OS - A Complete Video

Contiki OS is an operating system for wireless sensor networks. You can use this OS to generate object code for supported sensors. Please look at this following video that tells How to use Contiki OS How to deploy the OS in to motes How to create our own application using Protothreads How to create a target code for a given Sensor node and etc... Please comment below for any queries related to Contiki OS T S Pradeep Kumar

Workshop on NS3 at VIT Chennai

Network Simulation using NS3 workshop is being conducted at VIT Chennai on 31st August and 1st September 2017.  Please click the following link for registration: http://technovit.eventze.in/events Also check  http://www.technovitchennai.com/ T S Pradeep Kumar

TCL installation error

In case, if ns2 have to be recompiled based on a new addition of protocol or agent, there should be an entry to the Makefile.in. After the changes are made, the following things need to be done to compile the agents. $] ./configure  $] make  but ./configure may throw an error as shown below like "Configure: Error: Installation of Tcl Seems to be incomplete or not found" TCL Error To correct this problem, please try the following $] ./configure --with-tcl-ver=8.5  The above works only after the successful installation of ns2. If you are installing ns2 for the first time refer this blog post http://www.nsnam.com/2014/11/ns2-installation-in-ubuntu-1404.html T S Pradeep Kumar

Introduction to Contiki OS

Introduction to Contiki OS To install Contiki: Refer this post :  http://www.nsnam.com/2014/09/contiki-os-operating-system-and.html To Refer the Characteristics and comparison of Various OS, refer this Slides: Operating System fo IoT from T S PRADEEP KUMAR How to use Contiki OS for Sensor Simulation - A Detailed video is enclosed herewith. It tells about Oracle Virtual Box How to create a Sensor mote using Contiki How to write a new App in contiki What are the different windows that categorise? and lot more. Refer this video T S Pradeep Kumar

Queuing Models in NS2

M/M/1 is a system with poisson arrival time, servicing exponentially and a queue of unlimited capacity and type of FIFO Queue. This is the simplest queuing system.  NS2 supports various distributions like pareto, exponential, constant, unifrom, etc to handle the network dynamics and metrics. So it is very easy to test the given network link to monitor a given queue using any of these queuing models. The listing 3 and 4 are monitoring the link when DropTail queue is used with a capacity of finite and infinite. Listing 13.3 uses infinite capacity and Listing 13.4 uses Finite capacity The output screen shot is shown below the scripts for further understanding Listing 3 – M/M/1 Queuing Model #new Simulator creation set ns [new Simulator] #trace file creation for capturing the UDP data set tf [open out.tr w] $ns trace-all $tf #setting the exponential distribution param set lambda 30.0 set mu     33.0 #creation of nodes set n1 [...