<div dir="ltr">Hi Vince<div><br></div><div>I confirm your steps are correct.</div><div>This concludes the issue is caused by signing overhead, and can be solved by #1705 for emulation environments.</div><div><br></div><div>Yours, Junxiao<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 12, 2015 at 8:47 AM, Vince Lehman (vslehman) <span dir="ltr"><<a href="mailto:vslehman@memphis.edu" target="_blank">vslehman@memphis.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"><span>
<blockquote type="cite">
<div dir="ltr">
<div>This shows a correlation between signing algorithm and max RTT, but the variance is much larger compared to the logs from Apr 23.</div>
<div>Are you using a different machine?</div>
</div>
</blockquote>
<div><br>
</div></span>
Yes, I should have been more clear. The results in the previous email are from our routing experiments where we originally encountered the problem.
<span><div><br>
</div>
<div>
<blockquote type="cite">
<div dir="ltr">
<div>How many CPU cores does this machine have? There shouldn't be much difference between 2 and 3 on a quad-core machine.</div>
</div>
</blockquote>
<br>
</div>
</span><div>The machine has 4 cores. The difference between tests 2 and 3 are due to the change in the library which would also affect NLSR. When NLSR sends the RIB registration commands, they are also signed using signWithSha256.</div>
<div><br>
</div>
<div><span>
<blockquote type="cite">
<div dir="ltr">
<div>Also, please confirm you have changed ".sign(" to ".signWithSha256(" in all these files for "NFD Management":</div>
<div>
<ul>
<li>NFD/core/segment-publisher.hpp (for answering face query; unnecessary if nfdc is using a FaceId)</li><li>NFD/core/notification-stream.hpp (for generating face status change notifications)</li><li>NFD/daemon/mgmt/manager-base.cpp (for answering commands)</li></ul>
</div>
</div>
</blockquote>
</span><div>Yes, I have modified each of these files for tests 2 and 3.</div>
<div>
<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;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<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;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<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;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;direction:ltr">
<br>
--</div>
<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;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;direction:ltr">
Vince Lehman</div>
</div>
</div>
</div><div><div>
<br>
<div>
<blockquote type="cite">
<div>On May 6, 2015, at 7:04 PM, Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>> wrote:</div>
<br>
<div>
<div dir="ltr">Hi Vince
<div><br>
</div>
<div>Summary from your logs:<br>
</div>
<div>
<ol>
<li>NFD=RSA, ndn::nfd::Controller=RSA: min 7.098ms, max 52.041ms<br>
</li><li>NFD=SHA256, ndn::nfd::Controller=RSA: min 7.277ms, max 40.540ms<br>
</li><li>NFD=SHA256, ndn::nfd::Controller=SHA256: min 7.732ms, max 12.022ms<br>
</li></ol>
</div>
<div>This shows a correlation between signing algorithm and max RTT, but the variance is much larger compared to the logs from Apr 23.</div>
<div>Are you using a different machine?</div>
<div>How many CPU cores does this machine have? There shouldn't be much difference between 2 and 3 on a quad-core machine.</div>
<div><br>
</div>
<div>Also, please confirm you have changed ".sign(" to ".signWithSha256(" in all these files for "NFD Management":</div>
<div>
<ul>
<li>NFD/core/segment-publisher.hpp (for answering face query; unnecessary if nfdc is using a FaceId)</li><li>NFD/core/notification-stream.hpp (for generating face status change notifications)</li><li>NFD/daemon/mgmt/manager-base.cpp (for answering commands)</li></ul>
</div>
<div><br>
</div>
<div>Yours, Junxiao<br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, May 6, 2015 at 4:04 PM, Vince Lehman (vslehman) <span dir="ltr">
<<a href="mailto:vslehman@memphis.edu" target="_blank">vslehman@memphis.edu</a>></span> wrote:<br>
<blockquote class="gmail_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 style="word-wrap:break-word">At the NFD call today, it was suggested that I try our experiments with a different, quicker signing method for NFD’s management modules.
<div><br>
</div>
<div>I ran the following three tests:</div>
<div><br>
</div>
<div>1.) Unmodified NFD to get baseline results</div>
<div>2.) NFD with management modules using KeyChain::signWithSha256 for control responses</div>
<div>3.) Test 2 + modified ndn::nfd::Controller in ndn-cxx so control commands are signed using KeyChain::signWithSha256</div>
<div><br>
</div>
<div>The results I collected suggest that signing is largely the cause of the RTT jumps.
<div>
<div>
<div><br>
</div>
<div>1. ) Unchanged NFD using KeyChain::sign():</div>
<div><br>
</div>
<div>
<div><font face="Menlo">20150506T220013.546312 - Content From /ndn/edu/orange - Ping Reference = 358723384  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 7.54174 ms</font></div>
<div><font face="Menlo">20150506T220014.545910 - Content From /ndn/edu/orange - Ping Reference = 358723385  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 7.35931 ms</font></div>
<div><font face="Menlo">20150506T220015.549327 - Content From /ndn/edu/orange - Ping Reference = 358723386  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 10.755 ms</font></div>
<div><font face="Menlo">20150506T220016.569095 - Content From /ndn/edu/orange - Ping Reference = 358723387  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 26.909 ms</font></div>
<div><font face="Menlo">20150506T220017.554450 - Content From /ndn/edu/orange - Ping Reference = 358723388  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 15.8414 ms</font></div>
<div><font face="Menlo">20150506T220018.550272 - Content From /ndn/edu/orange - Ping Reference = 358723389  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 11.7576 ms</font></div>
<div><font face="Menlo">20150506T220019.594078 - Content From /ndn/edu/orange - Ping Reference = 358723390  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 52.0413 ms</font></div>
<div><font face="Menlo">20150506T220020.572899 - Content From /ndn/edu/orange - Ping Reference = 358723391  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 31.8473 ms</font></div>
<div><font face="Menlo">20150506T220021.568606 - Content From /ndn/edu/orange - Ping Reference = 358723392  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 29.9206 ms</font></div>
<div><font face="Menlo">20150506T220022.545620 - Content From /ndn/edu/orange - Ping Reference = 358723393  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 7.09895 ms</font></div>
<div><font face="Menlo">20150506T220023.551988 - Content From /ndn/edu/orange - Ping Reference = 358723394  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 13.4654 ms</font></div>
<div><font face="Menlo">20150506T220024.564711 - Content From /ndn/edu/orange - Ping Reference = 358723395  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 26.1983 ms</font></div>
<div><font face="Menlo">20150506T220025.590458 - Content From /ndn/edu/orange - Ping Reference = 358723396  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 51.8421 ms</font></div>
<div><font face="Menlo">20150506T220026.547079 - Content From /ndn/edu/orange - Ping Reference = 358723397  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 8.38067 ms</font></div>
<div><font face="Menlo">20150506T220027.546382 - Content From /ndn/edu/orange - Ping Reference = 358723398  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 7.7887 ms</font></div>
<div><br>
</div>
<div>2.) NFD Management using KeyChain::signWithSha256() for control responses:</div>
<div><br>
</div>
<div>
<div><font face="Menlo">20150506T220832.990110 - Content From /ndn/edu/orange - Ping Reference = 481750786  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 8.12952 ms</font></div>
<div><font face="Menlo">20150506T220833.989616 - Content From /ndn/edu/orange - Ping Reference = 481750787  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 7.27718 ms</font></div>
<div><font face="Menlo">20150506T220835.000043 - Content From /ndn/edu/orange - Ping Reference = 481750788  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 17.7199 ms</font></div>
<div><font face="Menlo">20150506T220835.997854 - Content From /ndn/edu/orange - Ping Reference = 481750789  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 15.8593 ms</font></div>
<div><font face="Menlo">20150506T220836.990831 - Content From /ndn/edu/orange - Ping Reference = 481750790  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 8.84247 ms</font></div>
<div><font face="Menlo">20150506T220838.011070 - Content From /ndn/edu/orange - Ping Reference = 481750791  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 17.0122 ms</font></div>
<div><font face="Menlo">20150506T220839.022594 - Content From /ndn/edu/orange - Ping Reference = 481750792  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 40.5401 ms</font></div>
<div><font face="Menlo">20150506T220839.996497 - Content From /ndn/edu/orange - Ping Reference = 481750793  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 13.9247 ms</font></div>
<div><font face="Menlo">20150506T220841.000317 - Content From /ndn/edu/orange - Ping Reference = 481750794  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 18.0118 ms</font></div>
<div><font face="Menlo">20150506T220841.990391 - Content From /ndn/edu/orange - Ping Reference = 481750795  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 8.36782 ms</font></div>
<div><font face="Menlo">20150506T220842.989631 - Content From /ndn/edu/orange - Ping Reference = 481750796  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 7.57163 ms</font></div>
<div><font face="Menlo">20150506T220843.990083 - Content From /ndn/edu/orange - Ping Reference = 481750797  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 7.9309 ms</font></div>
</div>
<div><br>
</div>
<div>3.) NFD Management using KeyChain::signWithSha256() and ndn::nfd::Controller::start() using KeyChain::signWithSha256:</div>
<div><br>
</div>
<div>
<div><font face="Menlo">20150506T224746.920419 - Content From /ndn/edu/orange - Ping Reference = 432571709  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 7.74707 ms</font></div>
<div><font face="Menlo">20150506T224747.920684 - Content From /ndn/edu/orange - Ping Reference = 432571710  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 8.08427 ms</font></div>
<div><font face="Menlo">20150506T224748.921073 - Content From /ndn/edu/orange - Ping Reference = 432571711  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 7.95967 ms</font></div>
<div><font face="Menlo">20150506T224749.920619 - Content From /ndn/edu/orange - Ping Reference = 432571712  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 7.78507 ms</font></div>
<div><font face="Menlo">20150506T224750.923189 - Content From /ndn/edu/orange - Ping Reference = 432571713  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 10.5592 ms</font></div>
<div><font face="Menlo">20150506T224751.920660 - Content From /ndn/edu/orange - Ping Reference = 432571714  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 7.73255 ms</font></div>
<div><font face="Menlo">20150506T224752.920939 - Content From /ndn/edu/orange - Ping Reference = 432571715  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 8.24211 ms</font></div>
<div><font face="Menlo">20150506T224753.923819 - Content From /ndn/edu/orange - Ping Reference = 432571716  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 9.19251 ms</font></div>
<div><font face="Menlo">20150506T224754.921798 - Content From /ndn/edu/orange - Ping Reference = 432571717  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 8.94248 ms</font></div>
<div><font face="Menlo">20150506T224755.924729 - Content From /ndn/edu/orange - Ping Reference = 432571718  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 12.0222 ms</font></div>
<div><font face="Menlo">20150506T224756.920302 - Content From /ndn/edu/orange - Ping Reference = 432571719  <span style="white-space:pre-wrap">
</span>- Round Trip Time = 7.75629 ms</font></div>
</div>
<div><br>
</div>
<div>
<div style="font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;direction:ltr">
<br>
--</div>
<div style="font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;direction:ltr">
Vince Lehman</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div></div></div>
</div>

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