FLIC: A Distributed Fog Cache for City-Scale Applications

George K. Thiruvathukal, PhD, Jack West, Neil Klingensmith, George K. ThiruvathukalIcfc 2020 · DOI

Abstract

City-scale IoT deployments, such as autonomous vehicle networks and distributed security cameras, face significant challenges regarding cellular data costs and high latency when relying solely on cloud backends. This paper presents FLIC (Fog Local Information Cache), a distributed caching framework that enables neighboring nodes to share data locally. By employing a "soft coherence" model, FLIC reduces wide-area network (WAN) traffic by over 50% and maintains a read miss rate below 2%, providing a scalable solution for real-time IoT applications.

Introduction

In modern "Smart City" environments, IoT devices often depend on cellular connectivity, leading to two primary issues: prohibitive costs due to per-byte billing and significant round-trip latency from cloud-based backends. These delays are particularly detrimental to real-time tasks like distributed machine learning or coordinated computer vision. FLIC addresses these bottlenecks by treating the local collection of nodes—the "fog"—as a shared memory pool, using the cloud only as a long-term backing store.

System Architecture and Methods

FLIC is designed as a software layer residing between application code and backend APIs. It provides a transparent API (read, write, update) that mimics a standard relational database, abstracting the complexity of the distributed network.

Key architectural features include:

  • Distributed Fog Caching: The entire fog network acts as a collective cache.
  • Soft Cache Coherence: To minimize network overhead, FLIC tolerates minor data staleness. It utilizes UDP broadcasts for updates, where nodes prioritize the most recent timestamped data.
  • Data-Agnostic Design: The framework is portable across various IoT applications as it handles data generically.

The system was prototyped using Docker containers to simulate a 50-node fog network, with the Google Sheets API serving as a high-latency cloud backing store to simulate realistic backend constraints.

Organization of IoT container nodes within the fog network.

Experimental Evaluation

The authors evaluated FLIC using a simulated workload where nodes generated random data, performing writes every second and random reads every 15 seconds (a 15:1 read-to-write ratio).

Key Results

  • Latency Reduction: Local fog latency remained consistently low at approximately 100ms. In contrast, the cloud backend latency often exceeded 10,000ms, representing a multi-order-of-magnitude improvement.
  • Bandwidth Efficiency: FLIC achieved a reduction of over 50% in WAN data transmission bytes per second.
  • High Availability: In a 50-node configuration, the system maintained a read miss rate of less than 2%, indicating that 98% of requests were satisfied locally within the fog.
Comparison of round-trip latency between the local fog network and the Google Sheets cloud backend.

Discussion and Future Work

FLIC's success stems from embracing unreliability through "soft coherence" and exploiting the spatial and temporal locality of IoT data. By prioritizing local neighbors, the system effectively buffers against slow or unreachable cloud stores.

However, several areas for future research remain:

  • Workload Dependency: The benefits are most pronounced in read-heavy scenarios; write-heavy applications may see diminished returns.
  • Backend Optimization: Using more robust SQL/NoSQL backends instead of Google Sheets could further alter performance dynamics.
  • Real-world Deployment: Future testing should involve actual wireless environments (LTE/5G) to assess the impact of packet loss and interference.
  • Security: Implementing mutual authentication and data integrity protocols is essential for production environments.

Summary updated

BibTeX
@inproceedings{phd2020flic,
  author = {George K. Thiruvathukal, PhD and Jack West and Neil Klingensmith and George K. Thiruvathukal},
  title = {{FLIC: A Distributed Fog Cache for City-Scale Applications}},
  booktitle = {Icfc},
  year = {2020},
  doi = {10.1109/icfc49376.2020.00019},
}
Figure