<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<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;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Just wanted to mention, even with using IP static routes might not work as there is no routing protocol on IP level (However, each node should be able to reach its neighbor using IP and the correct interface and there should be no problem in registering
 routes towards neighbor in NFD). </p>
<p><br>
</p>
<p>One needs to first install routes for IP (using the route command) and then install routes for NFD.</p>
<div><br>
</div>
Ashlesh<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Mini-NDN <mini-ndn-bounces@lists.cs.ucla.edu> on behalf of Vince Lehman (vslehman) <vslehman@memphis.edu><br>
<b>Sent:</b> Tuesday, March 1, 2016 9:58 AM<br>
<b>To:</b> Percy Perez Aruni<br>
<b>Cc:</b> mini-ndn@lists.cs.ucla.edu<br>
<b>Subject:</b> Re: [Mini-NDN] {Disarmed} Re: Consumer is not receiving the data (MiniNdn)</font>
<div> </div>
</div>
<div>
<blockquote type="cite" class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">1.- How can I use MiniNdn to collect  data traffic for each and between nodes?  <br class="">
For example, I would like to collect data traffic for the forwarder, like which face has received the interest or data and when? </div>
</div>
</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
If you would like to log forwarder information on a node, you can add an additional parameter to its definition in the topology configuration file:
<div class=""><br class="">
</div>
<div class=""><font face="Menlo" class="">[nodes]<br class="">
a: _ nfd-log-level=DEBUG</font></div>
<div class=""><font face="Menlo" class="">...</font></div>
<div class=""><font face="Menlo" class=""><br class="">
</font></div>
<div class="">The log will be written to the node’s home folder (by default, /tmp/$NODE_NAME).<br class="">
<div class="">
<div class=""><br class="">
</div>
<blockquote type="cite" class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">2.- To register static routes from a ExperimentClass, could MiniNdn  use the <a href="http://host.name/" class="" id="LPlnk316214">host.name</a> instead of IP addresses?<br class="">
      <font face="Menlo" class="">for example: <br class="">
                     <a href="http://self.net/" target="_blank" class="">self.net</a>['p'].cmd("nfdc register /ndn/edu/store1 tcp://<a href="http://1.0.0.3:6363/" target="_blank" class=""><font color="red" class=""><b class="">MailScanner warning: numerical
 links are often malicious:</b></font> 1.0.0.3:6363</a> &")</font></div>
</div>
</div>
</div>
</blockquote>
<div class=""><br class="webkit-block-placeholder">
</div>
<div class="">In the current version of Mini-NDN, using the IP address is the standard way to achieve static routes. In the future, we would like to provide a static routing helper that would allow a user to call something like:</div>
<div class=""><br class="">
</div>
<div class=""><font face="Menlo" class="">Nfdc.register(<a href="http://self.net" class="">self.net</a>[‘p’], “/ndn/edu/store1”, dstNode)</font></div>
<div class="">
<div class="" style="color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
<div class="" style="color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
<div class="" style="color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; direction:ltr">
<br class="Apple-interchange-newline">
--</div>
<div class="" style="color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; direction:ltr">
Vince Lehman</div>
</div>
</div>
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Feb 29, 2016, at 6:25 PM, Percy Perez Aruni <<a href="mailto:pdpa@st-andrews.ac.uk" class="">pdpa@st-andrews.ac.uk</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">
<div class="">Hi dear Shuo and Vince<br class="">
<br class="">
</div>
Thank you both for replying my last email.  <br class="">
</div>
I just re-installed minindn (./install.sh -mrfti) and the script is working now. Unfortunately I can not explain why this was  necessary. 
<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Regarding your comments:<br class="">
>>> Is the script you included your entire experiment script? If not, could you please attach the full code?
<div class="">Yes, it is the entire script.  </div>
</div>
<br class="">
</div>
<div class="">If you do not mind, could I ask the following please:<br class="">
</div>
<div class="">
<div class=""><br class="">
<div class="">1.- How can I use MiniNdn to collect  data traffic for each and between nodes? 
<br class="">
For example, I would like to collect data traffic for the forwarder, like which face has received the interest or data and when?
<br class="">
<br class="">
</div>
<div class="">2.- To register static routes from a ExperimentClass, could MiniNdn  use the
<a href="http://host.name/" class="">host.name</a> instead of IP addresses?<br class="">
      <font face="Menlo" class="">for example: <br class="">
                     <a href="http://self.net/" target="_blank" class="">self.net</a>['p'].cmd("nfdc register /ndn/edu/store1 tcp://<a href="http://1.0.0.3:6363/" target="_blank" class=""><font color="red" class=""><b class="">MailScanner warning: numerical
 links are often malicious:</b></font> 1.0.0.3:6363</a> &")</font><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Thank you again for your comments.<br class="">
<br class="">
Regards<br class="">
</div>
<div class="">Percy<br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<br class="">
<br class="">
</div>
</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On 29 February 2016 at 04:46, Shuo Yang <span dir="ltr" class="">
<<a href="mailto:shuoyang@email.arizona.edu" target="_blank" class="">shuoyang@email.arizona.edu</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr" class="">Hi Percy,
<div class=""><br class="">
</div>
<div class="">It seems that you should write the script in this way:</div>
<div class=""><br class="">
</div>
<div class="">
<p class=""><span class=""> 1</span><span class="">from</span> ndn.experiments.experiment
<span class="">import</span>  Experiment</p>
<p class=""> 2</p>
<p class=""><span class=""> 3</span><span class="">class</span> <span class="">Experiment1</span>(Experiment):                                                                                                                              </p>
<p class=""><span class=""> 4</span>    <span class="">def</span> <span class="">
__init__</span>(<span class="">self</span>,args):                                                                                                                                </p>
<p class=""><span class=""> 5</span>        Experiment.__init__(<span class="">self</span>, args)                                                                                                                     </p>
<p class=""><span class=""> 6</span>    <span class="">def</span> <span class="">
run</span>(<span class="">self</span>):                                                                                                                                          </p>
<p class=""><span class=""> 7</span>        <span class="">for</span> host <span class="">
in</span> <span class="">self</span>.net.hosts:                                                                                                                         </p>
<p class=""><span class=""> 8</span>            <span class="">if</span> <a href="http://host.name/" target="_blank" class="">
host.name</a> == <span class="">"p"</span>:                                                                                                                     </p>
<p class=""><span class=""> 9</span>                host.cmd(<span class="">"echo test1 | ndnpoke /ndn/edu/producer &"</span>)                                                                                        </p>
<p class=""><span class="">10</span>                                                                                                                                                            </p>
<p class=""><span class="">11</span>        <span class="">for</span> host <span class="">
in</span> <span class="">self</span>.net.hosts:                                                                                                                         </p>
<p class=""><span class="">12</span>            <span class="">if</span> <a href="http://host.name/" target="_blank" class="">
host.name</a> == <span class="">"c"</span>:                                                                                                                     </p>
<p class=""><span class="">13</span>                <span class="">print</span> host.cmd(<span class="">"ndnpeek -p /ndn/edu/producer"</span>)                                                                                              </p>
<p class="">14</p>
<p class=""><span class="">15</span>Experiment.register(<span class="">"peek-poke"</span>, Experiment1)</p>
<p class="">At least yours is working on my side. I'm using Mini-ndn 0.1.1</p>
<p class=""><br class="">
</p>
<p class="">Best luck!</p>
<p class="">Shuo</p>
</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">
<div class="">
<div class="h5">On Sun, Feb 28, 2016 at 5:09 PM, Percy Perez Aruni <span dir="ltr" class="">
<<a href="mailto:pdpa@st-andrews.ac.uk" target="_blank" class="">pdpa@st-andrews.ac.uk</a>></span> wrote:<br class="">
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div class="">
<div class="h5">
<div dir="ltr" class="">
<div class="">
<div class="">Hi dear MiniNdn team<br class="">
<br class="">
I am interested in using MiniNdn for an initial basic experiment between three nodes: a consumer , a forwarder and a producer.  It is highly possible that I am missing something,  but the consumer is not receiving the data from the producer. 
<br class="">
<br class="">
</div>
Could I ask for some advice of how this could be achieved by using MiniNdn?   <br class="">
</div>
<br class="">
<div class="">
<div class="">
<div class="">
<div class=""><br class="">
</div>
<div class=""><u class="">Some details below:<br class="">
</u></div>
<div class=""><br class="">
</div>
<div class="">1.- Topology:  c <-> f <-> p<br class="">
<br class="">
</div>
<div class="">  where  c = consumer, f = forwarder, p =producer<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">2.- ExperimentClass:<br class="">
</div>
<div class=""><br class="">
<div class="" style="margin-left:40px">
<div class="" style="margin-left:40px"><span class="" style="color:rgb(0,0,255)">from ndn.experiments.experiment import  Experiment<br class="">
<br class="">
class Experiment1(Experiment):<br class="">
    def __init__(self,args):<br class="">
        Experiment.__init__(self, args)       <br class="">
    def run(self):<br class="">
        if <a href="http://host.name/" target="_blank" class="">host.name</a> == "p":<br class="">
              host.cmd("echo test1 | ndnpoke /ndn/edu/p &")<br class="">
        if <a href="http://host.name/" target="_blank" class="">host.name</a> == "c":<br class="">
              print host.cmd("ndnpeek -p /ndn/edu/p")<br class="">
Experiment.register("peek-poke", Experiment1)<br class="">
</span></div>
</div>
</div>
<div class=""><br class="">
</div>
<div class="">3.- Running as root:<br class="">
<br class="">
</div>
<div class=""><span class="" style="color:rgb(0,0,255)">#./install.sh -i; minindn --experiment=peek-poke --ctime=20  ndn_utils/topologies/three-</span><span class="" style="color:rgb(0,0,255)">nodes.conf<br class="">
</span><br class="">
</div>
<div class="">4.- "NLSR has successfully converged"<br class="">
<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Thank you in advance for your time and help<br class="">
<br class="">
</div>
<div class="">Regards<span class=""><font color="#888888" class=""><br class="">
</font></span></div>
<span class=""><font color="#888888" class="">
<div class="">Percy<br class="">
</div>
</font></span></div>
</div>
</div>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
Mini-NDN mailing list<br class="">
<a href="mailto:Mini-NDN@lists.cs.ucla.edu" target="_blank" class="">Mini-NDN@lists.cs.ucla.edu</a><br class="">
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn" rel="noreferrer" target="_blank" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn</a><br class="">
<br class="">
</blockquote>
</div>
<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
</div>
</body>
</html>