Research Article

BSD-Guard: A Collaborative Blockchain-Based Approach for Detection and Mitigation of SDN-Targeted DDoS Attacks

Algorithm 1

Cooperative detection of DDoS attack path.
Input:.
Output:
(1)for indo
(2) if is connected with a then
(3)  
(4)  
(5)  break
(6)else
(7)  
(8)end if
(9)end for
(10)while is not empty do
(11)forindo
(12)  if in then
(13)   
(14)   
(15)   
(16)  else
(17)   
(18)  end if
(19)end for
(20)end while