Skip to main content
. 2021 Apr 13;21(8):2733. doi: 10.3390/s21082733
Algorithm 1 PA-DRL training algorithm
Input: SFC request with the requirement of VNFs and virtual links
Output: Deployment and backup locations for each VNF of SFC
Initialize the neural network N with the parameter ω, and clear the replay memory buffer D.
whileisend0do
Calculate SFC priority level psfc as (6)
Calculate node priority level pnode as (7)
Determine action set by Table 1
Select action A(t) by εgreedy method
Calculate reward R(t) as (10)
Store the sample (S(t),A(t),S(t+1),R(t),isend) in memory D
Randomly select samples from D then calculate Q as (14)
Train the network N and update ω by using back propagation of the loss function
end while