<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Clean build ndn-tools as well? ndnping is part of ndn-tools.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Ashlesh<br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Aman Maldar <amanmaldar@gmail.com><br>
<b>Sent:</b> Tuesday, October 9, 2018 6:49:56 PM<br>
<b>To:</b> Ashlesh Gawande (agawande); nfd-dev@lists.cs.ucla.edu; mini-ndn@lists.cs.ucla.edu<br>
<b>Subject:</b> Re: [Mini-NDN] Add a Hop count to interest/data packet - unrecognized field 84 cannot be ignored</font>
<div> </div>
</div>
<meta content="text/html; charset=utf-8">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Hello Ashlesh. Thank you for the information.<br>
<br>
I didn't do that early. After doing the clean build, I could start the topology now. But I am getting the error when I run ndnping application. Same error.<br>
I will write the steps below that I did.<br>
<br>
Short Question - I am able to start the topology now. But I am getting same error now after running ndnping and ndnpingserver<br>
----------------------------------------------------------------------------
<div><br>
<b>Long Question-</b><br>
<br>
</div>
<div>
<div>*Following are the stpes I did</div>
<div><br>
</div>
<div>Edited the latest ndn-cxx package to incorporate HopCountTagField as given on the link below.</div>
<div>ref - <a href="https://www.lists.cs.ucla.edu/pipermail/ndnsim/2016-December/003254.html">
https://www.lists.cs.ucla.edu/pipermail/ndnsim/2016-December/003254.html</a></div>
<div><br>
</div>
<div>All the directories have the latest code. NFD Version 0.6.2.</div>
<div><br>
</div>
<div>Note:</div>
<div><a href="https://github.com/named-data-ndnSIM/ndnSIM/commit/73df9f587e1c16c4f67a0053fe29b68f523ff138">https://github.com/named-data-ndnSIM/ndnSIM/commit/73df9f587e1c16c4f67a0053fe29b68f523ff138</a><br>
</div>
<div><br>
</div>
<div>I am not working on apps/ndn-consumer.cpp. I have modified the code in Forwarder.cpp to print the hopCountTag. I will test this using ndnping application.</div>
<div><br>
</div>
<div>void</div>
<div>Forwarder::onIncomingData(Face& inFace, const Data& data)</div>
<div>{</div>
<div>.</div>
<div>.</div>
<div>  //changes for hop count tag  </div>
<div>  auto hopCountTag = data.getTag<lp::HopCountTag>();</div>
<div>  if (hopCountTag != nullptr) { </div>
<div>    hopCount = *hopCountTag;</div>
<div>  }</div>
<div>  NFD_LOG_DEBUG("Hop count: " << hopCount);</div>
<div>  </div>
<div><br>
</div>
<div>*steps continue...</div>
<div><br>
</div>
<div>stopped the NFD</div>
<div>> nfd-stop</div>
<div><br>
</div>
<div>>cd mini-ndn/ndn-cxx/</div>
<div><br>
</div>
<div>sudo ./waf clean</div>
<div>sudo ./waf configure --with-examples<span style="white-space:pre"> </span>(I want to use ndnping application - Is it correct?)</div>
<div><br>
</div>
<div>sudo ./waf build</div>
<div>sudo ./waf install</div>
<div><br>
</div>
<div>>cd mini-ndn/NLSR</div>
<div><br>
</div>
<div>sudo ./waf clean</div>
<div>sudo ./waf build</div>
<div>sudo ./waf install</div>
<div><br>
</div>
<div>>cd mini-ndn/ChronoSync</div>
<div><br>
</div>
<div>sudo ./waf clean</div>
<div>sudo ./waf build</div>
<div>sudo ./waf install</div>
<div><br>
</div>
<div>>cd mini-ndn/NFD</div>
<div><br>
</div>
<div>sudo ./waf clean</div>
<div>sudo ./waf build</div>
<div>sudo ./waf install</div>
<div><br>
</div>
<div>Edited </div>
<div>mini-ndn/src/nlsr.py</div>
<div><br>
</div>
<div>- self.node.cmd("export NDN_LOG=nlsr.*={}".format(self.node.nlsrParameters.get("nlsr-log-level", "DEBUG")))</div>
<div>+ self.node.cmd("export NDN_LOG=*=TRACE")</div>
<div><br>
</div>
<div>// start NFD with logging</div>
<div>> sudo nfd &> nfd.log &</div>
<div><br>
</div>
<div><br>
</div>
<div>//starting the topology (Earlier it was failing with the error)</div>
<div>> sudo minindn           // Topology is successfully started. </div>
<div><br>
</div>
<div>mini-ndn> d ndnpingserver /ndn/d-site/d -x 1000000 &> /home/lenovo/ser.txt &</div>
<div>mini-ndn> a ndnping /ndn/d-site/d -c 1 -n 1111</div>
<div>PING /ndn/d-site/d</div>
<div>ERROR: unrecognized field 901 cannot be ignored</div>
<div>mini-ndn> a ndnping /ndn/d-site/d -c 2 -n 44444</div>
<div> PING /ndn/d-site/d</div>
<div>ERROR: unrecognized field 901 cannot be ignored</div>
<div><br>
</div>
------------------------------------------------------------------------------<br>
<br>
Please find the logs here. What am I missing?<br>
<a href="https://www.dropbox.com/sh/e0oggrf2zrg7o4q/AAD8oWBgqfT_IxISwqNc2jDda?dl=0">https://www.dropbox.com/sh/e0oggrf2zrg7o4q/AAD8oWBgqfT_IxISwqNc2jDda?dl=0</a></div>
<div><br>
<br>
<br>
<br>
</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr">On Tue, Oct 9, 2018 at 12:50 PM Ashlesh Gawande (agawande) <<a href="mailto:agawande@memphis.edu">agawande@memphis.edu</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div id="x_gmail-m_2115574748606217123divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0px; margin-bottom:0px">Can you try getting all the logs by modifying
<br>
</p>
<p style="margin-top:0px; margin-bottom:0px"><a href="https://github.com/named-data/mini-ndn/blob/6f7a64fc75065191035141e3a8c33e149bef27f9/ndn/nlsr.py#L56" class="x_gmail-m_2115574748606217123OWAAutoLink" id="x_gmail-m_2115574748606217123LPlnk378807" target="_blank">https://github.com/named-data/mini-ndn/blob/6f7a64fc75065191035141e3a8c33e149bef27f9/ndn/nlsr.py#L56</a></p>
<p style="margin-top:0px; margin-bottom:0px">to:</p>
<p style="margin-top:0px; margin-bottom:0px">export NDN_LOG=*=TRACE</p>
<p style="margin-top:0px; margin-bottom:0px">to figure out how/where the error happens?<br>
</p>
<p style="margin-top:0px; margin-bottom:0px"><br>
</p>
<p style="margin-top:0px; margin-bottom:0px">Have you already tried a clean build of ChronoSync and NLSR after updating ndn-cxx?</p>
<p style="margin-top:0px; margin-bottom:0px"><br>
</p>
<p style="margin-top:0px; margin-bottom:0px">Ashlesh<br>
</p>
</div>
<hr style="display:inline-block; width:98%">
<div id="x_gmail-m_2115574748606217123divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Mini-NDN <<a href="mailto:mini-ndn-bounces@lists.cs.ucla.edu" target="_blank">mini-ndn-bounces@lists.cs.ucla.edu</a>>
 on behalf of Aman Maldar <<a href="mailto:amanmaldar@gmail.com" target="_blank">amanmaldar@gmail.com</a>><br>
<b>Sent:</b> Tuesday, October 9, 2018 12:53:16 AM<br>
<b>To:</b> <a href="mailto:mini-ndn@lists.cs.ucla.edu" target="_blank">mini-ndn@lists.cs.ucla.edu</a>;
<a href="mailto:nfd-dev@lists.cs.ucla.edu" target="_blank">nfd-dev@lists.cs.ucla.edu</a>; Alex Afanasyev<br>
<b>Subject:</b> Re: [Mini-NDN] Add a Hop count to interest/data packet - unrecognized field 84 cannot be ignored</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Hello. I would really appreciate if someone can comment about these errors and the use case I am working on.<br>
<br>
Here is an update. I went through few more threads and I now understand the field type. I am using it as 901.<br>
ref - <a href="https://lo.calho.st/networks/adding-custom-packet-fields-to-packets-in-ndnsim-2-3-without-forking-the-entire-repository/" target="_blank">https://lo.calho.st/networks/adding-custom-packet-fields-to-packets-in-ndnsim-2-3-without-forking-the-entire-repository/</a><br>
<br>
However I am still getting the same error when I run minindn.<br>
<br>
<div dir="ltr">ERROR: unrecognized field 901 cannot be ignored1539063705.210205 FATAL: [nlsr.NlsrRunner] ERROR: unrecognized field 901 cannot be ignored<br>
<br>
Furthermore, I want to understand if this use case is possible.<br>
- First forwarder adds the timestamp to the interest packet and the I print this timestamp when the packet reaches the producer.<br>
- Can I achieve this using NDNLP, creating custom field ?<br>
<br>
Thanks<br>
</div>
<div><br>
</div>
</div>
</div>
</div>
<br>
<div class="x_gmail-m_2115574748606217123x_gmail_quote">
<div dir="ltr">On Mon, Oct 8, 2018 at 5:40 PM Aman Maldar <<a href="mailto:amanmaldar@gmail.com" target="_blank">amanmaldar@gmail.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail-m_2115574748606217123x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Hello All,<br>
<br>
I am following the steps mentioned here,<br>
<a href="https://www.lists.cs.ucla.edu/pipermail/ndnsim/2016-December/003254.html" target="_blank">https://www.lists.cs.ucla.edu/pipermail/ndnsim/2016-December/003254.html</a><br>
<br>
After making the changes, I compiled, build and installed ndn-cxx package and then NFD package. It worked well. There are no errors.</div>
<div>Then I restarted nfd.<br>
(Meanwhile I had to to "sudo ldconfig" to fix issues)<br>
<br>
Question - I am getting following error when I start the default minindn topology. This is the field that is added as instructed.</div>
<div><br>
</div>
<div>[FULL LOG Pasted below - See the error at the end]</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">
<div>
<div>
<div>lenovo@lenovo-VirtualBox:~/mini-ndn/NFD$ sudo minindn</div>
<div>Parse of /usr/local/etc/mini-ndn/default-topology.conf done.</div>
<div>*** Creating network</div>
<div>*** Adding controller</div>
<div>*** Adding hosts:</div>
<div>a b c d</div>
<div>*** Adding switches:</div>
<div><br>
</div>
<div>*** Adding links:</div>
<div>(10ms delay) (10ms delay) (a, b) (250000ms delay) (250000ms delay) (a, c) (10ms delay) (10ms delay) (b, d)</div>
<div>*** Configuring hosts</div>
<div>a b c d</div>
<div>Setup time: 0</div>
<div>*** Starting controller</div>
<div>c0</div>
<div>*** Starting 0 switches</div>
<div><br>
</div>
<div>Starting NFD on nodes</div>
<div>Starting NLSR on nodes</div>
<div>NLSR on host a is not running. Printing log file and exiting...</div>
<div>1539034267.078456 DEBUG: [nlsr.update.PrefixUpdateProcessor] Setting dispatcher to capture Interests for: /localhost/nlsr/prefix-update</div>
<div>1539034267.079388 DEBUG: [nlsr.Nlsr] Canonized URI: udp://<a href="http://1.0.0.2" target="_blank">1.0.0.2</a> to: udp4://<a href="http://1.0.0.2:6363" target="_blank">1.0.0.2:6363</a></div>
<div>1539034267.079405 DEBUG: [nlsr.Nlsr] Canonized URI: udp://<a href="http://1.0.0.6" target="_blank">1.0.0.6</a> to: udp4://<a href="http://1.0.0.6:6363" target="_blank">1.0.0.6:6363</a></div>
<div>1539034267.079407 DEBUG: [nlsr.Nlsr] Initializing Nlsr</div>
<div>1539034267.079418 DEBUG: [nlsr.SequencingManager] Seq File Name: /tmp/minindn/a/log/nlsrSeqNo.txt</div>
<div>1539034267.079825 DEBUG: [nlsr.SequencingManager] ----SequencingManager----</div>
<div>1539034267.079838 DEBUG: [nlsr.SequencingManager] Adj LSA seq no: 677</div>
<div>1539034267.079844 DEBUG: [nlsr.SequencingManager] Cor LSA Seq no: 0</div>
<div>1539034267.079846 DEBUG: [nlsr.SequencingManager] Name LSA Seq no: 654</div>
<div>1539034267.079869 DEBUG: [nlsr.SyncLogicHandler] Creating Sync Logic object. Sync Prefix: /localhop/ndn/nlsr/sync/%FD%05</div>
<div>1539034267.083099 INFO: [nlsr.ConfParameter] Router Name: /%C1.Router/cs/a</div>
<div>1539034267.083119 INFO: [nlsr.ConfParameter] Site Name: /a-site</div>
<div>1539034267.083122 INFO: [nlsr.ConfParameter] Network: /ndn</div>
<div>1539034267.083124 INFO: [nlsr.ConfParameter] Router Prefix: /ndn/a-site/%C1.Router/cs/a</div>
<div>1539034267.083126 INFO: [nlsr.ConfParameter] ChronoSync sync Prefix: /localhop/ndn/nlsr/sync/%FD%05</div>
<div>1539034267.083128 INFO: [nlsr.ConfParameter] ChronoSync LSA prefix: /localhop/ndn/nlsr/LSA</div>
<div>1539034267.083130 INFO: [nlsr.ConfParameter] Hello Interest retry number: 3</div>
<div>1539034267.083133 INFO: [nlsr.ConfParameter] Hello Interest resend second: 1</div>
<div>1539034267.083135 INFO: [nlsr.ConfParameter] Info Interest interval: 60</div>
<div>1539034267.083136 INFO: [nlsr.ConfParameter] LSA refresh time: 1800</div>
<div>1539034267.083138 INFO: [nlsr.ConfParameter] FIB Entry refresh time: 3600</div>
<div>1539034267.083140 INFO: [nlsr.ConfParameter] LSA Interest lifetime: 4 seconds</div>
<div>1539034267.083171 INFO: [nlsr.ConfParameter] Router dead interval: 3600</div>
<div>1539034267.083172 INFO: [nlsr.ConfParameter] Max Faces Per Prefix: 3</div>
<div>1539034267.083174 INFO: [nlsr.ConfParameter] Hyperbolic Routing: 0</div>
<div>1539034267.083177 INFO: [nlsr.ConfParameter] Hyp R: 0.5</div>
<div>1539034267.083189 INFO: [nlsr.ConfParameter] Hyp Angle 0: 2.64159</div>
<div>1539034267.083192 INFO: [nlsr.ConfParameter] Seq Directory: /tmp/minindn/a/log</div>
<div>1539034267.083194 INFO: [nlsr.ConfParameter] Adjacency LSA build interval:  5</div>
<div>1539034267.083198 INFO: [nlsr.ConfParameter] First Hello Interest interval: 10</div>
<div>1539034267.083199 INFO: [nlsr.ConfParameter] Routing calculation interval:  15</div>
<div>1539034267.083205 DEBUG: [nlsr.AdjacencyList] -------Adjacency List--------</div>
<div>1539034267.083213 DEBUG: [nlsr.Adjacent] Adjacent: /ndn/b-site/%C1.Router/cs/b</div>
<div> Connecting FaceUri: udp4://<a href="http://1.0.0.2:6363" target="_blank">1.0.0.2:6363</a></div>
<div> Link cost: 10</div>
<div> Status: 0</div>
<div> Interest Timed Out: 0</div>
<div><br>
</div>
<div>1539034267.083220 DEBUG: [nlsr.Adjacent] Adjacent: /ndn/c-site/%C1.Router/cs/c</div>
<div> Connecting FaceUri: udp4://<a href="http://1.0.0.6:6363" target="_blank">1.0.0.6:6363</a></div>
<div> Link cost: 250000</div>
<div> Status: 0</div>
<div> Interest Timed Out: 0</div>
<div><br>
</div>
<div>1539034267.083225 DEBUG: [nlsr.Nlsr] Name prefix list: {</div>
<div>/ndn/a-site/a</div>
<div>Sources:</div>
<div><br>
</div>
<div>}</div>
<div><br>
</div>
<div>1539034267.083230 DEBUG: [nlsr.Nlsr] Initializing Key ...</div>
<div>Router's Identity /ndn/a-site/%C1.Router/cs/a does not exist. NLSR is running without security (Only for testing, should not be used in production.) If security is enabled NLSR will not converge.</div>
<div>1539034267.102884 WARNING: [nlsr.Nlsr] ERROR: Router's Identity /ndn/a-site/%C1.Router/cs/a does not existNLSR is running without security. If security is enabled NLSR will not converge.</div>
<div>1539034267.105658 DEBUG: [nlsr.Nlsr] Default NLSR identity: /ndn/a-site/%C1.Router/cs/a/nlsr</div>
<div>1539034267.105675 DEBUG: [nlsr.Nlsr] Setting interest filter for Hello interest: /ndn/a-site/%C1.Router/cs/a/nlsr/INFO</div>
<div>1539034267.106771 DEBUG: [nlsr.Nlsr] Setting interest filter for LsaPrefix: /localhop/ndn/nlsr/LSA</div>
<div>1539034267.107371 DEBUG: [nlsr.Nlsr] Enabling incoming face id indication for local face.</div>
<div>1539034267.108174 DEBUG: [nlsr.SequencingManager] ----SequencingManager----</div>
<div>1539034267.108185 DEBUG: [nlsr.SequencingManager] Adj LSA seq no: 677</div>
<div>1539034267.108188 DEBUG: [nlsr.SequencingManager] Cor LSA Seq no: 0</div>
<div>1539034267.108190 DEBUG: [nlsr.SequencingManager] Name LSA Seq no: 655</div>
<div>1539034267.108282 DEBUG: [nlsr.Lsdb] New Name LSA</div>
<div>1539034267.108287 DEBUG: [nlsr.Lsdb] Adding Name Lsa</div>
<div>1539034267.108290 DEBUG: [nlsr.Lsa] LSA of type NAME:</div>
<div>-Origin Router: /ndn/a-site/%C1.Router/cs/a</div>
<div>-Sequence Number: 655</div>
<div>-Expiration Point: 1539037867108168863 nanoseconds since Jan 1, 1970</div>
<div>--Names:</div>
<div>---Name 0: /ndn/a-site/a</div>
<div>name_lsa_end</div>
<div>1539034267.111955 DEBUG: [nlsr.HelloProtocol] Scheduling HELLO Interests in 10 seconds</div>
<div>ERROR: unrecognized field 84 cannot be ignored</div>
<div>1539034267.113698 FATAL: [nlsr.NlsrRunner] ERROR: unrecognized field 84 cannot be ignored</div>
<div>1539034267.113733 DEBUG: [nlsr.route.Fib] Fib::clean called</div>
<div><br>
</div>
<div>*** Stopping 1 controllers</div>
<div>c0</div>
<div>*** Stopping 3 links</div>
<div>...</div>
<div>*** Stopping 0 switches</div>
<div><br>
</div>
<div>*** Stopping 4 hosts</div>
<div>a b c d</div>
<div>*** Done</div>
</div>
</div>
<div><br>
</div>
<div>Thank you for your time and help.</div>
-- <br>
<div dir="ltr" class="x_gmail-m_2115574748606217123x_m_869262862062384345gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr"><b><font size="2">Regards,</font></b><font size="2"><b><i><br>
</i><font size="4"><span style="color:rgb(0,102,0)"><span style="background-color:rgb(255,255,255)">M<span></span>r. Maldar Aman M.</span></span></font></b></font><font size="4"><b><span style="color:rgb(0,102,0)"><span style="background-color:rgb(255,255,255)"><span></span><span></span></span></span></b></font><br>
<b>University of Massachusetts, Lowell</b><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="x_gmail-m_2115574748606217123x_gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr"><b><font size="2">Regards,</font></b><font size="2"><b><i><br>
</i><font size="4"><span style="color:rgb(0,102,0)"><span style="background-color:rgb(255,255,255)">M<span></span>r. Maldar Aman M.</span></span></font></b></font><font size="4"><b><span style="color:rgb(0,102,0)"><span style="background-color:rgb(255,255,255)"><span></span><span></span></span></span></b></font><br>
<b>University of Massachusetts, Lowell</b><br>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="x_gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr"><b><font size="2">Regards,</font></b><font size="2"><b><i><br>
</i><font size="4"><span style="color:rgb(0,102,0)"><span style="background-color:rgb(255,255,255)">M<span></span>r. Maldar Aman M.</span></span></font></b></font><font size="4"><b><span style="color:rgb(0,102,0)"><span style="background-color:rgb(255,255,255)"><span></span><span></span></span></span></b></font><br>
<b>University of Massachusetts, Lowell</b><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>