[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Problem - Throughput greater than link bandwith
At 23.23 03/09/2001 +0200, you wrote:
>Hi NS users,
>
>I have modified the script sat_repeater.tcl that comes with NS.
.....
>Now I try to explain my problem with an example:
>
>ns script_name.tcl 0 2
>
>so the error rate is 0.0 and I have 2 TCP agents and so on ... and a
>bandwith of 2 Mb/s (or at least I think) .
>
>The awk script gives me a value of about 3.5 (Mb/s I think). How is it
>possible?
........
My little observation:
(some lines taken from the script and continuing the example)
set NN [lindex $argv 1] --> so in $NN there's the value 2
set bw [expr $NN*1e6] --> so in $bw there's the value 2 000 000
....
set opt(bw_up) bw; # Uplink bandwidth-- becomes downlink bw also
---> so the bandwith would be 2 Mb/s
but it is not so because I have tried in the same script the following line:
set opt(bw_up) 2 Mb;
and now the awk script gives me a value < 2 Mb/s
So in the first case, what is the actual value of bandwith?
Thanks in advance,
Giuseppe Tringali