Develop a particular Peer-to-Peer application

Assignment Help JAVA Programming
Reference no: EM132512952

Assignment - Peer-to-Peer Content Distribution and Distributed Query

The application background

In distributed computing, a peer is both a client and a server at the same time, being able to request services from other peers or providing services to other peers. For the general knowledge about peer, you can read the following academic article.

Rodrigues, R., Druschel, P., 2010. Peer-to-Peer Systems, Communications of the ACM. 53(10), 72- 82.

In this assignment, you are to develop a particular Peer-to-Peer (P2P) application - content distribution and distributed query. The application allows peers to form an overlay and share information on the entire peer overlay. In this assignment, you will need to upgrade a client and a server into a peer. The peers are to form an overlay by IP multicast and the information stored in a peer can be shared by any other peers. When a peer (requester) queries a question, it multicasts a request including the question to the peer overlay. Any peers (repliers) that have an answer to the question will respond to the requester. To query a question, a UDP datagram via IP multicast is used.

Once the answer is found, replying the answer is to use another separate UDP communication between the requester and the replier. To complete this assignment, you need to complete the following 2 parts. In addition to multithreading and UDP packets, IP multicast must be used to form the peer overlay. Thus, you will need to review IP multicast (reference to Chapter 4.4 of the textbook, Week 5 lecture slides, Week 6 lab projects, and search for other academic articles about IP multicast if necessary) before starting this assignment. Client/server model is also used for this assignment as a peer is a client and a server at the same time.

Part 1: Peer overlay design and implementation

In this part, you are to develop the simplified system of content distribution and distributed query. The assumptions on the system are specified as follows.

1. Each peer has a unique ID.

2. Peers form a networking overlay by IP multicast.

3. Each peer has a number of answers to some questions that can be shared by other peers.

4. Once a peer has a question, it needs to compose a request, including the question and communication information such as the reply IP address and port number.

5. Each peer can multicast a query request to all other peers in the overlay. After that, the peer is waiting on the reply port for answers.

6. To simplify the problem, we assume that the answer to a query question can always be found from at least one peer.

7. Once the answer to the question is found, the replier peer (the one who has the answer) will use a UDP datagram to send the answer to the requester peer (the one who asks the question).

8. A peer needs to ignore the requests from itself because by default IP multicast sends a message to every peer on the overlay.

Part 2: Documentation

On completion of the implementation of the framework, prepare a document to include:

1. An end user' instruction about how to compile, run and test your system.

2. Description of key potential problems with IP multicast.

Attachment:- Assignment File - Peer-to-Peer Content Distribution and Distributed Query.rar

Reference no: EM132512952

Questions Cloud

Monitoring the marketing strategies and tactics : NatureCare Products - Case Study: Monitoring the marketing strategies and tactics - Have the NatureCare Products brand widely recognized amongst consumers
Discuss when a search warrant is needed by law enforcement : The Fourth Amendment protects individuals against unreasonable searches of their property and persons. It also prevents law enforcement from making unlawful.
Are regulatory agencies doing an effective job : On the whole, do you believe that the federal government and its regulatory agencies are doing an effective job of policing white collar crime?
What is the carrying amount of the receivables on december : What is the carrying amount of the receivables on December 31, 2017; May 11, 2018; and November 12, 2018
Develop a particular Peer-to-Peer application : In this assignment, you are to develop a particular Peer-to-Peer (P2P) application - content distribution and distributed query
Discuss the likelihood of a lawsuit against the therapist : Determine whether or not the release of the taped therapy sessions violates the American Psychological Association's Code of Ethics (refer to Table 12.1).
Prepare required journal entries to record each transactions : Prepare the required journal entries to record each of the above transactions. On December 31, 2017, when its accounts receivable were $354,000
Compare occupational crimes versus avocational crimes : Compare and contrast occupational crimes versus avocational crimes. Analyze the elements most often associated with political white-collar crime to determine.
Describe the entrepreneurial crime you researched : Briefly describe the entrepreneurial crime you researched. Discuss how the psychological characteristics of individuals and accounting opportunities.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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