Design a central server algorithm for mutual exclusion

Assignment Help Other Subject
Reference no: EM132010200

In the assignment, you are to address some theoretical issues in the area of distributed systems or distributed computing. You will need to demonstrate your understanding of these theoretical issues or competence to apply these theoretical issues. These theoretical issues have been introduced by this unit through the textbook, weekly lectures or tutorials/labs. You will need to review these learning materials to address the following questions and prepare to do personal research if necessary.

Please note: copying from the unit learning materials or internet resources cannot show your understanding of the following issues, but may incur plagiarism or loss of marks. Thus you will need to address the following issues in your own word with proper citation and reference.

Question 1

1. Contrast UDP and TCP protocols in terms of reliability and overheads. Provide some examples of internet application to justify for what internet applications UDP or TCP is more appropriate.

2. Contrast multi-thread models: thread-per-request and thread-per-connection.

3. Assume you will need to design and implement a server to respond to UDP or TCP requests, justify which multi-thread model you will use to program such a server to respond to UDP or TCP.

Question 2
Compose an example to describe the procedure to digitally sign a document and verify the originality of the signed document.

Question 3
Design a central server algorithm for mutual exclusion based on the REQUEST PRIORITY. Based on your design, discuss the safety, liveness and ordering features of the algorithm.

Note: no marks will be given if the request priority is not considered in your algorithm. Detailed answers are required to justify your understanding.
You will need to review the generic central server algorithm, which is detailed on Week 8 lecture and Chapter 15 of the textbook.

Question 4
Address the following questions that are specific to the sample web service applications of Week 11 tutorial.

1. What is an end point? To access the end point from a web browser, what will be returned?

2. RPC style web service uses a convention to register target name space and service name, what is it? Note: you will need to refer to the WSDL document of Task 1 of Week 11 tutorial to address this question.

3. Refer to the HelloWorldClient.java, describe how to look up a web service and what is returned by the lookup

4. Task 2 or Week 11 tutorial introduces another way to create the HelloWorldClient with the aid of wsimport tool. Compare the HelloWorldClient in Task 1 and Task 2 to address why using wsimport tool is a better way to create the client of a web service.

5. Based on the practical programming tasks of web service of Week 11, address the main difference between web service and normal (or generic) client/server and the main role of web service.

Tutorial Questions

1. Review the conceptual structure of SOAP web service and explain the components of SOAP web service diagram in the lecture slides of this week.

Lab Project
The following tasks are to practise SOAP web service by building a simple JAX-WS Hello World application and monitoring the SOAP message exchange between a SOAP client and a SOAP endpoint.

Task 1:

1. Follow the Part 1 on JAX-WS Hello World Example - RPC Style by mkyong to build a NetBeans project, which includes
• The Hello World interface (HelloWorld.java)
• The Hello World implementation (HelloWorldImpl.java)
• The Hello World endpoint (HelloWorldPublisher.java)
• The Hello World client (HelloWorldClient.java)

2. Build the project and run the SOAP endpoint and then the SOAP client.

Note: to show your understanding of the SOAP client/server structure, the above Java classes should be organised into separate packages. If you have difficulties to create the project, you can download the project (SOAPSample.zip) from the Week 11 block of the unit web site.

Task 2:

1. Follow the Part 2 on JAX-WS Hello World Example - RPC Style by mkyong to use wsimport tool to automatically create the SOAP client side stub/proxy, which includes
• The Hello World interface (HelloWorld.java)
• The Hello World implementation (HelloWorldImplService.java)

2. Build another NetBeans project to include the above 2 Java classes and create another SOAP client. Please note in this soap client, HelloWorldImplService should be called.

3. Run the SOAP client.

Note: if you have difficulties to create the project, you can download the project (SOAPSample2.zip) from the Week 11 block of the unit web site.

Task 3:

To trace the SOAP traffic, you will need a simple tool TcpTrace, which can be downloaded from https://www.pocketsoap.com/tcptrace/. The TcpTrace is a TCP proxy that accepts a TCP request from a client and forwards it to the destination server. In return the TcpTrace forwards the server's response back to the client. When the traffic goes through the TcpTrace, the SOAP requests/responses are traced.

1. Download the TcpTrace from the above link.

2. Run the TcpTrace and set the proxy ports and destination server.

3. Change the SOAP endpoint in your SOAP client to the TcpTrace proxy port, e.g. 5858.

4. Build the project and run the SOAP client. You will see the traced SOAP message exchanges like the following screenshot.
Note: if you have difficulties to create the project, you can download the project (SOAPTraceSample.zip) from the Week 11 block of the unit web site.

Attachment:- Lab.rar

Reference no: EM132010200

Questions Cloud

Adjustment for a defined contribution pension plan : The pension adjustment for a Defined Contribution Pension Plan is calculated as [9 x Earnings Rate x Pensionable Earnings] - $600.
Determining the annualized return : Sally purchases a stock for $50 and receives a $2 dividend after six months, immediately after which she sells the stock for $55.
What type of life insurance would best suit his needs : He estimates that he won't need to draw down on his unregistered portfolio during his lifetime, and wishes to preserve its value to leave to his children when
What is the company total book value of debt : What is the company's total book value of debt? What is the company's total market value of debt?
Design a central server algorithm for mutual exclusion : Theoretical Issues in Distributed Systems - Design a central server algorithm for mutual exclusion based on the REQUEST PRIORITY. Based on your design
Effect of selling the receivables : If it had not sold the receivables it would have to have taken out a short-term loan. The effect of selling the receivables is:
Shareholders will receive the dividend payment : Which of the following statements is most accurate concerning which shareholders will receive the dividend payment?
What price will you pay for it : If you buy the bond from a dealer today, what price will you pay for it? (Round your answer to 2 decimal places. Omit the "$" sign in your response.)
Formula for estimated share of common stock : A) Formula for estimated share of common stock B) If price is $1.00 and dividends are $1.50 per share with 2% per year, what would be required return?

Reviews

len2010200

6/6/2018 8:31:37 AM

Question 4: SOAP Web Service 11 1. Whether the end point of web service is correctly described 2 2. Whether the naming convention is correctly described 2 3. Whether the lookup service is correctly described 2 4. Why the wsimport tool introduces a better way to create a web service client 2 5. The contrast of web service and normal client/server 3 Sub Total for Assignment 3 35

len2010200

6/6/2018 8:31:28 AM

Question 2: Document Signing and Verification 6 1. Whether correct terms are used 2 2. Whether the procedure is correctly described 4 Question 3: Priority-Based Central Server Algorithm 10 1. Whether request priority is applied in the algorithm 2 2. Whether the procedure of the algorithm is correctly described 2 3. Whether the safety feature is well justified 2 4. Whether the liveness feature is well justified 2 5. Whether the ordering feature is well justified 2

len2010200

6/6/2018 8:31:20 AM

You will need to address the above issues in a Microsoft Word document. 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 Question 1: UDP and TCP vs Thread per Request and Thread per Connection 8 1. UDP reliability and overhead 2 2. TCP reliability and overhead 2 3. Whether thread-per-request model is correctly described 1 4. Whether thread-per-connection model is correctly described 1 5. Whether communication protocols and thread models are sensibly related 2

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