| Algorithm 1 FRER-EDPPS Algorithm |
|
Input: Network topology G, Link failure rate , Node failure rate , . Source node s, Destination node d. Output: Working path , Redundant path P, Replication node , Eliminate node . 1: FOR (; ; i++) 2: FOR (; ; j++) 3: ;//Calculate link status and attribute information 4: ;//Calculate node status and attribute information 5: ;//Calculating path reliability model 6: ;//Process path reliability model 7: END FOR 8: END FOR 9: ;//Calculate the shortest path set 10: ;//Select the path with the highest reliability as the working path 11: ;//Delete all edges of the working path in G 12: ;//Calculate the shortest path set 13: IF //There exist a shortest path 14: ;//Filter out the path with the highest reliability as a redundant path 15: ELSE 16: ;//Add the reverse edge set of the work path to the disconnected graph 17: IF //There are two paths that do not intersect 18: ; 19: ;//Calculate two disjoint paths and update them with new working and redundant paths 20: END IF 21: ;//Filter common nodes for working and redundant paths 22: RETURN ;//Output working path, redundant path, copy nodes, eliminate nodes |