<div dir="ltr"><div>Hi,</div><div>How many route nodes do you have in your scenario ? If there is only one, you can identify it by its number (Node ID), print out its hop count from the producer (HopCountTag) one the data packet is received by this router (OnReceiveData), and finally what you ask for is the difference between the HopCountTag of the consumer and the HopCountTag of the router.</div><div>Hope that helps. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 6 janv. 2021 à 10:18, L via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a>> a écrit :<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 style="line-height:1.7;color:rgb(0,0,0);font-size:14px;font-family:Arial"><div style="margin:0px">Hello, everyone</div><div style="margin:0px"> I know that <i>hopCount</i> can be used to calculate the number of hops passed by the <i>Data</i> packet from the producer to the consumer, but when the <i>Interest</i> packet is satisfied in the route node, that is to say, the route node caches the corresponding <i>Data</i> packet. How should I get the number of hops that the packet has reached the consumer?</div><div style="margin:0px">Best wishes,</div><div style="margin:0px">Zhen</div></div><br><br><span title="neteasefooter"><p> </p></span>_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Mr DJAMA Adel<br></div><div>Phd student </div><div>Ecole Militaire Polytechnique</div><div>Algiers 16046, ALGERIA</div></div></div>