LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-24-2014, 11:04 PM   #1
thamim
LQ Newbie
 
Registered: Jan 2014
Posts: 1

Rep: Reputation: Disabled
Leach Protocol Code


Hai Everyone
i need Leach protocol source code for ns 2.35... pls help me.. mail me thamim.sthm@rediffmail.com
 
Old 01-25-2014, 07:26 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,315

Rep: Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175
Please delete your email address, to avoid being spammed.
We already have "Send email to thamim" http://www.linuxquestions.org/questi...ember&u=815477

There is no LEACH for ns-2.35 .
But : You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But do not add any *PATH text to .bashrc .

All ns-2.26 ... ns-2.34 will build OK / work OK in any contemporary Linux OS.

** The latest leach code is exidus-pegasis-leach-ns234-patch.2.tar.gz
** https://docs.google.com/file/d/0B7S2...it?usp=sharing

Leach info http://www.linuxquestions.org/questions/tags/leach/
Leach + pegasis http://www.linuxquestions.org/questions/tags/pegasis/

-
 
Old 02-27-2014, 04:10 AM   #3
keepwalking123
Member
 
Registered: Jan 2014
Posts: 52

Rep: Reputation: Disabled
@knudfl
hello sir..can you please provide me package of energy leach protocol as it is required me as base of my project..i will be thankful to you because i can do further modification in it as my project work..please..
 
Old 02-27-2014, 04:47 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,315

Rep: Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175
# 3 .

The original MIT-leach is mit.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing

What is "energy leach protocol" ?
 
Old 02-27-2014, 11:30 AM   #5
keepwalking123
Member
 
Registered: Jan 2014
Posts: 52

Rep: Reputation: Disabled
hello knudfl, i have implemented original leach successfully. Energy leach protocol means which considers residual energy of nodes for new CH selection..i want to do further modification in it..thanx for your reply..
 
Old 02-27-2014, 12:08 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,315

Rep: Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175
# 5 .
Quote:
Energy leach protocol means which considers residual energy of nodes
for new CH selection.. I want to do further modification in it ..
I guess you will have to ask @deepa_2111 for that.
Not a subject I know anything about.

-
 
Old 02-27-2014, 07:44 PM   #7
keepwalking123
Member
 
Registered: Jan 2014
Posts: 52

Rep: Reputation: Disabled
@knudfl
ok..thanx sir..but if possible if u got that package from anywhere please tell me because that package is already implemented..
 
Old 02-28-2014, 03:05 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,315

Rep: Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175
# 7 .

Which package ? ? "mit.tar.gz" ?
Time to read this again http://www.linuxquestions.org/questi...2-27-a-785379/

The old original links are repeated all over the thread, starting in post #3 :
http://www.internetworkflow.com/down...ach/mit.tar.gz
Ref. http://www.internetworkflow.com/downloads/ns2leach
... but the links haven't been working for years.

-
 
Old 02-28-2014, 10:26 AM   #9
keepwalking123
Member
 
Registered: Jan 2014
Posts: 52

Rep: Reputation: Disabled
hi knudfl..ok i will check but as i am modifying
the code, i want the clusters
formed during first round..for that
i write this code-
proc temp1 {name} {
upvar 1 $name x
global data
set data $name
#puts "Nodes data=$data"
#return $data
temp2
}
proc temp2 {} {
global data
puts "final data=$data"
set data_array [lappend data_array
$data]
puts "dt_arr=$data_array"
return $data_array
}
where temp1 is called in bs-app.tcl
by call by reference and cluster nodes are sent as parameter as:
temp1 $actual_nodes_data
but the problem is it takes only
last cluster nodes in array and
previous once are getting flushed
or overwritten..can u suggest me
any solution to this?? please..

Last edited by keepwalking123; 02-28-2014 at 10:28 AM.
 
Old 02-28-2014, 10:48 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,315

Rep: Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175
# 9 .

Please ask @deepa_2111. It's beyond my knowledge.
 
Old 03-03-2014, 12:03 PM   #11
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 182

Rep: Reputation: 268Reputation: 268Reputation: 268
Hi,
In case you still need LEACH on ns2.35, please read this post and download accordingly.
http://www.linuxquestions.org/questi...ml#post5123531 (Post #774).


Quote:
Originally Posted by thamim View Post
Hai Everyone
i need Leach protocol source code for ns 2.35... pls help me.. mail me thamim.sthm@rediffmail.com
 
  


Reply


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
problem with running leach protocol in ns2.34 leach.er Mohamed69 Linux - Software 9 04-16-2014 06:10 AM
LEACH protocol in ns2 swtjeeva Linux - Software 3 09-04-2012 12:53 PM
Leach protocol anitha.r.u Linux - Newbie 16 04-02-2012 04:37 AM
source code of leach protocol MAHAKR Linux - Newbie 1 06-11-2011 03:48 AM
protocol leach ezzati Linux - Newbie 5 05-03-2011 08:42 PM


All times are GMT -5. The time now is 09:06 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