<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; ">Hi Yaogong,<div><br></div><div>Thanks for opening an issue and finding the problem!  I just incorporated your commit that fixes the incorrect initialization of attributes.</div><div><br></div><div>As of now, the initial RTO is 1 second, and later cannot become smaller than the minimum, which is by default set to 200ms.</div><div><br></div><div>---</div><div>Alex</div><div><br><div><div>On May 28, 2013, at 8:21 AM, Yaogong Wang <<a href="mailto:ywang15@ncsu.edu">ywang15@ncsu.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi Alex,<div><br></div><div style="">I believe the initial RTO should not be 200ms. According to the code, RTO is set to <span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre">m_currentEstimatedRtt + 4 * </span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre">m_variance</span> bounded by minRto and maxRto. By default, <span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre">m_currentEstimatedRtt</span> is initially set to 1s (<span style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre">InitialEstimation</span>) and <span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre">m_variance</span> to 0. Hence, the initial RTO should be 1s which is within minRto=200ms and maxRto=200s.</div>
<div style=""><br></div><div style="">The current code does set initial RTO to 200ms due to a bug that sets <span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre">m_currentEstimatedRtt</span> to 0 initially. I have reported the bug here: <a href="https://github.com/NDN-Routing/ndnSIM/issues/40">https://github.com/NDN-Routing/ndnSIM/issues/40</a></div>
<div style=""><br></div><div style="">Thanks,</div><div style="">Yaogong</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 22, 2013 at 4:40 PM, Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi huyao,<div><br></div><div>Yes. There is an initial RTO value and it is 200ms.  You can control this value by setting "ns3::ndn::RttEstimator::MinRTO" value.  ndnSIM uses a modified version of RTT estimator, originally in Internet module: <a href="https://github.com/NDN-Routing/ndnSIM/blob/master/utils/ndn-rtt-estimator.cc" target="_blank">https://github.com/NDN-Routing/ndnSIM/blob/master/utils/ndn-rtt-estimator.cc</a>.</div>
<div><br></div><div>--</div><div>Alex</div><div><br></div><div><div><div><div class="h5"><div>On May 22, 2013, at 10:52 AM, yao hu <<a href="mailto:huyao0107@gmail.com" target="_blank">huyao0107@gmail.com</a>> wrote:</div>
<br></div></div><blockquote type="cite"><div><div class="h5"><div dir="ltr"><font face="arial, helvetica, sans-serif">Hi Alex,</font><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Is there a default initial RTO value for consumer node? RTO should be calculated based on the observed RTT samples, but how about the first Interest timeout for some reason? If there is a default initial value, is it 200ms?</font></div>

<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Thanks for your explanation~</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div>
<div><font face="arial, helvetica, sans-serif">Regards,</font></div><div><font face="arial, helvetica, sans-serif">huyao</font></div><div><br></div><div><div style="font-family:monospace,fixed;font-size:13px;line-height:1;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px">

<br></div></div></div></div></div>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div><br></div></div><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" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>============================<br>Yaogong Wang, PhD Candidate<br>Department of Computer Science<br>North Carolina State University<br><a href="http://www4.ncsu.edu/~ywang15/" target="_blank">http://www4.ncsu.edu/~ywang15/</a><br>
============================
</div>
</blockquote></div><br></div></body></html>