You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A book finder system using Distributed Hash Table(DHT)
There are 2 main components of Distributed Hash Table in the design: 1)
Supernode and 2) DHT Node. A circular key space ranging from
0 to 2^m(1<=m<=64) is used.
A unique random id is assigned to each node joining the DHT by hashing the
node ip and port combination and divide the key space among the joining
nodes.
Hash Function: We are using MD5 hash to create the node id and key for the
book title. We are using a key space of 2^m and hence we take modulus of
resulted hash bytes with 2^m. This result could potentially cause collisions. As the
node id should be unique, therefore we are rehashing till we get the node id which
is not in the system.