[ndnSIM] Help Needed: Getting Node Name in Forwarder.cpp for Output Logging

Mohammad R. Shakournia shakournia at ut.ac.ir
Mon Mar 3 07:48:51 PST 2025


Dear ndnSIM community,




I am currently working on measuring CS and PIT lookup times in **Forwarder.cpp** by using a clock in the **onIncomingInterest** function. I log these measurements to separate output files for each node. However, I am facing an issue:





1. The node names are **not appearing** in my output files.

2. When using tracers like **L3Tracer**, multiple faces are assigned to each node, making it difficult to map **faceId** to the corresponding **node name**, even with explicit mapping.




I tried retrieving node names using ns3::Names::FindName(node), but it does not always return the expected results. Could you please guide me on how to correctly obtain the **node name** in **Forwarder.cpp** and include it in my output logs?




Any insights or suggestions would be greatly appreciated.




Best regards,
Mohammad Reza Shakournia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20250303/d935b25d/attachment.htm>


More information about the ndnSIM mailing list