Professional Documents
Culture Documents
1. Introduction
The IEC 61850 standard [1] for the design of
substation automation systems has been established as
the main communication and system standard within the
substation domain. As such the substation automation
domain is in an easier situation than other parts of
automation where there are numerous communication
technologies competing for market shares. The IEC
61850 standard is used throughout the world and has a
considerable installed based. The first edition was
released in 2003 and the second edition is upcoming.
Electrical substations have strict requirements on time
synchronization in order to ensure that the system
performs according to the specifications so that the
resulting power output meets the desired characteristics.
In the first edition of IEC 61850 standard the time
synchronization requirements were handled via the
SNTP (Simple Network Time Protocol) standard. A
typical requirement could be to synchronize devices in
the systems to within 1 ms. In a relatively small system
this could be achieved with the use of SNTP.
In present substation automation systems the
complexity and size of the systems grow and the
requirements get tougher. Thus, fulfilling the time
synchronization requirements in such systems with the
use of SNTP is getting increasingly difficult. Because of
978-1-4577-0018-7/11/$26.00
2011 IEEE
Gunnar Prytz
ABB Corporate Research
Bergerveien 12
NO-1396 Billingstad, Norway
Gunnar.Prytz@no.abb.com
Time Gateway
End Device
(PTP Master)
(Boundary Clock)
(SNTP Client)
Eth
10/100
Eth0
Eth1
PTP
SNTP
PTP Aware
network infrastructure
PTP Domain
SNTP Domain
DDR
Contr
NIOS II
Eth
10/100
Flash
Contr
DDR
SDRAM
FLASH
Avalon
PLL
Timer
Eth
MAC0
MDIO
Contr
Bridge
MAC 10/100
SMSC
LAN 91C111
Eth0 10/100 1588
MSNTP
MSNTP
Client
Server
PTPd
Clinux Kernel
TS
TS
System Time
802.1d Ethernet Bridge
Eth0
Device Drivers
Eth
PHY0
PTP
Eth1
Eth
PHY1
Other Messages
SNTP
(PTP Master)
Eth
10/100
Eth0
Offset (s)
Agilent LXI
Trigger Box
100
Eth1
a)
50
0
-50
2000
2500
PTPLog
3500
Offset (s)
10
Figure 4.
Time Gateway prototype and
experimental setup.
The time offset, i.e. the time difference between the
Master and Slave local Time, logged during the first
experiment with standard PTPd, is reported in Figure
5.a. In this case, the synchronization capabilities of the
Time Gateway are severely affected by the timestamping
uncertainty introduced by the OS. Again, it should be
noticed that the incoming sync messages in this
implementation are timestamped at kernel level. In
figure 5.b, the synchronization results obtained using the
improved PTPd are reported. Note that the adoption of
the median filtering stage improves the synchronization
accuracy approximately of one order of magnitude. The
synchronization jitter obtained using the improved PTPd
is 11 s, in accordance with other results reported in
literature for a software only PTP implementation [7][6],
but clearly inferior to results available using hardware
assisted implementations [8][9]. Last, a simple test case
in which the proposed Time Gateway propagates the
time information using the SNTP protocol, has been
realized. In this experimental setup, the SNTP Client
(SNTP version 4) is a PC that every 2 s asks for the time
and logs the time offset from the Time Gateway (SNTP
Server). During the experiment, the System Time of the
Time Gateway is synchronized to the PTP Master (the
LXI device described in the previous experiment), using
the PTPd daemon. Once again, the proposed
improvement in the PTPd increases the overall
performance: with standard PTPd, the SNTP client jitter
is approximately 1500 s, whereas with optimized PTPd
it is approximately 400 s, near to the SNTP Server
limit. As a matter of fact, the SNTP protocol does not
provide for a Follow_up message (as in the PTP case)
and it is prone to OS scheduling jitter.
3000
4000
Time (s)
To SNTP
Domain
b)
5
0
-5
-10
2000
2500
3000
Time (s)
3500
4000
Figure 5.
The time offset obtained using
normal (a) and improved (b) PTPd.
References
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]