Abstract
The proliferation of Internet of Things (IoT) devices necessitates efficient task scheduling across heterogeneous Edge, Fog, and Cloud layers to meet low-latency requirements. This paper introduces DRLIS (Deep Reinforcement Learning-based IoT application Scheduling), an algorithm utilizing Proximal Policy Optimization (PPO) to manage complex task dependencies modeled as Directed Acyclic Graphs (DAGs). DRLIS optimizes a weighted cost function balancing server load and application response time. Implemented within the FogBus2 framework, DRLIS demonstrates a 50% reduction in total cost and significantly faster convergence compared to traditional metaheuristic and standard reinforcement learning methods.
Introduction
As the Internet of Things (IoT) grows, relying solely on distant Cloud servers creates unacceptable latency for real-time applications like autonomous driving or smart healthcare. Edge and Fog computing solve this by bringing processing closer to the devices. However, this creates a massive scheduling challenge due to the heterogeneity of servers (ranging from Raspberry Pis to AWS instances), unpredictable network dynamics, and complex task dependencies. Most IoT applications are not single tasks but chains of dependent components, such as a video stream requiring decoding before face detection. Finding an optimal schedule in this environment is an NP-hard problem that traditional metaheuristic algorithms often fail to solve in real-time.
Methodology: The DRLIS Framework
The authors propose DRLIS to address these challenges through several key technical components:
DAG Modeling and Cost Function
Applications are modeled as Directed Acyclic Graphs (DAGs) to account for data flow and execution order between tasks. This ensures that dependencies are respected during the scheduling process.
To evaluate scheduling quality, the researchers developed a novel weighted cost model. This model combines normalized scores for Load Balancing (the variance in CPU and RAM usage across the server set) and Response Time (total latency). This allows administrators to tune the system based on specific priorities, such as energy efficiency or user experience.
Proximal Policy Optimization (PPO)
Unlike standard Deep Q-Networks (DQN) which can be unstable, DRLIS utilizes PPO for its stability and efficiency in discrete action spaces. PPO uses a "clipped surrogate objective" to prevent the policy from changing too drastically in a single update, ensuring smoother learning in noisy Fog environments.
FogBus2 Integration
The algorithm was implemented as a practical scheduler within the FogBus2 framework, a container-based environment for integrated edge-fog-cloud computing. This demonstrates that DRLIS can handle the overhead of actual container management and network messaging in real-world deployments.
Evaluation and Results
DRLIS was evaluated using four vision-based IoT applications: Face Detection, Color Tracking, Face and Eye Detection, and Video OCR. The testbed included a heterogeneous mix of Raspberry Pi 3B nodes, MacBook Pro (M1) laptops, Linux VMs, and cloud instances from AWS and Nectar Cloud.
Key experimental results include:
- Cost Reduction: DRLIS reduced execution costs by up to 55% in load balancing and 50% in total weighted cost compared to metaheuristic counterparts like NSGA2 and NSGA3.
- Convergence Speed: DRLIS reached a stable state in roughly 20 iterations, whereas DQN required over 80, and metaheuristics often failed to converge in dynamic scenarios.
- Efficiency: The scheduling overhead (decision time) was 50% lower than metaheuristic methods, making it viable for high-velocity IoT environments.
Conclusion and Future Work
DRLIS proves that Deep Reinforcement Learning can effectively manage the complexities of Edge-Fog-Cloud scheduling. While the current model focuses on CPU and RAM, future work will incorporate GPU resource usage to better support AI-heavy IoT applications. Additionally, the authors plan to explore distributed DRL approaches to further improve scalability and fault tolerance in decentralized environments.
Summary updated