[Ns-bugs] [Bug 388] document how to apply fuzz to models

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Sat Jan 10 23:06:40 PST 2009


http://www.nsnam.org/bugzilla/show_bug.cgi?id=388





--- Comment #5 from Mathieu Lacage <mathieu.lacage at sophia.inria.fr>  2009-01-11 02:06:40 EDT ---
(In reply to comment #4)

> I was thinking, maybe move timer.cc,h to src/core and add
> 
> Timer::SetFuzz (RandomVariable var);

you can't move it to core because it depends on the simulator API and core does
not depend on simulator: it is the other way around.

> 
> plus, a documented suggestion for users to know how to insert fuzz time between
> function calls, such as e.g.
>   Simulator::Schedule (UniformVariable::GetSingleValue (),
>                        &function, this, arg1, arg2, ...);

ok.

> 
> (or whatever UniformVariable::GetSingleValue () equivalent is with the new
> random variable API).  
> 
> Application::Start () and application containers could have starting time fuzz
> too, like you suggest.


My point, though, is that most other timers are synchronized on the first data
packet going down the stack due to some implementation details so, if you do
the application-level fuzz, you will get 90% of the solution in the current
codebase. i.e., it's a cheap way to make decent progress.


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Ns-bugs mailing list