Python implementation of CHORD P2P protocol with HeartBeat for finding fault tolerance
Run command:
python Node.py
It asks for IP,Port and N(parameter in CHORD Architecture). It opens a terminal(command line interface) for a node. You can now run different commands:
print
prints info about current nodecreate_ring
creates main Ringjoin <current_ip> <to_join_ip>
joins to P2P Architecture given ip of already existing node in Ringfind
finds next node in P2P Architectureadd_key <key>
add key in the DHTfind_key <key>
find node storing value for keyprint_table
prints whole key tableclose
removes node from P2P Architecture gracefully