<div dir="ltr">Hi,<div>If the packet length doesn't matter in your configuration, I advise you to add a Tag instead of a new Field to your packet, since according to ndnSIM design, the tag resides only in the memory. </div><div>Also, a Tag can be easily managed directly in the NFD machinery (forwarder class), contrary to a new field in either Interest or Data packets which are generally static objects.</div><div>Below references showing how to add a new Tag in the packet (HopCountTag which is already implemented in ndnSIM), and it works 100%:</div><div>   - <a href="https://www.lists.cs.ucla.edu/pipermail/ndnsim/2018-August/004913.html">https://www.lists.cs.ucla.edu/pipermail/ndnsim/2018-August/004913.html</a><br>   - <a href="https://github.com/named-data-ndnSIM/NFD/commit/0a30676920b9d3f2b2c8bc68e583befc415210cc">https://github.com/named-data-ndnSIM/NFD/commit/0a30676920b9d3f2b2c8bc68e583befc415210cc</a><br>   - <a href="https://github.com/named-data-ndnSIM/ndn-cxx/commit/d31b8ef523f4a5b152da88e3d5f47d5697d60772">https://github.com/named-data-ndnSIM/ndn-cxx/commit/d31b8ef523f4a5b152da88e3d5f47d5697d60772</a><br></div><div>Hope this helps.</div><div>Regards.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 4 mai 2021 à 05:44, Prajjwal Singh <<a href="mailto:csb17053@tezu.ac.in">csb17053@tezu.ac.in</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 dir="auto"><div style="font-family:sans-serif;font-size:12.8px" dir="auto">Hello everybody, </div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">I am trying to add a new field in interest packet and I want this field to persist throughout the network for each interest, (i.e. if a consumer sets this custom field to X in the interest packet, then it should be forwarded by all the routers to the producer with the custom field as X) </div><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">Previously I had used this tutorial to add the field in interest packet:<br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><a href="https://www.programmersought.com/article/14675398024/" style="text-decoration-line:none;color:rgb(66,133,244)" target="_blank">https://www.programmersought.com/article/14675398024/</a></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">Please point out what is lacking in this solution.</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">The main problem is that if i have the following topology</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">A--B--C--D </div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">(Where A is the Consumer and D is the Producer, and B and C are routers)</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">Then by the solution given in the above link the custom field set in A's generated Interest packet is reset to default value by B when it forwards the interest to C.  </div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">How can I make it carry the value intended by A?</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">Thanking you in advance</div><div style="color:rgb(136,136,136);font-family:sans-serif;font-size:12.8px" dir="auto"><div>Prajjwal Singh</div></div></div>
_______________________________________________<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"><div><br></div>-- <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>