CN111786785A - 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
CN111786785A
CN111786785A CN202010720746.5A CN202010720746A CN111786785A CN 111786785 A CN111786785 A CN 111786785A CN 202010720746 A CN202010720746 A CN 202010720746A CN 111786785 A CN111786785 A CN 111786785A
Authority
CN
China
Prior art keywords
node
cluster
cluster head
power distribution
things
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.)
Granted
Application number
CN202010720746.5A
Other languages
Chinese (zh)
Other versions
CN111786785B (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

Images

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 invention provides a power distribution Internet of things node switching method and device based on a block chain, wherein the power distribution Internet of things node switching method based on the block chain 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 switches 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 cluster of the first node and the identity information sent by the first node. According to the invention, the safety of identity verification when the nodes switch the cluster heads in the power distribution Internet of things can be enhanced, and the safe and credible access of the nodes of the power distribution Internet of things is ensured.

Description

Block chain-based power distribution Internet of things node switching method and device
Technical Field
The invention relates to the field of power industry, in particular to a power distribution internet of things node switching method and device based on a block chain, belonging to the technical field of power distribution network safety.
Background
In the prior art, the safety certification protection range of a power distribution network is mainly from a power distribution master station to TTU, DTU, FTU and other devices. Under the background of vigorously building an intelligent power internet of things, safety protection measures aiming at the terminal level of the power distribution internet of things are relatively weak and even lacked, so that the risk that various intelligent terminals are maliciously invaded is 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 are located in the same geographical area due to the fact that the working frequencies of the internet of things terminals of different safety partitions 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 security problem of the power system is more and more emphasized. In the aspect of safety protection deployment of the power distribution network, according to the relevant requirements of national information safety level protection, the principles of 'safety partition, network special, transverse isolation and longitudinal authentication' are adhered to, and all business systems in the power distribution network are respectively arranged in a production control area and a management information area. The production control area is divided into a control area (safety area I) and a non-control area (safety area II), the safety area I and the safety area II are isolated logically, and a special unidirectional safety isolation device for electric power, which is detected and authenticated by a national specified department, is arranged between the production control area and the management information area to realize physical isolation.
Compared with the traditional power distribution network, the conventional power distribution internet of things is more informationized and intelligent, and needs to be accessed into a monitoring terminal on a large scale in order to meet business requirements of comprehensive perception, open interaction and the like of the internet of things, so that the safety access of the terminal is guaranteed to be important. Meanwhile, the network environment of the power distribution internet of things is complex, communication between terminal nodes is easily interfered, a mobile operation internet of things terminal exists, the terminal nodes need to be switched to the optimal communication path, communication switching and other services between the nodes occur occasionally, the existing safety authentication measures cannot effectively meet the requirement of safety partition, and therefore the problem of safety switching of the terminal nodes needs to be solved urgently.
Disclosure of Invention
According to the power distribution internet of things node switching method and device based on the block chain, provided by the invention, the safety of identity verification when the node switches the cluster head in the power distribution internet of things can be enhanced, and the safe and credible access of the power distribution internet of things node is ensured.
In order to achieve the purpose, a power distribution internet of things node switching method based on a block chain is provided, and 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 switches 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 cluster of the first node and the identity information sent by the first node.
In one embodiment, the identity information includes: the device information of the power distribution internet of things terminal, 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.
In an embodiment, the switching, by 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 of the first node and the identity information sent by the first node, the cluster head of the first node to be the cluster head of the cluster of the second node includes:
the cluster head of the cluster where the second node is located judges whether the identity information sent by the cluster head of the cluster of the first node is the same as the identity information sent by the first node;
and if the cluster heads are the same, switching the cluster head of the first node to be 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 power distribution internet of things node switching method based on the block chain further includes:
the cluster head of the cluster where the second node is located broadcasts the message added by the first node in the cluster;
and broadcasting the information of the first node separation in the cluster of the cluster head of the cluster where the first node is located.
In a second aspect, the present invention provides a block chain-based power distribution internet of things node switching apparatus, including:
the switching information sending unit is used for sending a switching information to a cluster head of a cluster where a first node is located by the first node in the power distribution internet of things;
a first information sending unit, configured to encrypt, by the cluster head of the cluster of the first node according to the message to be switched, the identity information of the first node and send the encrypted identity information to the cluster head of the cluster where a second node is located;
a second information sending unit, configured to encrypt and send, by the first node, the identity information to a cluster head of a cluster in which the second node is located;
and 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 cluster 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 power distribution internet of things terminal, 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 of the first node is the same as the identity information sent by the first node or not by the cluster head of the cluster of the second node;
and the cluster head switching module is used for switching the cluster head of the first node to be the cluster head of the second node.
In one embodiment, the power distribution internet of things node switching device based on the block chain further includes:
an adding message broadcasting unit, configured to broadcast, in the cluster, a message added by the first node by a cluster head of the cluster in which the second node is located;
a detachment message broadcasting unit, configured to broadcast, in a cluster of the cluster head where the first node is located, a message that the first node detaches;
the encryption method is a hash SM3 algorithm.
In a third aspect, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps of the power distribution internet of things node switching method based on the block chain.
In a fourth aspect, the present invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of a block chain based power distribution internet of things node switching method.
As can be seen from the above description, in the power distribution internet of things node switching method and device based on the block chain provided in the embodiment of the present invention, 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 the identity information to the cluster head of the cluster where the second node is located; and finally, the cluster head of the cluster where the second node is located switches 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 method and the device for switching the nodes of the power distribution internet of things based on the block chain can enhance the safety of identity verification when the nodes in the power distribution internet of things switch cluster heads, and ensure the safe and credible access of the nodes of the power distribution internet of things.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a first schematic flow chart of a block chain-based power distribution internet of things node switching method provided in an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method step 400 of a block chain-based node switching method of an internet of things for power distribution in an embodiment of the present invention;
fig. 3 is a schematic flow diagram of a second method for switching nodes of the power distribution internet of things based on the block chain according to the embodiment of the present invention;
fig. 4 is a schematic flow chart of a power distribution internet of things node switching method based on a block chain in a specific application example of the present invention;
FIG. 5 is a diagram illustrating a node access method according to an embodiment of the present invention;
fig. 6 is a first schematic diagram illustrating a cluster head switching scenario in an embodiment of the present invention;
fig. 7 is a schematic diagram illustrating a cluster head switching scenario in an embodiment of the present invention;
FIG. 8 is a diagram illustrating cluster head switching in an exemplary embodiment of the present invention;
fig. 9 is a first schematic structural diagram of a power distribution internet of things node switching device based on a block chain in the embodiment of the present invention;
fig. 10 is a schematic structural diagram of a cluster head switching unit according to an embodiment of the present invention;
fig. 11 is a structural schematic diagram of a distribution internet of things node switching device based on a block chain in the embodiment of the present invention;
fig. 12 is a schematic structural diagram of an electronic device in an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention also provides a specific implementation method of the power distribution internet of things node switching method based on the block chain, 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 can be understood that, for step 100, there are two typical scenarios, one is a case that when a certain cluster head and a certain node (first node) in the cluster have poor communication quality, the node accesses another adjacent cluster head; the other is the case that a node which is registered in the main station but does not access any cluster applies for accessing a certain 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 device information of the power distribution internet of things terminal, 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.
Step 300: and the first node sends the identity information to the cluster head of the cluster where the second node is located in an encrypted manner.
Step 400: and the cluster head of the cluster where the second node is located switches 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 cluster of the first node and the identity information sent by the first node.
Comparing the identity information sent by the cluster head of the cluster of the first node with the identity information sent by the cluster head of the cluster of the second node, if the identity information is the same as the identity information sent by the cluster head of the first node, agreeing to switch the cluster head, and otherwise, disagreeing. It can be appreciated that step 400 applies trusted computing to node security management and control of the power distribution internet of things, which enhances security of authentication when a node switches a cluster head.
As can be seen from the above description, in the power distribution internet of things node switching method based on the block chain provided in the embodiment of the present invention, 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 the identity information to the cluster head of the cluster where the second node is located; and finally, the cluster head of the cluster where the second node is located switches 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 method and the device for switching the nodes of the power distribution internet of things based on the block chain can enhance the safety of identity verification when the nodes in the power distribution internet of things switch cluster heads, and ensure the safe and credible access of the nodes of the power distribution internet of things.
In one embodiment, the identity information includes: the device information of the power distribution internet of things terminal, 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.
In one embodiment, referring to fig. 2, step 400 further comprises:
step 401: the cluster head of the cluster where the second node is located judges whether the identity information sent by the cluster head of the cluster of the first node is the same as the identity information sent by the first node;
step 402: and if the cluster heads are the same, switching the cluster head of the first node to be the cluster head of the cluster of the second node.
It can be understood that the cluster head is also referred to as a cluster head node, that is, the nodes in the network are hierarchically divided by adopting the design idea of a hierarchical routing protocol, a plurality of adjacent nodes form a cluster, each cluster has a cluster head (cluster head), and the clusters can communicate with each other through the cluster head. The information and the behaviors of the nodes in the cluster are recorded through a block chain, the cluster head node has the authority to call 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 switching the cluster head and separating from the cluster head of the nodes in the cluster), and other nodes in the cluster only have the authority to look up the information.
In one embodiment, the encryption method is a hash SM3 algorithm.
It is understood that the SM3 algorithm is an algorithm in trusted computing, and the SM3 is a cryptographic hash function standard adopted by the government of the people's republic of china, which is mainly used for digital signature and verification, message authentication code generation and verification, random number generation, and the like, and the algorithm thereof is disclosed.
In an embodiment, referring to fig. 3, the block chain-based power distribution internet of things node switching method further includes:
step 500: the cluster head of the cluster where the second node is located broadcasts the message added by the first node in the cluster;
step 600: and broadcasting the information of the first node separation in the cluster of the cluster head of the cluster where the first node is located.
It can be understood that, in the whole process, the first node keeps being connected with the cluster head of the cluster where the first node originally locates until the cluster head of the cluster where the second node locates agrees with the switching of the cluster head by the first node and after the messages are broadcast in the two clusters (step 500 and step 600), the first node is disconnected with the cluster head of the cluster where the first node originally locates.
In 2019, China proposes to promote the combination of block chain bottom layer technology service and novel smart city construction, explores popularization and application in the fields of energy, power, information infrastructure and the like, and improves the intellectualization and precision of city management. The current energy power field is explored and applied based on the technical advantages of block chain decentralization, openness, tamper resistance and the like. Meanwhile, certain achievements are obtained in the application of the trusted computing in the safety protection of the power system, for example, a server trusted computing password platform for transparently supporting service application is developed in the environment of a production scheduling control system of an intelligent power grid, so that the safety and reliability of the scheduling system are improved. Therefore, the development of the block chain and the credible technology provides a new safety protection idea for the construction of the power distribution internet of things, and can provide high-reliability guarantee for the access and switching of the nodes.
Based on the above consideration and to further explain the scheme, the application provides a specific application example of the power distribution internet of things node switching method based on the block chain, and the specific application example specifically includes the following contents, see fig. 4.
In the power distribution internet of things, in order to ensure the efficiency of data transmission among nodes and the reliability of safe data transmission, a clustering method is adopted to manage and 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 the communication quality of a cluster head and a node in the cluster is poor, the node accesses another adjacent cluster head; the second is the case where there is a node that has registered with the master but has not accessed any cluster, applying for access to a cluster. Details of both cases are as follows.
1) Rules for switching cluster heads.
The following two situations that the power distribution internet of things terminal nodes switch the cluster heads are provided, as shown in fig. 6 and 7:
(1) as shown in fig. 6, when the position of the node a is exactly in the overlapping area of the two clusters a and B, due to the communication quality of the node and the cluster head, etc. (when Pe>Pe0When the cluster head is needed to be switched. Wherein, PeIs the bit error rate, P, of the current nodee0Is the threshold of the error rate of the transmitted data. The threshold value is related to the traffic class of the transmitted data, and when the traffic class of the transmitted data is higher, P ise0The smaller the size of the cluster, the more often the problem of switching the node a between the cluster a and the cluster B cannot be avoided, and at this time, the important basis for judging whether the switching is needed is to provide the communication quality for the node by the cluster head. Before and after the node switching, the communication range covered by the two clusters is not changed.
(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 (for example, the node a is used as a mobile power distribution internet of things device and needs to complete a non-fixed environment monitoring task), the node a needs to move to the communication range of the cluster B, and in this case, the node a needs to be switched from the cluster a to the cluster B to ensure the communication quality. Before and after the node switching, the communication area of the cluster A is not changed, and the communication area of the cluster B is correspondingly changed.
The two cases are different, but the switching mechanisms are consistent, specifically as follows:
information and behaviors (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, switching cluster heads and separating cluster heads of the nodes in the cluster) of the nodes in the cluster are recorded through a block chain, the cluster head nodes have authority to call and send the information recorded in the block (the address information of the nodes in the cluster, the public key information used by the nodes, the equipment information of the power distribution internet of things terminal and the behavior information of the nodes in the cluster for switching the cluster heads and separating the cluster heads), and other nodes in the cluster only have authority to look up the information. When a certain node a in the cluster desires to switch to the adjacent cluster head (switch from cluster head a to cluster head B) for any reason, the following operations should be performed, as shown in fig. 8, and it can be understood that the Hash (Hash function) in fig. 8: an input of arbitrary length (also called pre-mapped pre-image) is converted by a hashing algorithm into an output of fixed length, which is a hash value. This transformation is a kind of compression mapping, i.e. the space of hash values is usually much smaller than the space of inputs, different inputs may hash to the same output, so it is not possible to determine a unique input value from a hash value. In short, it is a function of compressing a message of an arbitrary length to a message digest of a certain fixed length.
S1: the node a sends a message to be switched to the cluster head A, and the node a sends the identity information to the cluster head B in an encrypted manner.
Specifically, the node a sends a message to inform 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, the encryption operation uses a hash SM3 algorithm in trusted computing. Trusted Computing/Trusted Computing (TC) is a technology that is driven and developed by the Trusted Computing group (Trusted Computing cluster, formerly known as TCPA). Trusted computing is a trusted computing platform widely used in computing and communication systems and based on the support of a hardware security module, so as to improve the security of the whole system. The endorsement key is a 2048 bit RSA public and private key pair that is randomly generated at the time of chip shipment and cannot be changed. This private key is always on the chip, while the public key is used to authenticate and encrypt sensitive data sent to the chip.
And 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 power distribution internet of things terminal, address information of the node of the block, and public key information used by the node.
S3 cluster head B compares the identity information received from node a with the information received from cluster head a.
Specifically, the cluster head B performs encryption operation on the identity information received from the node a, the encryption operation is compared with the information (the same type as the identity information received from the node a, namely the equipment information of the power distribution Internet of things terminal, the address information of the block chain link point and the public key information used by the node, the purpose of the step is to verify the identity of the node through comparison information and ensure the internal safety of the power distribution Internet of things) received from the cluster head A, if the encryption operation is the same as the encryption operation, the cluster head B agrees to switch, and otherwise, the encryption operation is not agreed.
S4: when the cluster head B agrees to switch the cluster head, the cluster head B broadcasts a message to be added by the node a in the cluster.
S5: node a broadcasts a message in the cluster where cluster head a is located that it will leave the cluster.
As can be seen from the above description, in the power distribution internet of things node switching method and device based on the block chain provided in the embodiment of the present invention, 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 the identity information to the cluster head of the cluster where the second node is located; and finally, the cluster head of the cluster where the second node is located switches 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 method and the device for switching the nodes of the power distribution internet of things based on the block chain can enhance the safety of identity verification when the nodes in the power distribution internet of things switch cluster heads, and ensure the safe and credible access of the nodes of the power distribution internet of things. Specifically, the application has the following beneficial effects:
(1) credible calculation is applied to node safety control of the power distribution Internet of things, a cluster head switching method of the power distribution Internet of things nodes is provided, and safety of identity verification when the nodes switch cluster heads is improved;
(2) the identity information of the power distribution internet of things node is stored by using the block chain, and a cluster head switching mechanism is provided by using a credible calculated domestic key algorithm, so that the safe and credible access of the power distribution internet of things node is guaranteed.
Based on the same inventive concept, the embodiment of the present application further provides a power distribution internet of things node switching device based on a block chain, which can be used for implementing the method described in the above embodiment, such as the following embodiments. Because the principle of solving the problems of the power distribution internet of things node switching device based on the block chain is similar to the power distribution internet of things node switching method based on the block chain, the implementation of the power distribution internet of things node switching device based on the block chain can be realized by referring to the implementation of the power distribution internet of things node switching method based on the block chain, and repeated parts are not repeated. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. While the system described in the embodiments below is preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
An embodiment of the present invention provides a specific implementation manner of a power distribution internet of things node switching device based on a block chain, which can implement a power distribution internet of things node switching method based on a block chain, and with reference to fig. 9, the power distribution internet of things node switching device based on a block chain specifically includes the following contents:
a to-be-switched message sending unit 10, configured to send a to-be-switched message to a cluster head of a cluster where a first node is located by a first node in a power distribution internet of things;
a first information sending unit 20, configured to encrypt, by the cluster head of the cluster of the first node according to the message to be switched, the identity information of the first node and send the encrypted identity information to the cluster head of the cluster where a second node is located;
a second information sending unit 30, configured to encrypt and send, by the first node, the identity information to a cluster head of a cluster where the second node is located;
a cluster head switching unit 40, configured to switch, by a cluster head of a cluster in which the second node is located, the cluster head of the first node to be the cluster head 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 equipment information of the power distribution internet of things terminal, 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 determining module 401, configured to determine, by a cluster head of a cluster in which 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;
a cluster head switching module 402, configured to switch a cluster head of the first node to a cluster head of the cluster of the second node.
In an embodiment, referring to fig. 11, the block chain based power distribution internet of things node switching apparatus further includes:
an adding message broadcasting unit 50, configured to broadcast, in the cluster, a message added by the first node by a cluster head of the cluster where the second node is located;
a detachment message broadcasting unit 60, configured to broadcast a message that the first node detaches from a cluster head of a cluster in which the first node is located;
the encryption method is a hash SM3 algorithm.
As can be seen from the above description, in the power distribution internet of things node switching method based on the block chain provided in the embodiment of the present invention, 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 the identity information to the cluster head of the cluster where the second node is located; and finally, the cluster head of the cluster where the second node is located switches 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 method and the device for switching the nodes of the power distribution internet of things based on the block chain can enhance the safety of identity verification when the nodes in the power distribution internet of things switch cluster heads, and ensure the safe and credible access of the nodes of the power distribution internet of things.
(1) Credible calculation is applied to node safety control of the power distribution Internet of things, cluster head switching methods of the power distribution Internet of things nodes are respectively provided, and safety of identity verification when the nodes switch the cluster heads is enhanced;
(2) identity information of the power distribution internet of things nodes is stored by using a block chain, and a cluster head switching mechanism is provided by using a credible calculated domestic key algorithm, so that safe and credible access of the power distribution internet of things nodes is guaranteed;
an embodiment of the present application further provides a specific implementation manner of an electronic device, which is capable of implementing all steps in the power distribution internet of things node switching method based on a block chain in the foregoing embodiment, and referring to fig. 12, the electronic device specifically includes the following contents:
a processor (processor)1201, a memory (memory)1202, a communication interface 1203, and a bus 1204;
the processor 1201, the memory 1202 and the communication interface 1203 complete 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-side device, a power measurement device, and a client device.
The processor 1201 is configured to call a computer program in the memory 1202, and the processor executes the computer program to implement all the steps in the block chain based power distribution internet of things node switching method in the foregoing embodiments, for example, when the processor executes the computer program, the following steps are implemented:
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 switches 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 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 in the embodiment of the present application, the grid-connected point voltage and the reactive data of the wind farm are first obtained, and then the grid-connected point voltage and the reactive data are merged; 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 method is more scientific and reasonable, and is favorable for 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 improvement of the voltage regulation qualified rate of the wind power plant is facilitated.
An 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 foregoing embodiment, where the computer-readable storage medium stores a computer program, and 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 foregoing embodiment, for example, when the processor executes the computer program, the processor implements 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 switches 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 cluster of the first node and the identity information sent by the first node.
As can be seen from the above description, in the computer-readable storage medium in the embodiment of the present application, the grid-connected point voltage and the reactive data of the wind farm are first obtained, and then the grid-connected point voltage and the reactive data are merged; 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 method is more scientific and reasonable, and is favorable for 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 improvement of the voltage regulation qualified rate of the wind power plant is facilitated.
To sum up, the computer-readable storage medium provided by the embodiment of the present invention can support a service provider to perform adaptive offline and online of services according to the availability of its own software and hardware resources, thereby implementing the self-isolation capability of the service provider and ensuring the success rate of the service provider in responding to a service request.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the hardware + program class embodiment, since it is substantially similar to the method embodiment, the description is simple, and the relevant points can be referred to the partial description of the method embodiment.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may 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 may also be possible or may be advantageous.
Although the present application provides method steps as in an embodiment or a flowchart, more or fewer steps may be included based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an actual apparatus or client product executes, it may execute sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the figures.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention 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 invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A power distribution Internet of things node switching method based on a block chain is characterized by comprising 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 switches 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 cluster of the first node and the identity information sent by the first node.
2. The block chain based power distribution internet of things node switching method according to claim 1, wherein the identity information comprises: the identity information includes: the device information of the power distribution internet of things terminal, 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.
3. The method for switching power distribution internet of things nodes based on the block chain according to claim 1, wherein switching the cluster head of the first node to be the cluster head 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 comprises:
the cluster head of the cluster where the second node is located judges whether the identity information sent by the cluster head of the cluster of the first node is the same as the identity information sent by the first node;
and if the cluster heads are the same, switching the cluster head of the first node to be the cluster head of the cluster of the second node.
4. The block chain based power distribution internet of things node switching method according to claim 1, wherein the encryption method is a hash SM3 algorithm.
5. The block chain based power distribution internet of things node switching method according to claim 1, further comprising:
the cluster head of the cluster where the second node is located broadcasts the message added by the first node in the cluster;
and broadcasting the information of the first node separation in the cluster of the cluster head of the cluster where the first node is located.
6. The utility model provides a distribution thing networking node auto-change over device based on block chain which characterized in that includes:
the switching information sending unit is used for sending a switching information to a cluster head of a cluster where a first node is located by the first node in the power distribution internet of things;
a first information sending unit, configured to encrypt, by the cluster head of the cluster of the first node according to the message to be switched, the identity information of the first node and send the encrypted identity information to the cluster head of the cluster where a second node is located;
a second information sending unit, configured to encrypt and send, by the first node, the identity information to a cluster head of a cluster in which the second node is located;
and 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 cluster of the first node and the identity information sent by the first node.
7. The blockchain-based power distribution internet of things node switching device according to claim 6, wherein the identity information comprises: the identity information includes: the equipment information of the power distribution internet of things terminal, 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 of the first node is the same as the identity information sent by the first node or not by the cluster head of the cluster of the second node;
and the cluster head switching module is used for switching the cluster head of the first node to be the cluster head of the second node.
8. The device for switching nodes of the power distribution internet of things based on the blockchain according to claim 6, further comprising:
an adding message broadcasting unit, configured to broadcast, in the cluster, a message added by the first node by a cluster head of the cluster in which the second node is located;
a detachment message broadcasting unit, configured to broadcast, in a cluster of the cluster head where the first node is located, a message that the first node detaches;
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 when executing the program implements the steps of the block chain based power distribution internet of things node switching method of any one of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the block chain based power distribution internet of things node switching method according to any one 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 true CN111786785A (en) 2020-10-16
CN111786785B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112969212A (en) * 2021-02-24 2021-06-15 山东山大世纪科技有限公司 Method and system for constructing de-centering sensor network of Internet of things
CN113592650A (en) * 2021-07-29 2021-11-02 成都质数斯达克科技有限公司 Transaction method, device and equipment based on block chain intelligent contract
CN113780984A (en) * 2021-08-24 2021-12-10 国电南瑞南京控制系统有限公司 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

Cited By (6)

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

Also Published As

Publication number Publication date
CN111786785B (en) 2023-11-24

Similar Documents

Publication Publication Date Title
CN108769150B (en) Data processing method and device of block chain network, cluster node and storage medium
CN111478902B (en) Power edge gateway equipment and sensing data uplink storage method based on same
CN111786785B (en) Block chain-based power distribution Internet of things node switching method and device
CN111930851B (en) Control data processing method, device, medium and electronic equipment of block chain network
CN111383021B (en) Node management method, device, equipment and medium based on block chain network
Yin et al. A blockchain-based incremental update supported data storage system for intelligent vehicles
CN111683136B (en) Node safety monitoring method and device of power distribution Internet of things and power distribution Internet of things system
CN110730081B (en) Block chain network-based certificate revocation method, related equipment and medium
CN112152778A (en) Node management method and device and electronic equipment
CN112214544A (en) Ubiquitous power Internet of things edge data safe storage method based on permission block chain
CN110839002B (en) Cloud account opening, authentication and access method and device
CN117251889B (en) Block chain consensus method, related device and medium
CN112422516B (en) Trusted connection method and device based on power edge calculation and computer equipment
CN111597537B (en) Block chain network-based certificate issuing method, related equipment and medium
CN112565368A (en) Block chain-based offshore equipment ad hoc network system, method and medium
Wu et al. Bring trust to edge: Secure and decentralized IoT framework with BFT and permissioned blockchain
Zhang et al. A Blockchain‐Based Microgrid Data Disaster Backup Scheme in Edge Computing
Cao et al. Integration of MEC and Blockchain
Wang et al. Analysis and Design of Identity Authentication for IoT Devices in the Blockchain Using Hashing and Digital Signature Algorithms
CN113992379A (en) Communication method, communication system, medium and electronic device for active identification device
Liang Security transmission and storage of Internet of Things information based on blockchain
CN113518129B (en) Method and device for interconnection and sharing of electric power energy sources
US11799843B2 (en) Revocable lightweight group authentication method and system for edge controller, and medium
CN117808467B (en) Cross-fragment transaction method, device, equipment and medium based on blockchain network
Chen et al. Lightweight Blockchain-based Identity Authentication Scheme for Power Terminal

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