Professional Documents
Culture Documents
Slidex - Tips - 7 Synchronizing The System Time in The Network PDF
Slidex - Tips - 7 Synchronizing The System Time in The Network PDF
Network
The actual meaning of the term “real time” depends on the time requirements
of the application.
The device provides two options with different levels of accuracy for
synchronizing the time in your network.
IEEE 1588 with the Precision Time Protocol (PTP) achieves accuracies in
the order of fractions of microseconds. This superior method is suitable for
process control, for example.
X log entries
Examples of application areas include:
Select the method (SNMP or PTP) that best suits your requirements. If
necessary, you can also use both methods simultaneously.
31007122 - 04/2011
95
Synchronizing the System Time in the 7.1 Entering the Time
Network
If no reference clock is available, you have the option of entering the system
time in a device and then using it like a reference clock (see on page 100
“Configuring SNTP”).
Note: When setting the time in zones with summer and winter times, make
an adjustment for the local offset. The device can also get the SNTP server
IP address and the local offset from a DHCP server.
With this dialog you can enter time-related settings independently of the
time synchronization protocol selected.
X The “IEEE 1588 time” displays the time determined using PTP.
The “SNTP time” displays the time with reference to Universal Time
Coordinated (UTC).
The display is the same worldwide. Local time differences are not
taken into account.
X The “System time” uses the “IEEE 1588 / SNTP time”, allowing for
the local time difference from “IEEE 1588 / SNTP time”.
“System time” = “IEEE 1588 / SNTP time” + “Local offset”.
X “Time source” displays the source of the following time data. The
device automatically selects the source with the greatest accuracy.
Possible sources are: local and sntp. The source is initially
local. If SNTP is activated and if the device receives a valid SNTP
packet, the device sets its time source to sntp.
31007122 - 04/2011
96
Synchronizing the System Time in the 7.1 Entering the Time
Network
With “Set time from PC”, the device takes the PC time as the system
time and calculates the IEEE 1588 / SNTP time using the local time
difference.
“IEEE 1588 / SNTP time” = “System time” - “Local offset”
The “Local Offset” is for displaying/entering the time difference
between the local time and the “IEEE 1588 / SNTP time”.
With ”Set offset from PC“, the device determines the time zone on
your PC and uses it to calculate the local time difference.
31007122 - 04/2011
97
Synchronizing the System Time in the 7.2 SNTP
Network
7.2 SNTP
GPS
PLC Client
NTP-
Server
192.168.1.0
Client
Client Server Client Server Client Server
31007122 - 04/2011
98
Synchronizing the System Time in the 7.2 SNTP
Network
GPS
PLC Client
NTP
Server
192.168.1.0
Client
Client Server Client Server Client Server
Enable the SNTP function on all devices whose time you want to set using
SNTP.
The SNTP server of the device responds to Unicast requests as soon as
it is enabled.
Note: For accurate system time distribution with cascaded SNTP servers
and clients, use only network components (routers, switches, hubs) in the
signal path between the SNTP server and the SNTP client which forward
SNTP packets with a minimized delay.
31007122 - 04/2011
99
Synchronizing the System Time in the 7.2 SNTP
Network
31007122 - 04/2011
100
Synchronizing the System Time in the 7.2 SNTP
Network
Note: If you have enabled PTP at the same time, the SNTP client
first collects 60 time stamps before it deactivates itself. The
device thus determines the drift compensation for its PTP clock.
With the preset server request interval, this takes about half an
hour.
31007122 - 04/2011
101
Synchronizing the System Time in the 7.2 SNTP
Network
31007122 - 04/2011
102
Synchronizing the System Time in the 7.2 SNTP
Network
31007122 - 04/2011
103
Synchronizing the System Time in the 7.3 Precision Time Protocol
Network
31007122 - 04/2011
104
Synchronizing the System Time in the 7.3 Precision Time Protocol
Network
31007122 - 04/2011
105
Synchronizing the System Time in the 7.3 Precision Time Protocol
Network
Reference Local
(Master clock) (Slave clock)
PTP PTP
UDP UDP
Delay + Jitter Delay + Jitter
IP IP
MAC MAC
Delay + Jitter
Phy Phy
LAN
31007122 - 04/2011
106