A new method for trusted acquisition of power system data based on blockchain technology
By adopting a data acquisition method based on blockchain technology in the new power system, the problems of slow data transmission speed, high retransmission rate and low credibility are solved, and the rapid and trustworthy acquisition of data is achieved, meeting the system's demand for real-time data response.
Patent Information
- Application Number
- CN202211547105.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-05
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2042-12-05
AI Technical Summary
In the new power system, existing data acquisition technology is difficult to meet the real-time data response requirements, resulting in slow data transmission speed, high data retransmission rate, and low data transmission reliability.
A new power system data trustworthy acquisition method is adopted based on blockchain technology. By establishing a data acquisition blockchain terminal structure, a data processing model based on data packet loss and retransmission mechanism, and a data transmission model driven by data demand response, combined with a greedy algorithm to solve the data transmission path, the data transmission path is achieved quickly and trustworthy acquisition of data.
It improves the real-time and credibility of data transmission, reduces the data loss rate and retransmission rate, and meets the rapid response needs of new power systems for data acquisition.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of novel power system data acquisition, and relates to a novel power system data trusted acquisition method, in particular to a novel power system data trusted acquisition method based on blockchain technology. Background Art
[0002] When blockchain technology was first formed, it was mostly used in the financial field to complete decentralized transaction records. With the development of this technology, the high reliability of blockchain data has been widely recognized. Blockchain technology is currently used and studied in both power grid information and energy fields. At present, blockchain technology is widely used in marketing models such as power trading and direct power purchase by large users. In addition, this technology can realize automatic demand response of local area network energy storage systems, establish smart contracts between responding entities, and ensure energy transactions and profit distribution. This technology also has broad application prospects in the field of data acquisition and processing. It takes about 10 minutes for a typical blockchain to form a new transaction data block, which is acceptable in applications such as transaction accounting. However, for applications in new power systems with a high proportion of renewable energy access and a high proportion of power electronic equipment applications, it cannot meet the system's demand for real-time data response.
[0003] The existing new power system data acquisition technology usually uses a centralized remote measurement and control unit (RTU) to detect and control field signals and industrial equipment operating status data. Under limited bandwidth conditions, some power grid traffic services such as power video services and voice dispatch services transmit and collect data through QoS communication. However, with the "double high" characteristics of a high proportion of new energy access and a high proportion of power electronic equipment applications in the new power system, facing the massive multi-source heterogeneous information data in the system, traditional data acquisition methods are difficult to respond to real-time requirements. The communication link congestion caused by the simultaneous transmission of a large amount of data increases the data loss rate and retransmission rate. Therefore, it is urgent to propose a new power system data acquisition method that can meet the requirements of the new power system for data acquisition and realize the rapid and reliable acquisition of new power system data.
[0004] After searching, no patent documents of the prior art that are identical or similar to the present invention were found. Summary of the invention
[0005] The purpose of the present invention is to overcome the shortcomings of the prior art and propose a new method for trusted acquisition of power system data based on blockchain technology, which can solve the technical problems of slow power data transmission speed, high data retransmission rate and low data transmission credibility in the new power system.
[0006] The present invention solves the practical problem by adopting the following technical solutions:
[0007] A new method for credible acquisition of power system data based on blockchain technology includes the following steps:
[0008] Step 1: Establish a new terminal structure for power system data acquisition blockchain;
[0009] Step 2: Based on the terminal structure of the new power system data acquisition blockchain established in step 1, a data processing model based on the data packet loss retransmission mechanism is established. For the data collected by the sensing device acquired by the terminal node, the M / M / 1 / k mixed queuing model is adopted to forward the data packets, and the node with the shortest end-to-end transmission time is selected as the data block generation node, and the verified data block is sent to all network nodes;
[0010] Step 3: Generate nodes based on the data blocks selected in step 2 and establish a data transmission model driven by data demand response;
[0011] Step 4: Solve the data demand response-driven data transmission mathematical model established in step 3 based on a greedy algorithm to obtain the optimal point-to-point transmission path for data blocks.
[0012] Moreover, the specific method of step 1 is:
[0013] Based on the actual new power system power information data acquisition process, considering the autonomy and two-way communication functions of the new power system information physical terminal, a terminal structure for generating data blocks as data acquisition blockchain is established;
[0014] The various sensor devices connected to the blockchain terminal complete the data collection of the original electrical parameters; the data acquisition blockchain terminals are interconnected through a point-to-point network peer-to-peer communication mode to form a new type of power system data acquisition blockchain terminal.
[0015] Moreover, the structure of the data acquisition blockchain is as follows: the data block includes two parts: the block header and the block body; the block header includes the version number of the block, the address of the previous block, the timestamp of the block generation and other information; the block body contains the original data of the data feature transformation value obtained from each sensor, the new power system data includes bus voltage, line flow and smart meter collection power data, and the time series data can be regarded as<ID,Time,Value> Ternary combination.
[0016] Moreover, the formation process of the data acquisition blockchain is as follows: the data is first transmitted from the sending node to the nodes of the entire network, and then the data is stored after verification - the right to establish a block is obtained - the node Vi establishes a data block, and then the data block is broadcast to the nodes of the entire network, and the block is verified - the block main chain is linked, and finally saved on the block main chain. The data acquisition blockchain terminal obtains data from the sensor and saves the data on the block main chain through two full-network node broadcasts.
[0017] Moreover, the specific method of step 2 is:
[0018] Based on the terminal structure of the data acquisition blockchain established in step 1, a data processing model based on the data packet loss and retransmission mechanism is established according to the data collected by the sensing device obtained by the terminal node. The processing process of the terminal node for the packet data is set to the M / M / 1 / k mixed queuing model. It is assumed that the data arrival at the node is regarded as obeying the Poisson distribution, and the average rate is set to λ; the node forwards the data packet in a first-in-first-out manner, and the forwarding rate is μ, which obeys the exponential distribution; the node cache capacity is configured as m, then the corresponding network performance parameters can be obtained: the packet loss rate Ploss and the delay time Tdelay in the node are expressed as follows:
[0019]
[0020] In addition to the data queuing processing time, the end-to-end transmission time also includes the link transmission time and the packet loss retransmission waiting time; if the data is sent from node s to the receiving node d and forwarded through k hop nodes, the end-to-end transmission time is Ts-d:
[0021]
[0022] Where: Li is the length of the i-th link on the transmission path, v is the transmission speed, Waiting time before successful retransmission of packet data;
[0023] Therefore, according to the blockchain generation process, the node of Min(Max(Ts1-i, Ts2-i, … Tsn-i)) is selected as the node for generating data blocks, and the verified data blocks are sent to all nodes in the network.
[0024] Moreover, the specific method of step 3 is:
[0025] The data block generation node is used as the network transmission source node, the data transmission end point is used as the destination node, and the load balancing degree is used as the objective function to establish a data on-demand driven transmission mathematical model:
[0026] Among them, the calculation formula for P2P network load balancing is:
[0027]
[0028] Where: RB i Indicates the remaining bandwidth on the path from the P2P source node to the destination node. It represents the average of the remaining bandwidth on all links, and n is the number of links;
[0029] The mathematical model of data transmission driven by data demand response is established as follows:
[0030]
[0031] The constraints are expressed in order: Transmission delay T s-d Not greater than the business requirement, select x delay Delay br ; The transmission link has remaining bandwidth RB i >0; Transmission path hop count Hop s-d Not greater than the transmission requirement Hop br Constraint; the amount of data transmitted to the node ∑Data(v i ) in Equal to the amount of data transmitted from the node ∑Data(v i ) out , ensuring the equality of data information within the node.
[0032] Moreover, the specific method of solving the data transmission mathematical model driven by data demand response based on the greedy algorithm in step 4 is:
[0033] Input: blockchain data demand matrix [W], P2P network parameters: bandwidth adjacency matrix B(bij), link length L, number of nodes N, node processing delay T;
[0034] 1) Initialize P2P network parameters: link bandwidth B(bij), link length L1, node delay T, number of nodes N, and send data matrix W.
[0035] 2) Calculate the number of sending nodes H and sort them according to the amount of data.
[0036] 3) Execute the greedy strategy to generate the propagation path set of the node corresponding to W(1,H)
[0037] R(0)={r01,r02,…,r0N}.
[0038] 4) The number of nodes decreases, H=H-1.
[0039] 5) If H≠0, define a=W(1,i), i=1. If H=0, output the transmission path set R={r01,r02,…,r0N,…,ri1,ri2,…,riN}(i=H-1), and the loop ends.
[0040] 6) Calculate K paths from sending node a to node i.
[0041] 7) Calculate the objective function BP2P and save the new path R = {r01, r02, ..., r0N, ..., rai}
[0042] 8) Update the P2P network bandwidth matrix and update the node set.
[0043] 9) Set i = i + 1, and check if i < N holds. If i < N holds, return to step 6); if not, return to step 4).
[0044] The output is: the data block transfer path set R. Select the optimal point-to-point transfer path for data blocks to achieve the reliable acquisition of new power system data.
[0045] Advantages and beneficial effects of the present invention:
[0046] 1. The present invention proposes a method for reliable acquisition of new power system data based on blockchain technology. By defining the blockchain terminal structure for private data acquisition in the new power system, establishing a data processing model based on the data packet loss and retransmission mechanism, and optimizing data acquisition, transmission, and forwarding. In view of the defect that the traditional blockchain construction process takes a long time, a data transmission model driven by data demand response is proposed, and queuing theory and data-driven transmission on demand are used to improve the speed of data block chain construction, ensuring the fast transmission and reliable acquisition of power data.
[0047] 2. The present invention proposes a method for reliable acquisition of new power system data based on blockchain technology. Compared with the traditional centralized acquisition architecture of the new power system, blockchain technology has the characteristics of decentralization and high credibility. Separate data blocks are indirectly subject to the unified scheduling of the master station and operate independently at the same time, realizing a decentralized shared data structure. At the same time, in view of the defect that the traditional blockchain construction process takes a long time, the method of the present invention proposes a data transmission model driven by data demand response, and uses data demand response driven by queuing theory and greedy algorithm to improve the data block transmission and chain construction speed. Through simulation experiments, it is proved that this method has great advantages over the existing traditional data transmission methods in terms of link utilization rate and data reliable acquisition method (low data retransmission rate). BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 It is a schematic diagram of the blockchain terminal for data acquisition in the new power system of the present invention;
[0049] Figure 2 It is a structure diagram of the timing data of the data acquisition blockchain of the present invention;
[0050] Figure 3 It is a schematic diagram of the formation process of the data blockchain of the present invention;
[0051] Figure 4 It is a flowchart of the greedy strategy algorithm of the present invention;
[0052] Figure 5 It is a P2P network connection diagram of the new power system of the present invention;
[0053] Figure 6 It is a comparison diagram of the results of different algorithms in the experimental simulation of the present invention. DETAILED DESCRIPTION
[0054] The embodiments of the present invention are further described in detail below with reference to the accompanying drawings:
[0055] A new method for credible acquisition of power system data based on blockchain technology includes the following steps:
[0056] Step 1: Establish a new terminal structure for power system data acquisition blockchain;
[0057] The specific method of step 1 is:
[0058] Based on the actual process of acquiring power information data in the new power system, and considering the autonomy and two-way communication functions of the information-physical terminal of the new power system, a terminal structure for generating data blocks as the data acquisition blockchain is established.
[0059] The various sensor devices connected to the blockchain terminal complete the data collection of the original electrical parameters; each data acquisition blockchain terminal is interconnected through a peer-to-peer (P2P) network peer-to-peer communication mode to form a new type of power system data acquisition blockchain terminal, whose structure is as follows Figure 1 shown.
[0060] In this embodiment, the data acquisition blockchain is composed of two parts: a data block includes a block header and a block body. The block header contains information such as the version number of the block, the address of the previous block, and the timestamp of the block generation; the block body contains the original data of the data feature transformation value obtained from each sensor, and the new power system data includes bus voltage, line flow, and smart meter collected power data. Time series data can be regarded as<ID,Time,Value> Ternary combination. The time series data structure diagram is as follows Figure 2 shown.
[0061] In this embodiment, the formation process of the data acquisition blockchain is as follows: Figure 3 It can be seen that: the data is first transmitted from the sending node to the nodes of the entire network, and after verification, the stored data is obtained - the right to establish a block is obtained - the node Vi establishes a data block, and then the data block is broadcast to the nodes of the entire network, and the block is verified - the block main chain is linked, and finally saved on the block main chain. The data acquisition blockchain terminal obtains data from the sensor and saves the data on the block main chain through two full-network node broadcasts.
[0062] Step 2: Based on the terminal structure of the new power system data acquisition blockchain established in step 1, a data processing model based on the data packet loss and retransmission mechanism is established. For the data collected by the sensing device obtained by the terminal node, the M / M / 1 / k mixed queuing model is adopted to forward the data packets, and the node with the shortest end-to-end transmission time is selected as the data block generation node, and the verified data block is sent to all nodes in the network.
[0063] Considering the acquisition strategies of various sensor devices in the new power system information physical terminal and the delay of the communication transmission network, it is a probabilistic event for all sensor devices to collect data and arrive at the communication node. Since the processing process of collected data in the node is a queuing process, a data processing model based on the data packet loss retransmission mechanism is established.
[0064] The specific method of step 2 is:
[0065] Based on the terminal structure of the data acquisition blockchain established in step 1, a data processing model based on the data packet loss and retransmission mechanism is established according to the data collected by the sensing device obtained by the terminal node. The processing process of the terminal node for the packet data is set to the M / M / 1 / k mixed queuing model. It is assumed that the data arrival at the node is regarded as obeying the Poisson distribution, and the average rate is set to λ; the node forwards the data packet in a first-in-first-out manner, and the forwarding rate is μ, which obeys the exponential distribution; the node cache capacity is configured as m, then the corresponding network performance parameters can be obtained: the packet loss rate Ploss and the delay time Tdelay in the node are expressed as follows:
[0066]
[0067] In addition to the data queuing processing time, the end-to-end transmission time also includes the link transmission time and the packet loss retransmission waiting time. If the data is sent from node s to the receiving node d and forwarded through k hop nodes, the end-to-end transmission time is Ts-d:
[0068]
[0069] Where: Li is the length of the i-th link on the transmission path, v is the transmission speed, and the transmission speed in the present invention is 3×108m / s; The waiting time before packet data is successfully retransmitted.
[0070] Therefore, according to the blockchain generation process, the node of Min(Max(Ts1-i, Ts2-i, … Tsn-i)) is selected as the node for generating data blocks, and the verified data blocks are sent to all nodes in the network.
[0071] Step 3: Generate nodes based on the data blocks selected in step 2 and establish a data transmission model driven by data demand response.
[0072] Based on the data block generation nodes selected in step 2, in order to meet the rapid response of the new power system to the real-time needs of massive multivariate data, a data transmission strategy driven by data demand response is proposed to meet the latency requirements of the new power system business in the entire network for data transmission, while achieving load balancing, reducing the possibility of network congestion, and improving the speed of data block generation.
[0073] The specific steps of step 3 include: taking the data block generation node as the network transmission source node, the data transmission end point as the destination node, and establishing a data on-demand driven transmission mathematical model with load balancing as the objective function:
[0074] (1) The calculation formula for P2P network load balancing is:
[0075]
[0076] Where: RB i Indicates the remaining bandwidth on the path from the P2P source node to the destination node. It represents the average of the remaining bandwidth on all links, where n is the number of links.
[0077] (2) The mathematical model of data transmission driven by data demand response is established as follows:
[0078]
[0079] The constraints are expressed in order: Transmission delay T s-d Not greater than the business requirement, select x delay Delay br ; The transmission link has remaining bandwidth RB i >0; Transmission path hop count Hop s-d Not greater than the transmission requirement Hop br Constraint; the amount of data transmitted to the node ∑Data(v i ) in Equal to the amount of data transmitted from the node ∑Data(v i ) out , ensuring the equality of data information within the node.
[0080] Step 4: Solve the data demand response-driven data transmission mathematical model established in step 3 based on a greedy algorithm to obtain the optimal point-to-point transmission path for data blocks.
[0081] The greedy algorithm is used to solve the established data on-demand driven transmission model to achieve network load balancing. Finally, the output transmission path set is obtained according to the algorithm, and the optimal data block transmission path is selected to achieve reliable acquisition of new power system data.
[0082] Input the blockchain data requirement matrix, P2P network parameters, bandwidth adjacency matrix parameters, link length, number of nodes, and node processing delay, and use the greedy algorithm to solve, finally output the optimal transmission path of data blocks point-to-point.
[0083] The specific method for solving the data transmission mathematical model based on the data demand response drive using the greedy algorithm in step 4 is as follows:
[0084] Input: Blockchain data requirement matrix [W], P2P network parameters: bandwidth adjacency matrix B(bij), link length L, number of nodes N, node processing delay T;
[0085] 1) Initialize the P2P network parameters: link bandwidth B(bij), link length L1, node delay T, number of nodes N, and send the data matrix W.
[0086] 2) Calculate the number of sending nodes H and sort according to the data volume.
[0087] 3) Execute the greedy strategy to generate the propagation path set of the nodes corresponding to W(1, H)
[0088] R(0) = {r01, r02,..., r0N}.
[0089] 4) Decrease the number of nodes, H = H - 1.
[0090] 5) Judge that if H ≠ 0, then define a = W(1, i), i = 1. If H = 0, then output the transmission path set R = {r01, r02,..., r0N,..., ri1, ri2,..., riN} (i = H - 1), and the loop ends.
[0091] 6) Calculate K paths from the sending node a to the node i.
[0092] 7) Calculate the objective function BP2P and save the new path R = {r01, r02,..., r0N,..., rai}
[0093] 8) Update the P2P network bandwidth matrix and update the node set.
[0094] 9) i = i + 1, judge whether i < N holds. If i < N holds, then return to step 6); if not, then return to step 4).
[0095] Output: Data block transmission path set R. Select the optimal transmission path of data blocks point-to-point to realize the trusted acquisition of data in the new power system.
[0096] The flowchart of the greedy strategy algorithm is as Figure 4 shown.
[0097] After the data block completes the point-to-point data transmission, the corresponding data block is selected for downloading in the nodes of the entire network by identifying the timestamp contained in the block header in the data block, and finally the trusted acquisition of the new power system data is completed.
[0098] In this embodiment, the scenario and output results are verified through simulation examples:
[0099] In this simulation experiment example, the demand strategy of the new power system is set as the acquisition process of non-real-time data of power trading and real-time measurement data in WAMS, and the IEEE39 node system is used to verify the feasibility and effectiveness of the new power system data trusted acquisition method based on blockchain technology proposed in the present invention.
[0100] According to the layout data of the new power system grid structure, the blockchain terminal structure is obtained. The standard IEEE39 node corresponding to the new power system P2P network connection diagram is obtained as follows: Figure 5 shown.
[0101] In accordance with the data needs of power trading security verification, the power dispatching data of generators, transformers and key nodes of the system are collected. Figure 5 In the experiment, nodes 1, 13, and 17 are set to obtain generator and transformer data, with data volumes of 5MB, 10MB, and 15MB respectively. Nodes 5, 8, and 15 obtain line and equipment status data, with data volumes of 10MB, 16MB, and 20MB respectively. According to this experiment, the packet loss retransmission rate and network link utilization rate of different algorithms are obtained. Figure 6 The results show that the patented method reasonably selects the transmission path in the process of data transmission in the new power system, significantly improves the utilization rate of the network link, and avoids congestion and packet loss retransmission while balancing the network load.
[0102] The working principle of the present invention is:
[0103] The present invention provides a new type of trusted data acquisition method for power system based on blockchain technology. By defining a new type of power system privatized data acquisition blockchain terminal structure, trusted data support is provided for the needs of regional autonomy, simulation analysis and the like of power grid information-physical system. A data processing model based on a data packet loss and retransmission mechanism is established. Under the premise of meeting the constraints of data transmission delay requirements, a data demand response-driven data transmission mathematical model is established with load balancing as the objective function. The shortest output transmission path is solved by a greedy algorithm, and the delay requirements of data transmission according to the power grid information-physical system business within the entire network are met. At the same time, load balancing is achieved, the possibility of network congestion is reduced, and the speed of data block generation is improved. Finally, through simulation experiments, the traditional QoS link communication method is compared to verify that the new power system data trusted acquisition method based on blockchain has good network link utilization and low data packet loss and retransmission rate, ensuring rapid transmission and trusted acquisition of power data.
[0104] The innovation of the present invention lies in:
[0105] 1. Data processing model based on data packet loss and retransmission mechanism:
[0106] Assume that data arrival at the node is considered to follow a Poisson distribution, with an average rate of λ; the node forwards data packets in a first-in-first-out manner, with a forwarding rate of μ, which follows an exponential distribution; the node cache capacity is configured as m, and the node's processing of packet data is set to an M / M / 1 / k mixed queuing model. The corresponding network performance parameters can be obtained: the packet loss rate Ploss and the delay time Tdelay in the node are expressed as follows:
[0107]
[0108] In addition to the data queuing processing time, the end-to-end transmission time also includes the link transmission time and the packet loss retransmission waiting time. If the data is sent from node s to the receiving node d and forwarded through k-hop nodes, the end-to-end transmission time is Ts-d:
[0109]
[0110] Where: Li is the length of the i-th link on the transmission path, v is the transmission speed, which is 3×108m / s in this paper; The waiting time before packet data is successfully retransmitted.
[0111] Through the data processing model of the data packet loss retransmission mechanism, the selection of the data block selection node with the shortest transmission time is realized, and the verified data block is sent to all nodes in the network, thereby improving the data transmission efficiency.
[0112] 2. Data transmission model driven by data demand response:
[0113] For point-to-point network transmission data after data acquisition blockchain terminal data processing, in order to meet the rapid response of the new power system to the real-time needs of massive and diverse data, a data transmission strategy driven by data demand response is proposed to meet the latency requirements of new power system services across the entire network for data transmission, while achieving load balancing, reducing the possibility of network congestion, and increasing the speed of data block generation.
[0114] P2P network load balancing calculation formula:
[0115]
[0116] Where: RBi represents the remaining bandwidth on the path from the P2P source node to the destination node, It represents the average of the remaining bandwidth on all links, where n is the number of links.
[0117] The mathematical model of data transmission driven by data demand response is established as follows:
[0118]
[0119] The constraints are expressed in order: Transmission delay T s-d Not greater than the service demand delay br ; The transmission link has remaining bandwidth RB i >0; Transmission path hop count Hop s-d Not greater than the transmission requirement Hop br Constraint; the amount of data transmitted to the node ∑Data(v i ) in Equal to the amount of data transmitted from the node ∑Data(v i ) out , ensuring the equality of data information within the node.
[0120] Through a data transmission mathematical model driven by data demand response, the network transmission method with the minimum balance is obtained, which effectively improves the utilization rate of the data transmission link, reduces the data packet loss and retransmission rate, and improves the reliability of data transmission acquisition.
[0121] It should be emphasized that the embodiments of the present invention are illustrative rather than restrictive. Therefore, the present invention includes but is not limited to the embodiments described in the specific implementation modes. Any other implementation modes derived by those skilled in the art based on the technical solutions of the present invention also fall within the scope of protection of the present invention.
Claims
1. A method for credible acquisition of power system data based on blockchain technology, characterized by: The steps include: Step 1: Establish a terminal network for power system data acquisition blockchain; Step 2: Based on the terminal network of the power system data acquisition blockchain established in step 1, a data processing model based on the data packet loss and retransmission mechanism is established. For the sensor device data collected by the terminal node, the M / M / 1 / k mixed queuing model is adopted to forward the data packets, and the terminal node with the shortest end-to-end transmission time is selected as the data block generation node, and the verified data block is sent to the nodes of the entire network; Step 3: Generate nodes based on the data blocks selected in step 2 and establish a data transmission model driven by data demand response; Step 4: Solve the data transmission mathematical model based on data demand response driven by step 3 based on the greedy algorithm to obtain the optimal point-to-point transmission path of the data block; The specific method of step 2 is: Based on the terminal network of the data acquisition blockchain established in step 1, a data processing model based on the data packet loss and retransmission mechanism is established according to the data collected by the sensor device obtained by the terminal node. The processing process of the terminal node for the packet data is set to the M / M / 1 / k mixed queuing model. It is assumed that the data arrival at the node is regarded as obeying the Poisson distribution, and the average rate is set to λ; the node forwards the data packet in a first-in-first-out manner, and the forwarding rate is μ, which obeys the exponential distribution; the node cache capacity is configured as m, then the corresponding network performance parameters can be obtained: the packet loss rate Ploss and the delay time Tdelay in the node are expressed as follows: In addition to the data queuing processing time, the end-to-end transmission time also includes the link transmission time and the packet loss retransmission waiting time; if the data is sent from node s to the receiving node d and forwarded through k hop nodes, the end-to-end transmission time is Ts-d: Where: Li is the length of the i-th link on the transmission path, v is the transmission speed, Waiting time before successful retransmission of packet data; Therefore, according to the blockchain generation process, the terminal node with the shortest end-to-end transmission time is selected as the data block generation node, and the verified data block is sent to all network nodes; The specific method of step 3 is: The data block generation node is used as the network transmission source node, the data transmission end point is used as the destination node, and the load balancing degree is used as the objective function to establish a data on-demand driven transmission mathematical model: The calculation formula for P2P network load balancing is: Where: RB i Indicates the remaining bandwidth on the path from the P2P source node to the destination node. It represents the average of the remaining bandwidth on all links, and n is the number of links; The mathematical model of data transmission driven by data demand response is established as follows: The constraints are expressed in order: Transmission delay T s-d 'Not greater than the delay selected by business requirements br ; The transmission link has remaining bandwidth RB i ≥0; Transmission path hop count Hop s-d Not greater than the transmission requirement Hop br Constraint; the amount of data passed into the node ΣData(v i ) in Equal to the amount of data transmitted from the node ΣData(v i ) out , ensuring the equality of data information within the node.
2. According to a method for credible acquisition of power system data based on blockchain technology according to claim 1, it is characterized by: The specific method of step 1 is: Based on the actual power system power information data acquisition process, considering the autonomy and two-way communication functions of the power system information physical terminal, a terminal network is established to generate data blocks as data acquisition blockchain; The various sensor devices connected to the terminal nodes complete the data collection of the original electrical parameters; the data acquisition terminals are interconnected through a point-to-point network peer-to-peer communication mode to form a terminal network of the power system data acquisition blockchain.
3. According to a method for credible acquisition of power system data based on blockchain technology according to claim 2, it is characterized by: The structure of the data acquisition blockchain is as follows: the data block includes two parts: the block header and the block body; the block header includes the version number of the block, the address of the previous block, and the timestamp information generated by the block; the block body contains the original data of the data feature transformation value obtained from each sensor device, the power system data includes the bus voltage, line flow and smart meter collected power data, and the time series data can be regarded as<ID,Time,Value> Ternary combination.
4. According to claim 2, a method for credible acquisition of power system data based on blockchain technology is characterized in that: The formation process of the data acquisition blockchain is as follows: the data is first transmitted from the terminal node that sends the data to the nodes of the entire network, and after verification, the data is stored - the right to establish a block is obtained - a data block is established, and then the data block is broadcast to the nodes of the entire network, and the block is verified - the block main chain is linked, and finally saved on the block main chain. The data acquisition blockchain terminal network obtains data from the sensor device to save the data on the block main chain through two full-network node broadcasts.
Citation Information
Patent Citations
Data transmission system and method
CN108055309A
Method and system for generating block in advance based on block chain
CN110472970A