Fig. 1

System Model (d represents devices from I to N, Fog devices range from 1 to J, and cloud virtual machines (VM) range from 1 to K). N is the number of Mobile devices, J is the number of Fog devices and K is the number of virtual machines in the cloud infrastructure