Develop the simplified p2p file sharing system

Assignment Help JAVA Programming
Reference no: EM131972128

The Assignment Specification and Marking Criteria Peer-to-Peer Overlay and File Sharing

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 programming skills of peer via a particular application - Peer- to-Peer Overlay and File Sharing. Among many Peer-to-Peer (P2P) applications, file sharing is a typical application to share available files across all peers of an 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 files of a peer can be shared by any other peers. When a peer needs a file, it will multicast the file name to the peer overlay and the peer that has the file will upload the file to the requester peer. To search for a file, a UDP datagram via IP multicast is used. Once the file is found, upload/download of the file is to use TCP streaming to fit for any possible type and length of the file. To complete this assignment, you need to complete the following 2 parts.

Part 1: Peer overlay design and implementation

In this part, you are to develop the simplified P2P file sharing system. The assumptions on the system are specified as follows.

1. Peers form a networking overlay by 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).

2. Each peer has a unique ID.

3. Each peer has a number of files that can be shared by other peers.

4. Each peer can multicast a file sharing request to all other peers in the overlay. To simplify the problem, we assume that the request file can always be found and can only be found from a single peer.

5. Once the file is found, the requester peer (the one who requests the file) will download the file from the supplier peer (the one who possesses the file).

6. The shared files can be in any type and any length.

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

The following screenshots show an implementation of the above file sharing system.

1. The 3 peers (with ID of PPP1, PPP2 and PPP3) joined the same IP multicast group. Note: 228.5.6.7 and 8888 are the IP multicast address and port number that were used in this example.

2. At the beginning, PPP1 has the file IPDPS2017.pdf, PPP2 has the file CloudComputing.jpg and PPP3 has the file OneMoreNight.mp3.

3. PPP1 requests CloudComputing.jpg, which is found in PPP2 and then downloaded from PPP2 into PPP1.

4. PPP2 requests OneMoreNight.mp3, which is found in PPP3 and then downloaded from PPP3 into PPP2.

5. PPP3 requests IPDPS2017.pdf, which is found in PPP1 and then downloaded from PPP1 into PPP3.

Part 2: Documentation

After 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. The key issues about upgrading a client and a server to a peer and overlay forming.

Attachment:- assignment.zip

Verified Expert

In this assignment we have studied thread and multi casting socket programming.Here we also faced the challenges and issue related to client/server architecture.Here, we have developed two application .First multicast application developed for message sending and other multicast application developed for image sharing.

Reference no: EM131972128

Questions Cloud

Prepare the Annual Report for The Indian Odyssey : AYB 339 Accountancy Capstone Assignment - Integrated Case Study. Prepare the 2017 Annual Report for The Indian Odyssey Unit Trust in Microsoft Word
Calculate the value of the companys ending inventory : Calculate the value of the company's ending inventory using the lower-of-cost-or-market method applied to each item of inventory.
Determining a linear correlation : In a test of a weight loss program, weights of 40 subjects are recorded before and after the program. Assume that the before/after weights result in r = 0.876.
What was ryde and rowes operating income for january : The Ryde and Rowe Inc. had the following account balances as of January 1. What was Ryde and Rowe's operating income for January?
Develop the simplified p2p file sharing system : develop the simplified P2P file sharing system - A peer needs to ignore the requests from itself because by default IP multicast sends a message to every peer
What is the present value of the building : ussell Company has acquired a building with a loan that requires payments of $18,500 every six months for 3 years. What is the present value of the building?
Why you might expect to observe a negative correlation : Explain why you might expect to observe a negative correlation between financial leverage and operating leverage. Select which of the following statements.
What are the current carrying costs : The relevant carrying cost per switch assembly is $11.00, and the fixed order cost is $1,350.
How many miles russell needs to drive to break even : Russell Preston delivers parts for several local auto parts stores. Determine how many miles Russell needs to drive to break even.

Reviews

len1972128

5/5/2018 7:58:59 AM

As the latest assignment result, there is too much hard-coded and should better to use data in an arraylist and fetch accordingly. Therefore, please check carefully about The Marking Criteria and use appropriate program level. Please find attached document for some useful materials.

len1972128

5/5/2018 7:58:46 AM

Sub Total for Assignment 2 35 Late Penalty -1.75 (5% each calendar day, either full or partial) Plagiarism Penalty Total for Assignment 2

len1972128

5/5/2018 7:58:40 AM

11. Whether the 3 test peers and their share files are provided 3 12. Whether the source code is readable 2 13. Whether necessary in-line comments are provided 2 Part 2: Documentation 6 1. Whether the instruction covers compiling and starting of the application 2 2. Whether the instruction covers the tests of file sharing 2 3. Whether the key issues about upgrading a client and a server to a peer and overlay forming are addressed 2

len1972128

5/5/2018 7:58:32 AM

5. Whether a peer is able to multicast a file sharing request by using a UDP datagram 2 6. Whether the request encapsulates a peer’s ID, TCP port and file name 3 7. Whether the request from a peer itself is ignored 2 8. Whether any type of files can be transferred between any peers 3 9. Whether a service thread is used when necessary 2 10. Whether the application is compilable and runnable 2

len1972128

5/5/2018 7:58:26 AM

Marking Criteria Available Marks Part 1: Peer overlay design and implementation 29 1. Whether the peer is able to take the role of being both a client and a server 2 2. Whether the general structure of peer is sound 2 3. Whether the overlay in terms of 2 communication channels, one for multicast and the other for file transfer, is structured correctly 2 4. Whether a peer is able to create and join the IP multicast group 2

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