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

[2022] COMP5349 Cloud Computing - Main Exam S1- Q5 Distributed Data Consistency

This question has been solved
Engage in a Conversation

Question 5. Distributed Data Consistency (20 points)
All parts of this question refer to a Paxos instance with five agents: two proposers: A and B; three acceptors: CourseNana.COM


CourseNana.COM

X, Y and Z. The following message sequences show the first few messages sending from the proposers. CourseNana.COM


CourseNana.COM

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 sends a proposal with sequence number 2 at t1. Proposer B sends a proposal with sequence number 4 at t1 as well. A message with arrow end indicates it arrives at the destination. A message with dot end indicates a lost message. There is only lost messages shown in the sequence: the prepare(4) message sent from proposer B. CourseNana.COM


CourseNana.COM

Note that not all messages are shown in the scenario. Some are left for questions. CourseNana.COM

1.     [5 points] How would each acceptor responds to the received prepare message? Describe the response message with a brief explanation. CourseNana.COM

2.     [4 points] Proposer A sends accept(n=2, v=5) at t5. To which acceptors would A sends this message and how each of them would respond? CourseNana.COM

3.     [4 points] Proposer B sends accept(n=4, v=10) at t6. To which acceptors would B sends this message and how each of them would respond? CourseNana.COM

4.     [2 points] Assume all accept messages arrive their destination agents by t8, does the system have a chosen value after t8? If yes, what is the chosen value? If no, explain why. CourseNana.COM

5.     [3 points] What is the destination agent of the lost message? How would the destination agent respond if the message arrives? If the destination agent would respond differently depending on the arrival time, you should discuss different scenarios. If the destination agent would respond the same, explain why. CourseNana.COM

6.     [2 points] Describe a way for both proposers to learn the chosen value if there is one; or a way to propose a new value to be chosen if there is no chosen value. 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,