Research Article

Blockchain-Enabled Joint Resource Allocation for Virtualized Video Service Functions

Algorithm 1

RAOA-A3C algorithm.
 Input:
(1)Initialize the actor network with parameter
(2)Initialize the critic network with parameter
(3)Initialize the actor network parameters for each thread
(4)Initialize the critic network parameters for each thread
(5)for each SFC do
(6) for each VSF resource allocation scheme in in edge cloud do
(7)  if is not registered in the VSCB then
(8)   remove from
(9) end for
(10) if is empty then
(11)  Calculate in core cloud
(12) Select the VSF allocation method from
(13) Select the VSF allocation method from
(14) Calculate the total cost
(15)end for
(16)while the SF set is not empty do
(17) Set the gradient of the two networks and
(18) Synchronize the parameters of the thread and
(19) Obtain state
(20) Repeat:
(21)  The state features are extracted from the network based on a multiple threshold mechanism, and action is executed according to policy
(22)  Get the reward of environmental feedback and the next state
(23)  
(24) Until termination status , or
(25)Obtain from the critic network
(26) for each step do
(27)  
(28)  Calculate the gradient of the actor network about :
(29) Calculate the gradient of the critic network about :
(30)  
(31) end for
(32) Use and to asynchronously update the global shared parameters and . Send the and to agent
(33)end while
Output: