Dept. of Computer Science

Slides:



Advertisements
Similar presentations
Time in Distributed Systems
Advertisements

HIERARCHY REFERENCING TIME SYNCHRONIZATION PROTOCOL Prepared by : Sunny Kr. Lohani, Roll – 16 Sem – 7, Dept. of Comp. Sc. & Engg.
The NIST Internet Time Service Michael Lombardi NIST Time and Frequency Division
Network Time Protocol (NTP) August 9 th 2011, OSG Site Admin Workshop Jason Zurawski – Internet2 Research Liaison.
Time in Embedded and Real Time Systems Lecture #6 David Andrews
Time Synchronization (RBS, Elson et al.) Presenter: Peter Sibley.
1 ITC242 – Introduction to Data Communications Week 12 Topic 18 Chapter 19 Network Management.
Teaching material based on Distributed Systems: Concepts and Design, Edition 3, Addison-Wesley Copyright © George Coulouris, Jean Dollimore, Tim.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 15th Lecture Christian Schindelhauer.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 13th Lecture Christian Schindelhauer.
Sir John Tenniel; Alice’s Adventures in Wonderland,Lewis Carroll 7-Aug-151 NTP Architecture, Protocol and Algorithms David L. Mills University of Delaware.
Check Disk. Disk Defragmenter Using Disk Defragmenter Effectively Run Disk Defragmenter when the computer will receive the least usage. Educate users.
1 Physical Clocks need for time in distributed systems physical clocks and their problems synchronizing physical clocks u coordinated universal time (UTC)
Protocols and the TCP/IP Suite Chapter 4. Multilayer communication. A series of layers, each built upon the one below it. The purpose of each layer is.
Enhanced NTP IETF – TicToc BOF Greg Dowd – Jeremy Bennington –
A Security Analysis of Network Time Protocol Andy Hospodor COEN /03/03 Paper by Matt Bishop, 1991.
GPS based time synchronization of PC hardware Antti Gröhn
Time and Coordination March 13, Time and Coordination What is time? :-)  Issue: How do you coordinate distributed computers if there is no global.
Outline for Today Objectives: –Time and Timers Administrative details: –Talk on learning at 4 in 130 North Building –Questions?
Lecture 9: Time and clocks (Chap 11) Haibin Zhu, PhD. Assistant Professor Department of Computer Science Nipissing University © 2002.
Time This powerpoint presentation has been adapted from: 1) sApr20.ppt.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Computer Network Design EEL 6785 Dr. Janusz Zalewski University of Central Florida.
NTP Header and Extension Fields Message DigestKey IDCompute Hash Message DigestCompare Message Authenticator Code (MAC) Figure 1 Message Authentication.
Distributed Systems Lecture 5 Time and synchronization 1.
Distributed Web Systems Time and Global State Lecturer Department University.
Outline for Today Objectives: –Time and Timers Administrative details: –About the final…
Chapter 19: Network Management
Synchronizing Processes
2. OPERATING SYSTEM 2.1 Operating System Function
CCNA Routing and Switching Routing and Switching Essentials v6.0
Module 10: Managing and Monitoring Network Access
Distributed Computing
Chapter 2: System Structures
Infrastructure II NTP.
Wireless Sensor Network Architectures
Time and Clock Primary standard = rotation of earth
Time and Global States Ali Fanian Isfahan University of Technology
Lecture 5 Time and synchronization
Chapter 10: Device Discovery, Management, and Maintenance
CSE 486/586 Distributed Systems Time and Synchronization
CCNA Routing and Switching Routing and Switching Essentials v6.0
University of Maryland
University of Technology
Network Time Protocol (NTP) General Overview
Net 435: Wireless sensor network (WSN)
Precision Time Protocol
IEEE 1588 Conference and Plug-fest Winterthur, October 10-12, 2005
The Network Computer as Precision Timekeeper
Time and Clock.
Chapter 10: Device Discovery, Management, and Maintenance
Logical time (Lamport)
Clock Synchronization: Physical Clocks
NTP Clock Discipline Modelling and Analysis
NTP Security Protocol David L. Mills University of Delaware
Time and Clock.
Bandwidth Requirement
PTP SOLUTIONS: Using PTP as a backup to GPS
ONLINE SECURE DATA SERVICE
CDK: Sections 11.1 – 11.4 TVS: Sections 6.1 – 6.2
Distributed Synchronization
Interleaved Synchronization Protocols for LANs and Space Data Links
NTP Architecture, Protocol and Algorithms
NTP Security Protocol David L. Mills University of Delaware
Logical time (Lamport)
Logical time (Lamport)
What’s the Time? Geoff Huston APNIC.
COMP755 Advanced Operating Systems
CSE 486/586 Distributed Systems Time and Synchronization
Logical time (Lamport)
Presentation transcript:

Dept. of Computer Science Embedded System Design for Network Time Synchronization So-Young Hwang, Dong-Hui Yu and Ki-Joune Li So-Young Hwang Dept. of Computer Science Pusan National Univ. 2004. 08. 25

Contents Introduction Embedded System for Network Time Synchronization General computer clock model Needs for time synchronization Approaches for time synchronization Embedded System for Network Time Synchronization Functional architecture A clock model Prototype implementation Experiments Plan and environment Experiment results Concluding Remarks 2004-08-25 EUC 2004

General Computer Clock Model Keep track of current time Various accounting purposes CPU utilization Disk I/O, and so on Consists of 3 component Quartz crystal Counter register Constant register Limits in accuracy and precision Inherent instability Environment elements Modifications of users, and errors of the system 2004-08-25 EUC 2004

Needs for Time Synchronization Critical piece of infrastructure for any distributed system Log file accuracy, auditing and monitoring Network fault diagnosis and recovery File time stamps Directory services Access security and authentication Distributed computing Scheduled operations Real-world time values / Interaction with users Purpose of synchronizing clocks Provide a global time base throughout a distributed system 2004-08-25 EUC 2004

Approaches for Time Synchronization Replaces a local clock with a higher cost, accurate and precise clock Found in mobile communication system PTS among the IS-95 CDMA base stations Request services from the external clocks that keep standard time Based on server-client model NTP on the Internet 2004-08-25 EUC 2004

Embedded System for Network Time Synchronization Design issues Acquire standard time Maintain accurate and precise local clock Distribute time information GPS Adapted as a reference clock source Time keeper Specified in clock model NTP Applied for time distribution Functional architecture 2004-08-25 EUC 2004

GPS Referenced Time Distribution Model Stratum 1 Server W/S NTP TIME SERVICE SNMP CONTROL GPS Satellites 2004-08-25 EUC 2004

Proposed Clock Model for Synchronization Time keeping mechanism System clock initialized by GPS Periodic signal of one second time interval is adapted as interrupt to synchronize the local clock 2004-08-25 EUC 2004

Prototype Implementation (1/2) Hardware 32bit RISC ARM7TDMI 100BaseT Ethernet GPS engine 10MHz VCTCXO Software OS: pSOSystem BSP TCP/IP protocol NTP, SNMP 2004-08-25 EUC 2004

Prototype Implementation (2/2) GPS engine Connected through RS-232C Sends position, status and date/time message every one second GPS message format Clock model implementation System clock and NTP clock are initialized synchronizing to the GPS reference clock 1PPS reference time interval Analyze error of local clock 2004-08-25 EUC 2004

Experiments Evaluation factor NTP is designed to produce 3 products Frequency of the local clock to evaluate accuracy and stability Use standard NTP query program to evaluate time distribution NTP is designed to produce 3 products Clock offset: amount to adjust the local clock Round-trip delay Dispersion: maximum error of the local clock  Timestamps exchange are used to determine 3 products client server ti-3 ti ti-2 ti-1 2004-08-25 EUC 2004

Evaluation Environment Time distribution Accuracy & stability HP53132A: Universal counter HP59551A: GPS synchronization module Linux W/S as NTP client Monitoring & data logging PC IEEE 488 GPIB, RS-232C interface 2004-08-25 EUC 2004

Evaluation (1/2) Frequency measurement result Traces the nominal frequency in about 0.5Hz error boundary Nominal frequency: ideal frequency Fig. Relationship between accuracy and stability 2004-08-25 EUC 2004

Evaluation (2/2) Variation of clock offset Variation of clock dispersion target system public server 1 public server 2 system peer 64% – 36% candidate 100% 2004-08-25 EUC 2004

Conclusion Computer clock has limits in accuracy and precision Inherent instability, environment elements, modifications of users, and errors of the system Needs to be synchronized with a standard clock Purpose of synchronizing clocks is to provide a global time base throughout a distributed system Design issues and implementation of an embedded system for network time synchronization Uses GPS as a standard reference time source Clock model to maintain accurate and precise time Offers UTC through the NTP 2004-08-25 EUC 2004

Future Work Clock model and clock discipline mechanism to maintain more accurate and stable time Wireless sensor networks Make extensive use of synchronized time Have unique requirements in the scope, lifetime, and precision of the synchronization achieved, as well as the time and energy required to achieve it Existing time synchronization methods need to be extended / modified to meet these new needs 2004-08-25 EUC 2004

How NTP works Multiple servers/peers provide redundancy and diversity NTP Messages Peer 1 Peer 2 Filter 1 Peer 3 Filter 2 Filter 3 Intersection and Clustering Algorithms Combining Algorithm Loop Filter LCO Timestamps P/F-Lock Loop Multiple servers/peers provide redundancy and diversity Clock filters select best from a window of eight clock offset samples Intersection and clustering algorithms pick best subset of peers and discard outliers Combining algorithm computes weighted average of offsets for best accuracy Loop filter and LCO implement hybrid phase/frequency-lock (P/F) feedback loop to minimize jitter and wander 2018/9/18

NTP Protocol Header and Timestamp Formats Strat Poll LI Mode VN NTP v3 and v4 Root Delay Root Dispersion Reference Identifier Reference Timestamp (64) Originate Timestamp (64) Receive Timestamp (64) Transmit Timestamp (64) Message Hash (64 or 128) NTP Protocol Header Format (32 bits) LI leap warning indicator VN version number (4) Strat stratum (0-15) Poll poll interval (log2) Prec precision (log2) Seconds (32) Fraction (32) NTP Timestamp Format (64 bits) Value is in seconds and fraction since 0h 1 January 1900 Key/Algorithm Identifier Cryptosum Authenticator (Optional) Extension Field 1 (optional) Extension Field 2… (optional) NTP v4 only Prec Extension Field (padded to 32-bit boundary) Field Length Field Type NTP v4 Extension Field Last field padded to 64-bit boundary authentication only 2004-08-25 EUC 2004