SlideShare a Scribd company logo
A Brief Introduction
to Timekeeping
Steven Kreuzer
steven@kreuzer.cx
NYCBUG
July 2014
What is Time?
• It is pretty tricky to define in a way that is not
circular
• Simply a matter of counting cycles or units of time
What is a Clock?
• A clock consists of an oscillator and a counter
• The function of the oscillator is to establish a
repeatable interval of time
• By counting those intervals it is possible to create a
time scale
Greenwich Mean Time
• Mainly used by astronomers so it was based on
measurements of true earth rotation
• Rise of railroads caused the need for accurate,
uniform time leading to the creation of time zones
and standard time
• Between 1848 to 1972, all of the major countries
adopted time zones based on GMT
Time Zones
• 24 time zones, each differing from the next by 1
hour and span 15 degrees of longitude
• Local time is determined by government so they
usually follow the countries borders
• From time to time a country will opt to change their
time zone for various reasons
Coordinated Universal Time
• Earth rotation varies over time so a time scale
based on this will vary over time
• UTC is based on Atomic Time (TAI) which is a time
scale where the length of a second does not vary
Leap Second
• To keep UTC consistent with the actual earth
rotation speed, leap seconds are inserted
• Leap seconds can be inserted and removed, but so
far they have only been inserted
• 26 leap seconds have been inserted since 1972
• The last second was inserted on June 30th 2015
Evolution of The Clock
• Late 1630 - Galileo observed that a pendulum took the
same time to swing through a wide arc as a narrow arc
• Mid 1650 - Christiaan Huygens introduces the
pendulum clock
• Mid 1720 - John Harrison improved the accuracy of the
pendulum clock to 1/5 second per day
• Early 1920 - William Hamilton Shortt introduces the two-
pendulum clock and squeezed the last ounce of
perfection out of mechanical clocks.
The Quartz Crystal
• Piezoelectricity first demonstrated by Pierre and
Jacques Curie in 1880
• When piezoelectric material is subjected to
mechanical stress, it creates an electrical charge
• Inverse is also true
• Typical drift of a quartz watch is ~1 second per day
Quartz Stability
• Temperature influences the operating frequency
• Frequency will slow down when the temperature
either increases or decreases
Improving Quartz Stability
• Analog compensation (TCXO)
• Microcontroller compensation (MCXO)
• Temperature stabilization w/ a crystal oven (OCXO)
Atomic Clocks
• Changes in the energy levels of atoms release
electromagnetic radiation of very specific
frequencies
• Atoms don’t wear out, change their properties over
time or have small differences due to manufacturing
imprecisions
• Accuracy better than 1 second in six million years
Global Positioning System
• Cesium 133 atomic clocks on-board each satellite
• Radio signals broadcast from satellites include the
exact time the signal was transmitted
• Offers a direct and accurate connection to UTC
Disciplining a Clock
• Provide a reference time source which is more
accurate and set the system time in periodic
intervals
• This method allows system time to drift during each
interval
• Ideal solution is to determine the system clock drift
to discipline the system time smoothly
Network Time Protocol
• RFC 5905 - Network Time Protocol Version 4:
Protocol and Algorithms Specification
• RFC 5906 - Network Time Protocol Version 4:
Autokey Specification
• RFC 5907 - Definitions of Managed Objects for
Network Time Protocol Version 4
• RFC 5908 - Network Time Protocol Server Option
for DHCPv6
Basic Features of NTP
• Enable clients across the Internet to be accurately
synchronized to UTC
• Provide most accurate time possible, based on
‘reference time’ - not just syncing to a common time
• Ignore ‘falsetickers’ - clocks it could use for reference,
but which provide an apparently wrong time
• Use previous figures to estimate current difference
between system time and reference time, in the
absence of a network connection
Synchronization Hierarchy
• Clients query the reference time from one or more
servers
• Servers make its own time available as reference
time for other clients
• Peers compare its system time to other peers until
all the peers finally agree about the"true" time to
synchronize to
Stratum Levels
• Stratum 0 - Reference Clock Source (gps, cdma)
• Stratum 1 - Primary Time Servers
• Stratum 2 - Secondary Time Servers
• Stratum 3 - Workstations
Order of Operations
• The client stamps the time when it sends an NTP
packet to the server
• The server stamps the time when it receives the
packet from the client
• The server stamps the time when it sends a packet
back to the client
• The client stamps the time when the NTP reply
packet is received
Synchronization Problems
• Two clocks hardly ever agree
• Clocks tick at different rates
• Skew is the difference between two clocks at one
point in time
Defining Skew and Jitter
• Clock skew is the deterministic difference in clock
arrival times
• Clock jitter is random difference in clock arrival
times
• Jitter is always bad
Dealing with Drift
• If the clock is running fast, make the clock run
slower until it synchronizes
• If the clock is running slow, make the clock run
faster until it synchronizes
• The clock must always be moving forward. The
illusion of time moving backwards causes all sorts
of problems
Time Synchronization
• Allows events to occur at proper times
• Provide proof of when events occurred or did not
occur
Conclusion
• Accurate time is a necessity of modern society
• Synchronized time is a integral part of an effective
network
• Ensuring accurate time is inexpensive but offers a
significant return on investment
–John Wheeler
“Time Is What Prevents Everything From
Happening At Once..”

More Related Content

Similar to Introduction to Timekeeping

Synchronisation
SynchronisationSynchronisation
Synchronisation
Puran Pangeni
 
Whats the Time
Whats the TimeWhats the Time
Whats the Time
APNIC
 
Lesson 05 - Time in Distrributed System.pptx
Lesson 05 - Time in Distrributed System.pptxLesson 05 - Time in Distrributed System.pptx
Lesson 05 - Time in Distrributed System.pptx
LagamaPasala
 
Industrial Process Measurement: Dimension Measurement
Industrial Process Measurement: Dimension MeasurementIndustrial Process Measurement: Dimension Measurement
Industrial Process Measurement: Dimension Measurement
TanagornJennawasin
 
A brief history of Leap Seconds
A brief history of Leap SecondsA brief history of Leap Seconds
A brief history of Leap Seconds
John Dalziel
 
Joda-Time & JSR 310 – Problems, Concepts and Approaches
Joda-Time & JSR 310  –  Problems, Concepts and ApproachesJoda-Time & JSR 310  –  Problems, Concepts and Approaches
Joda-Time & JSR 310 – Problems, Concepts and Approaches
Justin Lin
 
Clock synchronization in distributed system
Clock synchronization in distributed systemClock synchronization in distributed system
Clock synchronization in distributed system
Sunita Sahu
 
Applications of Quantum Entanglement Presentation
Applications of Quantum Entanglement PresentationApplications of Quantum Entanglement Presentation
Applications of Quantum Entanglement Presentation
Paris-Anne O'Shea
 
Best Practices in Reporting Time Duration in Biometrics
Best Practices in Reporting Time Duration in BiometricsBest Practices in Reporting Time Duration in Biometrics
Best Practices in Reporting Time Duration in Biometrics
International Center for Biometric Research
 
Plc timers
Plc timersPlc timers
Plc timers
MANOJ KHARADE
 
Clock Synchronization (Distributed computing)
Clock Synchronization (Distributed computing)Clock Synchronization (Distributed computing)
Clock Synchronization (Distributed computing)Sri Prasanna
 
Synchronization Pradeep K Sinha
Synchronization Pradeep K SinhaSynchronization Pradeep K Sinha
Synchronization Pradeep K Sinha
Jawwad Rafiq
 
Precision Time Protocol
Precision Time ProtocolPrecision Time Protocol
Precision Time Protocol
Steven Kreuzer
 
Date and Time Odds Ends Oddities
Date and Time Odds Ends OdditiesDate and Time Odds Ends Oddities
Date and Time Odds Ends Oddities
Maggie Pint
 
NTP Server - How it works?
NTP Server - How it works?NTP Server - How it works?
NTP Server - How it works?
Davoud Teimouri
 
An Introduction to GNSS(Global Navigation Satellite Systems) .pptx
An Introduction to GNSS(Global Navigation Satellite Systems)  .pptxAn Introduction to GNSS(Global Navigation Satellite Systems)  .pptx
An Introduction to GNSS(Global Navigation Satellite Systems) .pptx
ChShakeelAhmedMayo
 
3. syncro. in distributed system
3. syncro. in distributed system3. syncro. in distributed system
3. syncro. in distributed system
Gd Goenka University
 
"Working with date and time data in .NET", Jon Skeet
"Working with date and time data in .NET", Jon Skeet"Working with date and time data in .NET", Jon Skeet
"Working with date and time data in .NET", Jon Skeet
Fwdays
 

Similar to Introduction to Timekeeping (20)

Synchronisation
SynchronisationSynchronisation
Synchronisation
 
Whats the Time
Whats the TimeWhats the Time
Whats the Time
 
Lesson 05 - Time in Distrributed System.pptx
Lesson 05 - Time in Distrributed System.pptxLesson 05 - Time in Distrributed System.pptx
Lesson 05 - Time in Distrributed System.pptx
 
Industrial Process Measurement: Dimension Measurement
Industrial Process Measurement: Dimension MeasurementIndustrial Process Measurement: Dimension Measurement
Industrial Process Measurement: Dimension Measurement
 
A brief history of Leap Seconds
A brief history of Leap SecondsA brief history of Leap Seconds
A brief history of Leap Seconds
 
Joda-Time & JSR 310 – Problems, Concepts and Approaches
Joda-Time & JSR 310  –  Problems, Concepts and ApproachesJoda-Time & JSR 310  –  Problems, Concepts and Approaches
Joda-Time & JSR 310 – Problems, Concepts and Approaches
 
Clock synchronization in distributed system
Clock synchronization in distributed systemClock synchronization in distributed system
Clock synchronization in distributed system
 
Applications of Quantum Entanglement Presentation
Applications of Quantum Entanglement PresentationApplications of Quantum Entanglement Presentation
Applications of Quantum Entanglement Presentation
 
Best Practices in Reporting Time Duration in Biometrics
Best Practices in Reporting Time Duration in BiometricsBest Practices in Reporting Time Duration in Biometrics
Best Practices in Reporting Time Duration in Biometrics
 
Plc timers
Plc timersPlc timers
Plc timers
 
Clock Synchronization (Distributed computing)
Clock Synchronization (Distributed computing)Clock Synchronization (Distributed computing)
Clock Synchronization (Distributed computing)
 
CTM PROVING
CTM PROVINGCTM PROVING
CTM PROVING
 
Synchronization Pradeep K Sinha
Synchronization Pradeep K SinhaSynchronization Pradeep K Sinha
Synchronization Pradeep K Sinha
 
Precision Time Protocol
Precision Time ProtocolPrecision Time Protocol
Precision Time Protocol
 
Date and Time Odds Ends Oddities
Date and Time Odds Ends OdditiesDate and Time Odds Ends Oddities
Date and Time Odds Ends Oddities
 
NTP Server - How it works?
NTP Server - How it works?NTP Server - How it works?
NTP Server - How it works?
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
An Introduction to GNSS(Global Navigation Satellite Systems) .pptx
An Introduction to GNSS(Global Navigation Satellite Systems)  .pptxAn Introduction to GNSS(Global Navigation Satellite Systems)  .pptx
An Introduction to GNSS(Global Navigation Satellite Systems) .pptx
 
3. syncro. in distributed system
3. syncro. in distributed system3. syncro. in distributed system
3. syncro. in distributed system
 
"Working with date and time data in .NET", Jon Skeet
"Working with date and time data in .NET", Jon Skeet"Working with date and time data in .NET", Jon Skeet
"Working with date and time data in .NET", Jon Skeet
 

Recently uploaded

To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
Fwdays
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 

Recently uploaded (20)

To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 

Introduction to Timekeeping

  • 1. A Brief Introduction to Timekeeping Steven Kreuzer steven@kreuzer.cx NYCBUG July 2014
  • 2. What is Time? • It is pretty tricky to define in a way that is not circular • Simply a matter of counting cycles or units of time
  • 3. What is a Clock? • A clock consists of an oscillator and a counter • The function of the oscillator is to establish a repeatable interval of time • By counting those intervals it is possible to create a time scale
  • 4. Greenwich Mean Time • Mainly used by astronomers so it was based on measurements of true earth rotation • Rise of railroads caused the need for accurate, uniform time leading to the creation of time zones and standard time • Between 1848 to 1972, all of the major countries adopted time zones based on GMT
  • 5. Time Zones • 24 time zones, each differing from the next by 1 hour and span 15 degrees of longitude • Local time is determined by government so they usually follow the countries borders • From time to time a country will opt to change their time zone for various reasons
  • 6. Coordinated Universal Time • Earth rotation varies over time so a time scale based on this will vary over time • UTC is based on Atomic Time (TAI) which is a time scale where the length of a second does not vary
  • 7. Leap Second • To keep UTC consistent with the actual earth rotation speed, leap seconds are inserted • Leap seconds can be inserted and removed, but so far they have only been inserted • 26 leap seconds have been inserted since 1972 • The last second was inserted on June 30th 2015
  • 8. Evolution of The Clock • Late 1630 - Galileo observed that a pendulum took the same time to swing through a wide arc as a narrow arc • Mid 1650 - Christiaan Huygens introduces the pendulum clock • Mid 1720 - John Harrison improved the accuracy of the pendulum clock to 1/5 second per day • Early 1920 - William Hamilton Shortt introduces the two- pendulum clock and squeezed the last ounce of perfection out of mechanical clocks.
  • 9. The Quartz Crystal • Piezoelectricity first demonstrated by Pierre and Jacques Curie in 1880 • When piezoelectric material is subjected to mechanical stress, it creates an electrical charge • Inverse is also true • Typical drift of a quartz watch is ~1 second per day
  • 10. Quartz Stability • Temperature influences the operating frequency • Frequency will slow down when the temperature either increases or decreases
  • 11. Improving Quartz Stability • Analog compensation (TCXO) • Microcontroller compensation (MCXO) • Temperature stabilization w/ a crystal oven (OCXO)
  • 12. Atomic Clocks • Changes in the energy levels of atoms release electromagnetic radiation of very specific frequencies • Atoms don’t wear out, change their properties over time or have small differences due to manufacturing imprecisions • Accuracy better than 1 second in six million years
  • 13. Global Positioning System • Cesium 133 atomic clocks on-board each satellite • Radio signals broadcast from satellites include the exact time the signal was transmitted • Offers a direct and accurate connection to UTC
  • 14. Disciplining a Clock • Provide a reference time source which is more accurate and set the system time in periodic intervals • This method allows system time to drift during each interval • Ideal solution is to determine the system clock drift to discipline the system time smoothly
  • 15. Network Time Protocol • RFC 5905 - Network Time Protocol Version 4: Protocol and Algorithms Specification • RFC 5906 - Network Time Protocol Version 4: Autokey Specification • RFC 5907 - Definitions of Managed Objects for Network Time Protocol Version 4 • RFC 5908 - Network Time Protocol Server Option for DHCPv6
  • 16. Basic Features of NTP • Enable clients across the Internet to be accurately synchronized to UTC • Provide most accurate time possible, based on ‘reference time’ - not just syncing to a common time • Ignore ‘falsetickers’ - clocks it could use for reference, but which provide an apparently wrong time • Use previous figures to estimate current difference between system time and reference time, in the absence of a network connection
  • 17. Synchronization Hierarchy • Clients query the reference time from one or more servers • Servers make its own time available as reference time for other clients • Peers compare its system time to other peers until all the peers finally agree about the"true" time to synchronize to
  • 18. Stratum Levels • Stratum 0 - Reference Clock Source (gps, cdma) • Stratum 1 - Primary Time Servers • Stratum 2 - Secondary Time Servers • Stratum 3 - Workstations
  • 19. Order of Operations • The client stamps the time when it sends an NTP packet to the server • The server stamps the time when it receives the packet from the client • The server stamps the time when it sends a packet back to the client • The client stamps the time when the NTP reply packet is received
  • 20. Synchronization Problems • Two clocks hardly ever agree • Clocks tick at different rates • Skew is the difference between two clocks at one point in time
  • 21. Defining Skew and Jitter • Clock skew is the deterministic difference in clock arrival times • Clock jitter is random difference in clock arrival times • Jitter is always bad
  • 22. Dealing with Drift • If the clock is running fast, make the clock run slower until it synchronizes • If the clock is running slow, make the clock run faster until it synchronizes • The clock must always be moving forward. The illusion of time moving backwards causes all sorts of problems
  • 23. Time Synchronization • Allows events to occur at proper times • Provide proof of when events occurred or did not occur
  • 24. Conclusion • Accurate time is a necessity of modern society • Synchronized time is a integral part of an effective network • Ensuring accurate time is inexpensive but offers a significant return on investment
  • 25. –John Wheeler “Time Is What Prevents Everything From Happening At Once..”