| Algorithm 1 DA-DIS detection and isolation algorithm |
|
Input: Current Topology G = (Sw,E) Output: Path/Backup path (P ) between source-destination node pair Contract_Observer(Sw , Port P ) Status Sw = Check_Status_Change(); for all Sw ∈ G do if Check_Status_Change() == Sw do List P = all_k_shortest_path(Sw , Sw ); if Sw ∈ P then graph_list G = graph.monitor.path - Sw ; Identify_attack( Sw ,Port P ); call k_shortest_path(Sw , Sw ) ; else return P ; end if end if end for |