[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Dynamic varying the transfer rate of CBR.
Don Lee wrote:
> Hi
>
> Can ns dynamically varies or changes CBR rates in a simulation.
>
> Say the length of simulation is 100s, and I want from 0 - 50s CBR rate_ 500k.
> Then at 51 - 100s CBR rate_ 1M.
>
> Is it possible?
Yes, you have to schedule a rate change at time 50.0. Use:
$ns at 50.0 "$cbr set rate_ 1M"
(assuming that you initialized your CBR agent with $cbr set rate_ 500K.)
-- Felix Hernandez