[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Random flows
Use random variables and draw the start and stop times, ex :
set U [new RandomVariable/Uniform]
$ns at [$U value] "$src start"
and so on with other parameters...
> Hi all !
> I have a problem to simulate a network. I would like to simulate a network
> with TCP/FTP and RTP or UDP flows, but the constraint i have is that I HAVE
> TO simulate non-deterministic flows : with that, I mean that I want to have
> flows which can start at random times, finish at random times, and which
> have random parameters ( different number of packets for two TCP/FTP
> sources, different max_pkts, etc...) I've seen that we can have heuristic
> flows, but I don't know how to use that.
> For example, in the following code, HOWand WHERE can I specify the heuristic
> behavior ?
>