**4. Simulation Results**

In this section, six regions are considered for conducting the simulations of the proposed system. Each region is comprised of a cluster of buildings varying between 50 to 150 and every building has 80 to 100 homes in it. The number of buildings and homes are specified as random for validating the system performance. Simulations are performed for 24 h in a complete day by considering the performance parameters: RT, PT, RPH and cost (i.e., cost of VM, total number of MG installed and total data transfer). These parameters are computed through the Equations (1)–(7). The information about regions is described in Table 2.


**Table 2.** Region information.

For performing the simulations, optimized RT resource allocation policy is used whereas the load balancing algorithms are used as RR, ESCE and our proposed algorithm SJF. Our proposed algorithm gives the minimum latency as compared to the other two algorithms. It helps in maintaining consumers' comfort preferences. As there exists randomness for multiple epochs of these algorithms, that is why, we have taken the average of 10 times. The simulations of the proposed work are based on the following scenarios.
