recent advances in ieee 1588 technology and its...

33
Recent Advances in IEEE 1588 Technology and Its Applications John C. Eidson [email protected] July 19, 2005 © Copyright 2005 Agilent Technologies, Inc.

Upload: others

Post on 18-Apr-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Recent Advances in IEEE 1588Technology and Its Applications

John C. [email protected]

July 19, 2005

© Copyright 2005 Agilent Technologies, Inc.

Page 2: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 2

Outline

•Overview of IEEE 1588

•Applications

•Standards Activity

Page 3: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 3

The Status of IEEE 1588

•Approved by the IEEE-SA Review Committee onSeptember 12, 2002

•Published as IEEE 1588-2002 on November 8, 2002

•Available from the IEEE http://standards.ieee.org

•Approved as IEC standard IEC 61588 on May 21, 2004

•Products and installations started appearing in late 2003

•Two conferences have been held: 2003, 2004

•A PAR has been submitted to extend the standard

•Current information may be found athttp://ieee1588.nist.gov

Page 4: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 4

Objectives of IEEE 1588

• Sub-microsecond synchronization of real-time clocks incomponents of a networked distributed measurement andcontrol system

• Intended for relatively localized systems typical ofindustrial automation and test and measurementenvironments.

• Applicable to local area networks supporting multicastcommunications (including but not limited to Ethernet)

Page 5: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 5

•Simple, administration free installation

•Support heterogeneous systems of clocks with varyingprecision, resolution and stability

•Minimal resource requirements on networks and hostcomponents.

Objectives of IEEE 1588 (continued)

Page 6: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 6

Synchronization Basics

Grandmaster Clock

This clock

determines the time

base for the system

Slave to the

Grandmaster Clock

and Master to its

Slave

Slave to its Master

Step 1: Organize the clocks into a master-slavehierarchy (based on observing the clock propertyinformation contained in multicast Sync messages)

Step 2: Each slave synchronizes to its master (based onSync, Delay_Req, Follow_Up, and Delay_Resp messagesexchanged between master and its slave)

Page 7: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 7

Timing diagramMaster Clock Time Slave Clock Time

Data at

Slave Clock

Follow_Up message

containing value of t1

Delay_Resp message

containing value of t4

t1

t2

Sync message

Delay_Req message

t2

t1, t

2

t3

t4

t1, t

2, t

3

t1, t

2, t

3, t

4

t2m

t3m

time

Page 8: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 8

To synchronize a pair of clocks conduct two experiments

First:

• Send a message, (Sync message), from master to slave andmeasure the apparent time difference between the twoclocks. MS_difference = slave’s receipttime – master’s sending time

• MS_difference = offset + MS delay

• For example:MS_difference = slave’s receipt time – master’s sending time90 minutes = 11:30 – 10:00

Synchronization Basics (continued)

Master Clock:

10:00AM

Slave Clock:

11:00AM

Offset = 1 hour

Sending time:

10:00AM

Receipt time:

11:30AM

Send message with Propagation

Time = 30 minutes

Page 9: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 9

Second:

• Send a message, (Delay_Req message), from slave to master andmeasure the apparent time difference between the two clocks.SM_difference = master’s receipt time – slave’s sending time

• SM_difference = – offset + SM delay

• For example:SM_difference = master’s receipt time – slave’s sending time – 20 minutes = 10:40 – 11:00

Synchronization Basics (continued)

Master Clock:

10:00AM

Slave Clock:

11:00AM

Offset = 1 hour

Receipt time:

10:40AM

Receipt time:

11:00AM

Send message with Propagation

Time = 40 minutes

Page 10: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 10

The result is that we have the following two equations:

MS_difference = offset + MS delay

SM_difference = – offset + SM delay

With two measured quantities:

MS_difference = 90 minutes

SM_difference = – 20 minutes

And three unknowns:

offset , MS delay, and SM delay

Synchronization Basics (continued)

Page 11: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 11

Rearranging the two equations:

MS_difference = offset + MS delay

SM_difference = – offset + SM delay

We get:

offset = {(MS_difference – SM_difference)

– (MS delay – SM delay )}/2

MS delay + SM delay = {MS_difference + SM_difference}

ASSUME: MS delay = SM delay = one_way_delay

Then:

offset = {MS_difference – SM_difference}/2

one_way_delay = {MS_difference + SM_difference}/2

Synchronization Basics (continued)

Page 12: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 12

offset = {MS_difference – SM_difference}/2

one_way_delay = {MS_difference + SM_difference}/2

In our example using the two measured quantities:

MS_difference = 90 minutes

SM_difference = – 20 minutes

We get:

offset = {90 – (– 20)}/2 = 55 minutes (not actual 60)

one_way_delay = {90 + (– 20 )}/2 = 35 minutes (not 30 or 40)

Synchronization Basics (continued)

Page 13: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 13

High accuracy IEEE 1588 implementation

Physical Layer

(PLL clock recovery)

Network Protocol

Stack

Application Layer

(1588 Code)

OSC.

Clock

Detector

MII

MASTER

Physical Layer

(PLL clock recovery)

Network Protocol

Stack

Application Layer

(1588 Code: PLL)

OSC.

Clock

Detector

MII

SLAVE

Network Elements

Physical Layer

(PLL clock recovery)

Physical Layer

(PLL clock recovery)

Queues

OSC.

Clock DetectorDetector

1588 CodeSLAVE MASTER

Optional 10 MHz

Manchester Encoded

Clock Signal From

Masters to Slaves

~ms jitter and bias

~ps jitter, bias ?

•Clockresolution

•resolution andjitter incorrectioncircuits

Stability, jitter

~us to ms jitter and bias

jitter and bias inpacket detection

50 ns/100m bias in CAT 5

Servo bias and jitter

Background

Page 14: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 14

Thermal considerations•Oscillator drift is a major contributor tosynchronization errors.

•Quartz crystal based oscillators

•Uncompensated oscillators generally in few ppm/degree range

•Thermal compensation typically x10 to x100 better

•Atomic based oscillators

•Several orders of magnitude less drift than quartz

Page 15: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 15

Oscillators: Allan Deviations for Common Sources

Page 16: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 16

1588 Multiple Subnet Topology

Repeateror

Switch

GPS

Repeateror

Switch

Repeateror

Switch

Repeateror

Switch

Grand Master Clock

Typical Slave Clock

Typical Master Port ofBoundary Clock

=1588 code & hardware

Boundaryclock

Router/switch

Only Slave Port ofBoundary Clock

For highestaccuracy all

networkcomponents are

boundary clocks

Page 17: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 17

Synchronization accuracy resultsAgilent (and others)

HirschmannBoundary ClockSwitch

Offset: nanosecondsStd. Dev: 15 nsMax/min: -35,+45 ns1 hour

Labs Boundary

Clock Switch

For all of the above the clock resolution was 20-25 ns

SwitchOffset: nanosecondsStd. Dev: 121 nsMax/min: -430,+720 nsRCS switch, 8 hours

2 Std. Dev.

Offset: nanosecondsStd. Dev: 24 nsMax/min: -100,+100 ns84 hours

2 Std. Dev.

Page 18: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 18

IEEE 1588: Applications• IEEE 1588 synchronizes real-time clocks in the nodes of a

distributed networked system.

• Enables a new methodology for measurement and control

• BASED ON TIME

• NOT ON TIME OF RECEIPT BASED EVENTNOTIFICATION.

NETWORK

Page 19: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 19

How synchronized clocks can be used

•Current systems actions (e.g. sampling an A/D)

• Start on receipt of SCPI command or hard-wired trigger.

• Requires controlling message/trigger arrival times.

•Time based systems

• Actions triggered by comparing local clock to the execution timegiven in a message or pre-configured in the node

• Message can arrive ANYTIME before the execution time.

• Precise control of arrival is unnecessary.

•Time stamping of data at the source

• Determining order and relationship of events in separate devices.

• Missing or out of sequence data events highly visible

Page 20: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 20

Schedule generated triggersDUT

Measuring deviceA/D

Trigger

TSCircularBuffer

Time freezebased on

Time scriptC

Actuating deviceD/A

Time trigger

TS

A

Timescript

Measuring deviceA/D

Time trigger

TS

B

Timescript

Trigger @tstart + 0:00.00010000 Trigger @tstart + 0:00.00010040 {Freeze buffer @tstart + 0:00.00010080

Send buffer @tstart + 0:00.00010090

Send:

event message (#1, tstart = tstart + 0:00.00020000)}

Controlleror Eventdetectingdevice

uP

Send: event message (#1, tstart = 10:00.00000000)

Page 21: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 21

Commercial IEEE 1588 ActivityIndustrial automation:

• Motion control is the performance critical application

• IEEE 1588 stopped the ‘non-deterministic’ arguments about Ethernet

• Rockwell, Siemens (automation) major programs/productdevelopment. Many other smaller companies, particularly in Europe.

Power systems:

• GE Drives & Control: gas turbine controls based on IEEE 1588 areoperational in the field

• Interest from GE Power Management (distribution & substation)

Military:

• Progeny is most active with 3 DOD contracts: 2 test related, 1operational (ship board sonar data logging).

Page 22: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 22

Commercial IEEE 1588 Activity (2)Telecommunications:

• Proposed for synchronization of services at the edge ofmetropolitan area networks)

• Nortel and Semtech are most visible proponents: Fieldtests with carriers in progress

Test & Measurement:

• LXI Consortium, Autotescon

Page 23: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 23

Commercial IEEE 1588 Activity (3)

IEEE 1588 Products Are Appearing:

•IEEE 1588 enabled Ethernet switches:OnTimeNetworks, Hirschmann Electronics

•‘Ethereal’ protocol analyzer (open software)

•Embedded micro-processors with IEEE 1588 cores:Intel.

•Software, hardware, toolkits, consulting: ZurichUniversity, Hirschmann Electronics, EmbeddedNetwork Solutions

Page 24: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 24

Commercial IEEE 1588 Activity (4)Second IEEE 1588 Conference held Sept. 27-29, 2004

Plug-fest:

• OnTime Networks, Hirschmann, University of Zurich,Semtech, Siemens, Rockwell, Agilent (distributed protocolanalyzer).

• Demonstrated interoperable synchronization of products tobetter than 100 ns overall and ~20 for the more preciseclocks.

Considerable technical and product progress since 2003conference.

The standard will be reopened for extensions

Page 25: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 25

Synchronization Accuracy

100psec

1 nsec 1 usec 1msec

10nsec

100nsec

10usec

100usec

Platform

sA

pplication needs

Motion Control

General T&M, IA

RF T&M, Military

Telecom

ASIC

Intel Chip

LAN Switches (On Time,Hirschmann)

FPGA

~75 ns std. Dev. achieved by everyone

~10-10 frequency:

Page 26: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 26

Test and Measurement1. Moving from bus (IEEE-488 aka. GPIB) connected

instrument systems to network connected modular systems.

2. Synchronization needs vary widely with application

a. Low to sub-nanosecond for most demanding

b. Microseconds to milliseconds for less demanding

Page 27: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 27

Military Systems

1. Variety of potential applications

a. Depot and test ranges

b. Flight test & qualification

c. Operational systems

2. Requirements very similar to testand measurement

Page 28: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 28

Industrial Automation

1. Wide variety of applicationsincluding:

a. Process control

b. Robotics

c. Packaging machinery

d. Web-processing

2. Most demanding synchronizationrequirements are for high speedprinting and similar applications

60mph = 1 inch/ms = 1 mil/us

Page 29: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 29

Power Industry

Power generation control

Mark VIe Distributed I/O System (Courtesy GE Drives and Controls)

60 Hz -> 16.7 ms

1 deg -> 46 us

Page 30: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 30

Telecommunications

METRODWDM CORE

METROCOLLECTORRING/MESH

IEEE 1588TimingServer

Stratum 1Reference

IEEE 1588 TimingRecovery

IEEE 1588 TimingRecovery

Metro-Enterprise: UNI demarcation

EnterpriseBranch Industrial

Enterprise

E1/T1

Page 31: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 31

IEEE 1588 Standards WorkAgenda Items:

•Transparent Clocks

•Layer 2 mapping, VLANs

•Short frame options, shortersync interval

•Redundancy hooks

•Fault tolerance especiallymaster clocks

•Security issues

•Unicast and multicast

•Best practices annex

•Resolution of known errors

•Formal mechanism forextensions

•Conformance requirementsfor testing

•Management of 1588 systems

•Map to DeviceNet

•Variable headers IPv4, IPv6

•QOS for PTP messages

Page 32: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

Residential Ethernet July 19, 2005 Page 32

IEEE 1588 Standards WorkParticipants in Working Group (>30)

•Hirschmann

•Kuka

•Siemens-automation

•Rockwell

•Oregano

•National Instruments

•RuggedCom

•Progeny

•US Navy

•Naval Research Lab

•Schweitzer EngineeringLaboratories

•Nokia

•Hyperfine

•Spectracom

•Symmetricom

•Zarlink

•Siemens-communications

•Semtech

•Agilent

•Hottinger Baldwin Measurements

•Zurich Univ. of Applied Science

•GE Power Management

Page 33: Recent Advances in IEEE 1588 Technology and Its Applicationsgrouper.ieee.org/groups/802/3/re_study/public/... · Residential Ethernet July 19, 2005 Page 4 Objectives of IEEE 1588

http://ieee1588.nist.gov

Questions?