LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (http://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   NS-2 (http://www.linuxquestions.org/questions/linux-wireless-networking-41/ns-2-a-4175416952/)

amrani 07-16-2012 07:57 AM

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

knudfl 07-16-2012 10:09 AM

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'.

.

venkatadri 07-17-2012 01:07 AM

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

knudfl 07-17-2012 03:02 AM

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

.

venkatadri 10-01-2012 02:28 AM

when i execute tora.tcl it hangs and gives the following message
num_nodes is set 3
warning:please 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

knudfl 10-01-2012 03:54 AM

Post # 5

Which "tora.tcl" is it about ?

And how did you run the file ? $ ns tora.tcl ?

venkatadri 10-01-2012 12:50 PM

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

knudfl 10-01-2012 03:00 PM

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.

.

venkatadri 10-02-2012 12:43 AM

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

knudfl 10-02-2012 07:36 AM

# 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.

.

venkatadri 10-03-2012 08:04 PM

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

venkatadri 10-05-2012 01:29 AM

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

knudfl 10-05-2012 04:28 AM

# 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

.

venkatadri 10-05-2012 09:38 AM

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


All times are GMT -5. The time now is 05:18 AM.