Table 2: Energy consumption estimate based on equation 2
for the scenario 2.
Number of
Fog Nodes
Period of
time (s)
Energy
consumption
1 170 170
2 215 430
3 335 1005
Total 1605
more difficult it is to make a prediction capable of
scaling the system in time. By modifying the ahead
parameter used for the predictions, we could further
anticipate scaling needs. However, at the same time,
we may deliver resources before they are required,
which may incur unnecessary energy consumption
and additional costs.
Even though the predictions performed by ProFog
were too close to the actual load values for us to see
preemptive scaling actions take place, we can see that
the use of time series analysis has brought other ben-
efits to the system. By analyzing the system load over
time for Scenario 2, we see that the load predictions
have smoothed load peaks, helping avoid unnecessary
deployment of new Fog nodes. By preventing un-
necessary deployment of Fog nodes caused by load
peaks, ProFog has reduced the number of active ma-
chines for some time, consequently reducing energy
consumption and operating costs for the system.
5 CONCLUSION
As IoT grows across multiple industries, it becomes
necessary to review how solutions design IoT sys-
tems. Cloud data centers are often used to implement
IoT scenarios as they offer scalability and reliability.
However, such configuration poses many challenges
- from security to QoS and network congestion - that
may prevent certain use cases or the adoption in spe-
cific industries. These challenges have fostered the
advance of another system architecture named Fog
computing. This architecture brings the processing of
data closer to the resource, allowing better response
times, lower latency, and increased security.
In this context, this article addressed proactive
elasticity for resource allocation on Fog comput-
ing for IoT implementations by presenting a model
named ProFog. This model manages resource allo-
cation and provides proactive elasticity to applica-
tions without any user intervention or elasticity con-
trol logic from the application end. To validate the
model, we have built a prototype using Microsoft
Azure - like the Cloud - and three Raspberry Pi 4
microcomputers - which operated as Fog nodes. We
evaluated our prototype using a Video-On-Demand
streaming scenario. However, ProFog covers vari-
ous scenarios, such as manufacturing, healthcare, and
Smart Cities.
ACKNOWLEDGMENT
The authors would like to thank the Coordenac¸
˜
ao
de Aperfeic¸oamento de Pessoal de N
´
ıvel Superior -
CAPES (Finance Code 001) and Conselho Nacional
de Desenvolvimento Cient
´
ıfico e Tecnol
´
ogico - CNPq
(Grant Number 303640 / 2017-0).
REFERENCES
da Rosa Righi, R., Correa, E., Gomes, M. M., and da Costa,
C. A. (2020). Enhancing performance of iot applica-
tions with load prediction and cloud elasticity. Future
Generation Computer Systems, 109:689 – 701.
Fischer, G. S., da Rosa Righi, R., de Oliveira Ramos, G.,
da Costa, C. A., and Rodrigues, J. J. (2020). El-
health: Using internet of things and data prediction
for elastic management of human resources in smart
hospitals. Engineering Applications of Artificial Intel-
ligence, 87:103285.
Masood, T. and Sonntag, P. (2020). Industry 4.0: Adop-
tion challenges and benefits for smes. Computers in
Industry, 121:103261.
Mohamed, N. (2017). SmartCityWare: A Service-Oriented
Middleware for Cloud and Fog Enabled Smart City
Services. NEW ERA OF SMART CITIES: SENSORS
COMMUNICATION TECHNOLOGIES AND APPLI-
CATIONS.
Nguyen, N. D., Phan, L. A., Park, D. H., Kim, S., and
Kim, T. (2020). Elasticfog: Elastic resource provi-
sioning in container-based fog computing. IEEE Ac-
cess, 8:183879–183890.
Shah, S. A. B. and Aziz, S. M. (2020). Response time de-
terminism in healthcare data analytics using machine
learning. In Yang, H., Pasupa, K., Leung, A. C.-S.,
Kwok, J. T., Chan, J. H., and King, I., editors, Neu-
ral Information Processing, pages 203–210, Cham.
Springer International Publishing.
Suganuma, T. (2018). Multiagent-Based Flexible Edge
Computing Architecture for IoT. IEEE Network.
Sun, X. and Ansari, N. (2016). Edgeiot: Mobile edge com-
puting for the internet of things. IEEE Communica-
tions Magazine, 54(12):22–29.
Vaquero, L. M. and Rodero-Merino, L. (2014). Finding
your way in the fog: Towards a comprehensive defini-
tion of fog computing. SIGCOMM Comput. Commun.
Rev., 44(5):27–32.
Yin, L., Luo, J., and Luo, H. (2018). Tasks scheduling and
resource allocation in fog computing based on con-
tainers for smart manufacturing. IEEE Transactions
on Industrial Informatics, 14(10):4712–4721.
ProFog: A Proactive Elasticity Model for Fog Computing-based IoT Applications
387