Research Article

G/M/1-Based DDoS Attack Mitigation in 5G Ultradense Cellular Networks

Algorithm 1

Thompson sampling nonstationary (TSNS).
Require:, , , ,
1: fordo
2: Generate uniformly distributed random variables , , from [0,1)
3: ifthen
4:
5: end if
6:
7: end for
8: Generate normally distributed random variables with (1, 0.5)
9: whiledo
10: fordo
11:
12: end for
13:
14:
15: Generate uniformly distributed random variable from [0,1)
16:
17:
18:
19:
20:
21:
22: end while