<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi huyao,</div><div><br></div><div>(1) The application is fully responsible to put the nonce into the interests. ndn::Consumer-based applications put nonce from uniform distribution (<a href="https://github.com/NDN-Routing/ndnSIM/blob/master/apps/ndn-consumer.cc#L206">https://github.com/NDN-Routing/ndnSIM/blob/master/apps/ndn-consumer.cc#L206</a>)</div><div><br></div><div>(2) There is  GetNonce() method for ndn::Interest class</div><div><br></div><div>(3) If you write your own app, you just set nonce using SetNonce method.  If you want to reuse existing consumers, then you probably need to change their implementation to some extent.</div><div><br></div><div>---</div><div>Alex</div><br><div><div>On Apr 28, 2013, at 7:06 AM, yao hu <<a href="mailto:huyao0107@gmail.com">huyao0107@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi Alex,<div><br></div><div style="">ndnsim documents says nonce field is filled with a value of <span style="font-size: 12px; line-height: 14px; ">uint32_t type. Could you please tell </span></div>
<div style=""><span style="font-size: 12px; line-height: 14px; "><br></span></div><div style=""><span style="font-size: 12px; line-height: 14px; ">(1) what value is filled in nonce field in the current Interest packet implementation. </span></div>
<div style=""><span style="font-size: 12px; line-height: 14px; "><br></span></div><div style=""><span style="font-size: 12px; line-height: 14px; ">(2) how to get the nonce value when receiving Interest packet?</span></div>
<div style=""><span style="font-size: 12px; line-height: 14px; "><br></span></div><div style=""><span style="font-size: 12px; line-height: 14px; ">(3) is it possible to fill a self-defined value into nonce field?</span></div>
<div style=""><span style="font-size: 12px; line-height: 14px; "><br></span></div><div style=""><span style="font-size: 12px; line-height: 14px; ">Thanks very much!</span></div><div style=""><span style="font-size: 12px; line-height: 14px; "><br>
</span></div><div style=""><span style="font-size: 12px; line-height: 14px; ">Regards,</span></div><div style=""><span style="font-size: 12px; line-height: 14px; ">huyao</span></div></div>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br></blockquote></div><br></body></html>