36
Clock Synchronization, IEEE 1588 and Cyber-Physical Systems John C. Eidson University of California at Berkeley [email protected] Dreams seminar, UC Berkeley November 14, 2011

Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

  • Upload
    voquynh

  • View
    245

  • Download
    5

Embed Size (px)

Citation preview

Page 1: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson University of California at Berkeley [email protected] Dreams seminar, UC Berkeley November 14, 2011

Page 2: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 2

Outline

CPS background Timing, clocks, and IEEE 1588 Sources of synchronization error Uses of IEEE 1588 in CPS Future

Page 3: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 3

Controlling a CPS, e.g. industrial automation Learning about a CPS, e.g. test & measurement

Page 4: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 4

Both timing and value are important in a CPS!

Control

Measurement

Trend: More transducers, distributed systems => synchronized clocks

Courtesy of Brüel & Kjær

Courtesy of Bosch-Rexroth

Page 5: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 5

IEEE 1588: IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems (IEC 61588)

IEEE 1588 exists due to industry’s: Increasing requirement for distributed systems Customer demand for standards based

solutions Move to Ethernet from proprietary networks for

perceived cost reasons Need for timing accuracy better than 1 μs

Nothing profound or magical about 1588 - just the right thing at the right time

But it did help focus the discussion on timing in distributed Ethernet-based systems!

Page 6: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 6

Master-slave hierarchy of ordinary and boundary clocks

Hierarchy based on pair-wise comparison of:

1. priority-1

2. class (UTC traceability)

3. accuracy (with respect to UTC)

4. variance

5. priority-2

6. UUID (tiebreaker)

Page 7: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 7

Synchronization: delay request-response mechanism

Page 8: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 8

If the link is not symmetric The propagation time is the mean of the master-to-slave

and slave-to-master propagation times The offset is in error by the difference between the

actual master-to-slave and mean propagation times IF you know the asymmetry, the standard specifies how

to correct for it Correcting asymmetry is a major concern in high

accuracy synchronization. This is true for all two-way synchronization protocols and is not unique to 1588.

Synchronization: delay request-response mechanism computations

Page 9: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 9

Sources of synchronization error

ns

ms

ns μs-ms

Page 10: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 10

Oscillators (where it all starts!)

Symmetricom 5071A Cesium Clock

CTS Corporation CTS CB3LV

Page 11: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 11

UTCi vs. UTC

Even atomic clocks drift! Keeping precise and accurate time is very difficult.

Page 12: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 12

IEEE1588 Boundary Clock

μs-ms

Page 13: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 13

IEEE 1588 Transparent Clock

μs-ms

Page 14: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 14

How well can you synchronize?

-10 -5 0 5 100

20

40

60

80

100

120

140

Num

ber o

f Occ

uren

ces

Error (nsec)

1 PPS Deviation Between Nodes A & B

From: Update on High Precision Time Synchronization, Vook, et.al., IEEE-1588 Conference, Zurich, October 2005

Typical 8 ns LSB performance 1 GHz design (1 ns LSB) 1000 points over 15 minutes: direct link

Mean -0.311 ns STD 0.771 ns Max 1.60 ns Min –2.40 ns

Page 15: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 15

IEEE 1588v2/PTP and SyncE/ITU-T G.8261

From: “DP83640 Synchronous Ethernet Mode: Achieving Sub-nanosecond Accuracy in PTP Applications, National Semiconductor Application Note 1730, David Miller, September 2007

Page 16: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 16

How do you use a synchronized clock? (all 3 forms supported in DP83640 PHY chip)

Page 17: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 17

IEEE 1588 Commercial products (partial listing)

Boundary and transparent clocks: Hirschmann, RuggedCom, Cisco, Siemens, Huawei,…

PHY chips: National Semiconductor, Intel, Zarlink, Vitesse, Broadcom, Marvell,…

Microprocessors: Intel, Conemtech AB, Analog Devices, Freescale,…

Protocol stacks: IXXAT, RTS, Flexibilis,… FPGA IP Blocks: System-on-chip Engineering,

MoreThanIP, Xilinx, Altera,… Ordinary clocks: Symmetricom, Meinberg, … Debug help: Wireshark, Ixia, Symmetricom,… ISPCS- IEEE International Symposium on

Precision Clock Synchronization

Page 18: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 18

Power system applications

GE uses 1588 in the Mark™VIe control system for large generators, turbines, wind farms, and other DCS applications. (>50K I/O Packs with 1588 shipped to date)

Courtesy of General Electric

Page 19: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 19

Power system synchrophasor application

Photo courtesy of Veselin Skendzic

Page 20: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 20

Power system synchrophasor application

Page 21: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 21

Power system synchrophasors

IEEE 1588 referenced in C37.238, C38.118.1 and C37.118.2

UTC to < 1uS

Page 22: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 22

Telecommunications applications

Cellular backhaul, pico and femto cells are the first major telecommunications applications

Femto cell access points: ~4M in 2011 to 48M in 2014 (from ‘Femtocell Market Status’ – Informa, a white paper of the femtoforum)

IEEE 1588 enabled PHY chips appearing, e.g. Broadcom BCM54682E — octal-port QSGMII 10/100/1000BASE-T GbE transceiver

Page 23: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 23

Standardization activity for packet-based time and frequency transfer in telecommunications

ITU-T SG15 Q13 ITU-T Recommendation G.8265.1 (10/2010), Precision Time

Protocol Profile for Frequency Synchronization Starting G.8275 and G.8275.1 for time/phase transfer using

IEEE 1588

IETF: ‘Tic-Tock’ ICAP- IEEE 1588 Conformity Alliance (testing &

certification)

Page 24: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 24

Synchronization requirements for wireless air interface technologies

Technology Frequency Accuracy Phase Accuracy GSM (2G) ±50 ppb Not required UMTS ±50 ppb Not required CDMA 2000 ±50 ppb ±3.0 μs WCDMA ±50 ppb

±1.25 μs reference to BTS ±2.55 μs between base stations

Pico RBS (WCDMA and GSM)

±100 ppb

±3.0 μs

Based on a Juniper Networks white paper- ‘Synchronization Deployment Considerations for IP RAN Backhaul Operators’

Page 25: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 25

Typical cellular backhaul architecture

Courtesy of Huawei

OptiX PTN 3900

T6020 Grandmaster

PTN 950

Current Technology

Page 26: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 26

Telecom time transfer field trial in China

Each chain had 15 boundary clocks

BCs used SyncE for frequency and 1588 for time transfer

Accumulated error < 3 μs requirement for TD-SCDMA

From “Using IEEE 1588 and Boundary Clocks for Clock Synchronization in Telecom Networks”- Ouellette, et.al. IEEE Communications Magazine • February 2011

Page 27: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 27

Industrial automation example

o Rockwell Ethernet/IPtm

Time-based control over Ethernet o Commands and sensor readings are locally timestamped o Has been installed on 130 axis packaging machines

Page 28: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 28

Aircraft telemetry (courtesy Lee Eccles, Hung Mach, Larry Malchodi of Boeing)

Analog Acquisition

DAU

GPSI DAU

ARINC-429 DAU

VIDEO DAU

ARINC-629

Ethernet Switch #3

Ethernet Switch #1

Ethernet Switch #2

Symm XLI

IEEE 1588 Master

100Mbps

100Mbps

100Mbps

100Mbps

100Mbps

100Mbps

100Mbps

100Mbps

100Mbps

RECORDER

RCDR1

MGMT SERVER

TMTP

CISCOFIREWALL

Firewall/Router

100 Mbps 1 Gbps

Central Ethernet Switch

100Mbps

1Gbps

1Gbps

1Gbps

1Gbps

1Gbps

1Gbps

ARINC 629

Video Camera

Legacy Data Acquisition System

Many Analog Transducers

Legacy ARINC-429 Interface

Up to 30 ARINC-429 Buses

Up to 4 ARINC-429 Buses

Many Analog Transducers

Company Intranet

Telemetry Transmit

Processor

UserInterface(s)

100Mbps

UserInterface

100Mbps

Management Server

ADAMS Real-Time

Data Processor

Network Fabric

24 Port Switch

UserInterface

100Mbps

GPSI DAU 100Mbps

Internet

UserInterface

100Mbps

HFCI DAU

ARINC-664 DAU

Ethernet DAU 100Mbps

100Mbps

100Mbps

Guest Stations

100Mbps

1588 Grandmaster

Acquisition devices with 1588 clock, < 1 μs

1588 Transparent clocks

Courtesy of Teletronics

Page 29: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 29

Sound, vibration,…, machine condition monitoring

Courtesy Brüel & Kjaer

Courtesy Crystal Instruments

Photograph by Alan D. Monyelle, USN, 5/23/02

Acquisition devices with 1588 clock, ~ 1 μs

Page 30: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 30

CERN’s White Rabbit Project (based on “White Rabbit: a PTP Application for Robust Sub-nanosecond Synchronization”- Maciej Lipinski, et.al., ISPCS 2011 Munich)

Goal: Develop an alternate timing and control system for the General Machine Timing at CERN

Synchronization of up to 2000 nodes with sub-nanosecond accuracy, an upper bound on frame delivery and a very low data loss rate

Based on and compatible with Ethernet (IEEE 802.3), Synchronous Ethernet (ITU-T Std. G.8262, 2007) and IEEE 1588-2008.

For sub-nanosecond EVERYTHING matters: oscillators; media, PHY, board asymmetry, temperature, …

Page 31: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 31

White Rabbit Performance: Sub-nanosecond synchronization error over three 5km fiber optic links!

Maciej Lipinski, et.al., ISPCS 2011, Munich

Page 32: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 32

What does the future hold for timing and CPS?

Advances in clock physics Innovations in time and synchronization in

CPS applications, e.g. IA, telecom Evolution of applicable standards IEEE 802 community takes timing seriously Advances in time specific programming

languages and development environments: example- the UC Berkeley Ptides Project

Symmetricom SA.45s CSAC

Page 33: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 33

Using clocks- UC Berkeley Ptides Project (Patricia Derler, John Eidson, Slobodan Matic, Prof. Edward Lee, Michael Zimmer)

Page 34: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 34

System model

Page 35: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 35

T-REX Controller

Model time delays

Computations Sensors Actuators

Page 36: Clock Synchronization, IEEE 1588 and Cyber-Physical Systems

John C. Eidson, UC Berkeley 36

Renesas vs. XMOS: Measured I/O timing

-0.1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2 Time (ms)

topDeadCenter armContact tapeDetector contact cut

Simulation

Renesas

XMOS input input

output