LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 05-31-2012, 07:04 PM   #16
hidoussi
LQ Newbie
 
Registered: May 2012
Location: ALGERIA
Posts: 14

Rep: Reputation: Disabled
leach on wsn


Quote:
Originally Posted by lubelube View Post
sorry, can the leach used to wsn?
yes leach can use to wsn domain "minimized energy in wirless sensor network "
W. Heinzelman, "Application- Specific Protocol Architectures for Wireless Networks," PhD Thesis, Massachusetts Institute of Technology, June 2000.
 
Old 05-31-2012, 11:28 PM   #17
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
thanks hidoussi for the reference
 
Old 05-31-2012, 11:29 PM   #18
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hidoussi View Post
yes leach can use to wsn domain "minimized energy in wirless sensor network "
W. Heinzelman, "Application- Specific Protocol Architectures for Wireless Networks," PhD Thesis, Massachusetts Institute of Technology, June 2000.
thanks hidoussi for the reference
 
Old 06-01-2012, 12:55 PM   #19
hidoussi
LQ Newbie
 
Registered: May 2012
Location: ALGERIA
Posts: 14

Rep: Reputation: Disabled
install leach protocol

Quote:
Originally Posted by lubelube View Post
thanks hidoussi for the reference
can you help me to install leach protocol on ns
i have DEBIAN
 
Old 06-06-2012, 11:41 PM   #20
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 13

There may be some solutions here, page 17, posts by @deepa_2111
http://www.linuxquestions.org/questi...68/page17.html

The other long LEACH thread :
http://www.linuxquestions.org/questi...2-27-a-785379/

( LQ Search : Tag = leach )

.
thanks
 
Old 06-06-2012, 11:44 PM   #21
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hidoussi View Post
can you help me to install leach protocol on ns
i have DEBIAN
there is in page 14 of my LQ
 
Old 06-07-2012, 07:10 AM   #22
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 13

There may be some solutions here, page 17, posts by @deepa_2111
http://www.linuxquestions.org/questi...68/page17.html

The other long LEACH thread :
http://www.linuxquestions.org/questi...2-27-a-785379/

( LQ Search : Tag = leach )

.
knudfl, i want to ask you, how do I find the value of energy dissipation at each node? do you have its code? please help me. thanks before.
 
Old 06-08-2012, 09:30 AM   #23
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
how do I find the value of energy dissipation (leach) at each node? do you have its code? please help me. thanks before.
 
Old 06-09-2012, 10:01 AM   #24
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
i need an awk file to find the energy consumption to leach in ns 2.27, any body help me? please. thx before
 
Old 06-14-2012, 04:13 AM   #25
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lubelube View Post
knudfl, i want to ask you, how do I find the value of energy dissipation at each node? do you have its code? please help me. thanks before.
knudfl, i want ask you, why the simulation area of ns-2 should be rectangular?

Last edited by lubelube; 06-14-2012 at 04:25 AM.
 
Old 06-14-2012, 04:26 AM   #26
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
hidoussi, i want ask you, why the simulation area of ns-2 should be rectangular?
 
Old 06-14-2012, 12:29 PM   #27
hidoussi
LQ Newbie
 
Registered: May 2012
Location: ALGERIA
Posts: 14

Rep: Reputation: Disabled
Quote:
Originally Posted by lubelube View Post
how do I find the value of energy dissipation (leach) at each node? do you have its code? please help me. thanks before.

open the file ns-leach.tcl


Receiving Functions
the code
# After an entire frame of data has been received, the cluster-head
# must perform data aggregation functions and transmit the aggregate
# signal to the base station.
pp "CH $chID must now perform comp and xmit to BS."
set num_sigs [llength $TDMAschedule_]
set compute_energy [bf $opt(sig_size) $num_sigs]
pp "\tcompute_energy = $compute_energy"
[$self getER] remove $compute_energy
set receivedFrom_ [lappend receivedFrom_ $chID]
set dataReceived_ $receivedFrom_
set receivedFrom_ ""
 
Old 07-18-2012, 09:34 AM   #28
pvbhat
LQ Newbie
 
Registered: Jul 2012
Posts: 4

Rep: Reputation: Disabled
Arrow leach on ns2.27

I followed your instructions to run leach on ns2.27 with ns 2.27-gcc410 patch and mit.tar.gz and succeded to run ./test but got the following warning.If you have any suggestion in installation procedure to clear warnings please let me know it.
Thanks for your help.

[root@localhost ns-2.27]# ./test
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
warning: no class variable Phy/WirelessPhy::alive_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Phy/WirelessPhy::Efriss_amp_

warning: no class variable Phy/WirelessPhy::Etwo_ray_amp_

warning: no class variable Phy/WirelessPhy::EXcvr_

warning: no class variable Phy/WirelessPhy::sleep_

warning: no class variable Phy/WirelessPhy::ss_

warning: no class variable Phy/WirelessPhy::dist_

INITIALIZE THE LIST xListHead
warning: no class variable Phy/WirelessPhy::alive_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Phy/WirelessPhy::Efriss_amp_

warning: no class variable Phy/WirelessPhy::Etwo_ray_amp_

warning: no class variable Phy/WirelessPhy::EXcvr_

warning: no class variable Phy/WirelessPhy::sleep_

warning: no class variable Phy/WirelessPhy::ss_

warning: no class variable Phy/WirelessPhy::dist_

warning: no class variable Phy/WirelessPhy::alive_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Phy/WirelessPhy::Efriss_amp_

warning: no class variable Phy/WirelessPhy::Etwo_ray_amp_

warning: no class variable Phy/WirelessPhy::EXcvr_

warning: no class variable Phy/WirelessPhy::sleep_

warning: no class variable Phy/WirelessPhy::ss_

warning: no class variable Phy/WirelessPhy::dist_

Loading connection pattern...
Loading scenario file...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 89.8
SORTING LISTS ...DONE!
NS EXITING...
./test: line 5: ./leach_test: No such file or directory
 
Old 07-18-2012, 11:20 AM   #29
hidoussi
LQ Newbie
 
Registered: May 2012
Location: ALGERIA
Posts: 14

Rep: Reputation: Disabled
Quote:
Originally Posted by pvbhat View Post
I followed your instructions to run leach on ns2.27 with ns 2.27-gcc410 patch and mit.tar.gz and succeded to run ./test but got the following warning.If you have any suggestion in installation procedure to clear warnings please let me know it.
Thanks for your help.

[root@localhost ns-2.27]# ./test
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
warning: no class variable Phy/WirelessPhy::alive_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Phy/WirelessPhy::Efriss_amp_

warning: no class variable Phy/WirelessPhy::Etwo_ray_amp_

warning: no class variable Phy/WirelessPhy::EXcvr_

warning: no class variable Phy/WirelessPhy::sleep_

warning: no class variable Phy/WirelessPhy::ss_

warning: no class variable Phy/WirelessPhy::dist_

INITIALIZE THE LIST xListHead
warning: no class variable Phy/WirelessPhy::alive_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Phy/WirelessPhy::Efriss_amp_

warning: no class variable Phy/WirelessPhy::Etwo_ray_amp_

warning: no class variable Phy/WirelessPhy::EXcvr_

warning: no class variable Phy/WirelessPhy::sleep_

warning: no class variable Phy/WirelessPhy::ss_

warning: no class variable Phy/WirelessPhy::dist_

warning: no class variable Phy/WirelessPhy::alive_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Phy/WirelessPhy::Efriss_amp_

warning: no class variable Phy/WirelessPhy::Etwo_ray_amp_

warning: no class variable Phy/WirelessPhy::EXcvr_

warning: no class variable Phy/WirelessPhy::sleep_

warning: no class variable Phy/WirelessPhy::ss_

warning: no class variable Phy/WirelessPhy::dist_

Loading connection pattern...
Loading scenario file...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 89.8
SORTING LISTS ...DONE!
NS EXITING...
./test: line 5: ./leach_test: No such file or directory



go to the link ns/ns-allinone-2.34/tcl/ex/wireless demo-csci694.tcl


open this file and add this code befor main program

# ------------------------------------------------------
Phy/WirelessPhy set alive_ 1
Phy/WirelessPhy set Efriss_amp_ 100e-12
Phy/WirelessPhy set Etwo_ray_amp_ 0.013e-12

Phy/WirelessPhy set EXcvr_ 50e-9
Phy/WirelessPhy set sleep_ 0
Phy/WirelessPhy set ss_ 1
Phy/WirelessPhy set dist_ 0
# ------------------------------------------------------

save the file again
run the simulation
any question you can ask me
by
 
Old 07-19-2012, 07:01 AM   #30
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,985

Rep: Reputation: 2611Reputation: 2611Reputation: 2611Reputation: 2611Reputation: 2611Reputation: 2611Reputation: 2611Reputation: 2611Reputation: 2611Reputation: 2611Reputation: 2611
# 28
Quote:
./test: line 5: ./leach_test: No such file or directory
Please edit "test" according post # 6 here
http://www.linuxquestions.org/questi...2-27-a-785379/

.
 
  


Reply

Tags
leach, 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
codes for leach protocol in ns2 shaddrack yaw nusenu Linux - Newbie 4 09-14-2014 10:16 AM
Leach Protocol for ns2.34 pushpita Linux - Software 36 07-08-2013 04:06 AM
LEACH protocol installation on NS2.27 Scofield Linux - General 255 03-08-2012 05:19 PM


All times are GMT -5. The time now is 06:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration