Posts

Showing posts from June, 2015

Leach protocol installation in network simulator 2

Leach protocol installation in ns2 had to go through the following steps:  As far as I have studied, I got two patches for Leach 1. MIT patch 2. Mannasim patch- I didnt work much with it but if you dont want to meddle much with tcl, you can use it. Ok, the prerequisite is Ubuntu 10.04. We need to install ns-2.34  over that because LEACH MIT patch was made in 2000. Its a little painful to use the old OS, but it has to be done. Again you can have your OS on a virtual box on windows (only if you are not concerned with speed and not in love with your computer). 1. Download  ns-234-leach.tar.gz. Keep this in your /home/$userID/ns-allinone-2.34/ns-2.34. (Assuming you ns-allinone is in home dir) Leach ns2.34   2. Download the bash file "leach-setup.sh" into the directory " /home/$userID/ ns-allinone-2.34/ns-2.34".   leach-sh 3- Now find /home/arun/ns-allinone-2.35/ns-2.35 in the leach-setup.sh file and replace it with your own path. /home/$username/ns-a