<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Alex,<div><span class="Apple-tab-span" style="white-space:pre">      </span>I tried many case today and I think there is a logic problem during retransmission.</div><div><br></div><div>for example:</div><div>1. nodeN send seqQ, </div><div>2. seqQ timeout and then <span style="font-family: Monaco; font-size: 11px; ">m_seqTimeouts(seqQ) is erased and seqQ is add to </span><span style="font-family: Monaco; font-size: 11px; ">m_retxSeqs container</span></div><div><span style="font-family: Monaco; font-size: 11px; ">3. m_retxSeqs is waiting </span><font face="Monaco"><span style="font-size: 11px;">…</span></font></div><div><font face="Monaco"><span style="font-size: 11px;">4. during the waiting, Data for seqQ comes, and it removes m_retxSeqs(seqQ), which cancel retransimssion</span></font></div><div><font face="Monaco"><span style="font-size: 11px;"><br></span></font></div><div><font face="Monaco"><span style="font-size: 11px;">In the above scenario, for latency trace will only have FullDelay but without LastDelay and some other logic problem (if you check more logs).</span></font></div><div><font face="Monaco"><span style="font-size: 11px;"><br></span></font></div><div><font face="Monaco"><span style="font-size: 11px;">solution is to modify code in ndn-consumer.cc:OnContentObject, add a "return statement" if no entry in m_seqTimeouts when content object comes</span></font></div><div><font face="Monaco"><span style="font-size: 11px;"><br></span></font></div><div><font face="Monaco"><span style="font-size: 11px;"><br></span></font></div><div><div style="margin: 0px; font-size: 11px; font-family: Monaco; ">  SeqTimeoutsContainer::iterator entry = m_seqTimeouts.find (seq);</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; ">  <span style="color: #931a68">if</span> (entry != m_seqTimeouts.end ())</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; ">    {</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; ">      m_lastRetransmittedInterestDataDelay (<span style="color: #931a68">this</span>, seq, Simulator::Now () - entry->time);</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; ">    } <span style="color: #931a68">else</span>{</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; ">    <span class="Apple-tab-span" style="white-space:pre"> </span>NS_LOG_DEBUG(<span style="color: #3933ff">"error:seq "</span><<seq<<<span style="color: #3933ff">" node: "</span><<GetNode()->GetId());</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; ">    <span class="Apple-tab-span" style="white-space:pre">     </span><span style="color: #931a68">return</span>;</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; ">    }</div></div><div><font face="Monaco"><span style="font-size: 11px;"><br></span></font></div><div><br><div>
<div><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="'comic sans ms', sans-serif">thanks</font><br><br><font face="garamond, serif"><font size="4">My Regards,</font><br></font></div><hr align="left" color="#b5c4df" size="1" style="color: rgb(34, 34, 34); font-size: small; font-family: arial; width: 210px; min-height: 1px; "><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="garamond, serif"><div><span style="font-size: 10.5pt; ">Xiaoke Jiang (蒋小可)</span></div><div><span style="font-size: 10.5pt; "><br></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Ph.D Candidate,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Dept. of Computer Science and Technology,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Tsinghua University, P. R. China</font></span></div></font></div></div>
</div>
<br><div><div>On Jan 19, 2013, at 11:55 AM, Alex Afanasyev <<a href="mailto:alexander.afanasyev@ucla.edu">alexander.afanasyev@ucla.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=utf-8"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hmm.. Should work now with the latest commit I pushed.  At least it is working in my trivial example. </div><div><br></div><div>There was a silly typo in tracing helper.</div><div><br></div>--<div>Alex</div><div><br><div><div>On Jan 18, 2013, at 6:59 PM, Xiaoke Jiang <<a href="mailto:shock.jiang@gmail.com">shock.jiang@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=utf-8"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Alex,</div><span class="Apple-tab-span" style="white-space:pre">  </span>Bad Signal. I tried the run with drop packets scenario, but the LastDelay always equals to FullDelay. I am trying to explore the reason.<div><br><div>
<div><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="'comic sans ms', sans-serif">thanks</font><br><br><font face="garamond, serif"><font size="4">My Regards,</font><br></font></div><hr align="left" size="1" style="color: rgb(34, 34, 34); font-size: small; font-family: arial; width: 210px; min-height: 1px; "><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="garamond, serif"><div><span style="font-size: 10.5pt; ">Xiaoke Jiang (蒋小可)</span></div><div><span style="font-size: 10.5pt; "><br></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Ph.D Candidate,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Dept. of Computer Science and Technology,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Tsinghua University, P. R. China</font></span></div></font></div></div>
</div>
<br><div><div>On Jan 19, 2013, at 10:40 AM, Alex Afanasyev <<a href="mailto:alexander.afanasyev@ucla.edu">alexander.afanasyev@ucla.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div dir="auto"><div>Yes. I should have explained that in docs.  If you don't mind I'll put your description there.<br><br>---<div>Alex</div></div><div><br>On Jan 18, 2013, at 6:30 PM, Xiaoke Jiang <<a href="mailto:shock.jiang@gmail.com">shock.jiang@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=utf-8">Hi Alex,<div><span class="Apple-tab-span" style="white-space:pre">   </span>I am checking the schema of trace file.</div><div><div style="margin: 0px; font-size: 11px; font-family: Monaco; ">Node: node id, global unique</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; ">AppId: app id, local unique on the node, not global</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; ">SeqNo: seq number of the interest-Data</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; ">Type: LastDelay means last Interest-Data delay, FullDelay means request delay (including retransimission)</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; ">DelayS: delay by seconds</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; ">DelayUS: delay bey seconds x 10^-6 (microsecond)</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; "><br></div><div style="margin: 0px; font-size: 11px; font-family: Monaco; "><br></div><div style="margin: 0px; font-size: 11px; font-family: Monaco; ">Am I right?</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; "><br></div><div>
<div><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="'comic sans ms', sans-serif">thanks</font><br><br><font face="garamond, serif"><font size="4">My Regards,</font><br></font></div><hr align="left" size="1" style="color: rgb(34, 34, 34); font-size: small; font-family: arial; width: 210px; min-height: 1px; "><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="garamond, serif"><div><span style="font-size: 10.5pt; ">Xiaoke Jiang (蒋小可)</span></div><div><span style="font-size: 10.5pt; "><br></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Ph.D Candidate,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Dept. of Computer Science and Technology,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Tsinghua University, P. R. China</font></span></div></font></div></div>
</div>
<br><div><div>On Jan 19, 2013, at 10:06 AM, Alex Afanasyev <<a href="mailto:alexander.afanasyev@ucla.edu">alexander.afanasyev@ucla.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=utf-8"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Thanks for pointing this out.  </div><div><br></div><div>Somehow I had a wrong rule in .gitignore and didn't notice that topology file never got committed till now.  Should be there now.</div><div><br></div><div>---</div><div>Alex</div><div><br></div><div><div>On Jan 18, 2013, at 5:59 PM, Xiaoke Jiang <<a href="mailto:shock.jiang@gmail.com">shock.jiang@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=utf-8"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Alex,<div><span class="Apple-tab-span" style="white-space:pre"> </span>I can't find "<span style="color: rgb(64, 112, 160); font-size: 12px; line-height: 14px; text-align: left; ">"src/ndnSIM/examples/topologies/topo-tree.txt"", In fact there is no topologies directory on the GitHub. </span></div><div><span style="color: rgb(64, 112, 160); font-size: 12px; line-height: 14px; text-align: left; "><br></span></div><div><div>
<div><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; position: static; z-index: auto; "><font face="'comic sans ms', sans-serif">thanks</font><br><br><font face="garamond, serif"><font size="4">My Regards,</font><br></font></div><hr align="left" size="1" style="color: rgb(34, 34, 34); font-size: small; font-family: arial; width: 210px; min-height: 1px; "><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="garamond, serif"><div><span style="font-size: 10.5pt; ">Xiaoke Jiang (蒋小可)</span></div><div><span style="font-size: 10.5pt; "><br></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Ph.D Candidate,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Dept. of Computer Science and Technology,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Tsinghua University, P. R. China</font></span></div></font></div></div>
</div>
<br><div><div>On Jan 19, 2013, at 8:45 AM, Alex Afanasyev <<a href="mailto:alexander.afanasyev@ucla.edu">alexander.afanasyev@ucla.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Xiaoke,<br><br>I have implemented a basic latency measurements in ndn::Consumer app (should work in all derivative-classes as well) and a simple tracing helper. <br>You give it a try and tell me if something is wrong or strange.<br><br>You can check out basic doc here: <a href="http://ndnsim.net/metric.html#application-level-trace-helper">http://ndnsim.net/metric.html#application-level-trace-helper</a><br><br>---<br>Alex<br><br>On Jan 17, 2013, at 12:35 AM, Xiaoke Jiang <<a href="mailto:shock.jiang@gmail.com">shock.jiang@gmail.com</a>> wrote:<br><br><blockquote type="cite">Thank you Alex.<br>I think Interest-Data latency also works for me. But request latency (including retransmission delays) is better than Interest-Data latency. So I will try with I-D latency first and wait for you update.<br><br>P.S, if the Interest don't get it's data or get an Nack, how do you define its latency in the program?<br><br>thanks<br><br>My Regards,<br>Xiaoke Jiang (蒋小可)<br><br>Ph.D Candidate,<br>Dept. of Computer Science and Technology,<br>Tsinghua University, P. R. China<br><br>On Jan 17, 2013, at 4:13 AM, Alexander Afanasyev <<a href="mailto:alexander.afanasyev@ucla.edu">alexander.afanasyev@ucla.edu</a>> wrote:<br><br><blockquote type="cite">Hi Xiaoke,<br><br>It is up to the particular application to track down Interest-Data latency.  There is another question regarding in which latency you're interested: just Interest-Data or first Interest for sequence number and reception of Data (which includes all the retransmission delays).<br><br>Currently in ndn::Consumer-based apps, there is tracking of just Interest-Data packets (i.e., without retransmission delays) within RTT estimator variable (Ptr<RttEstimator> m_rtt) and in timeout container (SeqTimeoutsContainer m_seqTimeouts).   <br><br>If you want/need the other delay, including all retransmission timeouts, then it should be straightforward to implement, for example, using SeqTimeoutsContainer structure (similarly how m_seqLifetimes in ndn::Consumer).<br><br>I think, and would do it when I can get time for that, it is a good idea to export both delay parameters as a trace sources in ndn::Consumer class, as well as write a simple metric helper.<br><br>---<br>Alex<br><br>On Jan 16, 2013, at 5:36 AM, Xiaoke Jiang <<a href="mailto:shock.jiang@gmail.com">shock.jiang@gmail.com</a>> wrote:<br><br><blockquote type="cite">Hi All, <br><span class="Apple-tab-span" style="white-space:pre">  </span>How to trace the latency of request, duration from sending the Interest to receiving corresponding Data.<br><span class="Apple-tab-span" style="white-space:pre">  </span><br><span class="Apple-tab-span" style="white-space:pre">  </span>Is there anyone can give some hint? Thank you in advance.<br><br>thanks<br><br>My Regards,<br>Xiaoke Jiang (蒋小可)<br><br>Ph.D Candidate,<br>Dept. of Computer Science and Technology,<br>Tsinghua University, P. R. China<br></blockquote><br></blockquote><br>_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br></blockquote><br></blockquote></div><br></div></div></blockquote></div><br></div></blockquote></div><br></div></blockquote><blockquote type="cite"><span>_______________________________________________</span><br><span>ndnSIM mailing list</span><br><span><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a></span><br><span><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a></span><br></blockquote></div></blockquote></div><br></div></div></blockquote></div><br></div></div></blockquote></div><br></div></body></html>