LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 02-24-2015, 12:25 PM   #1
flowing_river
LQ Newbie
 
Registered: Feb 2015
Posts: 16

Rep: Reputation: Disabled
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.
 
Old 02-24-2015, 02:27 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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


-
 
Old 02-26-2015, 04:55 AM   #3
flowing_river
LQ Newbie
 
Registered: Feb 2015
Posts: 16

Original Poster
Rep: Reputation: Disabled
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...
 
Old 02-26-2015, 05:59 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← 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 ?


-
 
Old 02-26-2015, 06:46 AM   #5
flowing_river
LQ Newbie
 
Registered: Feb 2015
Posts: 16

Original Poster
Rep: Reputation: Disabled
@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??
 
Old 02-26-2015, 07:19 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← 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.)


-
 
Old 02-26-2015, 08:00 AM   #7
flowing_river
LQ Newbie
 
Registered: Feb 2015
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
← 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??
 
Old 02-26-2015, 08:42 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← 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.

The updated MIT leach is `leach+pegasis-ns234-files-2.tar.gz´,
by @exidus https://drive.google.com/file/d/0B7S...ew?usp=sharing
INFO
. http://www.linuxquestions.org/questions/tags/pegasis/
#289 http://www.linuxquestions.org/questi...68/page20.html
. https://groups.google.com/forum/?fro...asis|sort:date
. http://network-simulator-ns-2.7690.n...asis&sort=date


-
 
Old 03-03-2015, 08:46 AM   #9
flowing_river
LQ Newbie
 
Registered: Feb 2015
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
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??
 
  


Reply

Tags
mannasim, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Regarding Installation of Mannasim in UBuntu 13.10 and patching with NS2 viswakarna Linux - Newbie 5 09-15-2014 10:56 AM
installing mannasim in ns2-2.35 and ubuntu 12 hamta Linux - Software 4 03-05-2014 04:04 PM
Query regarding LEACH in ns2.34 pgstudent2011 Linux - General 4 04-27-2013 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration