Introduction
Emerging Internet-of-Things (IoT) applications, such as augmented reality (AR), virtual reality (VR), and autonomous driving, demand intensive computation under strict millisecond-level latency constraints. To meet these requirements, mobile devices (MDs) offload tasks to nearby Edge Servers (ES). However, managing these servers is complex due to the heterogeneous nature of IoT traffic: tasks arrive randomly, have diverse deadlines, and require varying CPU cycles. This paper proposes a dynamic resource allocation algorithm based on Lyapunov optimization to minimize task timeout probabilities without requiring prior knowledge of task arrival patterns or exact computation requirements.
System Architecture and the Offloading Problem
In a typical Mobile Edge Computing (MEC) environment, multiple MDs compete for the limited resources of an ES. As shown in Figure 1, the user side involves task generation and offloading decisions, while the edge side must manage dynamic computation resources to process these incoming tasks efficiently.
The primary challenge lies in the unpredictability of the tasks. For instance, the CPU cycles required for object detection in a video frame vary significantly based on the image content, not just the data size. Traditional queuing models often fail to handle this variability effectively.
Limitations of Traditional Queuing Models
Standard approaches to resource management at the Edge Server typically fall into three categories, as illustrated in Figure 3:
- Sequential Processing: Tasks are processed one by one. This can lead to "head-of-line blocking," where a large, complex task prevents smaller, more urgent tasks from being completed before their deadlines.
- Parallel Processing: The CPU is divided into fixed slices for different task types. This is inefficient if one queue is empty while another is overloaded.
- Sharing: CPU resources are divided equally among all active queues. This fails to prioritize tasks with tighter deadlines or higher computational urgency.
Proposed Dynamic Resource Allocation
To overcome these limitations, the authors introduce a dynamic queuing model controlled by a Lyapunov optimization algorithm. Instead of static partitioning, the ES dynamically allocates computing power to different task queues on a slot-by-slot basis. The algorithm uses current queue lengths and estimated waiting times to make scheduling decisions, effectively stabilizing the system without needing "non-causal" knowledge of future task arrivals.
A key innovation is selective task dropping. Before each time slot, the system checks the task at the head of each queue. If a task has already waited so long that it cannot possibly meet its deadline—even with maximum CPU allocation—it is dropped. This prevents the server from wasting resources on "doomed" tasks, freeing up capacity for tasks that can still be completed on time.
Key Results and Insights
The proposed dynamic algorithm significantly outperforms traditional models. Simulations parameterized by real-world profiling of object detection models demonstrate:
- Reduced Timeouts: The dynamic algorithm reduces timeout probability by at least 35% compared to Sequential, Parallel, and Sharing models.
- Efficiency under High Load: Under a 90% traffic load, the dynamic model with selective dropping maintained a timeout probability of ~0.15%, whereas the Sequential model reached ~1.0% and the Parallel model reached ~5.6%.
- Resource Optimization: By avoiding unnecessary computation on tasks that will inevitably time out, the system minimizes wasted computation capacity and approaches the performance of an idealized "non-causal" oracle.
Conclusion
Dynamic resource allocation is essential for handling the heterogeneous and unpredictable demands of modern IoT services in MEC. By combining Lyapunov optimization with selective task dropping, edge servers can drastically reduce timeout probabilities and improve overall system efficiency. Future work may extend this framework to multi-server collaborative environments and incorporate device mobility.
Summary updated