LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   z-mac installation on ns2.34 (https://www.linuxquestions.org/questions/linux-software-2/z-mac-installation-on-ns2-34-a-944856/)

arica 05-17-2012 03:25 AM

now..is it not possible to covert these out.tr and other trace file as z_mac output into nam or xgraph files....

arica 05-17-2012 03:30 AM

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??

arica 05-17-2012 05:47 AM

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!!

arica 05-17-2012 07:56 AM

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.

arica 05-17-2012 09:13 AM

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

arica 05-17-2012 09:31 AM

sorry for inconvience..it is done.....#65....but ..whai is the use of output of drand at this...no use na??...

knudfl 05-17-2012 12:10 PM

# 66
Quote:

sorry for inconvience..it is done.....#65
Please show ...
1) the used command(s)
2) the "new-scen-N-X-Y" file.
3) and the result.

arica 05-18-2012 12:22 AM

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

arica 05-18-2012 12:25 AM

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!!!!

arica 05-18-2012 12:29 AM

thanks in advance..
any good link or tutorial to plot xgraph from trace files...???

jschiwal 05-18-2012 12:44 AM

Moved: This thread is more suitable in Linux Sftware and has been moved accordingly to help your thread/question get the exposure it deserves.

knudfl 05-23-2012 04:27 AM

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

guo 07-16-2012 08:07 PM

Quote:

Originally Posted by arica (Post 4679520)
and if with ns...

root@priyanka-Aspire-5745:/usr/local/ns-allinone-2.26/ns-2.26/drandTcl# ns simple-wireless.tcl 3 wirelessOpt.tcl
num_nodes is set 3
ns: Mac/802_11 set ether_hdr_len_: can't read "ether_hdr_len_": no such variable
(Object set line 1)
invoked from within
"Mac/802_11 set ether_hdr_len_"

could you tell me how to work it out?

knudfl 07-17-2012 02:30 AM

Post # 73, @guo : Welcome to LQ.

Please see posts #46 - #47.

guo 07-17-2012 05:47 AM

Quote:

Originally Posted by knudfl (Post 4730263)
Post # 73, @guo : Welcome to LQ.

Please see posts #46 - #47.

I have read all the answers above carefully,but it seems that you did not give the solution of the problem.Please tell me in detail ,and thank you,dear Knudfl.


All times are GMT -5. The time now is 12:07 PM.