<div dir="ltr">Awesome, thanks! <div>Will let you know after I implement</div><div>Regards</div><div>Eme </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 15 Mar 2021 at 17:53, Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu">shijunxiao@email.arizona.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"><div dir="auto"><div>Hi Eme</div><div dir="auto"><br></div><div dir="auto">NDN packet format uses TLV structure: <a href="https://named-data.net/doc/NDN-packet-spec/current/tlv.html" target="_blank">https://named-data.net/doc/NDN-packet-spec/current/tlv.html</a></div><div dir="auto">A bit flag is indicated by the presence or absence of an TLV element.</div><div dir="auto">The CanBePrefix flag in the Interest is an example: if the flag is set, it's encoded as {0x21,0x00}; if the flag is cleared, it's encoded as nothing.</div><div dir="auto"><br></div><div dir="auto">You can certainly declare multiple fields using the method of <a href="https://lo.calho.st/posts/ndnsim-custom-fields/" target="_blank">https://lo.calho.st/posts/ndnsim-custom-fields/</a></div><div dir="auto">Make sure they have district tag number and TLV-TYPE number assignments.</div><div dir="auto"> </div><div dir="auto">Yours, Junxiao<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Mon, Mar 15, 2021, 08:38 Reasearch Associate <<a href="mailto:ra.vanets2019@gmail.com" target="_blank">ra.vanets2019@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"><p style="text-align:center"><font color="red"><strong>External Email</strong><br></font></p><div dir="ltr">Got it, thank you  <span style="color:rgb(32,33,36);font-size:0.875rem;font-weight:bold;letter-spacing:0.2px;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;white-space:nowrap">Junxiao</span><div><font color="#202124" face="Roboto, RobotoDraft, Helvetica, Arial, sans-serif"><span style="font-size:14px;letter-spacing:0.2px;white-space:nowrap">I have to add it in a hop-by-hop scenario. is it possible to add a single bit flag by using the method in the link. Two more things I want to clarify </span></font></div><div><font color="#202124" face="Roboto, RobotoDraft, Helvetica, Arial, sans-serif"><span style="font-size:14px;letter-spacing:0.2px;white-space:nowrap">1) can i use more than one tags.additional fields by using the prescribe method. </span></font></div><div><font color="#202124" face="Roboto, RobotoDraft, Helvetica, Arial, sans-serif"><span style="font-size:14px;letter-spacing:0.2px;white-space:nowrap">2) Where to set the flag either at the producer app/</span></font>strategy<span style="font-size:14px;letter-spacing:0.2px;white-space:nowrap;color:rgb(32,33,36);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif"> or in the forwarder file</span> Onoutgoingdata<span style="font-size:14px;letter-spacing:0.2px;white-space:nowrap;color:rgb(32,33,36);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif"> method.  </span></div><div><font color="#202124" face="Roboto, RobotoDraft, Helvetica, Arial, sans-serif"><span style="font-size:14px;letter-spacing:0.2px;white-space:nowrap">plz guide me if I am going out of track.</span></font></div><div><font color="#202124" face="Roboto, RobotoDraft, Helvetica, Arial, sans-serif"><span style="font-size:14px;letter-spacing:0.2px;white-space:nowrap">Best regards </span></font></div><div><font color="#202124" face="Roboto, RobotoDraft, Helvetica, Arial, sans-serif"><span style="font-size:14px;letter-spacing:0.2px;white-space:nowrap">Eme<br></span></font>  <br><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 15 Mar 2021 at 17:19, Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" rel="noreferrer" target="_blank">shijunxiao@email.arizona.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"><div dir="auto"><div>Hi Eme</div><div dir="auto"><br></div><div dir="auto">You didn't describe the semantics of these fields.</div><div dir="auto"><br></div><div dir="auto">If they are end-to-end and don't change in the network, it's easiest to include them as either a name component or in the Content payload.</div><div dir="auto"><br></div><div dir="auto">If they may change hop-by-hop, see:</div><div dir="auto"><a href="https://lo.calho.st/posts/ndnsim-custom-fields/" rel="noreferrer" target="_blank">https://lo.calho.st/posts/ndnsim-custom-fields/</a></div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Mon, Mar 15, 2021, 06:32 Reasearch Associate via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" rel="noreferrer" 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"><p style="text-align:center"><font color="red"><strong>External Email</strong><br></font></p><div dir="ltr">Hi <div>Dear experts, I need your help,</div><div>I want to add an additional two bit flag at the end of the data packet. </div><div>Is it possible to add an additional flag to the data packet if yes then how can I do so??</div><div><br></div><div>your contribution will be highly appreciated.</div><div> </div><div>Best regards</div><div>Eme</div></div><br>
</blockquote></div></div></div>
</blockquote></div>
</blockquote></div></div></div>
</blockquote></div>