A Dynamic Service Offloading Algorithm Based on Lyapunov Optimization in Edge Computing

Peiyan Yuan, Ming Li, Chenyang Wang, Ledong An, Xiaoyan Zhao, Junna Zhang, Xiangyang Li, Huadong MaarXiv 2025 · DOI

Abstract

In the era of 5G and the Internet of Things (IoT), edge computing faces significant challenges in managing unpredictable task arrivals and server congestion. This paper introduces the Lyapunov Dynamic Service Offloading (LDSO) algorithm, a novel approach for horizontal offloading among edge servers. LDSO utilizes the Lyapunov Drift-Plus-Penalty framework to transform long-term cost minimization into real-time decisions, effectively balancing energy consumption, latency, and queue stability. Simulations based on real-world traffic data show that LDSO outperforms existing strategies by 10% in cost efficiency and maintains superior system stability.

Introduction

As 5G and IoT devices proliferate, the "edge"—the layer of servers physically close to users—is becoming increasingly crowded. When an edge server is overwhelmed by requests, it can offload tasks to neighboring servers, a process known as horizontal offloading. However, most existing strategies face a "stability vs. cost" dilemma. Focusing solely on energy and delay can lead to server buffer (queue) overflows, causing dropped tasks and massive delays. Conversely, focusing only on queue stability may lead to expensive, energy-intensive decisions. The authors address this by proposing a real-time offloading strategy for dynamic, multi-hop environments where task arrival rates are unpredictable.

The LDSO Framework

The researchers developed the Lyapunov Dynamic Service Offloading (LDSO) algorithm to manage these trade-offs. The system operates across a three-layer architecture: the Sensory Layer (devices), the Edge Layer (base stations and servers), and the Control Layer (management).

Three-layer network architecture for edge computing

The core of LDSO is the Lyapunov Optimization (Drift-Plus-Penalty) engine. This mathematical framework transforms a complex, long-term optimization problem—minimizing average cost over time—into a series of simple, real-time decisions. A key feature is the control parameter ($V$), which acts as a "knob" for network performance: a higher $V$ prioritizes lower costs at the expense of longer queues, allowing operators to tune the system based on hardware constraints.

To execute these decisions, LDSO incorporates multi-hop cost modeling (accounting for energy and delay across multiple server "hops") and a greedy matching algorithm to assign tasks to the most qualified servers in each time slot.

Experimental Evaluation

The authors validated LDSO using a simulation based on the Shanghai Telecom dataset, modeling a network of multiple Small Base Stations (SBSs). The simulation ran for 1,000 time slots (1ms each) with task arrivals following a Poisson distribution to reflect real-world traffic fluctuations.

Key Results

  • Cost Efficiency: LDSO reduced total system cost (weighted energy and delay) by an average of 10% compared to state-of-the-art algorithms like DSARA and MECNC.
  • Higher Throughput: The algorithm offloaded approximately 18.75% more data on average than competing methods, demonstrating superior scalability.
  • System Stability: LDSO maintained smaller and more consistent buffer sizes (around 1,600 blocks) even as workloads increased, whereas other methods exhibited volatile backlogs.
  • Rapid Convergence: The system reached a stable state within just 50 to 100 time slots, making it highly suitable for dynamic environments.

Discussion and Future Work

The LDSO algorithm demonstrates that horizontal cooperation among edge servers significantly improves resource utilization, especially during bursty task arrivals. By treating stability as a core constraint rather than an afterthought, the algorithm ensures that queues remain "strongly stable" (i.e., they do not grow to infinity).

While robust, the current model primarily focuses on server-side dynamics. Future research could integrate high-speed user mobility (e.g., vehicular networks) and explore Deep Reinforcement Learning (DRL) to further refine the greedy matching process. Additionally, addressing the security implications of offloading sensitive data to cooperative servers remains a critical area for future exploration.

Summary updated

BibTeX
@misc{yuan2025dynamic,
  author = {Peiyan Yuan and Ming Li and Chenyang Wang and Ledong An and Xiaoyan Zhao and Junna Zhang and Xiangyang Li and Huadong Ma},
  title = {{A Dynamic Service Offloading Algorithm Based on Lyapunov Optimization in Edge Computing}},
  year = {2025},
  eprint = {2509.10475},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.10475},
}
Figure