[ns] create randomness with cbr traffic

Marek Laskowski mlaskows at EE.UManitoba.CA
Fri Jan 23 12:03:27 PST 2004


You might also try using

$your_cbr_name set random_ 1 
which adds jitter in the departure times of cbr traffic

and something like:

set randDelay [new RandomVariable/Uniform]
$randDelay set min_ 1
$randDelay set max_ 5
...
$ns_ at [$randDelay value] "$your_cbr_name start"

to start all your sources at a different time

All these things will add randomness to your simulation.

If you want to be able to reproduce your simulations after set the seed (as 
below) to be some arbitrary number, and change it every time you run the 
simulation.


----------- Original Message ---------


Date: Thu, 22 Jan 2004 17:51:37 -0500
From: "Saikat Ray" <raysaikat at lycos.com>
Subject: Re: [ns] create randomness with cbr traffic
To: "Aicho SAID(ENG)" <Aicho.Said at student.shu.ac.uk>
Cc: ns-users at ISI.EDU
Message-ID: <LNKKAGBMPOKOOJAA at mailcity.com>
Content-Type: text/plain; charset=us-ascii

Add:

global defaultRNG
$defaultRNG seed 0

at the top of the script.



----------- Original Message ---------


DATE: Thu, 22 Jan 2004 13:11:52
From: "Aicho SAID(ENG)" <Aicho.Said at student.shu.ac.uk>
To: ns-users at ISI.EDU
Cc: 

>
>Hi,
>
>I am simulating an ad-hoc network and I have used cbr trafficd on udp. one 
source one destination.
>I run simulation 3 times and the results appear to be similar, how could i 
create some kind of
>randomness on the network to  make a more realistic experiment.
>
>Thanks 
>Aicha.
>
>



More information about the Ns-users mailing list