Skip to main content
. 2019 May 7;19(9):2119. doi: 10.3390/s19092119
Algorithm 2: Secure, Energy- and SLA-Efficient (SESE) Algorithm with involvement of malicious device
Input:  G(N,E),σ, d(u,v), ω(u,v),c(u,v), Pu,MTTF(u,v), ru,ts and MTTFs
Output: Secured SLA-energy Cooperative Quickest Path (SESE)
BEGIN{
Initialization:
j1, 
Procedure:
STEP 0: Variable Declaration
GNetwork
NSet of nodes
ESet of links
c(u,v)Capacity of the link (u,v)
d(u,v)Delay of link the (u,v)
ω(u,v)Energy rate of link the (u,v)
PuEndowed energy at node u
ruRequested service performance factor at node u
σData
tsRequested service time
MTTFsMean Time to Failure of service
MTTF(u,v)Mean Time to Failure of a link
STEP 1: Find r capacities corresponds to critical-continuous service and label of minimum capacity:
(iii)    c1<c2<c3<cr
(iv)   cmin(u,v) with AND rule
STEP 2: Solve SPPj w.r.t. delay time d(u,v) in Gj with capacities cj
For  j1:r
   Set j1
   Solve SPPj
     If No st path in Gj with capacity with cj
       go to STEP3
     else
       Let Pj is an optimal solution for SPPj with capacity c(Pj)=cj
     end
  end
STEP 3:
If j= r
     go to STEP4
else
     set j=j+1 and go to STEP2
end
STEP 4: Find the legitimate node
If PNV<75%
  Remove node from the network
else
go to STEP 5
STEP 5: Find the solution
Compute the index h(1, 2,r) of path array Pj
Tσ(Ph)=minj=1,,  rTσ(Pj)
Ph is an optimal solution of the SESE
} END