GithubHelp home page GithubHelp logo

chordp2p's Introduction

ChordP2P

We have implemented the chord protocol, which is a distributed lookup protocol that addresses the problem of determining the location of a node that stores a desired data item efficiently. Given a key, Chord maps the key onto a node. Data location can be easily implemented on top of Chord by associating a key with each data item, and storing the key/data pair at the node to which the key maps. Chord adapts efficiently as nodes join and leave the system, and can answer queries even if the system is continuously changing.

What is working

We have implemented the chord protocol as described in the paper. Periodically running fix_fingers and stabilize to ensure that the values stored in the DHT is accurate and also so it is resilient to failures.

Getting Started

Input : Two parameters are inputted, numNodes which is the number of nodes in the network and numReqs, which is the number if requests each node should making

Output : After setting up the n/w each node makes numReqs number of requests and the number of hops for each of these is calculated and the average is calculated

Running the code

$ mix run proj3.exs 1000 10

Results

Result for running 1000 nodes with 10 requests each, gave us an average hop count of 4.8444

Running the code for Bonus question

$ mix run proj3_bonus.exs 100 2 0.1

Results

Result for running 100 nodes with 2 requests each, and killing 10% of the nodes gave us an average hop count of 6.01

Largest Problem Solved

The largest network we ran was for 10,000 nodes for 2 requests each, giving us a average hop count of 5.9844

Authors

  • Aditi Malladi
  • Suraj Kumar Reddy Thanugundla

chordp2p's People

Contributors

aditimalladi avatar aditim5 avatar surajreddy6 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.