now..is it not possible to covert these out.tr and other trace file as z_mac output into nam or xgraph files....
|
m reading them but some things are not understandable......and can you please help me to run s-mac in ns....s-mac files are given in ns2.26/mac folder....we need tcl script for that??
|
i got Mytest.tcl for s-mac.. fromm
http://www.isi.edu/ilense/software/smac/ns2_energy.html but the rror is..... root@priyanka-Aspire-5745:/usr/local/ns-allinone-2.26/ns-2.26/smacTCL# ./ns-smac smac.tcl num_nodes is set 2 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl (_o20 cmd line 1) invoked from within "_o20 cmd trace-target _o27" invoked from within "catch "$self cmd $args" ret" (procedure "_o20" line 2) (SplitObject unknown line 2) invoked from within "$mac trace-target $rcvT" (procedure "_o15" line 134) (Node/MobileNode add-interface line 134) invoked from within "$node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ $inerrProc_ $outerrProc_ $FECProc_" (procedure "_o3" line 64) (Simulator create-wireless-node line 64) invoked from within "_o3 create-wireless-node" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 14) (Simulator node line 14) invoked from within "$ns_ node" ("for" body line 2) invoked from within "for {set i 0} {$i < $opt(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion }" (file "smac.tcl" line thanks for the help!! |
in building ns..what is the reason for this error???
============================================================ * Build ns-2.26 ============================================================ cd: 399: can't cd to ./ns-2.26 ./install: 400: ./configure: not found Ns configuration failed! Exiting ... Please check http://www.isi.edu/nsnam/ns/ns-problems.html for common problems and bug fixes. |
again for z-mac....at...1. http://www4.ncsu.edu/~rhee/export/zm.../zmac/zmac.htm..
given a python script .. getZMACInput.python...to convert into .drand and .color but when i m using it..it is not working...as.. error 1..if i use as per instructions on 1.. root@priyanka-Aspire-5745:/usr/local/ns-allinone-2.26/ns-2.26/python# python getZMACInput.py new-scen-21-120-120 30 0 Usage: <ns topology file> <MAX_NBR> <use local framing 0/1> error 2...if i see inside the script and use it.. root@priyanka-Aspire-5745:/usr/local/ns-allinone-2.26/ns-2.26/python# python getZMACInput.py simple.tr new-scen-21-120-120 30 0 Traceback (most recent call last): File "getZMACInput.py", line 26, in <module> nsOutFile = open(sys.argv[1] + '.out', 'r') IOError: [Errno 2] No such file or directory: 'simple.tr.out' i think some changes are need to be done in the script..i dnt know python..please help... |
sorry for inconvience..it is done.....#65....but ..whai is the use of output of drand at this...no use na??...
|
# 66
Quote:
1) the used command(s) 2) the "new-scen-N-X-Y" file. 3) and the result. |
...i got it sir...the python script is the 2nd way to allocate slot for Z-mac input...and the 1st one is DRAND....but the trace files are different for both...
i have used insructions as given on...#65 root@priyanka-Aspire-5745:/usr/local/ns-allinone-2.26/ns-2.26/python# ls getZMACInput.py new-scen-21-120-120.maxcolor simple.tr new-scen-100-300-300 new-scen-21-120-120.out new-scen-21-120-120.drand new-scen-6-60-60.out root@priyanka-Aspire-5745:/usr/local/ns-allinone-2.26/ns-2.26/python# python getZMACInput.py new-scen-6-60-60 30 0 root@priyanka-Aspire-5745:/usr/local/ns-allinone-2.26/ns-2.26/python# ls getZMACInput.py new-scen-21-120-120.drand new-scen-21-120-120.out new-scen-6-60-60.maxcolor simple.tr new-scen-100-300-300 new-scen-21-120-120.maxcolor new-scen-6-60-60.drand new-scen-6-60-60.out root@priyanka-Aspire-5745:/usr/local/ns-allinone-2.26/ns-2.26/python# this is all!! |
now please help me to analyse the o/p file above....i.e .drand and .maxcolor.....and finally the zmac o/p file...and how would i plot xgraph for that with analysis???..i want to plot for throughput and some delay parametres!!!!
any file required can be provided!!!! |
thanks in advance..
any good link or tutorial to plot xgraph from trace files...??? |
Moved: This thread is more suitable in Linux Sftware and has been moved accordingly to help your thread/question get the exposure it deserves.
|
# 70
Well,I guess you will have to find (or write) an awk or perl script, that can filter the trace file into a file that xgraph will plot. Example http://hpds.ee.ncku.edu.tw/~smallko/...oc_routing.htm ( awk -f <awkscript> <out.tr> Awk scripts and more examples https://docs.google.com/open?id=0B7S...GxVZjJRSGdPeU0 About trace files ... http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats http://www.ns2ultimate.com/post/2496...s2-trace-trace . |
Quote:
|
Post # 73, @guo : Welcome to LQ.
Please see posts #46 - #47. |
Quote:
|
All times are GMT -5. The time now is 12:07 PM. |