1. Homepage
  2. Exam
  3. COMP321101 Distributed Systems - Exam 2022 - Question 2: Universal Plug and Play Protocol

COMP321101 Distributed Systems - Exam 2022 - Question 2: Universal Plug and Play Protocol

This question has been solved
Engage in a Conversation

Module Code: COMP321101 Module Title: Distributed Systems CourseNana.COM

Examination Information CourseNana.COM

  • Submit your answers to the questions via the Gradescope submission point.
  • Support for the assessment is available via the module Microsoft Teams group.
  • You are permitted to use your lecture notes while completing this assessment.
  • There are 4 pages to this assessment.
  • Answer all 3 questions.
  • The number in brackets [ ] indicates the marks available for each question or part question.
  • You are reminded of the need for clear presentation in your answers.
  • The total number of marks for this assessment paper is 60.

Question 2 CourseNana.COM

(a) In a ubiquitous computing system devices use the Universal Plug and Play Protocol (UPnP) to discover each other and make sure that they can set up communication channels between them. What kind of core requirement does this fulfil for such a distributed system? [2 marks] (b) You are asked to build a data analytics application that integrates two RESTful Web services provisioned by a company called Analytics4U. Which factors would you consider for your application performance provision? [4 marks] (c) Consider a network consisting of 5 computers, A (coordinator), B, C, D, and E. At 09:01 the coordinator decides to synchronise the clock of all computers in the network. The time format is HH:MM. At that moment, the clock of the computers in the network shows the following: B(08:53), C(09:02), D(08:56), E(09:03). Apply the Berkeley clock synchronisation algorithm to this situation, show the stages of computation, and explain the outcome of the synchronisation. The time needed for computation and for network communication is negligible. [4 marks] (d) Many distributed algorithms require one process to act as coordinator, at least initially. If a process detects that the original coordinator is no longer responding to requests, it initiates a new election. Consider a group of 6 nodes labelled 0..5. Initially node 5 is the coordinator but it crashes. Node 2 is the first node to notice that the coordinator has crashed. Describe the election using: (i) the bully algorithm; (ii) the ring algorithm where the nodes are arranged in a logical ring and only communicate with their upstream neighbours. Your answer should define the types of messages exchanged between nodes. It should also clearly indicate all messages exchanged between nodes in the election process and which node is elected as the new coordinator. [5 marks] (e) A client sends the same command to each of n servers in a distributed system and then waits for the servers to execute the command. Ideally, the client should receive n matching results from the servers. However, messages are asynchronous, failures can be Byzantine and f servers may be malicious. Show that n ≥ 3f + 1 must hold for the client to always be able to identify the correct result. [5 marks] [Question 2 Total: 20 marks] CourseNana.COM

Get the Solution to This Question

WeChat WeChat
Whatsapp WhatsApp
UK代写,Leeds代写,COMP321101代写,Distributed Systems代写,Universal Plug and Play Protocol代写,UK代编,Leeds代编,COMP321101代编,Distributed Systems代编,Universal Plug and Play Protocol代编,UK代考,Leeds代考,COMP321101代考,Distributed Systems代考,Universal Plug and Play Protocol代考,UKhelp,Leedshelp,COMP321101help,Distributed Systemshelp,Universal Plug and Play Protocolhelp,UK作业代写,Leeds作业代写,COMP321101作业代写,Distributed Systems作业代写,Universal Plug and Play Protocol作业代写,UK编程代写,Leeds编程代写,COMP321101编程代写,Distributed Systems编程代写,Universal Plug and Play Protocol编程代写,UKprogramming help,Leedsprogramming help,COMP321101programming help,Distributed Systemsprogramming help,Universal Plug and Play Protocolprogramming help,UKassignment help,Leedsassignment help,COMP321101assignment help,Distributed Systemsassignment help,Universal Plug and Play Protocolassignment help,UKsolution,Leedssolution,COMP321101solution,Distributed Systemssolution,Universal Plug and Play Protocolsolution,