DHT Routing Table - Why use Buckets and not a map?
问题 Closest question to this I think. One obvious method of structuring a routing table is to simply maintain a literal table. Map(XOR,Node) Kademlia discusses the use of 'Buckets' which are organised by the most significant bit of the XOR. What is the actual purpose of 'buckets'? Why mess around with 'longest prefix' when we can simply hold the 'actual' XOR as a key in a map? Obviously the map could potentially be 2^160 large, but we could use some heuristics to limit the size of the map, rather