Authentication and key negotiation method, sensor and aggregation device
The authentication and key negotiation method in wireless sensor networks enhances security by verifying function code integrity and encrypting key information, preventing malicious code implantation and impersonation attacks, while ensuring forward security and resistance to replay attacks.
Patent Information
- Application Number
- CN202210049164.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-17
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2042-01-17
AI Technical Summary
Existing authentication and key agreement (AKA) protocols in wireless sensor networks (WSNs) focus on confidentiality and fake user threats, neglecting the integrity of functional codes and information leakage from fake sensor nodes, and are vulnerable to malicious code implantation and impersonation attacks.
An authentication and key negotiation method involving sensors, convergence devices, and access devices, where sensors receive registration information, generate encryption keys based on random numbers and preset parameters, and perform confidential communication using temporary session keys, ensuring integrity of function codes and resisting impersonation attacks.
The method prevents malicious code implantation and sensor node impersonation by verifying function code integrity and encrypting key information, providing resistance to impersonation attacks, replay attacks, and ensuring forward security without storing shared keys.
Smart Images

Figure CN114567423B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of wireless communication technology, and specifically relates to an authentication and key negotiation method. Background Art
[0002] Wireless Sensor Networks (WSNs) are one of the core technologies of the Internet of Things (IoT). They are composed of heterogeneous sensors widely distributed in space and are mainly used to monitor physical or environmental variables. Power WSNs are mainly composed of three layers of sensor nodes, sink nodes, and access nodes. The sensor nodes collect different types of information and send real-time data to the management server or management center through the path of sink node-access node, so as to decide whether to take measures according to the application requirements in the specific environment. Although WSNs have the advantages of massive connections and low cost, they are the most economical and convenient way to obtain basic data such as power grid operation, equipment status, and environment. However, sensor terminals are limited by cost and power consumption, and their computing power, storage capacity, power supply and transmission capacity are limited. In addition, the harsh working environment leads to information leakage, power sensor counterfeiting, and malicious code implantation during operation. Security issues in power wireless sensor networks are becoming increasingly prominent.
[0003] In order to achieve secure communication of WSNs, researchers have proposed a variety of authentication and key agreement (AKA) protocols in the past few decades to prevent unauthorized access to sensitive data collected by SNs. However, the existing AKA protocol only focuses on the confidentiality of authentication parameters and transmission information, while ignoring the integrity of functional codes and the ability to prevent malicious code implantation; on the other hand, it only focuses on the threat of fake users, while ignoring the information leakage caused by fake sensor nodes. The above problems are technical problems that need to be solved in existing power wireless sensor networks. Summary of the invention
[0004] 1. Technical issues to be resolved
[0005] In view of the above-mentioned shortcomings and deficiencies of the prior art, the present application provides an authentication and key negotiation method, a sensor and a convergence device.
[0006] (II) Technical solution
[0007] In order to achieve the above objectives, this application adopts the following technical solutions:
[0008] In a first aspect, an embodiment of the present application provides an authentication and key negotiation method for a power wireless sensor network, the method being applied to the power wireless sensor network, the power wireless sensor network comprising a sensor, a convergence device, and an access device, the method comprising:
[0009] S10, the sensor receives sensor registration information sent by a registration center, the sensor registration information including a sensor function code and sensor preset parameter information;
[0010] S20, the convergence device sends authentication invitation information to all sensors, where the authentication invitation information includes a first random number;
[0011] S30, each sensor verifies the validity of the authentication invitation information respectively, and after the verification is passed, generates an encryption key based on the first random number and the corresponding sensor preset parameter information; sends authentication request information to the aggregation device based on the generated second random number, the sensor preset parameter information, and the encryption key;
[0012] S40, the convergence device receives the authentication request information, calculates the encryption key and verifies the validity of the authentication request information, and after verification, uses the encryption key as a temporary session key between the convergence device and the sensor;
[0013] S50: The convergence device and each sensor respectively use the corresponding temporary session key to perform confidential communication.
[0014] Optionally, the method further comprises:
[0015] The aggregation device and the access device perform authentication and key negotiation.
[0016] Optionally, the sensor function code includes a signal acquisition and processing program, a lightweight encryption algorithm, and an authentication and key negotiation algorithm program; the sensor preset parameter information includes a sensor identification number, an aggregation device identification number, and sensor identification information generated based on the sensor identification number and the sensor function code.
[0017] Optionally, S30 includes:
[0018] S31, the sensor receives the authentication invitation information, and detects the time validity of the authentication invitation information according to the timestamp in the authentication invitation information;
[0019] S32: If the detection is passed, the sensor generates an encryption key based on the first random number and the sensor preset parameter information through a preset identification data extraction algorithm;
[0020] S33, the sensor generates a second random number and obtains a current sensor timestamp;
[0021] S34, the sensor calculates a hash value of a sensor function code in a sensor preset parameter, wherein the sensor preset parameter is set according to the received sensor registration information;
[0022] S35, the sensor generates key parameter information based on the sensor timestamp, the sensor identification number and the aggregation device identification number in the sensor preset parameters, and the second random number;
[0023] S36. The sensor generates function code encryption information based on the first random number, the second random number, the sensor timestamp, the hash value of the sensor function code, and the encryption key through the lightweight encryption algorithm, and sends the sensor timestamp, the key parameter information, and the function code encryption information as authentication request information to the aggregation device.
[0024] Optionally, before S10, the sensor may also register its identity at the registration center, and the registration step may include:
[0025] S01, the registration center allocates a sensor identification number and a convergence device identification number to the sensor and the corresponding convergence device respectively;
[0026] S02, the registration center generates sensor identification information according to the sensor identification number and the preset sensor function code, and stores the sensor identification number, the aggregation device identification number and the sensor identification information in a backend database;
[0027] S03. The registration center sends the sensor identification number, the aggregation device identification number, the sensor identification information and the sensor function code as sensor registration information to the sensor and the corresponding aggregation device respectively.
[0028] Optionally, S40 includes:
[0029] S41, the convergence device receives the authentication request information, and detects the time validity of the authentication request information according to the timestamp in the authentication request information;
[0030] S42, the aggregation device calculates the encryption key, and performs validity detection on the key parameter information and the function code encryption information according to the preset parameters of the aggregation device; the preset parameters of the aggregation device are set according to the received sensor registration information, including the sensor identification number, the aggregation device identification number, the sensor identification information and the sensor function code;
[0031] S43: If the detection is passed, the encryption key is used as a temporary session key between the aggregation device and the sensor.
[0032] Optionally, S20 includes:
[0033] S21, the aggregation device generates an authentication instruction and a first random number, and obtains a current aggregation device timestamp;
[0034] S22, the convergence device calculates pseudo-random location data based on the first random number, the convergence device timestamp, and the convergence device identity number in the convergence device preset parameters;
[0035] S23: The aggregation device uses the authentication instruction, the pseudo-random location data, and the aggregation device timestamp as the authentication invitation information and sends them to all sensors in a broadcasting manner.
[0036] In a second aspect, an embodiment of the present application provides a sensor, including:
[0037] A registration information receiving module, used to receive sensor registration information sent by a registration center, wherein the sensor registration information includes a sensor function code and sensor preset parameter information;
[0038] An authentication request generation module is used to receive the authentication invitation information sent by the convergence device, verify the validity of the authentication invitation information, and generate an encryption key based on the first random number and the sensor preset parameter information after the verification; and send the authentication request information to the convergence device based on the generated second random number, the sensor preset parameter information, and the encryption key;
[0039] The first communication module is used to perform confidential communication with the aggregation device by using a temporary session key determined after the aggregation device is authenticated.
[0040] In a third aspect, an embodiment of the present application provides a convergence device, including:
[0041] An authentication invitation module, used to send authentication invitation information to all sensors, wherein the authentication invitation information includes a first random number;
[0042] An encryption key determination module is used to receive authentication request information sent by the sensor, calculate an encryption key and verify the validity of the authentication request information, and after verification, use the encryption key as a temporary session key between the convergence device and the sensor;
[0043] The second communication module is used to perform confidential communication with the sensor using the temporary session key.
[0044] (III) Beneficial effects
[0045] The beneficial effects of the present application are as follows: the present application proposes an authentication and key negotiation method, sensor and aggregation device for a power wireless sensor network, wherein the method comprises: the sensor receives the sensor function code and sensor preset parameter information sent by the registration center; the aggregation device sends the authentication invitation information including the first random number to the sensor; each sensor verifies the validity of the authentication invitation information respectively, and after the verification is passed, generates an encryption key based on the first random number and the corresponding sensor preset parameter information; sends the authentication request information to the aggregation device based on the second random number, the sensor preset parameter information and the encryption key; the aggregation device calculates the encryption key and verifies the validity of the authentication request information, and after the verification is passed, uses the encryption key as the temporary session key between the aggregation device and the sensor; the aggregation device and each sensor communicate respectively using the corresponding temporary session key. In the present method, the sensor node only stores the sensor function code and the sensor preset parameter information, and does not store the shared key, and the key information in the public channel is encrypted and transmitted, so even if the attacker obtains the message, it is impossible to forge legal information and pass the identity authentication of the aggregation node, so the method can resist the sensor node impersonation attack. The present application method receives the sensor function code sent by the registration center during the sensor registration phase, and verifies the integrity of the function code during the authentication process, thereby preventing malicious code from being implanted. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The present application is described with the aid of the following drawings:
[0047] Figure 1 This is a schematic diagram of the structure of a power wireless sensor network in Embodiment 1 of the present application;
[0048] Figure 2 This is a flow chart of the authentication and key negotiation method for a power wireless sensor network in Embodiment 1 of the present application;
[0049] Figure 3 This is a data flow diagram of the sensor registration process in the second embodiment of the present application;
[0050] Figure 4 This is a data flow diagram of the authentication and key negotiation process between the sensor and the aggregation device in the second embodiment of the present application;
[0051] Figure 5 This is a schematic diagram of the sensor structure in Example 3 of the present application;
[0052] Figure 6 This is a schematic diagram of the structure of the convergence device in the fourth embodiment of the present application. DETAILED DESCRIPTION
[0053] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below in conjunction with the accompanying drawings through specific implementation methods. It is understood that the specific embodiments described below are only used to explain the relevant inventions, rather than to limit the invention. It should also be noted that the embodiments and features in the embodiments of this application can be combined with each other in the absence of conflict; for ease of description, only the parts related to the invention are shown in the accompanying drawings.
[0054] Embodiment 1
[0055] The authentication and key negotiation method of the power wireless sensor network of this embodiment is applied to the power wireless sensor network. Figure 1 This is a schematic diagram of the structure of the power wireless sensor network in the first embodiment of the present application. Figure 1 As shown, the power wireless sensor network includes sensor nodes, aggregation nodes and access nodes. The aggregation nodes are provided with aggregation devices, and the access nodes are provided with access devices. Among them, the sensors, aggregation devices and access devices can be one or more. Multiple sensors are connected to an aggregation device through a wireless network, and multiple aggregation devices are connected to an access device through a wireless network. The sensor is used to collect field data and send it to the aggregation device; the aggregation device is used to receive the field data, and aggregate multiple field data into aggregated data and transmit it to the access device; the access device is deployed between the management center and the aggregation node, as a key device for the management center to access the wireless sensor network, it is used to send instructions from the management center, and receive information from the aggregation node and upload it to the management center.
[0056] Figure 2 FIG. 1 is a flow chart of the authentication and key negotiation method for the power wireless sensor network in the first embodiment of the present application. Figure 2 As shown, the method of this embodiment includes:
[0057] S10, the sensor receives sensor registration information sent by the registration center, where the sensor registration information includes a sensor function code and sensor preset parameter information;
[0058] S20, the convergence device sends authentication invitation information to all sensors, where the authentication invitation information includes a first random number;
[0059] S30, each sensor verifies the validity of the authentication invitation information respectively, and after the verification is passed, generates an encryption key based on the first random number and the corresponding sensor preset parameter information; sends authentication request information to the aggregation device based on the generated second random number, the sensor preset parameter information, and the encryption key;
[0060] S40, the aggregation device receives the authentication request information, calculates the encryption key and verifies the validity of the authentication request information, and after the verification is passed, uses the encryption key as a temporary session key between the aggregation device and the sensor;
[0061] S50: The aggregation device and each sensor respectively use the corresponding temporary session key to perform confidential communication.
[0062] In the authentication and key negotiation method for the power wireless sensor network of this embodiment, the sensor nodes do not store shared keys, and the key information in the public channel is transmitted in encrypted form, thereby being able to resist sensor node impersonation attacks; by receiving the sensor function code sent by the registration center during the sensor registration phase, the integrity of the function code is verified during the authentication process, thereby preventing malicious code implantation.
[0063] In order to better understand the present invention, each step in this embodiment is described below.
[0064] In this embodiment, the method further includes:
[0065] The authentication and key negotiation between the aggregation device and the access device specifically include:
[0066] A10, the aggregation device receives the aggregation device registration information sent by the registration center, the aggregation device registration information includes the aggregation device function code and the aggregation device identity information;
[0067] A20, the access device sends access invitation information to all aggregation devices, where the access invitation information includes a third random number;
[0068] A30, each aggregation device verifies the validity of the access invitation information respectively, and after the verification is passed, generates an encryption key based on the third random number and the corresponding device identity information; sends access request information to the access device based on the generated fourth random number, the aggregation device identity information, and the encryption key;
[0069] A40, the access device receives the access request information, calculates the encryption key and verifies the validity of the access request information, and after verification, uses the encryption key as a temporary session key between the access device and the aggregation device;
[0070] A50. The access device and each aggregation device respectively use corresponding temporary session keys to perform confidential communication.
[0071] In this embodiment, before S10, the sensor also performs identity registration on the registration center, and the registration step includes:
[0072] S01, the registration center allocates a sensor identification number and a convergence device identification number to the sensor and the corresponding convergence device respectively;
[0073] S02, the registration center generates sensor identification information according to the sensor identification number and the preset sensor function code, and stores the sensor identification number, the aggregation device identification number and the sensor identification information in a backend database;
[0074] S03. The registration center sends the sensor identification number, the aggregation device identification number, the sensor identification information and the sensor function code as sensor registration information to the sensor and the corresponding aggregation device respectively.
[0075] Specifically, the sensor function code includes a signal acquisition and processing program, a lightweight encryption algorithm, and an authentication and key negotiation algorithm program; the sensor preset parameter information includes a sensor identification number, an aggregation device identification number, and sensor identification information generated based on the sensor identification number and the sensor function code. The lightweight encryption algorithm is a pre-set encryption algorithm, and this algorithm is not specifically limited in this embodiment.
[0076] In the method of this embodiment, the sensor node only stores the device number, identification information and function code, and does not store the shared key. Even if the attacker tampers with the function code, the aggregation node will verify the integrity of the function code of the sensor node during the authentication phase, making it impossible to pass the identity authentication, thereby being able to resist node capture attacks.
[0077] In this embodiment, S20 includes:
[0078] S21, the aggregation device generates an authentication instruction and a first random number, and obtains a current aggregation device timestamp;
[0079] S22, the convergence device calculates pseudo-random location data based on the first random number, the convergence device timestamp, and the convergence device identity number in the convergence device preset parameters;
[0080] S23: The aggregation device uses the authentication instruction, the pseudo-random location data, and the aggregation device timestamp as the authentication invitation information and sends them to all sensors in a broadcasting manner.
[0081] It should be noted that each session between the sensor and the aggregation device requires authentication and key negotiation, and the authentication request is initiated by the aggregation device.
[0082] In this embodiment, S30 includes:
[0083] S31, the sensor receives the authentication invitation information, and detects the time validity of the authentication invitation information according to the timestamp in the authentication invitation information;
[0084] S32. If the detection passes, the sensor generates an encryption key based on the first random number and the sensor preset parameter information through a preset identification data extraction algorithm. Here, the identification data extraction algorithm is used to generate the key of the lightweight encryption algorithm in this embodiment, which can be a custom algorithm or a general algorithm.
[0085] S33, the sensor generates a second random number and obtains a current sensor timestamp;
[0086] S34, the sensor calculates a hash value of a sensor function code in a sensor preset parameter, wherein the sensor preset parameter is set according to the received sensor registration information;
[0087] S35, the sensor generates key parameter information based on the sensor timestamp, the sensor identification number and the aggregation device identification number in the sensor preset parameters, and the second random number;
[0088] S36. The sensor generates function code encryption information based on the first random number, the second random number, the sensor timestamp, the hash value of the sensor function code, and the encryption key through the lightweight encryption algorithm, and sends the sensor timestamp, the key parameter information, and the function code encryption information as authentication request information to the aggregation device.
[0089] In this embodiment, the temporary session key is generated by a special extraction algorithm based on the first random number and the identification information. Even if the attacker obtains the first random number, it is impossible to calculate the encryption key for the current communication from the identification information in linear time. Therefore, this method can resist online key guessing attacks.
[0090] In this embodiment, S40 includes:
[0091] S41, the convergence device receives the authentication request information, and detects the time validity of the authentication request information according to the timestamp in the authentication request information;
[0092] S42, the aggregation device calculates the encryption key, and performs validity detection on the key parameter information and the function code encryption information according to the preset parameters of the aggregation device; the preset parameters of the aggregation device are set according to the received sensor registration information, including the sensor identification number, the aggregation device identification number, the sensor identification information and the sensor function code;
[0093] S43: If the detection is passed, the encryption key is used as a temporary session key between the aggregation device and the sensor.
[0094] In this embodiment, no shared key is stored between the participating entities. The first random number is used to generate the encryption key during each authentication process, so the encryption key is dynamic and changes randomly during the authentication process. Even if an attacker obtains the encryption key of the current communication, it is impossible to obtain the previous encryption key, ensuring that the confidentiality of the previous communication will not be affected. Therefore, the method achieves forward security. In addition, when the session is completed, the participating entities do not need to update any information. Therefore, the protocol can resist desynchronization attacks.
[0095] The method of this embodiment uses timestamp and random number methods to resist replay attacks. In each session, the sink node and the sensor node generate random numbers respectively, which are used to ensure the freshness and independence of the exchanged messages. In addition, the sink node and the sensor node have a timestamp freshness detection mechanism, so even if the attacker replays the previous message, it cannot pass the authentication. Therefore, the protocol can resist replay attacks.
[0096] Embodiment 2
[0097] This embodiment describes in detail the specific implementation process of the method proposed in this application on the basis of the first embodiment. The steps of the method include:
[0098] S1. Sensor node registration.
[0099] The sensor registration phase is completed by a secure registration center, which is deployed on the upper management server of the access node or on a local area network computer.
[0100] Figure 3 This is a data flow diagram of the sensor registration process in the second embodiment of the present application, such as Figure 3 As shown, the sensor registration steps include:
[0101] a1. The registration center allocates 32-bit device numbers to the sensors to be registered and the aggregation nodes, i.e., the aggregation device identity number ID. Sensor and sensor identification number ID Sink ;
[0102] a2. The registration center reads the sensor function code (FC) and uses the ID Sensor The FC uses a hash function to generate a 1024-bit sensor identification field (IDF) as the sensor identification information, and then the ID Sensor 、ID Sink and IDF are stored in the back-end database;
[0103] a3. The registration center sends the ID through a secure channel Sensor 、ID Sink , IDF and FC are sent to the sink node and sensor node respectively;
[0104] a4. After receiving the message sent by the registration center, the sink node and the sensor node store it in the memory to complete the initialization process of the sensor.
[0105] It should be noted that the sensor identification field is used for subsequent authentication, and the function code includes signal acquisition and processing procedures, lightweight encryption algorithms, and authentication and key negotiation algorithm procedures.
[0106] S2. Authentication and key negotiation are performed between the sensor and the aggregation device.
[0107] Figure 4 For a data flow diagram of the authentication and key negotiation process between the sensor and the aggregation device in the second embodiment of the present application, please refer to Figure 4 ,The authentication and key negotiation process between the sensor and the aggregation device includes:
[0108] b1. The aggregation node starts the authentication instruction (AI), generates a 64-bit random position data Pos as the first random number, and obtains the current timestamp TS 1 , and then calculate the pseudo-random position data MPos according to the following formula:
[0109]
[0110] Among them, h(·) is a one-way hash function, || represents a join operation, Represents the exclusive OR operation;
[0111] Finally, {AI, MPos, TS 1} to the sensor.
[0112] b2. After the sensor receives AI, it verifies the timestamp TS 1 The freshness of the random position data is calculated according to the following formula: Pos'
[0113]
[0114] Call the identification data extraction algorithm to calculate the encryption key K':
[0115] K'=IEA(IDF,Pos')
[0116] Here, IEA stands for Identity Extraction Algorithm.
[0117] b3. The sensor node generates a random number R as the second random number and obtains the current timestamp TS 2 , calculate the hash value HFC of the function code according to the following formula:
[0118] HFC=h(FC||TS 2 )
[0119] Generate key parameter information M based on the second random number:
[0120]
[0121] Use lightweight encryption algorithm to get the function code encryption information APS:
[0122] APS=LEA(HFC||Pos'||R||TS 2 ,K')
[0123] Among them, LEA stands for Lightweight Encryption Algorithm;
[0124] Finally, {M,APS,TS 2}Sent to the sink node through the public channel.
[0125] b4. The aggregation node verifies the timestamp TS after receiving the message 2 The freshness of the ID is calculated according to the following formula Sensor and R':
[0126]
[0127] By ID Sensor Read the corresponding identification field IDF, and then calculate the encryption key K:
[0128] K=IEA(IDF,Pos)
[0129] And use the following formula to calculate the verification value HFC' of HFC:
[0130] HFC'=h(FC||TS 2 )
[0131] Then use the lightweight decryption algorithm to calculate the verification value Pos' of Pos:
[0132] HFC||Pos'||R||TS 2 =LDA(APS,K)
[0133] b5. If HFC' and HFC, Pos' and Pos, and R' and R are the same, the function code of the sensor and the preset information are successfully compared and the authentication is passed; otherwise, the sensor is authenticated again. If it fails again, the connection is disconnected;
[0134] b6. Finally, the encryption key K is used as a temporary session key during communication.
[0135] S3. The access node and the aggregation node perform authentication and key negotiation.
[0136] Since the authentication method between the access node and the aggregation node is the same as that between the aggregation node and the sensor node, this embodiment will not further describe this process. The specific process can refer to the authentication and key negotiation process between the aggregation node and the sensor node.
[0137] It should be noted that, in this embodiment, the lightweight encryption algorithm may also be replaced by other symmetric encryption algorithms, and this embodiment does not specifically limit the encryption algorithm.
[0138] The present invention proposes an ultra-lightweight authentication and key agreement protocol suitable for the power WSNs environment. Based on the combination of hash functions and lightweight encryption algorithms, the management center is used as the trust root, and a hierarchical trust method is used to authenticate the sensor nodes and generate temporary session keys. This protocol not only reduces the energy consumption overhead caused by the authentication protocol to the sensor network and improves the efficiency of the sensor network, but also prevents unauthorized access and ensures the availability and security of WSNs communications. It has important research significance and engineering value.
[0139] Embodiment 3
[0140] In a second aspect, the present application provides a sensor through a third embodiment. Figure 5 Schematic diagram of the sensor structure in the third embodiment of the present application; Figure 5 As shown, the sensor includes:
[0141] The registration information receiving module 11 is used to receive the sensor registration information sent by the registration center, where the sensor registration information includes the sensor function code and the sensor preset parameter information;
[0142] The authentication request generation module 12 is used to receive the authentication invitation information sent by the aggregation device, verify the validity of the authentication invitation information, and generate an encryption key based on the first random number and the sensor preset parameter information after the verification; and send the authentication request information to the aggregation device based on the generated second random number, the sensor preset parameter information, and the encryption key;
[0143] The first communication module 13 is used to perform confidential communication with the aggregation device using a temporary session key determined after the aggregation device is authenticated.
[0144] The sensor provided in this embodiment can be used to execute the steps in the above method embodiments with the sensor as the execution subject. The implementation principle and technical effect are similar and will not be described in detail in this embodiment.
[0145] Embodiment 4
[0146] In a third aspect, the present application provides a convergence device through a fourth embodiment. Figure 6 This is a schematic diagram of the structure of the convergence device in the fourth embodiment of the present application, such as Figure 6 As shown, the convergence device includes:
[0147] An authentication invitation module 21, used to send authentication invitation information to all sensors, where the authentication invitation information includes a first random number;
[0148] The encryption key determination module 22 is used to receive the authentication request information sent by the sensor, calculate the encryption key and verify the validity of the authentication request information, and after the verification, use the encryption key as a temporary session key between the aggregation device and the sensor;
[0149] The second communication module 23 is used to perform confidential communication with the sensor using the temporary session key.
[0150] The convergence device provided in this embodiment can be used to execute the steps in the above method embodiments with the convergence device as the execution subject. The implementation principle and technical effects are similar and will not be described in detail in this embodiment.
[0151] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several distinct components and by means of a suitably programmed computer. The use of the words first, second, third, etc., is for convenience of expression only and does not imply any order. These words may be understood as part of the component name.
[0152] In addition, it should be noted that, in the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0153] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments after knowing the basic creative concept. Therefore, the claims should be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.
[0154] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention should also include these modifications and variations.
Claims
1. An authentication and key negotiation method for a power wireless sensor network, characterized in that: The method is applied to the power wireless sensor network, which includes sensors, aggregation devices, and access devices. The method includes: S10, the sensor receives sensor registration information sent by a registration center, the sensor registration information including a sensor function code and sensor preset parameter information; S20, the convergence device sends authentication invitation information to all sensors, where the authentication invitation information includes a first random number; S30, each sensor verifies the validity of the authentication invitation information respectively, and after the verification is passed, generates an encryption key based on the first random number and the corresponding sensor preset parameter information; sends authentication request information to the aggregation device based on the generated second random number, the sensor preset parameter information, and the encryption key; S40, the convergence device receives the authentication request information, calculates the encryption key and verifies the validity of the authentication request information, and after verification, uses the encryption key as a temporary session key between the convergence device and the sensor; S50: The convergence device and each sensor respectively use the corresponding temporary session key to perform confidential communication.
2. The authentication and key negotiation method for a power wireless sensor network according to claim 1, characterized in that: The method further includes: The aggregation device and the access device perform authentication and key negotiation.
3. The authentication and key negotiation method for a power wireless sensor network according to claim 1, characterized in that: The sensor function code includes a signal acquisition and processing program, a lightweight encryption algorithm, and an authentication and key negotiation algorithm program; the sensor preset parameter information includes a sensor identification number, a convergence device identification number, and sensor identification information generated based on the sensor identification number and the sensor function code.
4. The authentication and key negotiation method for a power wireless sensor network according to claim 3, characterized in that: S30 includes: S31, the sensor receives the authentication invitation information, and detects the time validity of the authentication invitation information according to the timestamp in the authentication invitation information; S32: If the detection is passed, the sensor generates an encryption key based on the first random number and the sensor preset parameter information through a preset identification data extraction algorithm; S33, the sensor generates a second random number and obtains a current sensor timestamp; S34, the sensor calculates a hash value of a sensor function code in a sensor preset parameter, wherein the sensor preset parameter is set according to the received sensor registration information; S35, the sensor generates key parameter information based on the sensor timestamp, the sensor identification number and the aggregation device identification number in the sensor preset parameters, and the second random number; S36. The sensor generates function code encryption information based on the first random number, the second random number, the sensor timestamp, the hash value of the sensor function code, and the encryption key through the lightweight encryption algorithm, and sends the sensor timestamp, the key parameter information, and the function code encryption information as authentication request information to the aggregation device.
5. The authentication and key negotiation method for a power wireless sensor network according to claim 1, characterized in that: Before S10, the sensor is also required to register its identity on the registration center, and the registration step includes: S01, the registration center allocates a sensor identification number and a convergence device identification number to the sensor and the corresponding convergence device respectively; S02, the registration center generates sensor identification information according to the sensor identification number and the preset sensor function code, and stores the sensor identification number, the aggregation device identification number and the sensor identification information in a backend database; S03. The registration center sends the sensor identification number, the aggregation device identification number, the sensor identification information and the sensor function code as sensor registration information to the sensor and the corresponding aggregation device respectively.
6. The authentication and key negotiation method for a power wireless sensor network according to claim 5, characterized in that: S40 includes: S41, the convergence device receives the authentication request information, and detects the time validity of the authentication request information according to the timestamp in the authentication request information; S42, the aggregation device calculates the encryption key, and performs validity detection on the key parameter information and the function code encryption information according to the preset parameters of the aggregation device; the preset parameters of the aggregation device are set according to the received sensor registration information, including the sensor identification number, the aggregation device identification number, the sensor identification information and the sensor function code; S43: If the detection is passed, the encryption key is used as a temporary session key between the aggregation device and the sensor.
7. The authentication and key negotiation method for a power wireless sensor network according to claim 6, characterized in that: The S20 includes: S21, the aggregation device generates an authentication instruction and a first random number, and obtains a current aggregation device timestamp; S22, the convergence device calculates pseudo-random location data based on the first random number, the convergence device timestamp, and the convergence device identity number in the convergence device preset parameters; S23: The aggregation device uses the authentication instruction, the pseudo-random location data, and the aggregation device timestamp as the authentication invitation information and sends them to all sensors in a broadcasting manner.
8. A sensor, characterized in that: include: A registration information receiving module, used to receive sensor registration information sent by a registration center, wherein the sensor registration information includes a sensor function code and sensor preset parameter information; An authentication request generation module is used to receive the authentication invitation information sent by the convergence device, verify the validity of the authentication invitation information, and generate an encryption key based on the first random number and the sensor preset parameter information after the verification; and send the authentication request information to the convergence device based on the generated second random number, the sensor preset parameter information, and the encryption key; The first communication module is used to perform confidential communication with the aggregation device by using a temporary session key determined after the aggregation device is authenticated.
9. A convergence device, characterized in that: The aggregation device is applied to the authentication and key negotiation method of the power wireless sensor network as claimed in any one of claims 1 to 7, comprising: An authentication invitation module, used to send authentication invitation information to all sensors, wherein the authentication invitation information includes a first random number; An encryption key determination module is used to receive authentication request information sent by the sensor, calculate an encryption key and verify the validity of the authentication request information, and after verification, use the encryption key as a temporary session key between the convergence device and the sensor; The second communication module is used to perform confidential communication with the sensor using the temporary session key.
Citation Information
Patent Citations
Communication method and device
CN103152733A
WSN (Wireless Sensor Network) node safety interaction method in online state monitoring system of power transmission line
CN106612506A
Private vehicle-to-vehicle communication
CN107659550A
Binding authentication method for fingerprint algorithm library and fingerprint sensor, and fingerprint recognition system
CN109075974A
Dynamic certificate authentication key negotiation method for wireless sensor network
CN109600747A
