This project aim to develop Decentralized peer-to-peer (P2P) file sharing system based hashing function to distribute files on server.
Decentralized-p2p-Sharing-System has two components:
- A Decentralized indexing server: Decentralized Index Server act as a server as well as broker for another Index Server to maintain a decentralized registry of connected peer information. Each Index Server keeps its connected peer information like peername, peerfiles list name, replication server etc. in a registry object.
Operations:
registry(peer id, file name, ...) -- invoked by a peer to register all its files with the indexing server. The server then builds the index for the peer. Other sophisticated algorithms such as automatic indexing are not required, but feel free to do whatever is reasonable. You may provide optional information to the server to make it more 'real', such as the clients’ bandwidth, etc.
search(file name) -- this procedure should search the index and return all the matching peers to the requestor.
- A peer: A peer is both a client and a server. As a client, the user specifies a file name with the indexing server using "lookup". The indexing server returns a list of all other peers that hold the file. The user can pick one such peer and the client then connects to this peer and downloads the file. As a server, the peer waits for requests from other peers and sends the requested file
Detailed Description of design is documented in Design.pdf
Please follow the steps given in Manual.pdf
Detailed benchmark is given in Performance.pdf