Seminar Report
Seminar Report
DEPARTMENT OF
COMPUTER SCIENCE AND ENGINEERING
Submitted by
ARUN MARTIN
(REG NO: KTE21CS013)
CERTIFICATE
Prof. Kavitha N
Associate Professor
Head of Department
Acknowledgements
I would like to express my sincere gratitude to all those who have supported
and guided me throughout the preparation and completion of this seminar
report.
First and foremost, I am deeply thankful to Prof. Geethu Sasidharan,
my seminar guide, for her invaluable guidance, constant encouragement,
and insightful suggestions. Her expertise and support played a crucial role
in helping me shape this report.
I would also like to express my sincere gratitude to Dr. Prince A,
Principal for fostering an environment of academic excellence and for
providing me with the necessary resources and facilities to carry out this
work.
I would also like to extend my heartfelt thanks to Prof. Kavitha
N, Associate Professor & Head, Department of Computer Science
and Engineering, for her dedication to promoting quality education and
research has been a source of inspiration throughout this journey.
I would also like to express my heartfelt gratitude to Seminar Coordinator
Prof. Nisha K K for her support and guidance thorugh various phases of
seminar.
I am particularly grateful to my friends and classmates for their
encouragement and feedback, which inspired me to continuously improve
my work. Additionally, I owe a debt of gratitude to my family for their
unwavering support and motivation throughout this process.
Finally, I thank all those who have directly or indirectly contributed to
the successful completion of this seminar.
Thank you.
i
Abstract
This seminar presentation that I am handling today will be exploring a
task offloading algorithm in fog- enabled IoT networks. The objective is
to suggest an energy efficient and minimal task outage algorithm for task
offloading in fog-enabled networks. The experiment provides an efficient
way for task offloading with minimal usage of computational resources of
the fog nodes taking advantage of variable sized VRUs(Virtual Resource
Units).
The proposed method includes two algorithms – one for providing
preferences for fog nodes and IoT tasks over opposite sets while the other
algorithm focuses on matching them both with using minimal computational
resources and energy efficiency. The energy consumption models and
network models are detailed .The proposed algorithm details the usage
of minimal resources for task completion for reducing task outages. The
experiment also consist of comparisons with similar algorithms comparing
aspects of mean task latency, system resource utilization, task outages and
energy consumption.
ii
Contents
Acknowledgements i
Abstract ii
1 Introduction 1
2 Literature Review 3
2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.2 Energy-efficient task offloading for time-sensitive
applications in fog computing [1] . . . . . . . . . . . . . . . 3
2.3 Intelligent deployment of dedicated servers: Rebalancing
the computing resource in IoT [2] . . . . . . . . . . . . . . 3
2.4 An optimal relay scheme for outage minimization in
fog-based Internet-of-Things (IoT) networks [3] . . . . . . . 4
2.5 Location of fog nodes for reduction of energy consumption
of end-user devices [4] . . . . . . . . . . . . . . . . . . . . 4
2.6 Prioritized task distribution considering opportunistic fog
computing nodes [5] . . . . . . . . . . . . . . . . . . . . . 4
2.7 LETO: An efficient load balanced strategy for task
offloading in IoT-fog systems [6] . . . . . . . . . . . . . . . 5
2.8 Resolving multitask competition for constrained resources
in dispersed computing: A bilateral matching game [7] . . . 5
2.9 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3 Proposed System 7
3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2 System Model . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.3 Latency Model . . . . . . . . . . . . . . . . . . . . . . . . 8
3.3.1 Transmission Delay . . . . . . . . . . . . . . . . . . 8
iii
Contents
5 Conclusion 26
References 27
v
Chapter 1
Introduction
The development of fully autonomous systems using Artificial Intelligence
(AI) and learning techniques has been the primary focus of research
over the last decade. This has resulted in quantum advances in wireless
communications, advanced sensing and the Internet of Things(IoT). These
advancements have revolutionized the way humans and machines interact
with each other.
Future IoT applications will be extremely demanding in terms of data
rate, reliability, and connectivity. These demands paved the way for
the emergence of Fifth Generation (5G) communication systems, and
while 5G is still in the implementation phase, researchers have begun
to envision the next generation of communication networks, namely 6G.
With these technologies, billions of devices will be connected to each
other over the Internet. This will evolve the communication focus
from ubiquitous connectivity to automated and intelligent connectivity,
necessitating de-centralized computation closer to the network edge.
Fog computing is a decentralised computing architecture commonly
associated with IoT technology. The basis of fog computing is to
overcome the drawbacks of cloud computing such as centralised computing
architecture and usually large distance between cloud servers and IoT
devices.Although fog computing has many benefits for IoT applications,
there are a few QoS challenges that require special attention. Latency
improvement and energy efficiency continue to be the primary features of
QoS in fog computing; however, demand for additional QoS features such as
reduced task outages to improve network utilisation and energy efficiency,
has gained attention from many researchers in recent years.
When a task suffers from outage, QoS suffers, and users lose faith in the
1
Chapter 1. Introduction
Literature Review
2.1 Introduction
In this section, we discuss our literature review in the fog computing
environment, with a focus on reducing task outages through latency or
energy improvement with and without using matching techniques for
resource allocation. Our emphasis will be on comprehending how fog node
computation resources are logically partitioned into Virtual Resource Units
(VRUs) and then allocated to IoT device tasks using matching theory.
3
Chapter 2. Literature Review
Solved the fog node location and resource planning problem to improve
energy efficiency and increase the number of accepted tasks. It
accomplishes this by ensuring the availability of required resources at the
fog node and by processing the maximum number of tasks and applications
in the fog node.
On the other hand, used a one-to-many matching game with the market
matching concept to achieve energy efficiency in the network. In this
concept, fog nodes act as vendors and tasks act as the buyers, with prices
fluctuating until a stable market situation is reached. Fixed sized VRUs are
used and IoT devices make their own matching decisions.
2.9 Summary
The research on task outages in non-matching and matching based
resource allocation appears to take two distinct approaches: non-matching
based techniques attempt to reduce task outages by reducing resource
requirements from fog nodes, allowing them to serve a greater number of
tasks with the same resources, whereas matching based techniques attempt
to reduce task outages by formulating preference profiles in such a way
Dept of CSE - RIT - Kottayam 5
Chapter 2. Literature Review
Proposed System
3.1 Introduction
This chapter provides a detailed discussion on the system model and its
functioning, followed by an explanation of the latency and energy models.
It then covers the calculation of the minimum resource requirements for IoT
tasks and the concept of matching IoT tasks with fog nodes. Additionally,
the chapter details the concept of variable-sized VRUs. The proposed
algorithms and their mechanisms are also described in detail within the
chapter elaborately.
7
Chapter 3. Proposed System
represents the task deadline. When using matching theory for resource
allocation, other researchers logically partition computation resources Cfn
of fog node fn into homogeneous sized VRUs, whereas VRUs between
different fog nodes are considered heterogeneous sized. In contrast, we
present a novel concept of variable sized VRUs with fog nodes, the size of
which adjusts dynamically to meet the precise resource requirements of IoT
device tasks.
The model of the Proposed system is shown in the following figure:
It is the time it takes to transmit a task from an IoT device to a fog node.
It is assumed that an active up-link with dedicated bandwidth Bumn exists
between an IoT device dm and a fog node fn . The task uplink rate Rumn is
calculated as :
u
p g n
Rumn = Bumn log2 1 + mn2 (Eq.1)
σ
where, pumn represents the transmit power of dm , σ represents the white
noise power and gn represents the channel gain. The channel gain varies
inversely with the distance between dm and fn . The transmission time of a
task tm with size Wm is calculated as:
Wm
Tumn = u
(Eq.2)
Rmn
This is the amount of time a task spends in the fog node queue before it
is executed. In this paper, dedicated fog node computation resources are
assigned to each task, resulting in no queuing delay at the fog node.
This is the amount of time spent at the fog node actually performing the
task. Given that cnm is the amount of computational resources allocated by
fog node fn for task tm from its total free computation resource Cfn , the
task computation latency at fn is calculated as:
Wm Cbit
Tfmn = (Eq.3)
cnm
It is the amount of time required to transmit the processed output from the
fog node to the relevant IoT device. In this paper, assumption is that the
output Om is very small in comparison to the input, so download latency is
ignored.
Total computation latency of task tm is the sum of all above latencies and
from Eq.2 and 3:
Wm Wm Cbit
Ttot
mn = u
+ (Eq.4)
Rmn cnm
Dept of CSE - RIT - Kottayam 9
Chapter 3. Proposed System
The energy consumed by the IoT device while offloading tasks to the fog
node is calculated as:
The fog node consumes energy in: (1) receiving the task offloaded from the
IoT device dm and (2) computing the received task. We know that the time
it takes an IoT device to transmit a task is the same as the time it takes a fog
node to receive it. If Prmn is the fog node power consumed by the fog node
in receiving the offloaded task and Pcn is the power consumed by the fog
node in task computation, then the energy consumed in task computation at
the fog node can be calculated as :
It is the sum of energy consumed by IoT devices and the fog node:
Wm Cbit
cmin
nm = (Eq.8)
(Tmmax − Tmn
u )
s.t Σ qn
1 cnm ≤ cf n (Eq.9b)
Condition (9a) shows that an IoT device task tm can only have one match
with single fog node only. The condition (9b) states that a fog node can
have qn matches with qn IoT device tasks only if the sum of computation
resources allotted to these IoT device tasks does not exceed the fog node’s
total free computational resources Cfn . Condition (9c) implies that tm is
matched to fn if fn is matched to tm .
Calculates the transmission rate between IoT devices and fog nodes to
determine the minimum resource requirement cmin
nm for each task tm from
each fog node. Generates association sets and preference profiles using the
steps shown in Algorithm 1.
Algorithm 1 Input Generation for Matching Algorithm
max
Input : Wm , Cm , Tm , and CSI
Output: cmin A A
nm , fn , tm , ≻fn , and ≻tm
1 for ∀t do
2 for ∀f do
3 Calculate transmission rate Rumn
Calculate resource requirement cmin
nm
Generate association sets
4 end
5 end
6 for ∀t ∈ fnA do
7 Calculate fog nodes preference profile ≻fn
8 end
9 for ∀f ∈ tA
m do
10 Calculate IoT device task preference profile ≻tm
11 end
The quota of all fog nodes is set to one. IoT device tasks propose the
fog node in the order defined by their preference profile ≻tm . For the
first proposal, if the fog node has more computation resources than the
minimum resource requirements of the proposing task, the proposal is held.
For the remaining proposals, SMRETO compares the preference of the new
proposal to the preference of the held proposals. If the preference for the
new proposal is lower than the preference for the held proposals, SMRETO
determines whether the fog node has enough remaining resources to serve
both the new and held proposals.
If the fog node has the required resources, all proposals are retained;
otherwise, the new proposal is rejected. All tasks in fA
n that have not yet
proposed to fn , but are lower in the preference profile ≻fn than the rejected
proposal are removed from fA A
n and fn is removed from tm′ . (This step
ensures that no lower priority tasks are accepted under any circumstances
if a higher priority task is rejected.)
proposals with lower preference than the proposing task, the fog node may
lack the resources to accept that task. In that case, the proposing task is also
rejected.
In case 2 of Figure.3.3, when task 5 proposes the fog node, its priority
order with the fog is higher than held proposals of tasks 1, 7, and 6. Task
5 requires 0.9 GHz resources, but the fog node only has 0.3 GHz of free
computation resources. Thus, the fog node cannot retain the proposal of task
5, and if it rejects the proposal of task 5, it must also reject the proposals of
tasks 1, 7, and 6. To avoid large scale rejections, the fog node first rejects the
least preferred of the fog node’s held proposals, task 6, and then determines
whether it can now serve the remaining held proposals. The fog node still
lacks the resources required to compute the remaining tasks. The fog node
then rejects the least preferred held proposal of task 7 and finds that it can
now serve the remaining tasks. The fog node retains proposals of tasks 5
and 1 and removes tasks 7, 6, and 8 from its association set. The fog node
updates its quota information.
The rejected IoT device task proposes to the next fog node in its
preference profile. The process is repeated until all tasks are either matched
or they have exhausted the options of fog nodes in their association sets.
The proposed SMRETO starts matching with a fog node quota value of
one. With each new proposal, SMRETO recalculates a fog node’s quota as:
(a) If the fog node keeps the new proposal along with the held proposals, the
fog node’s quota is increased by one; (b) If the new proposal is accepted but
one of the held proposals is rejected, fog node’s quota remains unchanged,
and (c) If more than one held proposal is rejected, the fog node’s quota is
reduced by one less than the number of held proposals rejected. The number
of matches with a fog node will be the final quota for the fog node.
3.9 Summary
This chapter presented the system model alongside a detailed diagram.
It then examined the latency and energy consumption models, outlining
expected latency, its influencing factors, and energy consumption. The
4.1 Introduction
The upcoming chapter will focus on the simulation setup, providing
a comprehensive overview of the environment and parameters used to
evaluate the system’s performance. It will also present a detailed analysis
of the results, addressing key factors such as task outages, mean task
latency, and system energy consumption. Each of these aspects will be
explored in depth to understand their impact on overall system efficiency.
Furthermore, the proposed method will be systematically compared against
existing solutions, highlighting differences and improvements. The results
will then be carefully analyzed and critically evaluated to draw meaningful
conclusions.
19
Chapter 4. Simulation Setup and Result Analysis
Figure 4.2 shows the number of task outages experienced by all of the
schemes under consideration. The results clearly show that the proposed
scheme SMRETO outperforms other competing algorithms in terms of task
outages. Other baseline schemes can only match SMRETO’s performance
in low workload scenarios (when the number of tasks is low), whereas
SMRETO performs best in high workload scenarios. The key to such
performance is allocating resources for task deadlines in order to maximise
the number of accepted tasks at the fog nodes. This is made possible by
variable-sized VRUs with fog nodes that can precisely size to the resource
requirements of the matched IoT device tasks. The results show that with
variable-sized VRUs, task outages occur only when fog node resources are
completely depleted in high workload scenarios.
Figure 4.3 shows the percentage of total fog node resources used to serve
the accepted tasks. In comparison to the baseline schemes, the proposed
SMRETO uses the least amount of the fog node’s computation resources
to compute the same number of tasks. In contrast, other baseline schemes
use more resources to serve a smaller number of tasks. When these results
are compared to those in Figure 4.2, they show that in a high workload
scenario, some fog node resources remain unused, while the baseline
schemes experience task outages. This inability to fully utilise available
resources stems from the inherent limitation associated with fixed-size
VRUs, which are always under-sized or over-sized in comparison to IoT
device resource requirements. Only over-sized VRUs will be matched to an
IoT device task to avoid task outage. When the system is overloaded, there
will always be some under-sized VRUs and some IoT device tasks with high
resource demands, both of which will remain unmatched. The solution is to
use flexible sized VRUs, as SMRETO has done.
Figure 4.4 shows the system energy consumed in computing all accepted
tasks, Figure 4.5 shows the corresponding mean energy consumed in
computing a single task, and Figure 4.6 shows the mean task latency.
The three figures show the results when the proposed SMRETO fully
utilises the fog node computation resources. These figures show that
when the workload is low to medium, SMRETO outperforms all baseline
schemes. This is because variable-sized VRUs in the proposed SMRETO
can dynamically adjust their sizes and use all available computation
resources. However, when the workload is high, even the proposed
SMRETO experiences task outages. In this case, SMRETO consumes all
fog node computation resources to avoid task outages and has no spare
computation resources to improve energy efficiency. In such cases, the
proposed SMRETO algorithm trades off energy and time efficiency for a
lower number of task outages.
4.4 Summary
In this chapter, the simulation setup for the proposed system was established
using MATLAB, with a detailed explanation of all relevant parameters
and configurations. The obtained results were thoroughly compared across
Conclusion
This paper have proposed an IoT device to fog node task offloading
algorithm to minimize the number of task outages and reduce the system
energy consumption. To achieve these goals, the proposed technique uses
variable sized computing resources on the fog nodes (known as VRUs)
and IoT task requirements are based on the task deadline. The proposed
algorithm utilizes a many-to-one matching algorithm to allocate IoT tasks
to the variable sized VRUs.
The preference profile of IoT tasks and fog computing resources are
developed to ensure reduction of system energy consumption. The
unmatched resources at the fog nodes are also utilized towards computing of
allocated tasks. Simulation results highlight the advantages of the proposed
algorithm in terms of task outages and system energy consumption. The
proposed model can make signficant changes in various fields essentially
in real time system required fields with minimal task outages paving a new
way for efficient task offloading in fog enabled IoT networks.
26
References
[1] Y. Kyung. "Prioritized task distribution considering opportunistic fog
computing nodes". Sensors, vol. 21, no. 8, 2021.
[5] F. Chiti, R. Fantacci, and B. Picano. "A matching game for tasks
offloading in integrated edge-fog computing systems". Trans. Emerg.
Telecommun. Technol., vol. 31, no. 2, 2020.
27
Chapter 5. REFERENCES
[12] Y.-L. Jiang, Y.-S. Chen, S.-W. Yang, and C.-H.Wu. "Energy-efficient
task offloading for time-sensitive applications in fog computing". IEEE
Syst. J., vol. 13, no. 3, 2019.