Document Type : Research Paper
Department of Computer Engineering, Kerman Branch, Islamic Azad University, Kerman, Iran.
Department of Computer Engineering, Shahid Bahonar University of Kerman, Kerman, Iran.
Fog computing is a method for improving cloud computations performance attempts to expand the Internet of things processes and distribute cloud services in the network edge. This paper proposes a real-time outsourcing and offloading mechanism to optimize the cache and CPU consumption in resource allocation to IoT users in a fog-based processing environment. Based on this mechanism, the computations that require heavy processing are moved to the network edge, and computations with lower processing needs are processed inside user devices. According to the simulation results, the average users' average service latency in the proposed method SPA-(Offloading) for 200 users has been improved in the range of 0.8 to 0.6. In addition, the profits of cloud and fog service providers for 220 users are higher than other methods. Also, the average system cost performance was evaluated, which is better than the other methods. The results show that this mechanism improves cache consumption, processing time, and optimal resource allocation to IoT users.