<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">
<blockquote type="cite" class="">
<div dir="ltr" class="">
<div class="">
<div class="">Is there some available parser for these logs in MiniNdn ?  (for example for NFD and/or NLSR logs). <br class="">
Or <br class="">
How would you recommend to read them ?.</div>
</div>
</div>
</blockquote>
<br class="">
</div>
<div class="">There are no tools included with Mini-NDN to help parse the log files, but if you want to know when a face receives an Interest or Data packet, the NFD log files can be searched for the keywords
<font face="Menlo" class="">onIncomingInterest</font> or <font face="Menlo" class="">
onIncomingData</font>. The log line will include the timestamp, the receiving face, and the Interest/Data name.</div>
<div class=""><br class="">
</div>
<div class="">e.g.)</div>
<div class=""><br class="">
</div>
<font face="Menlo" class="">1456913149.237331 DEBUG: [Forwarder] onIncomingInterest face=257 interest=/localhost/nfd/faces/events/%FE%06</font>
<div class=""><font face="Menlo" class="">1456913134.562870 DEBUG: [Forwarder] onIncomingData face=1 data=/localhost/nfd/faces/events/%FE%00</font><br class="">
<div class="">
<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; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<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; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<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; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; direction: ltr;" class="">
<br class="Apple-interchange-newline">
--</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; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; direction: ltr;" class="">
Vince Lehman</div>
</div>
</div>
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Mar 1, 2016, at 6:56 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 Vince<br class="">
<br class="">
</div>
Thank you so much for the details.<br class="">
<br class="">
<font face="Menlo" class="">>>>a: _ nfd-log-level=DEBUG</font><br class="">
>>>The log will be written to the node’s home folder (by default, /tmp/$NODE_NAME).<br class="">
<br class="">
</div>
Is there some available parser for these logs in MiniNdn ?  (for example for NFD and/or NLSR logs).
<br class="">
Or <br class="">
How would you recommend to read them ?.<br class="">
<br class="">
</div>
Regards<br class="">
</div>
Percy<br class="">
<div class="">
<div class="">
<div class=""><br class="">
</div>
</div>
</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On 1 March 2016 at 15:58, Vince Lehman (vslehman) <span dir="ltr" class="">
<<a href="mailto:vslehman@memphis.edu" target="_blank" class="">vslehman@memphis.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 style="word-wrap:break-word" class="">
<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/" target="_blank" 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 has detected a possible
 fraud attempt from "1.0.0.3:6363" claiming to be</b></font> <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="">
</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/" target="_blank" class="">self.net</a>[‘p’], “/ndn/edu/store1”, dstNode)</font></div>
<div class="">
<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;" class="">
<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;" class="">
<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;" class="">
<br class="">
--</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;" class="">
Vince Lehman</div>
</div>
</div>
</div>
<br class="">
<div class="">
<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" target="_blank" class="">pdpa@st-andrews.ac.uk</a>> wrote:</div>
<br class="">
<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/" target="_blank" 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 has detected a possible
 fraud attempt from "1.0.0.3:6363" claiming to be</b></font> <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="">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="">
<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 style="margin-left:40px" class="">
<div style="margin-left:40px" class=""><span style="color:rgb(0,0,255)" class="">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 style="color:rgb(0,0,255)" class="">#./install.sh -i; minindn --experiment=peek-poke --ctime=20  ndn_utils/topologies/three-</span><span style="color:rgb(0,0,255)" class="">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>
</blockquote>
</div>
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>