Sascha Alexander Jopen | 9 Jul 2012 12:13
Picon
Favicon

Randomness in NSClick

Hey,

Sometime ago i proposed a connection of the random number generators
provided by ns3 with the click_random() call, see
http://www.mail-archive.com/click <at> amsterdam.lcs.mit.edu/msg05657.html

The attached patches implement a new simclick command to retrieve a
random number from the simulator. The first call of click_random checks
for support of the new command by the simulator. Until now there is no
fallback in case of lack of random number support by the simulator. This
is needed for ns2 functionality as long as this command is not
implemented in ns2.

For now i use a single ns3::UniformVariable to draw random numbers from.
This corresponds to the old behaviour of click_random(). It is easily
possible to change this to one ns3::UniformVariable per click instance.
I have no clue, if this is statistically relevant.

click-ns3-rng.diff adds support on the click side, while
ns3-nsclick-rng.diff is for ns3 side. Both are diffs against current
git/mercurial tips.

Maybe someone can test and comment on this?

Regards,
Sascha
diff --git a/include/click/glue.hh b/include/click/glue.hh
index a908496..eed522b 100644
(Continue reading)

Lalith Suresh | 13 Jul 2012 11:11
Picon
Gravatar

Re: Randomness in NSClick

Hi Sascha,

On Mon, Jul 9, 2012 at 12:13 PM, Sascha Alexander Jopen
<jopen <at> informatik.uni-bonn.de> wrote:
> Hey,
>
> Sometime ago i proposed a connection of the random number generators
> provided by ns3 with the click_random() call, see
> http://www.mail-archive.com/click <at> amsterdam.lcs.mit.edu/msg05657.html
>
> The attached patches implement a new simclick command to retrieve a
> random number from the simulator. The first call of click_random checks
> for support of the new command by the simulator. Until now there is no
> fallback in case of lack of random number support by the simulator. This
> is needed for ns2 functionality as long as this command is not
> implemented in ns2.
>
> For now i use a single ns3::UniformVariable to draw random numbers from.
> This corresponds to the old behaviour of click_random(). It is easily
> possible to change this to one ns3::UniformVariable per click instance.
> I have no clue, if this is statistically relevant.
>
>
> click-ns3-rng.diff adds support on the click side, while
> ns3-nsclick-rng.diff is for ns3 side. Both are diffs against current
> git/mercurial tips.
>
> Maybe someone can test and comment on this?
>

(Continue reading)


Gmane