[Mini-NDN] SLEEP_TIME in nfdc

Saurab Dulal (sdulal) sdulal at memphis.edu
Tue Apr 14 15:22:07 PDT 2020


Hi Philipp,

You are right. The node.cmd(...) waits until the execution of the called cammed, this is offered by Mininnet cmd function. nfdc command is a command interest, it waits for a callback so it should not complete before the actual configuration finishes. Having said that, the sleep() function really doesn't seem to contribute anything -- thanks for raising this question. But, in the past, sending lots of nfdc commands in a very short duration crashed nfd, so we introduced sleep to avoid this problem. However, I am not sure if this is still a problem as many things have changed so far. I am thinking to do some tests to verify this. Until then, you can adjust accordingly for your experiments and let us know if you observe anything.

Regards,
Saurab Dulal
________________________________
From: Philipp Moll <philipp.moll at itec.aau.at>
Sent: Friday, April 10, 2020 9:48 AM
To: Saurab Dulal (sdulal) <sdulal at memphis.edu>; mini-ndn at lists.cs.ucla.edu <mini-ndn at lists.cs.ucla.edu>
Subject: Re: [Mini-NDN] SLEEP_TIME in nfdc


Hi Saurab,


thanks for your response. I thought that the node.cmd(...) call waits until the execution of the called command is finished. Or is the nfdc-command finishing before the actual configuration of NFD happened?


Thanks
Philipp


On 4/9/20 5:05 PM, Saurab Dulal (sdulal) wrote:
Hi Philipp,

The sleep time is just to make sure the completion of nfdc command. You can definitely configure to make it small, depending on how fast your machine is to process the command.

Regards,
Saurab Dulal


________________________________
From: Mini-NDN <mini-ndn-bounces at lists.cs.ucla.edu><mailto:mini-ndn-bounces at lists.cs.ucla.edu> on behalf of Philipp Moll <philipp.moll at itec.aau.at><mailto:philipp.moll at itec.aau.at>
Sent: Thursday, April 9, 2020 11:16 AM
To: mini-ndn at lists.cs.ucla.edu<mailto:mini-ndn at lists.cs.ucla.edu> <mini-ndn at lists.cs.ucla.edu><mailto:mini-ndn at lists.cs.ucla.edu>
Subject: [Mini-NDN] SLEEP_TIME in nfdc

Hi everyone,

I was just looking for a way to speed-up the NDNRoutingHelper of
MiniNDN. While doing this, I found that MiniNDN sleeps after every
nfdc-command for 200ms (e.g.:
https://github.com/named-data/mini-ndn/blob/f48424a4a7d0fe5799a7adf7387490e26bdaae51/minindn/helpers/nfdc.py#L69).
I was curious what would happen if I reduce the sleep time to zero, and
everything still seems to work.

Is there any reason for the 200ms sleep after every nfdc command?

Thanks,
Philipp

_______________________________________________
Mini-NDN mailing list
Mini-NDN at lists.cs.ucla.edu<mailto:Mini-NDN at lists.cs.ucla.edu>
http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20200414/2dac59fd/attachment.html>


More information about the Mini-NDN mailing list