|
Algorithm 2 CC-link establishment |
|
1: : the failed node; : the 1-hop neighbors of node
|
|
2: : the node connectivity materiality |
|
3: : the source node; : the destination node |
|
4: includes all the neighbor nodes of ; : the total number of neighbors of
|
|
5: : the helper set of source node ; : the cooperation set |
|
6:
|
|
7: while
and
do
|
|
8:
|
|
9: end while
|
|
10: if
then
|
|
11: if
then
|
|
12: Return ,
|
|
13: else
|
|
14: Announce the failure of CC-link establishment |
|
15: end if
|
|
16: else
|
|
17: if
then
|
|
18: Return ,
|
|
19: else
|
|
20:
|
|
21: end if
|
|
22: end if
|
|
23: the source and destination nodes will interchange and establish the CC-link again in reverse |