<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body dir="auto">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" 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="OWAAutoLink" id="LPlnk582617" previewremoved="true">https://github.com/named-data/NFD/blob/master/daemon/table/pit.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="OWAAutoLink" id="LPlnk928962" previewremoved="true">https://named-data.net/wp-content/uploads/2016/10/ndn-0021-7-nfd-developer-guide.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(<module name="">) macros </module></div>
<div><module name="">• use NFD_LOG_<level>(statement to log) in the source code</level></module></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/nfd.conf.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="OWAAutoLink" id="LPlnk458130" previewremoved="true">https://github.com/named-data/NFD/blob/master/nfd.conf.sample.in#L29</a></p>
<div><span><span>Then check the logs in /tmp/<node-name>/<node-name>.log</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%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Ilane Karise <kariseilane@gmail.com><br>
<b>Sent:</b> Saturday, April 8, 2017 7:08:59 PM<br>
<b>To:</b> Ashlesh Gawande (agawande)<br>
<b>Cc:</b> mini-ndn@lists.cs.ucla.edu<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>/node-name.conf) 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">agawande@memphis.edu</a>> escreveu:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div id="divtagdefaultwrapper" 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="OWAAutoLink" id="LPlnk187572" previewremoved="true">https://github.com/named-data/mini-ndn/blob/master/ndn/nlsr.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="OWAAutoLink" id="LPlnk745137" previewremoved="true"></a><a href="https://github.com/named-data/NLSR/blob/master/nlsr.conf#L12" class="OWAAutoLink" id="LPlnk22237" previewremoved="true">https://github.com/named-data/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;">general
</span><span class="pl-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;">+=</span><span style="color: rgb(36, 41, 46); font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; white-space: pre;">
</span><span class="pl-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;"><span class="pl-pds" style="box-sizing: border-box;">"</span>
 lsa-refresh-time 1080</span><span class="pl-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;"><span class="pl-cce" style="box-sizing: border-box;">\n</span><span class="pl-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="OWAAutoLink" id="LPlnk225477" style="font-size: 12pt;" previewremoved="true">https://github.com/named-data/mini-ndn/blob/master/ndn/nlsr.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 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> Ilane Karise <<a href="mailto:kariseilane@gmail.com">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">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>
</body>
</html>