<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="">
nfd-dev mailing list is also a good option.<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-size-adjust: auto; -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-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
<span class="Apple-style-span" style="border-collapse: separate; 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; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
<div class=""><br class="Apple-interchange-newline">
Lan</div>
</div>
</span></div>
</div>
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Apr 10, 2017, at 8:06 AM, Ashlesh Gawande (agawande) <<a href="mailto:agawande@memphis.edu" class="">agawande@memphis.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div id="divtagdefaultwrapper" dir="ltr" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif;" class="">
<div style="margin-top: 0px; margin-bottom: 0px;" class="">I am not sure about this, perhaps ndn-interest mailing list is better place for this discussion.</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Ashlesh</div>
</div>
<hr tabindex="-1" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline-block; width: 726.171875px;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""></span>
<div id="divRplyFwdMsg" dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Ilane Karise <<a href="mailto:kariseilane@gmail.com" class="">kariseilane@gmail.com</a>><br class="">
<b class="">Sent:</b><span class="Apple-converted-space"> </span>Saturday, April 8, 2017 8:01:35 PM<br class="">
<b class="">To:</b><span class="Apple-converted-space"> </span>Ashlesh Gawande (agawande);
<a href="mailto:mini-ndn@lists.cs.ucla.edu" class="">mini-ndn@lists.cs.ucla.edu</a><br class="">
<b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: NLSR Configuration File</font>
<div class=""> </div>
</div>
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<div dir="auto" class="">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 class="">
<div class="gmail_quote">Em 8 de abr de 2017 22:49, "Ashlesh Gawande (agawande)" <<a href="mailto:agawande@memphis.edu" class="">agawande@memphis.edu</a>> escreveu:<br type="attribution" class="">
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;">
<div dir="auto" class="">
<div id="m_-1606530918537718931divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif;" class="">
<div style="margin-top: 0px; margin-bottom: 0px;" class="">There is no configuration option regarding the PIT in NFD's configuration file.</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">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.</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">1) Where to add PIT logging in NFD:</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><a href="https://github.com/named-data/NFD/blob/master/daemon/table/pit.cpp" class="m_-1606530918537718931OWAAutoLink" id="m_-1606530918537718931LPlnk582617" target="_blank">https://github.com/named-data/<wbr class="">NFD/blob/master/daemon/table/<wbr class="">pit.cpp</a><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">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_-1606530918537718931OWAAutoLink" id="m_-1606530918537718931LPlnk928962" target="_blank">https://named-data.net/<wbr class="">wp-content/uploads/2016/10/<wbr class="">ndn-0021-7-nfd-developer-<wbr class="">guide.pdf</a>):</div>
<p style="margin-top: 0px; margin-bottom: 0px;" class=""></p>
<div class="">To enable NFD logging in a new module, very few actions are required from the developer:</div>
<div class="">• include core/logger.hpp header file </div>
<div class="">• declare logging module using NFD_LOG_INIT(<u class=""></u>) macros <u class=""></u></div>
<div class=""><u class=""></u>• use NFD_LOG_<u class=""></u>(statement to log) in the source code<u class=""></u><u class=""></u></div>
So something like this can be added in pit.cpp:
<p style="margin-top: 0px; margin-bottom: 0px;" class=""></p>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">NFD_LOG_INIT("Pit");</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">3) How to turn it on in Mini-NDN:</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">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;" class=""> /usr/local/etc/ndn/nfd.<wbr class="">conf.sample</span>)
 add:</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Pit DEBUG</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">here: <a href="https://github.com/named-data/NFD/blob/master/nfd.conf.sample.in#L29" class="m_-1606530918537718931OWAAutoLink" id="m_-1606530918537718931LPlnk458130" target="_blank">https://github.com/<wbr class="">named-data/NFD/blob/master/<wbr class="">nfd.conf.sample.in#L29</a></div>
<div class=""><span class=""><span class="">Then check the logs in /tmp/<node-name>/<node-name>.<wbr class="">log</span></span></div>
<div class=""><span class=""><span class=""><br class="">
</span></span></div>
<div class=""><span class=""><span class="">Ashlesh</span></span></div>
</div>
<hr style="display: inline-block; width: 714.140625px;" class="">
<div id="m_-1606530918537718931divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Ilane Karise <<a href="mailto:kariseilane@gmail.com" target="_blank" class="">kariseilane@gmail.com</a>><br class="">
<b class="">Sent:</b><span class="Apple-converted-space"> </span>Saturday, April 8, 2017 7:08:59 PM<br class="">
<b class="">To:</b><span class="Apple-converted-space"> </span>Ashlesh Gawande (agawande)<br class="">
<b class="">Cc:</b><span class="Apple-converted-space"> </span><a href="mailto:mini-ndn@lists.cs.ucla.edu" target="_blank" class="">mini-ndn@lists.cs.ucla.edu</a><br class="">
<b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: NLSR Configuration File</font>
<div class=""> </div>
</div>
<div class="">
<div class="">
<pre class=""><font face="UICTFontTextStyleTallBody" class=""><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);" class="">Dear all,</span></font></pre>
<pre class=""><font face="UICTFontTextStyleTallBody" class=""><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);" class="">I am very grateful for your help.<br class=""></span></font></pre>
<pre class=""><font face="UICTFontTextStyleTallBody" class=""><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);" class="">I have another question.<span class="Apple-converted-space"> </span><br class=""></span></font></pre>
<pre class=""><font face="UICTFontTextStyleTallBody" class=""><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);" class="">I intend to emulate a interest flooding attack scenario. I've been looking at the NFD settings (/tmp/<node-name>/node-name.<wbr class="">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 class=""><font face="UICTFontTextStyleTallBody" class=""><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);" class=""><br class=""></span></font></pre>
<pre class=""><font face="UICTFontTextStyleTallBody" class=""><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);" class="">Best regards.</span></font></pre>
<pre class=""><font face="UICTFontTextStyleTallBody" class=""><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);" class="">Ilane Karise</span></font></pre>
</div>
<div class=""><br class="">
Em 7 de abr de 2017, às 11:41, Ashlesh Gawande (agawande) <<a href="mailto:agawande@memphis.edu" target="_blank" class="">agawande@memphis.edu</a>> escreveu:<br class="">
<br class="">
</div>
<blockquote type="cite" class="">
<div class="">
<div id="m_-1606530918537718931divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif;" class="">
<div style="margin-top: 0px; margin-bottom: 0px;" class="">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)?</div>
<br class="">
To modify NLSR conf file, look at the methods here:
<div class=""><a href="https://github.com/named-data/mini-ndn/blob/master/ndn/nlsr.py#L166" class="m_-1606530918537718931OWAAutoLink" id="m_-1606530918537718931LPlnk187572" target="_blank">https://github.com/named-data/<wbr class="">mini-ndn/blob/master/ndn/nlsr.<wbr class="">py#L166</a><br class="">
<br class="">
Now if you want to change the LSA refresh time:</div>
<div class=""><a href="https://github.com/named-data/NLSR/blob/master/nlsr.conf#L22" class="m_-1606530918537718931OWAAutoLink" id="m_-1606530918537718931LPlnk745137" target="_blank"></a><a href="https://github.com/named-data/NLSR/blob/master/nlsr.conf#L12" class="m_-1606530918537718931OWAAutoLink" id="m_-1606530918537718931LPlnk22237" target="_blank">https://github.com/named-data/<wbr class="">NLSR/blob/master/nlsr.conf#L12</a><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">You can add this:</div>
<div class=""><span style="color: rgb(36, 41, 46); font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; white-space: pre-wrap;" class="">general
</span><span class="m_-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;" class="">
</span><span class="m_-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_-1606530918537718931pl-pds" style="box-sizing: border-box;">"</span>
 lsa-refresh-time 1080</span><span class="m_-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_-1606530918537718931pl-cce" style="box-sizing: border-box;">\n</span><span class="m_-1606530918537718931pl-pds" style="box-sizing: border-box;">"</span></span><br class="">
</div>
<div class="">before line 187:</div>
<div class=""><a href="https://github.com/named-data/mini-ndn/blob/master/ndn/nlsr.py#L187" class="m_-1606530918537718931OWAAutoLink" id="m_-1606530918537718931LPlnk225477" target="_blank" style="font-size: 12pt;">https://github.com/named-data/<wbr class="">mini-ndn/blob/master/ndn/nlsr.<wbr class="">py#L187</a><br class="">
</div>
<div class="">Note that \n is important.</div>
<div class=""><br class="">
If you want to change parameters in any other sections go that section method and add them in a similar way.</div>
<div class="">Once you have made the changes you would have to re-install Mini-NDN.</div>
<div class="">This would make the change in nlsr.conf of all the nodes.</div>
<div class=""><br class="">
</div>
<div class="">In /tmp/<nodename>, if you make the changes there they would be overwritten by Mini-NDN.</div>
<div class=""><br class="">
</div>
<div class="">Ashlesh<br class="">
<div style="" class="">
<hr style="display: inline-block; width: 704.34375px;" class="">
<div id="m_-1606530918537718931divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Ilane Karise <<a href="mailto:kariseilane@gmail.com" target="_blank" class="">kariseilane@gmail.com</a>><br class="">
<b class="">Sent:</b><span class="Apple-converted-space"> </span>Thursday, April 6, 2017 5:57 PM<br class="">
<b class="">To:</b><span class="Apple-converted-space"> </span><a href="mailto:mini-ndn@lists.cs.ucla.edu" target="_blank" class="">mini-ndn@lists.cs.ucla.edu</a><br class="">
<b class="">Subject:</b><span class="Apple-converted-space"> </span>NLSR Configuration File</font>
<div class=""> </div>
</div>
<div class="">
<div dir="ltr" class="">Dear all,
<div class=""><br class="">
</div>
<div class="">
<div class="">I am beginner in using Mini-NDN emulator and have encountered problem in</div>
<div class="">configuration of NLSR. </div>
</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">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 class=""><br class="">
</div>
<div class="">If anyone could help me with my problem I would be immensely grateful.</div>
</div>
<div class=""><br class="">
</div>
<div class="">Best regards,</div>
<div class=""><br class="">
</div>
<div class="">Ilane Karise</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</div>
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Mini-NDN
 mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><a href="mailto:Mini-NDN@lists.cs.ucla.edu" class="">Mini-NDN@lists.cs.ucla.edu</a></span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn</a></span></div>
</blockquote>
</div>
<br class="">
</body>
</html>