<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Philipp, </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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 <span style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">let
 us know if you observe anything.</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Saurab Dulal</div>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Philipp Moll <philipp.moll@itec.aau.at><br>
<b>Sent:</b> Friday, April 10, 2020 9:48 AM<br>
<b>To:</b> Saurab Dulal (sdulal) <sdulal@memphis.edu>; mini-ndn@lists.cs.ucla.edu <mini-ndn@lists.cs.ucla.edu><br>
<b>Subject:</b> Re: [Mini-NDN] SLEEP_TIME in nfdc</font>
<div> </div>
</div>
<div>
<p>Hi Saurab,</p>
<p><br>
</p>
<p>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?</p>
<p><br>
</p>
<p>Thanks<br>
Philipp</p>
<p><br>
</p>
<div class="x_moz-cite-prefix">On 4/9/20 5:05 PM, Saurab Dulal (sdulal) wrote:<br>
</div>
<blockquote type="cite"><style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi Philipp,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
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. </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Regards,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Saurab Dulal</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div>
<div id="x_Signature">
<div id="x_divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Mini-NDN
<a class="x_moz-txt-link-rfc2396E" href="mailto:mini-ndn-bounces@lists.cs.ucla.edu">
<mini-ndn-bounces@lists.cs.ucla.edu></a> on behalf of Philipp Moll <a class="x_moz-txt-link-rfc2396E" href="mailto:philipp.moll@itec.aau.at">
<philipp.moll@itec.aau.at></a><br>
<b>Sent:</b> Thursday, April 9, 2020 11:16 AM<br>
<b>To:</b> <a class="x_moz-txt-link-abbreviated" href="mailto:mini-ndn@lists.cs.ucla.edu">
mini-ndn@lists.cs.ucla.edu</a> <a class="x_moz-txt-link-rfc2396E" href="mailto:mini-ndn@lists.cs.ucla.edu">
<mini-ndn@lists.cs.ucla.edu></a><br>
<b>Subject:</b> [Mini-NDN] SLEEP_TIME in nfdc</font>
<div> </div>
</div>
<div class="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_PlainText">Hi everyone,<br>
<br>
I was just looking for a way to speed-up the NDNRoutingHelper of <br>
MiniNDN. While doing this, I found that MiniNDN sleeps after every <br>
nfdc-command for 200ms (e.g.: <br>
<a href="https://github.com/named-data/mini-ndn/blob/f48424a4a7d0fe5799a7adf7387490e26bdaae51/minindn/helpers/nfdc.py#L69">https://github.com/named-data/mini-ndn/blob/f48424a4a7d0fe5799a7adf7387490e26bdaae51/minindn/helpers/nfdc.py#L69</a>).
<br>
I was curious what would happen if I reduce the sleep time to zero, and <br>
everything still seems to work.<br>
<br>
Is there any reason for the 200ms sleep after every nfdc command?<br>
<br>
Thanks,<br>
Philipp<br>
<br>
_______________________________________________<br>
Mini-NDN mailing list<br>
<a class="x_moz-txt-link-abbreviated" href="mailto:Mini-NDN@lists.cs.ucla.edu">Mini-NDN@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn">http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn</a><br>
<br>
</div>
</span></font></div>
</blockquote>
</div>
</body>
</html>