Transmission and reception methods, communication devices, and local area networks

The method secures industrial networks by updating initialization vectors only when necessary, addressing security threats in industrial networks with minimal computational overhead and no hardware changes, ensuring secure data transmission and network integrity.

JP2024538429AActive Publication Date: 2024-10-18MITSUBISHI ELECTRIC R&D CENTRE EUROPE BV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2024546686
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-01-20
Filing Date
2022-09-30
Publication Date
2024-10-18
Estimated Expiration
2042-09-30

AI Technical Summary

Technical Problem

Industrial networks are vulnerable to security threats due to the integration of new communication devices with less stringent time delay requirements, which can lead to data interception, injection, replay, and tampering, compromising the integrity of the network.

Method used

A method for securing data transmission in industrial networks using periodic transmissions with a predetermined initialization vector that is updated only when necessary, allowing for limited computational complexity and software implementation without hardware changes, while maintaining stringent latency requirements.

Benefits of technology

The solution enhances the robustness of industrial networks against security threats by reducing computational complexity and enabling secure data transmission without altering existing hardware, thus maintaining latency and network integrity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024538429000001_ABST
    Figure 2024538429000001_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method for transmitting data by a communication device over a communication channel, the method including, for each time cycle, the communication device determining a protected data frame based on data to be transmitted, and the communication device transmitting the protected data frame over the communication channel, each protected data frame including protected content determined by using an initialization vector, the initialization vector having a lifetime associated therewith, the lifetime being equal to or greater than a plurality of cycle periods, the initialization vector not being changed when the data to be transmitted is identical to data transmitted in a previous time cycle, provided that the lifetime of the initialization vector has not expired.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to communication systems, and more particularly to a method and communication device for securing communications in a local area network (LAN), such as an industrial Ethernet-based LAN. [Background technology]

[0002] In a typical industrial network, the communication devices are typically connected by a bus using a daisy-chain topology. Typically, a master communication device (typically a programmable logic controller (PLC)) transmits a data frame to the slave communication devices, and each communication device that receives the data frame forwards it to an adjacent communication device if it is not the recipient of the received data frame. In the reverse direction, each communication device can also transmit data frames to the master communication device. Data frames generated by a communication device located on the opposite side of the daisy-chain topology to the master communication device of the daisy-chain topology are forwarded by any intermediate communication devices up to the master communication device.

[0003] For example, data frames exchanged between communicating devices may be Ethernet data frames. In industrial networks, it may be necessary to exchange data frames with strict time delay requirements, for example, every 30 microseconds (μs). Time Sensitive Networking (TSN) is a set of IEEE 802.1 standard technologies defined to provide deterministic messaging in standard Ethernet™ protocols. The key to providing on-time delivery of time-constrained data frames is the IEEE 802.1Qbv standard. More specifically, the IEEE 802.1Qbv standard defines a time-aware scheduler designed to separate communications on an Ethernet communication channel into repeating time cycles of fixed duration. Within these time cycles, various time slices can be configured that can be assigned to traffic classes with different priorities. Such time slices can be considered as virtual communication channels, allowing for the separation of time-constrained background traffic from time-constrained traffic.

[0004] FIG. 1 is a schematic representation of a time diagram showing time cycles and time slices on which the IEEE 802.1Qbv standard is based. In the example shown by FIG. 1, two time cycles are indicated by "time cycle #n" and "time cycle #n+1", respectively. Each time cycle comprises two time slices indicated by "time slice #1" and "time slice #2", respectively. Also, a guard band is provided after time slice #2 of each time cycle and before the start of time slice #1 of the next time cycle. For example, time slice #1 can be reserved for data frames tagged with virtual local area network (VLAN) priority 7 (defined by the IEEE 802.1Q standard), while time slice #2 can be used for data frames tagged with VLAN priorities 0-6.

[0005] Traditionally, industrial fieldbus networks have been isolated LANs, in the sense that they were not connected to other networks, especially the Internet, and therefore were practically not exposed to external threats and offered little support for security mechanisms.

[0006] However, with the advent of protocols that allow time-critical and non-time-critical data frames to coexist on the same communication channel, such as those defined by the IEEE 802.1 TSN set of standards, industrial networks can also be used for applications with less stringent time delay requirements. Thus, new communication devices with less stringent time delay requirements (e.g., other than the master PLC and its slave communication devices) can be added and connected to the industrial network.

[0007] As these new communication devices are connected, for example if one or more of the new communication devices can connect to the Internet, the industrial network can no longer be considered a strictly isolated network and may be exposed to new threats.

[0008] For example, in the case of an industrial network with communication devices connected by a bus using a daisy-chain topology, if one of those communication devices is compromised, possible attacks include: Eavesdropping: An attacker could use a corrupted communication device to eavesdrop on data frames relayed by the corrupted communication device; however, the data exchanged between, for example, a master PLC and its slave communication devices is usually very low-level and difficult for an attacker to exploit by itself. Data Frame Injection: Using a corrupted communication device, an attacker can inject malicious data frames into the communication channel, causing malfunction of the master PLC and its slave communication devices, and in some cases serious hardware damage. Data Frame Replay: An attacker may use a corrupted communications device to inject malicious data frames that are crafted from legitimate data frames sent by an uncorrupted communications device and intercepted by the corrupted communications device. - Data frame tampering or deletion: An attacker may use a corrupted communication device to tamper with or delete relayed data frames, causing the master PLC and its slave communication devices to malfunction.

[0009] Therefore, in order to be able to make industrial networks more robust against all or some of the above mentioned attacks, it is necessary to introduce security mechanisms into industrial networks that have traditionally been designed as isolated networks, but such security mechanisms must be introduced while ensuring that stringent latency requirements can still be met, preferably while limiting the modifications introduced into existing communication devices. Summary of the Invention [Problem to be solved by the invention]

[0010] The present disclosure aims to improve the situation. In particular, the present disclosure aims to overcome at least some of the limitations of the prior art mentioned above by proposing a solution for introducing security mechanisms into industrial networks. In a preferred embodiment, the present disclosure aims to propose a solution that can be deployed even on existing communication devices, for example by software update. [Means for solving the problem]

[0011] To this end, according to a first aspect, the present disclosure relates to a method for transmitting data by a communication device on a communication channel shared by a plurality of communication devices, the communication on the communication channel being organized according to a time cycle repeated with a predetermined cycle duration, the communication device having to transmit data for each time cycle, and if there is no new data to be transmitted, the data to be transmitted is repeated from one time cycle to a subsequent time cycle. determining, by the communications device, a protected data frame based on data to be transmitted; transmitting, by a communication device, a protected data frame over a communication channel; Includes.

[0012] Also, each protected data frame includes protected content determined by using a predefined initialization vector, the initialization vector having a lifetime associated therewith corresponding to a maximum duration that the initialization vector may be maintained without being changed, the lifetime being equal to or greater than a predefined multiple of the cycle period. The initialization vector is not changed when data to be transmitted in a current time cycle is identical to data transmitted in a previous time cycle, unless the lifetime of the initialization vector has expired.

[0013] Therefore, in this disclosure, we consider the case of periodic transmission, i.e., when a communication device (e.g., a master PLC) needs to transmit data every time cycle. If the time cycle is repeated with a cycle period of, for example, 100 μs, the communication device needs to transmit data every 100 μs. The communication device may not have new data to transmit every cycle period, and if there is no new data, the communication device retransmits the data transmitted in the previous time cycle. Therefore, if the cycle period is very short (e.g., 30 μs), the communication device may have to retransmit the exact same data several times.

[0014] Every time cycle, the communication device determines the protected content based on an initialization vector. As with traditional cryptographic algorithms, this initialization vector is an input used to initialize the cryptographic algorithm. The initialization vector may, for example, comprise a random or pseudorandom number, or any number that can be at least partially updated to change the state of the cryptographic algorithm. The protected content may include, for example, a signature that authenticates the encrypted data of the communication device, which is determined by encrypting the data to be transmitted. The protected content may be calculated using any cryptographic algorithm known to those skilled in the art. The communication device then generates a protected data frame containing the protected content to transmit over the communication channel.

[0015] In order to limit the computational complexity required to determine the protected content and to facilitate the determination of the protected content even in a very short cycle period, the initialization vector is updated only when the data to be transmitted in the current time cycle differs from the data transmitted in the previous time cycle. Therefore, since the initialization vector is not necessarily updated in each time cycle, the cryptographic algorithm used to calculate the protected content does not have to be executed in each time cycle, but only when the data to be transmitted is updated. In industrial networks with very short cycle periods, for example 30 μs, the same data can be repeated multiple times so that the same protected content can be used over several time cycles without having to be recalculated from scratch in each time cycle, thereby greatly limiting the computational complexity of updating the protected content in each time cycle. This limited computational complexity allows the determination of the protected content to be implemented in software, so that the method can also be used in existing industrial networks by a simple software update without hardware changes.

[0016] However, to prevent repeating the same protected content too many times and to increase robustness against replay attacks, the initialization vector has a lifetime that forces the communication device to repeatedly change the initialization vector even when the data to be transmitted in the current time cycle is identical to the data transmitted in the previous time cycle. This lifetime may, for example, be equal to N cycle periods for N≧2, such that the initialization vector (and the protected content calculated from it) cannot remain unchanged for longer than N consecutive time cycles. For example, N≧3 or N≧5.

[0017] In particular embodiments, the transmission method may further comprise one or more of the following optional features, taken either alone or in any technically possible combination:

[0018] In certain embodiments, the secured content of the secured data frame of the previous time cycle is repeated in the current time cycle without recalculating the secured content in response to determining that recalculating the secured content of the current time cycle would result in the same secured content as the previous time cycle.

[0019] In certain embodiments, determining the protected contents of the protected data frame is performed by software.

[0020] In a particular embodiment, each time cycle includes at least a first time slice and a second time slice, the first time slice for communicating data having higher timing constraints than data communicated during the second time slice, and the protected data frame is transmitted during the first time slice.

[0021] In certain embodiments, a protected data frame is obtained by providing protected content to an industrial Ethernet protocol stack.

[0022] In certain embodiments, a protected data frame is obtained by providing protected content to an Industrial Ethernet Time Sensitive Networking (TSN) protocol stack.

[0023] In certain embodiments, the protected contents of each protected data frame are further determined by using a predefined symmetric key.

[0024] In certain embodiments, the protected content includes signed and / or encrypted data.

[0025] In certain embodiments, the protected data frame includes all or a portion of the initialization vector.

[0026] In certain embodiments, the lifetime of the initialization vector is greater than or equal to N times the cycle period, where N > 2. In preferred embodiments, N > 5.

[0027] According to a second aspect, the present disclosure provides a method for receiving a data frame by a communication device, the data frame being transmitted by another communication device by using the transmission method according to any one of the embodiments of the present disclosure, and the communication device processes protected content contained in the protected data frame to authenticate the other communication device and / or decrypt data contained in the protected data frame. The receiving method includes: receiving a protected data frame in a current time cycle; Extracting protected content from the protected data frame of the current time cycle; in response to detecting that the protected content extracted from the protected data frame of the current time cycle is identical to the protected content extracted from the protected data frame received in the previous time cycle and detecting that the initialization vector has not expired, reusing a result of processing the protected content of the protected data frame of the previous time cycle without processing the protected content of the protected data frame of the current time cycle; The present invention relates to a receiving method including:

[0028] In particular embodiments, the receiving method may further comprise one or more of the following optional features, taken either alone or in any technically possible combination:

[0029] In certain embodiments, the processing of the protected content is performed by software.

[0030] According to a third aspect, the present disclosure relates to a computer program product comprising instructions that, when executed by at least one processor, configure the at least one processor to perform the transmitting method and / or the receiving method according to any one of the embodiments of the present disclosure.

[0031] According to a fourth aspect, the present disclosure relates to a computer-readable storage medium comprising instructions that, when executed by at least one processor, configure the at least one processor to perform the transmitting method and / or the receiving method according to any one of the embodiments of the present disclosure.

[0032] According to a fifth aspect, the present disclosure relates to a communication device comprising at least one processor and at least one memory and configured to perform the transmitting method and / or the receiving method according to any one of the embodiments of the present disclosure.

[0033] According to a sixth aspect, the present disclosure relates to a local area network (LAN) comprising a plurality of communication devices according to any one of the embodiments of the present disclosure, at least some of the communication devices being connected to each other according to a daisy chain topology.

[0034] The invention will be better understood on reading the following description, which is given by way of example and in no way limiting, and is made with reference to the figures. [Brief description of the drawings]

[0035] [Figure 1] FIG. 2 is a diagram illustrating an example of a time cycle and a time slice according to the IEEE 802.1Qbv standard. [Diagram 2] 1 is a schematic diagram of a communication device. [Diagram 3] FIG. 2 represents the main steps of an exemplary embodiment of a transmission method. [Figure 4] FIG. 4 represents the main steps of another exemplary embodiment of a transmission method. [Diagram 5] FIG. 2 is a schematic diagram of the various protocol layers implemented including a security sublayer. [Figure 6] FIG. 2 represents the main steps of an exemplary embodiment of a receiving method. [Figure 7] FIG. 2 is a schematic diagram of an example of a signature calculation using a symmetric key. [Figure 8] FIG. 1 is a schematic diagram of an example of an Industrial Ethernet TSN-protected data frame. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0036] In the figures, the same reference numbers indicate the same or similar elements. For clarity, elements shown are not to scale unless expressly specified otherwise.

[0037] Additionally, the order of steps depicted in the figures is provided for illustrative purposes only and is not intended to limit the disclosure, which may also be applicable when the same steps are performed in different orders.

[0038] FIG. 2 illustrates generally one exemplary embodiment of a communication device 20 that can be connected to a local area network (LAN), such as an industrial LAN.

[0039] As shown in FIG. 2, the communication device 20 includes an application unit 21 and a communication unit 22 .

[0040] The communication unit 22 is adapted to transmit and receive data on the communication channel according to at least one wired communication protocol. More specifically, the communication over the communication channel is organized according to a time cycle that repeats with a predefined cycle period T0, i.e. a new time cycle is started every T0. The communication unit 22 is configured for periodic transmission, i.e. the communication unit 22 is configured to transmit data on the communication channel at a precise time every time cycle, even if the transmission of data means repeating previously transmitted data. In a preferred embodiment, the communication unit 22 implements at least one industrial Ethernet protocol, i.e. a protocol that relies on standard Ethernet protocols in industrial environments and provides determinism and real-time control. The industrial Ethernet protocols and the standard Ethernet protocols that underlie the industrial Ethernet protocols are collectively referred to as the "industrial Ethernet protocol stack". Most industrial Ethernet protocols are proprietary protocols and the reliance on standard Ethernet protocols introduces a certain degree of interoperability. For example, the communication unit 22 complies with an IEEE standard, such as the 10BASE-T / 100BASE-TX IEEE 802.3 standard. The communication unit 22 may support the IEEE 802.1Q standard for VLAN tag detection and / or the IEEE 1588-2008 standard for high-precision network clock synchronization or gigabit speed. In a preferred embodiment, the communication unit 22 may support IEEE TSN extensions, such as the IEEE 802.1Qbv standard. Examples of industrial Ethernet protocols include Ether-CAT™, EtherNet / IP™, PROFINET™, POWERLINK, SERCOS™ III, CC-Link™ IE, Modbus™, and the like. In this disclosure, an industrial Ethernet protocol that relies on TSN extensions, such as the IEEE 802.1Qbv standard, is referred to as an Industrial Ethernet TSN (IE-TSN) protocol. The protocol CC-Link IE TSN (CCIET) is a non-limiting example of an IE-TSN protocol.The combination of the IE-TSN protocol and the underlying standard Ethernet protocols (including TSN extensions) is called the "Industrial Ethernet TSN protocol stack."

[0041] The application unit 21 implements an application layer, which uses the services of the communication unit 22 and thus generates data to send to another communication device 20 on a communication channel and processes data received from another communication device 20 on a communication channel. In an industrial LAN where multiple communication devices 20 are connected by communication channels, each communication device 20 can be, for example, one of a PLC, a sensor, an actuator, a human machine interface (HMI), and the application layer depends on the type of communication device 20 considered.

[0042] Each of the communication unit 22 and the application unit 21 comprises, for example, one or more processors and one or more memories. The one or more processors include, for example, a central processing unit (CPU), a digital signal processor (DSP). The one or more memories include any type of computer-readable volatile and non-volatile memory (magnetic hard disk, solid-state disk, optical disk, electronic memory, etc.). The one or more memories can store a computer program product (software) in the form of a set of program code instructions executed by the one or more processors to implement all or part of the steps of the sending method 30 and / or the receiving method 60. Alternatively, or in combination thereof, one or both of the communication unit 22 and the application unit 21 can comprise one or more programmable logic circuits (FPGA, PLD, etc.), and / or one or more application-specific integrated circuits (ASICs), and / or a set of discrete electronic components, etc., that implement all or part of the steps of the sending method 30 and / or the receiving method 60. In some cases, all or part of the underlying hardware resources can be shared by the communication unit 22 and the application unit 21. For example, the same processor and the same memory may be used by both the communication unit 22 and the application unit 21 of the communication device 20 .

[0043] In a preferred embodiment, the communication unit 22 may be implemented exclusively in hardware (FPGA, PLD, ASIC), in particular to support very short cycle periods (less than 100 μs, e.g. 30 μs), whereas the application unit 21 may be implemented in software (i.e. program code instructions executed by one or more processors). The application unit 21 and the communication unit 22 may exchange data, for example, via a shared memory.

[0044] In a preferred embodiment, all or some of the communication devices 20 may be connected according to a daisy-chain topology, although other topologies are contemplated by the present disclosure.

[0045] FIG. 3 illustrates in schematic form the main steps of an exemplary embodiment of a transmission method 30 for protecting periodic transmissions of a communication device 20 in a LAN, such as an industrial LAN.

[0046] As mentioned above, the present disclosure relies on conventional cryptographic algorithms to protect data to be transmitted by the communication device 20. In particular, an initialization vector is used to determine the protected content (e.g., corresponding to a signature authenticating the communication device 20 and / or encrypted data obtained by encrypting the data to be transmitted) to be included in the protected data frame transmitted on the communication channel. On the other hand, the present disclosure takes advantage of the specificity of periodic transmissions to introduce such a security mechanism while limiting the required computational complexity. In particular, while the conventional security mechanism requires the initialization vector to be updated at each transmission, the present disclosure does not require the update of the initialization vector at each transmission (i.e., at each time cycle), so that the cryptographic algorithm does not need to be executed every time cycle, i.e., with the cycle period T0.

[0047] As shown in Fig. 3, the transmission method 30 comprises a step S30 of retrieving data to be transmitted to another communication device 20. This data is generated by the application layer (implemented by the application unit 21). The data to be transmitted retrieved during step S30 therefore corresponds to application data. Since the communication device 20 performs periodic transmissions, the data to be transmitted in the current time cycle may be identical to the data transmitted in the previous time cycle. Indeed, if no new data is available to be transmitted, the data transmitted in the previous time cycle is repeated in the current time cycle.

[0048] In the example shown in FIG. 3, the communications device 20, for example the application unit 21, evaluates during a step S31 whether the data to be transmitted in the current time cycle is identical to the data transmitted in the previous time cycle.

[0049] If the data to be transmitted in the current time cycle is different from the data transmitted in the previous time cycle (reference sign S31a in FIG. 3), the transmission method 30 proceeds to step S32 of updating the initialization vector. For example, if the initialization vector comprises a random or pseudo-random number, updating the initialization vector comprises selecting another random or pseudo-random number using a (pseudo)random number generator. Alternatively, or as a combination thereof, the initialization vector may comprise a counter that is incremented (or decremented) when updated. In some cases, the initialization vector may also comprise a static part that is not updated (such as the address of the transmitting communication device 20 or the address of the destination communication device 20, or a combination thereof) and a dynamic part that can be updated.

[0050] If the data to be transmitted in the current time cycle is identical to the data transmitted in the previous time cycle (reference symbol S31b in FIG. 3), the transmission method 30 proceeds to step S33 of evaluating whether the lifetime of the initialization vector has expired. In fact, to prevent the initialization vector from being changed for too many time cycles, a lifetime is associated with the initialization vector, which represents the maximum duration for which the initialization vector can be maintained unchanged. This lifetime is equal to or exceeds a predetermined multiple of cycle period T0, and is, for example, equal to N×T0, where N is an integer number N≧2, in order to ensure that the initialization vector can be maintained unchanged for at least two time cycles (preferably three or more time cycles), provided that the data to be transmitted has not been changed since the previous time cycle. For example, N≧3 or N≧5.

[0051] If the lifetime of the initialization vector has expired (reference symbol S33a in FIG. 3), the initialization vector needs to be updated and step S32 is executed. If the lifetime of the initialization vector has not expired (reference symbol S33b in FIG. 3), the initialization vector is not updated.

[0052] For example, each time the initialization vector is updated (during step S32), a counter LT is set to N (LT←N), and step S33 first decrements the counter LT (LT←LT-1) before evaluating whether the lifetime has expired. If LT=0 in step S33, the lifetime can be considered to have expired.

[0053] As shown in Fig. 3, the transmission method 30 then proceeds to step S34 of determining the protected content by using the initialization vector. The protected content may for example comprise a signature authenticating the communication device 20 and / or encrypted data (in which case the protected content is also determined based on the data to be transmitted). Step S34 is preferably performed by the application unit 21. As will be explained in more detail below, determining the protected content corresponds either to calculating said protected content by executing a cryptographic algorithm or, when possible, to repeat the protected content transmitted in the previous time cycle.

[0054] As mentioned above, determining the protected content can use any cryptographic algorithm known to those skilled in the art. In a preferred embodiment, the protected content is further determined by using a predefined symmetric key, i.e., a key known to both the sending communication device 20 and any receiving communication device 20. The symmetric key can be distributed to the communication device 20 that needs to send and / or receive the protected content via conventional key distribution methods, e.g., by establishing a protected channel between the communication device 20 and a trusted key server. Symmetric key distribution is outside the scope of this disclosure. On the other hand, the symmetric key may be updated iteratively, e.g., periodically with a key update period longer than the lifetime of the initialization vector (preferably significantly longer than this lifetime, e.g., several hours or more). Thus, in some cases, the protected content may differ between time cycles due to symmetric key updates, even if the initialization vector is not changed.

[0055] As shown in Fig. 3, the transmission method 30 then proceeds to a step S35 of determining a protected data frame containing the protected content. If the protected content does not include encrypted data, the data to be transmitted generated by the application layer during step S30 is also included in the protected data frame. The protected data frame is then transmitted on the communication channel during step S36. The step S35 of determining the protected data frame and the step S36 of transmitting the protected data frame are performed by the communication unit 22 of the communication device 20.

[0056] The steps of the transmission method 30 shown in FIG. 3 are repeated in each time cycle so that at least one protected data frame is to be transmitted on the communication channel in each time cycle.

[0057] Fig. 4 shows in a schematic manner the main steps of another exemplary embodiment of the transmission method 30. All the steps described with respect to Fig. 3 are included in Fig. 4, but with a slightly different order that changes the way the lifetime is handled. As shown in Fig. 4, the transmission method 30 includes a step S30 of retrieving the data to be transmitted. The transmission method 30 then proceeds to a step S33 of evaluating whether the lifetime has expired or not. If the lifetime has expired (reference sign S33a in Fig. 4), a step S32 of updating the initialization vector is performed. If the lifetime has not expired (reference sign S33b in Fig. 4), the transmission method 30 proceeds to a step S31 of evaluating whether the data to be transmitted in the current time cycle is identical to the data transmitted in the previous time cycle. If the data to be transmitted in the current time cycle is different from the data transmitted in the previous time cycle (reference sign S31a in Fig. 4), a step S32 of updating the initialization vector is performed. If the data to be transmitted in the current time cycle is identical to the data transmitted in the previous time cycle (reference sign S31b in Fig. 4), the initialization vector is not updated. The transmission method 30 then includes a step S34 of determining the protected content, a step S35 of determining the protected data frame, and a step S36 of transmitting the protected data frame on the communication channel. For example, the counter LT can be set to N (LT←N) only when the initialization vector is updated (during step S32) if the lifetime has expired. Thus, the counter LT is not set to N if the initialization vector is updated because the data to be transmitted in the current time cycle is different from the data transmitted in the previous time cycle. Similarly, step S33 first decrements the counter LT (LT←LT-1) before evaluating whether the lifetime has expired, and if LT=0, the lifetime is considered to have expired. In the embodiment of FIG. 4, the initialization vector is thus periodically updated every N time cycles, and can also be further updated when the data to be transmitted in the current time cycle is different from the data transmitted in the previous time cycle.Therefore, the embodiment of FIG. 3 requires fewer initialization vector updates than the embodiment of FIG.

[0058] As mentioned above, the step S35 of determining the protected data frame and the step S36 of transmitting the protected data frame are performed by the communication unit 22 of the communication device 20. Without the security mechanism introduced in the present disclosure, the communication unit 22 would process protocol data units (PDUs) generated by the application layer and mainly containing data to be transmitted. According to the present disclosure, the PDUs to be processed contain the protected content and may also contain data to be transmitted if the protected content does not contain encrypted data. Thus, the interface with the communication unit 22 is not actually modified to introduce the proposed security mechanism, but only needs to process PDUs of slightly larger size. Thus, in a communication device 20 where the communication unit 22 is accelerated by hardware (FPGA, ASIC), the present solution does not require hardware modifications to the communication unit 22.

[0059] This is due to the introduction of security mechanisms in higher protocol layers so that the lower protocol layers are not affected by the introduction of security mechanisms, which is particularly convenient when said lower protocol layers are accelerated by hardware (FPGA, ASIC). Indeed, as shown in Fig. 5, the security mechanisms (and in particular the handling of the protected content) are implemented by a security sublayer 51 located between an application layer 50, which for example generates data to be transmitted (and can receive data from other communication devices 20), and a periodic transport protocol stack 52, which can for example be an industrial Ethernet (TSN) protocol stack. The periodic transport protocol stack 52 generates the protected data frames to be transmitted by using PDUs containing the protected content, and extracts the protected content from the protected data frames received on the communication channel, which is forwarded to the security sublayer 51. The security sublayer 51 can be bypassed in some cases. Indeed, there are some cases where the security mechanisms are not used. For example, in FIG. 1, it is possible to use protected data frames only in time slice #1, in which case protected content is not included in data frames transmitted in time slice #2.

[0060] The initialization vector (or the symmetric key, if used) is not necessarily updated in each time cycle. Therefore, the cryptographic algorithm used to calculate the protected content does not need to be executed in each time cycle, but only when it may give a protected content different from the protected content contained in the protected data frame transmitted during the previous time cycle. Therefore, the protected content needs to be calculated by executing the cryptographic algorithm only when the initialization vector is updated (i.e. the data to be transmitted has changed or expired) and when the symmetric key is updated, if a symmetric key is used. In other cases (no update of the initialization vector and no update of the symmetric key, if a symmetric key is used), determining the protected content in step S34 can be a matter of retrieving the previous protected content transmitted in the protected data frame of the previous time cycle. With a very short cycle period, for example 30 μs, in most cases it is not necessary to actually calculate the protected content, and the previous protected content can be repeated. Therefore, the computational complexity required to determine the protected content can be limited and can be adapted to software implementation. Even if a longer cycle period requires the actual calculation of the protected content over more time cycles than a shorter cycle period, there is more time available for this calculation and therefore this is also suitable for software implementation. Thus, the step S34 of determining the protected content can be fully implemented in software, in which case the method can be introduced in existing industrial networks by a simple software update of the communication device 20 without hardware changes.

[0061] Fig. 6 shows in a schematic manner the main steps of an exemplary embodiment of a method 60 for receiving data by a receiving communication device 20. Said data is transmitted by the transmitting communication device 20 by using the transmission method 30 according to any one of the embodiments of the present disclosure. Thus, the receiving communication device 20 receives a protected data frame on a communication channel, which contains a protected content as described above. The receiving communication device 20 processes the protected content to authenticate the transmitting communication device 20 (if the protected content contains a signature) and / or to decrypt the data (if the protected content contains encrypted data). However, since the protected content may remain unchanged between time cycles, the processing is not necessarily performed every time cycle, when the result of processing the protected content received in the previous time cycle can be reused, thereby also reducing the computational complexity at the receiving side.

[0062] As shown in FIG. 6, the receiving method 60 includes a step S60 of receiving a protected data frame in a current time cycle on a communication channel and a step S61 of extracting protected content from the protected data frame of the current time cycle, these steps being performed by the communication unit 22 of the receiving communication device 20.

[0063] As shown in FIG. 6, the receiving method 60 then proceeds to step S62 of evaluating whether the protected content extracted from the protected data frame of the current time cycle is identical to the protected content extracted from the protected data frame received in the previous time cycle.

[0064] If the protected content is different from the protected content of the previous time cycle (reference sign S62a in FIG. 6), the receiving method 60 proceeds to step S63 where the protected content extracted from the protected data frame received in the current time cycle is processed (by the security sublayer 51) to authenticate the sending communication device 20 and / or decrypt the data. If an initialization vector is not included in the protected data frame, the receiving communication device 20 updates its initialization vector in order to keep it synchronized with the initialization vector of the sending communication device 20, and processes the protected content by using the updated initialization vector. If a symmetric key is used, updating the symmetric key may also reveal different protected content. Thus, the receiving communication device 20 can process the protected content by using the updated symmetric key and its previous (not updated) initialization vector, and by using the updated symmetric key and the updated initialization vector. If the initialization vector used by the sending communication device 20 is (at least partially) included in the protected data frame, this initialization vector can be extracted and used to process the protected content. Before processing the protected content, the receiving communication device 20 can perform further verification on the initialization vector extracted from the protected data frame. For example, when the used initialization vector is at least partially included in the received protected data frame, the receiving method 60 in some cases includes an optional step S68 of evaluating whether the used initialization vector has expired. If the life of the extracted initialization vector has expired (reference sign S68a in FIG. 6), a potential security problem is detected and the receiving method 60 optionally includes a step S66 of reporting the potential security problem to the application layer 50 and / or to the administrator of the (industrial) LAN.If the lifetime of the initialization vector has not expired (reference sign S68b in FIG. 6), step S63 of processing the extracted protected content is executed.

[0065] If the processing of the protected content is successful (i.e. authentication of the transmitting communication device 20 and / or decryption of the data is successful), the receiving method 60 proceeds to step S64 in which the data extracted from the protected data frame is forwarded to the application layer 50 of the application unit 21.

[0066] If the protected content is identical to the protected content of the previous time cycle (reference symbol S62b in FIG. 6), the result of processing the protected content of the protected data frame of the previous time cycle can be reused without processing the protected content of the protected data frame of the current time cycle, e.g., data received during the previous time cycle can be forwarded to the application layer 50 as data received in the current time cycle.

[0067] On the other hand, in some cases, further verification can be performed, and the receiving method 60 of FIG. 6 includes, for example, an optional step S65 of evaluating whether the initialization vector used by the transmitting communication device 20 has expired. In fact, the receiving communication device 20 can determine that the initialization vector should have been updated due to the expiration of its lifetime. Thus, if the initialization vector has expired, this means that the transmitting communication device 20 should have used an updated initialization vector and the protected content should not be identical to the protected content of the previous time cycle, which would also suggest a potential security problem such as a replay attack. A similar evaluation can be performed if a symmetric key is used. In fact, if an updated symmetric key should have been used by the transmitting communication device 20, the protected content should not be identical to the protected content of the previous time cycle, which would also suggest a potential security problem such as a replay attack.

[0068] If the lifetime of the initialization vector has expired (reference symbol S65a in FIG. 6), a potential security problem is detected and the receiving method 60 optionally includes a step S66 of reporting the potential security problem to the application layer 50 and / or an administrator.

[0069] If the lifetime of the initialization vector has not expired (reference S65b in FIG. 6), the result of the last processing of the same protected content (received in a previous time cycle) can be reused and there is no need to process the protected content received in the current time cycle. The reception method comprises a step S67 of reusing the result of the processing of the previous protected content of the previous time cycle. This step comprises, for example, forwarding the data received during the previous time cycle to the application layer 50 as the data received in the current time cycle. Since there is no need to process the protected content every time cycle, the computational complexity of the processing of the protected content (and generally the security sublayer 51) is limited and is suitable for software implementation. Thus, the step S63 of processing the protected content can be fully implemented in software, in which case the method can be introduced by a simple software update of the communication device 20, without hardware changes, even in existing industrial networks.

[0070] A non-limiting example of protected content computation in the non-limiting case where the IE-TSN protocol stack is used to transport data generated by the application layer 50 of the application unit 21 will now be described.

[0071] A PDU to be transmitted by the IE-TSN protocol stack contains a collection of 16-bit value registers (called Reg16 registers) and Boolean I / O states (called IO bits), all managed by the application layer 50. For example, the application layer may manage n IO bits called IO[1...n] and m Reg16 (16-bit) registers called Reg16[1...m].

[0072] For example, if the protected content supports a signature, the signature may be copied after it is requested (Reg 16). sigOne can introduce an additional Reg16 register called the reg16 register (if the signature has not changed since the previous time cycle, there is no need to recalculate the signature and the Reg16 sig (The contents of the registers can remain unchanged from the previous time cycle.) The signature calculation can use any cryptographic algorithm known to those skilled in the art, e.g., cryptographic hash functions such as SHA, MD5, etc., hash functions.

[0073] If the protected content corresponds to encrypted data, this encrypted data may be copied in the IO bits and / or the Reg16 register (thereby erasing the unencrypted data to be sent previously copied in the IO bits and the Reg16 register by the application layer 50). However, some encryption algorithms, such as the Advanced Encryption Standard (AES), process words of a fixed size, e.g., 256-bit words in the case of the AES-256 algorithm. Thus, if the number of bits (data to be sent) in the IO bits and the Reg16 register is, for example, less than 256 bits, the data to be sent may first be padded (e.g., with bits set to 0) to obtain a 256-bit word, and the 256-bit encrypted (padded) data may be copied in the IO bits and the Reg16 register (thereby erasing the unencrypted data to be sent previously copied in the IO bits and the Reg16 register by the application layer 50). enc To be able to store it in a register, Reg16 enc An additional Reg16 register called the IO register can be used. Of course, it is also possible to encrypt only a part of the data and send the remaining data unencrypted. For example, the data in the Reg16 register can be encrypted, while the data in the IO bits can be sent unencrypted. The calculation of the encrypted data can use any encryption algorithm known to those skilled in the art, for example AES, Triple DES, RSA, etc.

[0074] Fig. 7 shows a schematic representation of a non-limiting example of a signature calculation using a symmetric key. In the example shown in Fig. 7, the dynamic part of the initialization vector is also sent together with the data and the signature received from the application layer, and is stored in Reg16. IV In the example shown in Figure 7, the Reg16 IV [1...n IV ] called n IV Reg16 IV A register is used and the dynamic part of the initialization vector has 32 bits. IV = 2. The initialization vector also contains a static part, which is not transmitted, in this example, Reg16 IV [1...n IV ] corresponds to the 16-bit IE-TSN address of the transmitting communication device 20 concatenated with the dynamic part of the initialization vector in IO[1...n] and Reg16[1...m]. To calculate the signature, the initialization vector (static and dynamic parts) is concatenated with the data received from the application layer in IO[1...n] and Reg16[1...m]. The resulting concatenated data is combined with a 256-bit symmetric key, for example by using a cryptographic hash function, to obtain a Keyed-Hash Message Authentication Code (HMAC) (defined by RFC2104). For example, the hash function used is a SHA function (defined by RFC6234). By doing so, a 256-bit HMAC is obtained. To reduce the size of the PDU forwarded to the IE-TSN protocol stack, the HMAC may be optionally truncated to generate the signature. For example, only the most significant 32 bits (MSBs) of the HMAC are kept, thereby generating a 32-bit signature that can be used to authenticate the transmitting communication device 20. This signature is stored in Reg16[1...m]. sig [1...n sig ] called n sig = 2 Reg16 sig It can be copied in the register.

[0075] Figure 8 illustrates a schematic representation of a non-limiting example of an IE-TSN protected data frame including the signature (protected data) of Figure 7. As noted above, this example contemplates, in a non-limiting manner, that the dynamic portion of the initialization vector is also included in the PDU forwarded to the IE-TSN protocol stack implemented by communication unit 22. However, in other examples, the initialization vector may be included completely, only partially, or not at all in the PDU forwarded to the IE-TSN protocol stack.

[0076] As can be seen in Figure 8, the IE-TSN frame structure has not changed, the only change is that the size of the PDU forwarded to the IE-TSN protocol stack is now specified in register Reg16. IV [1...n IV ] and Reg16 sig [1...n sig ]. Thus, the IE-TSN protocol stack is not modified since the security mechanisms are applied by the upper security sublayer 51, which is above the IE-TSN protocol stack and below the application layer 50. In case the periodic data frame generation performed by the communication unit 22 is hardware (FPGA, ASIC) accelerated, the introduction of the security mechanisms does not require any changes to the existing hardware accelerated periodic data frame generation.

[0077] Therefore, the present disclosure proposes a solution to introduce a security mechanism with limited computational complexity into periodic transmissions in LANs, in particular industrial LANs. For example, by introducing the security mechanism in a higher protocol layer (security sublayer 51) just below the application layer 50, the lower protocol layers are not affected by the introduction of the security mechanism. In particular, the security mechanism can be smoothly introduced on top of any industrial Ethernet (TSN) protocol stack. Also, the computational complexity is limited by limiting how often the protected content needs to be calculated (i.e. by actually executing the cryptographic algorithm), so that the security sublayer 51 can be implemented by software and can be deployed by a simple software update even in existing industrial networks. The proposed security mechanism increases robustness against at least some of the potential attacks mentioned above. For example, by encrypting the data, robustness against eavesdropping is increased. By including a signature, robustness against data frame injection attacks and data frame replay attacks is increased.

Claims

1. 1. A method of transmitting data by a communication device over a communication channel shared by the communication devices, the communication over the communication channel being organised according to a time cycle repeated with a predetermined cycle duration, the communication device being required to transmit data for each time cycle, and if there is no new data to be transmitted, the data to be transmitted is repeated from one time cycle to a subsequent time cycle, the method comprising the steps of: determining, by the communications device, a protected data frame based on the data to be transmitted; the communications device transmitting the protected data frame over the communications channel; Including, 11. A method for transmitting data frames, comprising: a protected data frame including protected content determined by using a predefined initialization vector; the initialization vector having a lifetime associated with it corresponding to a maximum duration for which the initialization vector can be maintained without being changed; the lifetime being equal to or greater than a predefined number of cycle periods; and the initialization vector not being changed when data to be transmitted in a current time cycle is identical to data transmitted in a previous time cycle, provided that the lifetime of the initialization vector has not expired.

2. 2. The method of claim 1, wherein the protected content of the protected data frames of the previous time cycle is repeated in the current time cycle without recalculating the protected content in response to determining that recalculating the protected content of the current time cycle would result in the same protected content as the previous time cycle.

3. The method of claim 2 , wherein determining the protected content of the protected data frame is implemented by software.

4. 4. The transmission method according to claim 1, wherein each said time cycle includes at least a first time slice and a second time slice, the first time slice being for communicating data having higher timing constraints than data communicated during the second time slice, and the protected data frame being transmitted during the first time slice.

5. The transmission method according to any one of claims 1 to 4, wherein the protected data frame is obtained by providing the protected content to an industrial Ethernet protocol stack or an industrial Ethernet Time Sensitive Networking (TSN) protocol stack.

6. The transmission method according to any one of claims 1 to 5, wherein the lifetime of the initialization vector is at least N times the cycle period, for N>=2.

7. Transmission method according to any one of claims 1 to 6, wherein the protected content of each protected data frame is further determined by using a predefined symmetric key.

8. The method of claim 1, wherein the protected content comprises signed and / or encrypted data.

9. The transmission method according to any one of claims 1 to 8, wherein the protected data frame includes all or part of the initialization vector.

10. A receiving method for receiving a data frame by a communication device, said data frame being transmitted by another communication device by using a transmission method according to any one of claims 1 to 9, said communication device processing the protected content contained in said protected data frame to authenticate said other communication device and / or to decrypt the data contained in said protected data frame, said receiving method comprising the steps of: receiving a protected data frame in the current time cycle; extracting the protected content from the protected data frames of the current time cycle; in response to detecting that the protected content extracted from the protected data frame of the current time cycle is identical to the protected content extracted from the protected data frame received in the previous time cycle and detecting that the initialization vector has not expired, reusing a result of processing the protected content of the protected data frame of the previous time cycle without processing the protected content of the protected data frame of the current time cycle; A receiving method including:

11. The method of claim 10, wherein the processing of the protected content is performed by software.

12. A computer program product comprising instructions which, when executed by at least one processor, configure the at least one processor to perform the transmitting method according to any one of claims 1 to 9 and / or the receiving method according to claim 10 or 11.

13. A computer-readable storage medium comprising instructions which, when executed by at least one processor, configure the at least one processor to perform the transmitting method according to any one of claims 1 to 9 and / or the receiving method according to claim 10 or 11.

14. A communication device comprising at least one processor and at least one memory and adapted to perform the transmitting method according to any one of claims 1 to 9 and / or the receiving method according to claim 10 or 11.

15. 15. A local area network (LAN) comprising a plurality of communication devices according to claim 14, at least some of said communication devices being connected to each other according to a daisy chain topology.

Citation Information

Patent Citations

  • Wireless Authentication Using Expired Markers

    JP2007511184A

  • Authentication system of on-vehicle control device and authentication method of on-vehicle control device

    JP2013219710A

  • Validation of Software Residing on Remote Computing Devices

    US20210286871A1

  • Authenticating devices over a public communication network

    US20210385089A1