LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   LEACH protocol installation on NS2.27 (https://www.linuxquestions.org/questions/linux-software-2/leach-protocol-installation-on-ns2-27-a-936340/)

hidoussi 05-31-2012 07:04 PM

leach on wsn
 
Quote:

Originally Posted by lubelube (Post 4658218)
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.

lubelube 05-31-2012 11:28 PM

thanks hidoussi for the reference :)

lubelube 05-31-2012 11:29 PM

Quote:

Originally Posted by hidoussi (Post 4692435)
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 :)

hidoussi 06-01-2012 12:55 PM

install leach protocol
 
Quote:

Originally Posted by lubelube (Post 4692542)
thanks hidoussi for the reference :)

can you help me to install leach protocol on ns
i have DEBIAN

lubelube 06-06-2012 11:41 PM

Quote:

Originally Posted by knudfl (Post 4653397)
# 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 :)

lubelube 06-06-2012 11:44 PM

Quote:

Originally Posted by hidoussi (Post 4693222)
can you help me to install leach protocol on ns
i have DEBIAN

there is in page 14 of my LQ

lubelube 06-07-2012 07:10 AM

Quote:

Originally Posted by knudfl (Post 4653397)
# 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.

lubelube 06-08-2012 09:30 AM

how do I find the value of energy dissipation (leach) at each node? do you have its code? please help me. thanks before.

lubelube 06-09-2012 10:01 AM

i need an awk file to find the energy consumption to leach in ns 2.27, any body help me? please. thx before

lubelube 06-14-2012 04:13 AM

Quote:

Originally Posted by lubelube (Post 4697799)
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?

lubelube 06-14-2012 04:26 AM

hidoussi, i want ask you, why the simulation area of ns-2 should be rectangular?

hidoussi 06-14-2012 12:29 PM

Quote:

Originally Posted by lubelube (Post 4698809)
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_ ""

pvbhat 07-18-2012 09:34 AM

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

hidoussi 07-18-2012 11:20 AM

Quote:

Originally Posted by pvbhat (Post 4731705)
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

knudfl 07-19-2012 07:01 AM

# 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/

.


All times are GMT -5. The time now is 05:36 PM.