LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-04-2015, 12:42 AM   #1
Srihk
LQ Newbie
 
Registered: Feb 2015
Posts: 11

Rep: Reputation: Disabled
how to implement a LEACH protocol using ns-2.30?


Hi.. I want to implement a LEACH protocol in ns-2.30 (ubuntu 10.04 version) for my project. Can anyone help me out..
 
Old 02-04-2015, 05:16 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Welcome to LQ.

Any particular reason for ns-2.30 ?
1) LEACH may not live together with other added protocols.
2) You can have as many times ns-allinone-2.xx as you want,
installed at the same time.
But : Do never add any ns2 *PATH text to .bashrc.


The updated LEACH files : leach+pegasis-ns234-files-2.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

Also available as a patch : You can read the code added for Leach →
leach+pegasis_ns234.patch.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

Build examples ....
. http://www.linuxquestions.org/questi...-4175524367/#2
. http://www.linuxquestions.org/questi...-4175504301/#2
. http://www.linuxquestions.org/questi...-4175499594/#7

-
 
1 members found this post helpful.
Old 02-04-2015, 06:42 AM   #3
Srihk
LQ Newbie
 
Registered: Feb 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
leach protocol

Thanks for your valuable comment..
Well,there is one major reason..
Anyways,I want to implement it on ns-2.30.
 
Old 02-04-2015, 09:34 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
← ref. post #3.
Quote:
Well,there is one major reason
Please tell what reason that would be.
 
Old 02-04-2015, 10:04 PM   #5
Srihk
LQ Newbie
 
Registered: Feb 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Reason

Hi.. I'm doing Research in Underwater acoustic sensor networks (UASNs).
Platform: Aquasim tool
It is built in ns-2.30.
 
Old 02-05-2015, 07:31 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
← ref. #5.

Underwater acoustic sensor networks :
? Have you done some search with Google ?
My first thought was Underwater DESERT (~ns234),
. http://nautilus.dei.unipd.it/desert-underwater
. http://nautilus.dei.unipd.it/desert-...OCEANS2012.pdf
. http://nautilus.dei.unipd.it/desert-...medded-systems

... but it seems a later work can be found : SUNSET
. http://ieeexplore.ieee.org/xpl/login...mber%3D6608141
. http://reti.dsi.uniroma1.it/UWSN_Gro...set_desert.pdf

Ref.
. https://www.google.com/webhp?hl=all&...ensor+networks
. https://www.google.com/webhp?hl=all&...ensor+networks
. https://www.google.com/webhp?hl=all&...ensor+networks
. https://www.google.com/webhp?hl=all&...ensor+networks
----------

P.S. : Fairly easy to add a leach patch to Aqua-sim (ns-2.30).
Builds OK. The uw simulations will work OK.
The leach simulation won't : As predicted in post #2.

-
 
Old 02-08-2015, 05:27 AM   #7
Srihk
LQ Newbie
 
Registered: Feb 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
underwater tool

Hi.. I did a literature survey, but most of the researchers build their own c++ simulator for UASNs. In Aquasim tool, few of them published a paper on it. So, I chose it to implement and finding a bit challenging and tough to build a new protocol.

Aquasim:
http://obinet.engr.uconn.edu/wiki/index.php/Aqua-Sim
http://uwsn.engr.uconn.edu/publication

Can you suggest a tool for UASNs, if u dont mind..
It will be helpful for my Research.
 
Old 02-08-2015, 11:33 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Google : ns2+underwater+acoustic+sensor+networks

https://www.google.com/webhp?hl=all&...ensor+networks

. http://www.researchgate.net/post/How...Sensor_Network
→ → @Kashif A Khan →
If you're working on underwater acoustic sensor networks
then I would recommend you to use NS-2 simulator
because NS-2 have some built in features or packages
which support sensor networks simulation in underwater
and you can also use some of NS-2 based open source
simulator already available on internet.
But still I'm not sure what are your specific requirements
and only can suggest you briefly.
..
http://www.researchgate.net/go.Deref...2-1962-2-3.pdf

Etc. etc. , 8,000 hits.

-
 
Old 02-10-2015, 05:59 AM   #9
Srihk
LQ Newbie
 
Registered: Feb 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
desert lib

Hi.. will you guide me to install a DESERT_Underwater tool.
 
Old 02-10-2015, 06:35 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
← ref. #9.
Quote:
install a DESERT_Underwater tool
Which "Linux OS" have you got now ?
You are supposed to Specify the OS every time you ask a question like that
. http://www.linuxquestions.org/linux/...Ask_a_Question
. http://linuxsilo.net/docs/smart-questions_en.html
a) This command will show the OS architecture : $ uname -m
b) OS name and version, please.

-
 
Old 02-11-2015, 06:36 AM   #11
Srihk
LQ Newbie
 
Registered: Feb 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
OS

Hi.. Sorry Sir, i forgot to mention it.
I'm using Ubuntu-10.04.
I tried to install, but got stuck during the installation of NS-2.34.
 
Old 02-11-2015, 06:51 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
← ref. #11.

Please answer the (most) important question a) $ 'uname -m'
... asked for in post #10 .




-
 
Old 02-11-2015, 09:58 AM   #13
Srihk
LQ Newbie
 
Registered: Feb 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
uname -m

i686
Attached Thumbnails
Click image for larger version

Name:	Screenshot.png
Views:	7
Size:	41.1 KB
ID:	17557  
 
Old 02-11-2015, 11:03 AM   #14
Srihk
LQ Newbie
 
Registered: Feb 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Error

Again, I tried to re-install and i've got some of the errors.
Please, guide me to solve this!!
Attached Thumbnails
Click image for larger version

Name:	Screenshot-10.png
Views:	7
Size:	194.2 KB
ID:	17558  

Last edited by Srihk; 02-11-2015 at 11:05 AM.
 
  


Reply

Tags
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
NS2 simulation to implement LEACH protocol Pavith Linux - Wireless Networking 32 02-26-2015 07:07 AM
How to implement aodv routing protocol in leach in ns2.34 bayefalle Linux - Software 4 11-10-2014 10:52 AM
problem with running leach protocol in ns2.34 leach.er Mohamed69 Linux - Software 9 04-16-2014 07:10 AM
Please guide me hw to implement LEACH protocol in Ns2.34 havn installed Ubuntu 12.10 Pallavi13 Linux - Software 2 05-30-2013 05:34 AM


All times are GMT -5. The time now is 10:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration