EPICS EPICS Collaboration Meeting Argonne National Laboratory drvTS improvements for soft timing EPICS Collaboration Meeting Argonne National Laboratory.

Slides:



Advertisements
Similar presentations
IETF TICTOC Considerations about IEEE1588 version 2 for Telecom usage.
Advertisements

FPGA Configuration. Introduction What is configuration? – Process for loading data into the FPGA Configuration Data Source Configuration Data Source FPGA.
Copyright © 2014 EMC Corporation. All Rights Reserved. Basic Network Configuration for File Upon completion of this module, you should be able to: Configure.
HIERARCHY REFERENCING TIME SYNCHRONIZATION PROTOCOL Prepared by : Sunny Kr. Lohani, Roll – 16 Sem – 7, Dept. of Comp. Sc. & Engg.
Max-Planck-Institut für Gravitationsphysik - Albert-Einstein-Institut DC Meeting Golm - Karsten Kötter1 Current status of DAQ System
More on protocol implementation Version walks Timers and their problems.
Clock Synchronization. Problem 5:33 5:57 5:20 4:53 6:01.
XFEL The European X-Ray Laser Project DESY/ XFEL An Overview EPICS Collaboration Meeting San Francisco, October 5th, 2013 Matthias Clausen, DESY.
Network Time Protocol (NTP) August 9 th 2011, OSG Site Admin Workshop Jason Zurawski – Internet2 Research Liaison.
11 TROUBLESHOOTING Chapter 12. Chapter 12: TROUBLESHOOTING2 OVERVIEW  Determine whether a network communications problem is related to TCP/IP.  Understand.
NTP Time for iThingies A Network Time Protocol app. for iPhone and iPad Presented to TTSO8 on by Chris Douglass 1.
Effects of Clock Resolution on the Scheduling of Interactive and Soft Real- Time Processes by Yoav Etsion, Dan Tsafrir, Dror G. Feitelson Presented by.
CS6223: Distributed Systems Distributed Time and Clock Synchronization (1) Physical Time.
CSE 486/586, Spring 2013 CSE 486/586 Distributed Systems Time and Synchronization Steve Ko Computer Sciences and Engineering University at Buffalo.
Distributed Systems Fall 2010 Time and synchronization.
1 Soft Timers: Efficient Microsecond Software Timer Support For Network Processing Mohit Aron and Peter Druschel Rice University Presented By Jonathan.
© Chinese University, CSE Dept. Distributed Systems / Distributed Systems Topic 9: Time, Coordination and Replication Dr. Michael R. Lyu Computer.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 13th Lecture Christian Schindelhauer.
Lecture 9: Time & Clocks CDK4: Sections 11.1 – 11.4 CDK5: Sections 14.1 – 14.4 TVS: Sections 6.1 – 6.2 Topics: Synchronization Logical time (Lamport) Vector.
TICTOC -Topology-Discovery and Clock-Discovery TICTOC BOF IETF70 Stewart Bryant
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
1 Physical Clocks need for time in distributed systems physical clocks and their problems synchronizing physical clocks u coordinated universal time (UTC)
Enhanced NTP IETF – TicToc BOF Greg Dowd – Jeremy Bennington –
A Security Analysis of the Network Time Protocol (NTP) Presentation by Tianen Liu.
176 Introduction to Network Time Protocol (NTP) Version A.01 H3065S Module 15 Slides.
Installing and maintaining clusters of FreeBSD servers using PXE and Rsync Cor Bosman XS4ALL
SNS Integrated Control System EPICS Collaboration Meeting SNS Machine Protection System SNS Timing System Coles Sibley xxxx/vlb.
ICS – Software Engineering Group 1 The SNS General Time Timestamp Driver Sheng Peng & David Thompson.
H.Z. Peek Nikhef Amsterdam Electronics- Technology VLVnT11 Erlangen12-14, October White Rabbit Sub-Nanosecond timing over Ethernet H.Z. Peek......
Redundancy. 2. Redundancy 2 the need for redundancy EPICS is a great software, but lacks redundancy support which is essential for some highly critical.
GPS based time synchronization of PC hardware Antti Gröhn
1 SNL Current State (in transition state) By Matthias Clausen Ron Chestnut.
LANSCE Timing Requirements LA-UR Eric Bjorklund.
ICS – Software Engineering Group 1 GeneralTime Proposal Status at SNS and Ideas for EPICS base David Thompson Sheng Peng Kay-Uwe Kasemir.
SNS Integrated Control System A process manager for soft IOCS DH Thompson.
General Time Update David Thompson Epics Collaboration Meeting June 14, 2006.
Cisco Discovery Protocol. CDP and Router Boot Up When a Cisco device boots up, CDP starts up automatically and allows the device to detect neighbor devices.
Time Management.  Time management is concerned with OS facilities and services which measure real time, and is essential to the operation of timesharing.
UNIT - III. Time Server It is a daemon that runs on one machine and to which other systems synchronize their system clocks. It is a service that provides.
Outline for Today Objectives: –Time and Timers Administrative details: –Talk on learning at 4 in 130 North Building –Questions?
Timing Requirements for Spallation Neutron Sources Timing system clock synchronized to the storage ring’s revolution frequency. –LANSCE: MHz.
EPICS EPICS Limitations Bob Dalesio Marty Kraimer.
Synchronization Distributed System. Why synchronization? Two sharpshooters in a multiplayer online game kill the same target. Which one gets the points?
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.
1 Timo Korhonen & Babak Kalantari PSI, Villigen, Switzerland 1. drvTS revisited 2. Wishlist 3. Current status 4. Proposal Updating IOC Time Capabilities.
EPICS at DESY M. Clausen EPICS workshop Trieste’99 1 EPICS at DESY Matthias Clausen.
Time and global states Chapter 11. Outline Introduction Clocks, events and process states Synchronizing physical clocks Logical time and logical clocks.
Reliability/ Secure IOC / Outlook M. Clausen / DESY 1 Reliability Secure IOC DESY Outlook Matthias Clausen DESY/ MKS.
EPICS EPICS Collaboration Meeting Argonne June 2006 IOC Redundancy: Redundancy Monitor Task EPICS Meeting - Redundancy Argonne, June 16, 2006 Matthias.
Matthias Clausen, Gongfa Liu, Bernd Schoeneburg (DESY), ICALEPCS, 2007 XFEL The European X-Ray Laser Project X-Ray Free-Electron Laser Redundant EPICS.
GAN: remote operation of accelerator diagnosis systems Matthias Werner, DESY MDI.
Krzysztof Czuba1 REFERENCE FREQUENCY DISTRIBUTION SYSTEM FOR THE TESLA TECHNOLOGY BASED PROJECTS Krzysztof Czuba Matthias Felber.
Computer Network Design EEL 6785 Dr. Janusz Zalewski University of Central Florida.
Precise measurement of physical link delay 802.1as, IEEE 802 plenary Lu Huang
Distributed Systems Lecture 5 Time and synchronization 1.
Monitoring Dynamic IOC Installations Using the alive Record Dohn Arms Beamline Controls & Data Acquisition Group Advanced Photon Source.
Page 1 Clock Synchronization: Physical Clocks Minqi Zhou Distributed Systems Except as otherwise noted, the content of this presentation.
ESS Timing System Plans Timo Korhonen Chief Engineer, Integrated Control System Division Nov.27, 2014.
Distributed Computing
Lecture 5 Time and synchronization
IEEE 1588 Conference and Plug-fest Winterthur, October 10-12, 2005
Logical time (Lamport)
Clock Synchronization: Physical Clocks
CDK: Sections 11.1 – 11.4 TVS: Sections 6.1 – 6.2
Logical time (Lamport)
Logical time (Lamport)
Commissioning the European XFEL cryogenic system and best practice
Logical time (Lamport)
Presentation transcript:

EPICS EPICS Collaboration Meeting Argonne National Laboratory drvTS improvements for soft timing EPICS Collaboration Meeting Argonne National Laboratory June 2006 Matthias Clausen on behalf of Bernd Schoeneburg DESY Cryogenic Controls

2 EPICS EPICS Collaboration Meeting Argonne National Laboratory Matthias Clausen, Bernd Schoeneburg, DESY Cryogenic Control, 14-June-06 Agenda Time Requirements for Cryogenic Controls Soft Time Synchronization in EPICS Improved NTP Synchronization Network Delay Consideration Compensating Clock Oscillator Errors To Do / Nice to Have

3 EPICS EPICS Collaboration Meeting Argonne National Laboratory Matthias Clausen, Bernd Schoeneburg, DESY Cryogenic Control, 14-June-06 The Requirements for Cryogenic Controls 95% inputs are scanned periodically with 1 second. Time accuracy in IOC should be < 1 second. ►Soft (network) timing is sufficient ►No event system Many IOCs (~45) with different TS-configuration. Some can not be rebooted before a machine shutdown. Accurate time is delivered by NTP servers outside the control network subnet.

4 EPICS EPICS Collaboration Meeting Argonne National Laboratory Matthias Clausen, Bernd Schoeneburg, DESY Cryogenic Control, 14-June-06 Existing 3.13.x EPICS implementation + IOCs have same and correct time if NTP-server is up. - no master allowed on subnet! All slaves would connect to master. - no time synchronization any more if NTP-server or gateway fails. - no time synchronization if the NTP-Server is not up at IOC boot time. IOC Slave IOC Slave IOC Slave IOC Slave IOC Slave Gateway Control Net DESY Net / WAN NTP Server 1: All IOCs are configured as timing slaves network time protocol

5 EPICS EPICS Collaboration Meeting Argonne National Laboratory Matthias Clausen, Bernd Schoeneburg, DESY Cryogenic Control, 14-June-06 Existing 3.13.x EPICS implementation + IOCs have the same time - IOC clocks are drifting with master clock (if no GPS-HW etc. is present) - Master can not synchronize with NTP-server. IOC Slave IOC Slave IOC Slave IOC Slave IOC Master Gateway Control Net DESY Net / WAN NTP Server 2: Solution with a timing master EPICS time protocol

6 EPICS EPICS Collaboration Meeting Argonne National Laboratory Matthias Clausen, Bernd Schoeneburg, DESY Cryogenic Control, 14-June-06 Improvements for Soft Timing 1.New mode (type) in TSconfigure “type” is the last parameter in TSconfigure (). 0 (default)= Use event system hardware, if present. 1= Do not check if HW is present, use soft timing! 2 (new)= Force to use NTP synchronization. Mode 2 for timing slaves: Like 1. Do not try to get time from Master, use NTP-Servers! Mode 2 for timing masters: Like 1. Start the synchronization task like a slave and use NTP to synchronize the internal time.

7 EPICS EPICS Collaboration Meeting Argonne National Laboratory Matthias Clausen, Bernd Schoeneburg, DESY Cryogenic Control, 14-June-06 Improvements for Soft Timing + Slaves can select if they want the time from a master or NTP-server + Master can synchronize with NTP-server. IOC Slave type 0 IOC Slave type 0 IOC Slave type 2 IOC Slave type 0 IOC Master type 2 Gateway Control Net DESY Net / WAN NTP Server EPICS-TP and NTP is possible in parallel now EPICS time protocol NTP

8 EPICS EPICS Collaboration Meeting Argonne National Laboratory Matthias Clausen, Bernd Schoeneburg, DESY Cryogenic Control, 14-June-06 Improvements for Soft Timing 2.Use more than one NTP-Server The environment parameter “EPICS_TS_NTP_INET” can now contain a list of servers. If the currently selected server fails, the next one will be used to get the time. At boot time: First try NTP to get the time from a server from the list. Then try NTP to get it from the boot host. At last try Unix time protocol to get it from the host. Later synchronization: Use NTP with servers from the list only.

9 EPICS EPICS Collaboration Meeting Argonne National Laboratory Matthias Clausen, Bernd Schoeneburg, DESY Cryogenic Control, 14-June-06 Improvements for Soft Timing 3.Enhanced NTP Functionality  The network delay times are considered in a new function called “TSgetEpicsTimeFromNtpBuffer ()”. IOC NTP-server Time NTP RX time NTP TX time IOC TX time IOC RX time NTP processing time Net delay 1 Net delay 2 T = NTPTX + ((IOCRX – IOCTX) – (NTPTX – NTPRX)) / 2

10 EPICS EPICS Collaboration Meeting Argonne National Laboratory Matthias Clausen, Bernd Schoeneburg, DESY Cryogenic Control, 14-June-06 Improvements for Soft Timing 4.Internal Clock Correction In spite of correct NTP or EPICS time synchronization, some IOC have wrong time of a few seconds – why?  When a ‘sync’ is done, the difference is scheduled to be driven to zero until the next expected synchronization.  But: During this time the clock of the IOC causes a new deviation if the frequency of the oscillator is wrong.  Need a correction of the frequency error!  existing offset correction is unchanged.  frequency correction runs continuously and is adjusted incrementally at each synchronization.

11 EPICS EPICS Collaboration Meeting Argonne National Laboratory Matthias Clausen, Bernd Schoeneburg, DESY Cryogenic Control, 14-June-06 Improvements for Soft Timing Diff Sync 1 Sync 3 Sync 2 Time correction without frequency compensation Sync 1 Sync 3 Sync 2 Diff Time freq-correction with frequency compensation

12 EPICS EPICS Collaboration Meeting Argonne National Laboratory Matthias Clausen, Bernd Schoeneburg, DESY Cryogenic Control, 14-June-06 Results, Future Plans 1.Yes, it works. 2.The effect of network delay compensation is small. As long as the local time resolution is 1/60 second it works too coarsely for short delays! At the moment this functionality is disabled for delays <= 2 ticks. 3.It is implemented into R and can (should) be merged into R3.14.x. 4.The usage of a fast running timer (most BSPs support this) could be implemented.  Network delays could be compensated correctly.  Accurate timestamps were possible without extra hardware.

13 EPICS EPICS Collaboration Meeting Argonne National Laboratory Matthias Clausen, Bernd Schoeneburg, DESY Cryogenic Control, 14-June-06 Conclusion Soft timing is now more comfortable NTP and EPICS-TP can be used in parallel More NTP servers can be used for redundancy NTP network delays are compensated Frequency error of the IOC clock oscillator is compensated no 3.14 version yet no fine resolution (accurate timestamp) yet

14 EPICS EPICS Collaboration Meeting Argonne National Laboratory Matthias Clausen, Bernd Schoeneburg, DESY Cryogenic Control, 14-June-06 End