Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,397
Rep:
Network simulator ns2 : "Trace file" ( file.tr )
AFAIK, you can use some awk scripts, to filter the trace files,
making it possible for e.g. xgraph to handle the filtered output.
( sudo apt-get install xgraph ).
Some may be included in ns-2.xx. ( find ns-2.xx/ -name "*awk*" ).
Also suggest : Run some of the included simulations, that have a runall* script.
Example tcl/ex/wireless-scripts/ , and tcl/ex/red-pd/ .
red-pd/ runall.sh : The simulation will run for four hours. gv + gnuplot required.
when i run avgStats.awk with the command awk -f avgStats.awk avgStats.tr > avgStats.xgr in a terminal,it creates a file avgState.xgr but it's an empty file, i don't know the reason. can u help me?
how i can convert awk file into xgr file?
adel
Last edited by adel.elkabbany; 03-24-2011 at 07:57 PM.
Reason: i forget somthing.
You are mising <values>. Also : You are probably also missing a file.tr.
The awk files are filters used to convert <your-file.tr> to a format readable
by a plot application.
( Except avgStats.awk, etc.: Is for statistics only, see read.me.)
same as adel.elkabbany, i do not have any output at all
i have input in the terminal "awk -f avgStats.awk src=0 dst=1 flow=0 pkt=512 694demo.tr > stats.out"
here is my traffic scenario and movement:
$node_(0) set X_ 60.887691232990
$node_(0) set Y_ 468.338850695752
$node_(0) set Z_ 0.000000000000
$node_(1) set X_ 59.887691232990
$node_(1) set Y_ 468.338850695752
$node_(1) set Z_ 0.000000000000
$god_ set-dist 0 1 16777215
$ns_ at 2.000000000000 "$node_(0) setdest 465.161166257114 404.493073067758 0.132122982638"
$ns_ at 2.000000000000 "$node_(1) setdest 465.068875749206 404.508644879283 1.584571194274"
$ns_ at 188.869624289405 "$node_(1) setdest 443.068875749206 638.508644879283 0.000000000000"
$ns_ at 190.869624289405 "$node_(1) setdest 23.592571932183 257.567439254845 0.289996528141"
set udp_(0) [new Agent/UDP]
$ns_ attach-agent $node_(0) $udp_(0)
set null_(0) [new Agent/Null]
$ns_ attach-agent $node_(1) $null_(0)
set cbr_(0) [new Application/Traffic/CBR]
$cbr_(0) set packetSize_ 512
$cbr_(0) set interval_ 4.0
$cbr_(0) set random_ 1
$cbr_(0) set maxpkts_ 10000
$cbr_(0) attach-agent $udp_(0)
$ns_ connect $udp_(0) $null_(0)
$ns_ at 1.6686187217331572 "$cbr_(0) start"
it mention statictics, but i sld at least have a value coz i transmitted some stuff. am i correct?sldnt be value 0, did i input something wrongly? i need to know the stats so that i can plot.
when i run avgStats.awk with the command awk -f avgStats.awk avgStats.tr > avgStats.xgr in a terminal,it creates a file avgState.xgr but it's an empty file, i don't know the reason. can u help me?
how i can convert awk file into xgr file?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.