<div dir="auto"><div dir="auto">Thanks ashlesh. Already I found this and moving on. </div><div dir="auto"><br></div><div dir="auto">But sometimes I see randomly the nfd and nlsr process stopped on some nodes. I m still debugging on this.</div><div dir="auto"><br></div><div dir="auto">My usecase is bring SDN in the NDN network and analyze the interested data.</div><div dir="auto"><br></div><div dir="auto">Thanks</div><div dir="auto">Suresh.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div class="gmail_quote"><div dir="ltr">On Mon, 7 Jan 2019 21:52 Ashlesh Gawande (agawande), <<a href="mailto:agawande@memphis.edu">agawande@memphis.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div text="#000000" bgcolor="#FFFFFF">
<p>Yes, when the switch is used the configuration is wrong. NLSR is configured with neighbor as switch with the IP 'None'. Switch does not run NFD/NLSR as switch runs in userspace by default.<br>
</p>
<p>You need to run Mini-NDN once without any modification so that the topology (the one you sent earlier) is generated, quit it and do the following:<br>
</p>
<p>1) Comment out IP setup:<br>
</p>
<p><a class="m_32860479499556592moz-txt-link-freetext" href="https://github.com/named-data/mini-ndn/blob/50778df22352e1f19c64c062e318dff6449b8ffb/bin/minindn#L346" target="_blank" rel="noreferrer">https://github.com/named-data/mini-ndn/blob/50778df22352e1f19c64c062e318dff6449b8ffb/bin/minindn#L346</a></p>
<p>2) Comment out these lines in NLSR setup:</p>
<p><a class="m_32860479499556592moz-txt-link-freetext" href="https://github.com/named-data/mini-ndn/blob/50778df22352e1f19c64c062e318dff6449b8ffb/ndn/apps/nlsr.py#L169" target="_blank" rel="noreferrer">https://github.com/named-data/mini-ndn/blob/50778df22352e1f19c64c062e318dff6449b8ffb/ndn/apps/nlsr.py#L169</a></p>
<p><a class="m_32860479499556592moz-txt-link-freetext" href="https://github.com/named-data/mini-ndn/blob/50778df22352e1f19c64c062e318dff6449b8ffb/ndn/apps/nlsr.py#L171" target="_blank" rel="noreferrer">https://github.com/named-data/mini-ndn/blob/50778df22352e1f19c64c062e318dff6449b8ffb/ndn/apps/nlsr.py#L171</a></p>
<p>and add this after (creating face to neighbors in NFD for NLSR to use):</p>
<p>if <a href="http://self.node.name" target="_blank" rel="noreferrer">self.node.name</a> == "a":<br>
            Nfdc.createFace(self.node, '10.0.0.2', self.faceType, isPermanent=True)<br>
        elif <a href="http://self.node.name" target="_blank" rel="noreferrer">self.node.name</a> == "b":<br>
            Nfdc.createFace(self.node, '10.0.0.1', self.faceType, isPermanent=True)</p>
<p>Install Mini-NDN again.<br>
</p>
<p>3) Then manually configure the neighbor's in nlsr.conf:</p>
<p>node a as:</p>
<p>...</p>
<p>name /ndn/b-site/%C1.Router/cs/b<br>
face-uri udp://<a href="http://10.0.0.2" target="_blank" rel="noreferrer">10.0.0.2</a><br>
...</p>
<p>and node b as:</p>
<p>...</p>
<p>name /ndn/b-site/%C1.Router/cs/b<br>
face-uri udp://<a href="http://10.0.0.1" target="_blank" rel="noreferrer">10.0.0.1</a><br>
...</p>
<p>4) Run Mini-NDN, NLSR should work properly now.</p>
<p>You can look into the code and try to automate this. Since switch does not run NFD/NLSR, you will need to modify how nlsr.py configures the neighbors.</p>
<p>Can you please tell your use case for the switch?<br>
</p>
<p>Ashlesh<br>
</p>
<div class="m_32860479499556592moz-cite-prefix">On 1/3/19 7:37 PM, knet solutions wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_quote"><br>
<div dir="ltr">
<div>
<div>
<div>Hi Ashlesh,<br>
<br>
>Also, once the experiment has finished you cannot invoke the convergence again from the command line.<br>
</div>
may i know , what was the reason behind this? I mean, if i manually stop and start , why the convergence is not happening.???<br>
<br>
</div>
<div>The main reason for the requirement is,<br>
<br>
</div>
<div>when i use switch in the topology, the configuration is wrong. it used wrong face uri, and data.  so i need to correct and restart the ndn services.<br>
<br>
</div>
<div>Thanks<br>
</div>
<div>suresh.<br>
</div>
<div>
<div><br>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Fri, Jan 4, 2019 at 12:05 AM Ashlesh Gawande (agawande) <<a href="mailto:agawande@memphis.edu" target="_blank" rel="noreferrer">agawande@memphis.edu</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p>Mini-NDN first starts NFD, then NLSR, and then runs the experiment pingall. In the pingall experiment you can start tcpdump before startPctPings:</p>
<p><a class="m_32860479499556592m_-2391373562930308513gmail-m_5194826178831658246moz-txt-link-freetext" href="https://github.com/named-data/mini-ndn/blob/master/ndn/experiments/nlsr/pingall_experiment.py" target="_blank" rel="noreferrer">https://github.com/named-data/mini-ndn/blob/master/ndn/experiments/nlsr/pingall_experiment.py</a></p>
<p>(An example for ndndump startup is here: <a class="m_32860479499556592m_-2391373562930308513gmail-m_5194826178831658246moz-txt-link-freetext" href="https://redmine.named-data.net/issues/4436#note-1" target="_blank" rel="noreferrer">
https://redmine.named-data.net/issues/4436#note-1</a>)<br>
</p>
<p>If you want to start tcpdump before NFD is started then put the code in bin/minindn before NFD is started.</p>
<p>Also, once the experiment has finished you cannot invoke the convergence again from the command line. You can manually check whether they have converged similar to how it is done in
<a class="m_32860479499556592m_-2391373562930308513gmail-m_5194826178831658246moz-txt-link-freetext" href="https://github.com/named-data/mini-ndn/blob/master/ndn/experiments/experiment.py" target="_blank" rel="noreferrer">
https://github.com/named-data/mini-ndn/blob/master/ndn/experiments/experiment.py</a></p>
<p>Ashlesh<br>
</p>
<div class="m_32860479499556592m_-2391373562930308513gmail-m_5194826178831658246moz-cite-prefix">On 1/3/19 6:55 AM, knet solutions wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>
<div>Hi,<br>
</div>
<br>
</div>
When i run the default-configuration,  its converged and pings fine.<br>
<br>
"sudo minindn --experiment=pingall --nPings=50"<br>
<br>
</div>
<div>But I want to capture the network packets . so i stopped (killed the nfd and nlsr process on all nodes) and started the tcpdump capture on the nodes.<br>
<br>
</div>
<div>Again, i started the nfd and nlsr process as below on all nodes,<br>
<br>
Example:<br>
mini-ndn> a nfd --config /tmp/minindn/a/nfd.conf &<br>
mini-ndn> a nlsr -f /tmp/minindn/a/nlsr.conf &<br>
<br>
</div>
<div>The process are running fine.<br>
</div>
<div><br>
But Nodes are  not synchronizing/converging..<br>
<br>
</div>
<div>Am i missing some steps?<br>
<br>
</div>
<div>Note: I have not touched the configuration file.<br>
<br>
</div>
<div>Thanks<br>
</div>
<div>suresh<br>
</div>
<div><br>
<br>
<br>
<br>
<br>
</div>
<div dir="ltr">
<div>
<div><br>
<br clear="all">
<div><br>
-- <br>
<div dir="ltr" class="m_32860479499556592m_-2391373562930308513gmail-m_5194826178831658246gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div><b><i>Regards, <br>
</i></b></div>
<b><i>Knet solutions.</i></b><br>
Whatsapp/Mobile:  +919445042007<br>
website:  <a href="http://knetsolutions.in/" target="_blank" rel="noreferrer">
http://knetsolutions.in/</a><br>
</div>
<div>Facebook Page :   <a href="https://www.facebook.com/sdntraining/" target="_blank" rel="noreferrer">
https://www.facebook.com/sdntraining/</a><br>
</div>
<div>youtube channel:  <a href="https://www.youtube.com/channel/UCTD6X9_oDqIYs_xpE7moFnQ" target="_blank" rel="noreferrer">
https://www.youtube.com/channel/UCTD6X9_oDqIYs_xpE7moFnQ<br>
</a><br>
</div>
<div dir="ltr"><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="m_32860479499556592m_-2391373562930308513gmail-m_5194826178831658246mimeAttachmentHeader">
</fieldset>
<pre class="m_32860479499556592m_-2391373562930308513gmail-m_5194826178831658246moz-quote-pre">_______________________________________________
Mini-NDN mailing list
<a class="m_32860479499556592m_-2391373562930308513gmail-m_5194826178831658246moz-txt-link-abbreviated" href="mailto:Mini-NDN@lists.cs.ucla.edu" target="_blank" rel="noreferrer">Mini-NDN@lists.cs.ucla.edu</a>
<a class="m_32860479499556592m_-2391373562930308513gmail-m_5194826178831658246moz-txt-link-freetext" href="http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn" target="_blank" rel="noreferrer">http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn</a>
</pre>
</blockquote>
</div>
_______________________________________________<br>
Mini-NDN mailing list<br>
<a href="mailto:Mini-NDN@lists.cs.ucla.edu" target="_blank" rel="noreferrer">Mini-NDN@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn" rel="noreferrer noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn</a><br>
</blockquote>
</div>
<br clear="all">
<br>
</div>
</div>
<br>
<fieldset class="m_32860479499556592mimeAttachmentHeader"></fieldset>
<pre class="m_32860479499556592moz-quote-pre">_______________________________________________
Mini-NDN mailing list
<a class="m_32860479499556592moz-txt-link-abbreviated" href="mailto:Mini-NDN@lists.cs.ucla.edu" target="_blank" rel="noreferrer">Mini-NDN@lists.cs.ucla.edu</a>
<a class="m_32860479499556592moz-txt-link-freetext" href="http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn" target="_blank" rel="noreferrer">http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn</a>
</pre>
</blockquote>
</div>

</blockquote></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 7 Jan 2019 9:52 pm, "Ashlesh Gawande (agawande)" <<a href="mailto:agawande@memphis.edu">agawande@memphis.edu</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div text="#000000" bgcolor="#FFFFFF">
<p>Yes, when the switch is used the configuration is wrong. NLSR is configured with neighbor as switch with the IP 'None'. Switch does not run NFD/NLSR as switch runs in userspace by default.<br>
</p>
<p>You need to run Mini-NDN once without any modification so that the topology (the one you sent earlier) is generated, quit it and do the following:<br>
</p>
<p>1) Comment out IP setup:<br>
</p>
<p><a class="m_32860479499556592moz-txt-link-freetext" href="https://github.com/named-data/mini-ndn/blob/50778df22352e1f19c64c062e318dff6449b8ffb/bin/minindn#L346" target="_blank" rel="noreferrer">https://github.com/named-data/mini-ndn/blob/50778df22352e1f19c64c062e318dff6449b8ffb/bin/minindn#L346</a></p>
<p>2) Comment out these lines in NLSR setup:</p>
<p><a class="m_32860479499556592moz-txt-link-freetext" href="https://github.com/named-data/mini-ndn/blob/50778df22352e1f19c64c062e318dff6449b8ffb/ndn/apps/nlsr.py#L169" target="_blank" rel="noreferrer">https://github.com/named-data/mini-ndn/blob/50778df22352e1f19c64c062e318dff6449b8ffb/ndn/apps/nlsr.py#L169</a></p>
<p><a class="m_32860479499556592moz-txt-link-freetext" href="https://github.com/named-data/mini-ndn/blob/50778df22352e1f19c64c062e318dff6449b8ffb/ndn/apps/nlsr.py#L171" target="_blank" rel="noreferrer">https://github.com/named-data/mini-ndn/blob/50778df22352e1f19c64c062e318dff6449b8ffb/ndn/apps/nlsr.py#L171</a></p>
<p>and add this after (creating face to neighbors in NFD for NLSR to use):</p>
<p>if <a href="http://self.node.name" target="_blank" rel="noreferrer">self.node.name</a> == "a":<br>
            Nfdc.createFace(self.node, '10.0.0.2', self.faceType, isPermanent=True)<br>
        elif <a href="http://self.node.name" target="_blank" rel="noreferrer">self.node.name</a> == "b":<br>
            Nfdc.createFace(self.node, '10.0.0.1', self.faceType, isPermanent=True)</p>
<p>Install Mini-NDN again.<br>
</p>
<p>3) Then manually configure the neighbor's in nlsr.conf:</p>
<p>node a as:</p>
<p>...</p>
<p>name /ndn/b-site/%C1.Router/cs/b<br>
face-uri udp://<a href="http://10.0.0.2" target="_blank" rel="noreferrer">10.0.0.2</a><br>
...</p>
<p>and node b as:</p>
<p>...</p>
<p>name /ndn/b-site/%C1.Router/cs/b<br>
face-uri udp://<a href="http://10.0.0.1" target="_blank" rel="noreferrer">10.0.0.1</a><br>
...</p>
<p>4) Run Mini-NDN, NLSR should work properly now.</p>
<p>You can look into the code and try to automate this. Since switch does not run NFD/NLSR, you will need to modify how nlsr.py configures the neighbors.</p>
<p>Can you please tell your use case for the switch?<div class="signature-text"><br>
</div></p><div class="signature-text">
<p>Ashlesh<br>
</p></div><div class="elided-text">
<div class="m_32860479499556592moz-cite-prefix">On 1/3/19 7:37 PM, knet solutions wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_quote"><br>
<div dir="ltr">
<div>
<div>
<div>Hi Ashlesh,<br>
<br>
>Also, once the experiment has finished you cannot invoke the convergence again from the command line.<br>
</div>
may i know , what was the reason behind this? I mean, if i manually stop and start , why the convergence is not happening.???<br>
<br>
</div>
<div>The main reason for the requirement is,<br>
<br>
</div>
<div>when i use switch in the topology, the configuration is wrong. it used wrong face uri, and data.  so i need to correct and restart the ndn services.<br>
<br>
</div>
<div>Thanks<br>
</div>
<div>suresh.<br>
</div>
<div>
<div><br>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Fri, Jan 4, 2019 at 12:05 AM Ashlesh Gawande (agawande) <<a href="mailto:agawande@memphis.edu" target="_blank" rel="noreferrer">agawande@memphis.edu</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p>Mini-NDN first starts NFD, then NLSR, and then runs the experiment pingall. In the pingall experiment you can start tcpdump before startPctPings:</p>
<p><a class="m_32860479499556592m_-2391373562930308513gmail-m_5194826178831658246moz-txt-link-freetext" href="https://github.com/named-data/mini-ndn/blob/master/ndn/experiments/nlsr/pingall_experiment.py" target="_blank" rel="noreferrer">https://github.com/named-data/mini-ndn/blob/master/ndn/experiments/nlsr/pingall_experiment.py</a></p>
<p>(An example for ndndump startup is here: <a class="m_32860479499556592m_-2391373562930308513gmail-m_5194826178831658246moz-txt-link-freetext" href="https://redmine.named-data.net/issues/4436#note-1" target="_blank" rel="noreferrer">
https://redmine.named-data.net/issues/4436#note-1</a>)<br>
</p>
<p>If you want to start tcpdump before NFD is started then put the code in bin/minindn before NFD is started.</p>
<p>Also, once the experiment has finished you cannot invoke the convergence again from the command line. You can manually check whether they have converged similar to how it is done in
<a class="m_32860479499556592m_-2391373562930308513gmail-m_5194826178831658246moz-txt-link-freetext" href="https://github.com/named-data/mini-ndn/blob/master/ndn/experiments/experiment.py" target="_blank" rel="noreferrer">
https://github.com/named-data/mini-ndn/blob/master/ndn/experiments/experiment.py</a></p>
<p>Ashlesh<br>
</p>
<div class="m_32860479499556592m_-2391373562930308513gmail-m_5194826178831658246moz-cite-prefix">On 1/3/19 6:55 AM, knet solutions wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>
<div>Hi,<br>
</div>
<br>
</div>
When i run the default-configuration,  its converged and pings fine.<br>
<br>
"sudo minindn --experiment=pingall --nPings=50"<br>
<br>
</div>
<div>But I want to capture the network packets . so i stopped (killed the nfd and nlsr process on all nodes) and started the tcpdump capture on the nodes.<br>
<br>
</div>
<div>Again, i started the nfd and nlsr process as below on all nodes,<br>
<br>
Example:<br>
mini-ndn> a nfd --config /tmp/minindn/a/nfd.conf &<br>
mini-ndn> a nlsr -f /tmp/minindn/a/nlsr.conf &<br>
<br>
</div>
<div>The process are running fine.<br>
</div>
<div><br>
But Nodes are  not synchronizing/converging..<br>
<br>
</div>
<div>Am i missing some steps?<br>
<br>
</div>
<div>Note: I have not touched the configuration file.<br>
<br>
</div>
<div>Thanks<br>
</div>
<div>suresh<br>
</div>
<div><br>
<br>
<br>
<br>
<br>
</div>
<div dir="ltr">
<div>
<div><br>
<br clear="all">
<div><br>
-- <br>
<div dir="ltr" class="m_32860479499556592m_-2391373562930308513gmail-m_5194826178831658246gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div><b><i>Regards, <br>
</i></b></div>
<b><i>Knet solutions.</i></b><br>
Whatsapp/Mobile:  +919445042007<br>
website:  <a href="http://knetsolutions.in/" target="_blank" rel="noreferrer">
http://knetsolutions.in/</a><br>
</div>
<div>Facebook Page :   <a href="https://www.facebook.com/sdntraining/" target="_blank" rel="noreferrer">
https://www.facebook.com/sdntraining/</a><br>
</div>
<div>youtube channel:  <a href="https://www.youtube.com/channel/UCTD6X9_oDqIYs_xpE7moFnQ" target="_blank" rel="noreferrer">
https://www.youtube.com/channel/UCTD6X9_oDqIYs_xpE7moFnQ<br>
</a><br>
</div>
<div dir="ltr"><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="m_32860479499556592m_-2391373562930308513gmail-m_5194826178831658246mimeAttachmentHeader">
</fieldset>
<pre class="m_32860479499556592m_-2391373562930308513gmail-m_5194826178831658246moz-quote-pre">_______________________________________________
Mini-NDN mailing list
<a class="m_32860479499556592m_-2391373562930308513gmail-m_5194826178831658246moz-txt-link-abbreviated" href="mailto:Mini-NDN@lists.cs.ucla.edu" target="_blank" rel="noreferrer">Mini-NDN@lists.cs.ucla.edu</a>
<a class="m_32860479499556592m_-2391373562930308513gmail-m_5194826178831658246moz-txt-link-freetext" href="http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn" target="_blank" rel="noreferrer">http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn</a>
</pre>
</blockquote>
</div>
_______________________________________________<br>
Mini-NDN mailing list<br>
<a href="mailto:Mini-NDN@lists.cs.ucla.edu" target="_blank" rel="noreferrer">Mini-NDN@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn" rel="noreferrer noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn</a><br>
</blockquote>
</div>
<br clear="all">
<br>
</div>
</div>
<br>
<fieldset class="m_32860479499556592mimeAttachmentHeader"></fieldset>
<pre class="m_32860479499556592moz-quote-pre">_______________________________________________
Mini-NDN mailing list
<a class="m_32860479499556592moz-txt-link-abbreviated" href="mailto:Mini-NDN@lists.cs.ucla.edu" target="_blank" rel="noreferrer">Mini-NDN@lists.cs.ucla.edu</a>
<a class="m_32860479499556592moz-txt-link-freetext" href="http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn" target="_blank" rel="noreferrer">http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn</a>
</pre>
</blockquote>
</div></div>

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