Develop data structures - chord system

Assignment Help C/C++ Programming
Reference no: EM13240228

The Chord system is a structured peer-to-peer network architecture realizing a scalable distributed hash table. In Chord, the peers are organized as a ring. A position within Chord which is held by a computing node is called an index node or simply a peer. Each index node has a finger table, and, in addition, holds any data items associated with its own key value and any other data items associated with keys larger than the previous index node in the Chord ring.You may need to study the lecture notes, the relevant paragraphs in the text book, and relevant internet sources in order to acquire the level of understanding of CHORD required for this assignment. Commence the work on this assignment once you are confident to have understood how CHORD works.

Your task is to simulate the Chord system on a single computer as a single (non-parallelized, not multi-threaded) process. We will keep this task as simple as possible. The main objectives are:

• to understand how the nodes in Chord communicate.
• to understand how nodes are managed (added/removed) from the system.
• to understand the effects of adding and removal of index nodes.
• to understand how the finger table is computed and maintained.
• to understand how data distribution takes place in Chord.
• to understand how searching is done efficiently in Chord.
• to understand the concept of scalable code.

To keep the task as simple as possible, you are to write a single-threaded simulation (i.e. no additional threads are to be created during runtime). Follow the following guidelines:

Develop data structures which are suitable to hold required information for each peer in a CHORD system. Note that index nodes can hold local information only (I.e, an index nodes never knows of all the other index nodes).

Remember that your implementation is to simulate a distributed system. Do not make use of any global variables!

Attachment:- assn.zip

Reference no: EM13240228

Questions Cloud

Find the new shutter speed od camera : A camera takes a perfectly exposed picture when the lens diaphragm is set to f/4 and the shutter speed is 1/250 s, what should the new shutter speed be so that the exposure is still correct
Emperor’s shihuangdi elaborate tomb : Explain whether you think the emperor’s Shihuangdi elaborate tomb was motivated by power or religious beliefs.
Fredrick douglass an american slave defend : "In the long run, the opressor is also a victim" (Howard Zinn). Agree or disagree with this quotation using at least two specific exaples to defend your stance. Which is better book on race in america richards wright native son or fredrick douglass a..
Find the potential everywhere inside the box : A cubical box with sides of length a#consists of five metal plates which are welded together and grounded, Find the potential everywhere inside the box
Develop data structures - chord system : Develop data structures which are suitable to hold required information for each peer in a CHORD system. Note that index nodes can hold local information only
How far should she stand from the washington monument : A student has built a 20-cm-long pinhole camera for a science fair project. She wants to photograph the Washington Monument, How far should she stand from the Washington Monument
Compare an aspect of the tomb of emperor shihuangdi : Compare an aspect of the tomb of Emperor Shihuangdi with the burial tombs of other cultures, such as Egypt or Mesopotamia.
Determine exposure time should be used with camera b : Camera A has a lens with an aperture diameter of 8.30mm, What exposure time should be used with camera B in photographing the same object with the same film if this camera has a lens with an aperture diameter of 23.5mm
Loyalists-washington’s troops trapped cornwallis’s army : One British principle of government valued by the American colonists was the...? In late summer of 1781, Washington’s troops trapped Cornwallis’s army at..? Which of the following describes Loyalists?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Repeat these questions by writing functions

Repeat these questions by writing functions that receive the arrays as constant reference parameters and return the appropriate values through the function name (via return statement). The function header could look like:

  Analyze the time complexity and space complexity

Develop a simple prototype version of algorithm in C++. Specifically, you will build an in-place, order reversal algorithm - analyze the time complexity and space complexity of your algorithm

  Design an algorithm to find the selling price

To make a profit, the prices of the items sold in a furniture store are marked up by 60%. Design an algorithm to find the selling price of an item sold at the furniture store. What information do you need to find the selling price?

  Display the array, the average and the number of days above

Write a program that stores the daily temperatures for the month of April in an array name dailytemp. Calculate the average temperature for the month and the count the number of days that the daily temperature was above the average.

  Write in c++ another overloaded operator

Write in C++ another overloaded operator to go in the program that has Treasury. Overload the forward slash /  so that in the main program, you can declare sale to be of type Treasury, and commission to be of type Treasury, and commispctage to be of ..

  First display the smallest volume and then the largest volum

first display the smallest volume and then the largest volume.

  Create a class called point3d

Create a class called Point3D to represent 3D point in space, a class called Sphere and a class called Cylinder. The sphere is characterized by its center point and the radius while the Cylinder can be characterized by its center point, radius and he..

  Write a recursive function that takes a string as parameter

Write a recursive function that takes a string as a parameter and prints its reversal in the same function in c++

  Illustrate example from ansi c programming language

Illustrate example from ANSI C programming language, without using nested procedures, to show the fact that "assignment-by-sharing in conjunction with quasi-dynamic object binding

  Preparing a high level language program

Describe the purpose of each step in preparing a high level language program for execution (editing, compiling, linking, and loading).  Include in your description the types of files created with each of the first three steps.?

  Program reads a number and prints all of its binary digit

Write a program that reads a number and prints all of its binary digits. Print the remainder number % 2, thenreplace the number with number / 2. Keep going until the number is 0.

  Generate two files of 100 by 100 mazes

Write a C++ program that opens a file representing an encoded maze and reads it

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd