[Click] Randomness in NSClick

Lalith Suresh suresh.lalith at gmail.com
Fri Jul 13 05:11:18 EDT 2012


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@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?
>

I've tested your patch, it looks fine. I can push it to ns-3-dev when
the click side gets committed.


> Regards,
> Sascha
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>



-- 
Lalith Suresh
www.lalith.in


More information about the click mailing list