Research Article

An Architecture of IoT Service Delegation and Resource Allocation Based on Collaboration between Fog and Cloud Computing

Algorithm 3

Determining the number of VMs.
Input:
(1)        // rate of arrival
(2)        // rate of service
(3)     // : time of response
        // : probability target
Output:       // required minimum no. of VMs
(4) Float
(5) Function determineMinVM (, , , )
(6) If   σ   σ;
(7) Else ;
(8) While   ≤  , ++;
(9) Return ; // required minimum no. of VMs