How do I go about evaluating energy efficiency in aodv and leach protocol.
Linux - NewbieThis 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
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.
How do I go about evaluating energy efficiency in aodv and leach protocol.
Hi,
I am interested in evaluating the energy efficiency for aodv and leach protocol. I havent been able to get through with mannasim because of this error:
ns:
[code omitted because of length]
: invalid command name "DataGenerator/TemperatureDataGenerator"
while executing
"DataGenerator/TemperatureDataGenerator set sensing_interval_ 0.0"
Do anyone have a link that could be of help? Also I would appreciate if anyone has a file/link in which energy efficiency of this two protocols have been evaluated on ns2.
1. I observed the installation doesnt contained script generator in mannasim folder
2. Any time I try to run any tcl file, now, I get
ns:
[code omitted because of length]
: invalid command name "DataGenerator/TemperatureDataGenerator"
while executing
"DataGenerator/TemperatureDataGenerator set sensing_interval_ 0.0"
even for the codes than ran successfully before my first installation of mannasim.
I use ubuntu 14.10 and have ns2.35-all-in-one && ns-allinone-2.35-paultsr installed
Please I do appreciate all your contributions.
Thanks a lot
Last edited by talk_2_tosin; 04-17-2015 at 05:38 AM.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Re #3.
Please do not use plain 'ns' in a command :
$ cd ns-allinone-2.35(-paultsr)/ns-2.35/
$ cp ns ns-mannasim
( Any other name you'd prefer can be used: ns235-mannasim, ns235-paultsr, etc.)
$ sudo cp ns-mannasim /usr/local/bin/
... All mannasim simulations will run with $ ns-mannasim file.tcl .
Script generating tools :
1) The java tool folder "scriptGeneratorTool/" can be copied to any location.
.... Can produce some files (that you will have to edit to make them usable).
2) The java tool ns-allinone-2.35-paultsr/paultsr/set/nsg2.jar :
$ cd paultsr/set/ && java -jar nsg2.jar
I successfully copied the mannasim script generator into the paultsr mannasim folder. I was also able to see the nsg2 from your kind response. I also downloaded the mannasim package on google drive.
I am still stuck here please
abdulhameed@abdulhameed-HP-Pavilion-15-Notebook-PC:~/ns-allinone-2.35-paultsr$ cp ns ns-mannasim
cp: cannot stat ns: No such file or directory
Also, I also need more guidance concerning how to use this command in this context
$ sudo cp ns-mannasim /usr/local/bin/
abdulhameed@abdulhameed-HP-Pavilion-15-Notebook-PC:~/ns-allinone-2.35-paultsr$ sudo cp ns-mannasim/usr/local/bin
[sudo] password for abdulhameed:
cp: missing destination file operand after ns-mannasim/usr/local/bin
I highly value your time and kind contribution
Last edited by talk_2_tosin; 04-18-2015 at 01:39 AM.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Re #5.
Sorry. the right command is of course $ cd ns-allinone-2.35(-paultsr)/ns-2.35/
.... I.e. your location must be "ns-2.35/" : The only directory with 'ns'.
I have managed to go through as indicated below. I just need an extra word from you to get through the error below. I tried searching through google but it seems I need to ask someone with experience.
abdulhameed@abdulhameed-HP-Pavilion-15-Notebook-PC:~/ns-allinone-2.35-paultsr/ns-2.35$ cp ns ns-mannasim
abdulhameed@abdulhameed-HP-Pavilion-15-Notebook-PC:~/ns-allinone-2.35-paultsr/ns-2.35$ sudo cp ns-mannasim/usr/local/bin
[sudo] password for abdulhameed:
cp: missing destination file operand after ns-mannasim/usr/local/bin
Try 'cp --help' for more information.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Re #9.
Quote:
For ANY tcl file I intend to run afterwards, do I use
Ns-mannasim "file".tcl
Do I need to copy the file into the mannasim or ns-2.35 folder ?
The last one I tried for LEACH MANNASIM says no such file or directory.
A folder with the mannasim examples can have any location.
LEACH MANNASIM : Is a non existing word/expression/file.
"Ns-mannasim "file".tcl" is wrong. Right is $ ns-mannasim "file".tcl
The three OK examples that I know are :
LEACH_mannasim.tcl, mannasim-rede-hierarquica.tcl, mannasim-rede-plana.tcl
Go to the folder with the examples, and type $ ns-mannasim L<TAB>
... and the 'LEACH_mannasim.tcl' example will be run.
Node 01 - Temperature Data 37.553932 - Time 9.678344
Node 02 - Temperature Data 15.288129 - Time 9.678344
Node 03 - Temperature Data 24.737345 - Time 9.678344
Please for the benefit of myself and others, I would like to know the function of this tcl file.
Its working quite well and looks quite interesting.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.