[ndnSIM] Identify consumer connected nodes

Junxiao Shi shijunxiao at email.arizona.edu
Fri Feb 15 04:10:15 PST 2019

Hi Samar

> I need to implement a caching policy where I will cache the data in each
> node ( within the routing path ), if this node is directly connected to a
> consumer.
> There is a code in the following link
> https://github.com/ndncomm/nfd-caching-policies/blob/2ed1d1630f441f0b20fc004d2f74577363a0a967/daemon/table/cs-consumer-closest-decision-policy.cpp
> that cache the data near the requesting consumer, however, I need to cache
> it at any node (within the routing path) that is directly connected to any
> consumer. Is there any part of the node structure that can help me doing
> that?

If your topology is fixed (not ad hoc wireless network), you can know
whether a router is an edge router when the network is provisioned. Thus,
you can tag every ns3::Node accordingly (e.g. add a suffix in node name or
aggregate a custom tag class).

> Another question regarding the content-type within the data metadata
> information(in the tlv file ).
> I need to classify my data into two classes. Can I use (edit) the
> content-type to adde these new two types? Or I need to modify the fields
> and data class to add a new field there?

Yes, producer can set any ContentType.

Yours, Junxiao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20190215/46099821/attachment.html>

More information about the ndnSIM mailing list