Discussion:
Seed Manager in NS3
Priyanka Wania
2018-12-07 22:35:49 UTC
Permalink
Hi,

I am new to NS3 and I am struggling my way through basics.

As far as I have read the documentation for NS3, I understood this that
Seed is the Defines multiple simulations if you enable it.
I am just not sure how it works because in some algorithms seed value is
21453 and in some it is just 5?
Does this mean that there are 21453 simulations when we execute it?

What is the difference if I run the simulation with seed as 5 and seed as
21453, because I see none?


Thank you
--
*Regards,*
Priyanka Wania
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Anny Caroline
2018-12-07 23:01:05 UTC
Permalink
You already saw this link:
https://www.nsnam.org/docs/manual/html/random-variables.html ?

Em sexta-feira, 7 de dezembro de 2018 20:36:08 UTC-2, Priyanka Wania
Post by Priyanka Wania
Hi,
I am new to NS3 and I am struggling my way through basics.
As far as I have read the documentation for NS3, I understood this that
Seed is the Defines multiple simulations if you enable it.
I am just not sure how it works because in some algorithms seed value is
21453 and in some it is just 5?
Does this mean that there are 21453 simulations when we execute it?
What is the difference if I run the simulation with seed as 5 and seed as
21453, because I see none?
Thank you
--
*Regards,*
Priyanka Wania
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Tom Henderson
2018-12-07 23:02:04 UTC
Permalink
Post by Priyanka Wania
Hi,
I am new to NS3 and I am struggling my way through basics.
As far as I have read the documentation for NS3, I understood this that
Seed is the Defines multiple simulations if you enable it.
I am just not sure how it works because in some algorithms seed value is
21453 and in some it is just 5?
 Does this mean that there are 21453 simulations when we execute it?
What is the difference if I run the simulation with seed as 5 and seed
as 21453, because I see none?
If you see no output difference, it means that your simulation output

does not depend on the values of random variables.



Please read the manual chapter on this; there is a lengthy explanation:

https://www.nsnam.org/docs/release/3.29/manual/singlehtml/index.html#document-random-variables



You can try a simple example for yourself, then. Try:



./waf --run 'sample-random-variable'



it should output 0.816532



Now try:



./waf --run 'sample-random-variable --RngRun=2'



and it will output a different value.
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Priyanka Wania
2018-12-07 23:32:31 UTC
Permalink
I am changing the seed values for aodv dsr and dsdv algorithms. but I don't
see any changes. The links you guys have mentioned are helpful though!
Thank you so much!
Post by Tom Henderson
Post by Priyanka Wania
Hi,
I am new to NS3 and I am struggling my way through basics.
As far as I have read the documentation for NS3, I understood this that
Seed is the Defines multiple simulations if you enable it.
I am just not sure how it works because in some algorithms seed value is
21453 and in some it is just 5?
Does this mean that there are 21453 simulations when we execute it?
What is the difference if I run the simulation with seed as 5 and seed
as 21453, because I see none?
If you see no output difference, it means that your simulation output
does not depend on the values of random variables.
https://www.nsnam.org/docs/release/3.29/manual/singlehtml/index.html#document-random-variables
./waf --run 'sample-random-variable'
it should output 0.816532
./waf --run 'sample-random-variable --RngRun=2'
and it will output a different value.
--
Posting to this group should follow these guidelines
https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups
"ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
--
*Regards,*
Priyanka Wania
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Loading...