Hi!

On Mon, 17 Aug 2009, sivagami amirthalingam wrote:

> Hello all,

> I want to analyze the performance of the CTP protocol using the 
> parameter like PRR and no. of packets forwarded by each node.
> I am using TOSSIM simulator and 9 node grid topology. I counted no of 
> packets forwarded in the forward event of Intercept interface. The 
> simulator gives different output each time it is simulated . I am not 
> changing any of the parameters. But each time, it gives different count. 
> Any one can help in this ? Is the simulator behaviour like this? If so, 
> what values we can take for the analysis??
>

You can make TOSSIM deterministic by using the randomSeed function. 
Here is an example:

   t = Tossim([])
   t.randomSeed(0)  # arbitrary seed

If the simulation script is using some random function from Python you 
also need to make sure you set the seed for that. A thread that talks 
about this is this one:

   
https://www.millennium.berkeley.edu/pipermail/tinyos-help/2009-July/thread.html#41314

All the best!
Razvan ME
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to