Intelligent Task Dispatching and Scheduling Using a Deep Q-Network in a Cluster Edge Computing System
Abstract
:1. Introduction
- 1
- The cluster edge system is investigated using the clustering technique. Compared with the existing non-cluster edge system with the limitations of resource scalability, the cluster edge system has the advantage of being able to flexibly use the computing resources of the cluster edge system by joining the number of edge nodes within a cluster.
- 2
- The optimization problem related to the resource allocation policy for the cluster edge system is formulated. The aim is to optimize the resource allocation policy considering the resource scalability and resource optimization in a cluster edge system. The formulated problem is based on the Markov decision process (MDP), which is solved by our proposed deep Q-network (DQN) optimization algorithm.
- 3
- A deep Q-network (DQN)-based intelligent task dispatching method is proposed. To evaluate the proposed model, a mathematical model-based simulator is developed. The simulations for a performance evaluation are to validate the mathematical formulation and the DQN based algorithm for task dispatching. Simulation results show that the proposed method can achieve the optimal performance for average task service delays and average task completion rate in terms of the utility of computing resources in the cluster edge system.
2. Related Work
3. System Model and Problem Statement
3.1. Cluster Edge Computing System and Network Model
3.2. Task Model
3.3. Computation Offloading Model
Intelligent Task Dispatching Model for Computation Offloading
3.4. Optimization Problem Formulation
4. Drl-Based Task Dispatching Method in the Cluster Edge
4.1. Markov Decision Process
4.2. A Drl-Based Task Dispatching Method Using DQN
Algorithm 1 Intelligent task dispatching algorithm in the cluster edge |
Input: the number of edge node, computing ability of edge nodes, radio bandwidth resource, parameters for the task setting Output: edge node selection
|
5. Performance Evaluation and Comparison
- Random Method (RM): Dispatch the offloaded task to the randomly elected edge node;
- Least Load Method (LLM): Dispatch the offloaded task to the edge node with minimal waiting queue time;
- Round-Robin Method (RRM): Dispatch the offloaded task in the sequence of edge node.
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Abbreviations
AI | Artificial Intelligence |
AR | Augmented Reality |
BS | Base Station |
DDM | DRL based intelligent task Dispatching Method |
DNN | Deep Neural Network |
DPT | Decision Processing Time |
DQN | Deep Q-Network |
DRL | Deep Reinforcement Learning |
ERM | Experience Replay Memory |
LLM | Least Load Method |
MDP | Markov Decision Process |
MEC | Mobile Edge Computing |
MN | Mobile Node |
RM | Random Method |
RRM | Round-Robin Method |
QoS | Quality of Service |
VR | Virtual Reality |
References
- Liu, Y.; Peng, M.; Shou, G.; Chen, Y.; Chen, S. Toward Edge Intelligence: Multiaccess Edge Computing for 5G and Internet of Things. IEEE Internet Things J. 2020, 7, 6722–6747. [Google Scholar] [CrossRef]
- Shi, W.; Cao, J.; Zhang, Q.; Li, Y.; Xu, L. Edge Computing: Vision and Challenges. IEEE Internet Things J. 2016, 3, 637–646. [Google Scholar] [CrossRef]
- Abbas, N.; Zhang, Y.; Taherkordi, A.; Skeie, T. Mobile Edge Computing: A Survey. IEEE Internet Things J. 2018, 5, 450–465. [Google Scholar] [CrossRef] [Green Version]
- Mao, Y.; You, C.; Zhang, J.; Huang, K.; Letaief, B.K. A survey on mobile edge computing: The communication perspective. IEEE Commun. Surv. Tutor. 2017, 19, 2322–2358. [Google Scholar] [CrossRef] [Green Version]
- Yu, W.; Liang, F.; He, X.; Hatchaer, G.W.; Lu, C.; Lin, J.; Yang, X. A Survey on the Edge Computing for the Internet of Things. IEEE Access 2017, 6, 6900–6919. [Google Scholar] [CrossRef]
- Naha, K.R.; Garg, S.; Georgakopoulos, D.; Jayaraman P., P.; Gao, L.; Xiang, Y.; Ranjan, R. Fog Computing: Survey of Trends, Architectures, Requirements, and Research Directions. IEEE Access 2018, 6, 47980–48009. [Google Scholar] [CrossRef]
- Lin, J.; Yu, W.; Zhang, N.; Yang, X.; Zhang, H.; Zhao, W. A Survey on Internet of Things: Architecture, Enabling Technologies, Security and Privacy, and Applications. IEEE Internet Things J. 2017, 4, 1125–1142. [Google Scholar] [CrossRef]
- Deng, S.; Huang, L.; Taheri, J.; Zomaya, Y. Albert. Computation Offloading for Service Workflow in Mobile Cloud Computing. IEEE Trans. Parallel Distrib. Syst. 2014, 26, 3317–3329. [Google Scholar] [CrossRef]
- Alfakih, T.; Hassan, M.M.; Gumaei, A.; Savaglio, C.; Fortino, G. Task Offloading and Resource Allocation for Mobile Edge Computing by Deep Reinforcement Learning Based on SARSA. IEEE Access 2020, 8, 54074–54084. [Google Scholar] [CrossRef]
- Li, Y.; Qi, F.; Wang, Z.; Yu, X.; Shao, S. Distributed Edge Computing Offloading Algorithm Based on Deep Reinforcement Learning. IEEE Access 2020, 8, 85204–85215. [Google Scholar] [CrossRef]
- Xiong, X.; Zheng, K.; Lei, L.; Hou, L. Resource Allocation Based on Deep Reinforcement Learning in IoT Edge Computing. IEEE J. Sel. Areas Commun. 2020, 38, 1133–1146. [Google Scholar] [CrossRef]
- Chen, J.; Chen, S.; Wang, Q.; Cao, B.; Feng, G.; Hu, J. iRAF: A Deep Reinforcement Learning Approach for Collaborative Mobile Edge Computing IoT Networks. IEEE Internet Things J. 2019, 6, 7011–7024. [Google Scholar] [CrossRef]
- Sheng, S.; Chen, P.; Chen, Z.; Wu, L.; Yao, Y. Deep Reinforcement Learning-Based Task Scheduling in IoT Edge Computing. Sensors 2021, 21, 1666. [Google Scholar] [CrossRef] [PubMed]
- Kubernetes. 2019. Available online: https://kubernetes.io/ (accessed on 23 March 2022).
- Clusters at the Edge. Available online: https://www.ibm.com/cloud/blog/clusters-at-the-edge (accessed on 23 March 2022).
- Docker Awarm. 2019. Available online: https://github.com/docker/swarm (accessed on 23 March 2022).
- He, X.; Tu, Z.; Xu, X.; Wang, Z. Programming framework and infrastructure for self-adaptation and optimized evolution method for microservice systems in cloud–edge environments. Future Gener. Comput. Syst. 2021, 118, 263–281. [Google Scholar] [CrossRef]
- Liu, C.; Tang, F.; Hu, Y.; Li, K.; Tang, Z.; Li, K. Distributed Task Migration Optimization in MEC by Extending Multi-Agent Deep Reinforcement Learning Approach. IEEE Trans. Parallel Distrib. Syst. 2021, 32, 1603–1614. [Google Scholar] [CrossRef]
- Tian, K.; Chai, H.; Liu, Y.; Liu, B. Edge Intelligence Empowered Dynamic Offloading and Resource Management of MEC for Smart City Internet of Things. Electronics 2022, 11, 879. [Google Scholar] [CrossRef]
- Chen, Y.; Liu, Z.; Zhang, Y.; Wu, Y.; Chen, X.; Zhao, L. Deep reinforcement learning-based dynamic resource management for mobile edge computing in industrial internet of things. IEEE Trans. Ind. Inform. 2021, 17, 4925–4934. [Google Scholar] [CrossRef]
- Dai, Y.; Zhang, K.; Maharjan, S.; Zhang, Y. Edge intelligence for energy-efficient computation offloading and resource allocation in 5G beyond. IEEE Trans. Veh. Technol. 2020, 69, 12175–12186. [Google Scholar] [CrossRef]
- Chiang, Y.; Zhang, T.; Ji, Y. Joint Cotask-Aware Offloading and Scheduling in Mobile Edge Computing Systems. IEEE Access. 2019, 7, 105008–105018. [Google Scholar] [CrossRef]
- Abdel-Basset, M.; Mohamed, R.; Elhoseny, M.; Bashir, A.K.; Jolfaei, A.; Kumar, N. Energy-Aware Marine Predators Algorithm for Task Scheduling in IoT-based Fog Computing Applications. IEEE Trans. Ind. Inform. 2021, 7, 5068–5076. [Google Scholar] [CrossRef]
- Meng, J.; Tan, H.; Li, X.; Han, Z.; Li, B. Online Deadline-Aware Task Dispatching and Scheduling in Edge Computing. IEEE Trans. Parallel Distrib. Syst. 2020, 31, 1270–1286. [Google Scholar] [CrossRef]
- Yang, B.; Cao, X.; Bassey, J.; Li, X.; Kroecker, T.; Qian, L. Computation Offloading in Multi-Access Edge Computing Networks: A Multi-Task Learning Approach. In Proceedings of the ICC 2019—2019 IEEE International Conference on Communications (ICC), Shanghai, China, 20–24 May 2019; pp. 1–6. [Google Scholar] [CrossRef]
- Symeonides, M.; Georgiou, Z.; Trihinas, D.; Pallis, G.; Dikaiakos, M.D. Fogify: A Fog Computing Emulation Framework. In Proceedings of the 2020 IEEE/ACM Symposium on Edge Computing (SEC), San Jose, CA, USA, 12–14 November 2020; pp. 42–54. [Google Scholar]
Work | Objective | Algorithm | Environments |
---|---|---|---|
Our work | Average task service delay and average task completion rate for cluster edge | DQN | Static, Dynamic |
[9] | Average task service delay for collaborative edge | SARSA | Static, Dynamic |
[10] | Task service delay for distributed edge | DDPG | Dynamic |
[11] | Resource utilization for an edge | DQN | Static |
[12] | Average task service delay for collaborative edge | MCTS | Static, Dynamic |
[13] | Task satisfaction degree for an edge | Q-network | Static, Dynamic |
[18] | Service Migration Optimization for collaborative edge | Multi-Agent DRL | Static, Dynamic |
[20] | Average task service delay for an edge | DRL | Dynamic |
[21] | Energy consumption for an edge | DRL | Dynamic |
Notation | Definition |
---|---|
The ith MN at the ith BS | |
The edge controller in the cluster edge | |
nth edge node in the cluster edge | |
Collaborative core Cloud | |
Task of offloaded to the cluster edge | |
The type of the task | |
The number of CPU cycles requested in the single task | |
The number of CPU cycles requested kth sub-task in the bundle task | |
The data size of the single task | |
The data size of kth sub-task in the bundle task | |
The task’s result deadline in the task required by | |
The wireless link bandwidth between ith MN and ith BS | |
The transmit power of | |
The channel gain of MN and jth BS | |
Task service delay of | |
kth sub-task service delay of set as the bundle task | |
Bundle task service delay of | |
The task transmission delay | |
The task queuing delay | |
The task computation processing delay | |
The queuing delay in the task waiting queue of edge controller | |
The queuing delay in the task waiting queue of nth edge node | |
The computation processing time of mth task | |
The total computing resource of nth edge node | |
The queuing delay in edge controller | |
∼ | The queuing delay in nth edge node |
The average task service delay |
Parameters | Description | Value |
---|---|---|
The number of static nodes for non-mobility scenario | 50 | |
The number of mobile nodes for mobility scenario | ||
M | The number of sub-tasks in bundle task | |
N | The number of edge nodes in cluster edge | |
The data size of the task | ||
The total number of CPU cycles requested to serve task | ||
The tolerant service delay of offloading task required by |
Parameters | Description | Value |
---|---|---|
The number of iterations | 5000 | |
Learning rate | 0.005 | |
K | The size of experience replay memory | 10.000 |
B | The number of mini-batches | 8 |
N | The size of mini-batches | 32 |
Factor discounting future rewards | 0.9 | |
Step parameters | 1500 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Youn, J.; Han, Y.-H. Intelligent Task Dispatching and Scheduling Using a Deep Q-Network in a Cluster Edge Computing System. Sensors 2022, 22, 4098. https://doi.org/10.3390/s22114098
Youn J, Han Y-H. Intelligent Task Dispatching and Scheduling Using a Deep Q-Network in a Cluster Edge Computing System. Sensors. 2022; 22(11):4098. https://doi.org/10.3390/s22114098
Chicago/Turabian StyleYoun, Joosang, and Youn-Hee Han. 2022. "Intelligent Task Dispatching and Scheduling Using a Deep Q-Network in a Cluster Edge Computing System" Sensors 22, no. 11: 4098. https://doi.org/10.3390/s22114098
APA StyleYoun, J., & Han, Y. -H. (2022). Intelligent Task Dispatching and Scheduling Using a Deep Q-Network in a Cluster Edge Computing System. Sensors, 22(11), 4098. https://doi.org/10.3390/s22114098