<p dir="ltr">Hi Ashlesh</p>
<p dir="ltr">This is probably a forwarding pipelines bug, but I won't have time to diagnose this until at least Thursday.</p>
<p dir="ltr">Things to look at:</p>
<p dir="ltr">1. Find every code line that updates last renewed field.<br>
2. Find which forwarding pipelines calls the function that updates last renewed field.<br>
3. Determine if there's a code path that generates an out record without updating last renewed field.</p>
<p dir="ltr">Yours, Junxiao</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Oct 24, 2016 08:52, "Ashlesh Gawande (agawande)" <<a href="mailto:agawande@memphis.edu">agawande@memphis.edu</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_-6286110043530299564divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Junxiao</p>
<p><br>
</p>
<p>I am testing ASF in Mini-NDN.</p>
<p><br>
</p>
<p>The following line calculates the steady RTT by subtracting outRecord-><span>getLastRenewed()</span></p>
<p>from <span>time::steady_clock::now()</span></p>
<p><a href="https://github.com/named-data/NFD/blob/master/daemon/fw/asf-measurements.cpp#L117" class="m_-6286110043530299564OWAAutoLink" id="m_-6286110043530299564LPlnk470837" target="_blank">https://github.com/named-data/<wbr>NFD/blob/master/daemon/fw/asf-<wbr>measurements.cpp#L117</a><br>
</p>
<p>(which is called from beforeSatisfyInterest <a href="https://github.com/named-data/NFD/blob/master/daemon/fw/asf-strategy.cpp#L115" class="m_-6286110043530299564OWAAutoLink" id="m_-6286110043530299564LPlnk412952" target="_blank">https://<wbr>github.com/named-data/NFD/<wbr>blob/master/daemon/fw/asf-<wbr>strategy.cpp#L115</a>)</p>
<p><br>
</p>
<p>Sometimes the value of this steadyRTT is huge (ex: 200000 seconds) or negative.</p>
<p>This makes ASF change faces to a higher RTT face.</p>
<p><br>
</p>
<p>So what could be the reason that this happening? I see much better and expected results if I ignore these high/negative values.</p>
<p><br>
</p>
<p>(I see that <a href="https://github.com/named-data/NFD/blob/master/daemon/table/pit-face-record.cpp#L34" class="m_-6286110043530299564OWAAutoLink" id="m_-6286110043530299564LPlnk882460" target="_blank">https://github.com/named-<wbr>data/NFD/blob/master/daemon/<wbr>table/pit-face-record.cpp#L34</a></p>
<p>initializes getLastRenewed to <span>time::steady_clock::<wbr>TimePoint::min(). </span><span style="font-size:12pt">So maybe for some reason getLastRenewed does not get updated?)</span></p>
<p><span style="font-size:12pt"><br>
</span></p>
<p><span style="font-size:12pt">Thanks</span></p><font color="#888888">
<p><span style="font-size:12pt">Ashlesh</span></p>
</font></div>
</div>

</blockquote></div><br></div>