<div dir="auto">Hi Samar<div dir="auto"><br><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div><br></div><div>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. </div><div><br></div><div>There is a code in the following link </div><div><a href="https://github.com/ndncomm/nfd-caching-policies/blob/2ed1d1630f441f0b20fc004d2f74577363a0a967/daemon/table/cs-consumer-closest-decision-policy.cpp" target="_blank" rel="noreferrer">https://github.com/ndncomm/nfd-caching-policies/blob/2ed1d1630f441f0b20fc004d2f74577363a0a967/daemon/table/cs-consumer-closest-decision-policy.cpp</a></div><div><br></div><div>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?  </div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">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).</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div> </div><div>Another question regarding the content-type within the data metadata information(in the tlv file ).</div><div>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?</div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Yes, producer can set any ContentType.</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div></div>