query on mannasim LEACH installation on ns2.35 and Ubuntu 14.10
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Now,as a new in ns2.. I don't know how to further proceed with installation of LEACH protocol.
Can someone please give me further steps to how to install Leach now.
There are leachAgent.cc leachAgent.h leachAgent.o files in leach folder of mannasim.
LEACH is already present in an ns-2.35 with Mannasim ...
→ mannasim/leach/
And a tool for generating files.tcl is included :
mannasim/scriptGeneratorTool/
→ → $ ./msg-linux.sh
But as per given instruction it is installing in/usr/local folder.. wouldn't be in my home/usename/ folder ???
and the problem is before this patch my nam was working..now it's not working...
and by running this command ./msg-linux.sh nothing happens...
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
← ref. #3.
Default for building ns2 is /home/name/.
( Not /home/name/Desktop/, please.)
`/usr/local///´ is used when building (a package) for others.
Building "ns-allinone-2.35-paultsr" in /home/<?>/ :
$ cd ns-allinone-2.35/ && ./install
$ cd ns-2.35/
$ sudo make install ('make install' will copy 'ns' to /usr/local/bin/)
$ cp ns ns235-mannasim (Any naming can be used for this ns backup)
$ sudo cp ns235-mannasim /usr/local/bin/
.... Simulations will run with $ ns235-mannasim file.tcl
( Then you are sure that the mannasim ns is used.)
`msg-linux.sh´ : Unknown file. Where is msg-linux.sh located ?
@knudfi
i want to ask u a question
for installing leach and modifying it...is ns2.35 right choice or not???
someone told me to change into 2.34..
what do u think is better??
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
← ref. #5.
Mannasim, the "mannasim leach" : ns-2.35 , or any other version.
MIT Leach : The latest usable is version ns-2.34 .
What do you mean by "change to" ?
You can have multiple version of all the "ns-allinone-2.xx",
installed at the same time. But add no ns *PATH text to .bashrc.
( I have about 150 times ns-allinone-2.xx on one OS.)
What do you mean by "change to" ?
You can have multiple version of all the "ns-allinone-2.xx",
installed at the same time. But add no ns *PATH text to .bashrc.
( I have about 150 times ns-allinone-2.xx on one OS.)
-
i am doing my dissertation on protocol OEERP which is a variation of LEACH and i want to imply a light weight security mechanism on it.
i have just read here in this forum about variation of results in LEACH by changing version of ns-2.xx
Quote:
I suppose that ns-2.34 is installed with the compiler gcc-4.3.
The home directory of ns-2.34 is "/opt/ns-allinone-2.34"
1- download the package "ns-234-leach.tar.gz" into the directory "/opt/ns-allinone-2.34/ns-2.34". https://docs.google.com/uc?id=0BzLWx...CNWG1NQK&hl=en
2- download the bash file "leach-setup.sh" into the directory "/opt/ns-allinone-2.34/ns-2.34". https://docs.google.com/uc?id=0BzLWx...CJSU5ZYG&hl=en
3- If the home directory of your "ns-2.34" is other than "/opt/...", then you need to find "/opt/ns-allinone-2.34" and replace with "yourpath/ns-allinone-2.34" for the file "leach-setup.sh".
4- move to the directory "/opt/ns-allinone-2.34/ns-2.34" and patch the file "leach-setup.sh"
wsn@ubuntu:~$ cd /opt/ns-allinone-2.34/ns-2.34/
wsn@ubuntu:/opt/ns-allinone-2.34/ns-2.34$ bash leach-setup.sh
5- If the home directory of your "ns-2.34" is other than "/opt/...", then you need to find "/opt/ns-allinone-2.34" and replace with "yourpath/ns-allinone-2.34" for the follwoing two files:
- "Makefile" : found in the directory "yourpath/ns-allinone-2.34/ns-2.34".
- "Makefile.in" : found in the directory "yourpath/ns-allinone-2.34/ns-2.34".
6. Edit both “Makefile” & “Makefile.in” as following:
CC = gcc-4.3
CPP = g++-4.3
7- run the following commands
wsn@ubuntu:/opt/ns-allinone-2.34/ns-2.34$./configure
wsn@ubuntu:/opt/ns-allinone-2.34/ns-2.34$make clean
wsn@ubuntu:/opt/ns-allinone-2.34/ns-2.34$make
7- If the previous commands passed successfully then you are ready to test your "Leach" by running ./test:
wsn@ubuntu:/opt/ns-allinone-2.34/ns-2.34$./test
8. check the file "leach.err", if no error reported then go to "leach.out" and enjoy your results!
i have read it in this forum..
so here there's no need of mannasim.
so IF i follow this procedure do I have to change this versions of CC and CPP for Ubuntu 14.10??
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
← ref. #7.
The oldest text you can find for ns-2.34 + leach is ...
#5 http://www.linuxquestions.org/questi...34-a-870368/#5
.. Please do not quote entire posts. A link will do !
→ Right click → select 'Copy Link Address' → paste.
? Why would you be interested in "oldest / outdated / not valid" ?
Was OK (with some heavy editing) until ~June 2011.
LEACH is already present in an ns-2.35 with Mannasim ...
→ mannasim/leach/
And a tool for generating files.tcl is included :
mannasim/scriptGeneratorTool/
→ → $ ./msg-linux.sh
Hi knudfl,
I have successfully run LEACH_mannasim.tcl file in ns2.35
but now I am lost as not able to understand how to proceed further..as I have no idea.
Can u please give me some info about how/in which files i should edit??and where can I add my proposed security module in modified LEACH??and how can I change time slot of rebuilding cluster??
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.