The invention relates to a method for transmitting data in a communications network according to the preamble of Claim 1, to a transmit device and to a receive device according to Claims 9 and 10, respectively, and also to a communications system according to Claim 11.
Such methods, devices, and systems are already known in numerous configurations and are used in communications networks that allow data to be exchanged in the form of data frames. A data frame is here assembled from a number of fields that each contains a number of bits or bytes.
For example, in a communications network according to the Ethernet standard, data are exchanged in the form of Ethernet frames.
In the meantime, communications networks based on the Ethernet standard have also been used in the field of automated industrial manufacturing and are designated, in general, as Industrial Ethernet. Examples here are EtherCAT or Profinet. Here, Profinet allows, within one Ethernet frame, in particular within the data field of one Ethernet frame, both TCP/IP or UDP/IP based data transmission, as is typical in IT environments, and also real-time transmission of process and/or diagnostics data in which IP addressing and flow-control mechanisms of TCP or UDP are eliminated.
When receiving or reading an Ethernet frame, the respective format of the data within the data field can be identified or distinguished with reference to the Ethertype that is transmitted in an Ethertype field directly before the data field. For example, the Ethertype for IP data reads “0x0800” (IP v4) while the Ethertype for real-time data in Profinet reads “0x8892.”
In order to be able to achieve the shortest reaction times and latency times, especially for ever progressing demands on responsiveness and transmission speed, the various types of frame contents must be distinguished as fast as possible.
However, in an Ethernet frame, for example, before the Ethertype field that allows this differentiation, first are transmitted several other fields that are used, among other things, for addressing. The structure of an Ethernet frame will be discussed in more detail in the description of a preferred embodiment according to the invention.
Tests have shown that the pause (Inter Frame Gap, IFG) between two Ethernet frames provided in the Ethernet standard during transmission cannot be used without any problems for the transmission of additional control information that is used for the fastest possible differentiation. In measurements of electromagnetic compatibility (EMC measurements), a significantly worse behavior relative to interference is often observed when the pause between two frames is shortened.
Therefore, the invention is based on the task of allowing various types of frame contents to be distinguished more quickly while avoiding shortening of the pause between two successive data frames and also while avoiding worse interference immunity.
The task is achieved by the subject matter with the features of the respective independent claims.
Advantageous and/or preferred embodiments and improvements are the subject matter of the dependent claims.
According to the invention, data frames with various kinds of contents transmitted in a communications network can be distinguished more quickly in such a way that information for identifying the respective frame contents that might already be contained in another field within the data frame is provided at a position that can be accessed immediately when receiving or reading the data frame.
For this purpose, the invention provides a method for transmitting data by means of at least one data frame in a communications network, from at least one subscriber connected to the communications network to at least one other subscriber similarly connected to the communications network. According to the invention, the data are prepared for transmission in such a way that control information used for identifying or distinguishing the respective format of the data within a data frame is inserted into a field directly at the beginning of a data frame or into a field introducing a data frame that contains a number of bits or bytes.
Furthermore, the invention provides a transmit device for transmitting data by means of at least one data frame in a communications network from at least one subscriber connected to the communications network to at least one other subscriber similarly connected to the communications network. This transmit device that is suitable especially for use in the method according to the invention is distinguished in that it is constructed to insert control information used for identifying or distinguishing the respective format of the data of a data frame into a field directly at the beginning of a data frame or into a field introducing a data frame that contains a number of bits or bytes.
In addition, according to the invention, for receiving data transmitted by means of at least one data frame in a communications network from at least one subscriber connected to the communications network, a receive device is provided that is suitable especially for use in the method according to the invention and is constructed for identifying or distinguishing the various formats of the data within a data frame with reference to control information that is used for identifying or distinguishing the respective data format and that is included in a field directly at the beginning of a data frame or in a field introducing a data frame, wherein this field contains a number of bits or bytes.
Finally, a communications system formed from at least one such transmit device and from at least one such receive device similarly reproduces the concept according to the invention.
The invention provides the advantage of being able to distinguish as quickly as possible data frames received in a communications network according to their contents, thus guaranteeing the shortest reaction and latency times.
Here, specific to the application, the additional control information according to the invention is inserted or read out beginning at the position of the first byte or another byte of a field directly at the beginning of a data frame or a field introducing a data frame.
In a preferred embodiment of the method according to the invention, the information used for identifying or distinguishing the respective format of the data within a data frame is already contained in a field of the data frame other than the field at the beginning of a data frame or the field introducing a data frame.
In another preferred embodiment of the method according to the invention, the communications network is constructed according to the Ethernet standard and the data frame accordingly has the form of an Ethernet frame.
In an especially preferred embodiment of the method according to the invention, the field directly at the beginning of a data frame or the field introducing a data frame has the position and form of a bit sequence that can be or is used, in principle, as a preamble. Here, at least one part of the contents of the preamble is replaced by control information used for identifying or distinguishing the respective format of the data within a data frame. While the preamble of an Ethernet frame was originally used for bit synchronization of the subscriber connected to a communications network, today modern network subscribers are no longer ordered to perform this synchronization, so that, in principle, the preamble is functionless, but continues to be maintained in each Ethernet frame for conformance reasons. Due to the use of at least one part of the preamble for the insertion according to the invention of control information used for identifying the contents of an Ethernet frame, the form of an Ethernet frame can otherwise remain unchanged, so that an Ethernet frame adapted according to the invention remains readable to all network subscribers.
Preferably, in the method according to the invention, for the insertion of additional control information, it is further provided to use code or control words of the transmission code that were previously unused during the serialization/deserialization (SerDes) in connection with a transmission code and that were redefined in advance accordingly.
In particular, in another embodiment of the method according to the invention, the use of the 8B/10B code as the transmission code is provided, wherein, in practice, e.g., the previously unused code words “K28.0,” “K28.2,” and “K28.3” are redefined in such a way that they correspond to the control information “IT standard data,” “I/O data,” and “diagnostics data,” respectively.
The invention will be explained in more detail below with reference to an embodiment in connection with the accompanying
As is clear from
Adjacent to the source address field 6 is an identification field 7 for a virtual local area network (VLAN) that has the length of four bytes. A so-called Ethertype field 8 made from two bytes is allocated after this identification field 7 in the time advancing sequence according to the arrow t in the FIGURE. The Ethertype field 8 contains information on the format of the data within the subsequent data field 9, wherein the data field 9 can contain up to 1500 bytes of data. Furthermore, a so-called PAD field (not shown) can be provided that is used, as a rule, for bringing an Ethernet frame 1 to a minimum size of 64 bytes required for transmission.
The end of the Ethernet frame 1 forms a check frame sequence 10 that represents a 32-bit CRC checksum (4 bytes) calculated across the frame beginning from the target address field 5 up to and including the PAD field. The preamble 4, the start frame delimiter 3, and the check frame sequence 10 itself are not taken into account in the check frame sequence 10.
In the conventional transmission method, the respective format of the data within the Ethernet frame 1 or the data field 9 can be identified or distinguished only after reading the Ethertype field 8.
According to the invention, the information used for identifying the respective format of the data within an Ethernet frame 1 is already available when the preamble 4 is read, so that a time advantage 11 is achieved. This time advantage corresponds to the time needed for reading the fields 3 to 8 following the preamble 4.
According to the invention, the additional control information is used to more quickly distinguish the respective format of the data within an Ethernet frame 1, in an especially preferred way inserted into the preamble 4 such that for this purpose a previously unused code or control word of the 8B/10B code is used that was previously redefined accordingly. In the serialization/deserialization in connection with the transmission code 8B/10B, a previously unused code or control word of the 8B/10B code is used that was redefined in advance accordingly, for example, “K28.0” for the control information “IT standard data,” “K28.2” for the control information “IT standard data,” and “K28.3” for the control information “diagnostics data.”
Number | Date | Country | Kind |
---|---|---|---|
10 2007 050 941.5 | Oct 2007 | DE | national |