CN111786785B - Block chain-based power distribution Internet of things node switching method and device - Google Patents

Block chain-based power distribution Internet of things node switching method and device Download PDF

Info

Publication number
CN111786785B
CN111786785B CN202010720746.5A CN202010720746A CN111786785B CN 111786785 B CN111786785 B CN 111786785B CN 202010720746 A CN202010720746 A CN 202010720746A CN 111786785 B CN111786785 B CN 111786785B
Authority
CN
China
Prior art keywords
node
cluster
cluster head
things
identity information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010720746.5A
Other languages
Chinese (zh)
Other versions
CN111786785A (en
Inventor
孙跃
龚钢军
徐小天
杨晟
陈威
司冠林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
North China Electric Power Research Institute Co Ltd
North China Electric Power University
Electric Power Research Institute of State Grid Jibei Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
North China Electric Power Research Institute Co Ltd
North China Electric Power University
Electric Power Research Institute of State Grid Jibei Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, North China Electric Power Research Institute Co Ltd, North China Electric Power University, Electric Power Research Institute of State Grid Jibei Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202010720746.5A priority Critical patent/CN111786785B/en
Publication of CN111786785A publication Critical patent/CN111786785A/en
Application granted granted Critical
Publication of CN111786785B publication Critical patent/CN111786785B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a block chain-based power distribution Internet of things node switching method and a block chain-based power distribution Internet of things node switching device, wherein the block chain-based power distribution Internet of things node switching method comprises the following steps: a first node in the power distribution Internet of things sends a message to be switched to a cluster head of a cluster where the first node is located; the cluster head of the cluster of the first node encrypts and sends the identity information of the first node to the cluster head of the cluster of the second node according to the message to be switched; the first node encrypts and sends the identity information to a cluster head of a cluster where the second node is located; and the cluster head of the cluster where the second node is located is switched to be the cluster head of the cluster of the second node according to the identity information sent by the cluster head of the cluster of the first node and the identity information sent by the first node. The application can enhance the safety of the authentication when the nodes in the distribution Internet of things switch cluster heads, and ensure the safe and reliable access of the nodes in the distribution Internet of things.

Description

Block chain-based power distribution Internet of things node switching method and device
Technical Field
The application relates to the field of power industry, in particular to a block chain-based power distribution Internet of things node switching method and device, and belongs to the technical field of power distribution network safety.
Background
In the prior art, the safety certification protection range of the distribution network mainly comprises equipment from a distribution main station to TTU, DTU, FTU and the like. Under the background of building intelligent electric power Internet of things, safety protection measures aiming at the terminal level of the power distribution Internet of things are relatively weak and even missing, so that the risks of malicious invasion of various intelligent terminals are greatly increased; the power distribution internet of things is connected with various types of monitoring terminals on a large scale at a data acquisition side. The internet of things terminals of different safety partitions reside in the same geographic area due to the fact that the working frequencies are the same, the possibility of intercommunication and interconnection exists, and the protection requirements of the safety partitions of the power distribution internet of things cannot be well met.
With the rapid development of communication technology and network technology, the safety problem of the power system is getting more and more attention. In the aspect of distribution network safety protection deployment, according to the related requirements of national information safety level protection, the principles of safety partition, network special, transverse isolation and longitudinal authentication are adhered to, and each service system in the distribution network is respectively arranged in a production control area and a management information area. The production control large area is divided into a control area (safety I area) and a non-control area (safety II area), logic isolation is adopted between the safety I area and the safety II area, and a special unidirectional electric power safety isolation device which is detected and authenticated by a national designated department is arranged between the production control large area and the management information large area so as to realize physical isolation.
Compared with the traditional power distribution network, the traditional power distribution network has more informatization and intellectualization, and is important to ensure the safe access of the terminal because the large-scale access monitoring terminal is needed to meet the business requirements of comprehensive perception, open interaction and the like of the Internet of things. Meanwhile, the network environment of the power distribution Internet of things is complex, communication among terminal nodes is easy to be interfered, mobile operation Internet of things terminals exist, the optimal communication path needs to be switched to, traffic such as communication switching among nodes is caused to occur at time, the existing security authentication measures cannot effectively meet the requirement of security partition, and therefore the problem of security switching of the terminal nodes needs to be solved.
Disclosure of Invention
According to the block chain-based power distribution Internet of things node switching method and device, the safety of identity verification during the first time of node switching cluster in the power distribution Internet of things can be enhanced, and the safe and reliable access of the power distribution Internet of things node is ensured.
In order to achieve the above object, a block chain-based power distribution internet of things node switching method is provided, which includes:
a first node in the power distribution Internet of things sends a message to be switched to a cluster head of a cluster where the first node is located;
the cluster head of the cluster of the first node encrypts and sends the identity information of the first node to the cluster head of the cluster of the second node according to the message to be switched;
the first node encrypts and sends the identity information to a cluster head of a cluster where the second node is located;
and the cluster head of the cluster where the second node is located is switched to be the cluster head of the cluster of the second node according to the identity information sent by the cluster head of the cluster of the first node and the identity information sent by the first node.
In one embodiment, the identity information includes: the method comprises the steps of distributing equipment information of an Internet of things terminal, address information of a block chain node where the Internet of things terminal is located, and public key information used by a first node.
In an embodiment, the switching, by the cluster head of the cluster where the second node is located, the cluster head of the first node to the cluster head of the cluster where the second node is located according to the identity information sent by the cluster head of the cluster where the first node is located and the identity information sent by the first node, includes:
judging whether the identity information sent by the cluster head of the cluster where the second node is located is the same as the identity information sent by the first node or not by the cluster head of the cluster where the second node is located;
and if the cluster head of the first node is the same, switching the cluster head of the first node to the cluster head of the cluster of the second node.
In one embodiment, the encryption method is a hash SM3 algorithm.
In an embodiment, the block chain-based power distribution internet of things node switching method further includes:
broadcasting a message added by the first node in the cluster by the cluster head of the cluster where the second node is located;
and broadcasting a message that the first node is separated from the cluster head of the cluster where the first node is located in the cluster.
In a second aspect, the present application provides a blockchain-based node switching device for the internet of things of power distribution, the device comprising:
the system comprises a message sending unit to be switched, a message sending unit and a message sending unit, wherein the message sending unit to be switched is used for sending a message to be switched to a cluster head of a cluster where a first node is located in the power distribution Internet of things;
the first information sending unit is used for encrypting and sending the identity information of the first node to the cluster head of the cluster where the second node is located according to the message to be switched by the cluster head of the cluster where the first node is located;
the second information sending unit is used for the first node to send the identity information to the cluster head of the cluster where the second node is located in an encrypted mode;
the cluster head switching unit is used for switching the cluster head of the first node into the cluster head of the second node according to the identity information sent by the cluster head of the first node and the identity information sent by the first node.
In one embodiment, the identity information includes: the equipment information of the terminal of the power distribution Internet of things, the address information of the block chain node where the power distribution Internet of things is located and the public key information used by the first node;
the cluster head switching unit includes:
the judging module is used for judging whether the identity information sent by the cluster head of the cluster where the second node is located is the same as the identity information sent by the first node or not;
and the cluster head switching module is used for switching the cluster head of the first node into the cluster head of the cluster of the second node.
In an embodiment, the block chain-based power distribution internet of things node switching device further includes:
a joining message broadcasting unit, configured to broadcast, in a cluster, a message joining by the first node, where the cluster head of the cluster where the second node is located;
a detachment message broadcasting unit, configured to broadcast, in a cluster of the cluster head of the cluster where the first node is located, a message that the first node is detached;
the encryption method is a hash SM3 algorithm.
In a third aspect, the present application provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of a blockchain-based power distribution internet of things node switching method when executing the program.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of a blockchain-based power distribution internet of things node switching method.
As can be seen from the above description, according to the block chain-based method and device for switching nodes of the power distribution internet of things provided by the embodiments of the present application, first, a first node in the power distribution internet of things sends a message to be switched to a cluster head of a cluster where the first node is located; the cluster head of the first node cluster encrypts and sends the identity information of the first node to the cluster head of the cluster where the second node is located according to the message to be switched; then, the first node encrypts and sends identity information to the cluster head of the cluster where the second node is located; and finally, switching the cluster head of the first node into the cluster head of the second node cluster according to the identity information sent by the cluster head of the first node cluster and the identity information sent by the first node. The block chain-based power distribution Internet of things node switching method and device can enhance the safety of identity verification when the nodes in the power distribution Internet of things switch cluster heads, and ensure safe and reliable access of the power distribution Internet of things nodes.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a block chain-based node switching method of a power distribution internet of things according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a step 400 of a block chain-based switching method for nodes of a power distribution internet of things in an embodiment of the application;
fig. 3 is a second flow chart of a block chain-based node switching method of the power distribution internet of things according to an embodiment of the present application;
FIG. 4 is a schematic flow chart of a block chain based switching method for nodes of the power distribution Internet of things in a specific application example of the application;
fig. 5 is a schematic diagram of a node access method in a specific application example of the present application;
fig. 6 is a schematic diagram of a cluster head switching scenario in a specific application example of the present application;
fig. 7 is a schematic diagram of a cluster head switching scenario two in a specific application example of the present application;
fig. 8 is a schematic diagram of cluster head handover in a specific application example of the present application;
fig. 9 is a schematic structural diagram of a block chain-based node switching device of the internet of things for power distribution in an embodiment of the present application;
fig. 10 is a schematic structural diagram of a cluster head switching unit in an embodiment of the present application;
fig. 11 is a schematic structural diagram II of a block chain-based node switching device of the power distribution internet of things in an embodiment of the application;
fig. 12 is a schematic structural diagram of an electronic device in an embodiment of the application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The embodiment of the application also provides a specific implementation mode of a block chain-based power distribution internet of things node switching method, and referring to fig. 1, the method specifically comprises the following steps:
step 100: and a first node in the power distribution Internet of things sends a message to be switched to a cluster head of a cluster where the first node is located.
It will be appreciated that for step 100, there are two typical scenarios, one is when a cluster head and a node (first node) in the cluster have poor communication quality, and the node accesses another neighboring cluster head; another is the case when there is a node registered with the master station but not accessing any cluster applying for accessing a cluster.
Step 200: and the cluster head of the cluster of the first node encrypts and sends the identity information of the first node to the cluster head of the cluster of the second node according to the message to be switched.
The identity information in step 200 includes: the method comprises the steps of distributing equipment information of an Internet of things terminal, address information of a block chain node where the Internet of things terminal is located, and public key information used by the first node.
Step 300: and the first node encrypts and sends the identity information to the cluster head of the cluster where the second node is located.
Step 400: and the cluster head of the cluster where the second node is located is switched to be the cluster head of the cluster of the second node according to the identity information sent by the cluster head of the cluster of the first node and the identity information sent by the first node.
And comparing the cluster head of the cluster where the second node is located with the identity information sent by the cluster head of the first node and the identity information sent by the first node, and if the two are the same, agreeing to switch the cluster head, otherwise, disagreeing. It can be appreciated that the step 400 applies trusted computing to node security management and control of the power distribution internet of things, and enhances security of authentication when the nodes switch cluster heads.
As can be seen from the above description, in the block chain-based switching method for the nodes of the power distribution internet of things provided by the embodiment of the present application, first, a first node in the power distribution internet of things sends a message to be switched to a cluster head of a cluster where the first node is located; the cluster head of the first node cluster encrypts and sends the identity information of the first node to the cluster head of the cluster where the second node is located according to the message to be switched; then, the first node encrypts and sends identity information to the cluster head of the cluster where the second node is located; and finally, switching the cluster head of the first node into the cluster head of the second node cluster according to the identity information sent by the cluster head of the first node cluster and the identity information sent by the first node. The block chain-based power distribution Internet of things node switching method and device can enhance the safety of identity verification when the nodes in the power distribution Internet of things switch cluster heads, and ensure safe and reliable access of the power distribution Internet of things nodes.
In one embodiment, the identity information includes: the method comprises the steps of distributing equipment information of an Internet of things terminal, address information of a block chain node where the Internet of things terminal is located, and public key information used by a first node.
In one embodiment, referring to fig. 2, step 400 further comprises:
step 401: judging whether the identity information sent by the cluster head of the cluster where the second node is located is the same as the identity information sent by the first node or not by the cluster head of the cluster where the second node is located;
step 402: and if the cluster head of the first node is the same, switching the cluster head of the first node to the cluster head of the cluster of the second node.
It can be understood that the Cluster head is also called as a Cluster head node, that is, the design idea of the hierarchical routing protocol is adopted to perform hierarchical division on nodes in the network, a plurality of adjacent nodes form a Cluster, each Cluster is internally provided with a Cluster head (Cluster head), and the clusters can communicate with each other through the Cluster head. The information and behavior of the nodes in the cluster are recorded through the block chain, the cluster head node has authority to retrieve and send the information recorded in the block (address information of the nodes in the cluster, public key information used by the nodes, equipment information of a power distribution Internet of things terminal and behavior information of the nodes in the cluster for switching the cluster head and separating from the cluster head), and other nodes in the cluster only have authority to review the information.
In one embodiment, the encryption method is a hash SM3 algorithm.
It can be understood that the SM3 algorithm is an algorithm in trusted computing, and SM3 is a cryptographic hash function standard adopted by the government of the people's republic of China, and is mainly used for digital signature and verification, message authentication code generation and verification, random number generation and the like, and the algorithm is disclosed.
In one embodiment, referring to fig. 3, the blockchain-based power distribution internet of things node switching method further includes:
step 500: broadcasting a message added by the first node in the cluster by the cluster head of the cluster where the second node is located;
step 600: and broadcasting a message that the first node is separated from the cluster head of the cluster where the first node is located in the cluster.
It can be understood that, in the whole process, the first node remains connected with the cluster head of the cluster where the first node is located until the cluster head of the cluster where the second node is located agrees that the first node switches the cluster head and broadcasts messages in two clusters (step 500 and step 600), and the first node is disconnected with the cluster head of the cluster where the first node is located.
In 2019, china proposes to promote the combination of the blockchain bottom technical service and the novel smart city construction, explores popularization and application in the fields of energy power, information infrastructure and the like, and improves the level of intellectualization and precision of city management. The current energy power field is explored and applied based on technical advantages of block chain decentralization, openness, tamper resistance and the like. Meanwhile, the trusted computing has a certain result in the safety protection application of the power system, such as developing a server trusted computing password platform for transparent support business application in the smart grid production scheduling control system environment, so that the safety and reliability of the scheduling system are improved. Therefore, the development of the blockchain and the trusted technology provides a new safety protection thought for the construction of the power distribution Internet of things, and can provide high-reliability guarantee for the access and the switching of the nodes.
Based on the above consideration, and to further illustrate the present solution, the present application provides a specific application example of a blockchain-based power distribution internet of things node switching method, where the specific application example specifically includes the following, see fig. 4.
In the power distribution Internet of things, in order to ensure the efficiency of data transmission among nodes and the safety transmission reliability of data, a clustering method is adopted to control each node. The secure access method of the power distribution internet of things is divided into two cases, as shown in fig. 5: the first is the case that when a cluster head and a node in the cluster have poor communication quality, the node is accessed to another adjacent cluster head; the second is when there is a node registered with the master station but not accessing any cluster, applying for accessing a cluster. A detailed description of both cases follows.
1) And aiming at the switching cluster head rule.
The situations of the switching cluster head of the terminal node of the power distribution internet of things are as follows, as shown in fig. 6 and fig. 7:
(1) As shown in fig. 6, when the position of the node a is just in the overlapping area of the two clusters a and B, the position of the node B is changed due to the communication quality between the node a and the cluster head (when P e >P e0 When in use, cluster head switching is needed. Wherein P is e P is the error rate of the current node e0 Is the bit error rate threshold for the transmitted data. The threshold value and the service level of the transmission dataIn relation, when the service level of the transmission data is higher, P e0 Smaller) the problem of switching between clusters a and B by node a is often not avoided, and an important basis for determining whether a switch is required is that the cluster head provides the quality of communication for the node. The communication range covered by the two clusters is not changed before and after the node is switched.
(2) As shown in fig. 7, when the position of the node a is not the overlapping area of the clusters a and B, it is assumed that a belongs to the cluster a at this time. For some reason (e.g. node a is a mobile power distribution internet of things device, needs to perform a non-stationary environmental monitoring task), node a needs to move to the communication range of cluster B, in which case node a needs to switch from cluster a to cluster B to ensure the communication quality. Before and after node switching, the communication area of the cluster A is unchanged, and the communication area of the cluster B is correspondingly changed.
The two conditions are different, but the switching mechanism is consistent, and the specific steps are as follows:
information and behaviors of the nodes in the cluster (address information of the nodes in the cluster, public key information used by the nodes, equipment information of the power distribution Internet of things terminal and behaviors of switching the cluster head and separating the cluster head) are recorded through a block chain, and the cluster head nodes have authority to retrieve and send the information recorded in the block (address information of the nodes in the cluster, public key information used by the nodes, equipment information of the power distribution Internet of things terminal and behavior information of switching the cluster head and separating the cluster head) and other nodes in the cluster only have authority to consult the information. When a node a in a cluster desires to switch to a neighboring cluster head (switch from cluster head a to cluster head B) for reasons, the following operations should be performed, as shown in fig. 8, it will be understood that Hash (Hash function) in fig. 8: an arbitrary length input (also called pre-mapped pre-image) is transformed by a hashing algorithm into a fixed length output, which is the hash value. This conversion is a compressed mapping, i.e. the hash value is typically much smaller in space than the input, different inputs may be hashed to the same output, so it is not possible to determine a unique input value from the hash value. Simply stated, a function of compressing messages of arbitrary length to a message digest of a fixed length.
S1: the node a sends the message to be switched to the cluster head A, and the node a encrypts and sends the identity information to the cluster head B.
Specifically, the node a sends a message informing the cluster head a that it needs to switch the cluster head to the cluster head B, and sends the identity information of the node to the cluster head B. In addition, encryption operations use a hash SM3 algorithm in trusted computing. Trusted computing/trusted computing (Trusted Computing, TC) is a technology that is driven and developed by a trusted computing group (trusted computing cluster, previously referred to as TCPA). Trusted computing is widely used in computing and communication systems based on a trusted computing platform supported by a hardware security module to improve the overall security of the system. The endorsement key is a 2048 bit RSA public and private key pair that is randomly generated at the time of shipment of the chip and cannot be changed. This private key is always in the chip, while the public key is used to authenticate and encrypt sensitive data sent to the chip.
S2, the cluster head A sends the identity information of the node a to the cluster head B after encryption operation.
The identity information in step S2 includes device information of the terminal of the power distribution internet of things, address information of the blockchain node, and public key information used by the node.
And S3, the cluster head B compares the identity information received from the node a with the information received from the cluster head A.
Specifically, the cluster head B performs encryption operation on the identity information received from the node a, compares the identity information with the information received from the cluster head a (which is the same as the type of the identity information received from the node a, is the equipment information of the terminal of the power distribution internet of things, the address information of the blockchain node and the public key information used by the node), and aims to verify the identity of the node through comparison information, so as to ensure the internal security of the power distribution internet of things, and if the identity information is the same, the cluster head is agreed to be switched, otherwise, the cluster head is not agreed to.
S4: when cluster head B agrees to switch cluster head, cluster head B broadcasts message to be added by node a in cluster.
S5: node a broadcasts a message that it will leave the cluster in which cluster head a is located.
As can be seen from the above description, according to the block chain-based method and device for switching nodes of the power distribution internet of things provided by the embodiments of the present application, first, a first node in the power distribution internet of things sends a message to be switched to a cluster head of a cluster where the first node is located; the cluster head of the first node cluster encrypts and sends the identity information of the first node to the cluster head of the cluster where the second node is located according to the message to be switched; then, the first node encrypts and sends identity information to the cluster head of the cluster where the second node is located; and finally, switching the cluster head of the first node into the cluster head of the second node cluster according to the identity information sent by the cluster head of the first node cluster and the identity information sent by the first node. The block chain-based power distribution Internet of things node switching method and device can enhance the safety of identity verification when the nodes in the power distribution Internet of things switch cluster heads, and ensure safe and reliable access of the power distribution Internet of things nodes. Specifically, the application has the following beneficial effects:
(1) The trusted computing is applied to the node safety management and control of the power distribution Internet of things, and the cluster head switching method of the power distribution Internet of things node is provided, so that the safety of identity verification when the node switches the cluster head is enhanced;
(2) The block chain is utilized to store the identity information of the distribution Internet of things node, and a domestic key algorithm of trusted computing provides a cluster head switching mechanism, so that safe and trusted access of the distribution Internet of things node is ensured.
Based on the same inventive concept, the embodiment of the application also provides a block chain-based power distribution internet of things node switching device, which can be used for realizing the method described in the embodiment, such as the following embodiment. Because the principle of solving the problem of the block chain-based power distribution internet of things node switching device is similar to that of the block chain-based power distribution internet of things node switching method, implementation of the block chain-based power distribution internet of things node switching device can be realized by referring to the block chain-based power distribution internet of things node switching method, and repeated parts are omitted. As used below, the term "unit" or "module" may be a combination of software and/or hardware that implements the intended function. While the system described in the following embodiments is preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The embodiment of the application provides a concrete implementation mode of a block chain-based power distribution internet of things node switching device capable of realizing a block chain-based power distribution internet of things node switching method, and referring to fig. 9, the block chain-based power distribution internet of things node switching device specifically comprises the following contents:
the to-be-switched message sending unit 10 is configured to send a to-be-switched message to a cluster head of a cluster where a first node in the power distribution internet of things is located;
a first information sending unit 20, configured to encrypt and send, according to the message to be switched, the identity information of the first node to a cluster head of a cluster where a second node is located by using the cluster head of the cluster of the first node;
a second information sending unit 30, configured to send, by using the first node, the identity information to a cluster head of a cluster where the second node is located;
and a cluster head switching unit 40, configured to switch the cluster head of the first node to the cluster head of the second node according to the identity information sent by the cluster head of the first node and the identity information sent by the first node.
In one embodiment, the identity information includes: the equipment information of the terminal of the power distribution Internet of things, the address information of the block chain node where the power distribution Internet of things is located and the public key information used by the first node;
referring to fig. 10, the cluster head switching unit 40 includes:
a judging module 401, configured to judge, by using a cluster head of a cluster where the second node is located, whether identity information sent by the cluster head of the cluster of the first node is the same as identity information sent by the first node;
and a cluster head switching module 402, configured to switch the cluster head of the first node to the cluster head of the cluster of the second node.
In one embodiment, referring to fig. 11, the blockchain-based power distribution internet of things node switching device further includes:
a joining message broadcasting unit 50, configured to broadcast, in a cluster of the cluster head of the cluster where the second node is located, a message joining by the first node;
a detachment message broadcasting unit 60, configured to broadcast, in a cluster of the cluster head of the cluster where the first node is located, a message that the first node is detached;
the encryption method is a hash SM3 algorithm.
As can be seen from the above description, in the block chain-based switching method for the nodes of the power distribution internet of things provided by the embodiment of the present application, first, a first node in the power distribution internet of things sends a message to be switched to a cluster head of a cluster where the first node is located; the cluster head of the first node cluster encrypts and sends the identity information of the first node to the cluster head of the cluster where the second node is located according to the message to be switched; then, the first node encrypts and sends identity information to the cluster head of the cluster where the second node is located; and finally, switching the cluster head of the first node into the cluster head of the second node cluster according to the identity information sent by the cluster head of the first node cluster and the identity information sent by the first node. The block chain-based power distribution Internet of things node switching method and device can enhance the safety of identity verification when the nodes in the power distribution Internet of things switch cluster heads, and ensure safe and reliable access of the power distribution Internet of things nodes.
(1) The trusted computing is applied to the node safety management and control of the power distribution Internet of things, and the cluster head switching method of the power distribution Internet of things nodes is respectively provided, so that the safety of identity verification when the nodes switch the cluster heads is enhanced;
(2) The block chain is utilized to store the identity information of the distribution Internet of things node, and a domestic key algorithm of trusted computing provides a cluster head switching mechanism, so that the safe and trusted access of the distribution Internet of things node is ensured;
the embodiment of the present application further provides a specific implementation manner of an electronic device capable of implementing all the steps in the block chain-based power distribution internet of things node switching method in the foregoing embodiment, and referring to fig. 12, the electronic device specifically includes the following contents:
a processor 1201, a memory 1202, a communication interface (Communications Interface) 1203, and a bus 1204;
wherein the processor 1201, the memory 1202 and the communication interface 1203 perform communication with each other through the bus 1204; the communication interface 1203 is configured to implement information transmission between related devices such as a server device, a power measurement device, and a user device.
The processor 1201 is configured to invoke a computer program in the memory 1202, where the processor executes the computer program to implement all the steps in the blockchain-based power distribution internet of things node switching method in the above embodiment, for example, the processor executes the computer program to implement the following steps:
step 100: a first node in the power distribution Internet of things sends a message to be switched to a cluster head of a cluster where the first node is located;
step 200: the cluster head of the cluster of the first node encrypts and sends the identity information of the first node to the cluster head of the cluster of the second node according to the message to be switched;
step 300: the first node encrypts and sends the identity information to a cluster head of a cluster where the second node is located;
step 400: and the cluster head of the cluster where the second node is located is switched to be the cluster head of the cluster of the second node according to the identity information sent by the cluster head of the cluster of the first node and the identity information sent by the first node.
As can be seen from the above description, in the electronic device according to the embodiment of the present application, the grid-connected point voltage and reactive data of the wind farm are first obtained, and then the grid-connected point voltage and the reactive data are combined; and finally, calculating the reactive voltage sensitivity of the wind power plant according to the combined grid-connected point voltage and the reactive data. The reactive voltage sensitivity coefficient determined according to the application is more scientific and reasonable, and is beneficial to improving the voltage regulation qualification rate of the wind power plant. By adopting the electronic equipment in the embodiment of the application, the determined reactive voltage sensitivity is more scientific and reasonable, and the voltage regulation qualification rate of the wind power plant is improved.
The embodiment of the present application further provides a computer readable storage medium capable of implementing all the steps in the block chain based power distribution internet of things node switching method in the above embodiment, and the computer readable storage medium stores a computer program thereon, where the computer program when executed by a processor implements all the steps in the block chain based power distribution internet of things node switching method in the above embodiment, for example, the processor implements the following steps when executing the computer program:
step 100: a first node in the power distribution Internet of things sends a message to be switched to a cluster head of a cluster where the first node is located;
step 200: the cluster head of the cluster of the first node encrypts and sends the identity information of the first node to the cluster head of the cluster of the second node according to the message to be switched;
step 300: the first node encrypts and sends the identity information to a cluster head of a cluster where the second node is located;
step 400: and the cluster head of the cluster where the second node is located is switched to be the cluster head of the cluster of the second node according to the identity information sent by the cluster head of the cluster of the first node and the identity information sent by the first node.
As can be seen from the above description, the computer readable storage medium in the embodiment of the present application firstly obtains the grid-connected point voltage and reactive data of the wind farm, and then combines the grid-connected point voltage and the reactive data; and finally, calculating the reactive voltage sensitivity of the wind power plant according to the combined grid-connected point voltage and the reactive data. The reactive voltage sensitivity coefficient determined according to the application is more scientific and reasonable, and is beneficial to improving the voltage regulation qualification rate of the wind power plant. By adopting the electronic equipment in the embodiment of the application, the determined reactive voltage sensitivity is more scientific and reasonable, and the voltage regulation qualification rate of the wind power plant is improved.
In summary, the computer readable storage medium provided by the embodiment of the application can support the service provider to carry out self-adaptive offline and online of service according to the availability of the software and hardware resources of the service provider, realize the self-isolation capability of the service provider and ensure the response success rate of the service provider to the service request.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for a hardware+program class embodiment, the description is relatively simple, as it is substantially similar to the method embodiment, as relevant see the partial description of the method embodiment.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Although the application provides method operational steps as an example or a flowchart, more or fewer operational steps may be included based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one way of performing the order of steps and does not represent a unique order of execution. When implemented by an actual device or client product, the instructions may be executed sequentially or in parallel (e.g., in a parallel processor or multi-threaded processing environment) as shown in the embodiments or figures.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principles and embodiments of the present application have been described in detail with reference to specific examples, which are provided to facilitate understanding of the method and core ideas of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. The block chain-based power distribution Internet of things node switching method is characterized by comprising the following steps of:
a first node in the power distribution Internet of things sends a message to be switched to a cluster head of a cluster where the first node is located;
the cluster head of the cluster of the first node encrypts and sends the identity information of the first node to the cluster head of the cluster of the second node according to the message to be switched;
the first node encrypts and sends the identity information to a cluster head of a cluster where the second node is located;
the cluster head of the cluster where the second node is located switches the cluster head of the first node to the cluster head of the cluster where the second node is located according to the identity information sent by the cluster head of the cluster where the first node is located and the identity information sent by the first node;
the cluster head of the cluster where the second node is located switches the cluster head of the first node to the cluster head of the cluster where the second node is located according to the identity information sent by the cluster head of the cluster where the first node is located and the identity information sent by the first node, and the method comprises the following steps:
comparing the cluster head of the cluster where the second node is located with the identity information sent by the cluster head of the first node and the identity information sent by the first node, if the two are the same, agreeing to switch the cluster head, otherwise, disagreeing to switch the cluster head;
in the whole cluster head switching process, the first node is always connected with the cluster head of the cluster where the first node is located until the cluster head of the cluster where the second node is located agrees that the first node is disconnected with the cluster head of the cluster where the first node is located after the first node switches the cluster head and after the two clusters broadcast messages;
the situations of switching cluster heads of the terminal nodes of the power distribution Internet of things are as follows:
when the position of node a is in the overlapping region of two clusters a and B, P e >P e0 When in need of cluster head switching, wherein P e P is the error rate of the current node e0 The method is characterized in that the method is an error rate threshold value of transmission data, wherein the communication range covered by two clusters is not changed before and after node switching;
when the position of the node a is not the overlapping area of the clusters A and B, the node a is used as movable power distribution Internet of things equipment, the task of non-fixed environment monitoring needs to be completed, the node a needs to be moved to the communication range of the cluster B, the node a needs to be switched from the cluster A to the cluster B so as to ensure the communication quality, wherein the communication area of the cluster A is not changed before and after the node is switched, and the communication area of the cluster B is correspondingly changed.
2. The blockchain-based power distribution internet of things node switching method of claim 1, wherein the identity information includes: the identity information includes: the method comprises the steps of distributing equipment information of an Internet of things terminal, address information of a block chain node where the Internet of things terminal is located, and public key information used by a first node.
3. The blockchain-based power distribution internet of things node switching method of claim 1, wherein the switching of the cluster head of the first node to the cluster head of the second node according to the identity information sent by the cluster head of the first node and the identity information sent by the first node includes:
judging whether the identity information sent by the cluster head of the cluster where the second node is located is the same as the identity information sent by the first node or not by the cluster head of the cluster where the second node is located;
and if the cluster head of the first node is the same, switching the cluster head of the first node to the cluster head of the cluster of the second node.
4. The blockchain-based power distribution internet of things node switching method of claim 1, wherein the encryption method is a hash SM3 algorithm.
5. The blockchain-based power distribution internet of things node switching method of claim 1, further comprising:
broadcasting a message added by the first node in the cluster by the cluster head of the cluster where the second node is located;
and broadcasting a message that the first node is separated from the cluster head of the cluster where the first node is located in the cluster.
6. Block chain-based power distribution Internet of things node switching device is characterized by comprising:
the system comprises a message sending unit to be switched, a message sending unit and a message sending unit, wherein the message sending unit to be switched is used for sending a message to be switched to a cluster head of a cluster where a first node is located in the power distribution Internet of things;
the first information sending unit is used for encrypting and sending the identity information of the first node to the cluster head of the cluster where the second node is located according to the message to be switched by the cluster head of the cluster where the first node is located;
the second information sending unit is used for the first node to send the identity information to the cluster head of the cluster where the second node is located in an encrypted mode;
the cluster head switching unit is used for switching the cluster head of the first node into the cluster head of the second node according to the identity information sent by the cluster head of the first node and the identity information sent by the first node;
the cluster head of the cluster where the second node is located switches the cluster head of the first node to the cluster head of the cluster where the second node is located according to the identity information sent by the cluster head of the cluster where the first node is located and the identity information sent by the first node, and the method comprises the following steps:
comparing the cluster head of the cluster where the second node is located with the identity information sent by the cluster head of the first node and the identity information sent by the first node, if the two are the same, agreeing to switch the cluster head, otherwise, disagreeing to switch the cluster head;
in the whole cluster head switching process, the first node is always connected with the cluster head of the cluster where the first node is located until the cluster head of the cluster where the second node is located agrees that the first node is disconnected with the cluster head of the cluster where the first node is located after the first node switches the cluster head and after the two clusters broadcast messages;
the situations of switching cluster heads of the terminal nodes of the power distribution Internet of things are as follows:
when the position of the node a is twoP when the overlapping area of clusters A and B e >P e0 When in need of cluster head switching, wherein P e P is the error rate of the current node e0 The method is characterized in that the method is an error rate threshold value of transmission data, wherein the communication range covered by two clusters is not changed before and after node switching;
when the position of the node a is not the overlapping area of the clusters A and B, the node a is used as movable power distribution Internet of things equipment, the task of non-fixed environment monitoring needs to be completed, the node a needs to be moved to the communication range of the cluster B, the node a needs to be switched from the cluster A to the cluster B so as to ensure the communication quality, wherein the communication area of the cluster A is not changed before and after the node is switched, and the communication area of the cluster B is correspondingly changed.
7. The blockchain-based power distribution internet of things node switching device of claim 6, wherein the identity information includes: the identity information includes: the equipment information of the terminal of the power distribution Internet of things, the address information of the block chain node where the power distribution Internet of things is located and the public key information used by the first node;
the cluster head switching unit includes:
the judging module is used for judging whether the identity information sent by the cluster head of the cluster where the second node is located is the same as the identity information sent by the first node or not;
and the cluster head switching module is used for switching the cluster head of the first node into the cluster head of the cluster of the second node.
8. The blockchain-based power distribution internet of things node switching device of claim 6, further comprising:
a joining message broadcasting unit, configured to broadcast, in a cluster, a message joining by the first node, where the cluster head of the cluster where the second node is located;
a detachment message broadcasting unit, configured to broadcast, in a cluster of the cluster head of the cluster where the first node is located, a message that the first node is detached;
the encryption method is a hash SM3 algorithm.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor performs the steps of the blockchain-based power distribution internet of things node switching method of any of claims 1 to 5 when the program is executed.
10. A computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the blockchain-based power distribution internet of things node switching method of any of claims 1 to 5.
CN202010720746.5A 2020-07-24 2020-07-24 Block chain-based power distribution Internet of things node switching method and device Active CN111786785B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010720746.5A CN111786785B (en) 2020-07-24 2020-07-24 Block chain-based power distribution Internet of things node switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010720746.5A CN111786785B (en) 2020-07-24 2020-07-24 Block chain-based power distribution Internet of things node switching method and device

Publications (2)

Publication Number Publication Date
CN111786785A CN111786785A (en) 2020-10-16
CN111786785B true CN111786785B (en) 2023-11-24

Family

ID=72764046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010720746.5A Active CN111786785B (en) 2020-07-24 2020-07-24 Block chain-based power distribution Internet of things node switching method and device

Country Status (1)

Country Link
CN (1) CN111786785B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112969212B (en) * 2021-02-24 2022-03-04 山东山大世纪科技有限公司 Method for constructing de-centering sensor network of Internet of things
CN113592650B (en) * 2021-07-29 2023-10-24 成都质数斯达克科技有限公司 Transaction method, device and equipment based on blockchain intelligent contract
CN113780984B (en) * 2021-08-24 2023-09-29 国电南瑞南京控制***有限公司 Block chain-based power distribution website interaction system and interaction method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009081768A (en) * 2007-09-27 2009-04-16 Sony Corp Sensor network and data communication method
CN101873591A (en) * 2010-05-31 2010-10-27 西安电子科技大学 Wireless sensor network switching and pre-authenticating method based on evaluation
CN102572016A (en) * 2012-03-08 2012-07-11 常熟理工学院 Method for realizing cluster-based distributed mobile self-organizing network IPv6 (Internet Protocol version 6) address configuration
CN110392040A (en) * 2019-06-12 2019-10-29 东南大学 A kind of underwater mobile node re-authentication method based on trust chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009081768A (en) * 2007-09-27 2009-04-16 Sony Corp Sensor network and data communication method
CN101873591A (en) * 2010-05-31 2010-10-27 西安电子科技大学 Wireless sensor network switching and pre-authenticating method based on evaluation
CN102572016A (en) * 2012-03-08 2012-07-11 常熟理工学院 Method for realizing cluster-based distributed mobile self-organizing network IPv6 (Internet Protocol version 6) address configuration
CN110392040A (en) * 2019-06-12 2019-10-29 东南大学 A kind of underwater mobile node re-authentication method based on trust chain

Also Published As

Publication number Publication date
CN111786785A (en) 2020-10-16

Similar Documents

Publication Publication Date Title
CN108769150B (en) Data processing method and device of block chain network, cluster node and storage medium
US12010251B2 (en) Electric border gateway device and method for chaining and storage of sensing data based on the same
Feng et al. Efficient and secure data sharing for 5G flying drones: A blockchain-enabled approach
CN111786785B (en) Block chain-based power distribution Internet of things node switching method and device
CN110336774B (en) Mixed encryption and decryption method, equipment and system
CN110267270B (en) Identity authentication method for sensor terminal access edge gateway in transformer substation
Zhang et al. Enabling robust and privacy-preserving resource allocation in fog computing
Wang et al. A secure and efficient multiserver authentication and key agreement protocol for internet of vehicles
CN112333213B (en) Privacy protection method and device for business data of power Internet of things
CN112333212B (en) Encryption management method and device for business data of power Internet of things
CN111683136B (en) Node safety monitoring method and device of power distribution Internet of things and power distribution Internet of things system
CN112214544A (en) Ubiquitous power Internet of things edge data safe storage method based on permission block chain
CN114584306B (en) Data processing method and related device
CN113079215A (en) Block chain-based wireless security access method for power distribution Internet of things
Sani et al. A universally composable key exchange protocol for advanced metering infrastructure in the energy Internet
CN109586924A (en) A kind of intelligent distribution network data safe transmission method based on cloud computing
Umran et al. A Blockchain-Based Architecture for Securing Industrial IoTs Data in Electric Smart Grid.
CN112422516B (en) Trusted connection method and device based on power edge calculation and computer equipment
CN113986470A (en) User-unaware batch remote attestation method for virtual machines
Wu et al. Reinforced practical Byzantine fault tolerance consensus protocol for cyber physical systems
Wu et al. Bring trust to edge: Secure and decentralized IoT framework with BFT and permissioned blockchain
CN116546011A (en) Intelligent substation business data braiding method based on multi-access edge computing technology
CN112468983B (en) Low-power-consumption access authentication method for intelligent equipment of power internet of things and auxiliary device thereof
CN113992379A (en) Communication method, communication system, medium and electronic device for active identification device
Lv et al. A highly reliable lightweight distribution network communication encryption scheme

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant