Research Article

[Retracted] Intelligent Offloading Decision and Resource Allocations Schemes Based on RNN/DQN for Reliability Assurance in Software-Defined Massive Machine-Type Communications

Algorithm 1

SDN-based DQN in MTG resource adjustment and MTG selections.
[DQN-based MTG Resource Adjustment]
(1)Initial the main, target parameters, and replay buffer, and respectively.
Define number of episodes
(2)for each step in the  episodes, then
(3) State observation
(4) DQNagent selects action based on the optimal policy
(5) Action selection and explore next state and obtain the reward
At each time slot , SDN controller executes the action
(6)if the size of the size of replay buffer
 cache into the replay buffer
(7)else
 Replace queue tail element with the current as the FIFO process.
(8)End if
 Transition to next network state
(9) Random mini-batch of samples from replay buffer
(10) Compute the target network value:
(11)
(12) Compute and minimize the loss:
(13)
(14) Update the target network , based on the updated :
(15)
(16)End for
[Offloading Decision and MTG Selection]
Offloading Making of MTG, referred to Figure 4
Input the adjusted MTG statuses observation in each time step
Monitoring the MTG cost in each time slot
(17)while communication is not terminated, then
(18)if the current MTG cost under threshold in allocated then
 SDN controller maintains the connection without handover process
else the in allocated , then
(19) SDN controller compares the different predicted loading metrics of each MTG and selects the MTG with minimum A new connection is established.
(20)  End if
(21)End while