LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 07-16-2012, 06:57 AM   #1
amrani
LQ Newbie
 
Registered: Jul 2012
Posts: 1

Rep: Reputation: Disabled
NS-2


i am soing my project on multi-channel multi-interface wireless network. when i run this the follwoing error came. why? pls help me to debug the error.
the error is,
(_o36 cmd line 1)
invoked from within
"_o36 cmd if-queue 0 _o39"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o36" line 2)
(SplitObject unknown line 2)
invoked from within
"$agent if-queue $i [$self set ifq_($i)]"
(procedure "_o22" line 27)
(Node/MobileNode add-target line 27)
invoked from within
"$self add-target $agent $port"
(procedure "_o22" line 15)
(Node attach line 15)
invoked from within
"$node attach $ragent [Node set rtagent_port_]"
(procedure "_o3" line 84)
(Simulator create-wireless-node line 84)
invoked from within
"_o3 create-wireless-node 1.0.0"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node [lindex $tmp 0]"
invoked from within
"set bs(0) [$ns_ node [lindex $tmp 0]]"
by
amrani
 
Old 07-16-2012, 09:09 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.

Some more information is required :
Fedora <version>, like Fedora 17 - x86_64.
Version of ns-allinone-2.xx.
Modifications and patches, if any. Please specify.
The command you are using. ( 'ns file.tcl' ? ).
The name of your <file.tcl>, and if the file isn't an internal ns2 file:
Please show a link to the code. Or attach the 'file.tcl.txt' :
→ The paperclip tool in the 'Advanced Editor'.

.
 
Old 07-17-2012, 12:07 AM   #3
venkatadri
LQ Newbie
 
Registered: Aug 2011
Posts: 26
Blog Entries: 3

Rep: Reputation: Disabled
i was installed ns-allinone-2.34 in fedora 8(VM ware workstation)
after succcessful copletion of installation and validation
when i start at $ set ns[new Simulator] i got error " cannot find ns_o4" : not a valid variable ? what is the solution please tell
me
 
Old 07-17-2012, 02:02 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
Quote:
$ set ns[new Simulator]
Not a command you can run. AFAIK.

Write a complete file.tcl, and run it with 'ns file.tcl'

And better start with the simple examples for testing and practicing.
http://www.isi.edu/nsnam/ns/tutorial/nsscript1.html > template.tcl
> http://www.isi.edu/nsnam/ns/tutorial...s/template.tcl

http://www.isi.edu/nsnam/ns/tutorial/nsscript2.html > example2.tcl
> http://www.isi.edu/nsnam/ns/tutorial...s/example2.tcl

.
 
Old 10-01-2012, 01:28 AM   #5
venkatadri
LQ Newbie
 
Registered: Aug 2011
Posts: 26
Blog Entries: 3

Rep: Reputation: Disabled
when i execute tora.tcl it hangs and gives the following message
num_nodes is set 3
warninglease use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListhead
channel.cc:sendUp-Calc highestAntennaZ_ and distCST_
highestAntennaZ_ =1.5, distCST_ =550.0
SORTING LISTS...DONE
 
Old 10-01-2012, 02:54 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
Post # 5

Which "tora.tcl" is it about ?

And how did you run the file ? $ ns tora.tcl ?
 
Old 10-01-2012, 11:50 AM   #7
venkatadri
LQ Newbie
 
Registered: Aug 2011
Posts: 26
Blog Entries: 3

Rep: Reputation: Disabled
hello knudfl

hello knudfl,

i actually working in simulation of Mobile Ad-hoc network routing protocols in ns-allinone-2.34
regarding that i have a tcl script ,which runs for AODV, DSR and DSDV but it cannot work for Temporally Ordered Routing Algorithm(TORA), that is my problem. there is no syntax errors . when i run the tcl script as

$ns tora1.tcl it gives the following message

num_nodes is set 3
warninglease use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListhead
channel.cc:sendUp-Calc highestAntennaZ_ and distCST_
highestAntennaZ_ =1.5, distCST_ =550.0
SORTING LISTS...DONE

please help me what is the probelm?

Regarding
***************
N.VENKATADRI
RESEARCH SCHOLAR
DEPARTMENT OF COMPUTER SCIENCE, V.S.UNIVERSITY,NELLORE,AP-INDIA
 
Old 10-01-2012, 02:00 PM   #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
This one : http://ipsit.bu.edu/sc546/sc546Fall2...files/tora.tcl
> tora.tcl
from http://ipsit.bu.edu/sc546/sc546Fall2...1/course2.html
( http://ipsit.bu.edu/sc546/sc546Fall2...0211/news.html , other examples)
... is not stopping too : $ ns tora.tcl ,
but is creating 1_out.nam 52kB , 1_out.tr 56kB.
The command $ 'nam 1_out.nam' shows a nice simulation. (Push the play button.)

Same result in ns-2.30, ns-2.34 with the Erlender suggested tora.cc, tora.h.

.
 
Old 10-01-2012, 11:43 PM   #9
venkatadri
LQ Newbie
 
Registered: Aug 2011
Posts: 26
Blog Entries: 3

Rep: Reputation: Disabled
reply to knudfl

hello knudfl,

your reply helps me lot thank u so much. i hearty thankful to u

but
when running tora as
$ns tora1.tcl it gives the following message

num_nodes is set 3
warninglease use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListhead
channel.cc:sendUp-Calc highestAntennaZ_ and distCST_
highestAntennaZ_ =1.5, distCST_ =550.0
SORTING LISTS...DONE

i did not get prompt automatically, i get by typing control+z? what is this problem? why prompt not ready

and one more request is how to run trace file for tora script, please explain in detail for any script(xgraph)


please help


Regarding
***************
N.VENKATADRI
RESEARCH SCHOLAR
DEPARTMENT OF COMPUTER SCIENCE, V.S.UNIVERSITY,NELLORE,AP-INDIA
 
Old 10-02-2012, 06:36 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
# 9 : May be you should attach tora1.tcl as tora1.tcl.txt.
Or provide a direct download link for the file.
I.e. you cannot expect any comments / answers about an unknown file.


I did look into the file linked in post # 8,
but I can't see what's preventing it from finishing.

.
 
Old 10-03-2012, 07:04 PM   #11
venkatadri
LQ Newbie
 
Registered: Aug 2011
Posts: 26
Blog Entries: 3

Rep: Reputation: Disabled
hey knudfl,
you sent a tora.tcl file in post #8, It is executed as

$ns tora.tcl it gives some warning messages and doesnot stop but
$nam 1_out.nam Gives Animation Ok. How we can get result of the simulation using xgraph utility that is my question


The Same code worked fine for DSDV,AODV and DSR and also gives simulation results in the form of graphs also

why cannot it is not workded for tora.


Here it the link for tora script

http://ipsit.bu.edu/sc546/sc546Fall2...files/tora.tcl


for the above tora script you said that 1_out.nam and 1_out.tr are created

1_out.nam can be executed as $nam 1_out.nam will give simulation animation BUT HOW CAN WE RUN 1_OUT.TR FOR DISPLAING GRAPH ?

THANK YOU ;
PLEASE HELP ME
*********************

N.VENKATADRI
 
Old 10-05-2012, 12:29 AM   #12
venkatadri
LQ Newbie
 
Registered: Aug 2011
Posts: 26
Blog Entries: 3

Rep: Reputation: Disabled
hai knudfl,

thank you very much for your valuable help in the simulation of TORA routing algorithm using ns-allinone-2.34
you told me that run $nam 1_out.nam will run smoothly
; OK it is fine it gives simulation scenario thats ok
but when running $xgraph win.tr was give an error

PROBLEMS WITH INPUT DATA

please help me soling this problem

thank you

Regrads
****************

N.VENKATDRI, RESEARCH SCHOLAR
 
Old 10-05-2012, 03:28 AM   #13
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
# 12. Unknown file : win.tr

Generally : Google .. filter ns2 trace files ..
http://mohittahiliani.blogspot.dk/20...n-ns-2_06.html
http://www.unix.com/shell-programmin...ough-grep.html
http://stackoverflow.com/questions/4...-on-trace-file
http://sourceforge.net/projects/trace-analyzer/develop

.
 
Old 10-05-2012, 08:38 AM   #14
venkatadri
LQ Newbie
 
Registered: Aug 2011
Posts: 26
Blog Entries: 3

Rep: Reputation: Disabled
tracefile contains no data for tora protocol-knufdl

hai knudfl,

i have a tcl script simple.tcl it is successfully run for AODV, DSDV, AND DSR and also for TORA with ur help,

in the tcl script win.tr and win.nam files were created , win.nam runs for AODV,DSR AND DSDV and aslo for TORA
but win.tr is workded for AODV,DSR AND DSDV BUT FOR TORA.
when i run win.tr for TORA it shows error "PROBLEMS WIHT INPUT DATA"
what is the problem
please thank u
regards
***************8
N.venkatadri
 
  


Reply

Tags
ns2, tora


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



LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

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