LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-18-2015, 03:10 PM   #16
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

← ref. #14.
Quote:
source/home/laroui/Bureau/ns-allinone-2.34/ns-2.34/mit.....
Who wrote that path into the files ?
Please edit to the actual path.
And please do not use your Desktop for ns-allinone-2.34/
Default is : /home/<name>/ns-allinone-2.34/

The package `leach+pegasis-ns234-files-2.tar.gz“
comes with "/home/tomas/ns-allinone-2.34/ns-2.34/....",
.. to be edited to the actual path, in the nine files, 21 lines
Code:
mit/uAMPS/sims/leach-c.tcl:9:source /home/tomas/ns-allinone-2.34/ns-2.34/mit/uAMPS/ns-leach.tcl
mit/uAMPS/sims/leach-c.tcl:10:source /home/tomas/ns-allinone-2.34/ns-2.34/mit/uAMPS/ns-leach-c.tcl
mit/uAMPS/sims/mte.tcl:8:source /home/tomas/ns-allinone-2.34/ns-2.34/mit/uAMPS/ns-mte.tcl
mit/uAMPS/sims/pegasis.tcl:11:source /home/tomas/ns-allinone-2.34/ns-2.34/mit/uAMPS/ns-pegasis.tcl
mit/uAMPS/sims/stat-clus.tcl:12:source /home/tomas/ns-allinone-2.34/ns-2.34/mit/uAMPS/ns-leach.tcl
mit/uAMPS/sims/stat-clus.tcl:13:source /home/tomas/ns-allinone-2.34/ns-2.34/mit/uAMPS/ns-leach-c.tcl
mit/uAMPS/sims/stat-clus.tcl:14:source /home/tomas/ns-allinone-2.34/ns-2.34/mit/uAMPS/ns-stat-cluster.tcl
mit/uAMPS/sims/uamps.tcl:14:source /home/tomas/ns-allinone-2.34/ns-2.34/mit/rca/ns-ranode.tcl
mit/uAMPS/sims/uamps.tcl:15:source /home/tomas/ns-allinone-2.34/ns-2.34/mit/uAMPS/ns-bsapp.tcl
mit/uAMPS/sims/uamps.tcl:16:source /home/tomas/ns-allinone-2.34/ns-2.34/mit/uAMPS/extras.tcl
mit/uAMPS/sims/uamps.tcl:17:source /home/tomas/ns-allinone-2.34/ns-2.34/mit/uAMPS/stats.tcl
mit/uAMPS/sims/uamps.tcl:23:source /home/tomas/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-resource-manager.tcl
mit/uAMPS/sims/uamps.tcl:24:source /home/tomas/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-energy-resource.tcl
mit/uAMPS/sims/uamps.tcl:25:source /home/tomas/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-neighbor-resource.tcl
tcl/mobility/leach-c.tcl:9:source /home/tomas/ns-allinone-2.34/ns-2.34/mit/uAMPS/ns-leach.tcl
tcl/mobility/leach-c.tcl:10:source /home/tomas/ns-allinone-2.34/ns-2.34/mit/uAMPS/ns-leach-c.tcl
tcl/mobility/mte.tcl:8:source /home/tomas/ns-allinone-2.34/ns-2.34/mit/uAMPS/ns-mte.tcl
tcl/mobility/pegasis.tcl:11:source /home/tomas/ns-allinone-2.34/ns-2.34/mit/uAMPS/ns-pegasis.tcl
tcl/mobility/stat-clus.tcl:12:source /home/tomas/ns-allinone-2.34/ns-2.34/mit/uAMPS/ns-leach.tcl
tcl/mobility/stat-clus.tcl:13:source /home/tomas/ns-allinone-2.34/ns-2.34/mit/uAMPS/ns-leach-c.tcl
tcl/mobility/stat-clus.tcl:14:source /home/tomas/ns-allinone-2.34/ns-2.34/mit/uAMPS/ns-stat-cluster.tcl
The numbers are the line numbers.

-

Last edited by knudfl; 02-18-2015 at 03:11 PM.
 
Old 02-19-2015, 12:55 PM   #17
nadine01
Member
 
Registered: Oct 2014
Posts: 62

Original Poster
Rep: Reputation: Disabled
this problem it solved

now why data=0
 
Old 02-19-2015, 01:07 PM   #18
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
← ref. #17.

» now why data=0 « :
I guess you are going to tell where ``data=0““ shows up.

Please read
. http://www.linuxquestions.org/linux/...Ask_a_Question
. http://www.catb.org/%7Eesr/faqs/smart-questions.html


-
 
Old 03-06-2015, 05:36 PM   #19
nadine01
Member
 
Registered: Oct 2014
Posts: 62

Original Poster
Rep: Reputation: Disabled
sir i add ns-2.34 + {leach, pegasis} in ubuntu
leach it work correctly but pegasis no
i try by Centos 6.6
but i don't understand any think in this OS
can you help me to add it in Centos 6.6
 
Old 03-06-2015, 09:03 PM   #20
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
← ref. #19.

Pegasis is included in "leach+pegasis-ns234-files-2.tar.gz".

Simulating leach : Line 5 in 'leach_test' says : alg=leach
Leach_c : Edit line 5 to : alg=leach-c
Pegasis : Edit line 5 to : alg=pegasis
Stat-clus : alg=stat-clus

"leach_test" is a text file. Holds all the options for simulations.
Please read leach_test. Line 4 is the "algorithm Manual".


-
 
Old 03-07-2015, 02:34 AM   #21
nadine01
Member
 
Registered: Oct 2014
Posts: 62

Original Poster
Rep: Reputation: Disabled
Thank you sir

But i do this i replace
alg=leach
by
alg=pegasis

but the problem is data= 0

all this in Ubuntu


Now i would install ns2.34 and add leach+pegasis-ns234-files-2.tar.gz in Centos6.6

Last edited by nadine01; 03-07-2015 at 02:42 AM.
 
Old 08-13-2015, 06:27 PM   #22
Abdul_dos
LQ Newbie
 
Registered: Jul 2015
Posts: 9

Rep: Reputation: Disabled
Hello nadine01,
Could you please tell how to fix the total energy issue ?
also if you fixed the data=0 please tell how ?
 
  


Reply

Tags
ns2, pegasis


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
after installing NS2 termina shows the message ns2 not installed profaditya Linux - Newbie 2 09-25-2014 02:15 PM
NS2: How to set idle(sleeping) time to a node in wireless network in ns2 pon Linux - Newbie 0 08-19-2014 06:45 PM
NS2: Require eap-sim authentication code for simulation in ns2.24 noamankhatib Linux - Software 0 04-29-2013 12:03 PM

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

All times are GMT -5. The time now is 08:24 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