23.03.2017 Views

wilamowski-b-m-irwin-j-d-industrial-communication-systems-2011

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

18-2 Industrial Communication Systems<br />

Master<br />

Slave<br />

T 2<br />

M<br />

Δ 1 = Δ<br />

Delay request<br />

T 2<br />

S<br />

T 3<br />

M<br />

Delay response<br />

Δ 2 = Δ<br />

T 3<br />

S<br />

T 4<br />

S<br />

T 5<br />

M<br />

Sync packets<br />

Δ 2 = Δ<br />

T 6<br />

S<br />

T 5<br />

M<br />

Master time<br />

Slave time<br />

FIGURE 18.1<br />

packets.pdf).<br />

Synchronization packets and round-trip delay measurement (1588_Sync_DelayRequResp_<br />

real time for <strong>communication</strong> [Sauter2005, Brennan2005,Hansson2005]. IEEE 1588 synchronizes<br />

clocks in a master/slave fashion, whereas the master is the node with the highest accuracy. The accuracy<br />

class (also called stratum in version 1) can of course be the same at every node in the network (e.g.,<br />

same oscillator type used). However, in the case where the stratum is the same, a unique node identifier<br />

(layer 2 MAC address in the Ethernet case) is used to favor one node. The master election follows a certain<br />

message-based election algorithm and ends up with the decision which node should be the master<br />

for the next synchronization process. After a proper master is elected, synchronization can take place.<br />

The synchronization process in IEEE 1588 networks is organized in two stages. A so-called delay<br />

request delay response process measures the round-trip delay, to determine the packet delay between<br />

master and slave. This is done upon initiation by the slave with a telegram, which is returned by the<br />

master with the local timestamp of reception. In addition, the master regularly sends out synchronization<br />

packets. Again, these packets are sent in a two-stage process. The first set of packets is timestamped<br />

with an estimation of the sending time. The actual sending time (which obviously can only be known<br />

after completing the transmission) is sent with a so-called follow-up packet. Figure 18.1 shows this synchronization<br />

principle. A detailed description of this process together with implementation issues can<br />

be found in [Eidson2006].<br />

18.3 IEEE 1588 System Model<br />

The starting point of the protocol specified in IEEE 1588 is a distributed system of nodes. The medium as<br />

such is not relevant for the protocol. As shown in Figure 18.2 in general, the position of the ingress message<br />

timestamp point and the egress timestamp point are not required to be identical, since two different<br />

© <strong>2011</strong> by Taylor and Francis Group, LLC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!