Академический Документы
Профессиональный Документы
Культура Документы
John Eidson
July 16, 2003
john_eidson@agilent.com
Overview
Objectives of 1588
A bit of history
Where is it being used?
Comparison with other protocols
What the 1588 standard defines
Technical overview
Prototype results
Page 2
Objectives of 1588
Sub-microsecond synchronization of real-time
clocks in components of a networked distributed
measurement and control system
Intended for relatively localized systems typical
of industrial automation and test and
measurement environments.
Applicable to local areas networks supporting
multicast communications (including but not
limited to Ethernet)
Page 3
Page 4
A bit of History
Status of IEEE 1588
Approved by the IEEE-SA Review Committee on
12 Sept. 2002
Published on November 8 2002
Available from the IEEE
http://standards.ieee.org
Page 5
Judah Levine-NIST
John Eidson-Agilent
Anatoly MoldovanskyRockwell
Richard Hambly-CNS
Systems
Ed Powers-Naval Observatory
Bruce Hamilton-Agilent
Jim Read-Hyperfine
Steve Jennings-BoschRexroth
Richard Schmidt-Naval
Observatory
Robert JohnsonTelemonitor
Steve Smith-ORNL
Bill Kneifel-KUKA
I&M Society IEEE1588
Jurgen
Knopke-Lenze
July 16,, 2003
Joe White-NRL
Stan Woods-Agilent
Page 6
Page 7
Page 8
Page 9
HZx Wrappers
Page 10
Page 11
60mph =
1 inch/millisecond =
1 mil/microsecond
Page 12
Page 13
Page 14
Page 15
1588
NTP
GPS
TTP
SERCOS
Spatial
extent
A few subnets
Wide area
Wide area
Local bus
Local bus
Communications
Network
Internet
Satellite
Bus or star
Bus
Target
accuracy
Submicrosecond
Few
milliseconds
Submicrosecond
Submicrosecond
Submicrosecond
Style
Master/slave
Peer
ensemble
Client/server
Distributed
Master/Slave
Resources
Small network
message and
computation
footprint
Moderate
network and
computation
footprint
Moderate
computation
footprint
Moderate
Moderate
Page 16
1588
NTP
GPS
TTP
SERCOS
Latency
correction
Yes
Yes
Yes
Configured
No
Protocol
specifies
security
No
Yes
No
No
No
Administration
Self
organizing
Configured
N/A
Configured
Configured
Hardware?
For highest
accuracy
No
RF
receiver
and
processo
r
Yes
Yes
Update interval
~2 seconds
Varies,
nominally
seconds
~1
second
Every TDMA
cycle, ~ms
Every TDMA
cycle, ~ms
Page 17
1588 Defines:
Descriptors characterizing a clock
The states of a clock and the allowed state
transitions
1588 network messages, fields, and
semantics
Datasets maintained by each clock
Actions and timing for all 1588 network and
internal events
Page 18
Page 19
Application layer
msecs of delay and
fluctuation
< 100 nsecs of delay
and fluctuation
Network protocol
stack
Physical layer
Repeater,
Switch, or
Router
Page 20
Routers:
Use transfer devices (1588 boundary clocks) to
reduce router latency and fluctuations
Page 21
Repeater
or
Switch
Repeater
or
Switch
=1588 code & hardware
Page 22
Page 23
Page 24
Application layer
Network protocol
stack
Optional
Sync and
Delay_Req
message
detector
Physical layer
Page 25
IEEE-1588 Code
Network protocol
stack & OS
Sync detector
& timestamp
generator
Physical layer
Repeater,
Switch, or
Router
Page 26
1588 Synchronization
Master Clock
Slave Clock
uProcessor-A
estimated sending time = 9:59.99AM
precise sending time = 10:00AM
uProcessor-B
estimated sending time = 9:59.99AM
receipt time = 10:05AM
SMD-A
measures Sync message
precise sending time = 10:00AM
SMD-B
measures Sync message
receipt time = 10:05AM
Sync message
estimated sending time = 9:59.99AM
network
Master Clock
Slave Clock
uProcessor-A
precise sending time =
10:00AM
Clock
correction
circuits
0:05
uProcessor-B
estimated sending time = 9:59.99AM
precise sending time = 10:00AM
receipt time = 10:05AM
SMD-A
Clock
Follow_Up message
precise sending time = 10:00AM
network
SMD-B
Step 1:
Sync message sent from
master to slaves
All Sync message
detectors (SMD) note
the time on the local
clock this message
appears at the SMD
Step 2:
Follow-Up message
containing precise
sending time sent from
master to slaves
All slaves compute
offset and correct their
clock
Page 27
Synchronization computation
offset = receipt time precise sending time
one way delay (for a Sync message)
one way delay = {master to slave delay + slave
to master delay}/2 (assumes symmetric
delay)
master to slave delay = receipt time precise
sending time (for a Sync message)
slave to master delay = Delay_Req receipt time
-precise sending time (of a Delay_Req
message)
I&M Society IEEE1588
July 16,, 2003
Page 28
Sync messages:
Issued by clocks in the Master state
Contain clock characterization information
Contain a estimate of the sending time
When received by a slave clock the receipt time
is noted
Can be distinguished from other legal
messages on the network
For best accuracy these messages can be
easily identified and detected at or near the
physical layer and the precise sending (or
receipt) time recorded
I&M Society IEEE1588
July 16,, 2003
Page 29
Follow_Up messages:
Issued by clocks in the Master state
Always associated with the preceding Sync
message
Contain the precise sending time as measured
as close as possible to the physical layer of the
network
When received by a slave clock the precise
sending time is is used in computations rather
than the estimated sending time contained in the
Sync message
Page 30
Delay_Req messages:
Issued by clocks in the Slave state
When received by the master clock the receipt
time is noted
The slave measures and records the sending
time
Can be distinguished from other legal
messages on the network
For best accuracy these messages can be
easily identified and detected at or near the
physical layer and the precise sending (or
receipt) time recorded
I&M Society IEEE1588
July 16,, 2003
Page 31
Delay_Resp messages:
Issued by clocks in the Master state
Always associated with a preceding Delay_Req
message from as specific slave clock
Contain the receipt time of the associated
Delay_Req message
When received by a slave clock the receipt time
is noted and used in conjunction with the
sending time of the associated Delay_Req
message as part of the latency calculation
Page 32
Repeater
or
Switch
Repeater
or
Switch
GPS
Boundary
clock
Router
Repeater
or
Switch
Only Slave Port of
Boundary Clock
Repeater
or
Switch
I&M Society IEEE1588
July 16,, 2003
Page 34
Page 35
Page 36
Page 37
Page 38
Agilent 5372A
F&T Analyzer
1 PPS signal
Clock-A
Agilent Technologies
prototype clock
I&M Society IEEE1588
July 16,, 2003
Clock-B
1-4 Ethernet
repeaters
Page 39
10
-7
-8
Allan Deviation
CTS CB3LV
10
10
10
10
-9
-10
10811D
-11
-12
10
-1
10
10
10
Averaging Time, seconds
10
10
Page 40
Switch Connection
Inexpensive oscillator, fast loop
s = 140 ns
70
60
Offset-nanoseconds
385
320
255
190
125
40
340
290
240
190
140
90
40
-10
-60
-110
20
-160
390
325
260
195
130
65
-65
-130
-195
-260
-325
-390
60
-210
20
80
-260
40
s = 92 ns
100
Frequency
Frequency
60
60
s = 123 ns
Offset-nanoseconds
-5
Offset-nanoseconds
-70
350
280
210
140
70
-70
-140
-210
-280
-350
-420
-490
10
-135
20
10
-200
20
30
-265
30
40
-330
40
50
-395
50
-460
Frequency
60
Frequency
s = 138 ns
70
Offset-nanoseconds
Page 41
Repeater Connection
Inexpensive oscillator, fast loop
Offset-nanoseconds
125
100
75
50
s = 80 ns
s = 42 ns
Frequency
300
250
200
150
100
Offset-nanoseconds
200
165
130
95
60
25
-10
-45
-80
-115
-150
-185
-220
240
195
150
105
60
15
-30
-75
-120
-165
-210
-255
50
-300
Frequency
-25
Offset-nanoseconds
-50
50
0
185
150
80
45
10
-25
-60
-95
-130
-165
-200
-235
115
20
-75
40
100
-100
60
150
-125
80
-150
Frequency
100
s = 46 ns
200
25
s = 75 ns
120
Frequency
Offset-nanoseconds
Page 42
Direct Connection
Inexpensive oscillator, fast loop
s = 39 ns
Offset-nanoseconds
70
M
ore
55
40
25
s = 76 ns
s = 15 ns
600
120
Offset- nanoseconds
45
35
25
15
5
-3
230
180
130
80
30
-20
-70
-120
-170
-220
100
-270
20
-5
200
40
300
-1
60
400
80
-2
Frequency
500
100
-320
Frequency
10
Offset-nanoseconds
-5
-8
0
-6
5
55
75
15
35
-5
-2
5
-1
45
-1
25
-1
05
-85
-6
5
-45
-2
0
Frequency
200
150
100
50
250
200
150
100
50
0
-5
0
-3
5
s = 34 ns
250
Frequency
Offset- nanoseconds
Page 43
Page 44
nanoseconds
I&M Society IEEE1588
July 16,, 2003
Page 45
Page 46