how to integrate the "Resource/Energy" leach class into NS-2.34?
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi deepa, thanks for helping.
just found some article related to create mobile environment on ns, but still confuse how to implement it on leach code.
working on it now
Hi deepa, thanks for helping.
just found some article related to create mobile environment on ns, but still confuse how to implement it on leach code.
working on it now
Please after I changes at two files mac\Wireless-Phy.cc and mit\rca\energy.cc to solve energy problem according to deepa
Then it is necessary to do these commands:
make clean :success
make depend : failed with this error "make: *** No rule to make target `tcp/linux/tcp_naivereno.cc', needed by `depend'. Stop."
make :success
sudo make install :success
Please help me why this error after I run make depend command
This is not an error. It is a part of your simulation.
Try to figure out where this is happening. Could be due to a wrongly set spreadfactor, or it could be a normal occurrence.
Quote:
Originally Posted by eng_mohamed_sc
Also I have this error when I run Leach
I can hear 9 different packets ==> collision.
COLLISION!!!! rx_state_ = 0
Please after I changes at two files mac\Wireless-Phy.cc and mit\rca\energy.cc to solve energy problem according to deepa
Then it is necessary to do these commands:
make clean :success
make depend : failed with this error "make: *** No rule to make target `tcp/linux/tcp_naivereno.cc', needed by `depend'. Stop."
make :success
sudo make install :success
Please help me why this error after I run make depend command
I can hear 9 different packets ==> collision.
COLLISION!!!! rx_state_ = 0
did you made some change on simulation?
i got this error when i changed spreading factor, always start to solve the problem from where first time you made a change.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
#618, #621 : Do not use 'make depend' ! Usually never required.
#619 : "I have this error when I run Leach".
What is `run Leach' ? ? './test' ?
#619 : ""I can hear 9 different packets ==> collision.
COLLISION!!!! rx_state_ = 0 ""
** Which OS are you using now ? a) $ uname -m <Enter> ; b) OS name, please.
** And : Ref. #622: "Did you made some change on simulation ?"
#618, #621 : Do not use 'make depend' ! Usually never required.
#619 : "I have this error when I run Leach".
What is `run Leach' ? ? './test' ?
#619 : ""I can hear 9 different packets ==> collision.
COLLISION!!!! rx_state_ = 0 ""
** Which OS are you using now ? a) $ uname -m <Enter> ; b) OS name, please.
** And : Ref. #622: "Did you made some change on simulation ?"
Last edited by eng_mohamed_sc; 12-19-2013 at 01:22 PM.
how many nodes do you use on simulation and value of num_clusters?
if you use 100 nodes and num_clusters=5, value for spreading factor should be 8.
So I should change spreading factor value at condition.txt file only or other file?
after i change this value i must run "make clean" then "make" commands?
i change these value at condition.txt file and run two commands "make clean" then "make" but still have problems at leach.out file "node dead fast"
I notice that if I keep the two files "Wireless-Phy.cc" and "energy.cc" without adding Deepa changes , the nodes dead normally but total energy at the end of leach.out file more than 200j ,but if i keep them without deepa changes ,nodes dead normally but total energy exceed 200j
Hello every one. I have ubuntu 12.04, 32 bit verions, having gcc -4.4 and g++-4.4. When i run "bash ./test" file, it runs successfully, but when i check "leach.err" file, i am facing the following error. Any one who has the solution to this problem, can kindly share with me.
invalid command name "Resource/Energy"
while executing
"Resource/Energy instproc setParams {args} {
$self instvar energyLevel_ alarmLevel_
set energyLevel_ [lindex $args 0]
set alarmLevel_ [lin..."
(file "mit/rca/resources/ns-energy-resource.tcl" line 12)
invoked from within
"source.orig mit/rca/resources/ns-energy-resource.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source mit/rca/resources/ns-energy-resource.tcl"
(file "mit/uAMPS/sims/uamps.tcl" line 32)
invoked from within
"source.orig mit/uAMPS/sims/uamps.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source mit/uAMPS/sims/uamps.tcl"
(file "tcl/mobility/leach.tcl" line 18)
invoked from within
"source.orig tcl/mobility/leach.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source tcl/mobility/$opt(rp).tcl"
(file "tcl/ex/wireless.tcl" line 187)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.