Abstract
Internet of Things (IoT) devices use advanced sensors to support many applications related to monitoring of health metrics, transportation systems, and industrial parameters. A major challenge in such IoT networks is that the local task processing in IoT devices can lead to increased latency, energy consumption, network congestion, and resource competition. This challenge can be addressed by fog computing as it presents a promising solution by extending cloud capabilities closer to the edge of the network, and therefore, facilitating localized data processing. Addressing the challenge of task allocation and offloading for minimal energy consumption, we propose an effective algorithm for task offloading in D2D-assisted IoT networks that use the stable matching technique, i.e., Gale–Shapley. The D2D communication between the IoT devices and fog nodes (FNs) (in the surrounding) can be established to support IoT devices for task offloading. In particular, we develop novel preference profiles for IoT devices and FNs based on the energy consumption and utilize Gale–Shapley to match IoT devices with FNs. The main idea is to optimize offloading policies to reduce the energy consumption. Through simulations, it is demonstrated that the Gale–Shapley matching reduces the overall energy consumption by about 40–300% compared to the other compared schemes at transmission power of 0 dB.











Similar content being viewed by others
Data Availability
Data are available upon request from authors.
References
Jiang J, Li Z, Tian Y, Al-Nabhan N (2020) A review of techniques and methods for IoT applications in collaborative cloud-fog environment. Secur Commun Netw 2020:1–15
Almutairi J, Aldossary M (2021) A novel approach for IoT tasks offloading in edge-cloud environments. J Cloud Comput 10(1):28
Sarker VK, Queralta JP, Gia TN, Tenhunen H, Westerlund T (2019) Offloading slam for indoor mobile robots with edge-fog-cloud computing. In: Proceedings of the 1st International Conference on Advances in Science, Engineering and Robotics Technology (ICASERT), Dhaka, Bangladesh, pp 1–6
Du J, Zhao JFL, Chu X (2018) Computation offloading and resource allocation in mixed fog/cloud computing systems with min-max fairness guarantee. IEEE Trans Commun 66(4):1594–1608
Desikan KES, Kotagi VJ, Murthy CSR (2022) Decoding the interplay between latency, reliability, cost, and energy while provisioning resources in fog-computing-enabled IoT networks. IEEE Internet Things J 10(3):2404–2416
Agarwal S, Dunagan J, Jain N, Saroiu S, Wolman A, Bhogan H (2010) Volley: automated data placement for geo-distributed cloud services. In: NSDI
Dastjerdi A, Buyya R (2016) Fog computing: helping the internet of things realize its potential. Computer 49(8):112–116
Bali M, Gupta K, Koundal D, Zaguia A, Mahajan S, Pandit A (2021) Smart architectural framework for symmetrical data offloading in IoT. Symmetry 13:1889
Aazam M, Zeadally S, Harras KA (2018) Offloading in fog computing for IoT: review, enabling technologies, and research opportunities. Futur Gener Comput Syst 87:278–289
Flores H, Hui P, Tarkoma S, Li Y, Srirama S, Buyya R (2015) Mobile code offloading: from concept to practice and beyond. IEEE Commun Mag 53:80–88
Kumar K, Liu J, Lu YH, Bhargava B (2013) A survey of computation offloading for mobile systems. Mobile Netw Appl 18:129–140
Tanweer A (2018) A reliable communication framework and its use in internet of things (IoT). Int J Sci Res Comput Sci Eng Inf Technol (IJSRCSEIT) 3:2456–3307
Deng R, Lu R, Lai C, Luan T, Liang H (2016) Optimal workload allocation in fog-cloud computing towards balanced delay and power consumption. IEEE Internet Things J 3(6):1171–1181
Zhang G, Shen F, Yang Y, Qian H, Yao W (2018) Fair task offloading among fog nodes in fog computing networks. In: Proceedings IEEE International Conference Communications (ICC) (Kansas City, MO, 2018), pp 1–6
Zhou J, Zhang X, Wang W, Zhang Y (2019) Energy-efficient collaborative task offloading in D2D-assisted mobile edge computing networks. In: Proceedings of the IEEE Wireless Communications and Networking Conference (WCNC) (Marrakesh, Morocco, 2019), pp 1–6
Saleem U, Liu Y, Jangsher S, Tao X, Li Y (2020) Latency minimization for D2D-enabled partial computation offloading in mobile edge computing. IEEE Trans Veh Technol 69(4):4472–4486
Dubey R, Mishra PK, Pandey S (2022) An energy efficient scheme by exploiting multi-hop D2D communications for 5G networks. Phys Commun 51:101576
Fan N, Wang X, Wang D, Lan Y, Hou J (2020) A collaborative task offloading scheme in D2D-assisted fog computing networks. In: Proceedings IEEE Wireless Communications and Networking Conference (WCNC), Seoul, Korea (South), pp 1–6
Eng H, Liu Y, Liu A, Xiong NN, Cai Z, Wang T, Liu X (2019) A novel code data dissemination scheme for internet of things through mobile vehicle of smart cities. Futur Gener Comput Syst 94:351–367
Idwan S, Mahmood I, Zubairi JA, Matar I (2020) Optimal management of solid waste in smart cities using internet of things. Wirel Pers Commun 110(1):485–501
Islam SU, Pierson JM (2012) Evaluating energy consumption in CDN servers. In: Proceedings of International Conference on Information and Communication on Technology. Springer, Vienna, pp 64–78
Somula R, Anilkumar C, Venkatesh B, Karrothu A, Kumar CP, Sasikala R (2019) Cloudlet services for healthcare applications in mobile cloud computing. In: Proceedings of the 2nd International Conference on Data Engineering and Communication Technology, Singapore, pp 535–543
Baccarelli E, Naranjo PGV, Scarpiniti M, Shojafar M, Abawajy JH (2017) Fog of everything: energy-efficient networked computing architectures, research challenges, and a case study. IEEE Access 5:9882–9910
Mahmud R, Srirama SN, Ramamohanarao K, Buyya R (2019) Quality of experience (QoE)-aware placement of applications in fog computing environments. J Parallel Distrib Comput 132:190–203
Ren J, Yu G, Cai Y, He Y (2018) Latency optimization for resource allocation in mobile-edge computation offloading. IEEE Trans Wirel Commun 17(8):5506–5519
Mukherjee M, Kumar S, Mavromoustakis CX, Mastorakis G, Matam R, Kumar V, Zhang Q (2019) Latency-driven parallel task data offloading in fog computing networks for industrial applications. IEEE Trans Indust Inf 16(9):6050–6058
Naranjo PGV, Baccarelli E, Scarpiniti M (2018) Design and energy-efficient resource management of virtualized networked fog architectures for the real-time support of IoT applications. J Supercomput 74(6):2470–2507
Lyu X, Tian H, Ni W, Zhang Y, Zhang P, Liu RP (2018) Energy-efficient admission of delay-sensitive tasks for mobile edge computing. IEEE Trans Commun 66(6):2603–2616
Nan Y, Li W, Bao W, Delicato FC, Pires PF, Dou Y, Zomaya AY (2017) Adaptive energy-aware computation offloading for cloud of things systems. IEEE Access 5:23947–23957
Wan J, Chen B, Wang S, Xia M, Li D, Liu C (2018) Fog computing for energy-aware load balancing and scheduling in smart factory. IEEE Trans Industr Inf 14(10):4548–4556
Conti S, Faraci G, Nicolosi R, Rizzo SA, Schembra G (2017) Battery management in a green fog-computing node: a reinforcement-learning approach. IEEE Access 5:21126–21138
Yang Y, Zhao S, Zhang W, Chen Y, Luo X, Wang J (2018) DEBTS: delay energy balanced task scheduling in homogeneous fog networks. IEEE Internet Things J 5(3):2094–2106
Wang S, Huang X, Liu Y, Yu R (2016) CachinMobile: an energy-efficient users caching scheme for fog computing. In: Proceedings of International Conference on Communications in China (ICCC). IEEE, Chengdu, pp 1–6
Yang Y, Wang K, Zhang G, Chen X, Luo X, Zhou MT (2018) Maximal energy efficient task scheduling for homogeneous fog networks. In: Proceedings of Conference on Computer Communications Workshops (INFOCOM WKSHPS). IEEE, Honolulu, pp 274–279
Pooranian Z, Shojafar M, Naranjo PGV, Chiaraviglio L, Conti M (2017) A novel distributed fog-based networked architecture to preserve energy in fog data centers. In: Proceedings of International Conference on Mobile Ad Hoc and Sensor Systems (MASS). IEEE, Orlando, Florida and USA, pp 604–609
Yu Y, Bu X, Yang K, Han Z (2018) Green fog computing resource allocation using joint benders decomposition, dinkelbach algorithm, and modified distributed inner convex approximation. In: Proceedings of IEEE International Conference on Communications (ICC). IEEE, Kansas, pp 1–6
Pittel B (2021) One-sided version of gale-shapley proposal algorithm and its likely behavior under random preferences. Discrete Appl Math 292:1–18. https://doi.org/10.1016/j.dam.2020.12.020
Funding
This work was supported and funded by the Deanship of Scientific Research at Imam Mohammad Ibn Saud Islamic University (IMSIU) (Grant Number IMSIU-RP23117).
Author information
Authors and Affiliations
Contributions
TS, JM, WO, and MA developed the concept and framework; TS and JM carried out simulation work; TS, JM, and WO wrote the original draft; and M.A. reviewed the manuscript and provided valuable comments.
Corresponding author
Ethics declarations
Ethical approval
Not applicable.
Conflict of interest
None.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Shafaq, T., Mirza, J., Obidallah, W.J. et al. An energy-efficient task offloading in D2D-assisted IoT networks using matching algorithms. J Supercomput 81, 568 (2025). https://doi.org/10.1007/s11227-025-06990-9
Accepted:
Published:
DOI: https://doi.org/10.1007/s11227-025-06990-9