Application of lightweight consensus algorithm for smart city factory network based on blockchain

  • A lightweight dada consensus algorithm based on the blockchain for the industrial Internet of Things for smart city applications
    • Lightweight consensus algorithm:
      • Network model: multiple edge gateways

        • definition:
          • IIoT nodes are represented by an S matrix, and devices are divided into three categories
            Category 1: Four corners of the factory area
            Category 2: Collection of surrounding edge gateways< /span>
            Category 3: Others
      • Blockchain mechanism

      • Transfer strategy for data transfer from source device to edge gateway
        • The source device i selects the two nearest edge gateways as the destination edge gateways.
        • The auction concept is introduced, and the source node I is regarded as the auctioneer. All nodes in the neighbor node set NSi are considered as bidders. Based on the remaining energy of the bidder and the number of hops to the destination edge gateway, a data forwarding game model is established. Determine the two most reliable models as the two destination nodes and send the data to these two nodes;
        • Based on the remaining energy of the bidder and the number of hops to the destination edge gateway, a data forwarding game model is established. Determine the two most reliable device nodes reaching the two destination edge gateways as next hop nodes, and send the data to these two nodes;
        • The relay node determines the next hop node in the same way and finally sends the data to the two destination edges.

        • The purpose edge gateway builds data blocks, shares data with the verification edge gateway, synchronizes the distributed ledger, and verifies the accuracy of the data.
      • The following consensus algorithm is proposed for IIoT:
        • The edge gateway data is converted into a hash value and stored in the data block and sent to the verified edge gateway. The edge gateway that receives the data from other edge gateways verifies the data by comparing it with the general ledger and feeds the verification result back to the edge gateway. If the verified edge gateway If the number of gateways is greater than 50% of the total number of verified edge gateways, the data is considered accurate; otherwise, the data is considered incorrect;

Guess you like

Origin blog.csdn.net/qq_56061892/article/details/126134827