1. Homepage
  2. Exam
  3. [2021] COMP5349 Cloud Computing - Main Exam S1- Q4 Distributed Data Consistency

[2021] COMP5349 Cloud Computing - Main Exam S1- Q4 Distributed Data Consistency

This question has been solved
Engage in a Conversation

Question 4. Distributed Data Consistency (20 points) CourseNana.COM

Part 1- 4 of this question refer to the following message sequence scenario of a Paxos instance with five agents: two proposers A and B; three acceptors X, Y and Z. Assume time proceeds from top to bottom and there is no chosen value at the beginning of the scenario. Both A and B try to propose a value following Paxos algorithm. CourseNana.COM


CourseNana.COM

Proposer A has two proposals, with sequence number 2 and 7 respectively. Proposer B only has one proposal with sequence number 4. A message with arrow end indicates it is correctly sent. A message with dot end indicates a lost message, aiming for the nearest agent in the message direction. There are three lost messages in the scenario: the promise(2) message sent from acceptor Y to proposer A; the accept(n=4,v=10) message sent from proposer B to acceptor X; the response message from acceptor Z to proposer A’s prepare(7) message. CourseNana.COM


CourseNana.COM

Note that not all messages are shown in the scenario. Some are left for questions.
For part 4 and part 5,
a textual description is preferred; if you want to use diagram, please draw the diagram using a drawing software. Hand-drawn diagram will NOT be marked. CourseNana.COM

1.     [2 points] Following Paxos algorithm, will proposer A proceed with the second phase of proposal 2 by sending accept message to available acceptors? If yes, what will be the content of the message and which acceptor(s) it will send the message to; if no, explain the reason. CourseNana.COM

2.     [3 points] What are the response message of each acceptor to proposer A’s prepare(7) message? CourseNana.COM

3.     [3 points] Proposer A wants to propose value 5. Now assume the response message for message prepare(7) from acceptor Z is lost, will proposer A proceed with the second phase by sending accept message to available acceptors? If yes, what will be the content of the message and which acceptor(s) it will send the message to; if no explain the reason. CourseNana.COM

4.     [4 points] Assume proposer A sends prepare(7) message before t2, describe a scenario that will end up with value 5 from proper A to be chosen in proposal 7. CourseNana.COM

5.     [8 points] This question is related with a Chubby lock service consists of five nodes: A, B, C, D, E. A Chubby service can only have one master at any time. A master has a lease that lasts for a few seconds. Once the lease expires, the system will elect a new master with a new lease. The master’s identity and the expire time of the lease are selected(chosen) using Paxos algorithm as a tuple value: (master, expire_time). All nodes in the cluster take all three roles: proposer, acceptor and learner in any Paxos process in the system. This means any node can make a proposal, accept a proposal or try to learn the chosen value. Assume that at t1, all nodes know the current master is A and its lease expires at t5. This is achieved through an accepted proposal: (n=5, v=(A, t5)). The proposal number is 5, and chosen value is (A,t5). Now assuming at t2, which is before t5, node C loses contact with node A and believes that A is dead. C plans to make a proposal to elect itself as the new master, with a lease expire time set to t7. Assume the communication between B and C, D, E are normal and there will be no message loss. CourseNana.COM

Describe the process C will use to elect itself. You description should include all messages with sender node, receiver node and detailed content. Indicate the sequence of messages as well. CourseNana.COM

  CourseNana.COM

Get the Solution to This Question

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
The University of Sydney代写,COMP5349代写,Cloud Computing代写,The University of Sydney代编,COMP5349代编,Cloud Computing代编,The University of Sydney代考,COMP5349代考,Cloud Computing代考,The University of Sydneyhelp,COMP5349help,Cloud Computinghelp,The University of Sydney作业代写,COMP5349作业代写,Cloud Computing作业代写,The University of Sydney编程代写,COMP5349编程代写,Cloud Computing编程代写,The University of Sydneyprogramming help,COMP5349programming help,Cloud Computingprogramming help,The University of Sydneyassignment help,COMP5349assignment help,Cloud Computingassignment help,The University of Sydneysolution,COMP5349solution,Cloud Computingsolution,