12/6/2007
1
Experiment on Cristian’s and Berkeley Time Synchronization Algorithms
- Rahul Sehgal
Experiment on Cristians and Berkeley Time Synchronization - - PowerPoint PPT Presentation
Experiment on Cristians and Berkeley Time Synchronization Algorithms - Rahul Sehgal 1 12/6/2007 Introduction: Centralized Algorithm: 1) Cristians algorithm. ( timeserver ) 2) Berkeley algorithm. ( coordinator ) 2 12/6/2007 Concept of
12/6/2007
12/6/2007
12/6/2007
12/6/2007
External clock synchronization method. A process is the time server in the system. External time source (Coordinated Universal Time) is
– UTC is an international standard. – Standard bodies which, disseminate UTC signal by radio,
12/6/2007
Transmission delay
12/6/2007
clock skew : The difference in time values of two clocks. clock drift : The difference between speeds of two
12/6/2007
In run() step,
–
The messages are delivered in the increasing order of delay, to time server.
–
timeserver computes delay_at_rqst_queue ( states for which the message was in queue)
–
timeserver sends a reply message to requesting process.
–
Requesting process receives the message and updates its time as follows: current time = Tserver + (T1 – T0 ) / 2, Tserver = server time returned by time server. In simulation engine T1 – T0 = message_queue_delay
12/6/2007
coordinator polls other processes. Finds difference between its time and time of
Then takes an average including its own time. Coordinator predicts time of other process with an
Inform polled processes about correction (this
12/6/2007
coordinator polls processes and sends them request
processes sends reply. processes differ in their times Coordinator predicts error for each process. coordinator puts an upper bound errors . Two test environments are:
–
–
12/6/2007
Comparision for 10 processes with no skew
2 4 1 2 3 4 5 6 7 8 9 10 Global Time Difference of process time from Global Time Cristian Berkeley
12/6/2007
Comparision on 50 nodes with no skew
2 4 1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 Global Time Difference of process time from Global Time Cristian Berkeley
12/6/2007
Comparision on 100 nodes with no skew
0.5 1 1.5 2 2.5 1 7 13 19 25 31 37 43 49 55 61 67 73 79 85 91 97 Global Time Difference of process time from Global Time Cristian Berkeley
12/6/2007
Comparision on 10 processes with error and unbound delay
0.5 1 1.5 2 2.5 1 2 3 4 5 6 7 8 9 10 Global Time Difference of process time from Global Time Cristisn Berkeley
12/6/2007
Comparision on 50 processes with error and unbound delay
0.5 1 1.5 2 2.5 1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 Global time Difference of process time from Global Time Cristian Berkeley
12/6/2007
comparision on 100 nodes with error and unbound delay
0.5 1 1.5 2 2.5 1 7 13 19 25 31 37 43 49 55 61 67 73 79 85 91 97 Global Time Difference of process time from Global Time Cristian Berkeley
12/6/2007
12/6/2007
12/6/2007
12/6/2007