Research Article

A Persistent Route Diversification Mechanism for Defending against Stealthy Crossfire Attack

Algorithm 3

Proxy creation generation algorithm.
(1)functionGENPROXIES ()
(2)  ,
(3)  
(4)  fordo
(5)   
(6)   
(7)   ,
(8)   whiledo
(9)    
(10)    fordo
(11)     
(12)     ifthen continue
(13)     ifthen
(14)      
(15)     else
(16)      
(17)     end if
(18)     
(19)     ,
(20)    end for
(21)   end while
(22)   
(23)  end for
(24)  return
(25)end function