<div dir="ltr">thank you<div><br></div><div>So if I want to schedule a data traffic it would be by putting in the setup:</div><div><br></div><div><span style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"> node.cmd("/ndn-cxx/example/producer  options > /Myfile &"):  producer on node a</span><br></div><div><span style="font-size:12.8px"> self.cmd("a nlsrc advertise /abc/abd")</span><span style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"> node.cmd("/ndn-cxx/</span><span style="font-family:"helvetica neue",helvetica,helvetica,arial,sans-serif;font-size:14px">examples/consumer-with-timer</span><span style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"> options > /Myfile &") : consumer on node b</span><span style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"><br></span></div><div><br></div><div><br></div><div><br></div><div>then if I want to analyse what happend during the experiment </div><div>I would put this block in the run section:</div><div><br></div><div><span style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px">for host in net.hosts:</span><br style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"><span style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px">    for intf in host.intfNames():</span><br style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"><span style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px">          ndnDumpOutputFile = "dump.%s" % intf</span><br style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"><span style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px">          host.cmd("sudo ndndump -i %s > %s &" % (intf, ndnDumpOutputFile))  # can specify any  filter with -f option</span><br></div><div><span style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px">best regards</span></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 26, 2016 at 10:05 AM, Matteo Bertolino <span dir="ltr"><<a href="mailto:Matteo.Bertolino@eurecom.fr" target="_blank">Matteo.Bertolino@eurecom.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
the setup section logically contains how the code should be initialized.<br>
The run code section how the code should behave.<br>
<br>
Let's comment the example on the git. I would like to verify the packet exchange receiving ping packets. Then my experiment will have "run ndnpingserver" in the setup, and "print debug information" in the run part. Logically, running ndnpingserver should be done before the real experiments.<br>
<br>
Bests,<br>
Matteo<div><div class="h5"><br>
<br>
Quoting Nour El Houda Ben Youssef <<a href="mailto:nou.mail@gmail.com" target="_blank">nou.mail@gmail.com</a>>:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear community<br>
<br>
I would like to ask<br>
what is the difference between the setup and the run sections in an<br>
experiment python file ?<br>
<br>
best regards<br>
<br>
--<br>
Nour El Houda Ben Youssef Koubâa<br>
PhD student Mobidoc - WEVIOO/SAGE/ENSI<br>
Master degree New Generation of Information Systems - FST<br>
Software Engineer - INSAT<br>
<br>
</blockquote>
<br>
<br>
<br></div></div>
------------------------------<wbr>------------------------------<wbr>-------------------<br>
This message was sent using EURECOM Webmail: <a href="http://webmail.eurecom.fr" rel="noreferrer" target="_blank">http://webmail.eurecom.fr</a><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Nour El Houda Ben Youssef Koubâa</div><div>PhD student Mobidoc - WEVIOO/SAGE/ENSI<br>Master degree New Generation of Information Systems - FST</div><div>Software Engineer - INSAT<br></div></div></div></div></div>
</div>