Re: [ns] randomizing runs

2009-09-27 Thread Teerawat Issariyakul


Hi Abu,

By default, NS2 is deterministic. If you would like to run NS2 in
randomized scenarios, you need to execute

$defaultRNG seed n

prior to $ns run, where n is an integer. If n is zero, NS2 will
use the current time and counter as a seed for random number generator.
By default, n is set to 1, meaning every run would generate the
same result. You may manually change the seed (e.g., 2, 3, 4, and so
on), or set it to zero.

I also posted the details on my blog at

http://t-issariyakul.blogspot.com/2009/09/ns2-deterministic-vs-random.html


For more information about Random Number Generators, see Chapter 12 in
the following book from Springer:

T. Issaraiyakul and E. Hossain, Introduction to Network Simulator
NS2, Springer 2008.
http://www.springer.com/engineering/signals/book/978-0-387-71759-3

You may also find the following website useful:
http://www.ece.ubc.ca/~teerawat/NS2.htm


Best Wishes,
Teerawat

On 9/18/2009, abu shahriar azmshahr...@gmail.com wrote:


Hi all,

I am in trouble with randomizing ns run by seeding defaultRNG or ns-random.
Can anyone help me about how to randomize runs? I am using a wired network
topology.

Thanks.

--Shahriar




[ns] randomizing runs

2009-09-18 Thread abu shahriar

Hi all,

I am in trouble with randomizing ns run by seeding defaultRNG or ns-random.
Can anyone help me about how to randomize runs? I am using a wired network
topology.

Thanks.

--Shahriar