[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] Throughput calculation



what are stop_time and start_time? Are they variables defined in your script, 
externally from the "finish" proc? If so you have to make them visible. Also 
there is a typo : missing "]".


Tarik.

>Date: Mon, 18 Sep 2000 11:54:29 +0000 (GMT)
>From: Hafida Fouta <[email protected]>
>To: [email protected]
>Subject: [ns] Throughput calculation
>MIME-Version: 1.0
>
>Dear all,
>I have a problem on finding a throughput in ns network.
>I used this piece of code in the finish() procedure
>
>set nbytes [$tcp_s1  set ack_]
>set time [expr $stop_time - $start_time
>set thruput [expr $nbytes * $pktsize * 8 / $time ]
> puts " throughput = $thruput"             
>
>but i got an error message saying that 
>start_time and stop_time are not recognized
>
>Can any one of you help me in this problem?
>
>thanx in advance

Tarik Alj

INRS-Telecommunications
Place Bonaventure
900 De La Gauchetierre Ouest
Niveau C, Case Postale 644
Montreal, Qc, H5A 1C6
Canada

514 875-1266 #2036 (email preferred)