Method for synchronizing networks

11381376 · 2022-07-05

Assignee

Inventors

Cpc classification

International classification

Abstract

A method for synchronizing networks is disclosed. A first wired communication system having a first time base is set up in a first network. A second wired communication system having a second time base is set up in a second network. The first network and the second network are connected to a wireless communication system via a first translation unit and a second translation unit, respectively. The first translation unit and the second translation unit are synchronized to one another according to a third time base of the wireless communication system independently of the first time base and the second time base. A third synchronization message is transmitted from the first translation unit to the second translation unit. A transmission time for the third synchronization message in the third time base is determined and is used to synchronize the second time base to the first time base.

Claims

1. A method for synchronizing networks, the method comprising: setting up a first wired communication system in a first network, the first network including a first plurality of components that communicate via the first wired communication system using a first time base, the first wired communication system being realtime-compatible; setting up a second wired communication system in a second network, the second network including a second plurality of components that communicate via the second wired communication system using a second time base, the second wired communication system being realtime-compatible; connecting (i) the first wired communication system of the first network to a wireless communication system via a first translation unit and (ii) the second wired communication system of the second network to the wireless communication system via a second translation unit, the first translation unit and the second translation unit each being configured to translate synchronization-relevant data between the first network and the second network, the wireless communication system being realtime-compatible; synchronizing the first translation unit and the second translation unit to one another according to a third time base of the wireless communication system independently of the first time base and the second time base; transmitting a third synchronization message from the first translation unit to the second translation unit; and determining a transmission time for the third synchronization message from the first translation unit to the second translation unit in the third time base, the transmission time for the third synchronization message being taken into consideration for a synchronization of the second time base to the first time base.

2. The method according to claim 1, the determining the transmission time further comprising: determining the transmission time for the third synchronization message from the first translation unit to the second translation unit in the third time base as a difference between a reception time of a first synchronization message from the first network at the first translation unit and a transmission time of a second synchronization message from the second translation unit to the second network.

3. The method according to claim 2, further comprising: receiving, with the first translation unit, the first synchronization message in the first network; determining, with the first translation unit, the reception time of the first synchronization message in the third time base; and transmitting, with the first translation unit, the third synchronization message to the second translation unit, the third synchronization message containing the reception time of the first synchronization message in the third time base.

4. The method according to claim 3 further comprising: receiving, with the second translation unit, the third synchronization message containing the reception time of the first synchronization message in the third time base; transmitting, with the second translation unit, the second synchronization message to the second network; and determining, with the second translation unit, the transmission time of the second synchronization message in the third time base.

5. The method according to claim 4 further comprising one of: transmitting, with the second translation unit, the transmission time of the second synchronization message in the third time base to the second network; and determining, with the second translation unit, the difference between the reception time of the first synchronization message in the third time base and the transmission time of the second synchronization message in the third time base and transmitting, with the second translation unit, data comprising the difference to the second network.

6. The method according to claim 3, the transmitting the third synchronization message further comprising: transmitting the third synchronization message further containing a transmission time of the first synchronization message in the first time base.

7. The method according to claim 6 further comprising: transmitting, with the second translation unit, the transmission time of the first synchronization message in the first time base to the second network.

8. The method according to claim 7 further comprising: transmitting, with the second translation unit, a second correction field value in the first time base to the second network, the second correction field value being configured to correct a total delay from the transmission time of the first synchronization message to a reception time of the second synchronization message.

9. A method for synchronizing networks, the method comprising: setting up a first wired communication system in a first network, the first network including a first plurality of components that communicate via the first wired communication system using a first time base, the first wired communication system being realtime-compatible; connecting the first network to a wireless communication system having a third time base via a first translation unit, the first translation unit being configured to translate synchronization-relevant data between networks, the wireless communication system being realtime-compatible; receiving, with the first translation unit, the first synchronization message in the first network; determining, with the first translation unit, a reception time of the first synchronization message in the third time base; transmitting, with the first translation unit, a third synchronization message containing the reception time of the first synchronization message in the third time base to the wireless communication system.

10. The method according to claim 9, the transmitting the third synchronization message further comprising: transmitting the third synchronization message further containing a transmission time of the first synchronization message in the first time base.

11. A method for synchronizing networks, the method comprising: setting up a second wired communication system in a second network, the second network including a second plurality of components that communicate via the second wired communication system using a second time base, the second wired communication system being realtime-compatible; connecting the second network to a wireless communication system having a third time base via a second translation unit, the second translation unit being configured to translate synchronization-relevant data between networks, the wireless communication system being realtime-compatible; receiving, with the second translation unit, from the wireless communication system, a third synchronization message containing a reception time of a first synchronization message in the third time base; transmitting, with the second translation unit, a second synchronization message to the second network; determining, with the second translation unit, a transmission time of the second synchronization message in the third time base; and one of: transmitting, with the second translation unit, the transmission time of the second synchronization message in the third time base to the second network; and determining, with the second translation unit, the difference between the reception time of the first synchronization message in the third time base and the transmission time of the second synchronization message in the third time base and transmitting, with the second translation unit, data comprising the difference to the second network.

12. The method according to claim 11 further comprising: transmitting, with the second translation unit, a transmission time of the first synchronization message in a first time base to the second network.

13. The method according to claim 12 further comprising: transmitting, with the second translation unit, a second correction field value in the first time base to the second network, the second correction field value being configured to correct a total delay from the transmission time of the first synchronization message to a reception time of the second synchronization message.

14. The method according to claim 1, the transmitting the third synchronization message further comprising: transmitting the third synchronization message containing synchronization-relevant data, the synchronization-relevant data being at least one of (i) a reception time, in the third time base, of a first synchronization message from the first network at the first translation unit, (ii) a transmission time, in the first time base, of the first synchronization message, (iii) a frequency shift, in the first time base, between the first translation unit and a timer of the first network, (iv) a transmission delay, in the first time base, in the first network, and (v) a first correction field value in the first time base, the first correction field value being configured to correct a time delay between the transmission time of the first synchronization message and the reception time of the first synchronization message.

15. The method according to claim 14, the transmitting the third synchronization message further comprising: transmitting the third synchronization message further containing a header and a respective field for the synchronization-relevant data.

16. The method according to claim 1, wherein at least one of: the first wired communication system and the second wired communication system are each based on a wired communication standard; and the wireless communication system is at least one of (i) a realtime-compatible mobile radio network and (ii) based on a wireless communication standard.

17. The method according to claim 1, the transmitting the third synchronization message further comprising: transmitting the third synchronization message including a dataset, the dataset has a field for a header and fields for individual synchronization-relevant data.

18. The method according to claim 17, wherein dataset has fields for individual synchronization-relevant data including (i) a reception time, in the third time base, of a first synchronization message from the first network at the first translation unit, (ii) a transmission time, in the first time base, of the first synchronization message, (iii) a frequency shift, in the first time base, between the first translation unit and a timer of the first network, (iv) a transmission delay, in the first time base, in the first network, and (v) a first correction field value in the first time base, the first correction field value being configured to correct a time delay between the transmission time of the first synchronization message and the reception time of the first synchronization message.

19. The method according to claim 1, wherein the method is performed by at least one computer.

20. The method according to claim 19, wherein the at least one computer performs the method by executing at least one computer program stored on at least one machine-readable storage medium.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) The disclosure is schematically depicted in the drawing on the basis of exemplary embodiments and is described in detail below with reference to the drawings.

(2) FIG. 1 schematically shows a network based on the prior art.

(3) FIG. 2 schematically shows a preferred refinement of a system of networks according to the disclosure that is designed to perform a preferred embodiment of a method according to the disclosure.

(4) FIG. 3 schematically shows a preferred refinement of a dataset according to the disclosure that can be based on a preferred embodiment of a method according to the disclosure.

DETAILED DESCRIPTION

(5) FIG. 1 schematically depicts a network based on the prior art and denotes it by 100. The network 100 has a multiplicity of distribution nodes 110, 120, 130, to each of which a multiplicity of network subscribers can be connected.

(6) The individual nodes and therefore the network subscribers are networked to one another via a wired realtime-compatible communication system that is based on Ethernet, on IEEE802 standards and furthermore on TSN standards.

(7) The node 110 comprises a global timer, or a master clock, 111, to which all of the subscribers of the network 100 are synchronized in order to have a common time base and in order to be able to communicate in real time.

(8) The nodes 110, 120, 130 are synchronized in the network 100 in a conventional manner in accordance with what is known as the “Precision Time Protocol” (PTP) using what are known as Sync and FollowUp messages.

(9) Communication of different synchronization messages 115, 116 first synchronizes a slave clock 121 of the second node 120 to the master clock 111 of the first node 110. The second node 120, acting as a master 122, in turn uses synchronization messages 125, 126 to synchronize an internal slave clock 131 of the third node 130 to its clock 122. The time bases, or time notations, of the individual nodes 110, 120, 130 are denoted by t.sup.[a], t.sup.[b] and t.sup.[c] in FIG. 1, the time base being in square parentheses.

(10) For this purpose, the first node 110 transmits a Sync message 115 to the node 120 at a first time τ.sub.1.sup.[a], the latter node receiving this message 115 at a second time τ.sub.2.sup.[b]. The first node 110 furthermore produces a timestamp in reference to the first time τ.sub.1.sup.[a] in its time base t.sup.[a] at which it sent the first Sync message 115. Furthermore, the second node 120 produces a timestamp in reference to the time τ.sub.2.sup.[b] in its time base t.sup.[b] at which it received the first Sync message 115. As soon as possible, the first node 110 transmits a FollowUp message 116 comprising this timestamp in reference to the time τ.sub.1 to the second node 120.

(11) By using the two timestamps and a mean transmission delay

(12) t _ pd , a -> b [ a ]
in the first network 100 from the first node 110 to the second node 120 in the time base t.sup.[a], the second node 120 can determine the global time of the node 110, in particular by using a time offset or offset Δt.sup.[b] of its internal clock 121 in its time base t.sup.[b] in comparison with the clock 111 of the node 110, for example according to the following formula:

(13) Δ t [ b ] = τ 2 [ b ] - f rr [ b ] .Math. ( τ 1 [ a ] + t _ pd , a -> b [ a ] )
f.sub.rr.sup.[b] denotes a frequency shift between the local clock 121 of the second node 120 and the global clock 111 of the first node 110. This frequency shift can be determined for example by further Sync and FollowUp messages, in particular according to the standards IEEE802.1AS-Rev and IEEE1588-2008.

(14) Following the synchronization of the second node 120 to the first node 110, the slave clock 131 of the third node 130 is synchronized to the second node 120 acting as master 122 toward said slave clock.

(15) For this purpose, the second node 120 transmits a Sync message 125 to the third node 130 at a third time τ.sub.3.sup.[b], said third node receiving this message 125 at a fourth time τ.sub.4.sup.[c]. The second node 120 produces a timestamp in reference to the third time τ.sub.3.sup.[b] in its time notation t.sup.[b]. By using this timestamp, the second node 120 furthermore determines a correction field value t.sub.cf,b.sup.[a] in the time base t.sup.[a] according to the following formula:

(16) t cf , b [ a ] = f rr [ b ] .Math. ( τ 3 [ b ] - τ 2 [ b ] ) + t _ pd , a -> b [ a ]

(17) The correction field value concerns in particular a correction on the basis of a processing or delay time between reception of the first Sync message 115 and transmission of the second Sync message 125. The second node 120 then transmits a second FollowUp message 126 comprising the timestamp with reference to the time, the correction field value t.sub.cf,b.sup.[a] and the frequency shift f.sub.rr.sup.[b] to the third node 130.

(18) The third node 130 receives the second Sync message 125 at the time τ.sub.4.sup.[c] and produces a corresponding timestamp in its time notation t.sup.[c]. After receiving the second FollowUp message, the third node 130 can be synchronized to the global timer 110. For this purpose, the offset Δt.sup.[c] of the internal clock 131 of the third node compared to the master clock 111 can be determined according to the following formula:

(19) Δ t [ c ] = τ 4 [ c ] - f rr [ c ] .Math. ( τ 1 [ a ] + t _ pd , b -> c [ a ] + t cf , b [ a ] )

(20) Here, f.sub.rr.sup.[c] denotes the frequency shift of the third node 130 and

(21) t _ pd , b -> c [ a ]
denotes the mean transmission delay between the second node 120 and the third node 130.

(22) FIG. 2 schematically shows a preferred refinement of a system 200 of networks according to the disclosure that are synchronized according to a preferred embodiment of a method according to the disclosure.

(23) A first wired realtime-compatible communication system having a first time base t.sup.[210] is set up in a first network 210 and a second wired realtime-compatible communication system having a second time base t.sup.[220] is set up in a second network 220.

(24) These two wired realtime-compatible communication systems are each based on Ethernet, on IEEE802 standards and furthermore preferably each on TSN standards. By way of example, the communication systems can each be in the form of an Ethernet-based realtime-compatible fieldbus, e.g. Sercos III, EtherCAT, Profinet, Ethernet/IP, etc.

(25) By way of example, the first and second networks 210, 220 each network components of a machine to one another as part of automation engineering and industrial control engineering, for example in each case control units, actuators, sensors, etc. As part of “Industry 4.0”, the two networks 210, 220 and therefore the respective machines are connected to one another via a wireless realtime-compatible communication system 230. This wireless realtime-compatible communication system 230 is based on 5G standards and is in the form of a realtime-compatible mobile radio network, or a 5G mobile radio network.

(26) The first network 210 is connected to the wireless network 230 via a first translation unit 231 and the second network 220 is connected to the wireless network via a second translation unit 232. The first translation unit 231 and the second translation unit 232 are synchronized to one another according to a third time base t.sup.[5g] of the wireless communication system 230 independently of the first time base t.sup.[210] and the second time base t.sup.[220]. These translation units 231, 232 are used in particular as appropriate interfaces between the time bases t.sup.[210] and t.sup.[220] of the first and second networks 210, 220 and the third time base t.sup.[5g] of the wireless communication system 230. The wireless network 230 expediently comprises further components 233 in order to form a 5G bridge between the networks 210, 220.

(27) Furthermore, an internal clock 231a of the first translation unit 231 can be connected as slave to the first time base t.sup.[210] of the first network 210. Accordingly, an internal clock 232a of the second translation unit 232 can be connected to the second time base t.sup.[220] of the second network 220.

(28) In order to allow realtime-compatible data transmission between the TSN networks 210 and 220 via the 5G mobile radio network 230, it is important for these networks 210, 220 to each have the same time notation and to be able to be synchronized to one another via the 5G mobile radio network 230.

(29) Synchronization in accordance with the “Precision Time Protocol” (PTP) can take place within each of the first and second networks 210, 220, as explained above with reference to FIG. 1. For this purpose, individual nodes, or network subscribers, in the first and second networks 210, 220 can each be synchronized by the transmission and reception of Sync and FollowUp messages. Network subscribers, or nodes, in the first network 210 are synchronized to a global timer 211, or a master clock 211a, in accordance with the “Precision Time Protocol” (PTP). The network subscribers, or nodes, in the second network 220 are also intended to be synchronized to this global timer 211 of the first network 210.

(30) For this purpose, the system 200 is designed to perform a preferred embodiment of a method according to the disclosure. In the course of said method, the first translation unit 231 receives synchronization messages 215, 216 in accordance with the PTP of the timer 211 of the first network 210. The first translation unit 231 then produces a third synchronization message 235, which comprises synchronization-relevant data for synchronizing the second network 220 to the global timer 211 of the first network 210. This third synchronization message 235 is communicated from the first translation unit 231 via the 5G mobile radio network 230 to the second translation unit 232, which uses this received message 235 to synchronize the second network 220, or internal clocks 221a of network subscribers 221 in the second network 220, to the timer 211 of the first network 210.

(31) First, the first translation unit 231 receives a first synchronization message 215, here a Sync message in accordance with PTP, and additionally a FollowUp message 216, from the timer 211 of the first network 210, for example.

(32) The first translation unit 231 uses the received synchronization messages 215, 216 to determine synchronization-relevant data. Advantageously, these synchronization-relevant data that are determined are a transmission timestamp, a reception timestamp, a frequency shift, a mean transmission delay and a first correction field value.

(33) The transmission timestamp concerns a time of transmission τ.sub.1 at which the first Sync message was sent by the timer 211 of the first network 210, in particular in the time notation t.sup.[210] thereof, or in the first time base t.sup.[210]. This first timestamp is in particular communicated with the first FollowUp message 216.

(34) The reception timestamp concerns a time of reception at which the first Sync message was received by the first translation unit 231, in particular in the time notation t.sup.[5g] thereof, or in the third time base t.sup.[5g].

(35) The frequency shift f.sub.rr.sup.[b] concerns in particular a frequency offset between the internal clock 231a of the first translation unit 231 and the global clock 211a of the timer 211, in particular in the first time base t.sup.[210].

(36) The mean transmission delay

(37) t _ pd , a -> b [ a ]
concerns in particular the mean transmission time for the synchronization messages 215, 216 between timer 211 and the first translation unit 231 in the first network 210, in particular in the first time base t.sup.[210].

(38) The first correction field value t.sub.cf,a.sup.[a] concerns in particular a correction of a time delay between the time of transmission τ.sub.1 of the first synchronization message and the time of reception of the first synchronization message, in particular in the first time base t.sup.[210].

(39) In particular, the first translation unit 231, after receiving the first Sync message 215, determines the reception timestamp in the third time base t.sup.[5g] as a synchronization-relevant datum. After receiving the first FollowUp message 216, the first translation unit 231 determines the remaining aforementioned synchronization-relevant data, or takes said data from the FollowUp message 216.

(40) On the basis of these synchronization-relevant data, the first translation unit 231 produces the third synchronization message 235 and communicates it via the wireless communication system 230 to the second translation unit 232 of the second network 220 for the purpose of synchronization to the timer 211 of the first network 210.

(41) The second translation unit 232 receives the third synchronization message 235. The second translation unit 232 then takes the synchronization-relevant data for synchronizing the second time base t.sup.[220] to the first time base t.sup.[210] as a basis for transmitting a second synchronization message 225, here a Sync message in accordance with PTP, and additionally a FollowUp message 226 in the second network 220. This Sync message 225 is received by the network subscriber 221 at a time τ.sub.4.

(42) After transmitting the second Sync message 225, the second translation unit 232 determines, in its time notation t.sup.[5g], a starting timestamp for the time of transmission of this message 225. On the basis of the time of transmission and the synchronization-relevant data, the second translation unit 232 determines a second correction field value according to the following formula:

(43) t cf , b [ a ] = t cf , a [ a ] + ( ( τ e [ 5 g ] - τ i [ 5 g ] ) + t _ pd , a -> b [ a ] ) .Math. f rr [ b ]

(44) This second correction field value contains in particular a total processing or delay time, from the time of transmission τ.sub.1 of the first synchronization message to the time of reception τ.sub.4 of the second synchronization message, and contains in particular a processing or delay time that the wireless communication system 230 needs for transmitting the synchronization-relevant data between the first and second networks 210, 220. Particularly advantageously, this second correction field value is dependent on a difference between the starting timestamp τ.sub.e.sup.[5g] and the reception timestamp τ.sub.i.sup.[5g] in the third time base t.sup.[5g].

(45) The second translation unit 232 then transmits the second FollowUp message 226 comprising the time of transmission τ.sub.1 of the first synchronization message 215 in the first time base t.sup.[210] as “supposed” time of transmission of the second Sync message in the first time base t.sup.[210] and the second correction field value t.sub.cf,b.sup.[a]. Following reception of this FollowUp message 226, the clock 221a of the network subscriber 221 can be synchronized to the master clock 211a of the global timer 211 of the first network 210.

(46) The present method therefore involves only one synchronization message 235 being communicated via the 5G mobile radio network, which synchronization message contains all of the synchronization-relevant data that are needed for synchronizing the two networks 210, 220 to one another. In contrast to conventional synchronization mechanisms such as the “Precision Time Protocol”, a multiplicity of messages are therefore not sent, but rather only one message 235. The synchronization message 235 has a smaller total size than the synchronization message pairs as part of the PTP. The volume of data sent for the synchronization via the 5G mobile radio network 230, and therefore the transmission resources of the mobile radio network 230 that are needed for the synchronization, can therefore be reduced and kept as low as possible. Furthermore, complexity for scheduling can be reduced and the synchronization is less susceptible to the loss of data packets.

(47) FIG. 3 schematically depicts a corresponding synchronization message, which can be produced by the first translation unit 231 and transmitted via the 5G mobile radio network 230 for synchronization, and denotes it by 300. The message 300 comprises a field 310 for a header and also fields 320, 330, 340, 350 for individual variables of the synchronization-relevant data.

(48) The header 310 has in particular a size of 34 bytes.

(49) By way of example, the field 320 can be provided for the transmission timestamp with reference to the time of transmission τ.sub.1 of the first Sync message 215 and can have a size of 10 bytes.

(50) The field 330 can be provided for the frequency shift and also for the first correction field value t.sub.cf,a.sup.[a]. By way of example, the field 330 has a size of 32 bytes.

(51) Furthermore, the field 340 can be provided for the reception timestamp with reference to the time of reception τ.sub.i.sup.[5g] of the first Sync message 215 and, according to IEEE802.1AS-Rev, can have a size of 10 bytes.

(52) The field 350 is provided for example for the mean transmission delay

(53) t _ pd , a -> b [ a ]
and can have a size of 12 bytes according to IEEE802.1AS-Rev.

(54) The information of the fields 320 and 330, that is to say the transmission timestamp, the frequency shift and the correction field value, corresponds in particular to the information content of a conventional FollowUp message. In addition to this information, the synchronization message 300 also comprises the data of the fields 340 and 350, that is to say the reception timestamp and the transmission delay.

(55) The fields 310, 320 and 330, at 34 bytes, 10 bytes and 32 bytes, have a total size of 76 bytes, for example, which corresponds to the size N.sub.FollowUp of a conventional FollowUp message.

(56) This size N.sub.FollowUp of 76 bytes for the fields 310, 320 and 330 and also the size N.sub.IngressTimestamp of 10 bytes for the field 340 and the size N.sub.MeanPropagationDelay of 12 bytes for the field 350 result in a total size N.sub.Sync5g of 98 bytes for the message 300:

(57) N Sync 5 g = N FollowUp + N IngressTimestamp + N MeanPropagationDelay = 98 bytes

(58) In accordance with the PTP, in particular in accordance with IEEE802.1AS-Rev, a conventional Sync message has a size of N.sub.Sync=44 bytes and a conventional FollowUp message has a size of N.sub.FollowUp=76 bytes. A conventional Sync and FollowUp message pair therefore has a total size of
N.sub.Sync+FollowUp=120 bytes

(59) Conventionally, neither the Sync message nor the FollowUp message comprises the mean transmission delay or a second timestamp for the reception of the Sync message. If a conventional Sync and FollowUp message pair were to have these data added, a theoretical total size N′.sub.Sync+FollowUp would result as follows:

(60) 0 N Sync + FollowUp = N Sync + FollowUp + N IngressTimestamp + N MeanPropogationDelay = 142 bytes

(61) A transmission via Ethernet in accordance with IEEE802.3 furthermore requires an Ethernet header having a size of N.sub.Ethernet=18 bytes. Taking into consideration this Ethernet header size, the following total sizes are obtained for the synchronization message and for a conventional Sync and FollowUp message pair as outlined above:

(62) N ^ Sync 5 g = N Sync 5 g + N Ethernet = 116 bytes N ^ Sync + FollowUp = N Sync + FollowUp + 2 .Math. N Ethernet = 178 bytes

(63) By using the synchronization-relevant message 300, it is therefore possible to decrease the size of the data sent via the 5G mobile radio network in comparison with a conventional Sync, FollowUp message pair from 178 bytes to 116 bytes, corresponding to a data reduction of approximately 34%. Since, furthermore, only one synchronization message 300 is sent, it is furthermore possible to reduce planning or scheduling complexity for the 5G network.