Developed a Simple Distributed Hash Table based on Chord protocol with below features:
- ID space partitioning/re-partitioning
- ring-based routing
- node joins
Chord DHT is a distributed hash table using consistent hashing which organizes the nodes in a ring.
-
PA Specification: https://docs.google.com/document/d/1Y24TKLiBYLHk7hKFgHy2zQJI3UTHkBbNJ7mGYkwyy6E/edit
-
Testing scripts and instructions are provided in the specification document.
- Represent the hash Key space as a virtual ring.
- Use the SHA-1 hash function that evenly distributes items over hash space.
- Maps the nodes(5 in this project) to buckets in the same ring, i.e a node is responsible for all the hash keys after the previous node's hash.
- A data item is hashed and stored on the node responsible for the hash (which the succesor node).
- Each node maintains the successor nodes and any query request is routed from one node to other node in a ring. (Finger tables are not in scope)
- A node can join the system by requesting the first node of the system which hashes the node to ID space and broadcasts the message to other nodes. (Concurrent node joins are not in scope)
- The predecessor of the new node and new node updates the pointer succesor node and all the keys belonging to the new node are transferred by the new node successor.
- Node failures are not in scope.