[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Delay, jitter, throughtput
Hi!
|How can I calculate the throughtput of a source, the end-to-end delay or
|a packet delat, the jitter.....
|Can anyone help me???
For throughput calculation, if you are using a TCP source, you
can use the following code in your finish() routine :
set nbytes [$tcp_source set ack_]
set time [expr $stop_time - $start_time]
set thruput [expr $nbytes * $pktsize * 8 / $time ]
puts " throughput = $thruput"
For a CBR source, you need to see the trace and get the
number of packets that have made it to the destination, and use the
above calc. Or you can modify the Sink to do the same, and also
for the delay/jitter.
-Vinay.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Home : 401 Stasney, #603, Collegestation, TX 77840-1317
Work : #514A, H R Bright, Texas A&M, College Station, TX 77840-3112
Phone : Home : (979)-846-2517 Work : (979)-845-5007
Email : [email protected] Web : http://www.cs.tamu.edu/people/v0s5080
_____________________________________________________________________________