# An Analytical Survey of WSNs Integration with Cloud and Fog Computing
## 5 Comparison of Integration WSN with Cloud and Fog
### Resource Scheduling for WSN with Cloud and Fog  
FC brings organized resources close to the fundamental systems. FC expands the conventional CC worldwide to the edge of the system to empower, refine, and for better applications or services. FC is a virtualized stage, which gives calculation, storing, and organizing services between the end nodes in IoT and traditional clouds [63].  
With an expanding number of heterogeneous devices associated with IoT and creating information, it will be inconceivable for an independent IoT to effectively perform power and data transmission. IoT and distributed computing integration have been imagined to secure the data of the cloud [64], a circumstance when the cloud is associated with an IoT that produces interactive media information. Visual sensor networks (VSN) or closed-circuit television (CCTV) associated with the cloud can be cases of such a situation. Since interactive media content expends additional preparing power, storage room, and resource requirements, services in the cloud will unavoidable. Fog processing assumes an exceptionally fundamental part of the cloud [65].  
Fog is actualized near the end clients. In this manner, FC gives a better nature of services in terms of system data transmission, control, utilization, throughput, and response time and it lessens the movement over the web. There are numerous resource assignment systems in CC. System resource allocation methodologies and how these techniques can be actualized in CC conditions are discussed in the study [66]. There are many planned calculations for resource provisioning. However, there is a need for a powerful resource provisioning methodology keeping in mind that the end goal is to satisfy the request of clients and limit the general cost for the clients and additionally for cloud servers. The primary target of resource provisioning calculation is to plan the virtual machines (VMs) on the server. There is little study on upgraded resource planning calculation, resource provisioning technique of the market planning with numerous Service Level Agreement (SLA) parameters, resource allotment control-based show, adaptable resource provisioning, blockage control resource allotment model and ask for forecast demonstrate.  
Researchers have concentrated on two issues, provisioning and resource allocation in distributed computing [67]. First is the Hadoop Map Reduce (HMR) and its schedules, the second reservation issue is provisioning virtual machines to resources in the cloud. MapReduce is a programming model for the preparation of vast scale information and was initially created by Google and Hadoop given the execution of Map Reduce. There are three schedulers accessible: First In First Out (FIFO), reasonable scheduler, and limit scheduler. The second planning issue is the provisioning of VMs and the task of VMs on physical machines. Resource sharing planning is a fundamental issue in CC. Cloud service gives virtual resources to the effective framework.  
There is an essential connection between the framework segment and its capacity utilization for execution in cloud conditions [68]. The energy utilization examination of cloud groups with the assistance of cloud group nodes has been proposed. Level 1: virtualization and physically, layer 2: fog sensors, servers, and gateways, level 3: supervision, levels 4: preprocessing and post-processing, level 5: storage and resource managing, level 6: safety, and level 7: applications are multiplatform of the fog computing standard architecture. All the above levels are displayed in Figure 5 as a multilayered fog architecture. These fog architecture levels are divided into categories according to the applications they are used for. The significance of each level is examined, as well as its applicability in diverse applications. The purpose of these levels will be to collaborate to transmit a task from an IoT to a fog node and finally to the cloud for accomplishment [69].