Skip to main content
. 2021 Apr 2;21(7):2485. doi: 10.3390/s21072485
Algorithm 3: Handover
Initialize: Thresholds for performance metrics SNRth, Tth, Perr,
instantaneous throughput, packet loss, mean_snr
Label: Record Metrics at User Device
while 1 repeat
   Based on Equation (15) calculate the instantaneous throughput
   Base on Equation (16) calculates packet success probability
   Based on Equation (17) calculate the mean SNR from the current AP
 Goto CheckMetrics
 do after time D
End
Label: Check Metrics
if SNR < SNRth  or  Perr  > Pth  orTi< Tth
   return 1
else
   return 0
end
End