LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-17-2012, 03:25 AM   #61
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled

now..is it not possible to covert these out.tr and other trace file as z_mac output into nam or xgraph files....
 
Old 05-17-2012, 03:30 AM   #62
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
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??
 
Old 05-17-2012, 05:47 AM   #63
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
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!!
 
Old 05-17-2012, 07:56 AM   #64
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
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.
 
Old 05-17-2012, 09:13 AM   #65
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
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...
 
Old 05-17-2012, 09:31 AM   #66
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
sorry for inconvience..it is done.....#65....but ..whai is the use of output of drand at this...no use na??...
 
Old 05-17-2012, 12:10 PM   #67
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,379

Rep: Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598
# 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.
 
Old 05-18-2012, 12:22 AM   #68
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
...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!!
 
Old 05-18-2012, 12:25 AM   #69
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
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!!!!
 
Old 05-18-2012, 12:29 AM   #70
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
thanks in advance..
any good link or tutorial to plot xgraph from trace files...???
 
Old 05-18-2012, 12:44 AM   #71
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Moved: This thread is more suitable in Linux Sftware and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 05-23-2012, 04:27 AM   #72
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,379

Rep: Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598
# 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
.
 
Old 07-16-2012, 08:07 PM   #73
guo
LQ Newbie
 
Registered: Jul 2012
Posts: 10

Rep: Reputation: Disabled
Quote:
Originally Posted by arica View Post
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?
 
Old 07-17-2012, 02:30 AM   #74
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,379

Rep: Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598Reputation: 3598
Post # 73, @guo : Welcome to LQ.

Please see posts #46 - #47.
 
Old 07-17-2012, 05:47 AM   #75
guo
LQ Newbie
 
Registered: Jul 2012
Posts: 10

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
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.
 
  


Reply

Tags
drand, g++41-compat, ns2, zmac


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
NS2 S-MAC Sleep Time Query ulyssues.fam Linux - Newbie 1 11-24-2012 04:18 PM
NS2 S-MAC Protocol Sleep Time Query ulyssues.fam Linux - Newbie 0 04-14-2012 09:01 AM
ns2.29.3 installation on fedora 15 , nam installation problem Narges Linux - Networking 5 10-31-2011 11:09 AM
Need help in NS2 installation maneshmotts Ubuntu 5 09-10-2011 05:47 AM
NS2 installation eby83 Linux - Newbie 2 06-11-2007 01:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration