LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 08-23-2013, 08:08 AM   #1
eng_mohamed_sc
Member
 
Registered: Jul 2013
Posts: 49

Rep: Reputation: Disabled
Lightbulb Leach_test file


I read Leach_test file but I can't understand this, Please help


ns tcl/ex/wireless.tcl \
-sc mit/uAMPS/sims/nodescen \
-rp $alg \
-x $x \
-y $y \
-nn $nn \
-stop $stop \
-eq_energy $eq_energy \
-init_energy $init_energy \
-filename $filename \
-dirname $dirname \
-topo $topology_file \
-num_clusters $num_clusters \
-bs_x $bs_x \
-bs_y $bs_y 2>$dirname/$filename.err 1>$dirname/$filename.out &
 
Old 08-23-2013, 08:47 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
ns tcl/ex/wireless.tcl : This is the first command in the simulation.
-sc mit/uAMPS/sims/nodescen : Reads the file "nodescen" in mit/uAMPS/sims/
-rp $alg : That's the algoritm that you select in leach_test line 5.
... Other choices are `leach_c' and `pegasis' (If pegasis-leach is implemented.)
-x $x : The X coordinate. http://en.wikipedia.org/wiki/Coordinate_system
-y $y : The Y coordinate.
-nn $nn : Like any other simulation.tcl : Number of nodes.
-stop $stop : Stop the simulation after <n> seconds.
-eq_energy $eq_energy : eq_energy=1, defined in leach_test line 23.
-init_energy $init_energy : Initial energy, leach_test line 24: init_energy=2
-filename $filename : filename=$alg, leach_test line 10.
-dirname $dirname : leach_test line 9 : dirname="mit/leach_sims"
-topo $topology_file : topology_file="mit/uAMPS/sims/100nodes.txt", line 17.
-num_clusters $num_clusters : Number of clusters : num_clusters=5 : line 21.
-bs_x $bs_x : bs_x=50 , line 31.
-bs_y $bs_y 2>$dirname/$filename.err 1>$dirname/$filename.out & :
.. I don't know what the two ns2/tcl commands 'bs_x' and 'bs_y' actually do.
.. May be Google will come up with an answer ?

Good luck ..

-

Last edited by knudfl; 08-23-2013 at 08:48 AM.
 
Old 08-23-2013, 12:29 PM   #3
eng_mohamed_sc
Member
 
Registered: Jul 2013
Posts: 49

Original Poster
Rep: Reputation: Disabled
About bs_x and bs_y : coordinates of BS

but what I need to understand what is SC an rp and for example x=1000 at line 28 so why x $x is this the definition for x or what?
 
  


Reply

Tags
leach, ns2


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
leach_test error mehran Fedora 1 04-22-2012 10:12 AM
Mencoder adds the extension of the original file to the output file ex: file.flv.mp4 linuxlicious Linux - General 2 04-17-2012 02:22 PM
leach_test execution on ns2.29 ridhaasma Linux - Newbie 5 12-12-2011 03:35 AM
How to play a media file/ video file/mp3 file recorded in harddisk/cd-rom arindam Linux - Newbie 2 09-05-2003 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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