[Ndn-interest] NDN data structures for FIB, PIT, CS
shijunxiao at email.arizona.edu
Fri Apr 13 13:52:10 PDT 2018
I was curious about the default data structures used by NDN tables. I was
> wandering if there is any RFC that states the structure to be used in ICN.
Choice of data structure is an implementation choice. An NDN node can use
any data structure as long as it can fulfill the requirements of NDN
protocol (see http://hdl.handle.net/10150/625652 chapter 3).
RFCs should describe the protocol requirements. RFCs should not constrain
data structure choice.
According to my findings in the NDN code, the structure used are Red-Black
> Trees for Content Stores and Hashing Tables[1,2] for FIB and PIT.
>  Hashtable m_ht;: nano daemon/table/name-tree.hpp
>  Hashtable: daemon/tree/name-tree-hashtables.hpp
>  Fib: NameTree daemon/table/fib.hpp
> : NameTree daemon/table/pit.hpp
>  typedef std::set<EntryImpl> Table; daemon/table/cs.hpp
These are NFD's choices, but not necessarily the best choices.
It's possible to use hash tables for all three tables, as described in Named
data networking on a router: Fast and DoS-resistant forwarding with hash
It's also possible to use a single tree for all three tables, as done in ccnd
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ndn-interest