An Internet of Things gateway identity authentication method and system based on alliance chain

By using alliance chains for dual identity authentication in the IoT gateway system, the problem of insufficient identity authentication and communication security of IoT gateway devices in traditional systems is solved, a decentralized trusted environment is realized, and the system security is enhanced and reliability.

CN117978397BActive Publication Date: 2024-12-03HANGZHOU HAIXINGZEKE INFORMATION TECHNOLOGY CO LTD +5
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202311579350.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-24
Publication Date
2024-12-03
Estimated Expiration
2043-11-24

AI Technical Summary

Technical Problem

The Internet of Things gateways have insufficient identity authentication and communication security in traditional systems, lack of reliable trust mechanisms, and it is difficult to ensure the security of device identity authentication and data transmission.

Method used

The dual identity authentication method based on the alliance chain is adopted, through communication between the authentication platform and the alliance chain, the public key is used to upload device data and evaluate trust, ensuring the identity authentication and communication security of IoT gateway devices.

Benefits of technology

Provide a decentralized and trustworthy environment through alliance chains, enhancing the security of identity authentication and data transmission of IoT gateway devices, and ensuring the security and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117978397B_ABST
    Figure CN117978397B_ABST
Patent Text Reader

Abstract

The embodiments of this specification disclose an IoT gateway identity authentication method and system based on a consortium chain. Among them, the method of the IoT gateway identity authentication method based on a consortium chain includes sending a first identity authentication request to the authentication platform end, and the authentication platform end is used to query the consortium chain on the consortium chain network end according to the first identity authentication request, and determine the identity information and public key of the IoT gateway device, and send a first identity authentication response to the gateway device end; when the first identity authentication is determined to be successful based on the first identity authentication response, the public key is used to upload the device data to the consortium chain, and the consortium chain is used to determine the trust of the IoT gateway device based on the device data, and perform a second identity authentication on the IoT gateway device based on the trust. The embodiments of this specification ensure the identity authentication and communication security of the gateway device by performing two authentications on the IoT gateway device based on the consortium chain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] One or more embodiments of this specification relate to the field of communication security technology, and specifically to an IoT gateway identity authentication method and system based on a consortium chain. Background Art

[0002] With the rapid development of IoT technology, the number of IoT devices has increased rapidly, and the security issues of IoT systems have become increasingly prominent. Among them, IoT gateways, as an important part of IoT systems, play a key role in connecting devices and cloud platforms. However, since IoT gateways involve a large number of physical devices and data transmission, their security faces many challenges, such as identity authentication and data encryption. In traditional IoT acquisition systems, there is a lack of a reliable trust mechanism to ensure the identity authentication and communication security of gateway devices.

[0003] For example, the existing national public patent document CN106487777B discloses an identity authentication method, an Internet of Things gateway device, and an authentication gateway device. The Internet of Things gateway device first establishes a lookup table, and the lookup table includes a list of legal media access control addresses and a legal received signal strength index range of at least one legal client device. When the Internet of Things gateway device receives a connection request from a client device, the Internet of Things gateway device obtains the media access control address and the received signal strength index of the client device according to the connection request, and compares the media access control address of the client device with the received signal strength index and the list of legal media access control addresses in the lookup table with the legal received signal strength index range to determine whether the client device is a legal client device. Although the Internet of Things gateway device of the invention can authenticate the client device based on the received signal strength index, the invention cannot ensure the identity authentication and communication security of the gateway device. Summary of the invention

[0004] The embodiments of this specification provide an IoT gateway identity authentication method and system based on a consortium chain, and the technical solution is as follows:

[0005] In the first aspect, an embodiment of the present specification provides an IoT gateway identity authentication method based on an alliance chain, which is applied to a gateway device side, including: sending a first identity authentication request to an authentication platform side, the authentication platform side is used to query the alliance chain on the alliance chain network side according to the first identity authentication request, and determine the identity information and public key of the IoT gateway device, and send a first identity authentication response to the gateway device side; when the first identity authentication is determined to be successful based on the first identity authentication response, the public key is used to upload the device data to the alliance chain, the alliance chain is used to determine the trust of the IoT gateway device based on the device data, and perform a second identity authentication on the IoT gateway device based on the trust.

[0006] On the second aspect, the embodiments of this specification provide an IoT gateway identity authentication method based on an alliance chain, which is applied to an authentication platform end, including: receiving a first identity authentication request sent by a gateway device end; querying the alliance chain on the alliance chain network end according to the first identity authentication request, and determining the identity information and public key of the IoT gateway device, and sending a first identity authentication response to the gateway device end; the gateway device end is used to upload the device data to the alliance chain using the public key after determining that the first identity authentication is successful based on the first identity authentication response; the alliance chain is used to determine the trustworthiness of the IoT gateway device based on the device data, and perform a second identity authentication on the IoT gateway device based on the trustworthiness.

[0007] On the third aspect, the embodiments of this specification provide an IoT gateway identity authentication method based on an alliance chain, which is applied to the alliance chain network end, including: receiving device data sent by a gateway device end; determining the trust of the IoT gateway device based on the device data, and performing a second identity authentication on the IoT gateway device based on the trust; the gateway device end is used to send a first identity authentication request to the authentication platform end, and when the first identity authentication is determined to be successful based on the first identity authentication response, the device data is uploaded to the alliance chain on the alliance chain network end using the public key; the authentication platform end is used to query the alliance chain according to the first identity authentication request, and determine the identity information and public key of the IoT gateway device, and send a first identity authentication response to the gateway device end.

[0008] In the fourth aspect, the embodiments of the present specification provide an IoT gateway identity authentication system based on an alliance chain, including a gateway device end, an authentication platform end and an alliance chain network end, wherein the gateway device end includes: a first authentication module, used to send a first identity authentication request to the authentication platform end, the authentication platform end is used to query the alliance chain on the alliance chain network end according to the first identity authentication request, and determine the identity information and public key of the IoT gateway device, and send a first identity authentication response to the gateway device end; a second authentication module, used to upload the device data to the alliance chain using the public key when the first identity authentication is determined to be successful based on the first identity authentication response, the alliance chain is used to determine the trust of the IoT gateway device based on the device data, and perform a second identity authentication on the IoT gateway device based on the trust.

[0009] In the fifth aspect, an embodiment of the present specification provides an electronic device, including a processor and a memory; the processor is connected to the memory; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the steps of the IoT gateway identity authentication method based on the alliance chain of the first aspect, the second aspect, the third aspect or the fourth aspect of the above-mentioned embodiment.

[0010] In a fourth aspect, an embodiment of the present specification provides a computer storage medium, which stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the steps of the alliance chain-based IoT gateway identity authentication method of the first aspect, the second aspect, the third aspect or the fourth aspect of the above-mentioned embodiment.

[0011] The beneficial effects brought by the technical solutions provided by some embodiments of this specification include at least:

[0012] The embodiments of this specification provide an IoT gateway identity authentication method based on a consortium chain. The consortium chain on the consortium chain network end can be queried through the authentication platform end to perform a first identity authentication on the IoT gateway device. When the first identity authentication is determined to be successful based on the first identity authentication response, the device data is uploaded to the consortium chain using the public key. The consortium chain is used to determine the trust of the IoT gateway device based on the device data, and perform a second identity authentication on the IoT gateway device based on the trust. The embodiments of this specification ensure the identity authentication and communication security of the gateway device by performing two authentications on the IoT gateway device based on the consortium chain. The embodiments of this specification perform identity authentication between the IoT gateway and the authentication platform and the consortium chain and ensure the security of data transmission; at the same time, the consortium chain provides a decentralized and trusted environment, further enhancing the security and reliability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the technical solutions in the embodiments of this specification, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0014] Figure 1 This is a schematic diagram of an application scenario of an IoT gateway identity authentication system based on a consortium chain provided in this manual.

[0015] Figure 2 This is a flowchart of an IoT gateway identity authentication method based on a consortium chain provided in this manual.

[0016] Figure 3 This is a flowchart of another IoT gateway identity authentication method based on alliance chain provided in this specification.

[0017] Figure 4 This is a flowchart of another IoT gateway identity authentication method based on alliance chain provided in this manual.

[0018] Figure 5 This is a schematic diagram of the structure of an electronic device provided in this manual. DETAILED DESCRIPTION

[0019] The technical solutions in the embodiments of this specification will be described clearly and completely below in conjunction with the drawings in the embodiments of this specification.

[0020] The terms "first", "second", etc. in the description and claims of this specification and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any variation thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.

[0021] Before this specification elaborates on the IoT gateway identity authentication method based on the alliance chain in combination with one or more embodiments, it first introduces the application scenario of the IoT gateway identity authentication method based on the alliance chain.

[0022] See also Figure 1 , Figure 1 The present invention provides a scenario diagram of an IoT gateway identity authentication system 100 based on an alliance chain. The IoT gateway identity authentication system 100 based on an alliance chain may include a gateway device end 110, an authentication platform end 120, and an alliance chain network end, etc. The gateway device end 110, the authentication platform end 120, and the alliance chain network end are interconnected for communication.

[0023] Among them, the gateway device end 110 corresponds to one or more IoT gateway devices 116. The IoT gateway device 116 is various IoT terminal devices connected to the IoT gateway to realize functions such as data collection, transmission and control, such as sensors, actuators, smart devices, data collection equipment, surveillance cameras, RFID readers and writers, etc.

[0024] The gateway device end 110 can be integrated into an electronic device, which can be a terminal, a server, or other devices. Among them, the terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop, or a personal computer (PC) and other devices; the server can be a single server or a server cluster composed of multiple servers. The gateway device end 110 can also be integrated into multiple electronic devices. For example, the gateway device end 110 can be integrated into multiple servers, and multiple servers can implement the IoT gateway identity authentication method based on the alliance chain of this application.

[0025] The authentication platform end 120 can also be integrated into an electronic device, which can be a terminal, a server, or other devices. Among them, the terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop, or a personal computer; the server can be a single server or a server cluster composed of multiple servers. The authentication platform end 120 can also be integrated into multiple electronic devices. For example, the authentication platform end 120 can be integrated into multiple servers, and multiple servers can implement the IoT gateway identity authentication method based on the alliance chain of this application.

[0026] The alliance chain network includes an alliance chain network composed of one or more nodes corresponding to several organizational participants. Among them, the node can be an electronic device such as a terminal or server. Each organizational participant jointly manages and maintains the alliance chain. In the alliance chain network, the organizational participants can share data, execute chain codes, and rely on the immutability and distributed characteristics of the alliance chain to enhance the security and credibility of the data.

[0027] In this embodiment, the gateway device end 110 includes: a first authentication module 112 and a second authentication module 114, wherein: the first authentication module 112 is used to send a first identity authentication request to the authentication platform end, and the authentication platform end is used to query the alliance chain on the alliance chain network end according to the first identity authentication request, and determine the identity information and public key of the Internet of Things gateway device, and send a first identity authentication response to the gateway device end; the second authentication module 114 is used to upload the device data to the alliance chain using the public key when it is determined that the first identity authentication is successful based on the first identity authentication response, and the alliance chain is used to determine the trust of the Internet of Things gateway device based on the device data, and perform a second identity authentication on the Internet of Things gateway device based on the trust.

[0028] In some embodiments, the gateway device end 110 also includes an information sending module, which is used to: send device information to the authentication platform end, the authentication platform end is used to store the device information on the alliance chain and generate a unique identifier for the Internet of Things gateway device; the device information includes device identity information and public key.

[0029] In some embodiments, the gateway device end 110 also includes a network construction module, which is used to: set up a distributed ledger platform and a dependency library for implementing distributed ledger functions, and establish a connection between the dependency library and the distributed ledger platform network; define organizational participants participating in the Internet of Things gateway, and the organizational participants include identifiers, network verification parameters, and identity authentication parameters; set one or more nodes for the organizational participants, and configure network resources for the nodes, and the nodes are used to connect to the alliance chain network and participate in consensus and data verification; the nodes include endorsement nodes and sorting nodes, the endorsement nodes are used to execute smart contracts and maintain ledgers, and the sorting nodes are used for consensus and sorting transactions; set chain codes, and the chain codes are used to implement the identity authentication process of the Internet of Things gateway device to ensure that only the Internet of Things gateway device that has successfully passed the first identity authentication can access and participate in the alliance chain network; deploy the chain code to the nodes of the alliance chain, and verify that all nodes successfully access and execute the chain code; based on the identity authentication mechanism, identity management and access control configuration of the alliance chain, set the permissions and access control rules of the alliance chain network to verify that only authorized Internet of Things gateway devices and nodes can access and use the chain code.

[0030] In some embodiments, the network construction module also includes an organization setting module, which is used to: respectively define the roles and functions of the certificate authority and the public key registration authority; set the certificate authority according to the role and functions of the certificate authority, and the root certificate authority is the organization that issues and manages digital certificates in the alliance chain network; set the public key registration authority according to the role and functions of the public key registration authority, and the public key registration authority is the organization that verifies the identity of the Internet of Things gateway device and submits certificate applications to the certificate authority.

[0031] In some embodiments, the second authentication module 114 includes a trust determination module, which is used to: determine the data quality, device stability and device compliance corresponding to the Internet of Things gateway device based on the chain code on the alliance chain and the device data; determine the trust of the Internet of Things gateway device based on the data quality, device stability and device compliance; when the trust of the Internet of Things gateway device is lower than a preset trust threshold, determine that the second identity authentication of the Internet of Things gateway device has failed, and mark the Internet of Things gateway device as an untrustworthy device.

[0032] In some embodiments, the second authentication module 114 also includes a blacklist management module, which is used to: remove untrusted devices from the alliance chain network by updating the chain code; add untrusted devices to the blacklist, and manage the blacklist through the alliance chain.

[0033] In this embodiment, the authentication platform end 120 includes a first identity authentication module, which is used to: receive a first identity authentication request sent by the gateway device end; query the alliance chain on the alliance chain network end according to the first identity authentication request, and determine the identity information and public key of the Internet of Things gateway device, and send a first identity authentication response to the gateway device end; the gateway device end is used to determine that the first identity authentication is successful based on the first identity authentication response, and then use the public key to upload the device data to the alliance chain; the alliance chain is used to determine the trust of the Internet of Things gateway device based on the device data, and perform a second identity authentication on the Internet of Things gateway device based on the trust.

[0034] In this embodiment, the authentication platform end 120 also includes an information receiving module, which is used to: receive device information sent by the gateway device end; store the device information on the alliance chain and generate a unique identifier for the Internet of Things gateway device; the device information includes device identity information and a public key.

[0035] In this embodiment, the alliance chain network end includes a second identity authentication module, which is used to: receive device data sent by the gateway device end; determine the trust of the Internet of Things gateway device based on the device data, and perform a second identity authentication on the Internet of Things gateway device based on the trust; the gateway device end is used to send a first identity authentication request to the authentication platform end, and when the first identity authentication is determined to be successful based on the first identity authentication response, the device data is uploaded to the alliance chain on the alliance chain network end using the public key; the authentication platform end is used to query the alliance chain according to the first identity authentication request, and determine the identity information and public key of the Internet of Things gateway device, and send a first identity authentication response to the gateway device end.

[0036] Based on the content of the IoT gateway identity authentication system based on the alliance chain in multiple embodiments of this specification, it can be seen that the embodiments of this specification ensure the identity authentication and communication security of the gateway device by performing two authentications on the IoT gateway device based on the alliance chain. The embodiments of this specification ensure the security of data transmission through identity authentication between the IoT gateway and the authentication platform and the alliance chain; at the same time, the alliance chain provides a decentralized and trusted environment, further enhancing the security and reliability of the system.

[0037] It should be noted that Figure 1 The scenario diagram of the IoT gateway identity authentication system based on alliance chain is shown for example only. The IoT gateway identity authentication system based on alliance chain and the scenario described in the embodiment of the present invention are intended to more clearly illustrate the technical solution of the embodiment of the present invention, and do not constitute a limitation on the technical solution provided by the embodiment of the present invention. A person of ordinary skill in the art can know that with the evolution of the IoT gateway identity authentication system based on alliance chain and the emergence of new scenarios, the technical solution provided by the embodiment of the present invention is also applicable to similar technical problems.

[0038] The following are detailed descriptions respectively. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.

[0039] The embodiments of this specification will be described from the perspective of a gateway device 110 , which may be integrated into a computer device, which may be a server or other device.

[0040] like Figure 2 The embodiment of this specification provides an IoT gateway identity authentication method based on a consortium chain, which is applied to a gateway device 110. The specific process includes:

[0041] 200. Send a first identity authentication request to the authentication platform end, the authentication platform end is used to query the alliance chain on the alliance chain network end according to the first identity authentication request, and determine the identity information and public key of the Internet of Things gateway device, and send a first identity authentication response to the gateway device end.

[0042] In this embodiment, the first identity authentication request is a request sent by the gateway device end 110 to the authentication platform end for verifying the identity and public key and other device information of the Internet of Things gateway device.

[0043] In this embodiment, a root certificate authority may be set up, which is responsible for issuing and managing digital certificates in the alliance chain network. The root certificate authority is a trusted entity in the alliance chain network, and the digital certificates it issues are highly reliable.

[0044] When the IoT gateway device of this embodiment performs identity authentication through the alliance chain network, it will use the digital certificate issued by the root certificate authority as the identity credential. The digital certificate contains the public key and other relevant information of the IoT gateway device. The authentication platform confirms the validity of the identity information and public key of the IoT gateway device requesting identity authentication by querying the alliance chain of the alliance chain network, thereby safely verifying and identifying the IoT gateway device.

[0045] In some embodiments, before sending the first identity authentication request to the authentication platform, it also includes: sending the device information to the authentication platform, the authentication platform is used to store the device information on the alliance chain and generate a unique identifier for the Internet of Things gateway device.

[0046] In this embodiment, the device information includes device identity information and a public key, etc.

[0047] Before sending the first identity authentication request to the authentication platform end in this embodiment, the IoT gateway device can be registered through the authentication platform end, that is, the IoT gateway device registers with the authentication platform before leaving the factory and provides its identity information and public key and other data. The authentication platform stores the identity information and public key and other data of the IoT gateway device on the alliance chain and generates a unique identifier for the device.

[0048] In some embodiments, the authentication platform end is used to query the alliance chain on the alliance chain network end according to the first identity authentication request. The construction process of the alliance chain network includes: setting up a distributed ledger platform and a dependency library for implementing the distributed ledger function, and establishing a connection between the dependency library and the distributed ledger platform network; defining the organizational participants participating in the Internet of Things gateway, and the organizational participants include identifiers, network verification parameters, and identity authentication parameters; setting one or more nodes for the organizational participants, and configuring network resources for the nodes; setting the chain code, which is used to implement the identity authentication process of the Internet of Things gateway device to ensure that only the Internet of Things gateway device that has successfully passed the first identity authentication can access and participate in the alliance chain network; deploying the chain code to the nodes of the alliance chain, and verifying that all nodes successfully access and execute the chain code; based on the identity authentication mechanism, identity management and access control configuration of the alliance chain, setting the permissions and access control rules of the alliance chain network to verify that only authorized Internet of Things gateway devices and nodes can access and use the chain code.

[0049] In this embodiment, the dependent library may be a blockchain framework, encryption algorithm library, network communication library, etc. required to implement the distributed ledger function. The node is used to connect to the alliance chain network and participate in consensus and data verification; the node includes an endorsement node and a sorting node. The endorsement node is used to execute smart contracts and maintain the ledger, and the sorting node is used for consensus and sorting transactions.

[0050] For example, this embodiment can define an organizational entity (i.e., organizational participant) participating in the IoT gateway in a yaml file: such as a gateway device manufacturer, and assign a unique identifier to the organization, and configure its corresponding network and authentication parameters. This embodiment can also support adding multiple organizational entities, such as device operators, data service providers, etc. Among them, the yaml file is a file in a human-readable data serialization format used for configuration files and data transmission. The yaml file uses indentation and line separators to represent data structures.

[0051] In this embodiment, one or more nodes may be set up for each organizational entity to connect to the blockchain network and participate in consensus and data verification, thereby maintaining the integrity of the blockchain.

[0052] For example, in this embodiment, 4 nodes with sufficient computing and storage capabilities can be set for each organizational entity: 2 endorsement nodes and 2 sorting nodes. The 2 endorsement nodes are used to execute smart contracts and maintain ledgers, and the 2 sorting nodes are used for consensus and sorting transactions. In this embodiment, the endorsement nodes and sorting nodes can also be configured on different virtual machines and the corresponding network resources can be allocated.

[0053] Among them, network resources may include computing resources, storage resources, network bandwidth, etc. Computing resources include processors and memory. Nodes in the alliance chain network require sufficient computing resources to execute smart contracts, verify transactions, and participate in the consensus process. Storage resources: that is, endorsement nodes require sufficient storage space to store copies of blockchain ledgers and data required to execute smart contracts. Sorting nodes need to store data required for transaction sorting and block generation. Network bandwidth: that is, nodes in the alliance chain network require sufficient network bandwidth to handle the transmission of transaction information and communication during the consensus process. This embodiment can also configure appropriate backup resources and security measures to ensure the reliability and security of the nodes.

[0054] In this embodiment, a chain code can also be set, that is, a smart contract is written to implement the identity authentication logic and process of the IoT gateway device to ensure that only authenticated IoT gateway devices can access and participate in the alliance chain network.

[0055] In this embodiment, the chain code can also be deployed, that is, the written chain code is deployed to the nodes of the alliance chain, and it is ensured that all nodes can access and execute the chain code. In this way, each node can verify and execute the identity authentication request from the IoT gateway device.

[0056] In this embodiment, permissions and access control can also be configured, that is, the permissions and access control rules of the IoT gateway are set through the identity authentication mechanism, identity management and access control configuration of the alliance chain to ensure that only authorized devices and organizations can access and use the chain code.

[0057] In this embodiment, by establishing a consortium chain network to achieve a decentralized and trusted environment, the IoT gateway device can perform identity authentication in the consortium chain to ensure that only legitimate and verified devices can participate in the consortium chain network and implement related business logic through chain code.

[0058] In some embodiments, the process of building a consortium chain network also includes setting up a public key infrastructure on the consortium chain network; setting up a public key infrastructure on the consortium chain network includes: respectively defining the roles and functions of the certificate authority and the public key registration authority; setting up the certificate authority according to the role and functions of the certificate authority, and the root certificate authority is the agency that issues and manages digital certificates in the consortium chain network; setting up the public key registration authority according to the role and functions of the public key registration authority, and the public key registration authority is the agency that verifies the identity of the IoT gateway device and submits certificate applications to the certificate authority.

[0059] In this embodiment, the implementation of the public key infrastructure on the alliance chain network includes: defining the role and function of the certificate authority, configuring and setting the certificate authority, defining the settings of the public key registration authority, generating and distributing digital certificates, and revoking and updating certificates. Among them, the role and function of the certificate authority are defined, that is, the certificate authority is the institution responsible for issuing and managing digital certificates in the alliance chain network, which can verify the identity of the entity, generate certificate signatures, distribute digital certificates and revoke certificates, etc. Configure and set the certificate authority, that is, build a certificate authority server to be responsible for issuing certificates and set corresponding security policies. Define the settings of the public key registration authority, that is, the public key registration authority is responsible for verifying the identity of the Internet of Things gateway and submitting the certificate application to the certificate authority. The public key registration authority is mainly responsible for implementing identity authentication, and then submitting the verification results to the certificate authority for certificate issuance. In addition, certificate revocation and update, that is, in the alliance chain network of this embodiment, considering the dynamic nature of the identity of the Internet of Things gateway, it may be necessary to update the certificate regularly, so the certificate used for identity authentication of the Internet of Things gateway is revoked and updated by the certificate authority to ensure the accuracy and validity of the certificate.

[0060] 210. When the first identity authentication is determined to be successful based on the first identity authentication response, the device data is uploaded to the alliance chain using the public key. The alliance chain is used to determine the trust of the IoT gateway device based on the device data, and perform a second identity authentication on the IoT gateway device based on the trust.

[0061] In this embodiment, the IoT gateway device can exchange data securely after passing the first identity authentication based on the authentication platform. During the data exchange process, the public key of the device is used for encryption and decryption to ensure the confidentiality and integrity of data transmission. The nodes on the alliance chain can evaluate the trustworthiness of the IoT gateway device and perform a second identity authentication on the IoT gateway device based on the trustworthiness.

[0062] In some embodiments, the trust of the IoT gateway device is determined based on the device data, and a second identity authentication is performed on the IoT gateway device based on the trust, including: based on the chain code on the alliance chain, determining the data quality, device stability and device compliance corresponding to the IoT gateway device based on the device data; determining the trust of the IoT gateway device based on the data quality, device stability and device compliance; when the trust of the IoT gateway device is lower than a preset trust threshold, determining that the second identity authentication of the IoT gateway device has failed, and marking the IoT gateway device as an untrustworthy device.

[0063] In this embodiment, the device data acquired in the current time period can be compared with the device data corresponding to the historical time period to obtain similarity, and the data quality can be comprehensively determined based on the similarity and whether the data has abnormal values, missing values, etc. This embodiment can also determine the stability of the device based on factors such as whether it is frequently powered on and off, whether registration requests are frequently sent, and the online time. This embodiment can also determine the compliance of the device based on the data compliance preset conditions and the device data.

[0064] This embodiment can establish a trust evaluation mechanism on the alliance chain, including designing and setting up a trust evaluation mechanism, obtaining device data, trust evaluation, and eliminating untrustworthy devices. Among them, designing and setting up a trust evaluation mechanism, that is, determining the trustworthiness of the IoT gateway device according to the data quality, device stability, and device compliance of the IoT gateway device, formulating a set of evaluation rules and standards, and evaluating the operating status and data of the device. Obtaining device data, that is, collecting various types of data from the running IoT gateway device, including the operating status of the device, the quality of transmitted data, etc., and using these data as the basis for evaluating the trustworthiness of the device. Next, trust evaluation, that is, using the smart contract (i.e., chain code) on the alliance chain based on the collected data, to evaluate the trustworthiness of the device. This embodiment can comprehensively evaluate the trustworthiness of the IoT gateway device based on factors such as data quality, device stability, and compliance. Eliminating untrustworthy devices, that is, when the trustworthiness of a certain IoT gateway device is lower than the preset trustworthiness threshold, the IoT gateway device is marked as an untrustworthy device, and the IoT gateway device is eliminated when necessary by updating the smart contract.

[0065] In some embodiments, after marking the IoT gateway device as an untrusted device, the following steps are performed: removing the untrusted device from the alliance chain network by updating the chain code; adding the untrusted device to a blacklist, and managing the blacklist through the alliance chain.

[0066] In this embodiment, the trust evaluation mechanism established on the alliance chain can also include device blacklist management, etc. Among them, device blacklist management is to add the untrusted gateway devices to be removed to the set blacklist and manage them on the alliance chain. Other nodes can judge the trustworthiness of the device by querying the blacklist and make corresponding decisions.

[0067] The embodiments of this specification are based on the public key infrastructure architecture of the alliance chain: by adopting the alliance chain as the basic technology, the identity authentication and data transmission security of the IoT gateway are realized. The alliance chain provides a decentralized and trusted environment, does not rely on centralized certification authorities, reduces the risk of single point failures and attacks, and enhances the security and reliability of the system. The embodiments of this specification are based on the public key infrastructure architecture of the alliance chain, which greatly expands the trust scope of the authentication domain, allowing tens of thousands of IoT gateway devices to establish trust relationships more conveniently on the Internet. The embodiments of this specification generate a unique identity for the IoT gateway device, and each IoT gateway is granted a unique identity in the alliance chain network to ensure the uniqueness and reliability of the identity.

[0068] like Figure 3 The embodiment of this specification provides another IoT gateway identity authentication method based on the alliance chain, which is applied to the authentication platform end 120. The specific process includes:

[0069] 300. Receive a first identity authentication request sent by a gateway device.

[0070] In this embodiment, before receiving the first identity authentication request sent by the Internet of Things gateway device, it also includes: receiving device information sent by the gateway device; storing the device information on the alliance chain, and generating a unique identifier for the Internet of Things gateway device; the device information includes device identity information and a public key.

[0071] 310. Query the alliance chain on the alliance chain network end according to the first identity authentication request, determine the identity information and public key of the Internet of Things gateway device, and send a first identity authentication response to the gateway device end.

[0072] In this embodiment, the gateway device is used to determine that the first identity authentication is successful based on the first identity authentication response, and then use the public key to upload the device data to the alliance chain; the alliance chain is used to determine the trust of the Internet of Things gateway device based on the device data, and perform a second identity authentication on the Internet of Things gateway device based on the trust.

[0073] like Figure 4 , the embodiment of this specification provides another IoT gateway identity authentication method based on alliance chain, which is applied to the alliance chain network end. The specific process includes:

[0074] 400. Receive device data sent by the gateway device end;

[0075] 410. Determine the trustworthiness of the IoT gateway device according to the device data, and perform a second identity authentication on the IoT gateway device based on the trustworthiness.

[0076] In this embodiment, the gateway device end is used to send a first identity authentication request to the authentication platform end. When the first identity authentication is determined to be successful based on the first identity authentication response, the public key is used to upload the device data to the alliance chain on the alliance chain network end; the authentication platform end is used to query the alliance chain according to the first identity authentication request, and determine the identity information and public key of the Internet of Things gateway device, and send a first identity authentication response to the gateway device end.

[0077] The embodiments of this specification provide an IoT gateway identity authentication method based on a consortium chain. The consortium chain on the consortium chain network end can be queried through the authentication platform end to perform a first identity authentication on the IoT gateway device. When the first identity authentication is determined to be successful based on the first identity authentication response, the device data is uploaded to the consortium chain using the public key. The consortium chain is used to determine the trust of the IoT gateway device based on the device data, and perform a second identity authentication on the IoT gateway device based on the trust. The embodiments of this specification ensure the identity authentication and communication security of the gateway device by performing two authentications on the IoT gateway device based on the consortium chain. The embodiments of this specification perform identity authentication between the IoT gateway and the authentication platform and the consortium chain and ensure the security of data transmission; at the same time, the consortium chain provides a decentralized and trusted environment, further enhancing the security and reliability of the system.

[0078] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0079] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiment of the IoT gateway identity authentication system based on the alliance chain, since it is basically similar to the embodiment of the IoT gateway identity authentication method based on the alliance chain, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0080] See also Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification is shown.

[0081] like Figure 5 As shown, the electronic device 500 may include: at least one processor 501 , at least one network interface 504 , a user interface 503 , a memory 505 , and at least one communication bus 502 .

[0082] The communication bus 502 may be used to realize the connection and communication among the above-mentioned components.

[0083] The user interface 503 may include buttons, and the optional user interface may also include a standard wired interface or a wireless interface.

[0084] The network interface 504 may include, but is not limited to, a Bluetooth module, an NFC module, a Wi-Fi module, etc.

[0085] Among them, the processor 501 may include one or more processing cores. The processor 501 uses various interfaces and lines to connect various parts within the entire electronic device 500, and executes various functions and processes data of the electronic device 500 by running or executing instructions, programs, code sets or instruction sets stored in the memory 505, and calling data stored in the memory 505. Optionally, the processor 501 can be implemented in at least one hardware form of DSP, FPGA, and PLA. The processor 501 can integrate one or a combination of CPU, GPU, modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 501, and it can be implemented separately through a chip.

[0086] Among them, the memory 505 may include RAM or ROM. Optionally, the memory 405 includes a non-transitory computer-readable medium. The memory 505 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 505 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 505 may also be at least one storage device located away from the aforementioned processor 501. The memory 505 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an IoT gateway identity authentication application based on a consortium chain. The processor 501 may be used to call the IoT gateway identity authentication application based on a consortium chain stored in the memory 505, and execute the steps of IoT gateway identity authentication based on a consortium chain mentioned in the aforementioned embodiment.

[0087] The embodiment of the present specification also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer or a processor, the computer or the processor executes the above Figures 2 to 4 One or more steps in the illustrated embodiment. If the components of the electronic device described above are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.

[0088] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of this specification is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through a computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by the computer or a data storage device such as a server or data center that contains one or more available media integrations. Available media may be magnetic media (eg, floppy disks, hard disks, tapes), optical media (eg, digital versatile discs (DVD)), or semiconductor media (eg, solid state drives (SSD)).

[0089] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes. In the absence of conflict, the technical features in this embodiment and the implementation scheme can be combined arbitrarily.

[0090] The above embodiments are merely preferred embodiments of this specification and are not intended to limit the scope of this specification. Without departing from the design spirit of this specification, various modifications and improvements made to the technical solutions of this specification by ordinary technicians in this field should fall within the scope of protection determined by the claims of this specification.

Claims

1. An IoT gateway identity authentication method based on alliance chain, applied to the gateway device side, include: Sending a first identity authentication request to the authentication platform end, the authentication platform end is used to query the alliance chain on the alliance chain network end according to the first identity authentication request, and determine the identity information and public key of the Internet of Things gateway device, and send a first identity authentication response to the gateway device end; When it is determined that the first identity authentication is successful based on the first identity authentication response, the device data is uploaded to the alliance chain using the public key. The alliance chain is used to determine the trust of the Internet of Things gateway device based on the device data, and perform a second identity authentication on the Internet of Things gateway device based on the trust.

2. According to the method of claim 1, before sending the first identity authentication request to the authentication platform, include: The device information is sent to the authentication platform, which is used to store the device information on the alliance chain and generate a unique identifier for the IoT gateway device; the device information includes device identity information and a public key.

3. According to the method of claim 2, the authentication platform is used to query the alliance chain on the alliance chain network end for the construction process of the alliance chain network according to the first identity authentication request. include: Setting up a distributed ledger platform and a dependent library for implementing distributed ledger functions, and establishing a connection between the dependent library and the distributed ledger platform network; Defining an organizational participant participating in the IoT gateway, wherein the organizational participant includes an identifier, a network verification parameter, and an identity verification parameter; One or more nodes are set up for the organization participants, and network resources are configured for the nodes. The nodes are used to connect to the alliance chain network and participate in consensus and data verification; the nodes include endorsement nodes and sorting nodes. The endorsement nodes are used to execute smart contracts and maintain ledgers, and the sorting nodes are used for consensus and sorting transactions; Setting a chain code, wherein the chain code is used to implement the identity authentication process of the IoT gateway device, so as to ensure that only the IoT gateway device that has successfully passed the first identity authentication can access and participate in the alliance chain network; Deploy the chain code to the nodes of the consortium chain and verify that all nodes successfully access and execute the chain code; Based on the identity authentication mechanism, identity management and access control configuration of the alliance chain, the permissions and access control rules of the alliance chain network are set to verify that only authorized IoT gateway devices and nodes can access and use the chain code.

4. According to the method of claim 1, the process of building the alliance chain network further includes setting up a public key infrastructure on the alliance chain network; The public key infrastructure is set up on the alliance chain network. include: Define the roles and functions of certificate authorities and public key registration authorities respectively; A certificate authority is set up according to the role and function of the certificate authority, where the certificate authority is an institution that issues and manages digital certificates in the alliance chain network; A public key registration authority is set according to the role and function of the public key registration authority, and the public key registration authority is an institution that verifies the identity of the Internet of Things gateway device and submits a certificate application to a certificate issuing authority.

5. The method according to claim 1, wherein the trust of the IoT gateway device is determined according to the device data, and a second identity authentication is performed on the IoT gateway device based on the trust. include: Based on the chain code on the alliance chain, determine the data quality, device stability and device compliance corresponding to the IoT gateway device according to the device data; Determining the trustworthiness of the IoT gateway device according to the data quality, the device stability, and the device compliance; When the trust level of the Internet of Things gateway device is lower than a preset trust level threshold, it is determined that the second identity authentication of the Internet of Things gateway device has failed, and the Internet of Things gateway device is marked as an untrustworthy device.

6. The method according to claim 5, after marking the IoT gateway device as an untrusted device, include: Eliminate the untrusted device from the consortium chain network by updating the chain code; The untrusted device is added to a blacklist, and the blacklist is managed through the alliance chain.

7. An IoT gateway identity authentication method based on alliance chain, applied to the authentication platform side, include: Receiving a first identity authentication request sent by the gateway device; Query the alliance chain on the alliance chain network end according to the first identity authentication request, determine the identity information and public key of the Internet of Things gateway device, and send a first identity authentication response to the gateway device end; The gateway device is used to upload the device data to the alliance chain using the public key after determining that the first identity authentication is successful based on the first identity authentication response; The alliance chain is used to determine the trustworthiness of the Internet of Things gateway device according to the device data, and perform a second identity authentication on the Internet of Things gateway device based on the trustworthiness.

8. The method according to claim 7, before receiving the first identity authentication request sent by the gateway device, include: Receiving device information sent by the gateway device end; The device information is stored in the alliance chain, and a unique identifier of the IoT gateway device is generated; The device information includes device identity information and a public key.

9. An IoT gateway identity authentication method based on alliance chain, applied to the alliance chain network end, include: Receive device data sent by the gateway device; Determine the trustworthiness of the IoT gateway device according to the device data, and perform a second identity authentication on the IoT gateway device based on the trustworthiness; The gateway device is used to send a first identity authentication request to the authentication platform, and when the first identity authentication is determined to be successful based on the first identity authentication response, upload the device data to the alliance chain on the alliance chain network using the public key; The authentication platform end is used to query the alliance chain according to the first identity authentication request, determine the identity information and public key of the Internet of Things gateway device, and send a first identity authentication response to the gateway device end.

10. An IoT gateway identity authentication system based on alliance chain, comprising a gateway device end, an authentication platform end and an alliance chain network end, wherein the gateway device end, include: A first authentication module, used to send a first identity authentication request to the authentication platform end, and the authentication platform end is used to query the alliance chain on the alliance chain network end according to the first identity authentication request, and determine the identity information and public key of the Internet of Things gateway device, and send a first identity authentication response to the gateway device end; The second authentication module is used to upload the device data to the alliance chain using the public key after determining that the first identity authentication is successful based on the first identity authentication response. The alliance chain is used to determine the trust level of the Internet of Things gateway device based on the device data, and perform a second identity authentication on the Internet of Things gateway device based on the trust level.

Citation Information

Patent Citations

  • Identity authentication methods and IoT gateway devices and authentication gateway devices

    CN106487777B

  • System and method for constructing trusted node network

    CN109104415A

  • Blockchain-based electronic voting method

    CN109934988A

  • Internet of Things identity authentication method based on alliance chain

    CN115567198A

  • Block chain-based device identity authentication method, system and device, and medium

    CN116684179A