Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CS 2 IDS Answer ALL Questions Question 1 : ( 2 5 marks ) a . A master node is synchronising its clock with three
CSIDS
Answer ALL Questions
Question :
marks
a A master node is synchronising its clock with three slaves employing Berkeley's algorithm. The master's clock reads :: when it sends the request, and three slaves' clocks read their current time :::: and :: respectively, when they reply to the master. Calculate the Average Time DifferenceOffset Correct Time at master, and Time Correction for all the slaves to synchronize their clocks using Berkeley's Algorithm.
marks
b A client is employing NTP protocol to synchronize its clock. The client sends an NTP request packet to the time server at :: This request packet is received by the time server at :: Subsequently, the time server sends a response packet back to the client at :: Finally, the client receives the response packet from the server at :: Calculate the RTT Clock SkewOffset Time and Synchronised Time on the client using NTP protocol. marks
c A client is employing Cristian's algorithm to synchronize its clock. The client's clock reads :: when it sends the request, the server's clock reads current time :: and sends this time to the client, the client receives the reply at :: based on its clock. Calculate the time on the client after synchronizing the clock using Cristian's Algorithm. marks Note: No marks will be awarded for only writing the final answers.
Question :
marks
a Using the given Lamport's clock diagram, determine the Lamport's clock value CounterTS of each event on the process and when:
CounterTS for each internallocal event on the and is incremented by the value
CounterTS for each external eventreceived message event on the and is incremented by localcounter, receivedcounter
marks
Note: All the calculated values should be written using the same diagram.
Page of
May
This assessment is subject to the University Assessment Regulations for Candidates
CSIDS
b Using the given Vector clock diagram, determine the Vector clock value CounterTS of each event on the process and when:
CounterTS for each internallocal event on the and is incremented by and other counters are unaffected in the vector.
CounterTS for each externalreceived message event is incremented by on the process where the message is received. All other counters will be updated on that process based on the max value maxlocalcounter, receivedcounter in the vector. marks
Figure: Vector clock diagram
c Draw and explain ordering of events with a suitable example with minimum five events using both physical clock and logical clock.
marks
Note: All the calculated values should be written using the same diagram.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started