HI all,
Awk Programming is very easy to learn and simple to apply. Awk in NS-2 takes the trace file for analysis.
- Handles complex task such as Calculation, database Handling, Report Creation
- Each Filed is separated using Space(or Tab)
- Record is separated using New-line character.
- $1,$2,$3,$4 are used to access column.
- $awk '{print $1 $2 "---> Rs." $3 * $4}' invent.tr , here "invent.tr" be simple trace file act as input to awk to analyse . Quotes are used for printing purpose.
- To print Entire record "$0" -> $awk '{print $0}' invent.tr
- Invent.tr consist of values separated by space like 10 20 30 40 .
- Here $1 =10 , $2 =20 .........
Awk programming can be used to analyse the metrics of any network connection
- Throughput
- PDF (Packet Delivery ratio)
- Jitter
- end-to-end Delay
- NRL (Network routing Load)
The general form of an AWK program is shown below:
BEGIN {<initialization>}
<pattern1> {<actions>}
<pattern2> {<actions>}
.
.
.
END {<final actions>}
- >> awk -f filename.awk tracefilename.tr
Awk Script Downloads for NS-2
- Throughput Click Here
- Jitter: Click Here
- Packet Delivery Ratio: Click Here
- Normalized Routing Load and More AWK files can be found Here : Click Here
- Energy Calculation: Click Here
plz, how can i use information about Jitter file to draw graph ?
ReplyDeleteplz, i need to draw the graph for pdf to represent the relation between number of nodes and pdf
ReplyDeletewhen the awk file running with 50 nodes in tcl the output is : cbr s:7350 r:7005, r/s Ratio:0.9531, f:14301 now, which one of these values can be used? mail me : eng_zinabhassan@yahoo.com
thanks in advance