Skip to main content
. 2022 Aug 16;22(16):6133. doi: 10.3390/s22166133
Algorithm 1 The proposed Blockchain-enabled Secure Digital Twin Framework
Input:Device1n, DT14, PA, TCP/UDP packets
  1. Initialization Phase:

  2. Distribute devices (Device1p, Device1q, Device1r) based on factory processes.

  3. Assign factory process 1  4 to DT14

  4. Split Devices to DT1, DT2, DT3, and DT4.

  5. Register DTn (Devicesn) in the private blockchain and assign certificate

  6. DT1n transmits and shares data with other DT1n

  7. Synchronize data between DT14 and PA to determine

  8.         if (DTpackets= PApackets)

  9.               return network secure

  10.          else

  11.               return register IP addresses and DTn in private blockchain

  12.          end if

  13. Collect TCP/UDP packet headers

  14. Train deep learning model using collected packets

  15. Assign IoT devices their group based on their process

  16.          if botnet activity = false

  17.               return network secure

  18.          else

  19.               return register IP addresses and infected DTn in private blockchain

  20.               revoke compromised DTn certificate to prevent inter DT communication

  21.          end if

  22.   End