@Article{cmc.2023.035602, AUTHOR = {Samah Ibrahim AlShathri, Dina S. M. Hassan, Samia Allaoua Chelloug}, TITLE = {Latency-Aware Dynamic Second Offloading Service in SDN-Based Fog Architecture}, JOURNAL = {Computers, Materials \& Continua}, VOLUME = {75}, YEAR = {2023}, NUMBER = {1}, PAGES = {1501--1526}, URL = {http://www.techscience.com/cmc/v75n1/51503}, ISSN = {1546-2226}, ABSTRACT = {Task offloading is a key strategy in Fog Computing (FC). The definition of resource-constrained devices no longer applies to sensors and Internet of Things (IoT) embedded system devices alone. Smart and mobile units can also be viewed as resource-constrained devices if the power, cloud applications, and data cloud are included in the set of required resources. In a cloud-fog-based architecture, a task instance running on an end device may need to be offloaded to a fog node to complete its execution. However, in a busy network, a second offloading decision is required when the fog node becomes overloaded. The possibility of offloading a task, for the second time, to a fog or a cloud node depends to a great extent on task importance, latency constraints, and required resources. This paper presents a dynamic service that determines which tasks can endure a second offloading. The task type, latency constraints, and amount of required resources are used to select the offloading destination node. This study proposes three heuristic offloading algorithms. Each algorithm targets a specific task type. An overloaded fog node can only issue one offloading request to execute one of these algorithms according to the task offloading priority. Offloading requests are sent to a Software Defined Networking (SDN) controller. The fog node and controller determine the number of offloaded tasks. Simulation results show that the average time required to select offloading nodes was improved by 33% when compared to the dynamic fog-to-fog offloading algorithm. The distribution of workload converges to a uniform distribution when offloading latency-sensitive non-urgent tasks. The lowest offloading priority is assigned to latency-sensitive tasks with hard deadlines. At least 70% of these tasks are offloaded to fog nodes that are one to three hops away from the overloaded node.}, DOI = {10.32604/cmc.2023.035602} }