Peer overlay design and implementation

Assignment Help Other Subject
Reference no: EM131978727

Distributed Systems: Principles and Development

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.

Note: you will need to check that the original file and the downloaded file are exactly the same. For example to open IPDPS2017.pdf of PPP1 and Download-IPDPS2017.pdf of PPP3, you will ensure the 2 files are the same without any corruption.

The attached example shows the equity between peers, that is, every peer is both a client and a server to share files. Your implementation must satisfy all the above requirements in order to get full marks.

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.

Submission

You need to provide the following files in your submission.

1. At least 3 peers in 3 individual folders, of which each folder contains:

• Files of Java source code of the implementation. The in-line comments on the data structure and program structure in the programs are required. These source code files must be able to be compiled by the standard JDK (Java Development Kit) or NetBeans from Oracle.
• The compiled Java class files of the source code. These Java classes must be runnable on the standard JRE (Java Runtime Environment) or NetBeans from Oracle.

• At least 1 file for file sharing test

2. A Microsoft Word document to address the issues as specified in Part 2 above.

All the required files must be compressed into a zip file for submission. You must submit your assignment via the online submission system from the unit web site.

Attachment:- assignment.rar

Reference no: EM131978727

Questions Cloud

Difference between securities broker and securities dealer : What is the difference between a securities broker and a securities dealer? please explain. Which is bigger, the bid price or the ask price? Why?
Compute the price of ecology labs common stock : Assume Ke, the required rate of return, goes up to 25 percent. What will be the new price? Compute the price of Ecology Labs' common stock.
What is the future value of all the costs of owning : What is the future value of all the costs of owning and operating this machine if the nominal interest rate is 9% compounded monthly?
Project earnings and dividends for next year : Project earnings and dividends for the next year (20X6). what is the anticipated stock price (P0) at the beginning of 20X6?
Peer overlay design and implementation : COIT20257-Distributed Systems: Principles and Development Peer-to-Peer Overlay - develop programming skills of peer via a particular application
Calculate the total debt ratio and long-term debt ratio : Calculate the total debt ratio and long-term debt ratio for each year.
What will happen with short and long term interest rates : What will happen with short and long term interest rates in 2019 (in the next 12 months)?
What are your winnings worth today : You just won a contest! You will receive $50,000 a year for 30 years, starting today. what are your winnings worth today?
What is the estimated real rate of interest : What is the estimated real rate of interest if the CPI is currently 2 percent?

Reviews

len1978727

5/10/2018 10:17:27 PM

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 Sub Total for Assignment 2 35 Late Penalty -1.75 (5% each calendar day, either full or partial)

len1978727

5/10/2018 10:17:16 PM

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 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

len1978727

5/10/2018 10:17:09 PM

All the required files must be compressed into a zip file for submission. You must submit your assignment via the online submission system from the unit web site. Any hardcopy or email submission will not be accepted. After the marked assignments are returned, any late submissions will not be accepted. The Marking Criteria 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

Other Subject Questions & Answers

  Discuss the client dont feel comfortable with the therapist

how to build a good therapeutic relationship with a client and what to do if the client don't feel comfortable with the therapist

  Does exposure to aggressive behavior in the environment

Does exposure to aggressive behavior in the environment (i.e. home, role models, caregivers, media - TV, movies, music, and video games), encourage or discourage aggressive behavior? (Refer to specific theories, models, and research of particular ..

  Define funds caused by pets and cryogenics

It is suffering from the drain on funds caused by Pets and Cryogenics and even though Albert has tried to update the company's image it continues

  What types of violence do women and girls face

In your lecture/readings and the film, the topic of violence against women and girls is discussed. What types of violence do women and girls face?

  Write down your three most important educational goals

Write down your three most important educational goals. Choose one of the three and write for ten minutes, explaining what the goal is, how you came to it and what you expect once you accomplish it.

  What were you wearing and how was your hair styled

What were you wearing and how was your hair styled? What kind of shoes, jewelry, or makeup were you wearing? How was your bedroom at home decorated? What were the colors? What was on the walls

  Develop a plan to implement the activities and program

Develop a plan to implement the activities and program and discuss the role of advance practice nursing.

  Comment on why you think it is significant to scrutinize

an important part of research is finding sources that can be trusted.comment on why you think it is important to

  Define the outline for your employee legal handbook

In a well-organized written paper, prepare and define the outline for your employee legal handbook in the state of Arizona

  What is congresss version of the office of management and

1. which of the following is true about congress?a in the nineteenth century service in congress was not a career for

  Explain the impact of gender and employment status

A researcher examined the impact of gender and employment status on mortality measured in the age at which an individual died

  Discuss the guidelines for gathering data

1. Discuss the guidelines for gathering data. 2. Determine the main specificities of an international logistic.

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