Posts

Showing posts from December, 2012

Tutorial to implement protoname in ns2.35

This is an Implementation tutorial of new manet( M obile A d-hoc NET works) unicast protocol name protoname. The whole credit goes to Francisco J. Ros and Pedro M. Ruiz for their beautiful work and excellent explanation they provide. The link to their work is below. It contains a PDF file also which explains you in detail and I recommend you to go through it once. List of files to be modified ~/ns-allinone-2.35/ns-2.35/common/packet.h ~/ns-allinone-2.35/ns-2.35/trace/cmu-trace.h ~/ns-allinone-2.35/ns-2.35/trace/cmu-trace.cc ~/ns-allinone-2.35/ns-2.35/tcl/lib/ns-packet.tcl ~/ns-allinone-2.35/ns-2.35/tcl/lib/ns-default.tcl  ~/ns-allinone-2.35/ns-2.35/tcl/lib/ns-lib.tcl ~/ns-allinone-2.35/ns-2.35/queue/priqueue.cc   ** Note: Text in red is the part that is to be added or modified in given file and location and purple colour denotes the terminal commands. ** Note: mod stands for modification. ** Note: Line number is approx and is provided for your convenience.

Installing ns-2.35 in Ubuntu 12.04, 12.10, 13.04, 13.10 and 14.04

Tutorial to install ns-2.35 on Ubuntu 12.04/10 and 13.04/10 please follow the tutorial step by step Step 1: Download NS-2.35 ( http://sourceforge.net/projects/nsnam/files/allinone/ns-allinone-2.35/ns-allinone-2.35.tar.gz/download ) Step 2: place this file ns-allinone-2.35.tar.gz in any folder you like (recommended is /home/loginname)  Step 3: Run this command in terminal ( first go to the directory where you have put you  ns-allinone-2.35.tar.gz file. ) tar zxvf ns-allinone-2.35.tar.gz (extracts the .tar.gz files content to a folder in the same directory name ns-allinone-2.35) Step 4: Run these command in terminal (Requires Internet) sudo apt-get update ( means you need to keep your pc sources  updated ) sudo apt-get install build-essential autoconf automake libxmu-dev  (These are essential library files and size is around 17 MB) Step 5: Run this command in terminal    cd ns-allinone-2.35 (get inside the ns directory) Step 6:  ./install  note: -