<div dir="auto"><pre style="white-space:pre-wrap"><font color="#000000">I am very grateful for your help.</font></pre></div><div class="gmail_extra"><br><div class="gmail_quote">Em 10 de abr de 2017 11:06, "Ashlesh Gawande (agawande)" <<a href="mailto:agawande@memphis.edu">agawande@memphis.edu</a>> escreveu:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>

<div id="m_-1769641285626669645divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p>I am not sure about this, perhaps ndn-interest mailing list is better place for this discussion.</p>
<p><br>
</p>
<p>Ashlesh</p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-1769641285626669645divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Ilane Karise <<a href="mailto:kariseilane@gmail.com" target="_blank">kariseilane@gmail.com</a>><br>
<b>Sent:</b> Saturday, April 8, 2017 8:01:35 PM<br>
<b>To:</b> Ashlesh Gawande (agawande); <a href="mailto:mini-ndn@lists.cs.ucla.edu" target="_blank">mini-ndn@lists.cs.ucla.edu</a><br>
<b>Subject:</b> Re: NLSR Configuration File</font>
<div> </div>
</div>
<div>
<div dir="auto">Sorry for asking so many questions, it's because I could not find the answers for myself. But, if there is any configuration of the PIT. Is there a default size for it? How can I know which parameters to work with to emulate interest flooding
 attack? This is possible?</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">Em 8 de abr de 2017 22:49, "Ashlesh Gawande (agawande)" <<a href="mailto:agawande@memphis.edu" target="_blank">agawande@memphis.edu</a>> escreveu:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto">
<div id="m_-1769641285626669645m_-1606530918537718931divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p>There is no configuration option regarding the PIT in NFD's configuration file.</p>
<p>If you want some information about the PIT you would have to add logging messages to the PIT class in NFD and compile and install it again.</p>
<p><br>
</p>
<p>1) Where to add PIT logging in NFD:</p>
<p><a href="https://github.com/named-data/NFD/blob/master/daemon/table/pit.cpp" class="m_-1769641285626669645m_-1606530918537718931OWAAutoLink" id="m_-1769641285626669645m_-1606530918537718931LPlnk582617" target="_blank">https://github.com/named-data/<wbr>NFD/blob/master/daemon/table/p<wbr>it.cpp</a><br>
</p>
<p><br>
</p>
<p>2) How to add it (from NFD developer guide: <a href="https://named-data.net/wp-content/uploads/2016/10/ndn-0021-7-nfd-developer-guide.pdf" class="m_-1769641285626669645m_-1606530918537718931OWAAutoLink" id="m_-1769641285626669645m_-1606530918537718931LPlnk928962" target="_blank">https://named-data.net/<wbr>wp-content/uploads/2016/10/ndn<wbr>-0021-7-nfd-developer-guide.<wbr>pdf</a>):</p>
<p></p>
<div>To enable NFD logging in a new module, very few actions are required from the developer:</div>
<div>• include core/logger.hpp header file </div>
<div>• declare logging module using NFD_LOG_INIT(<u></u>) macros <u></u></div>
<div><u></u>• use NFD_LOG_<u></u>(statement to log) in the source code<u></u><u></u></div>
So something like this can be added in pit.cpp:
<p></p>
<p>NFD_LOG_INIT("Pit");</p>
<p><br>
</p>
<p>3) How to turn it on in Mini-NDN:</p>
<p>In /usr/local/etc/ndn/nfd.conf (if this is not present, then<span style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:16px"> /usr/local/etc/ndn/<a href="http://nfd.co">nfd.co</a><wbr>nf.sample</span>)
 add:</p>
<p>Pit DEBUG</p>
<p>here: <a href="https://github.com/named-data/NFD/blob/master/nfd.conf.sample.in#L29" class="m_-1769641285626669645m_-1606530918537718931OWAAutoLink" id="m_-1769641285626669645m_-1606530918537718931LPlnk458130" target="_blank">https://github.com/named<wbr>-data/NFD/blob/master/nfd.<wbr>conf.sample.in#L29</a></p>
<div><span><span>Then check the logs in /tmp/<node-name>/<node-name>.l<wbr>og</span></span></div>
<div><span><span><br>
</span></span></div>
<div><span><span>Ashlesh</span></span></div>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-1769641285626669645m_-1606530918537718931divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Ilane Karise <<a href="mailto:kariseilane@gmail.com" target="_blank">kariseilane@gmail.com</a>><br>
<b>Sent:</b> Saturday, April 8, 2017 7:08:59 PM<br>
<b>To:</b> Ashlesh Gawande (agawande)<br>
<b>Cc:</b> <a href="mailto:mini-ndn@lists.cs.ucla.edu" target="_blank">mini-ndn@lists.cs.ucla.edu</a><br>
<b>Subject:</b> Re: NLSR Configuration File</font>
<div> </div>
</div>
<div>
<div>
<pre><font face="UICTFontTextStyleTallBody"><span style="white-space:normal;background-color:rgba(255,255,255,0)">Dear all,</span></font></pre>
<pre><font face="UICTFontTextStyleTallBody"><span style="white-space:normal;background-color:rgba(255,255,255,0)">I am very grateful for your help.<br></span></font></pre>
<pre><font face="UICTFontTextStyleTallBody"><span style="white-space:normal;background-color:rgba(255,255,255,0)">I have another question. <br></span></font></pre>
<pre><font face="UICTFontTextStyleTallBody"><span style="white-space:normal;background-color:rgba(255,255,255,0)">I intend to emulate a interest flooding attack scenario. I've been looking at the NFD settings (/tmp/<node-name>/<a href="http://node-name.co">node-name.co</a><wbr>nf) and found no configuration regarding the size of the PIT table. If I can not see this, I kindly ask you to help me.</span></font></pre>
<pre><font face="UICTFontTextStyleTallBody"><span style="white-space:normal;background-color:rgba(255,255,255,0)"><br></span></font></pre>
<pre><font face="UICTFontTextStyleTallBody"><span style="white-space:normal;background-color:rgba(255,255,255,0)">Best regards.</span></font></pre>
<pre><font face="UICTFontTextStyleTallBody"><span style="white-space:normal;background-color:rgba(255,255,255,0)">Ilane Karise</span></font></pre>
</div>
<div><br>
Em 7 de abr de 2017, às 11:41, Ashlesh Gawande (agawande) <<a href="mailto:agawande@memphis.edu" target="_blank">agawande@memphis.edu</a>> escreveu:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div id="m_-1769641285626669645m_-1606530918537718931divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p>For some reason this message got discarded by the mailing list. Did you get a Welcome message from Mini-NDN mailing list stating you can post (I don't remember if you have to confirm your subscription)?</p>
<br>
To modify NLSR conf file, look at the methods here:
<div><a href="https://github.com/named-data/mini-ndn/blob/master/ndn/nlsr.py#L166" class="m_-1769641285626669645m_-1606530918537718931OWAAutoLink" id="m_-1769641285626669645m_-1606530918537718931LPlnk187572" target="_blank">https://github.com/named-data/<wbr>mini-ndn/blob/master/ndn/nlsr.<wbr>py#L166</a><br>
<br>
Now if you want to change the LSA refresh time:</div>
<div><a href="https://github.com/named-data/NLSR/blob/master/nlsr.conf#L22" class="m_-1769641285626669645m_-1606530918537718931OWAAutoLink" id="m_-1769641285626669645m_-1606530918537718931LPlnk745137" target="_blank"></a><a href="https://github.com/named-data/NLSR/blob/master/nlsr.conf#L12" class="m_-1769641285626669645m_-1606530918537718931OWAAutoLink" id="m_-1769641285626669645m_-1606530918537718931LPlnk22237" target="_blank">https://github.com/named-data/<wbr>NLSR/blob/master/nlsr.conf#L12</a><br>
</div>
<div><br>
</div>
<div>You can add this:</div>
<div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap">general
</span><span class="m_-1769641285626669645m_-1606530918537718931pl-k" style="box-sizing:border-box;color:rgb(167,29,93);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap">+=</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap">
</span><span class="m_-1769641285626669645m_-1606530918537718931pl-s" style="box-sizing:border-box;color:rgb(24,54,145);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap"><span class="m_-1769641285626669645m_-1606530918537718931pl-pds" style="box-sizing:border-box">"</span>
 lsa-refresh-time 1080</span><span class="m_-1769641285626669645m_-1606530918537718931pl-s" style="box-sizing:border-box;color:rgb(24,54,145);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap"><span class="m_-1769641285626669645m_-1606530918537718931pl-cce" style="box-sizing:border-box">\n</span><span class="m_-1769641285626669645m_-1606530918537718931pl-pds" style="box-sizing:border-box">"</span></span><br>
</div>
<div>before line 187:</div>
<div><a href="https://github.com/named-data/mini-ndn/blob/master/ndn/nlsr.py#L187" class="m_-1769641285626669645m_-1606530918537718931OWAAutoLink" id="m_-1769641285626669645m_-1606530918537718931LPlnk225477" style="font-size:12pt" target="_blank">https://github.com/named-data/<wbr>mini-ndn/blob/master/ndn/nlsr.<wbr>py#L187</a><br>
</div>
<div>Note that \n is important.</div>
<div><br>
If you want to change parameters in any other sections go that section method and add them in a similar way.</div>
<div>Once you have made the changes you would have to re-install Mini-NDN.</div>
<div>This would make the change in nlsr.conf of all the nodes.</div>
<div><br>
</div>
<div>In /tmp/<nodename>, if you make the changes there they would be overwritten by Mini-NDN.</div>
<div><br>
</div>
<div>Ashlesh<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_-1769641285626669645m_-1606530918537718931divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Ilane Karise <<a href="mailto:kariseilane@gmail.com" target="_blank">kariseilane@gmail.com</a>><br>
<b>Sent:</b> Thursday, April 6, 2017 5:57 PM<br>
<b>To:</b> <a href="mailto:mini-ndn@lists.cs.ucla.edu" target="_blank">mini-ndn@lists.cs.ucla.edu</a><br>
<b>Subject:</b> NLSR Configuration File</font>
<div> </div>
</div>
<div>
<div dir="ltr">Dear all,
<div><br>
</div>
<div>
<div>I am beginner in using Mini-NDN emulator and have encountered problem in</div>
<div>configuration of NLSR. </div>
</div>
<div><br>
</div>
<div>
<div>I know that Mini-NDN creates for me NFD and NLSR configuration files for each node, and they are located in the /tmp/<node-name> directory. However, I need to modify some NLSR configuration parameters and I'm not sure exactly where I can do this. I tried
 to edit the configuration file created in the /tmp directory, without success. I tried using the GUI to make modifications like site name or max-faces-per-prefix but none of that worked.</div>
<div><br>
</div>
<div>If anyone could help me with my problem I would be immensely grateful.</div>
</div>
<div><br>
</div>
<div>Best regards,</div>
<div><br>
</div>
<div>Ilane Karise</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>

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