A client attempts to synchronize its clock with a time server using Christian’s algorithm. Therefore, the client records the
round-trip times of requests and the timestamps returned by the server as depicted in Table 1.1:
(a) Which of these times should the client use to adjust its clock?
(b) To what time should the client set its clock?
(d) If it is known that the time between sending and receiving a message in the system is at least 8 ms, do your answers to the above questions change?
(e) Discuss if we can synchronize the client’s clock with the time server to within 0 milliseconds, (i.e., fully accurately).

A collection of five processes (P1 - P5) want to synchronize their clocks according to the Berkeley algorithm. Process P3 has been elected as the master. The threshold value for acceptable deviation δ = ±3000ms. For the given round of the algorithm, the times of all individual processes have been collected by the Master (cf. Table 2.2). (Hint: Different to the original Berkeley algorithm, the master did not record any RTTs in this setting. So for this task, you can omit the calculation of a better estimate for the individual process times and instead work with the times given in the table.)
(a) What is the main difference between the Berkeley algorithm compared to Christians algorithm?
(b) What time will the master process P3 calculate as the reference time for synchronization.
(c) What information, i.e., which values will P3 send to the other processes for synchronization? What is the content of the message?
(d) Give an advantage and a disadvantage for sending, in particular, those kind of values that have been calculated in subtask (c) to synchronize the clocks.

Advantage: There is less additional error introduced by another transmission delay between the master the slaves. Disadvantage: The skew value (update value) has to be calculated for every process in the set individually, which might influence scalability.

The Network Time Protocol (NTP) defines the architecture for a time service and a communication protocol to trans- fer timing information between individual nodes over the internet. Time servers in NTP form a hierarchy of so called “stratum” servers as depicted in Figure 3.1.

Becauseδi =t+t′ andt, t′ ≥0 it is possible to show that θi − δi ≤θ≤θi+δi. The estimated offset θ is therefore within the range:
θi−(δi/2) ≤ θ ≤ θi + δi/2
9.976 ≤ θ ≤ 10.051
