Hi,

There are several ways to compute throughput. If you use TCP, the
simplest way is to measure the sequence number and divide it by
simulation time. You add the following into your simulation script

...
$ns at 10.0 "$ftp stop"
$ns at 10.1 "puts "puts \"The final TCP sequence number is [$tcp set
$t_seqno_]\""
$ns at 10.2 "$ns halt"

Then, you can compute the number of transmitted packets in 10.0 second
simulation time.


Cheers,
Teerawat




On 8/31/2007, "JEHD MAHDI" <[EMAIL PROTECTED]> wrote:

>
>
>Hi there, is there any universal way to calculate packets throughput  and 
>delay with or without use of certain scripts, i've tried a couple of scripts 
>for this purpose but they don't seem to work....!!
>
>
>J Mahdi
>Newcastle Upon Tyne
>**********************
>
>
>_________________________________________________________________
>Get free emoticon packs and customisation from Windows Live.
>http://www.pimpmylive.co.uk
>

Reply via email to