<div dir="ltr"><div>I just realized there's a simple way.</div><div>When installing NDN stack in ndnSIM, you could adjust the ndn-stack-helper to specify localURI so that the face you get is unique across all nodes.</div><div><a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/90d50396654dabad54b6979f2dc8fa929ade544c/helper/ndn-stack-helper.cpp#L248">https://github.com/named-data-ndnSIM/ndnSIM/blob/90d50396654dabad54b6979f2dc8fa929ade544c/helper/ndn-stack-helper.cpp#L248</a></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Mar 3, 2025 at 5:33 PM Sirapop Theeranantachai <<a href="mailto:sirapop741@gmail.com">sirapop741@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="auto"><div>Hi Mohammad,</div><div dir="auto"><br></div><div dir="auto">I do not have an easy solution right now. Since the forwarder is in NFD, it's a bit tricky to access the node name from ns-3::Node.</div><div dir="auto"><br></div><div dir="auto">One way to pass NodeID information is to make ndnSIM (which still has access to the node name) modify the part where it <a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/90d50396654dabad54b6979f2dc8fa929ade544c/model/ndn-net-device-transport.cpp#L127" target="_blank">converts ns-3 packets to NFD packets</a>. You could add an <a href="https://redmine.named-data.net/projects/nfd/wiki/NDNLPv2" target="_blank">NDNLPv2 </a>tag to the packet to pass along the node name. You may need to adjust the NFD's face transport to make it easier to modify the LP.</div><div>I have never tried this, but it should work in theory.</div><div><br></div><div>I hope someone else has a better solution.</div><div dir="auto"><br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Mon, Mar 3, 2025, 7:49 AM Mohammad R. Shakournia via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u><div><p>Dear ndnSIM community,<br></p><p>I am currently working on measuring CS and PIT lookup times in <b>Forwarder.cpp</b> by using a clock in the <b>onIncomingInterest</b> function. I log these measurements to separate output files for each node. However, I am facing an issue:<br></p><ol><li>The node names are <b>not appearing</b> in my output files.<br></li><li>When using tracers like <b>L3Tracer</b>, multiple faces are assigned to each node, making it difficult to map <b>faceId</b> to the corresponding <b>node name</b>, even with explicit mapping.<br></li></ol><p>I tried retrieving node names using <code>ns3::Names::FindName(node)</code>, but it does not always return the expected results. Could you please guide me on how to correctly obtain the <b>node name</b> in <b>Forwarder.cpp</b> and include it in my output logs?<br></p><p>Any insights or suggestions would be greatly appreciated.<br></p><p>Best regards,<br>Mohammad Reza Shakournia</p><div><br></div></div>_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" rel="noreferrer" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer noreferrer" target="_blank">https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div></div></div>
</div>
</blockquote></div>