Device and method for achieving higher security during re-pairing
By using installation keys and link keys in low-voltage protection equipment, and utilizing the reachability standards of communication nodes, the pairing problem when equipment is replaced is solved, security and communication stability are improved, and man-in-the-middle attacks are defended against.
Patent Information
- Application Number
- CN202110029577.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-01-14
- Filing Date
- 2021-01-11
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-01-11
AI Technical Summary
Existing low-voltage protection equipment cannot be easily re-paired when replacing data collectors or communication nodes, resulting in reduced security, especially in the event of a man-in-the-middle attack. Communication security cannot be ensured.
By setting the installation key and link key in the device, and leveraging the reachability criteria of the communicating node, such as local time consistency and MAC address consistency, a secure re-pairing process is implemented to ensure that when the device connects to a new communicating node Use the correct key.
It improves the security of the device, reduces the risk of malicious attacks, prevents data loss and data exchange interference, and ensures the security and stability of communication.
Smart Images

Figure CN113132996B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a device for measuring or generating data, a method for ensuring re-pairing of such a device and a storage medium for storing software for executing the method according to the invention. Background Art
[0002] Perhaps the most important development at the moment, which touches almost all areas of technology and is often referred to as "digitalization," involves the large-scale use of data. The basis for this is the measurement or generation of data, which is made available to applications (also called apps) on the Internet or in the cloud. These applications can then serve, for example, to monitor, control or optimize devices or systems.
[0003] In the course of this development, devices in industrial or personal applications are upgraded for the transmission or transfer of data. In the case of larger data volumes, dedicated nodes are usually used, to which these devices send their data, which are then made available in the cloud with the help of dedicated nodes. These nodes are also called data collectors (corresponding to the English "data collector") or data concentrators. They usually also allow the data flow to be adjusted according to the requirements of the application and the conditions in the transmission technology.
[0004] In order to provide a better understanding, a specific case involving a low voltage protection device is given below, which is upgraded for communication using the communication protocol Zigbee. However, it has been pointed out at this point that the present invention proposed below is neither limited to devices in the low voltage field nor to the Zigbee protocol.
[0005] In the low-voltage sector, different devices are used to protect circuits. One category relates to line protection. For the corresponding devices, the English abbreviation CP (circuit protection) is usually used to characterize these devices. In this case, these devices can be switches, which are switched on again after being triggered (for example in the event of a short circuit or an overcurrent) (for example so-called molded circuit breakers or MCBs), or fuses, which must be replaced if they are triggered (for example, they blow). In addition, there are other protective devices that are triggered for other fault characteristics, such as residual current protection switches (for example so-called residual current devices or RCDs) or fire circuit breakers (for example arc fault detection devices or AFDDs). In the following, all these and similar devices are included in the term low-voltage protective devices.
[0006] An important development direction is to make the data being generated available even in low-voltage protection devices in order to expand the control and regulation possibilities. For this purpose, these devices are usually equipped with additional sensors and must be equipped with a transmission function. This is explained in detail below with reference to the fuse, which was first published in the German application under the application number DE 20 2018 213 522.3.
[0007] Figure 1 The schematic diagram shows the basic structure of a fusible fuse 1. The fusible fuse 1 has two connecting elements 3, which are made of an electrically conductive material, such as copper. The connecting elements 3 are mechanically fixed and tightly connected to a protective housing 2, which is made of a non-conductive and heat-resistant solid material, such as ceramic. The protective housing 2 usually has a tubular or hollow cylindrical basic shape and is closed to the outside in a pressure-tight manner, for example, by means of two closing caps 4. A so-called fusible conductor 5 is arranged in the fusible fuse 1, which connects the two connecting elements 3 to each other in an electrically conductive manner.
[0008] The fusible conductor 5 is usually made of a material with good electrical conductivity, such as copper or silver. If a current flows within the overload range of the fusible fuse 1, the temperature inside the fusible fuse 1 continues to rise until the melting point of the fusible conductor 5 is exceeded and it melts. The reaction between the melt and the extinguishing agent arranged in the inner space leads to the interruption of the current between the connecting elements 3. In addition to the protective housing 2, the fusible fuse 1 also has an additional housing 12. In the additional housing 12, a measuring device 10 is arranged, which has a sensor element 11 and a transmission device 13, the sensor element 11 is used to detect the physical state measurement value of the fusible fuse 1, and the transmission device 13 is used to transmit the measurement value to a receiving device (not shown) arranged outside the fusible fuse 1. Here, the sensor element 11 is designed as a current transformer for measuring the current I flowing through the fusible fuse 1; however, alternatively or additionally to this, other sensor elements, such as Hall sensors or temperature sensors, can also be conceived.
[0009] The sensor element 11 is electrically conductively connected to a processing device 14. In the embodiment shown in the figure, the processing device is schematically shown as a circuit board, which is equipped with components suitable for processing the measurement signal. In addition, a transmission device 13 is provided, which is also electrically conductively connected to the processing device 14 shown as a circuit board. In the course of this example, the transmission device 13 is a communication module designed for the Zigbee transmission standard.
[0010] In order to Figure 1 The data of the low-voltage protection device of a blown fuse is provided to the cloud, and it is sensible to do this via a device for aggregating data from multiple devices. Figure 2Figure 1 shows how a plurality of low-voltage components (e.g. low-voltage protection devices or circuit breakers) B1, B2, B3 and Bn are wirelessly connected to a data collector or data concentrator DC (DC stands for data collector). Communication takes place via Zigbee. The data for the application can then be sent directly or indirectly to the cloud via the data collector DC. The data concentrator makes the data provision in the cloud flexible, for example in terms of settings, data adjustment and sending options.
[0011] In order to establish secure communication between the data collector and the low voltage protection device, pairing of the two devices is performed. For example, in the case of a Zigbee connection, an installation key is exchanged between the two devices via a pairing method (secure pairing). In a further step, the installation key is replaced by a new key. This new key is then stored in the low voltage protection device.
[0012] The Zigbee protocol supports two different security models, namely a centralized security model and a distributed security model. The centralized security model works by protecting individual connections, for which dedicated keys (link keys) are generated and provided by a center set up for this purpose (referred to as a "Trust Center" in this standard). The distributed security model uses keys that are made public within the network (network keys), but this is associated with a reduction in security. Therefore, in the described example, the security of the Zigbee connection is ensured within the framework of a centralized security model. If a new key (link key) is subsequently activated, the low-voltage protection device cannot easily connect to the new data collector due to the absence of a key for re-pairing. This problem can be avoided by using a distributed security model, in which a public key that is the same for each device is used. Although the use of a public key when pairing with a new data collector can eliminate the above-mentioned problems, it will result in reduced security. In particular, in the so-called "man-in-the-middle" attack ( Figure 3 ), the security of communication cannot be ensured.
[0013] What is needed is an apparatus and method for ensuring secure pairing when reconnecting with a communication node, such as a data collector. Summary of the invention
[0014] The technical problem to be solved by the present invention is to provide such a device and method for pairing.
[0015] The above technical problem is solved by a device according to the invention, a method according to the invention and a storage medium according to the invention.
[0016] One aspect of the present invention relates to a device for measuring or generating data. Here, the device can be, for example, a low-voltage protection device that measures data (e.g., current, voltage, temperature information) or generates data (e.g., wear information is generated by counting switching cycles). It should be possible to provide at least a portion of the data generated in the device to an application, especially a cloud application. For this purpose, a data route via a communication node is provided. Here, the data route is, for example, a data collector or a data concentrator. In order to route data, the device is designed to transmit data wirelessly to a communication node (e.g., through an integrated sending and receiving module). Transmitting data to a communication node requires pairing the device with the communication node. For this purpose, the device has an installation key for pairing. In addition, a secure data transmission from the device to the communication node is also provided by means of a link key, so that the device is designed to use a link key determined during the pairing process for data transmission to the communication node. The link key is different from the installation key. With regard to performing a re-pairing, in particular when replacing the communication node with another communication node, the device is designed to check at least one criterion related to the reachability of the (to be replaced) communication node and to use the lack of reachability according to the criterion as a prerequisite for replacing the link key with the installation key for re-pairing. Re-pairing is also necessary during reconnection of the communication node, for example after a software update or a restart. With regard to this pairing, a criterion related to reachability can also be checked.
[0017] In this way, security is increased and the risk of malicious attacks is reduced. In particular, spoofed pairing requests by third parties (e.g. man-in-the-middle attacks) are conceivable, in which a node impersonates the responsible data collector. Such attacks could, on the one hand, lead to data losses to third parties and, on the other hand, interfere with data exchange with authorized data collectors (due to altered keys). The invention is generally able to detect and protect against these attacks.
[0018] For criteria related to lack of accessibility, the following two approaches can be used, which can also be combined with each other.
[0019] The device can be designed for this purpose to obtain its local time from the communication node at regular time intervals in order to then accept it as its own local time. The lack of transmission of the local time of the communication node is then used as a criterion for the reachability of the communication node.
[0020] The device can also be designed to receive reports at regular intervals by the communication node (e.g. as a response to a message from the device to the communication node, which prompts the communication node to send a report). The absence of a report from the communication node is then used as a criterion for the reachability of the communication node.
[0021] According to an extension, the device can be designed to check a criterion related to the address information of the communication node, in particular the MAC address, and use the criterion related to the address information as an additional prerequisite for replacing the link key with the installation key for re-pairing. For example, in some configurations it can be assumed that re-pairing is only initiated by the same communication node or another communication node with the same MAC address. The consistency of the MAC address can then be used as an additional criterion.
[0022] The invention also relates to a method for ensuring re-pairing of a device for measuring or generating data with a communication node, wherein at least one criterion relating to the reachability of the communication node is checked and the lack of reachability according to the criterion is used as a prerequisite for replacing a link key with an installation key for re-pairing.
[0023] Finally, the invention also relates to a storage medium with software for executing the method according to the invention. In particular, a storage medium from which a device for measuring or generating data can download software is envisioned in order to update the device for the process according to the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The content of the present invention is described in more detail below in the framework of embodiments with reference to the accompanying drawings. In the accompanying drawings:
[0025] Figure 1 A blown fuse with communication function (so-called smart fuse) is shown.
[0026] Figure 2 shows a data collector and a low voltage protection device wirelessly connected to each other,
[0027] Figure 3 A scenario showing the manipulation of a "middleman"
[0028] Figure 4 Shown in accordance with Figure 1 The encoding of the initialization information on the blown fuse,
[0029] Figure 5 shows a flow chart for pairing according to the Zigbee protocol,
[0030] Figure 6 A diagram for explaining the setting of device time in a system interconnect is shown,
[0031] Figure 7 shows a flow chart for checking the reachability of a data collector, and
[0032] Figure 8 A schematic diagram showing the results of using the reachability of the check data collector in the re-pairing framework. DETAILED DESCRIPTION
[0033] Figure 4 For example, according to Figure 1 A fusible fuse 1 equipped with sensor technology and communication functionality. A matrix code M is arranged on the fusible fuse 1 and is shown again enlarged next to the fusible fuse. Instead of a data matrix code, a QR code can also be used. The code can be scanned with the aid of a suitable device. The device (usually a mobile phone or tablet) has an application which extracts the pairing key (initialization key) and the MAC address associated with the device from the code and transmits them to a data collector.
[0034] Other methods for providing the initialization key are also conceivable. For example, the initialization key can also be provided directly on the blown fuse, so that the initialization key can also be keyed in.
[0035] Then, during the pairing process with the data collector, the initialization key is replaced with a link key (eg, a "link key" in the Zigbee protocol) that protects the connection between the blown fuse and the data collector.
[0036] Figure 5 The pairing according to the ZigBee protocol is shown. The roles are defined there: "ZigBee end device", "ZigBee router" and "trust center". In the framework of this embodiment, the blown fuse assumes the role on the left side of the figure ("joining ZigBee router or ZigBee end device"). The roles "ZigBee router" and "trust center" indicated above in the figure are both assumed by the data collector. It is therefore pointed out that the two pairing steps between "ZigBee router" and "trust center" are not applicable in the figure (indicated as "not applicable" in the figure).
[0037] As described above, for pairing, the initialization key and MAC address of the fuse are transmitted to the data collector via the App. Then, via the MAC address, a connection establishment is performed between the data collector and the fuse (on the media access control (MAC) layer in the ZigBee layer model). Protection of the communication is not implemented on the MAC layer, but on a higher layer in the layer model (network (NKW) layer or application support layer (APS)). An in-depth explanation of this diagram based on the ZigBee protocol is not necessary for understanding the claimed invention. The elements used there are known from the protocol specification (for example ZDO stands for "ZigBee Device Object" and supports the implementation of a "ZigBee End Device" or "ZigBee Router"). Here, it is only important that the initialization key ( Figure 5 ), but then uses a different key ( Figure 5 The initialization key is replaced by the link key B) in the pairing protocol. This second key is also referred to below as the link key, but this term should not be understood as being related only to the ZigBee protocol. These considerations also apply to any protocol that uses the initialization key for pairing and replaces the initialization key with another key (link key) for communication after pairing.
[0038] The invention is based on the consideration that a communication disturbance with a data collector usually indicates that a new pairing is required. In particular, when a data collector is replaced or when a function is taken over by another data collector, there is at least sometimes no connectivity with the old data collector.
[0039] According to the present invention, the information that the data collector is unreachable is used as a precondition for resetting the link key to the initial key.
[0040] This information can be generated, for example, by providing a regular report of the data collector at the time of a blown fuse. This can be achieved, for example, by means of a so-called watchdog function (eg, software watchdog). Another sophisticated possibility is to use the operating method of the device time.
[0041] Figure 6 It is shown how the consistency with the actual time and the synchronization with each other are determined according to Figure 2 The local time of the device. The local time of the data collector DC is received via a time server service (represented by "NPT time server" in the figure). The Network Time Protocol (NTP) is used here. The local clock of the data collector (see Figure 5 Reference designation "NTP time master" in ) and the clocks of low-voltage devices B1, B2, B3 and Bn (see Figure 5The reference symbol "NTP time controller" in the figure is in a master-slave relationship. That is, the low-voltage devices B1, B2, B3 and Bn receive the local time of the data collector DC at regular time intervals and set their clocks accordingly or accept the local time of the data collector DC. It can also be provided that only low-voltage components are synchronized, in which large time deviations may occur due to device reasons.
[0042] In accordance with Figure 1 The device time is synchronized periodically (for example, every 15 minutes) between the fuse and the associated data collector. Here, the master-slave relationship mentioned exists, that is, the fuse receives the device time of the data collector. Figure 1 The fuse generates energy from the current flowing through it, so there may be a phase of lack of energy supply, during which the local clock stops. This local clock is corrected by accepting the time of the data collector. To this end, the fuse implements a timer that increases the device time every second. As a default time, 0:00h on January 1, 1970 is stored in the device. As soon as the first time synchronization with the data collector is carried out, the current time is used in the fuse. The fuse has a microcontroller responsible for the timer increment. The microcontroller is only activated when sufficient energy flows through the current path. Therefore, the local time or device time of the fuse is always less than or equal to the device time of the data collector. Then, the lack of time synchronization or the lack of a timestamp transmitted from the data collector within a certain time period (for example 1 hour) is a criterion for the data collector to be unreachable.
[0043] The two methods described above for testing for unreachability of the data collector, namely the test method using the watchdog function and the test method using monitoring time synchronization, can also be combined. Figure 7. There, the steps related to time synchronization (criterion 1 or K1) are shown on the left, and the steps related to watchdog reporting (criterion 2 or K2) are shown on the right. In step S11 (time update?), it is checked whether a new timestamp has been received. If so, the associated timer is set to zero in step S12 (reset timer T1=0). Otherwise, in step S13 (T1>TSW1?), it is checked whether the threshold value TSW1 (for example 1 hour) has been exceeded. If not, the branch returns to query S11. If it has been exceeded, in step S14 (K1 is satisfied), it is assumed that criterion 1 has been met, and the branch proceeds to step S2. In the case of criterion 2, it is checked in step S21 (DC (old) report?) whether the data collector has reported. If so, the associated timer is set to zero in step S22 (reset timer T2=0). Otherwise, in step S23 (T2>TSW2?), it is checked whether the threshold value TSW2 (for example also 1 hour) has been exceeded. If not, the branch returns to query S21. If it has been exceeded, in step S24 (K2 is satisfied), it is considered that criterion 2 has been satisfied, and the branch proceeds to step S2 (K1 and K2 are satisfied?), in which it is checked whether both criteria are satisfied. If so, the unreachability of the data collector is determined in step S5 (DC (old) unreachable), which becomes a prerequisite for re-pairing with another data collector in general.
[0044] Figure 8 The use of the reachability criterion during re-pairing is shown in FIG. Here, step S32 (continuous query: DC reachable?) shown by the dashed line shows that the Figure 7. After the initial pairing with the data collector DC in step S31 (initial pairing), the MAC address (MAC(DC)) of the data collector is known (indicated in the figure by "MAC(DC) known"), and the initial key has been replaced by the link key (in the figure "initial key→link key"). The reachability of the data collector DC is continuously queried or checked. The current result is used for a new pairing attempt. Here, the pairing attempt is shown in the figure by step S34 (request to pair the node with the address MAC(K)). In the query S35 (is DC reachable?), the current information about the reachability of the data collector DC is checked. If the data collector DC is reachable, no pairing is performed, which is shown in the figure by step S36 (no pairing). It is also conceivable that this is interpreted as a sign of possible deliberate interference from the outside and leads to an alarm or even corresponding countermeasures. If the data collector DC is not reachable, it is checked in a further query whether the MAC address of the requested node is consistent with the MAC address of the data collector (step S38: MAC(K)=MAC(DC)?). In the embodiment, it is assumed that the pairing request must come from the original data collector DC or from a replacement data collector adopting the MAC address of the original data collector. Therefore, if the MAC addresses are different from each other, pairing is not performed (step S37: no pairing). Only if the query in S35 is negative and the query in S38 is positive, the link key is replaced by the initial key (step S39: link key→initial key) and pairing is performed (step S40: pairing), wherein the pairing is then performed according to Figure 5 Here, it is also important that the communication key is replaced only if the query on reachability in S35 is negative, because after the key replacement, the original data collector DC with the link key of the original pairing can no longer successfully communicate with the fuse.
[0045] The invention has been explained above with reference to a blown fuse and a data collector connected via the ZigBee protocol, but the invention is by no means limited to this case but is in principle applicable to any device for measuring or generating data with other protocols.
Claims
1. A device used to measure or generate data, in, In order to provide the data to the application, a data routing via a communication node is provided and, for this purpose, the device is designed for wirelessly transmitting the data to the communication node. wherein the device needs to be paired with the communication node in order to transmit data to the communication node, and for this purpose, the device has an installation key for performing pairing with the communication node, Therein, a data transmission from the device to the communication node is provided, which is secured by means of a link key, and for this purpose the device is designed to use the link key determined during the pairing process for the data transmission to the communication node, Therein, in order to replace or reconnect a communication node, a re-pairing is performed, and for this purpose the device is designed to: checking at least one criterion related to the reachability of the communication node, and Using the lack of reachability according to the standard as a prerequisite for replacing the link key with the installation key for re-pairing, characterised in that the device is designed for this purpose to receive its local time from the communication node at first regular time intervals in order to subsequently accept it as its own local time, and using the absence of transmission of the local time of a communication node as a first criterion of the reachability of the communication node, receiving reports from the communication node at second regular time intervals, and using the absence of a report from a communication node as a second criterion for the reachability of the communication node, Lack of reachability according to the first criterion as well as the second criterion is used as a precondition for replacing the link key with the installation key for re-pairing.
2. The device according to claim 1, characterized in that For this purpose, the device is designed to checking the standards related to the address information of the communication nodes, and Criteria related to address information are used as an additional prerequisite for replacing the link key with the installation key for re-pairing.
3. The device according to claim 1 or 2, characterized in that The device is a low voltage protection device.
4. The device according to claim 3, characterized in that: The device is a blown fuse.
5. A method for ensuring that a device for measuring or generating data is re-paired with a communication node, in, In order to provide the data to the application, a data routing via the communication node is set up and, for this purpose, the device transmits the data wirelessly to the communication node. wherein the device needs to be paired with the communication node in order to transmit data to the communication node, and to this end, the device uses an installation key for performing pairing with the communication node, wherein a data transmission from the device to the communication node is provided, the data transmission being secured by means of a link key, and for this purpose the device uses the link key determined in the pairing process for the data transmission to the communication node, In order to replace or reconnect the communication node, re-pairing is performed, and for this purpose checking at least one criterion related to the reachability of the communication node, and Using the lack of reachability according to the standard as a prerequisite for replacing the link key with the installation key for re-pairing, characterised in that the device obtains its local time at first regular time intervals transmitted from a communication node in order to subsequently accept it as its own local time, and using the absence of transmission of the local time of a communication node as a first criterion of the reachability of the communication node, receiving reports from the communication node at second regular time intervals, and using the absence of a report from a communication node as a second criterion for the reachability of the communication node, Lack of reachability according to the first criterion as well as the second criterion is used as a precondition for replacing the link key with the installation key for re-pairing.
6. The method according to claim 5, characterized in that checking the standards related to the address information of the communication nodes, and Criteria related to address information are used as an additional prerequisite for replacing the link key with the installation key for re-pairing.
7. A storage medium having software for executing the method according to claim 5 or 6.
