[ndnSIM] attach arbitrary information to Interest/Data packet

Spyridon (Spyros) Mastorakis mastorakis at CS.UCLA.EDU
Tue Dec 27 11:16:38 PST 2016


Hi Teng,

a solution is to add the information as an NDNLPv2 tag. You can take a look at the following commits, where I have done the same thing for the HopCount tag for the latest ndnSIM release:

https://github.com/named-data-ndnSIM/ndnSIM/commit/73df9f587e1c16c4f67a0053fe29b68f523ff138
https://github.com/named-data-ndnSIM/ndn-cxx/commit/e53204419c51356dab70e0e5450ff5dcf587827a
https://github.com/named-data-ndnSIM/NFD/commit/d0abae38024a6aecf6f956f4bbea36f4a9ff6d6f

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

> On Dec 27, 2016, at 8:00 AM, Teng Liang <philoliang at email.arizona.edu> wrote:
> 
> Hi everybody,
> 
> Are there any easy approaches to attaching arbitrary information to Interest/Data packet, so that forwarding strategy can read? 
> 
> As the information may change hop-by-hop, it is improper to be put in Name. One possible solution is customized tag. How much effort to create one?
> 
> Thanks,
> Teng
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161227/51aabb50/attachment.html>


More information about the ndnSIM mailing list