|
Algorithm 1 Calculating the AMoF, fitted slope, confidence intervals, and detection threshold |
| 1: Input:
,………,,
|
| 2: Output: AMoF, fitted slope (), detection threshold () |
| 3: At the super node
|
| 4: where the number of elements in NUT = l
|
| 5: Receive ,………, S.T
|
| 6: Initialize , Norm_,
|
| 7: For
i = 1 to
do
|
| 8: For
j = 1 to n
do
|
| 9: ←
|
| 101:
|
| 11: End for
|
| 12: ←
|
| 13: End for
|
| 14: Receive ,.., S.T is
|
| 15: For
k = 1 to
do
|
| 16: For
j = 1 to l
do
|
| 17: If
k ≥ 2 then
|
| 18: Find by solving (1) |
| 19: Find by solving (2) |
| 20: Find time varying threshold =
|
| 21:
|
| 22:
|
| 23: If
|
| 24: Node is normal |
| 25: Else
|
| 26: Node is malicious |
| 27: End for
|
| 28: End for
|