<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello Yali,<div class=""><br class=""></div><div class="">I forward your email to the ndnSIM maliing list in order to be visible to all the ndnSIM users. </div><div class=""><br class=""></div><div class="">Regarding your question:</div><div class=""><br class=""></div><div class="">This error means that the packet, which is received, has a header that cannot be recognized by ndnSIM. ndnSIM implements the communication model of NDN where two types of packets are defined: The Interest and the data packet. Hello packets are not defined.</div><div class=""><br class=""></div><div class="">Therefore, if a packet is neither an Interest nor a Data packet, the communication paradigm is violated. </div><div class="">If you really want to exchange Hello packets though, you will need either to specify a special Interest packet for this purpose (i.e., change the Interest class) and handle this Interest packet in a special way or to hack somehow the wire encoding/decoding methods and the face class in order to encode, decode and accept, respectively, packets other than Interest and Data. </div><div class=""><br class=""></div><div class="">Hope this helps.</div><div class=""><br class=""></div><div class=""><div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">--</div><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Spyridon (Spyros) Mastorakis<br class=""></div><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Personal Website: <a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a></div><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Internet Research Laboratory</div><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">PhD Computer Science<br class="">UCLA</div><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><br class=""><br class=""></div></div></div></div></div></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Jan 15, 2015, at 4:54 PM, Yali Wang <<a href="mailto:ylwang@soe.ucsc.edu" class="">ylwang@soe.ucsc.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">Hello,<br class=""><br class="">I want to send to all neighbors the periodic Hello message(regular packet) via ndn-netdevice-face class, and it works fine. but it gets stuck on header part.<br class="">I don't know what to put in header part. Here is my definition of packet:<br class=""><br class="">m_packet = Create<Packet> (reinterpret_cast<const uint8_t*> (str), size);<br class=""><br class="">Ndnsim needs the wire encoding(0x01,0xD2 as interest-ccnb) to decide if receives the interest or data.  How to solve my issue?  I only want to send hello messages.<br class="">As below, it is error message from <a href="http://ndn-face.cc" class="">ndn-face.cc</a><br class=""><br class="">msg="Unknown NDN header. Should not happen", file=../src/ndnSIM/model/<a href="http://ndn-face.cc" class="">ndn-face.cc</a>, line=196<br class="">libc++abi.dylib: terminating with uncaught exception of type ns3::ndn::UnknownHeaderException<br class="">Command ['/Users/yawang/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-grid-topo-plugin-debug'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").<br class=""><br class=""><br class="">Thank you!<br class="">Yali<br class=""></div></blockquote></div><br class=""></div></body></html>