Method for data communication with reduced overhead in a real-time capable Ethernet data network
10069735 ยท 2018-09-04
Assignee
Inventors
Cpc classification
H04L69/16
ELECTRICITY
H04L2101/622
ELECTRICITY
International classification
Abstract
In order that in a real-time capable Ethernet data network protocol the cycle time of the transmission cycles in a real-time capable Ethernet data network can be shortened, according to the invention a plurality of slaves (S1, S2, S3, S4, S5) is combined into a sum frame group (SG) and a slave (S2, S4) of the sum frame group (SG) is specified as collector node (SK) and all other slaves (S1, S2, S3, S4, S5) of the sum frame group (SK) transmit their data in each case with a collective data packet (DPS1, DPS2, DPS3, DPS4, DPS5) to the collector node (SK) transmit, the collector node (SK) inserts the data of the other slaves (S1, S2, S3, S4, S5) of the sum frame group (SG) into a sum frame data packet (DPSR) and the collector node (SK) transmits the sum frame data packet (DPSR) to the master (M).
Claims
1. A method for data communication in a real-time capable Ethernet data network, in which at least one master is connected via an Ethernet data network to a plurality of slaves and data in the form of data packets are transmitted between the master and the slaves, the method comprising: combining at least some of the plurality of slaves into a sum frame group and a slave of the sum frame group is specified as a collector node and all other slaves of the sum frame group transmit their data in each case with a collective data packet to the collector node, wherein the collector node inserts the data of the other slaves of the sum frame group into a sum frame data packet and the collector node transmits the sum frame data packet to the master.
2. The method according to claim 1, wherein a slave of the sum frame group which is furthest away from the master on the data network is selected as the collector node.
3. The method according to claim 1, wherein a slave of the sum frame group which is arranged nearest to the master on the data network is selected as the collector node.
4. The method according to claim 1, wherein a slave in a middle of the sum frame group is selected as the collector node.
5. The method according to claim 1, wherein for each slave of the sum frame group transmitting to the collector node a bit which indicates whether the data have been validly received from the collector node is contained in the sum frame data packet.
Description
(1) The present invention is explained in greater detail below with reference to
(2)
(3)
(4)
(5)
(6) A possible real-time capable Ethernet network protocol on which the invention is based is explained with reference to
(7) A transmission cycle Z(m) is precisely temporally divided in that the times t.sub.M,1, t.sub.M,2, . . . , t.sub.M,x, t.sub.S,1, . . . , t.sub.S,y at which each network node, the master M or the slaves S1 . . . Sn may send data packets DP are predefined. In this way it is possible to prevent data collisions on the data network 1 by scheduling the times. However, since Ethernet allows for a full-duplex data communication, it is possible that in a network section, data packets DP are transmitted simultaneously in both directions. This is how each of the subscribing network nodes (master M, slaves S) know the time within a transmit cycle Z at which they may send data packets DP, and when they are to receive some.
(8) These times t.sub.M,1, t.sub.M,2, . . . , t.sub.M,x, t.sub.S,1, . . . , t.sub.S,y within the transmission cycle Z may be planned very precisely in advance if it is known how much data (bytes) are transmitted in each data packet DP. The larger the data packet DP to be expected, the further apart the times t.sub.M,1, t.sub.M,2, . . . , t.sub.M,x, t.sub.S,1, . . . . , t.sub.S,y. If the data size is not known in advance, a maximum data size may be assumed, e.g. the maximum frame size for an Ethernet frame. Between two data packets DP also a predetermined pause must be maintained at the data network 1.
(9) The number of network nodes, masters (M) and slaves (S1 . . . Sn), and the size of the sent data are therefore co-determinant for the attainable cycle time t.sub.Z.
(10) In
(11) This planned data communication occurs cyclically and in each transmission cycle Z a temporal segment t.sub.zykl is provided for this isochronous data traffic. However, in each transmission cycle Z also a segment t.sub.asynch is reserved for asynchronous data traffic in which Ethernet data communication takes place which does not have to satisfy hard realtime requirements.
(12) If the cyclical communication differs from transmission cycle to transmission cycle (as is indicated in
(13) This communication principle of course also applies in other network topologies, as is described in
(14) The method according to the invention for data communication in a real-time capable Ethernet data network will now be explained with reference to
(15) An arbitrary slave S4 of the sum frame group SG is defined as collector node SK. All other slaves S1, S2, S3 of the sum frame group SG transmit their data D1, D2, D3, which they wish to transmit to the master M, in collective data packets DPS1, DPS2, DPS3 to the collector node SK. For this purpose, the slaves S1, S2, S3 of the sum frame group SG which transmit to the collector node SK merely have to be configured appropriately, so that the data are not transmitted to the master M, but to the collector node SK. Therefore the address inputs in the slaves S1, S2, S3 merely have to be configured appropriately in the address tables. Thus the collective data packets DPS1, DPS2, DPS3 correspond to the data packets which would normally be transmitted from the slaves S1, S2, S3 to the master M. These slaves S1, S2, S3 of the sum frame group SG can therefore be simple standard Ethernet network nodes. Only the collector node SK must have implemented the additional functionality of collecting the collective data packets DPS1, DPS2, DPS3 and producing and transmitting the sum frame data packet DPSR to the master M.
(16) The collector node SK collects these data D1, D2, D3, which it receives with the collective data packets DPS1, DPS2, DPS3, and inserts them into a sum frame data packet DPSR, or generates a sum frame data packet DPSR therefrom. The collector node SK can also insert dedicated data D4 into the sum frame data packet DPSR, as indicated in
(17) The known overhead data of an Ethernet data packet such as the sum frame data packet DPSR, and any necessary padding data of the short data packets D1, D2, D3, are not shown in
(18) In the exemplary embodiment according to
(19) The arrangement of the collector node SK as far away as possible from the master, preferably furthest from the master M, has advantages in particular in a linear topology as shown in
(20)
(21) The directly data communication of a slave S2, S3 of the sum frame group SG to the master M by means of direct addressing may also be superfluous with the sum frame data packet DPSR. Thus the data packets DP3 and DP4 of the slaves S2, S3 could be spared, as indicated by broken lines in
(22)
(23) In a further embodiment of the invention according to
(24) It should be noted that the slave S1, S2, S3, S4, S5 of a sum frame group SG on the data network 1 do not have to be arranged immediately behind one another or in a row, such as in the illustrated exemplary embodiments.
(25) In principle it would even be possible also to distribute the transmission of a sum frame data packet DPSR over a plurality of transmission cycles t.sub.z. For this purpose, the collector node SK can collect the collective data packets DPS1, DPS2, DPS3 over a plurality of transmission cycles t.sub.z and, after the arrival of all collective data packet DPS1, DPS2, DPS3, can transmit the sum frame data packet DPSR.
(26) However, the fact that the sum frame data packet DPSR is only created at one point (in the collector node SK), and is then transmitted unchanged via the data network 1, has a further advantage. An Ethernet data packet is generally secured by redundancy data, such as for example a cyclic redundancy code (CRC), against transmission errors. If the sum frame data packet DPSR were changed during transmission by different network nodes, because for example network nodes remove or add data, then each network node would have to secure the transmitted data packet individually with redundancy data, since otherwise at the receiving end it would not be possible to ascertain which data have been corrupted. The reason for this is that before transmission of a data packet DP each network node automatically calculates new Ethernet redundancy data calculated and inserts them into the Ethernet data packet. Even if a bit drops out and the Ethernet redundancy data do not match at one point, these are correctly calculated and overwritten by the next network node and then it is no longer possible to ascertain that the data packet DP is actually corrupt. The error may be in the header or in the data, which cannot be ascertained. Consequently, the complete sum frame data packet DPSR would have to be discarded and the repeated transmission of the sum frame data packet DPSR would have to be initiated. In addition to that there is also the cost of computing power and space in the sum frame. This would be a problem, or even unacceptable, in particular in a real-time capable Ethernet network protocol, because the necessary cycle times could no longer be maintained. In the sum frame method according to the invention with the collector node SK it is sufficient to incorporate an additional bit into the sum frame data packet DPSR per slave S1, S2, S3, S4 of the sum frame group SG, said bit indicating whether the data D1, D2, D3, D4 have arrived at the collector node SK and are valid. As a result, the additional overhead can be kept very small in the sum frame data packet DPSR. The collector node SK creates the sum frame data packet DPSR and calculates the Ethernet redundancy data for this Ethernet data packet. The master M can examine the Ethernet redundancy data and the additional bits.
(27) When everything matches, the master M can assume that the sum frame data packet DPSR is correct and error-free. If the Ethernet redundancy data do not match, the sum frame data packet DPSR must be discarded. If an additional bit is not set for a slave S1, S2, S3, S4, if the Ethernet redundancy data are correct the master M can use the data of all the other slaves, but solely not from the one slave for which the additional bit is not set.