International Core Journal of Engineering 2020-26 | Page 33

C. Data sharing among multi agents The future development direction of demand response is mainly detailed. them up. The washed primary structured storage data is aggregated to generate the secondary structured storage data, and the classification mark is made as the shared label on the secondary structured data. The shared members give their own API interface for the shared data according to their own data characteristics, and then enter the S3 stage. 1)Automatic demand response. It will change the way users use electricity, provide effective node resources for power planning, and reduce system operating costs. 3) Data communication stage S3: In this stage, each node participates in data sharing to initialize and configure the nodes. Each node organizes each node into a regional autonomous alliance by signing the alliance treaty through the data communication module, and each node in the regional autonomous alliance generates an identity containing the unique identity of the node. Identifying data blocks, each node broadcasts its identity data blocks in the regional autonomous alliance in chronological order. The system stores the identity data blocks of each node in chronological order to generate the original data blocks of the alliance by chain storage, and stores the original data blocks in the nodes of the regional autonomous alliance. And then enter the S4 stage. 2)Power demand side bidding. Users bidding according to their demand curve and provide demand bidding curve, users can increase or reduce load demand through bidding, making the bidding parties profit. 3)Distributed flexible transactions. Distributed electricity transaction can reduce electricity price and optimize resource allocation. At the same time, it can form an effective competition mechanism and reduce the third-party costs by adopting the changeable transaction mode. It is also conducive to the reform of power dispatching and power supervision system. To sum up, in the multi-agent demand response mechanism, the fusion of information sharing and data resources integration is very important. As a collectively maintained distributed and shared database, blockchain has the characteristics of open data, real-time and transparent sharing. It is an important supporting technology to break the "isolated island" of energy information and realize energy information exchange. Blockchains can provide a data security protection system with high security, anti-attack and strong repairability for energy information. The security of user privacy and system data based on blockchain technology is of great significance to ensure the high sustainability of energy data and solve the core defects of the distributed system. Therefore, under the trend of deep integration of Information-Physical systems in blockchain energy network and the increasingly prominent influence of information system security on energy physical systems, blockchain energy will play a significant role in the security of information physical systems. The main processes are shown in Figure 4. Sharing model S1 data processing data communication S2 S3 consult S4 Node judgment S5 data sharing S6 If it is a regional member Whether node voting agrees to data sharing 4) Negotiating whether new nodes are allowed to join the S4 stage: in this stage, when a new external node sends an application to a node of the regional autonomous Alliance for joining the alliance, the application for joining the alliance is broadcast in the regional autonomous alliance, and the nodes of the regional autonomous alliance decide whether to agree to the application, if the application is negotiated. If yes, the node's parameter information is stored and a new data block is added to the tail of the original data block to form a new blockchain, which is broadcast in the regional autonomous alliance and stored in each node. If the negotiation result is "no", the rejected result is carried out in the regional autonomous alliance. Broadcast and then enter the S5 stage. 5) Judging whether the node issuing the data sharing request is a member of the regional autonomous alliance in the S5 stage: In this stage, when a node in the regional autonomous alliance receives the data sharing request, the data sharing module of the node decides whether the node issuing the sharing request is a member of the regional autonomous alliance, if the result is "Yes", then the data sharing module shares the data of the members of the regional autonomous alliance, records the access operation with timestamp, broadcasts the access operation with timestamp in the regional autonomous alliance periodically, and adds it to the end of the regional autonomous alliance blockchain to form a new blockchain, and in the region if the matching is unsuccessful, the node that issued the sharing request does not belong to the member of the regional autonomous alliance, and then enters the S6 stage. Start Data processing module construction Form a structured storage data Node initialization configuration Cleaning data Data communication module construction Data sharing module construction Forming secondary structured storage data Develop classification markers Broadcast identity Store raw data blocks in federated nodes There are new nodes to apply to join the alliance Yes Broadcast node application Whether the negotiation passed Yes data sharing Yes Data sharing no o Stamp time stamp and broadcast Stamp time stamp and broadcast End Fig.4. The flow diagram of the participant's interaction of demand response information using blockchain 6) Judging whether to allow the non-regional autonomous coalition node data sharing stage S6: In this stage, each node of the regional autonomous coalition makes a decision on whether to allow the sharing request, if the number of nodes in the regional autonomous coalition allowing the sharing request is less than half of the total number of nodes, then reject the data sharing request, otherwise allow the data sharing operation, and record the data sharing operation with timestamp, generate data operation block, broadcast the data operation block throughout the network, all nodes of the regional autonomous alliance to determine the correctness and validity of the data operation block if all nodes of the 1) S1 stage of data sharing model: In this stage, a data sharing model is built on each shared node, which includes data processing module, data communication module and data sharing module, and then into S2 stage. 2) Stage S2 of data processing: In this stage, each node that participates in sharing collects and aggregates the data under its jurisdiction by itself using the data processing module to form a structured storage data, cleans the structured storage data, removes the duplicate data and invalid data from the structured storage data, and clears 11