<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Would this have anything to do with virtualization (since you are using min-NDN)? Another possibility: the time was not converted properly to nanoseconds? <br class="">
<div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
<div class=""><br class="Apple-interchange-newline">
Lan</div>
</div>
</span></div>
</div>
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Oct 24, 2016, at 1:40 PM, Ashlesh Gawande (agawande) <<a href="mailto:agawande@memphis.edu" class="">agawande@memphis.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div id="divtagdefaultwrapper" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif;" class="">
<div style="margin-top: 0px; margin-bottom: 0px;" class="">I haven't found anything suspicious. There doesn't seem to be a <span class="">code path that generates an out record without updating last renewed field.</span></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Even if there was a bug in the forwarding pipeline and it is not updated somewhere, I think we should not get a negative value:</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<p style="margin-top: 0px; margin-bottom: 0px;" class=""></p>
<div class=""><i class="">1477331706.109322 ERROR: [AsfMeasurements] Recording RTT for inFace: 311</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class="">1477331706.109335 ERROR: [AsfMeasurements] steady clock now: 2148492683226381 nanoseconds since boot outRecordLastRenewed: 7018100696742452000 <span style="font-size: 12pt;" class="">nanoseconds since boot</span></i></div>
<div class=""><span style="font-size: 12pt;" class=""><i class=""><br class="">
</i></span></div>
<div class=""><i class="">1477331706.109351 ERROR: [AsfMeasurements] steadyRtt: -7015952204059211821 nanoseconds</i></div>
<div class=""><i class="">1477331706.109368 ERROR: [AsfMeasurements] Wrong measurement</i></div>
<div class=""><br class="">
</div>
This means <span class="">time::steady_clock::now() is smaller <span class="">time::steady_clock::TimePoint::min().</span></span>
<p style="margin-top: 0px; margin-bottom: 0px;" class=""></p>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span class=""><span class=""><br class="">
</span></span></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span class=""><span class="">(Machine is Ubuntu 14.04, gcc <span class="">4.9.3.</span></span></span></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span class=""><span class=""><span class="">32 NFDs are running on this machine at the same time. Such wrong measurements happen randomly).</span></span></span></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span class=""><span class=""><br class="">
</span></span></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span class=""><span class="">Ashlesh</span></span></div>
</div>
<hr tabindex="-1" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline-block; width: 710.5px;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""></span>
<div id="divRplyFwdMsg" dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Lan Wang (lanwang)<br class="">
<b class="">Sent:</b><span class="Apple-converted-space"> </span>Monday, October 24, 2016 1:21:49 PM<br class="">
<b class="">To:</b><span class="Apple-converted-space"> </span>Junxiao Shi<br class="">
<b class="">Cc:</b><span class="Apple-converted-space"> </span>Ashlesh Gawande (agawande); <<a href="mailto:nfd-dev@lists.cs.ucla.edu" class="">nfd-dev@lists.cs.ucla.edu</a>><br class="">
<b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: Help needed with ASF measurement</font>
<div class=""> </div>
</div>
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
Junxiao,
<div class=""><br class="">
</div>
<div class="">Thank you very much for the quick feedback.</div>
<div class=""><br class="">
</div>
<div class="">Ashlesh: have you found anything suspicious?<br class="">
<div class="">
<div class="" style="font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div class="" style="font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;">
<div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div class=""><br class="Apple-interchange-newline">
Lan</div>
</div>
</span></div>
</div>
</div>
<br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Oct 24, 2016, at 11:00 AM, Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" class="">shijunxiao@email.arizona.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Hi Ashlesh</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">This is probably a forwarding pipelines bug, but I won't have time to diagnose this until at least Thursday.</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Things to look at:</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">1. Find every code line that updates last renewed field.<br class="">
2. Find which forwarding pipelines calls the function that updates last renewed field.<br class="">
3. Determine if there's a code path that generates an out record without updating last renewed field.</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Yours, Junxiao</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Oct 24, 2016 08:52, "Ashlesh Gawande (agawande)" <<a href="mailto:agawande@memphis.edu" class="">agawande@memphis.edu</a>> wrote:<br type="attribution" class="">
<blockquote class="quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;">
<div dir="ltr" class="">
<div id="m_-6286110043530299564divtagdefaultwrapper" class="" style="font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif;">
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Hi Junxiao</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">I am testing ASF in Mini-NDN.</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">The following line calculates the steady RTT by subtracting outRecord-><span class="">getLastRenewed()</span></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">from <span class="">time::steady_clock::now()</span></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><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 class="">NFD/blob/master/daemon/fw/asf-<wbr class="">measurements.cpp#L117</a><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">(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 class="">github.com/named-data/NFD/<wbr class="">blob/master/daemon/fw/asf-<wbr class="">strategy.cpp#L115</a>)</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Sometimes the value of this steadyRTT is huge (ex: 200000 seconds) or negative.</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">This makes ASF change faces to a higher RTT face.</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">So what could be the reason that this happening? I see much better and expected results if I ignore these high/negative values.</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">(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 class="">data/NFD/blob/master/daemon/<wbr class="">table/pit-face-record.cpp#L34</a></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">initializes getLastRenewed to <span class="">time::steady_clock::<wbr class="">TimePoint::min(). </span><span class="" style="font-size: 12pt;">So maybe for some reason getLastRenewed does not get updated?)</span></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span class="" style="font-size: 12pt;"><br class="">
</span></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span class="" style="font-size: 12pt;">Thanks</span></div>
<font color="#888888" class="">
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span class="" style="font-size: 12pt;">Ashlesh</span></div>
</font></div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</body>
</html>