SlideShare a Scribd company logo
1 of 25
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

Whats the Time
Whats the TimeWhats the Time
Whats the TimeAPNIC
 
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.pptxLagamaPasala
 
A brief history of Leap Seconds
A brief history of Leap SecondsA brief history of Leap Seconds
A brief history of Leap SecondsJohn 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 ApproachesJustin Lin
 
Clock synchronization in distributed system
Clock synchronization in distributed systemClock synchronization in distributed system
Clock synchronization in distributed systemSunita Sahu
 
Applications of Quantum Entanglement Presentation
Applications of Quantum Entanglement PresentationApplications of Quantum Entanglement Presentation
Applications of Quantum Entanglement PresentationParis-Anne O'Shea
 
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 SinhaJawwad Rafiq
 
Precision Time Protocol
Precision Time ProtocolPrecision Time Protocol
Precision Time ProtocolSteven Kreuzer
 
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) .pptxChShakeelAhmedMayo
 
"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 SkeetFwdays
 
TCP timers in transport layer .pptx
TCP timers in  transport layer     .pptxTCP timers in  transport layer     .pptx
TCP timers in transport layer .pptxanair23
 

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
 
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)
 
Clock 2
Clock 2Clock 2
Clock 2
 
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
 
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
 
TCP timers in transport layer .pptx
TCP timers in  transport layer     .pptxTCP timers in  transport layer     .pptx
TCP timers in transport layer .pptx
 

Recently uploaded

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 

Recently uploaded (20)

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 

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..”