[ndnSIM] How to modify the contents of the Interest package?
Spyridon (Spyros) Mastorakis
mastorakis at cs.ucla.edu
Wed Aug 8 20:58:43 PDT 2018
True, one can change NDNLP tag info at each hop.
Of course ndnSIM has NDNLP :-)
We also have some example implementation here:
https://github.com/named-data-ndnSIM/NFD/commit/0a30676920b9d3f2b2c8bc68e583befc415210cc <https://github.com/named-data-ndnSIM/NFD/commit/0a30676920b9d3f2b2c8bc68e583befc415210cc>
https://github.com/named-data-ndnSIM/ndn-cxx/commit/d31b8ef523f4a5b152da88e3d5f47d5697d60772 <https://github.com/named-data-ndnSIM/ndn-cxx/commit/d31b8ef523f4a5b152da88e3d5f47d5697d60772>
Thanks,
Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA
> On Aug 8, 2018, at 8:53 PM, Lixia Zhang <lixia at cs.ucla.edu> wrote:
>
> Ming, I dont know exactly what kind of info you wanted to modify or attach to an Interest packet, another option besides Spyros suggestion could be carrying your info in NDNLP-equivalent way.
> (forgive me: I do not know whether ndnSIM has NDNLP, Spyros does)
>
>> On Aug 8, 2018, at 8:48 PM, Spyridon (Spyros) Mastorakis <mastorakis at cs.ucla.edu <mailto:mastorakis at cs.ucla.edu>> wrote:
>>
>> Hi,
>>
>>> On Aug 8, 2018, at 3:28 AM, Ming <mingdeyou at 126.com <mailto:mingdeyou at 126.com>> wrote:
>>>
>>> Hello everyone,
>>> I have a few questions that needs you help!
>>> 1. How to modify the contents of the Interest package before the node forwards the Interest?Or can Interest packet be modified?
>>> ndnSIM 2.5 ‘s API uses "const" passing the Interest pointer to each function.So I don't know how to do it.
>>
>> There is a very good reason that all the methods in the forwarder class of NFD use const for Interests/Data packets. Because the forwarder is not supposed to change the packets at that point of the execution. I would suggest if you want to change Interests, create an application that could do that.
>>
>>> 2. A node how to sending information to its neighbors? In what form should I send this information? Which class or function should I use?
>>
>> Make sure that all the node's neighbors run a producer app that has registered a specific prefix. The node should run a consumer app to send Interests for the registered prefix. Please take a look at the existing consumer and producer app implementation in ndnSIM.
>>
>> Hope that this helps,
>>
>> Spyridon (Spyros) Mastorakis
>> Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
>> Internet Research Laboratory
>> Computer Science Department
>> UCLA
>>
>>
>>
>> _______________________________________________
>> ndnSIM mailing list
>> ndnSIM at lists.cs.ucla.edu <mailto:ndnSIM at lists.cs.ucla.edu>
>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180808/5be2da87/attachment-0001.html>
More information about the ndnSIM
mailing list