Time-sensitive Internet of Things (IoT) applications need to provide instant responses to end users. Seeking to reduce the latency of IoT applications is challenging task. Due to the dynamic changes that can occur over time such as failure of IoT devices or integration of new services and devices, the IoT application constantly requires new storage resources. To ensure the high performance of an IoT application, it is common today to place its produced data in the Fog infrastructure while satisfying its requirements over time. The main challenge in this regard is to ensure optimal data placement in this heterogeneous and distributed infrastructure with low latency. In fact, with continuous changes, new data assignments to target storage nodes can lead to data migration and increased latency. In this paper, we propose an adaptive approach to place the IoT data with multiple replicas in the Fog infrastructure while estimating and optimizing the overall latency. To cope with the IoT application changes, we establish a ℓ-backtracking greedy algorithm called adaptive multiple data replicas placement of IoT applications with external event changes in the Fog infrastructure (iFogDPE). It is a stable many-to-many matching algorithm that minimizes the write, read and migration latency using a few number of data replicas. Then, it assigns each data consumer with its appropriate data replica. To model and to simulate the IoT application and Fog infrastructure enactment as well as to test and to evaluate our solution we used iFogSim simulator. Our experimental results highlight the efficiency of our approach in reducing the storage and access latency with fewer data replicas while maintaining low data migration latency over time.
Read full abstract