[ndnSIM] About node delay
Spyridon (Spyros) Mastorakis
mastorakis at cs.ucla.edu
Tue Sep 5 16:43:31 PDT 2017
Hi,
as Junxiao mentioned already, NS-3 is a discrete event simulator, therefore every function invocation takes no simulation time.
You can introduce some delay at the application level by scheduling the Interest/Data sending events in the appropriate way. You can use the Schedule method of NS-3 to achieve that:
https://www.nsnam.org/doxygen/classns3_1_1_simulator.html#a81c1ade622b5266d81908b2a99a330d2
Hope that this helps,
Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA
> On Sep 5, 2017, at 3:19 AM, Ertugrul DOGRULUK <ertugruldogruluk at hotmail.com> wrote:
>
> Hi.
>
> Is there any special configuration for delay time of node? I’m trying to put a function that manages the delay time.
> thanks.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170905/75c14c15/attachment.html>
More information about the ndnSIM
mailing list