#5, First Floor, 4th Street , Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • pro@slogix.in
  • +91- 81240 01111

Social List

How to apply leach protocol in Wireless Sensor Network Using NS2?
Step 1

Prerequisites

(i) Ubuntu 12.04, NS-2.35

(ii) Mannism patch files for NS-2.35.Click https://www.nsnam.com/2013/06/mannasima-sensor-network-simulator-for.html downloaded the Mannasim.tar.gz file for ns-2.35


Step 2

Integrating Mannasim with NS-2.35
(i) Install NS-2.35 using ns-allinone-.35.tar.gz

(ii) Now move the extracted “mannasim” folder inside the already installed “ns-allinone-2.35/ns-2.35”.

Screenshot

(iii) Copy these files and paste (replace) them in following locations:

File Copy to
udp.cc ns-allinone-2.35/ns-2.35/apps/
ns-process.h ns-allinone-2.35/ns-2.35/common/
packet.cc ns-allinone-2.35/ns-2.35/common/
packet.h ns-allinone-2.35/ns-2.35/common/
ns-default.tcl ns-allinone-2.35/ns-2.35/tcl/lib/
ns-lib.tcl ns-allinone-2.35/ns-2.35/tcl/lib/
Makefile.in ns-allinone-2.35/ns-2.35/

 

(iv) Go to the terminal and move to the “ns-allinone-2.35/ns-2.35” directory. Now run the following commands one by one:

./ configure

make clean

make