A Whale Optimization Algorithm Based Resource Allocation Scheme for Cloud-Fog Based IoT Applications
Abstract
:1. Introduction
- 1
- The task classification and buffering (TCB) module is designed for classifying tasks into different types using dynamic fuzzy c-means clustering, and these classified tasks are buffered in parallel virtual queues based on enhanced least laxity time scheduling.
- 2
- Another module, named task offloading and optimal resource allocation (TOORA), is modeled for deciding on offloading the task in cloud or fog and uses WOA to allocate the resources of the fog node.
- 3
- The approach is evaluating the metrics, such as makespan, cost, energy consumption, and the successful completed tasks within the deadline and comparing them with other algorithms such as SJF, MOMIS, and FLRTS for performance evaluation.
- 4
- When 100 to 700 tasks are executed in 15 fog nodes, the results show that the WORA algorithm saves 10.3% of the average cost of MOMIS and 21.9% of the average cost of FLRTS. When comparing the energy consumption, WORA consumes 18.5% less than MOMIS and 30.8% less than FLRTS. The WORA is also performed 6.4% better than MOMIS and 12.9% better than FLRTS in terms of makespan and 2.6% better than MOMIS and 4.3% better than FLRTS in terms of successful completion of tasks.
2. Related Work
3. System Model
- Task classification and buffering (TCB): On the arrival of tasks at the fog node, the similar type of tasks are gathered and buffered in parallel virtual queues according to their execution order.
- Task offloading and optimal resource allocation (TOORA): All the tasks may not be assigned with fog resources by their deadline. The tasks may wait long time in queue which may lead failure of execution. These tasks can be transferred to cloud layer and achieved the deadline. The transmission of tasks may increase the transmission cost, thus, TOORA try to assign maximum tasks with fog resources. Table 3 represents all notations of this paper.
3.1. Process Flow Model
- 1
- Step-1: The end devices collect data and send task requests to the nearest fog node.
- 2
- Step-2: The task requests transfer from fog node to the TCB.
- 3
- Step-3: The resource usage, data size, arrival time, deadline, etc., are estimated.
- 4
- Step-4: Tasks are classified into different types in the TCB, which can be buffered in the waiting queue by running an algorithm for ordering the task.
- 5
- Step-5: Tasks are transferred to the waiting queue for buffering.
- 6
- Step-6: A set of tasks of the queues are transferred to the TOORA for further processing.
- 7
- Step-7: TOORA makes a decision of task offloading so that task may execute in cloud server or fog node.
- 8
- Step-8: The tasks meant for offloading to the cloud are transferred to the cloud server. The tasks are sent back to the end devices that are not achieved the deadline.
- 9
- Step-9: An optimal resource allocation scheduler is run in the TOORA module to optimally assign resources of the fog node to the task.
- 10
- Step-10: As the result of the algorithm, the tasks are assigned to the fog nodes.
- 11
- Step-11: Each task is processed in the respective node.
- 12
- Step-12: After completion of task execution, the result is sent back to the end devices through the fog node.
3.2. Problem Formulation
4. Proposed Work
4.1. Task Classification and Buffering (TCB)
- In step-5, take all the arrival tasks T in time t.
- In steps 8–20, check if the maximum membership value (i.e., ) of a task is more than or equal to membership threshold value (i.e., ). If true, then update and until , otherwise do steps 11–18 for to cluster centers. If no changes in clusters generated before then, store values of , otherwise generate new cluster for deviated tasks and update c. Then, update and until in step-20.
- In step-21, compute validity index using Equation (7) and select best clusters with best validity and assign to in step-22.
- Update the time interval t with t+1 in step-23.
- Finally, return clusters of tasks in step-25.
Algorithm 1 dFCM for task classification. |
Input: Continuous streaming tasks Output: Cluster of tasks
|
- Compute using Equation (9); for each task in step-4.
- Sort all the tasks according to in ascending order in step-6.
- If any tasks have similar , then group them and store them in in step-8.
- For each task of , compute using Equation (10), and sort the tasks according to in ascending order in steps 10–13.
- Insert all the tasks in queue according to their and in step-14.
- Finally, return the queues Q in step-16.
Algorithm 2 Buffering task in queues. |
Input: Cluster of tasks Output: Tasks buffered in queues Q
|
4.2. Task Offloading and Optimal Resource Allocation (TOORA)
- When , the deadline and executable upper bound time are nearly the same, so the task cannot wait for longer time to execute in fog node. therefore, the task must be moved to the cloud server for successful completion.
- When , the executable upper bound time is more than the deadline, thus, the task cannot complete before the deadline and is sent back to end devices requesting to increase the deadline.
- When , the task has enough time for executing successfully at the fog node before the deadline.
Algorithm 3 Task offloading at fog node. |
Input:Tasks in -type queues Output:Tasks at fog node , cloud and Failure task
|
- Whale creation: In our algorithm, each whale denotes a solution to the resource allocation problem. If we have a set of resources and a set of request tasks , then the whale can be represented as a random combination of resource with task . The resource is represented as , where f, c, r, , , and represent fog node, container of the fog node, resource block of the container, CPU usage, bandwidth, and available memory, respectively. The task can be represented as , which denote task identification number, requirement of CPU usage, bandwidth, and memory. For example,Then a whale can be generated as follows:===In a similar fashion, all the whales are generated.
- Fitness function: For each whale, the fitness function is the optimal resource allocation to the task and can be calculated asThe whale with minimum fitness is the optimum solution. Hence, the goal of the algorithm is the minimization of the fitness function.The population can be generated by the collection of whales with their corresponding fitness.
- Distance function: The most important function of WOA is the distance function. As three parameters (i.e., CPU usage, bandwidth, and memory) are considered, the distance function can be redefined as follows:
- For each whale, steps 4–16 are performed. The value of A, C, a, l, and are found in step 5.
- After updating, amend that goes beyond the search space in step 17. Then compute the fitness of all and update the best search agent with minimum fitness in steps 18 and 19.
- Increment t by 1 in step 20.
Algorithm 4 Whale optimized resource allocation (WORA) algorithm. |
Input: Set of resources R and tasks for fog node where Output: Best solution for resource allocation
|
5. Performance Evaluation
5.1. Simulation Setup
5.2. Performance Metrics
- Cost: Cost is the amount of monetary cost for processing the tasks in cloud and fog nodes. The cloud charges cost for both processing and communication, whereas the fog node only charges a cost for communication [1]. The cost of the system is defined as follows:
- Energy consumption: The total amount of energy consumed to execute all the tasks of a system is represented with metric. The total energy consumed in fog nodes is summed of the energy consumption for executing tasks and utilization of energy of the fog nodes being idle. When tasks are executed in the cloud, then total energy is summed of consumed energy for the execution of the task and also energy for transferring the task and data. The total consumed energy is as follows:
- Makespan: The time required for completing all the tasks in the system is represented as [30]. It can be computed as
- Task completion ratio: is the ratio of total tasks successfully completed within the deadlines.
5.3. Performance Analysis
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Pham, X.Q.; Man, N.D.; Tri, N.D.T.; Thai, N.Q.; Huh, E.N. A cost- and performance-effective approach for task scheduling based on collaboration between cloud and fog computing. Int. J. Distrib. Sens. Netw. 2017, 13, 1–16. [Google Scholar] [CrossRef] [Green Version]
- Sahoo, K.S.; Tiwary, M.; Luhach, A.K.; Nayyar, A.; Choo, K.K.R.; Bilal, M. Demand–Supply-Based Economic Model for Resource Provisioning in Industrial IoT Traffic. IEEE Internet Things J. 2021, 9, 10529–10538. [Google Scholar] [CrossRef]
- Lin, Z.; Lin, M.; De Cola, T.; Wang, J.B.; Zhu, W.P.; Cheng, J. Supporting IoT with Rate-Splitting Multiple Access in Satellite and Aerial-Integrated Networks. Internet Things J. 2021, 8, 11123–11134. [Google Scholar] [CrossRef]
- Li, L.; Guan, Q.; Jin, L.; Guo, M. Resource allocation and task offloading for heterogeneous real-time tasks with uncertain duration time in a fog queueing system. IEEE Access 2019, 7, 9912–9925. [Google Scholar] [CrossRef]
- Bhoi, S.K.; Panda, S.K.; Jena, K.K.; Sahoo, K.S.; Jhanjhi, N.; Masud, M.; Aljahdali, S. IoT-EMS: An Internet of Things Based Environment Monitoring System in Volunteer Computing Environment. Intell. Autom. Soft Comput. 2022, 32, 1493–1507. [Google Scholar] [CrossRef]
- Fog Computing and the Internet of Things: Extend the Cloud to Where the Things Are. Available online: https://studylib.net/doc/14477232/fog-computing-and-the-internet-of-things–extend (accessed on 2 September 2022).
- Sahoo, K.S.; Sahoo, B. Sdn architecture on fog devices for realtime traffic management: A case study. In Proceedings of the International Conference on Signal, Networks, Computing, and Systems; Springer: Berlin/Heidelberg, Germany, 2017; pp. 323–329. [Google Scholar]
- Nayak, R.P.; Sethi, S.; Bhoi, S.K.; Sahoo, K.S.; Nayyar, A. ML-MDS: Machine Learning based Misbehavior Detection System for Cognitive Software-defined Multimedia VANETs (CSDMV) in smart cities. Multimed. Tools Appl. 2022, 1–21. [Google Scholar] [CrossRef]
- Rafique, H.; Shah, M.A.; Islam, S.U.; Maqsood, T.; Khan, S.; Maple, C. A Novel Bio-Inspired Hybrid Algorithm (NBIHA) for Efficient Resource Management in Fog Computing. IEEE Access 2019, 7, 115760–115773. [Google Scholar] [CrossRef]
- Pham, Q.V.; Mirjalili, S.; Kumar, N.; Alazab, M.; Hwang, W.J. Whale Optimization Algorithm with Applications to Resource Allocation in Wireless Networks. IEEE Trans. Veh. Technol. 2020, 69, 4285–4297. [Google Scholar] [CrossRef]
- Mao, L.; Li, Y.; Peng, G.; Xu, X.; Lin, W. A multi-resource task scheduling algorithm for energy-performance trade-offs in green clouds. In Sustainable Computing: Informatics and Systems; Elsevier Inc.: Amsterdam, The Netherlands, 2018; Volume 19, pp. 233–241. [Google Scholar] [CrossRef]
- Nayak, R.P.; Sethi, S.; Bhoi, S.K.; Sahoo, K.S.; Jhanjhi, N.; Tabbakh, T.A.; Almusaylim, Z.A. TBDDosa-MD: Trust-based DDoS misbehave detection approach in software-defined vehicular network (SDVN). CMC-Comput. Mater. Contin. 2021, 69, 3513–3529. [Google Scholar] [CrossRef]
- Ravindranath, V.; Ramasamy, S.; Somula, R.; Sahoo, K.S.; Gandomi, A.H. Swarm intelligence based feature selection for intrusion and detection system in cloud infrastructure. In Proceedings of the 2020 IEEE Congress on Evolutionary Computation (CEC), Glasgow, UK, 19–24 July 2020; pp. 1–6. [Google Scholar]
- Bonomi, F.; Milito, R.; Zhu, J.; Addepalli, S. Fog Computing and Its Role in the Internet of Things Characterization of Fog Computing. In Proceedings of the MCC’ 12, Helsinki, Finland, 17 August 2012; pp. 13–15. [Google Scholar]
- Lahmar, I.B.; Boukadi, K. Resource Allocation in Fog Computing: A Systematic Mapping Study. In Proceedings of the 2020 5th International Conference on Fog and Mobile Edge Computing, Paris, France, 20–23 April 2020; pp. 86–93. [Google Scholar] [CrossRef]
- Ahmed, K.D.; Zeebaree, S.R.M. Resource Allocation in Fog Computing: A Review. Int. J. Sci. Bus. 2021, 5, 54–63. [Google Scholar] [CrossRef]
- Ghobaei-Arani, M.; Souri, A.; Rahmanian, A.A. Resource Management Approaches in Fog Computing: A Comprehensive Review. J. Grid Comput. 2020, 18. [Google Scholar] [CrossRef]
- Mishra, S.K.; Mishra, S.; Alsayat, A.; Jhanjhi, N.; Humayun, M.; Sahoo, K.S.; Luhach, A.K. Energy-aware task allocation for multi-cloud networks. IEEE Access 2020, 8, 178825–178834. [Google Scholar] [CrossRef]
- Bhoi, A.; Nayak, R.P.; Bhoi, S.K.; Sethi, S.; Panda, S.K.; Sahoo, K.S.; Nayyar, A. IoT-IIRS: Internet of Things based intelligent-irrigation recommendation system using machine learning approach for efficient water usage. PeerJ Comput. Sci. 2021, 7, e578. [Google Scholar] [CrossRef] [PubMed]
- Rout, S.; Sahoo, K.S.; Patra, S.S.; Sahoo, B.; Puthal, D. Energy efficiency in software defined networking: A survey. SN Comput. Sci. 2021, 2, 1–15. [Google Scholar]
- Chen, C.L.; Chiang, M.L.; Lin, C.B. The high performance of a task scheduling algorithm using reference queues for cloud-computing data centers. Electronics 2020, 9, 371. [Google Scholar] [CrossRef] [Green Version]
- Behzad, S.; Fotohi, R.; Effatparvar, M. Queue based Job Scheduling algorithm for Cloud computing. Int. Res. J. Appl. Basic Sci. 2013, 4, 3785–3790. [Google Scholar]
- Venkataramanan, V.J.; Lin, X. On the queue-overflow probability of wireless systems: A new approach combining large deviations with lyapunov functions. IEEE Trans. Inf. Theory 2013, 59, 6367–6392. [Google Scholar] [CrossRef]
- Bae, S.; Han, S.; Sung, Y. A Reinforcement Learning Formulation of the Lyapunov Optimization: Application to Edge Computing Systems with Queue Stability. arXiv 2020, arXiv:2012.07279, 1–14. [Google Scholar]
- Eryilmaz, A.; Srikant, R. Asymptotically tight steady-state queue length bounds implied by drift conditions. In Queueing Systems; Springer: Berlin/Heidelberg, Germany, 2012; Volume 72, pp. 311–359. [Google Scholar] [CrossRef] [Green Version]
- Iyapparaja, M.; Alshammari, N.K.; Kumar, M.S.; Krishnan, S.S.R.; Chowdhary, C.L. Efficient resource allocation in fog computing using QTCS model. In Computers, Materials and Continua; Tech Science Press: Henderson, NV, USA, 2022; Volume 70, pp. 2225–2239. [Google Scholar] [CrossRef]
- Sandhir, R.P.; Kumar, S. Dynamic fuzzy c-means (dFCM) clustering for continuously varying data environments. In Proceedings of the 2010 IEEE World Congress on Computational Intelligence, Barcelona, Spain, 18–23 July 2010. [Google Scholar] [CrossRef]
- Sandhir, R.P.; Muhuri, S.; Nayak, T.K. Dynamic fuzzy c-means (dFCM) clustering and its application to calorimetric data reconstruction in high-energy physics. In Nuclear Instruments and Methods in Physics Research, Section A: Accelerators, Spectrometers, Detectors and Associated Equipment; Elsevier: Amsterdam, The Netherlands, 2012; Volume 681, pp. 34–43. [Google Scholar] [CrossRef] [Green Version]
- Xu, J.; Hao, Z.; Zhang, R.; Sun, X. A Method Based on the Combination of Laxity and Ant Colony System for Cloud-Fog Task Scheduling. IEEE Access 2019, 7, 116218–116226. [Google Scholar] [CrossRef]
- Ali, H.S.; Rout, R.R.; Parimi, P.; Das, S.K. Real-Time Task Scheduling in Fog-Cloud Computing Framework for IoT Applications: A Fuzzy Logic based Approach. In Proceedings of the 2021 International Conference on COMmunication Systems and NETworkS, COMSNETS 2021, Bengaluru, India, 5–9 January 2021; Volume 2061, pp. 556–564. [Google Scholar] [CrossRef]
- Hosseini, S.H.; Vahidi, J.; Tabbakh, S.R.K.; Shojaei, A.A. Resource allocation optimization in cloud computing using the whale optimization algorithm. Int. J. Nonlinear Anal. Appl. 2021, 12, 343–360. [Google Scholar] [CrossRef]
- Lin, Z.; Niu, H.; An, K.; Wang, Y.; Zheng, G.; Chatzinotas, S.; Hu, Y. Refracting RIS-Aided Hybrid Satellite-Terrestrial Relay Networks: Joint Beamforming Design and Optimization. IEEE Trans. Aerosp. Electron. Syst. 2022, 58, 3717–3724. [Google Scholar] [CrossRef]
- Lin, Z.; An, K.; Niu, H.; Hu, Y.; Chatzinotas, S.; Zheng, G.; Wang, J. SLNR-based Secure Energy Efficient Beamforming in Multibeam Satellite Systems. IEEE Trans. Aerosp. Electron. Syst. 2022, 1–4. [Google Scholar] [CrossRef]
- Lin, Z.; Lin, M.; Wang, J.B.; De Cola, T.; Wang, J. Joint Beamforming and Power Allocation for Satellite-Terrestrial Integrated Networks with Non-Orthogonal Multiple Access. Signal Process. 2019, 13, 657–670. [Google Scholar] [CrossRef] [Green Version]
- Sun, Y.; Lin, F.; Xu, H. Multi-objective Optimization of Resource Scheduling in Fog Computing Using an Improved NSGA-II. Wirel. Pers. Commun. 2018, 102, 1369–1385. [Google Scholar] [CrossRef]
- Taneja, M.; Davy, A. Resource aware placement of IoT application modules in Fog-Cloud Computing Paradigm. In Proceedings of the IM 2017—2017 IFIP/IEEE International Symposium on Integrated Network and Service Management, Lisbon, Portugal, 8–12 May 2017. [Google Scholar] [CrossRef] [Green Version]
- Bharti, S.; Mavi, N.K. Energy efficient task scheduling in cloud using underutilized resources. Int. J. Sci. Technol. Res. 2019, 8, 1043–1048. [Google Scholar]
- Anu; Singhrova, A. Prioritized GA-PSO algorithm for efficient resource allocation in fog computing. Indian J. Comput. Sci. Eng. 2020, 11, 907–916. [Google Scholar] [CrossRef]
- Jia, B.; Hu, H.; Zeng, Y.; Xu, T.; Yang, Y. Double-matching resource allocation strategy in fog computing networks based on cost efficiency. J. Commun. Netw. 2018, 20, 237–246. [Google Scholar] [CrossRef]
- Feng, M.; Wang, X.; Zhang, Y.; Li, J. Multi-objective particle swarm optimization for resource allocation in cloud computing. In Proceedings of the Proceedings—2012 IEEE 2nd International Conference on Cloud Computing and Intelligence Systems, IEEE CCIS 2012, Hangzhou, China, 30 October–1 November 2013; Volume 3, pp. 1161–1165. [Google Scholar] [CrossRef]
- Ni, L.; Zhang, J.; Yu, J. Priced timed petri nets based resource allocation strategy for fog computing. In Proceedings of the 2016 International Conference on Identification, Information and Knowledge in the Internet of Things, IIKI 2016, Beijing, China, 20–21 October 2016; Volume 2018, pp. 39–44. [Google Scholar] [CrossRef]
- Wang, Z.; Deng, H.; Zhu, X.; Hu, L. Application of improved whale optimization algorithm in multi-resource allocation. Int. J. Innov. Comput. Inf. Control. 2019, 15, 1049–1066. [Google Scholar] [CrossRef]
- Alsaffar, A.A.; Pham, H.P.; Hong, C.S.; Huh, E.N.; Aazam, M. An Architecture of IoT Service Delegation and Resource Allocation Based on Collaboration between Fog and Cloud Computing. Mob. Inf. Syst. 2016, 2016, 6123234. [Google Scholar] [CrossRef] [Green Version]
- Talaat, F.M. Effective prediction and resource allocation method (EPRAM) in fog computing environment for smart healthcare system. Multimed. Tools Appl. 2022, 81, 8235–8258. [Google Scholar] [CrossRef]
- De Vasconcelos, D.R.; Andrade, R.M.D.C.; De Souza, J.N. Smart shadow—An autonomous availability computation resource allocation platform for internet of things in the fog computing environment. In Proceedings of the IEEE International Conference on Distributed Computing in Sensor Systems, DCOSS 2015, Fortaleza, Brazil, 10–12 June 2015; pp. 216–217. [Google Scholar] [CrossRef]
- Wu, C.G.; Wang, L. A Deadline-Aware Estimation of Distribution Algorithm for Resource Scheduling in Fog Computing Systems. In Proceedings of the 2019 IEEE Congress on Evolutionary Computation, CEC 2019, Wellington, New Zealand, 10–13 June 2019; pp. 660–666. [Google Scholar] [CrossRef]
- Bian, S.; Huang, X.; Shao, Z. Online task scheduling for fog computing with multi-resource fairness. In Proceedings of the IEEE Vehicular Technology Conference 2019, Honolulu, HI, USA, 21–25 September 2019; Volume 2019. [Google Scholar] [CrossRef]
- Zhang, H.; Xiao, Y.; Bu, S.; Niyato, D.; Yu, F.R.; Han, Z. Computing Resource Allocation in Three-Tier IoT Fog Networks: A Joint Optimization Approach Combining Stackelberg Game and Matching. IEEE Internet Things J. 2017, 4, 1204–1215. [Google Scholar] [CrossRef]
- Pham, T.p.; Durillo, J.J.; Fahringer, T. Predicting Workflow Task Execution Time in the Cloud using A Two-Stage Machine Learning Approach. IEEE Trans. Cloud Comput. 2017, 8, 256–268. [Google Scholar] [CrossRef] [Green Version]
- Mirjalili, S.; Lewis, A. The Whale Optimization Algorithm. In Advances in Engineering Software; Elsevier Ltd.: Amsterdam, The Netherlands, 2016; Volume 95, pp. 51–67. [Google Scholar] [CrossRef]
- Feng, W. Convergence Analysis of Whale Optimization Algorithm. J. Phys. Conf. Ser. 2021, 1757, 1–10. [Google Scholar] [CrossRef]
Article | Ideas | Target System | Improved Criteria | Limitations |
---|---|---|---|---|
Li et al. [4] | Laxity time and Lyapunov optimization | Fog computing | Throughput and task completion ratio | No other parameters are considered |
Bae et al. [24] | Reinforcement learning and Lyapunov optimization | Edge computing | Time-average penalty cost cost | Operates with general non-convex and discontinuous penalty functions |
Iyapparaja et al. [26] | Queueing theory-based cuckoo search | Fog computing | Response time and energy consumption | Resource allocation to the edge node is challenging |
Ali et al. [30] | Fuzzy logic | Cloud–fog environment | Makespan, average turnaround time, success ratio of the tasks, and delay rate | Large-scale network |
Pham et al. [10] | Whale optimization algorithm | Wireless network | System utility, overhead | Small dataset of user |
Li et al. [4] | Fuzzy clustering with particle swarm optimization | Fog computing | User satisfaction | Small dataset of tasks |
Rafique et al. [9] | Novel bio-inspired hybrid algorithm (NBIHA) | Fog computing | Average response time | Small dataset of tasks |
Sun et al. [35] | Non-dominated sorting genetic algorithm (NSGA-II) | Fog computing | Reduced service latency and improved stability of task execution | Other parameters such as cost is not considered |
Taneja and Devy [36] | Module mapping algorithm | Fog–cloud Infrastructure | Energy consumption, network usage, and end-to-end latency | Only compared with traditional cloud infrastructure |
Mao et al. [11] | Energy-performance trade-off multi-resource cloud task scheduling algorithm (ETMCTSA) | Green cloud computing | Energy consumption, execution time, overhead | Small task dataset |
Bharti and Mavi [37] | ETMCTSA for underutilized resources | Cloud computing | Energy consumption, overhead | Used 100 cloudlets |
Anu and Singhrova [38] | Hybridization of priority, genetic algorithm, and PSO | Fog computing | Reduced energy consumption, waiting time, execution delay, and resource wastage | Considered end devices |
Jia et al. [39] | Double-matching strategy based on deferred acceptance (DA-DMS) | Three-tier architecture (cloud data center, fog node, and users) | High-cost efficiency | Large-scale network |
Feng et al. [40] | Particle swarm optimization with Pareto-dominant | Cloud computing | Large-scaled instances, middle-scaled instances, small-scaled instances | Did not use complex tasks and resources |
Ni et al. [41] | Priced timed Petri nets strategy | Fog computing | Makespan, cost | Did not consider average completion time and fairness |
Abbreviation | Description |
---|---|
TCB | Task classification and buffering |
TOORA | Task offloading and optimal resource allocation |
WORA | Whale optimized resource allocation |
SJF | Shortest job first |
MOMIS | Multi-objective monotone increasing sorting-based |
FLRTS | Fuzzy logic-based real-time task scheduling |
FCM | Fuzzy c-means |
dFCM | Dynamic fuzzy c-means |
EDF | Earliest deadline first |
WOA | Whale Optimization Algorithm |
WOASU | Whale optimization algorithm spiral updating |
WOAEP | Whale optimization algorithm encircling prey |
Sl. No. | Notation | Description |
---|---|---|
1 | Represents end devices | |
2 | Represents fog nodes | |
3 | Containers of fog node | |
4 | Resources of a container | |
5 | Individual task where | |
6 | Arrival time of ith task | |
7 | Execution lower bound time of ith task | |
8 | Execution upper bound time of ith task | |
9 | Data size of ith task | |
10 | Response time of ith task | |
11 | Deadline time of ith task | |
12 | Number of instructions of ith task | |
13 | Membership of ith task to jth cluster center | |
14 | Cluster center | |
15 | Error threshold | |
16 | Xie–Beni index | |
17 | Membership threshold | |
18 | Laxity time of ith task | |
19 | Earliest deadline first of ith task | |
20 | queue | |
21 | Maximum laxity time of head task of the queue | |
22 | Laxity time of ith task of jth queue | |
23 | Best agent | |
24 | Coefficient vectors | |
25 | Random vector value lies in | |
26 | Parameter controller | |
27 | b | Constant used for logarithmic spiral shape |
28 | l | Random value in |
29 | Represents whale | |
30 | Processing cost per time unit for cloud | |
31 | Communication cost per time unit for cloud | |
32 | Communication cost per time unit for fog | |
33 | Energy per unit for execution of the task in fog | |
34 | Energy used when fog node is idle | |
35 | Energy per unit for execution of task cloud | |
36 | Energy per unit for transmission of data |
Sl. No. | Hardware/Software | Configuration |
---|---|---|
1 | System | Intel® Core ™ i5-4590 CPU @ 3.30 GHz |
2 | Memory (RAM) | 4 GB |
3 | Operating System | Windows 8.1 Pro |
Name | Values |
---|---|
CPU rate of cloud | 44,800 MIPS |
Bandwidth of cloud | 15,000 Mbps |
Memory of cloud | 40,000 MB |
CPU rate of fog | 22,800 MIPS |
Bandwidth of fog | 10,000 Mbps |
Memory of fog | 10,000 MB |
Arrival time of tasks () | [0, 10] ms |
Execution lower bound of task () | [1, 6] ms |
Execution upper bound of task () | ms |
Execution time () | () ms |
Data size of task | [10, 500] MB |
deadline | |
resptime | |
No. of Instructions () | [10, 1700] MI |
Bandwidth required for task | [10, 1800] Mbps |
Memory required for task | [10, 1800] MB |
CPU required for task | [10, 2200] MIPS |
Parameters | Values |
---|---|
Processing cost per time unit for cloud () | 0.5 G$/s |
Communication cost per time unit for cloud () | 0.7 G$/s |
Communication cost per time unit for fog () | [0.3, 0.7] G$/s |
Energy per unit for execution of the task in fog () | [1, 5] w |
Energy used when fog node is idle () | 0.05 w |
Energy per unit for execution of task cloud () | 10 w |
Energy per unit for transmission of data () | 2 w |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Sing, R.; Bhoi, S.K.; Panigrahi, N.; Sahoo, K.S.; Jhanjhi, N.; AlZain, M.A. A Whale Optimization Algorithm Based Resource Allocation Scheme for Cloud-Fog Based IoT Applications. Electronics 2022, 11, 3207. https://doi.org/10.3390/electronics11193207
Sing R, Bhoi SK, Panigrahi N, Sahoo KS, Jhanjhi N, AlZain MA. A Whale Optimization Algorithm Based Resource Allocation Scheme for Cloud-Fog Based IoT Applications. Electronics. 2022; 11(19):3207. https://doi.org/10.3390/electronics11193207
Chicago/Turabian StyleSing, Ranumayee, Sourav Kumar Bhoi, Niranjan Panigrahi, Kshira Sagar Sahoo, Nz Jhanjhi, and Mohammed A. AlZain. 2022. "A Whale Optimization Algorithm Based Resource Allocation Scheme for Cloud-Fog Based IoT Applications" Electronics 11, no. 19: 3207. https://doi.org/10.3390/electronics11193207
APA StyleSing, R., Bhoi, S. K., Panigrahi, N., Sahoo, K. S., Jhanjhi, N., & AlZain, M. A. (2022). A Whale Optimization Algorithm Based Resource Allocation Scheme for Cloud-Fog Based IoT Applications. Electronics, 11(19), 3207. https://doi.org/10.3390/electronics11193207