<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<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);">
Hi Jaicheng, </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);">
Mini-NDN is an emulator toot, not a simulator. It runs real instances of NDN packages i.e. nfd, nlsr, sync and so on. So, it won't run faster than the real instances, give and take a few milliseconds. There is a limit on how faster you can add prefix to the
 current nfd (see the Redmine issues referenced below). If you want to simulate your experiments, you can use ndnSIM (<a href="https://ndnsim.net/current/" id="LPlnk">https://ndnsim.net/current/</a>). </div>
<div>
<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);">
Mini-NDN uses nfdc wrapper to add prefixes <a href="https://github.com/named-data/mini-ndn/blob/master/minindn/helpers/nfdc.py" id="LPlnk">https://github.com/named-data/mini-ndn/blob/master/minindn/helpers/nfdc.py</a>. </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 can increase the sleep time here: <a href="https://github.com/named-data/mini-ndn/blob/master/minindn/helpers/nfdc.py#L27" id="LPlnk">https://github.com/named-data/mini-ndn/blob/master/minindn/helpers/nfdc.py#L27</a>. But this will slow down your experiment
 by the multiple of sleep time and prefix count. <br>
</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview_1 _EReadonly_1"></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);">
Saurab,</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> JIACHENG HOU <houdemi@outlook.com><br>
<b>Sent:</b> Wednesday, January 13, 2021 4:22 PM<br>
<b>To:</b> Saurab Dulal (sdulal) <sdulal@memphis.edu><br>
<b>Subject:</b> Re: Cannot add FIB entry /localhost/nfd (10060 request timed out)</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:DengXian}
@font-face
        {font-family:Calibri}
@font-face
        {}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
        {color:blue;
        text-decoration:underline}
p.x_xmsonormal, li.x_xmsonormal, div.x_xmsonormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
span.x_EmailStyle20
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-CA" link="blue" vlink="purple">
<div class="x_WordSection1">
<p class="x_MsoNormal">Hi Sdulal,</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Thanks for your reply.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">I'm still confused, I'm speeding up the simulation time based on intercepting the system's calls to the current date and time. According to my understanding, all programs in Mini-NDN run faster than real-time. However, I always get the
 error message "Cannot add FIB entry/localhost/nfd(10060 request timed out)". Is it possible that nfd is not running faster?</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Furthermore, which function is used to register prefixes in Mini-NDN? Should I add a delay time in the following Face::registerPrefix function in ndn-cxx/face.cpp?
</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">RegisteredPrefixHandle</p>
<p class="x_MsoNormal">Face::registerPrefix(const Name& prefix,</p>
<p class="x_MsoNormal">                     const RegisterPrefixSuccessCallback& onSuccess,</p>
<p class="x_MsoNormal">                     const RegisterPrefixFailureCallback& onFailure,</p>
<p class="x_MsoNormal">                     const security::SigningInfo& signingInfo,</p>
<p class="x_MsoNormal">                     uint64_t flags)</p>
<p class="x_MsoNormal">{</p>
<p class="x_MsoNormal">  <b><span style="color:black">std::this_thread::sleep_for (std::chrono::seconds(2)); // add delay time</span></b></p>
<p class="x_MsoNormal">  nfd::CommandOptions options;</p>
<p class="x_MsoNormal">  options.setSigningInfo(signingInfo);</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">  auto id = m_impl->registerPrefix(prefix, onSuccess, onFailure, flags, options, nullopt, nullptr);</p>
<p class="x_MsoNormal">  return RegisteredPrefixHandle(m_impl, id);</p>
<p class="x_MsoNormal">}</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Sorry to ask such a silly question. Thank you very much for your help!</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Best wishes,</p>
<p class="x_MsoNormal">Jiacheng</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> </p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal"><b><span style="font-size:12.0pt; color:black">From: </span>
</b><span style="font-size:12.0pt; color:black">"Saurab Dulal (sdulal)" <sdulal@memphis.edu><br>
<b>Date: </b>Tuesday, January 12, 2021 at 9:41 PM<br>
<b>To: </b>"mini-ndn@lists.cs.ucla.edu" <mini-ndn@lists.cs.ucla.edu>, JIACHENG HOU <houdemi@outlook.com><br>
<b>Subject: </b>Re: Cannot add FIB entry /localhost/nfd (10060 request timed out)</span></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">You need to some delay in-between adding the prefixes to the NFD otherwise you get a request timeout. Please have a look at the issue: <a href="https://redmine.named-data.net/issues/2174">https://redmine.named-data.net/issues/2174</a>.
 Since you are adding the prefix 100 times faster, the limit is exceeded and thus you are getting the timeout. </span></p>
</div>
<div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div id="x_Signature">
<div>
<div id="x_divtagdefaultwrapper">
<p style="background:white"><span style="font-size:12.0pt; color:black">With Regards,</span></p>
<p style="background:white"><span style="font-size:12.0pt; color:black">Saurab Dulal</span></p>
</div>
</div>
</div>
</div>
<div class="x_MsoNormal" align="center" style="text-align:center">
<hr size="0" width="100%" align="center">
</div>
<div id="x_divRplyFwdMsg">
<p class="x_MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> Mini-NDN <mini-ndn-bounces@lists.cs.ucla.edu> on behalf of JIACHENG HOU via Mini-NDN <mini-ndn@lists.cs.ucla.edu><br>
<b>Sent:</b> Tuesday, January 12, 2021 3:10 PM<br>
<b>To:</b> mini-ndn@lists.cs.ucla.edu <mini-ndn@lists.cs.ucla.edu><br>
<b>Subject:</b> [Mini-NDN] Cannot add FIB entry /localhost/nfd (10060 request timed out)</span>
</p>
<div>
<p class="x_MsoNormal"> </p>
</div>
</div>
<div>
<table class="x_MsoNormalTable" border="1" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%; background:#FFEB9C; border-collapse:collapse; border:none">
<tbody>
<tr>
<td style="padding:2.25pt 2.25pt 2.25pt 2.25pt">
<p class="x_MsoNormal" align="center" style="text-align:center"><span style="color:black">CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and trust the content is safe.</span></p>
</td>
</tr>
</tbody>
</table>
<p class="x_MsoNormal"> </p>
<div>
<div>
<p class="x_xmsonormal">Hi Mini-NDN teams,</p>
<p class="x_xmsonormal"> </p>
<p class="x_xmsonormal">I am Jiacheng. I try to use libfaketime to speed up the mini-ndn simulation to faster than real-time.
</p>
<p class="x_xmsonormal"> </p>
<p class="x_xmsonormal">I try a simple topology which contains 7 nodes in Mini-NDN. When I speed up 10 times faster than real time, mini-ndn works well. However, when I speed up 100 times faster, it always shows this error message:</p>
<p class="x_xmsonormal"> </p>
<p class="x_xmsonormal">1610485895.599211 FATAL: [nfd.Main] ../daemon/mgmt/rib-manager.cpp(212): Throw in function operator()</p>
<p class="x_xmsonormal">Dynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<nfd::ManagerBase::Error> ></p>
<p class="x_xmsonormal">std::exception::what: Cannot add FIB entry /localhost/nfd (10060 request timed out)</p>
<p class="x_xmsonormal"> </p>
<p class="x_xmsonormal">What’s the reason for this? Any idea would be appreciated.</p>
<p class="x_xmsonormal"> </p>
<p class="x_xmsonormal">Best wishes,</p>
<p class="x_xmsonormal">Jiacheng</p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>