Sir John Tenniel; Alice’s Adventures in Wonderland,Lewis Carroll 11-Nov-151 The Nanokernel David L. Mills University of Delaware

Slides:



Advertisements
Similar presentations
Time in Distributed Systems
Advertisements

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.
Dale E. Gary Professor, Physics, Center for Solar-Terrestrial Research New Jersey Institute of Technology 1 3/15/2012OVSA Preliminary Design Review Meeting.
Page # Advanced Telecommunications/Information Distribution Research Program (ATIRP) Authentication Scheme for Distributed, Ubiquitous, Real-Time Protocols.
Time Synchronization (RBS, Elson et al.) Presenter: Peter Sibley.
1 Soft Timers: Efficient Microsecond Software Timer Support For Network Processing Mohit Aron and Peter Druschel Rice University Presented By Jonathan.
Design of a Control Workstation for Controller Algorithm Testing Aaron Mahaffey Dave Tastsides Dr. Dempsey.
Cyclone Time Technology Deriving Consistent Time Base Using Local Clock Information Ashok Agrawala Moustafa Youssef Bao Trinh University of Maryland College.
1 CS 501 Spring 2005 CS 501: Software Engineering Lecture 22 Performance of Computer Systems.
September 2005 backnext All rights reserved © 2005, Alcatel Alenia Space Page 1 MORE EGSE IF & BB EGSE Allan Variance & RF EGSE.
Yu. Artyukh, V. Bespal’ko, E. Boole, V. Vedin Institute of Electronics and Computer Science Riga, LATVIA 16th International Workshop on Laser.
Sir John Tenniel; Alice’s Adventures in Wonderland,Lewis Carroll 7-Aug-151 NTP Architecture, Protocol and Algorithms David L. Mills University of Delaware.
Ground-Based Altimetry Using a Single- Receiver Single-Frequency GNSS Phase Ambiguity Resolution Technique G. Stienne* S. Reboul J.-B. Choquel M. Benjelloun.
1 Physical Clocks need for time in distributed systems physical clocks and their problems synchronizing physical clocks u coordinated universal time (UTC)
NTP Network time protocol. 19-Aug-152 Needs for precision time Stock market buy and sell orders Aviation traffic control and position reporting Network.
Judah Levine, NIST, CENAM, Oct Internet Time Services and NTP, The Network Time Protocol Judah Levine Time and Frequency Division NIST Boulder
Jennifer Rexford Fall 2014 (TTh 3:00-4:20 in CS 105) COS 561: Advanced Computer Networks Locations.
Enhanced NTP IETF – TicToc BOF Greg Dowd – Jeremy Bennington –
Sir John Tenniel; Alice’s Adventures in Wonderland,Lewis Carroll Interleaved Synchronization Protocols for LANs and Space Data Links David L. Mills University.
DLS Digital Controller Tony Dobbing Head of Power Supplies Group.
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
 The Personal Computer or PC is a broad term used to describe many kinds of small design computer systems.
Parallel and Distributed Simulation Synchronizing Wallclock Time.
Egle Cebelyte. Random Access Memory is simply the storage area where all software is loaded and works from; also called working memory storage.
Outline for Today Objectives: –Time and Timers Administrative details: –Talk on learning at 4 in 130 North Building –Questions?
22-Sept-2005 Google Summer of Code Projects: Lightweight Precision Timestamps Jeff Boote.
Computing Environment The computing environment rapidly evolving ‑ you need to know not only the methods, but also How and when to apply them, Which computers.
EPICS EPICS Collaboration Meeting Argonne National Laboratory drvTS improvements for soft timing EPICS Collaboration Meeting Argonne National Laboratory.
Software Development Infrastructure for Sensor Networks Operating systems (TinyOS) –Resource (device) management –Basic primitives –Protocols (MAC, routing)
Measuring the Capacity of a Web Server USENIX Sympo. on Internet Tech. and Sys. ‘ Koo-Min Ahn.
Chapter 13 – I/O Systems (Pgs ). Devices  Two conflicting properties A. Growing uniformity in interfaces (both h/w and s/w): e.g., USB, TWAIN.
ICALEPCS 2005 Geneva, Oct. 12 The ALMA Telescope Control SystemA. Farris The ALMA Telescope Control System Allen Farris Ralph Marson Jeff Kern National.
Computer Network Design EEL 6785 Dr. Janusz Zalewski University of Central Florida.
Cluster Computers. Introduction Cluster computing –Standard PCs or workstations connected by a fast network –Good price/performance ratio –Exploit existing.
Research Unit for Integrated Sensor Systems and Oregano Systems Cern Timing Workshop 2008 Patrick Loschmidt, Georg Gaderer, and Nikolaus Kerö.
Distributed Systems Lecture 5 Time and synchronization 1.
Computer System Structures
Distributed Computing
University of Maryland
Network Time Protocol (NTP) General Overview
Network Time Protocol (NTP) General Overview
NTP Performance Analysis
DCnet Research Network
Dept. of Computer Science
Computer Network Time Synchronization: the Network Time Protocol
NTP Architecture, Protocol and Algorithms
NTP Precision Time Synchronization
CAIRN/DARTnet Collaboration
Scalable, Autonomous Network Services Configuration
Network Time Protocol (NTP) Recent Developments
IEEE 1588 Conference and Plug-fest Winterthur, October 10-12, 2005
Internet Timekeeping Around the Globe
The Network Computer as Precision Timekeeper
NTP Clock Discipline Modelling and Analysis
NTP Clock Discipline Principles
WWV/H Demodulator and Decoder
NTPv4 Specification Update
Self-similar Distributions
Network Time Protocol: Past, Present and Future
WWV/H Demodulator and Decoder
PTP SOLUTIONS: Using PTP as a backup to GPS
Timekeeping in the Interplanetary Internet
Survivable Real-Time Network Services
Survivable Real-Time Network Services - the Nanokernel
NTP Architecture, Protocol and Algorithms
The Performance and Scalability of the back-end DAQ sub-system
NTP Research Opportunities
Cluster Computers.
Presentation transcript:

Sir John Tenniel; Alice’s Adventures in Wonderland,Lewis Carroll 11-Nov-151 The Nanokernel David L. Mills University of Delaware

11-Nov-152 Going faster and faster l Observing that –PC and workstation processor clock rates approaching and exceeding 1 GHz are becoming widely deployed –10-Mb Ethernets have been replaced by 100-MHz Ethernets and these are now being replaced by 1-GHz Ethernets –1.5-Mb Internet links have been replaced by 43-Mb links and these are being replaced by 155-Mb OC-3 links and soon 2.4-Gb OC-48 links l And further that –Timekeeping expectations have been typically tens of milliseconds on a WAN and low milliseconds on a LAN –Timekeeping ambitions for some applications are in the tens of microseconds on a modern workstation l We conclude that –Accuracy expectations can be considerably improved by moving the clock discipline code from user space to the kernel and, where available, precision synchronization sources

11-Nov-153 Evolution to NTP Version 4 l NTP Version 3 was first used in 1992 in a rambunctious Internet of congested links and 25-MHz workstations l NTP Version 4 architecture, protocol and algorithms have been evolved for gigabit networks and gigahertz computers –Improved clock models which accurately predict the phase and frequency noise for each synchronization source and network path –Engineered algorithms which reduce the impact of delay spikes and oscillator wander while speeding up initial convergence –Redesigned clock discipline algorithm which can operate in frequency-lock, phase-lock and hybrid modes l But, the Unix time adjustment primitive prevents further improvement to the ambition of a few microseconds

11-Nov-154 A B C t Frequency Error  +S  Adjustment Rate  R  Unix time adjustment primitive The discipline needs to steer the frequency over the range ±S, but the intrinsic clock frequency error is  Unix adjtime() slews frequency at rate R   PPM beginning at A l Slew continues to B, depending on the programmed frequency steer Offset continues to C with frequency offset due to error  The net error with zero steering is  which can be several hundred  s Adjustment Interval   SS

11-Nov-155 Computer clock modelling Pentium 200 SPARC IPC Resolution limit Alpha 433

11-Nov-156 Allan intercepts compared SystemResolutionPrecisionStability x Intercept y Intercept Range * SPARC IPC1000 ns good2000 s.01 PPM s Pentium 2001 ns5 nspoor50 s.03 PPM s Alpha 4331 ns2.3 nsgood200 s.005 PPM s Resolution limit1 ns good2 s.0004 PPM s * For stability no worse than twice y intercept

11-Nov-157 NTP kernel clock discipline l Type II, adaptive-parameter, hybrid phase/frequency-lock loop disciplines variable frequency oscillator (VFO) phase and frequency NTP daemon computes phase error V d =  r  o between source and VFO, then grooms samples to produce time update V s l Loop filter computes phase x and frequency y corrections and provides new adjustments V c at 1-s intervals l VFO frequency is adjusted at each hardware tick interrupt VdVd VcVc Phase/Freq Prediction Clock Filter Clock Adjust Phase Detector VFO VsVs r+r+ cc NTP Loop Filter x y NTP Daemon Kernel

11-Nov-158 FLL/PLL prediction functions y PLL PLL Predict  VsVs x Phase Correct y y FLL FLL Predict l V s is the phase offset produced by the clock filter algorithm l x is the phase correction computed as a fraction of V s l y FLL is the frequency adjustment computed as the average of past frequency offsets l y PLL is the frequency adjustment computed as the integral of past phase offsets l y FLL and y PLL are combined according to weight factors determined by poll interval and Allan deviation characteristic

11-Nov-159 Nanokernel architecture l PLL/FLL discipline predicts phase x and frequency y at measurement intervals from 1 s to over one day l PPS discipline predicts phase and frequency at averaging intervals from 4 s to 256 s, depending on nominal Allan intercept l On overflow of the clock second, a new value is calculated for the tick interrupt adjustment l Tick adjustment is added to the system clock at every tick interrupt l Process cycle counter (PCC) used to interpolate microseconds or nanoseconds between tick interrupts PLL/FLL Discipline Clock Oscillator PPS Discipline PPS Interrupt Tick Interrupt NTP Update Second Overflow Frequency Prediction Phase Prediction Calculate Adjustment x y

11-Nov-1510 PPS phase and frequency discipline l Phase and frequency disciplined separately - phase from system clock offset relative to second, frequency from process cycle counter (PCC) l Frequency discriminator rejects noise and incorrect frequency sources l Median filter rejects sample outlyers and provides error statistic l Range checks reject popcorn spikes in phase and frequency l Phase offsets exponentially averaged with variable time constant l Frequency offsets averaged over variable interval Phase Average Frequency Discrim Frequency Average y PPS Interrupt x Range Checks Range Checks Median Filter Ambiguity Resolve Second Offset PCC Counter

11-Nov-1511 Experimental results with PPS discipline l Hepzibah is a 400-MHz Pentium workstation with a GPS receiver l The PPS signal is connected via parallel port and modified driver l Rackety is a 25-MHz SPARC IPC dedicated NTP server with dual redundant GPS receivers and dual redundant WWVB receivers l This machine has over 1000 clients causing a load of 15 packets/sec l The PPS signal is connected via serial port and modified driver l Churchy is a 433-MHz Alpha workstation with a GPS receiver l This machine uses a SAW oscillator presumed spectrally pure l The PPS signal is connected via serial port and modified driver l All machines accessed the PPS signal from a GPS receiver and a level converter where necessary l Experiments lasted one day with data collected by the NTP daemon

11-Nov-1512 PPS time offset characteristic for Hepzibah l Jitter is presumed caused by interrupt latencies on the ISA bus l We need to explain why the spikes are both positive and negative

11-Nov-1513 PPS time offset characteristic for Rackety l Jitter is presumed caused by interrupt latencies on the Sbus l Large negative spikes reflect contention by the radios and network

11-Nov-1514 PPS time offset characteristic for Churchy l Jitter is presumed caused by interrupt latencies on the PCI bus l High flicker noise may be due to SAW phase noise and no PLL

11-Nov-1515 Present status l The kernel modifications have been implemented for FreeBSD, Linux, Alpha and SunOS l The current version is in current FreeBSD and Linux public distributions l An older version, but with resolution only to the microsecond, is in current Alpha and Solaris licensed products l A standard PPS application program interface (PPSAPI) has been proposed to the IETF and supported in all kernels

11-Nov-1516 Further information l Network Time Protocol (NTP): –Current NTP Version 3 and 4 software and documentation –FAQ and links to other sources and interesting places l David L. Mills: –Papers, reports and memoranda in PostScript and PDF formats –Briefings in HTML, PostScript, PowerPoint and PDF formats –Collaboration resources hardware, software and documentation –Songs, photo galleries and after-dinner speech scripts FTP server ftp.udel.edu ( pub/ntp directory) –Current NTP Version 3 and 4 software and documentation repository –Collaboration resources repository l Related project descriptions and briefings –See “Current Research Project Descriptions and Briefings” at