Characterizing Task Completion Latencies in Fog Computing

Maria Gorlatova, Hazer Inaltekin, Mung ChiangarXiv 2018

Abstract

Fog computing aims to extend cloud capabilities to the network edge, yet the statistical nature of task completion latencies in these heterogeneous environments remains under-explored. This paper provides a comprehensive quantitative characterization of latencies across the "cloud-to-things" continuum. Through extensive empirical benchmarking, the authors reveal that latency distributions consistently follow Generalized Extreme Value (GEV) models. Furthermore, they propose the Capacitated Task Admission and Placement (C-TAP) framework, which co-optimizes task quality and timeliness, significantly outperforming traditional heuristics.

Introduction

While fog computing promises reduced latency by processing data closer to the source, designing efficient task-assignment algorithms is hindered by a lack of rigorous understanding of actual completion times. Most existing research oversimplifies latency as a static value or a simple linear shift. This study addresses the gap by investigating the variability, stability, and distribution of latencies across diverse nodes, including local gateways, on-premise servers, and serverless cloud functions.

Methodology and Architecture

The researchers employed a two-pronged approach involving empirical benchmarking and mathematical modeling. Over 1,000 hours of measurements were collected using three types of "mini-benchmarks"—$\pi$ Calculations (PIC), Process Stored File (PSF), and File Send-and-Process (FSP)—representing CPU, memory, and communication bottlenecks.

Fog computing architecture with local and cloud execution points

Execution points spanned a wide range of hardware and locations:

  • Local: Raspberry Pi 3 gateways and Dell PowerEdge local servers.
  • Cloud: AWS EC2 (conventional) and AWS Lambda/Azure Functions (serverless).
  • Environments: 10 distinct settings, including university campuses, residential areas, and even active flights to capture diverse network conditions.

Key Insights: The GEV Distribution and Serverless Dynamics

A primary finding of the study is that task latencies in fog environments consistently follow Generalized Extreme Value (GEV) distributions. This fit is attributed to the fact that cloud and fog service times often involve the "min/max" of various underlying infrastructure performance factors.

Comparison of experimental latency data with Generalized Extreme Value (GEV) distributions for AWS EC2 and Lambda

Additional insights include:

  • The Serverless Paradox: Unlike traditional systems, serverless functions often respond faster as invocation frequency increases. This is due to "warm starts," where frequently used functions remain in memory, avoiding the significant latency penalty of "cold starts."
  • Stability vs. Step Changes: While latency characteristics are generally stable over short periods, they can experience sudden "step changes" (e.g., 6x-10x increases) due to resource sharing in multi-tenant cloud environments.
  • Network Quality over Geography: Physical proximity does not always guarantee lower latency; high-quality network backhaul can make a distant cloud region more responsive than a local residential node.

Optimization Framework: C-TAP

To leverage these insights, the authors formulated the Capacitated Task Admission and Placement (C-TAP) problem. This framework uses a utility function to balance intrinsic task quality with time-sensitivity. They developed a dynamic programming-based algorithm, Assign-Tasks (AT), to solve this NP-hard problem for nodes with finite capacity.

In simulations using real-world data, the C-TAP approach achieved an average utility of 0.5078, outperforming "min-latency only" (0.4677) and "max-quality only" (0.4415) heuristics. The algorithm effectively identifies scenarios where sacrificing minor task quality leads to a significantly higher probability of meeting strict deadlines.

Conclusion and Future Work

This research provides a foundational dataset and modeling approach for understanding fog computing performance. While the mini-benchmarks effectively isolate resource bottlenecks, future work should explore more complex, multi-stage applications like real-world AI or Augmented Reality. Additionally, incorporating energy consumption models for battery-powered IoT devices remains a critical next step for optimizing the "things" side of the continuum.

Summary updated

BibTeX
@misc{gorlatova2018characterizing,
  author = {Maria Gorlatova and Hazer Inaltekin and Mung Chiang},
  title = {{Characterizing Task Completion Latencies in Fog Computing}},
  year = {2018},
  eprint = {1811.02638},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.02638},
}
Figure