Develop the simplified system of content distribution

Assignment Help Other Subject
Reference no: EM132373560

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 Peer-to-Peer (P2P) application - content distribution and distributed query. The application allows peers to form an overlay and share information from 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 queries a question, it will multicast a request including the question to the peer overlay and the peer that has the answer to the question to respond to the requester peer. 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.

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 (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).

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 port for answers.

6. To simplify the problem, we assume that the answer to a queried 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.

The following screenshots show an implementation of the system of content distribution and distributed query.

1. The 3 peers (with ID of PPP1, PPP2 and PPP3) join 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.

PPP1 joins (using port 7896 as the UDP port to receive answers)

In the above example, clicking the Set button will bring PPP1 into full function by joining the multicast group and initialising the service threads for querying questions and receiving answers.

PPP2 and PPP3 start and join the peer overlay in the same way as shown by the following screenshots.

2. The following screenshots show the single-answer examples:

PPP1 queries Question 2, only PPP2 has the answer and replies. Note: entering a question on PPP1's Question text field and clicking the Query button will multicast the question to the peer overlay and query to all the peers.

PPP2 queries Question 3, only PPP3 has the answer and replies.

PPP3 queries Question 1, only PPP1 has the answer and replies.

3. The following screenshots show the multiple-answers examples. Note the multiple-answer function is required by this assignment.

PPP1 queries Question 5, PPP2 and PPP3 have answers and reply.

The aforementioned examples have shown the equity between peers, that is, every peer is both a client and a server to share contents by distributed processing. Your implementation must satisfy all the aforementioned requirements in order to get the full mark.

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. 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 IDE from Oracle.

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. Any hardcopy or email submission will not be accepted. After the marked assignments are returned, any late submissions will not be accepted.

Attachment:- Distribution and Distributed Query.rar

Reference no: EM132373560

Questions Cloud

Change in net working capital : The December 31, 2015, balance sheet of Maria's Tennis Shop, Inc., showed current assets of $1,025 and current liabilities of $875.
Research paper on software methodologies : Prepare a research paper on topic software methodologies
What was the cash flow to stockholders for the year : What was the cash flow to stockholders for the year? (A negative answer should be indicated by a minus sign. Enter your answer in dollars
Cost of capital discount rate : Correctly calculate the NVP at 12% cost of capital discount rate. Include alums in assessment.
Develop the simplified system of content distribution : Peer-to-Peer Content Distribution and Distributed Query - Develop the simplified system of content distribution and distributed query
Estimate her taxable income : Estimate her taxable income. Estimate her tax liability. Estimate her tax refund or tax owed
Gross pay for a biweekly pay period : What is his gross pay for a biweekly pay period if he works 43.5 hours in the first week and 44 hours in the second week?
Present progressive tax structure in the united states : Compare the advantages and disadvantages of both the present progressive tax structure in the United States and the potential adoption of a flat-rate tax
What rate of return are you earning on this investment : You are analyzing an investment that requires you to pay $125,000 upfront. In return, you will receive $14,560 every year for 27 years.

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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