Summary
The traditional centralized cloud computing (CC) model faces a range of problems with the exponential growth of the Internet of Things (IoT) applications, like high latency, reduced bandwidth, and network instability. Fog computing (FC) takes the cloud closer to IoT computers to overcome these problems. Rather than moving them to the cloud, the FC provides local IoT data processing and storage on IoT computers. This paper focuses on the Routing Protocol for Low‐Power and Lossy Network (RPL), a universally routing protocol for a static environment that is used for reducing energy consumption, delay, and packet loss with data aggregation at the border router using a fog simulation model in Contiki Cooja. The objective function (OF) choice has an impact on network topology, as each node selects a set of potential parents to send to the destination. However, no systematic analysis of the effects of OF behavior in the RPL environment has been undertaken. Here, three different OFs, Objective Function Zero (OF0), Advanced Objective Function Zero (AOF0), and Minimum Rank with Hysteresis Objective Function (MRHOF) for RPL in the static environment for different node numbers, have been compared. The findings demonstrate that altering all three OFs has a significant impact on RPL. The energy consumption is reduced in the case of the AOF0 in the fog node by 50.86%, which is less than the case of the OF0 and MRHOF function. Extensive simulations show that AOF0 outperforms the existing OFs.