Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
02-24-2015, 12:25 PM
|
#1
|
LQ Newbie
Registered: Feb 2015
Posts: 16
Rep: 
|
query on mannasim LEACH installation on ns2.35 and Ubuntu 14.10
Hi... I have installed mannasim in my ns-2.35 according to http://www.nsnam.com/2013/06/mannasi...lator-for.html
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.
|
|
|
02-24-2015, 02:27 PM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
Welcome to LQ.
About http://www.nsnam.com/2013/06/mannasi...lator-for.html
Don't know that one. The recommended one is the "paultsr" version →
↓
A complete version, "ns-allinone-2.35-paultsr" patched with mannasim
https://github.com/paultsr/ns-allinone-2.35
* Updated to be used also with gcc-4.6 .. gcc-4.9.x .
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
A file example that works : LEACH_mannasim.tcl
https://drive.google.com/file/d/0B7S...ew?usp=sharing
-
|
|
|
02-26-2015, 04:55 AM
|
#3
|
LQ Newbie
Registered: Feb 2015
Posts: 16
Original Poster
Rep: 
|
Thanks for replying...
I have downloaded a version, "ns-allinone-2.35-paultsr" patched with mannasim
https://github.com/paultsr/ns-allinone-2.35
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...
|
|
|
02-26-2015, 05:59 AM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
← 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 ?
-
|
|
|
02-26-2015, 06:46 AM
|
#5
|
LQ Newbie
Registered: Feb 2015
Posts: 16
Original Poster
Rep: 
|
@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??
|
|
|
02-26-2015, 07:19 AM
|
#6
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
← 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.)
-
|
|
|
02-26-2015, 08:00 AM
|
#7
|
LQ Newbie
Registered: Feb 2015
Posts: 16
Original Poster
Rep: 
|
Quote:
Originally Posted by knudfl
← ref. #5.
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??
|
|
|
03-03-2015, 08:46 AM
|
#9
|
LQ Newbie
Registered: Feb 2015
Posts: 16
Original Poster
Rep: 
|
Quote:
Originally Posted by knudfl
Welcome to LQ.
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
A file example that works : LEACH_mannasim.tcl
https://drive.google.com/file/d/0B7S...ew?usp=sharing
-
|
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??
|
|
|
All times are GMT -5. The time now is 08:39 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|