<div dir="ltr"><div>Hi Lei</div><div><br></div><div>Interest packet should not carry payload. However, it has an ApplicationParameters field.</div><div>A typical design is that, publish your payload as a Data packet, then put the Data packet name in the 
ApplicationParameters field of the Interest.<br></div><div><br></div><div>A concrete example: suppose we want to send a command from the client to the server.<br><ol><li>The client generates a Data packet /client-prefix/msg/4928 , puts the command in the Data payload, and signs the Data.</li><li>The client sends an Interest /server-prefix/notify , and the ApplicationParameters contains the name
/client-prefix/msg/4928 .</li><li>The server sends an Interest 
/client-prefix/msg/4928 to retrieve the Data packet.</li><li>The server verifies the signature of the payload Data packet, and executes the command.<br></li></ol></div><div>This example is taken from <a href="https://github.com/JonnyKong/ndn-python-repo/blob/17c806a7ce9a9512f3dd32f110a6ccd72a6eee01/ndn_python_repo/utils/pubsub.py">ndn-python-repo source code</a>. They call it "pub sub", but the above is how it actually works.<br></div><div><br></div><div>Yours, Junxiao<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 25, 2020 at 12:57 PM wangl <<a href="mailto:wangl@njnet.edu.cn">wangl@njnet.edu.cn</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">External Email<br>
<br>
Dear Mr./Ms.<br>
<br>
My name is Lei Wang.I am a graduate student of School of Cyber Science and<br>
Engineering , Southeast university.And my supervisor is Professer Guang<br>
Cheng.I am writing to consult method for carrying a data message in an<br>
interest message.<br>
<br>
I participated in a research project that needed to use the ndn-cxx<br>
library. In my work, I need to implement the function of carrying data<br>
messages in interest messages. I think there should be other researchers<br>
who need similar functions, so this function may already be implemented .<br>
Therefore, I hope i could receive some advice, if the code could be<br>
provided, I would be very grateful.<br>
<br>
Best wish for you!Thank you very much!<br>
<br>
  Best regards<br>
    Lei Wang<br>
<br>
</blockquote></div></div>