<div dir="auto">Hi Marwa<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>1- In the content store you are using skip lists and hash tables in older versions 0.7.x, is the skip lists and hash tables have the ability to store the data packets? </div><div>because in the repository the btrees have been used, why? I,m confused about this point.</div></div></blockquote></div><div dir="auto"><br></div><div dir="auto">Typically the Content Store has an <b>index</b> pointing to packet buffers.</div><div dir="auto">When someone says the CS is a hash table, tree, trie, skip list, etc, it refers to the structure of the index.</div><div dir="auto"><br></div><div dir="auto">The packets themselves are stored in buffers elsewhere.</div><div dir="auto">In NFD, buffers are allocated via malloc; in NDN-DPDK, buffers are fetched from a pre-allocated mempool; I don't know how ccnd handles buffers.</div><div dir="auto"><br></div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>2- why the number of contents have been used to measure the capacity of the content store and not something like (200MB, 300MB, ...)? </div></div></blockquote></div><div dir="auto"><br></div><div dir="auto">As I described above, a forwarder stores packets in buffers.</div><div dir="auto">In both NFD and NDN-DPDK, a buffer is allocated before receiving the packet from a socket or Ethernet adapter, and the packet stays in the same buffer until it's evicted / deleted.</div><div dir="auto">Since the packet length is unknown before receiving, every buffer must be able to accommodate the maximum packet length (around 9KB).</div><div dir="auto"><br></div><div dir="auto">As such, the CS capacity in bytes equals the CS capacity in packets multiplied by the maximum packet length.</div><div dir="auto">It has nothing to do with the actual packet length.</div><div dir="auto">In this case, it's easier to measure CS capacity in packets.</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div><div class="gmail_quote" dir="auto"></div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><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 dir="auto"><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div></div>
</blockquote></div>
</blockquote></div></div>