LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-16-2015, 11:09 PM   #1
talk_2_tosin
LQ Newbie
 
Registered: Apr 2015
Posts: 14

Rep: Reputation: Disabled
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.

Be sure your contribution is highly valued

Thanks
 
Old 04-17-2015, 03:12 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.
Quote:
ns:
[code omitted because of length]
: invalid command name "DataGenerator/TemperatureDataGenerator"
That's a failed build of ns-2.<unknown> + mannasim.


You can get a version of ns-2.35 already patched with 'mannasim' :
#10 here http://www.linuxquestions.org/questi...4175520564/#10 >>
>> ns-allinone-2.35-paultsr_mannasim.tar.gz
Or : https://github.com/paultsr/ns-allinone-2.35
>>> $ git clone https://github.com/paultsr/ns-allinone-2.35

Mannasim links : Use the 'mannasim' button below the posts in this thread:
http://www.linuxquestions.org/questions/tags/mannasim/
And https://groups.google.com/forum/?fro...asim|sort:date
,,, http://network-simulator-ns-2.7690.n...asim&sort=date

? Any questions ?
Then please specify your OS :
i686 or x86_64 ? OS name and version ?
.... And the ns2 version you want to use.

-

Last edited by knudfl; 04-17-2015 at 03:14 AM.
 
Old 04-17-2015, 05:36 AM   #3
talk_2_tosin
LQ Newbie
 
Registered: Apr 2015
Posts: 14

Original Poster
Rep: Reputation: Disabled
Installed "ns-allinone-2.35-paultsr" but....

Thanks so much Mr Knudfl

I managed to install ns-allinone-2.35-paultsr.

However, I would need more enlightenment because:

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.
 
Old 04-17-2015, 06:20 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 .

Updated package, examples : mannasim-examples2015.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

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


-

Last edited by knudfl; 04-18-2015 at 04:40 AM.
 
1 members found this post helpful.
Old 04-17-2015, 07:42 PM   #5
talk_2_tosin
LQ Newbie
 
Registered: Apr 2015
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thank you So Much,

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.
 
Old 04-18-2015, 04:39 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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'.

$ cp ns ns-mannasim
$ sudo cp ns-mannasim /usr/local/bin/

... Then you can do $ ns-mannasim LEACH_mannasim.tcl ,,, etc. etc. examples.

-
 
1 members found this post helpful.
Old 04-18-2015, 05:30 AM   #7
talk_2_tosin
LQ Newbie
 
Registered: Apr 2015
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thank you so much for the response,

I am appreciative.

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.

Thanks
 
Old 04-18-2015, 05:39 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #7.
Quote:
$ sudo cp ns-mannasim/usr/local/bin
... Is wrong. You have forgotten a <space> :
$ sudo cp ns-mannasim<space>/usr/local/bin/
I.e. $ sudo cp ns-mannasim /usr/local/bin/

? Why are you typing the commands ?
Just copy/paste the commands from a posts.
 
Old 04-18-2015, 06:22 AM   #9
talk_2_tosin
LQ Newbie
 
Registered: Apr 2015
Posts: 14

Original Poster
Rep: Reputation: Disabled
Yes !!! It worked

Thanks a lot.

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.

I do appreciate your experience

Thanks soo much.

I do wish you abundant success
 
Old 04-18-2015, 06:52 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.


-
 
1 members found this post helpful.
Old 04-18-2015, 09:05 AM   #11
talk_2_tosin
LQ Newbie
 
Registered: Apr 2015
Posts: 14

Original Poster
Rep: Reputation: Disabled
Yes I tried it and it worked fine.

This is a sample of what I got

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.

I do say thanks once again

I appreciate your time
 
Old 04-18-2015, 11:34 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #11.

Google, https://www.google.com/webhp?hl=all&...nasim+protocol
Examples, Mannasim info
. http://www.mannasim.dcc.ufmg.br/
. http://www.mannasim.dcc.ufmg.br/howto.htm
. https://www.youtube.com/watch?v=ARCaXk9UH4M
. https://dl.dropboxusercontent.com/u/...nManual_EN.pdf
. http://digilib.its.ac.id/public/ITS-...re_Listpdf.pdf


-

Last edited by knudfl; 04-18-2015 at 11:58 AM.
 
1 members found this post helpful.
Old 04-18-2015, 06:27 PM   #13
talk_2_tosin
LQ Newbie
 
Registered: Apr 2015
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thanks a lot for sharing your time and knowledge
 
  


Reply

Tags
mannasim, ns2



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
invalid command"Resource/Energy" in leach.err file of exidus-pegasis-leach-patch2 flowing_river Linux - Software 0 03-16-2015 06:44 PM
How to implement aodv routing protocol in leach in ns2.34 bayefalle Linux - Software 4 11-10-2014 09:52 AM
leach.out total energy increase leach ns2.34 linuxUser123linux Linux - Software 1 07-13-2013 04:54 AM
energy in leach protocol !! shanky Linux - Software 1 03-19-2012 06:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:41 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
Open Source Consulting | Domain Registration