[ns] Need help to calculate throughput....
MURSHEDM at uiu.edu
Wed Jun 22 16:25:38 PDT 2005
I need some help to draw a throughput curve using gnuplot, awk, perl =
etc...I have two files th.tr and th2.tr. by ns-2 tracing. The contents =
of the files are (time bytes_received) at same interval. I need to draw
= a combined throughput in the same graph. I need some code to add the =
bytes recived from the two files and put it at my draw file. Is it =
possible. Please let me know at murshedm at uiu.edu . For the curve for two
= flow I used the following code and it works perfectly. All I need is
to = add the average or combimed throughput in the drawing.
set t [open thro w]
puts $t "TitleText: Throughput"
puts $t "Device: Postscript"
exec touch th.tw th2.tw
puts $t \"tcp_sink1
exec cat th.tw >@ $t
puts $t \n\"tcp_sink2
exec cat th2.tw >@ $t
exec xgraph -bb -tk -x time -y throughput thro
ex (format of th.tw: 0.5 0.49984000000000001=20
More information about the Ns-users