*3.5. Fifty VMs with Two DCs*

Scenario two is also running with the same simulation setup as in scenario 1. The set of the DCs and VMs are varied for the maximum resource utilization. This scenario integrates the 50 VMs with two DCs. MGs are considered to be the same as the above scenario and communication mechanism of the entities is also similar to scenario 1: consumer to fog, fog to cloud, appliance to appliance and vise versa. In addition, scenario 2 also comprises on the power storage devices and on electric vehicles as described in detail in the simulation section.

Three algorithms have been used for resource allocation in the C2F2C environment: ESCE, RR and SJF algorithms. These algorithms are applied for assignments of the VMs, MGs and other resources in the DCs for the consumers in any region as described in the Algorithms 1–3. When requests are received from the residential buildings, ESCE algorithm first checks the resources and assigns them to the available VMs. RR receives all the requests in an organized (cyclic) fashion and entertains them accordingly. SJF receives the requests, calculates their size for each cluster of the buildings and allocates resources to them.
