LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-28-2015, 08:38 AM   #31
Rizwanamalek
Member
 
Registered: Jan 2015
Posts: 56

Rep: Reputation: Disabled

Sir i have follow all the post #50 #56 #61 #75

http://www.linuxquestions.org/questi...368/page4.html

Then i ./test give me result
Code:
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 89.8
SORTING LISTS ...DONE!
NS EXITING...
[root@localhost ns-2.34]#
and leac.out have still error
Code:
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
What to do?

Last edited by Rizwanamalek; 02-28-2015 at 10:43 AM.
 
Old 02-28-2015, 10:57 AM   #32
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. #31.

The terminal output from './test' doesn't really tell anything.
Shows the first step in the sequence ( ns wireless-demo-csci694.tcl ).
Nothing else.
( Read 'test', 'leach_test' to know all the "starting commands".)


The warnings : Warnings are not errors.
Warnings are informational text.


-
 
Old 02-28-2015, 11:40 AM   #33
Rizwanamalek
Member
 
Registered: Jan 2015
Posts: 56

Rep: Reputation: Disabled
Code:
[root@localhost ex]# ns wireless-demo-csci694.tcl 
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 89.8
SORTING LISTS ...DONE!
NS EXITING...
[root@localhost ex]#
What you mean by "starting commandS" in test and leach_test ?
 
Old 02-28-2015, 01:41 PM   #34
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. #33.

Starting the simulation in "MIT Leach" :
1) test : ns wireless-demo-csci694.tcl

2) leach_test :
Code:
ns tcl/ex/wireless.tcl  \
-sc mit/uAMPS/sims/nodescen.tcl \
-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 &
And the command will inlude other files :
Code:
tcl/ex/wireless.tcl : ../mobility/scene/cbr-50-20-4-512
tcl/ex/wireless.tcl : ../mobility/scene/scen-670x670-50-600-20-2
tcl/ex/wireless.tcl : source tcl/lib/ns-mobilenode.tcl
tcl/ex/wireless.tcl : source tcl/lib/ns-cmutrace.tcl

rca.tcl:6:source $env(RCA_LIBRARY)/resources/ns-energy-resource.tcl

mit/uAMPS/sims/mte.tcl:8:source ../ns-mte.tcl

mit/uAMPS/sims/uamps.tcl:24:source ../../rca/resources/ns-energy-resource.tcl
			   uamps.tcl:25:source <path-to> ns-neighbor-resource.tcl
			   uamps.tcl:23:source ../../rca/resources/ns-resource-manager.tcl
			   uamps.tcl:9:source <path-to> ns-ranode.tcl
			   uamps.tcl:16:source ../extras.tcl
			   uamps.tcl:15:source ../ns-bsapp.tcl
			   uamps.tcl:17:source ../stats.tcl

tcl/mobility/leach.tcl:7:source mit/uAMPS/ns-leach.tcl
tcl/mobility/stat-clus.tcl:12:source <path-to> mit/uAMPS/ns-leach.tcl
tcl/mobility/stat-clus.tcl:26:source mit/uAMPS/sims/uamps.tcl
tcl/mobility/stat-clus.tcl : source <path-to> /mit/uAMPS/ns-leach-c.tcl
tcl/mobility/stat-clus.tcl : source <path-to> mit/uAMPS/ns-stat-cluster.tcl
tcl/mobility/mte.tcl : source mit/uAMPS/sims/uamps.tcl
.... And there may be more files calling other files ?


-
 
Old 03-01-2015, 05:33 AM   #35
Rizwanamalek
Member
 
Registered: Jan 2015
Posts: 56

Rep: Reputation: Disabled
Sir, i have still cofusion about simulation in "MIT Leach" for what? and in post #34 codes is given is already in leach_test and second code is for what pourpuse? Is ther any other step remaing in leach implementation?

Code:
ns tcl/ex/wireless.tcl  \
-sc mit/uAMPS/sims/nodescen.tcl \
-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 03-01-2015, 05:48 AM   #36
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 #35.

Your question was : Why "starting command".

The second "code block" in post #34 shows the files used by the command in the first "code block".
A lot of things are processed with 'ns tcl/ex/wireless.tcl \ \ \ \ \ '
Hence "starting command".
I.e. it's not just `wireless.tclŽ which is involved.
All the ~19 other files are used / processed too.


-
 
Old 03-01-2015, 06:17 AM   #37
Rizwanamalek
Member
 
Registered: Jan 2015
Posts: 56

Rep: Reputation: Disabled
It gives me output code. It i necessary to simulate in MIT leach? And in first "code block" how to simulate all the files using these commands please give me some example?
Code:
[root@localhost ex]# ns wireless.tcl 
couldn't read file "tcl/lib/ns-mobilenode.tcl": no such file or directory
    while executing
"source.orig tcl/lib/ns-mobilenode.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/lib/ns-mobilenode.tcl"
    (file "wireless.tcl" line 184)
[root@localhost ex]#
 
Old 03-01-2015, 08:42 AM   #38
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. #37.
Quote:
It gives me output code.
What do you mean by "It".
"output code" : Please elaborate what you mean.


Quote:
first "code block" how to simulate all the files using these commands
The first "code block" in post #34 is one command.

How to simulate all the files : Not simulation files.
The second "code block" in post #34 : Configuration / "library" files.
And all the files are used by $ ./test → leach_test.

* All the ~20 files we talk about are text files.
Please read the files, to know how they are connected.


$ ns wireless.tcl : The Leach `wireless.tclŽ is a dedicated Leach file.
And you cannot run it separately. No $ ns wireless.tcl in LEACH !
Is run with ./test, which runs 'leach_test.


-
 
1 members found this post helpful.
Old 03-01-2015, 09:35 AM   #39
Rizwanamalek
Member
 
Registered: Jan 2015
Posts: 56

Rep: Reputation: Disabled
Thank you for your help, Each and every post is very helpful for me.
 
Old 03-08-2015, 01:35 PM   #40
flowing_river
LQ Newbie
 
Registered: Feb 2015
Posts: 16

Rep: Reputation: Disabled
hello sir,
after running ./test
i found the same result as #33
but,there is no leach.out file produced.I found leach.data,leach.alive,leach.energy and leach.err-save but not leach.out..!!
so,what should I do??
 
  


Reply

Tags
leach, ns2, pegasis, pegasis#2


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.out total energy increase leach ns2.34 linuxUser123linux Linux - Software 1 07-13-2013 04:54 AM
[SOLVED] cfdisk : FATAL ERROR: Bad logical partition 10: enlarged logical partitions overlap riller Fedora 8 05-31-2012 08:17 AM
I got an error while running leach package in ns2.. help me to get out of this error. rkgowrishankar Linux - Software 1 02-07-2012 04:51 AM

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

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