CN114154984A - Power grid node reliability information determination and evaluation method, system, equipment and terminal - Google Patents

Power grid node reliability information determination and evaluation method, system, equipment and terminal Download PDF

Info

Publication number
CN114154984A
CN114154984A CN202111223045.1A CN202111223045A CN114154984A CN 114154984 A CN114154984 A CN 114154984A CN 202111223045 A CN202111223045 A CN 202111223045A CN 114154984 A CN114154984 A CN 114154984A
Authority
CN
China
Prior art keywords
node
transaction
power grid
credibility
consensus
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.)
Pending
Application number
CN202111223045.1A
Other languages
Chinese (zh)
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.)
Guangzhou Institute of Technology of Xidian University
Original Assignee
Guangzhou Institute of Technology of Xidian University
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 Guangzhou Institute of Technology of Xidian University filed Critical Guangzhou Institute of Technology of Xidian University
Priority to CN202111223045.1A priority Critical patent/CN114154984A/en
Publication of CN114154984A publication Critical patent/CN114154984A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Marketing (AREA)
  • Health & Medical Sciences (AREA)
  • Technology Law (AREA)
  • Development Economics (AREA)
  • Public Health (AREA)
  • Water Supply & Treatment (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Primary Health Care (AREA)
  • Tourism & Hospitality (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention belongs to the technical field of block chains, and discloses a method, a system, equipment and a terminal for measuring and evaluating reliability information of a power grid node, wherein the method for measuring and evaluating the reliability information of the power grid node comprises the following steps: adding a new node into the power grid block chain, and giving initial credibility to the new node; when the credibility of the user node reaches a threshold value, the transaction of the electric quantity is allowed to be carried out; in the power grid, a user node determines the buying and selling electric quantity according to the requirement; in the block chain of the power grid, two parties for buying and selling the electric quantity are matched, and the two parties carry out transaction; writing the completed electric quantity transaction into the block, removing the malicious transaction in the block, achieving consensus by a consensus node, and adding the block to a block chain; and updating the credibility of the user node. The block chain-based power grid node credibility information measuring and evaluating method provided by the invention can be used for more conveniently conducting electric quantity transaction, storing each piece of information of the transaction into the block chain, realizing the non-tampering property of the information and being beneficial to maintaining the normal operation of the system.

Description

Power grid node reliability information determination and evaluation method, system, equipment and terminal
Technical Field
The invention belongs to the technical field of block chains, and particularly relates to a method, a system, equipment and a terminal for measuring and evaluating reliability information of a power grid node.
Background
Currently, blockchains are honored as "next generation internet" because their decentralized, non-tamperproof, publicly transparent nature can help value data to be reliably circulated in a low-cost, publicly-justified fashion. With the development of the block chain technology and the increasing application range, the value of the block chain bearer is increasing.
In recent years, the pace of application of a block chain in various fields is increasing, and the block chain is being explored and applied in multiple vertical industries such as trade finance, supply chain, social public service, election, judicial evidence storage, tax affairs, logistics, medical health, agriculture, energy and the like. However, certain characteristics of the blockchain system create problems in the process of merging with the grid platform. Firstly, the rigid regularity of the blockchain ensures high trust of the power grid platform and the value of the digital assets on the chain, but limits the diversified development requirements of the power grid platform applying the blockchain technology. Secondly, the anonymity of the block chain can protect the privacy of identity information of each party of the transaction to a certain extent, but the regularity of the electric power transaction cannot be ensured, and the responsibility tracing is difficult, so that the management and control of the power grid block chain platform are difficult. Thirdly, under the current situation, the supply and demand relationship of the power grid platform becomes more complex, the power grid data is exponentially increased, and the power grid block chain is required to be capable of meeting the dynamic scene requirement, which also provides a serious challenge for the current block chain technology. Therefore, the application and popularization of the block chain technology in the power industry are restricted, and under the condition, a method for calculating the credibility of the user node is urgently provided to find the credible node more conveniently and quickly.
Through the above analysis, the problems and defects of the prior art are as follows:
(1) although the rigidity regularity of the blockchain ensures high trust of the power grid platform and the value of the digital assets on the blockchain, the diversified development requirements of the power grid platform applying the blockchain technology are limited, so that the combination of the power grid platform and the blockchain technology is single, and the power grid project of the blockchain is slow to land.
(2) The anonymity of the block chain can protect the identity information privacy of each party of the transaction to a certain extent, but the regularity of the electric power transaction cannot be ensured, and the responsibility tracing is difficult, so that the management and control of the power grid block chain platform are difficult.
(3) Under the current situation, the supply and demand relationship of a power grid platform is more complex, the power grid data is exponentially increased, and a power grid block chain is required to be capable of meeting the dynamic scene requirement, so that a severe challenge is provided for the current block chain technology, and the application and popularization of the block chain technology in the power industry are restricted.
The difficulty and significance for solving the problems and defects are as follows: the data disclosure and credibility of the power grid transaction can be enhanced by calculating the credibility of the user node, the non-falsifiable characteristic of the block chain ensures that the uplink data cannot be falsified at will, the positivity of network node voting is improved, and the safety of the system can be improved by quickly removing the malicious agent node. The method is beneficial to the unified management and the quick review of data such as energy price, energy configuration, transaction information and the like.
Disclosure of Invention
The invention provides a method, a system, equipment and a terminal for measuring and evaluating reliability information of a power grid node, and particularly relates to a method, a system, equipment and a terminal for measuring and evaluating reliability information of a power grid node based on a block chain.
The invention is realized in such a way that a method for measuring and evaluating reliability information of a power grid node comprises the following steps:
the actual behavior of the nodes in the power grid is analyzed through the three credibility factors, the node activity, the consensus completion rate and the contract completion rate respectively, so that the comprehensive trust value of the nodes is obtained, and the safety of the block chain environment of the power grid is ensured.
Further, the method for measuring and evaluating the reliability information of the power grid nodes comprises the following steps:
step one, a new node applies for adding into a power grid block chain and is endowed with initial credibility; and initializing the credibility.
Step two, when the credibility of the user node reaches a threshold value, the transaction of the electric quantity is allowed to be carried out; in the power grid, a user node determines the buying and selling electric quantity according to the own requirements; setting a credibility threshold and carrying out on-demand transaction.
Step three, matching both parties buying and selling the electric quantity in the block chain of the electric network to carry out the transaction of both parties; and (6) carrying out electric quantity transaction.
Writing the completed electric quantity transaction into the block, removing the malicious transaction in the block, achieving consensus by a consensus node, and adding the block to a block chain; a consensus was reached.
And step five, updating the credibility of the user node, and updating the credibility.
Further, in the second step, the premise that the user node performs the transaction is that the reliability of the user node is greater than the set reliability threshold, otherwise, the user node is considered as a malicious node, and the transaction is not approved.
Further, in the fourth step, when the user node performs the transaction, if the transaction of the user node is abnormal, the malicious transaction can be directly removed, so as to ensure that the transactions are legal.
Further, in the fifth step, the calculation of the credibility, which includes the analysis of the node activity, the contract completion and the consensus completion, includes:
(1) the consensus completion rate refers to whether the consensus result of the user node participation is the consensus result adopted by the block chain at last, if the number of honest nodes in the block chain is always larger than that of the malicious node, if the consensus achieved by the user node is the final consensus result, the user node is indicated to be the honest node, and if the achieved consensus block has malicious transactions or behaviors, the user node achieving the block consensus can be regarded as the malicious node to a certain extent, and the achieved consensus can not be adopted, so that the node is prohibited from participating in the consensus within a certain time, and accidents caused by node faults are avoided; if the number of the common identification times for which the node is prohibited to participate is too large, the node is considered as a malicious node and kicks out of the block chain network; if the node is an honest node, the consensus completion rate is less than 0 because of the existence of bifurcation, the larger the consensus completion rate of the user node is, the smaller the number of bifurcations appears, the quick consensus is favorably achieved, and the longest block chain is generated by the calculation formula:
Figure BDA0003313331440000031
wherein R isCCRRepresenting a consensus credibility value, R, of a nodereceiveIndicating the number of blocks for which the participation consensus is accepted, RtotalIndicating the number of blocks that are participating in the consensus in total.
(2) The node activity degree refers to the proportion of the number of blocks which participate in consensus or trade in the first t blocks of the user nodes to the first t blocks, so that the possibility that a certain user node participates in a time period all the time to obtain higher reliability is avoided, the user nodes with higher node activity degrees are all users who participate in the block chain of the power grid for a long time, the safety of the network is maintained, and the calculation formula is as follows:
Figure BDA0003313331440000041
wherein R isNAThe activity credibility value of the node is represented, t represents the first t blocks, k represents the number of blocks in which the node participates in consensus, and p represents the number of blocks in which the node conducts transaction.
(3) The contract completion degree is the completion degree of the user to complete the transaction by both parties of the user who carry out the transaction, namely the difference value of the actual transaction electric quantity of the user and the contract agreed transaction electric quantity, and the contract completion degree indicates the honesty or not of the user nodes of both parties of the transaction to a certain degree. If the electric quantity supplied by the seller is lower than the contract agreed electric quantity, the buyer user node indicates that the buyer user node needs to use the price higher than the contract to buy the residual electric quantity on the market, and certain economic loss is caused to the buyer; if the electric quantity used by the buyer is lower than the contract appointed electric quantity, the more electric quantity is bought by the power grid at the power grid electricity price, the bought electricity price is usually smaller than the contract appointed electricity price, and the seller loses, so that the behavior of the user node in the electric quantity transaction is evaluated through the completeness of the contract, and a certain credibility punishment is given. The seller node contract credibility value calculation formula is as follows:
Figure BDA0003313331440000042
the buyer contract completion credibility value calculation formula is as follows:
Figure BDA0003313331440000043
wherein R isccRepresenting contract trust value, EprovideIndicating the actual amount of electricity provided by the seller, EprvAmount of electricity representing contract appointment, EuseRepresenting the actual amount of electricity used by the buyer, RrewardRepresenting the value of the reward confidence for both parties to complete the contract.
In view of the above, it is desirable to provide,
Figure BDA0003313331440000044
wherein R represents the trustworthy value of a node, RlastExpressed as the last trusted value of the node, RstarExpressed as a node initialising a trusted value, RCCRRepresenting a consensus credibility value, R, of a nodeNARepresenting a trustworthy value of the activity of the node, RccRepresenting contract confidence values, and alpha, beta are weight parameter values.
Further, in the fifth step, after the transaction or the consensus is completed, the credibility of the user node is updated to prepare for the electricity transaction; and also be classified as a malicious node if the confidence level is below the threshold.
Another object of the present invention is to provide a power grid node reliability information measurement and evaluation system using the power grid node reliability information measurement and evaluation method, the power grid node reliability information measurement and evaluation system including:
the initial credibility giving module is used for adding the new node application into the power grid block chain and is given initial credibility;
the buying and selling electric quantity determining module is used for allowing the transaction of the electric quantity only when the credibility of the user node reaches a threshold value; in the power grid, a user node determines the buying and selling electric quantity according to the own requirements;
the both-party transaction module is used for matching both parties buying and selling the electric quantity in the power grid block chain to carry out the transaction of both parties;
the block adding module is used for writing the completed electric quantity transaction into a block, eliminating malicious transactions in the block, achieving consensus by a consensus node and adding the block to a block chain;
and the credibility updating module is used for updating the credibility of the user node.
It is a further object of the invention to provide a computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of:
the new node applies for adding into the block chain of the power grid and is endowed with initial credibility; when the credibility of the user node reaches a threshold value, the transaction of the electric quantity is allowed to be carried out; in the power grid, a user node determines the buying and selling electric quantity according to the own requirements; in the block chain of the power grid, matching two parties buying and selling the electric quantity to carry out the transaction of the two parties; writing the completed electric quantity transaction into the block, removing the malicious transaction in the block, achieving consensus by a consensus node, and adding the block to a block chain; and updating the credibility of the user node.
It is another object of the present invention to provide a computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
the new node applies for adding into the block chain of the power grid and is endowed with initial credibility; when the credibility of the user node reaches a threshold value, the transaction of the electric quantity is allowed to be carried out; in the power grid, a user node determines the buying and selling electric quantity according to the own requirements; in the block chain of the power grid, matching two parties buying and selling the electric quantity to carry out the transaction of the two parties; writing the completed electric quantity transaction into the block, removing the malicious transaction in the block, achieving consensus by a consensus node, and adding the block to a block chain; and updating the credibility of the user node.
The invention also aims to provide an information data processing terminal which is used for realizing the system for measuring and evaluating the credibility information of the power grid nodes.
By combining all the technical schemes, the invention has the advantages and positive effects that: according to the method for determining and evaluating the reliability information of the power grid nodes, a user needs to apply for the block chain node account according to the actual information of the user, and a new node is added into a block chain network to obtain an initial reliability value. And when the trust of the user reaches a threshold value, the user carries out trading transaction according to the requirement of the user on the electric quantity. In the block chain system, both parties of the electricity quantity buyer and the electricity quantity seller are matched according to the trust degree and the requirement of the user; and writing the transaction into a block chain for storage, eliminating malicious data, punishing a malicious node to reduce the trust, finally achieving consensus, completing the transaction, and meanwhile, updating the trust of the user node. The block chain-based power grid node credibility information determination and evaluation method is different from the traditional central transaction, electric quantity transaction is more convenient, each piece of information of the transaction is stored in the block chain, the information can not be tampered, the introduction of credibility increases the safety of the system, malicious transactions generated by malicious nodes are greatly reduced, and the normal operation of the system is maintained.
The invention introduces the concept of credibility, so that the transaction in the power grid is more reliable, and the probability of occurrence of malicious nodes is lower. And a credibility threshold is set, so that the first screening of the nodes for electric quantity transaction is realized, and the safety and reliability of the transaction are ensured to a certain extent. And carrying out reward and punishment on the credibility according to the behavior of the node, and exciting the forward behavior of the node, thereby being beneficial to maintaining the normal operation of the system. The invention can be used in the context of a block chain of a power grid.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for determining and evaluating reliability information of a power grid node according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of a method for determining and evaluating reliability information of a power grid node according to an embodiment of the present invention.
Fig. 3 is a structural block diagram of a system for determining and evaluating reliability information of a power grid node according to an embodiment of the present invention;
in the figure: 1. an initial confidence level assignment module; 2. a trading power determination module; 3. both sides trade module; 4. a block adding module; 5. and a credibility updating module.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Aiming at the problems in the prior art, the invention provides a method, a system, equipment and a terminal for measuring and evaluating the reliability information of a power grid node, and the invention is described in detail below by combining the attached drawings.
As shown in fig. 1, the method for determining and evaluating reliability information of a power grid node according to an embodiment of the present invention includes the following steps:
s101, a new node applies for adding into a power grid block chain and is endowed with initial credibility;
s102, when the credibility of the user node reaches a threshold value, the transaction of the electric quantity is allowed to be carried out; in the power grid, a user node determines the buying and selling electric quantity according to the own requirements;
s103, matching two parties buying and selling the electric quantity in the block chain of the power grid, and carrying out transaction between the two parties;
s104, writing the completed electric quantity transaction into a block, eliminating malicious transactions in the block, achieving consensus by a consensus node, and adding the block to a block chain;
and S105, updating the credibility of the user node.
A schematic diagram of the method for measuring and evaluating reliability information of a power grid node provided by the embodiment of the invention is shown in fig. 2.
As shown in fig. 3, the system for measuring and evaluating the reliability information of the power grid node according to the embodiment of the present invention includes:
an initial reliability giving module 1, configured to add a new node application to the power grid block chain, and give an initial reliability;
the buying and selling electric quantity determining module 2 is used for allowing the transaction of the electric quantity only when the credibility of the user node reaches a threshold value; in the power grid, a user node determines the buying and selling electric quantity according to the own requirements;
the both-party transaction module 3 is used for matching both parties buying and selling the electric quantity in the power grid block chain to carry out the transaction of both parties;
the block adding module 4 is used for writing the completed electric quantity transaction into a block, eliminating malicious transactions in the block, achieving consensus by a consensus node and adding the block to a block chain;
and the credibility updating module 5 is used for updating the credibility of the user node.
The technical solution of the present invention is further described below with reference to specific examples.
The method for determining and evaluating the reliability information of the power grid node based on the block chain provided by the embodiment of the invention specifically comprises the following steps:
step one, a new node applies for adding into a power grid block chain and is endowed with initial credibility;
and step two, when the credibility of the user node reaches a threshold value, the user node is allowed to trade the electric quantity, and in the power grid, the user node can decide to buy and sell the electric quantity according to the own requirements.
And step three, matching both parties buying and selling the electric quantity in the block chain of the electric network to carry out the transaction of both parties.
And step four, writing the completed electric quantity transaction into the block, eliminating the malicious transaction in the block, achieving consensus by the consensus node, and adding the block to the block chain.
And step five, updating the credibility of the user node.
The premise that the user node in the second step of the invention carries out the transaction is that the credibility of the user node is greater than the set credibility threshold, otherwise, the user node is considered as a malicious node, and the transaction is not approved.
When the user nodes in the fourth step of the invention carry out transaction, if the transaction of the user nodes is abnormal, the malicious transaction can be directly removed, so as to ensure that the transactions are legal.
And calculating the credibility in the fifth step of the invention, wherein the calculation comprises the analysis of the node activity degree, the contract completion degree and the consensus completion rate. The method comprises the following parts:
the consensus completion rate refers to whether the consensus result participated by the user node is the consensus result finally adopted by the block chain (assuming that the number of honest nodes in the block chain is always larger than that of malicious nodes), if the consensus achieved by the user node is the final consensus result, the user node is indicated to be an honest node, if the achieved consensus block has malicious transactions or behaviors, the user node achieving the block consensus can be regarded as a malicious node to a certain extent, the achieved consensus cannot be adopted, but in order to avoid accidents caused by node faults, the node is prohibited from participating in the consensus within a certain time, and if the number of times of consensus that the node is prohibited from participating is too large, the user node is regarded as a malicious node and kicks out of the block chain network. If the node is an honest node, the consensus completion rate is less than 0 because of the existence of bifurcation, and the larger the consensus completion rate of the user node is, the smaller the number of bifurcation times appears is indicated, which is beneficial to quickly achieving consensus and generating the longest block chain. The calculation formula is as follows:
Figure BDA0003313331440000091
wherein R isCCRRepresenting a consensus credibility value, R, of a nodereceiveIndicating the number of blocks for which the participation consensus is accepted, RtotalIndicating the number of blocks that are participating in the consensus in total.
The node activity degree is the proportion of the number of blocks which participate in consensus or trade in the first t blocks of the user node to the first t blocks, so that the possibility that a certain user node participates in a time period all the time to obtain higher reliability is avoided. The calculation formula is as follows:
Figure BDA0003313331440000092
wherein R isNAThe activity credibility value of the node is represented, t represents the first t blocks, k represents the number of blocks in which the node participates in consensus, and p represents the number of blocks in which the node conducts transaction.
And (III) the contract completion degree refers to the completion degree of the transaction completed by the user and the two parties performing the transaction, namely the difference value of the actual transaction electric quantity of the user and the contract agreed transaction electric quantity, and the contract completion degree represents the honesty or not of the user nodes of the two parties performing the transaction to a certain degree. If the electric quantity supplied by the seller is lower than the contract agreed electric quantity, the buyer user node indicates that the buyer user node needs to use the price higher than the contract to buy the residual electric quantity on the market, and certain economic loss is caused to the buyer; if the electricity consumption of the buyer is lower than the contract agreed electricity consumption, the more electricity is purchased by the power grid at the power grid price, and the purchase price is usually lower than the contract agreed price, and the seller loses. Therefore, the behavior of the user node in the electric quantity transaction needs to be evaluated through the completeness of the contract, and a certain credibility reward and punishment needs to be given. The seller node contract credibility value calculation formula is as follows:
Figure BDA0003313331440000101
the buyer contract completion credibility value calculation formula is as follows:
Figure BDA0003313331440000102
wherein R isccRepresenting contract trust value, EprovideIndicating the actual amount of electricity provided by the seller, EprvAmount of electricity representing contract appointment, EuseRepresenting the actual amount of electricity used by the buyer, RrewardRepresenting the value of the reward confidence for both parties to complete the contract.
In view of the above, it is desirable to provide,
Figure BDA0003313331440000103
wherein R represents the trustworthy value of a node, RlastExpressed as the last trusted value of the node, RstarExpressed as a node initialising a trusted value, RCCRRepresenting a consensus credibility value, R, of a nodeNARepresenting a trustworthy value of the activity of the node, RccRepresenting contract confidence values, and alpha, beta are weight parameter values.
After the transaction or the consensus in the step five is completed, the credibility of the user node needs to be updated to prepare for the next electric quantity transaction. Meanwhile, if the credibility is lower than the threshold value, the node is also classified as a malicious node.
The block chain-based power grid node credibility information determination and evaluation method is different from the traditional central transaction, electric quantity transaction is more convenient, each piece of information of the transaction is stored in the block chain, the information can not be tampered, the introduction of credibility increases the safety of the system, malicious transactions generated by malicious nodes are greatly reduced, and the normal operation of the system is maintained.
It should be noted that the embodiments of the present invention can be realized by hardware, software, or a combination of software and hardware. The hardware portion may be implemented using dedicated logic; the software portions may be stored in a memory and executed by a suitable instruction execution system, such as a microprocessor or specially designed hardware. Those skilled in the art will appreciate that the apparatus and methods described above may be implemented using computer executable instructions and/or embodied in processor control code, such code being provided on a carrier medium such as a disk, CD-or DVD-ROM, programmable memory such as read only memory (firmware), or a data carrier such as an optical or electronic signal carrier, for example. The apparatus and its modules of the present invention may be implemented by hardware circuits such as very large scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., or by software executed by various types of processors, or by a combination of hardware circuits and software, e.g., firmware.
The above description is only for the purpose of illustrating the present invention and the appended claims are not to be construed as limiting the scope of the invention, which is intended to cover all modifications, equivalents and improvements that are within the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. The method for measuring and evaluating the reliability information of the power grid nodes is characterized in that the method for measuring and evaluating the reliability information of the power grid nodes analyzes the actual behaviors of the nodes in the power grid through three reliability factors, node activity, consensus completion rate and contract completion degree respectively to obtain the comprehensive trust value of the nodes and ensure the safety of the block chain environment of the power grid.
2. The method for determining and evaluating the reliability information of the power grid node according to claim 1, wherein the method for determining and evaluating the reliability information of the power grid node comprises the following steps:
step one, a new node applies for adding into a power grid block chain and is endowed with initial credibility;
step two, when the credibility of the user node reaches a threshold value, the transaction of the electric quantity is allowed to be carried out; in the power grid, a user node determines the buying and selling electric quantity according to the own requirements;
step three, matching both parties buying and selling the electric quantity in the block chain of the electric network to carry out the transaction of both parties;
writing the completed electric quantity transaction into the block, removing the malicious transaction in the block, achieving consensus by a consensus node, and adding the block to a block chain;
and step five, updating the credibility of the user node.
3. The method for determining and evaluating the credibility information of the power grid nodes as claimed in claim 2, wherein in the second step, the user node performs the transaction if the credibility of the user node is greater than the set credibility threshold, otherwise, the user node is considered as a malicious node and the transaction is not approved.
4. The method for measuring and evaluating the credibility information of the power grid nodes as claimed in claim 2, wherein in the fourth step, when the user nodes perform transactions, if the transactions of the user nodes are abnormal, malicious transactions can be directly eliminated, so as to ensure that the transactions are legal.
5. The method for measuring and evaluating the reliability information of the power grid node as claimed in claim 2, wherein in the fifth step, the calculation of the reliability includes analysis of node activity, contract completion and consensus completion, and includes:
(1) the consensus completion rate refers to whether the consensus result of the user node participation is the consensus result adopted by the block chain at last, if the number of honest nodes in the block chain is always larger than that of the malicious node, if the consensus achieved by the user node is the final consensus result, the user node is indicated to be the honest node, and if the achieved consensus block has malicious transactions or behaviors, the user node achieving the block consensus can be regarded as the malicious node to a certain extent, and the achieved consensus can not be adopted, so that the node is prohibited from participating in the consensus within a certain time, and accidents caused by node faults are avoided; if the number of the common identification times for which the node is prohibited to participate is too large, the node is considered as a malicious node and kicks out of the block chain network; if the node is an honest node, the consensus completion rate is less than 0 because of the existence of bifurcation, the larger the consensus completion rate of the user node is, the smaller the number of bifurcations appears, the quick consensus is favorably achieved, and the longest block chain is generated by the calculation formula:
Figure FDA0003313331430000021
wherein R isCCRRepresenting a consensus credibility value, R, of a nodereceiveIndicating the number of blocks for which the participation consensus is accepted, RtotalIndicating the number of blocks participating in the consensus in total;
(2) the node activity degree refers to the proportion of the number of blocks which participate in consensus or trade in the first t blocks of the user nodes to the first t blocks, so that the possibility that a certain user node participates in a time period all the time to obtain higher reliability is avoided, the user nodes with higher node activity degrees are all users who participate in the block chain of the power grid for a long time, the safety of the network is maintained, and the calculation formula is as follows:
Figure FDA0003313331430000022
wherein R isNARepresenting the activity credibility value of the node, t representing the first t blocks, k representing the number of blocks in which the node participates in consensus, and p representing the number of blocks in which the node performs transaction;
(3) the contract completion degree is the completion degree of the user to complete the transaction by both parties of the user who carry out the transaction, namely the difference value of the actual transaction electric quantity of the user and the contract agreed transaction electric quantity, and the contract completion degree indicates the honesty or not of the user nodes of both parties of the transaction to a certain extent; if the electric quantity supplied by the seller is lower than the contract agreed electric quantity, the buyer user node indicates that the buyer user node needs to use the price higher than the contract to buy the residual electric quantity on the market, and certain economic loss is caused to the buyer; if the electric quantity used by the buyer is lower than the contract appointed electric quantity, the more electric quantity is bought by the power grid at the power grid electricity price, and the bought electricity price is usually smaller than the contract appointed electricity price, the seller loses, so that the behavior of the user node in the electric quantity transaction is evaluated through the completeness of the contract, and a certain credibility is awarded for punishment; the seller node contract credibility value calculation formula is as follows:
Figure FDA0003313331430000031
the buyer contract completion credibility value calculation formula is as follows:
Figure FDA0003313331430000032
wherein R isccRepresenting contract trust value, EprovideIndicating the actual amount of electricity provided by the seller, EprvAmount of electricity representing contract appointment, EuseRepresenting the actual amount of electricity used by the buyer, RrewardRepresenting a reward confidence value for both parties completing the contract;
in view of the above, it is desirable to provide,
Figure FDA0003313331430000033
wherein R represents the trustworthy value of a node, RlastExpressed as the last trusted value of the node, RstarExpressed as a node initialising a trusted value, RCCRRepresenting a consensus credibility value, R, of a nodeNARepresenting a trustworthy value of the activity of the node, RccRepresenting contract confidence values, alpha, beta being weight parametersThe value is obtained.
6. The power grid node credibility information determination and evaluation method of claim 2, wherein in step five, after the transaction or consensus is completed, the credibility of the user node is updated to prepare for the electricity transaction; and also be classified as a malicious node if the confidence level is below the threshold.
7. A power grid node credibility information determination and evaluation system implementing the power grid node credibility information determination and evaluation method according to any one of claims 1 to 6, wherein the power grid node credibility information determination and evaluation system comprises:
the initial credibility giving module is used for adding the new node application into the power grid block chain and is given initial credibility;
the buying and selling electric quantity determining module is used for allowing the transaction of the electric quantity only when the credibility of the user node reaches a threshold value; in the power grid, a user node determines the buying and selling electric quantity according to the own requirements;
the both-party transaction module is used for matching both parties buying and selling the electric quantity in the power grid block chain to carry out the transaction of both parties;
the block adding module is used for writing the completed electric quantity transaction into a block, eliminating malicious transactions in the block, achieving consensus by a consensus node and adding the block to a block chain;
and the credibility updating module is used for updating the credibility of the user node.
8. A computer device, characterized in that the computer device comprises a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to carry out the steps of:
the new node applies for adding into the block chain of the power grid and is endowed with initial credibility; when the credibility of the user node reaches a threshold value, the transaction of the electric quantity is allowed to be carried out; in the power grid, a user node determines the buying and selling electric quantity according to the own requirements; in the block chain of the power grid, matching two parties buying and selling the electric quantity to carry out the transaction of the two parties; writing the completed electric quantity transaction into the block, removing the malicious transaction in the block, achieving consensus by a consensus node, and adding the block to a block chain; and updating the credibility of the user node.
9. A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
the new node applies for adding into the block chain of the power grid and is endowed with initial credibility; when the credibility of the user node reaches a threshold value, the transaction of the electric quantity is allowed to be carried out; in the power grid, a user node determines the buying and selling electric quantity according to the own requirements; in the block chain of the power grid, matching two parties buying and selling the electric quantity to carry out the transaction of the two parties; writing the completed electric quantity transaction into the block, removing the malicious transaction in the block, achieving consensus by a consensus node, and adding the block to a block chain; and updating the credibility of the user node.
10. An information data processing terminal, characterized in that the information data processing terminal is configured to implement the grid node credibility information determination and evaluation system of claim 7.
CN202111223045.1A 2021-10-20 2021-10-20 Power grid node reliability information determination and evaluation method, system, equipment and terminal Pending CN114154984A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111223045.1A CN114154984A (en) 2021-10-20 2021-10-20 Power grid node reliability information determination and evaluation method, system, equipment and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111223045.1A CN114154984A (en) 2021-10-20 2021-10-20 Power grid node reliability information determination and evaluation method, system, equipment and terminal

Publications (1)

Publication Number Publication Date
CN114154984A true CN114154984A (en) 2022-03-08

Family

ID=80462486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111223045.1A Pending CN114154984A (en) 2021-10-20 2021-10-20 Power grid node reliability information determination and evaluation method, system, equipment and terminal

Country Status (1)

Country Link
CN (1) CN114154984A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116308802A (en) * 2023-05-15 2023-06-23 广东电网有限责任公司东莞供电局 Intelligent contract-based power transaction method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116308802A (en) * 2023-05-15 2023-06-23 广东电网有限责任公司东莞供电局 Intelligent contract-based power transaction method, device, equipment and storage medium
CN116308802B (en) * 2023-05-15 2023-10-31 广东电网有限责任公司东莞供电局 Intelligent contract-based power transaction method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US11568415B2 (en) Decentralized safeguard against fraud
Fry et al. Negative bubbles and shocks in cryptocurrency markets
AU2019305079A1 (en) Blockchain transaction safety using smart contracts
CN108932663B (en) Method and device for simulating matched transaction
CN111145010A (en) Credit granting and financing method and device
CN109377338A (en) Financial product processing method and processing device based on block chain
Xiong et al. Anti-collusion data auction mechanism based on smart contract
CN114140075B (en) Service processing method, device, medium and electronic equipment
CN112801498A (en) Risk identification model training method, risk identification device and risk identification equipment
CN111899107A (en) Scientific and technological service transaction method based on block chain intelligent contract
US20230019494A1 (en) Data verification method and apparatus, computer device, and computer readable storage medium
CN112258252A (en) Block chain-based data asset value evaluation device and method
Boyer et al. Changes in Beef Packers' Market Power after the Livestock Mandatory Price Reporting Act: An Agent‐based Auction
CN114154984A (en) Power grid node reliability information determination and evaluation method, system, equipment and terminal
Marchant et al. Bringing technological transparency to tenebrous markets: the case for using blockchain to validate carbon credit trading markets
CN115730830A (en) Enterprise risk assessment method, device, terminal, system and storage medium
CN115358894A (en) Intellectual property life cycle trusteeship management method, device, equipment and medium
CN114860615A (en) Rule automatic testing method and device, electronic equipment and storage medium
CN114757497A (en) Technology trust-increasing method for science and technology enterprise, device, equipment and medium thereof
CN114529302A (en) Financial transaction strategy verification system and method
TWM601424U (en) Artificial intelligence bid-rigging early warning system
CN111695934A (en) Integral tracing method and system for block chain
Michalopoulos et al. Inducing trust in Blockchain-enabled IoT marketplaces through reputation and dispute resolution
CN114298838A (en) Patent securitization management system and method based on block chain
CN118037314A (en) Multi-chain collaborative tracing system and method for trusted sharing of supply chain data

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