The internet of things (IoT) concept has been extremely investigated in many modern smart applications, which enable a set sensors to either process the collected data locally or send them cloud for remote processing. Unfortunately, datacenters are located far away from IoT devices, and consequently, transmission may be delayed. In this paper, we investigate fog computing, is new paradigm that ...