<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi!</div><div><br></div><div>1. CS is using a generalized data structure (trie: utils/trie/trie-with-policy.h), so that's why there is a word "payload", and not something specific.  In the context of content store, payload is the content store entry.</div><div><br></div><div>2. CS store entry contains data packet, which contains name</div><div><br></div><div>4. Ptr<Packet> is a general abstraction of a packet in NS-3 in general.  ndnSIM uses Interest and Data packets, which in version before 0.5 are actually so called "headers" that are added to Ptr<Packet>, and since 0.5 they are wrappers on top of Ptr<Packet> (which internally use "header" to add to packet).</div><div><br></div><div>By default, ndnSIM uses packet formats defined in the document that you linked.  In version 0.5 it is also possible to use other format (currently, the only other format is CCNx's ccnb)</div><div><br></div><div>5. I would recommend to check out version 0.5, since it got a little bit more straightforward, especially in this case.   CS stores Ptr<ContentObject> object, which internally has reference to it's payload (Ptr<Packet>) and wire format (also Ptr<Packet>).</div><div><br></div><div>Hope my answers didn't confuse you too much :)</div><div><br></div><div>---</div><div>Alex</div><br><div><div>On Jul 28, 2013, at 8:53 PM, 陈胜蓝 <<a href="mailto:blindeafer@163.com">blindeafer@163.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height: 1.7; font-size: 14px; font-family: arial; ">Hi All,<div><span style="line-height: 1.7;">I just know the payload in CS is a valid entry and learn the entry from some documents,it contains the content name and the content.</span><span style="line-height: 1.7;">There are some questions puzzled me these days.</span></div><div><span style="line-height: 1.7;">1.What is the relationship between payload and entry?</span></div><div><span style="line-height: 1.7;">2.whether the  entry containes the name of content in ndnSIM?</span></div><div><span style="line-height: 1.7;">3.If the second is true,whether the name of an entry in CS or the other two structures is the name of the node or the full name of content like some documents present?</span></div><div><span style="line-height: 1.7;">4.Whether all the ptr<packet> packets in ndnSIM are the same format like the </span><a href="http://ndnsim.net/ndnsim-packet-formats.html?">http://ndnsim.net/ndnsim-packet-formats.html?</a><span style="line-height:!
  1.7;">&n
 bsp;</span></div><div><span style="line-height: 1.7;">5.I read the ContentStoreIMpl::lookup(),what is the formats of </span>FullyFormedNdnPacket,Header and Packet form the three methods (node->payload ()->GetFullyFormedNdnPacket (),node->payload ()->GetHeader (),node->payload ()->GetPacket ())?</div><div><br></div><div>Thank you</div><div><br></div><div>Regards.</div></div></blockquote></div></body></html>