[Mini-NDN] NLSR Configuration File

Ilane Karise kariseilane at gmail.com
Mon Apr 10 06:59:03 PDT 2017


I am very grateful for your help.


Em 10 de abr de 2017 11:06, "Ashlesh Gawande (agawande)" <
agawande at memphis.edu> escreveu:

> I am not sure about this, perhaps ndn-interest mailing list is better
> place for this discussion.
>
>
> Ashlesh
> ------------------------------
> *From:* Ilane Karise <kariseilane at gmail.com>
> *Sent:* Saturday, April 8, 2017 8:01:35 PM
> *To:* Ashlesh Gawande (agawande); mini-ndn at lists.cs.ucla.edu
> *Subject:* Re: NLSR Configuration File
>
> 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?
>
> Em 8 de abr de 2017 22:49, "Ashlesh Gawande (agawande)" <
> agawande at memphis.edu> escreveu:
>
>> There is no configuration option regarding the PIT in NFD's configuration
>> file.
>>
>> 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.
>>
>>
>> 1) Where to add PIT logging in NFD:
>>
>> https://github.com/named-data/NFD/blob/master/daemon/table/pit.cpp
>>
>>
>> 2) How to add it (from NFD developer guide: https://named-data.net/
>> wp-content/uploads/2016/10/ndn-0021-7-nfd-developer-guide.pdf):
>>
>> To enable NFD logging in a new module, very few actions are required from
>> the developer:
>> • include core/logger.hpp header file
>> • declare logging module using NFD_LOG_INIT() macros
>> • use NFD_LOG_(statement to log) in the source code
>> So something like this can be added in pit.cpp:
>>
>> NFD_LOG_INIT("Pit");
>>
>>
>> 3) How to turn it on in Mini-NDN:
>>
>> In /usr/local/etc/ndn/nfd.conf (if this is not present, then
>>  /usr/local/etc/ndn/nfd.conf.sample) add:
>>
>> Pit DEBUG
>>
>> here: https://github.com/named-data/NFD/blob/master/nfd.
>> conf.sample.in#L29
>> Then check the logs in /tmp/<node-name>/<node-name>.log
>>
>> Ashlesh
>> ------------------------------
>> *From:* Ilane Karise <kariseilane at gmail.com>
>> *Sent:* Saturday, April 8, 2017 7:08:59 PM
>> *To:* Ashlesh Gawande (agawande)
>> *Cc:* mini-ndn at lists.cs.ucla.edu
>> *Subject:* Re: NLSR Configuration File
>>
>>
>> Dear all,
>>
>> I am very grateful for your help.
>>
>> I have another question.
>>
>> 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.
>>
>>
>> Best regards.
>>
>> Ilane Karise
>>
>>
>> Em 7 de abr de 2017, às 11:41, Ashlesh Gawande (agawande) <
>> agawande at memphis.edu> escreveu:
>>
>> 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)?
>>
>> To modify NLSR conf file, look at the methods here:
>> https://github.com/named-data/mini-ndn/blob/master/ndn/nlsr.py#L166
>>
>> Now if you want to change the LSA refresh time:
>> <https://github.com/named-data/NLSR/blob/master/nlsr.conf#L22>
>> https://github.com/named-data/NLSR/blob/master/nlsr.conf#L12
>>
>> You can add this:
>> general += " lsa-refresh-time 1080\n"
>> before line 187:
>> https://github.com/named-data/mini-ndn/blob/master/ndn/nlsr.py#L187
>> Note that \n is important.
>>
>> If you want to change parameters in any other sections go that section
>> method and add them in a similar way.
>> Once you have made the changes you would have to re-install Mini-NDN.
>> This would make the change in nlsr.conf of all the nodes.
>>
>> In /tmp/<nodename>, if you make the changes there they would be
>> overwritten by Mini-NDN.
>>
>> Ashlesh
>> ------------------------------
>> *From:* Ilane Karise <kariseilane at gmail.com>
>> *Sent:* Thursday, April 6, 2017 5:57 PM
>> *To:* mini-ndn at lists.cs.ucla.edu
>> *Subject:* NLSR Configuration File
>>
>> Dear all,
>>
>> I am beginner in using Mini-NDN emulator and have encountered problem in
>> configuration of NLSR.
>>
>> 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.
>>
>> If anyone could help me with my problem I would be immensely grateful.
>>
>> Best regards,
>>
>> Ilane Karise
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20170410/3d88dfc9/attachment.html>


More information about the Mini-NDN mailing list