Skip to content

Basic Distributed Hash Table with an architecture similar to Chord system

Notifications You must be signed in to change notification settings

sarangsawant/Chord-Distributed-Hash-Table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Implemented basic distributed hash table (DHT) with an architecture similar to the Chord System

Desciption:: Implemented following 6 server side methods

writeFile(): Given a name, owner, and contents, the corresponding file is written to the server.

readFile(): File with a given name and owner, server returns both the contents and meta-information.

setFingertable(): Sets the current node’s fingertable to the fingertable provided in the argument of the function.

findSucc(): Given an identifier in the DHT’s key space, returns the DHT node that owns the id.

findPred(): Given an identifier in the DHT’s key space, this function returns the DHT node that immediately precedes the id.

getNodeSucc(): Returns the closest DHT node that follows the current node in the Chord key space. A SystemException should be thrown if no fingertable exists for the current node.

Steps:

Initialize fingertable $./init node.txt