Research Article

Intelligent Blockchain-Based Secure Routing for Multidomain SDN-Enabled IoT Networks

Algorithm 1 Reputation update algorithm.
Input: The unverified abstract topology in the blockchain uploaded by controller ; the set of controllers
Output: the global reputation of controller
1: The smart contract informs controllers to validate
2: for alldo
3: Send ICMP packets to validate edge switches
4: if controller receives ICMP relies then
5: Beta distribution parameter
6: else
7: Beta distribution parameter
8: end if
9: Estimate the local reputation
10: Controller send to the smart contract
11: end for
12: The smart contract calculates controller ’s global reputation
13: The smart contract makes the global reputation time decay,
14: return