The Internet of Things (IoT) has connected millions of devices to the internet for communication and computation purposes. Due to constraints such as limited battery power, processing capabilities, and storage capacity, IoT devices often rely on remote fog nodes for task execution, a practice known as task offloading. The NP-hard nature of offloading and scheduling IoT tasks onto fog nodes poses significant challenges. Current IoT task offloading often relies on single parameters like device MIPS, RAM, or battery power. Similarly, task allocation on fog nodes frequently prioritizes VM MIPS. To address energy consumption and task failures in IoT systems, robust fault tolerance, efficient task offloading, and effective scheduling are crucial. This paper introduces a novel Fault-Tolerant, Priority-Based Task Offloading and Scheduling Model (FP-TOSM) for IoT logistics. Utilizing the Analytic Hierarchy Process (AHP) for multi-criteria decision-making, IoT tasks are prioritized. Tasks below a specified threshold are executed locally, while those within a defined range are offloaded to a fog node. Tasks exceeding this range are delegated to the cloud. The Euclidean formula is used to determine the proximity between the IoT logistics vehicle and fog nodes for offloading decisions. Dynamic re-clustering fault tolerance mechanisms are utilized to manage task failures after offloading. Successful offloaded tasks are allocated to suitable VMs in the cloud and fog nodes. The proposed strategy selects the most suitable VM for offloaded tasks using a multi-criteria decision-making process to reduce energy consumption, SLA violations, and execution costs. The model's performance is evaluated through simulations in iFogSim2. Results demonstrate reductions in energy consumption by up to 5.8 % and 10.4 %, decreases in SLA violations by up to 25.2 %, and a 16.28 % improvement in response time compared to an ACO-based model with a response time of 17.8 %. Additionally, the task failure ratio shows a significant reduction of up to 22.1 %. These findings highlight the effectiveness of FP-TOSM in enhancing efficiency and reliability within fog computing environments.
Read full abstract