[Click] Randomness in NSClick

Sascha Alexander Jopen jopen at informatik.uni-bonn.de
Mon Jan 23 10:00:49 EST 2012


Hey,

Until now, i initialized the click random number generator for each NS3 
Click node with a static seed (for reproducibility) from within a click 
element with high priority configure_phase.
Since NS3 supports setting the seed and run number for all of its RNGs, 
it would be nice for NSClick to use this information as well.

A simple approach would be using write handlers of some element from 
within NS3 to set the seeds. But all elements which use random numbers 
at configuration or initialization time would not use the seeded RNG 
this way.
Another approach would be another simclick_sim_command enhancement, to 
get a random number from RNGs from NS3.

Having an interface to the simulators RNGs in some way is mandatory, i 
think.

Any opinions or solutions?

Sascha


More information about the click mailing list