<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body 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="moz-txt-link-freetext" href="https://github.com/named-data/mini-ndn/blob/50778df22352e1f19c64c062e318dff6449b8ffb/bin/minindn#L346">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="moz-txt-link-freetext" href="https://github.com/named-data/mini-ndn/blob/50778df22352e1f19c64c062e318dff6449b8ffb/ndn/apps/nlsr.py#L169">https://github.com/named-data/mini-ndn/blob/50778df22352e1f19c64c062e318dff6449b8ffb/ndn/apps/nlsr.py#L169</a></p>
<p><a class="moz-txt-link-freetext" href="https://github.com/named-data/mini-ndn/blob/50778df22352e1f19c64c062e318dff6449b8ffb/ndn/apps/nlsr.py#L171">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 self.node.name == "a":<br>
            Nfdc.createFace(self.node, '10.0.0.2', self.faceType, isPermanent=True)<br>
        elif self.node.name == "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://10.0.0.2<br>
...</p>
<p>and node b as:</p>
<p>...</p>
<p>name /ndn/b-site/%C1.Router/cs/b<br>
face-uri udp://10.0.0.1<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="moz-cite-prefix">On 1/3/19 7:37 PM, knet solutions wrote:<br>
</div>
<blockquote type="cite" cite="mid:CA+8eTd-R==otMk50gXw=v3C4ab4GT1hTEt7eJHpBpgKumNMbvw@mail.gmail.com">
<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" moz-do-not-send="true">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_-2391373562930308513gmail-m_5194826178831658246moz-txt-link-freetext" href="https://github.com/named-data/mini-ndn/blob/master/ndn/experiments/nlsr/pingall_experiment.py" target="_blank" moz-do-not-send="true">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_-2391373562930308513gmail-m_5194826178831658246moz-txt-link-freetext" href="https://redmine.named-data.net/issues/4436#note-1" target="_blank" moz-do-not-send="true">
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_-2391373562930308513gmail-m_5194826178831658246moz-txt-link-freetext" href="https://github.com/named-data/mini-ndn/blob/master/ndn/experiments/experiment.py" target="_blank" moz-do-not-send="true">
https://github.com/named-data/mini-ndn/blob/master/ndn/experiments/experiment.py</a></p>
<p>Ashlesh<br>
</p>
<div class="m_-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_-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" moz-do-not-send="true">
http://knetsolutions.in/</a><br>
</div>
<div>Facebook Page :   <a href="https://www.facebook.com/sdntraining/" target="_blank" moz-do-not-send="true">
https://www.facebook.com/sdntraining/</a><br>
</div>
<div>youtube channel:  <a href="https://www.youtube.com/channel/UCTD6X9_oDqIYs_xpE7moFnQ" target="_blank" moz-do-not-send="true">
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_-2391373562930308513gmail-m_5194826178831658246mimeAttachmentHeader">
</fieldset>
<pre class="m_-2391373562930308513gmail-m_5194826178831658246moz-quote-pre">_______________________________________________
Mini-NDN mailing list
<a class="m_-2391373562930308513gmail-m_5194826178831658246moz-txt-link-abbreviated" href="mailto:Mini-NDN@lists.cs.ucla.edu" target="_blank" moz-do-not-send="true">Mini-NDN@lists.cs.ucla.edu</a>
<a class="m_-2391373562930308513gmail-m_5194826178831658246moz-txt-link-freetext" href="http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn" target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">Mini-NDN@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn" rel="noreferrer" target="_blank" moz-do-not-send="true">http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn</a><br>
</blockquote>
</div>
<br clear="all">
<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Mini-NDN mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Mini-NDN@lists.cs.ucla.edu">Mini-NDN@lists.cs.ucla.edu</a>
<a class="moz-txt-link-freetext" href="http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn">http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn</a>
</pre>
</blockquote>
</body>
</html>