Internet of Things –
From Research and Innovation to
Market Deployment
RIVER PUBLISHERS SERIES IN COMMUNICATIONS
Consulting Series Editors
MARINA RUGGIERI
University of Roma “Tor Vergata”
Italy
HOMAYOUN NIKOOKAR
Delft University of Technology
The Netherlands
This series focuses on communications science and technology. This includes the
theory and use of systems involving all terminals, computers, and information
processors; wired and wireless networks; and network layouts, procontentsols,
architectures, and implementations.
Furthermore, developments toward newmarket demands in systems, products,
and technologies such as personal communications services, multimedia systems,
enterprise networks, and optical communications systems.
• Wireless Communications
• Networks
• Security
• Antennas & Propagation
• Microwaves
• Software Defined Radio
For a list of other books in this series, visit www.riverpublishers.com
http://riverpublishers.com/river publisher/series.php?msg=Communications
Internet of Things –
From Research and Innovation to
Market Deployment
Editors
Dr. Ovidiu Vermesan
SINTEF, Norway
Dr. Peter Friess
EU, Belgium
Aalborg
Contents
Preface
xiii
Editors Biography
xv
1
Introduction
1
2
Putting the Internet of Things Forward to the Next Level
2.1 The Internet of Things Today . . . . . . . . . . . . . . . . .
2.2 The Internet of Things Tomorrow . . . . . . . . . . . . . . .
2.3 Potential Success Factors . . . . . . . . . . . . . . . . . . .
3
3
4
6
3
Internet of Things Strategic Research and Innovation
Agendainternet of Things Strategic Research
and Innovation Agenda
3.1 Internet of Things Vision . . . . . . . . . . . . . . . . . . .
3.1.1 Internet of Things Common Definition . . . . . . . .
3.2 IoT Strategic Research and Innovation Directions . . . . . .
3.2.1 IoT Applications and Use Case Scenarios . . . . . .
3.2.2 IoT Functional View . . . . . . . . . . . . . . . . .
3.2.3 Application Areas . . . . . . . . . . . . . . . . . . .
3.3 IoT Smart-X Applications . . . . . . . . . . . . . . . . . . .
3.3.1 Smart Cities . . . . . . . . . . . . . . . . . . . . . .
3.3.2 Smart Energy and the Smart Grid . . . . . . . . . .
3.3.3 Smart Mobility and Transport . . . . . . . . . . . .
3.3.4 Smart Home, Smart Buildings and Infrastructure . .
3.3.5 Smart Factory and Smart Manufacturing . . . . . . .
3.3.6 Smart Health . . . . . . . . . . . . . . . . . . . . .
3.3.7 Food and Water Tracking and Security . . . . . . . .
3.3.8 Participatory Sensing . . . . . . . . . . . . . . . . .
3.3.9 Smart Logistics and Retail . . . . . . . . . . . . . .
3.4 Internet of Things and Related Future Internet Technologies
3.4.1 Cloud Computing . . . . . . . . . . . . . . . . . . .
7
8
11
16
22
28
30
41
42
45
50
55
60
62
65
66
69
70
70
vii
viii Contents
3.4.2 IoT and Semantic Technologies . . . . . . . . . . .
Networks and Communication . . . . . . . . . . . . . . . .
3.5.1 Networking Technology . . . . . . . . . . . . . . .
3.5.2 Communication Technology . . . . . . . . . . . . .
3.6 Processes . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.6.1 Adaptive and Event-Driven Processes . . . . . . . .
3.6.2 Processes Dealing with Unreliable Data . . . . . . .
3.6.3 Processes dealing with unreliable resources . . . . .
3.6.4 Highly Distributed Processes . . . . . . . . . . . . .
3.7 Data Management . . . . . . . . . . . . . . . . . . . . . . .
3.7.1 Data Collection and Analysis (DCA) . . . . . . . . .
3.7.2 Big Data . . . . . . . . . . . . . . . . . . . . . . .
3.7.3 Semantic Sensor Networks and Semantic
Annotation of data . . . . . . . . . . . . . . . . . .
3.7.4 Virtual Sensors . . . . . . . . . . . . . . . . . . . .
3.8 Security, Privacy & Trust . . . . . . . . . . . . . . . . . . .
3.8.1 Trust for IoT . . . . . . . . . . . . . . . . . . . . .
3.8.2 Security for IoT . . . . . . . . . . . . . . . . . . . .
3.8.3 Privacy for IoT . . . . . . . . . . . . . . . . . . . .
3.9 Device Level Energy Issues . . . . . . . . . . . . . . . . . .
3.9.1 Low Power Communication . . . . . . . . . . . . .
3.9.2 Energy Harvesting . . . . . . . . . . . . . . . . . .
3.9.3 Future Trends and Recommendations . . . . . . . .
3.10 IoT Related Standardization . . . . . . . . . . . . . . . . .
3.10.1 The Role of Standardization Activities . . . . . . . .
3.10.2 Current Situation . . . . . . . . . . . . . . . . . . .
3.10.3 Areas for Additional Consideration . . . . . . . . .
3.10.4 Interoperability in the Internet-of-Things . . . . . .
3.11 IoT Protocols Convergence . . . . . . . . . . . . . . . . .
3.11.1 Message Queue Telemetry Transport (MQTT) . . . .
3.11.2 Constrained Applications Protocol (CoAP) . . . . .
3.11.3 Advanced Message Queuing Protocol (AMQP) . . .
3.11.4 Java Message Service API (JMS) . . . . . . . . . .
3.11.5 Data Distribution Service (DDS) . . . . . . . . . . .
3.11.6 Representational State Transfer (REST) . . . . . . .
3.11.7 Extensible Messaging and Presence
Protocol (XMPP) . . . . . . . . . . . . . . . . . . .
3.12 Discussion . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.5
73
73
74
77
79
79
80
81
81
82
83
84
86
88
89
89
90
91
92
92
94
95
97
97
99
102
103
106
109
109
110
111
111
112
112
112
Contents ix
4
Internet of Things Global Standardisation - State of Play
4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.1 General . . . . . . . . . . . . . . . . . . . . . . . .
4.2 IoT Vision . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.1 IoT Drivers . . . . . . . . . . . . . . . . . . . . . .
4.2.2 IoT Definition . . . . . . . . . . . . . . . . . . . . .
4.3 IoT Standardisation Landscape . . . . . . . . . . . . . . . .
4.3.1 CEN/ISO and CENELEC/IEC . . . . . . . . . . . .
4.3.2 ETSI . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.3 IEEE . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.4 IETF . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.5 ITU-T . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.6 OASIS . . . . . . . . . . . . . . . . . . . . . . . .
4.3.7 OGC . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.8 oneM2M . . . . . . . . . . . . . . . . . . . . . . .
4.3.9 GS1 . . . . . . . . . . . . . . . . . . . . . . . . . .
4.4 IERC Research Projects Positions . . . . . . . . . . . . . .
4.4.1 BETaaS Advisory Board Experts Position . . . . . .
4.4.2 IoT6 Position . . . . . . . . . . . . . . . . . . . . .
4.5 Conclusions . . . . . . . . . . . . . . . . . . . . . . . . . .
5
Dynamic Context-Aware Scalable and Trust-based IoT
Security, Privacy Framework
5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .
5.2 Background Work . . . . . . . . . . . . . . . . . . . . . . .
5.3 Main Concepts and Motivation of the Framework . . . . . .
5.3.1 Identity Management . . . . . . . . . . . . . . . . .
5.3.2 Size and Heterogeneity of the System . . . . . . . .
5.3.3 Anonymization of User Data and Metadata . . . . .
5.3.4 Action’s Control . . . . . . . . . . . . . . . . . . .
5.3.5 Privacy by Design . . . . . . . . . . . . . . . . . .
5.3.6 Context Awareness . . . . . . . . . . . . . . . . . .
5.3.7 Summary . . . . . . . . . . . . . . . . . . . . . . .
5.4 A Policy-based Framework for Security and Privacy
in Internet of Things . . . . . . . . . . . . . . . . . . . . .
5.4.1 Deployment in a Scenario . . . . . . . . . . . . . .
5.4.2 Policies and Context Switching . . . . . . . . . . .
5.4.3 Framework Architecture and Enforcement . . . . . .
143
143
144
147
149
149
150
150
165
170
175
176
179
183
187
188
191
191
192
193
199
199
202
203
204
206
206
206
206
207
208
209
212
214
219
x Contents
5.5 Conclusion and Future Developments . . . . . . . . . . . . 221
5.6 Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . 222
6
7
Scalable Integration Framework for Heterogeneous
Smart Objects, Applications and Services
6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .
6.2 IPv6 Potential . . . . . . . . . . . . . . . . . . . . . . . . .
6.3 IoT6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.4 IPv6 for IoT . . . . . . . . . . . . . . . . . . . . . . . . . .
6.5 Adapting IPv6 to IoT Requirements . . . . . . . . . . . . .
6.6 IoT6 Architecture . . . . . . . . . . . . . . . . . . . . . . .
6.7 DigCovery . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.8 IoT6 Integration with the Cloud and EPICS . . . . . . . . .
6.9 Enabling Heterogeneous Integration . . . . . . . . . . . . .
6.10 IoT6 Smart Office Use-case . . . . . . . . . . . . . . . . . .
6.11 Scalability Perspective . . . . . . . . . . . . . . . . . . . .
6.12 Conclusions . . . . . . . . . . . . . . . . . . . . . . . . . .
225
225
226
227
228
230
230
231
233
234
236
237
239
Internet of Things Applications - From Research
and Innovation to Market Deployment
7.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .
7.2 OpenIoT . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.2.1 Project Design and Implementation . . . . . . . . .
7.2.2 Execution and Implementation Issues . . . . . . . .
7.2.3 Project Results . . . . . . . . . . . . . . . . . . . .
7.2.4 Acceptance and Sustainability . . . . . . . . . . . .
7.2.5 Discussion . . . . . . . . . . . . . . . . . . . . . .
7.3 iCORE . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.3.1 Design . . . . . . . . . . . . . . . . . . . . . . . .
7.3.2 Project Execution . . . . . . . . . . . . . . . . . . .
7.3.3 Results Achieved . . . . . . . . . . . . . . . . . . .
7.3.4 Acceptance and Sustainability . . . . . . . . . . . .
7.4 Compose . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.4.1 Project Design and Implementation . . . . . . . . .
7.4.2 The IoT Communication Technologies . . . . . . . .
7.4.3 Execution and Implementation Issues . . . . . . . .
7.4.4 Expected Project results . . . . . . . . . . . . . . .
243
243
245
245
246
247
250
250
251
251
253
254
257
258
259
261
261
262
Contents xi
7.5
7.6
7.7
8
SmartSantander . . . . . . . . . . . . . . . . . . . . . . . .
7.5.1 How SmartSantander Facility has Become
a Reality? . . . . . . . . . . . . . . . . . . . . . . .
7.5.2 Massive Experimentation Facility: A Fire
Perspective . . . . . . . . . . . . . . . . . . . . . .
7.5.3 City Services Implementation: The Smart
City Paradigm . . . . . . . . . . . . . . . . . . . .
7.5.4 Sustainability Plan . . . . . . . . . . . . . . . . . .
Fitman . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.6.1 The “IoT for Manufacturing” Trials in Fitman . . . .
7.6.2 Fitman Trials’ Requirements to “IoT
for Manufacturing” . . . . . . . . . . . . . . . . . .
7.6.3 The TRW and Whirlpool Smart Factory Trial . . . .
7.6.4 Fitman Trials’ Exploitation Plans & Business
Opportunities . . . . . . . . . . . . . . . . . . . . .
7.6.5 Discussion . . . . . . . . . . . . . . . . . . . . . .
OSMOSE . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.7.1 The AW and EPC “IoT for Manufacturing”
Test Cases . . . . . . . . . . . . . . . . . . . . . . .
7.7.2 OSMOSE Use Cases’ Requirements to
“IoT for Manufacturing” . . . . . . . . . . . . . . .
7.7.3 OSMOSE Use Cases’ Exploitation Plans
& Business Opportunities . . . . . . . . . . . . . .
7.7.4 Conclusions and Future Outlook . . . . . . . . . . .
Bringing IP to Low-power Smart Objects: The Smart
Parking Case in the CALIPSO Project
8.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .
8.1.1 Bringing IP to Energy-Constrained Devices . . . . .
8.1.2 The CALIPSO Project . . . . . . . . . . . . . . . .
8.2 Smart Parking . . . . . . . . . . . . . . . . . . . . . . . . .
8.3 CALIPSO Architecture . . . . . . . . . . . . . . . . . . . .
8.3.1 CALIPSO Communication Modules . . . . . . . . .
8.3.2 CALIPSO Security Modules . . . . . . . . . . . . .
8.4 Calipso Implementation and Experimentation with
Smart Parking . . . . . . . . . . . . . . . . . . . . . . . .
8.4.1 Implementation of Calipso Modules . . . . . . . . .
8.4.2 Experimentation Plan for Smart Parking . . . . . . .
8.5 Concluding Remarks . . . . . . . . . . . . . . . . . . . . .
263
264
265
265
270
271
271
272
273
274
275
276
276
279
280
281
287
288
288
289
290
293
296
302
305
305
307
310
xii Contents
9
Insights on Federated Cloud Service Management and the
Internet of Things
315
9.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 316
9.2 Federated Cloud Services Management . . . . . . . . . . . 317
9.2.1 Cloud Data Management . . . . . . . . . . . . . . . 318
9.2.2 Cloud Data Monitoring . . . . . . . . . . . . . . . . 319
9.2.3 Cloud Data Exchange . . . . . . . . . . . . . . . . 320
9.2.4 Infrastructure Configuration and re-Configuration . . 321
9.3 Federated Management Service Life Cycle . . . . . . . . . . 321
9.3.1 Open IoT Autonomic Data Management . . . . . . . 323
9.3.2 Performance . . . . . . . . . . . . . . . . . . . . . 324
9.3.3 Reliability . . . . . . . . . . . . . . . . . . . . . . . 325
9.3.4 Scalability . . . . . . . . . . . . . . . . . . . . . . 326
9.3.5 Resource Optimization and Cost Efficiency . . . . . 327
9.4 Self-management Lifecycle . . . . . . . . . . . . . . . . . . 328
9.4.1 Service Creation . . . . . . . . . . . . . . . . . . . 328
9.4.2 Efficient Scheduling . . . . . . . . . . . . . . . . . 329
9.4.3 Service Customization . . . . . . . . . . . . . . . . 329
9.4.4 Efficient Sensor Data Collection . . . . . . . . . . . 329
9.4.5 Request Types Optimization . . . . . . . . . . . . . 330
9.4.6 Service Management . . . . . . . . . . . . . . . . . 330
9.4.7 Utility-based Optimization . . . . . . . . . . . . . . 332
9.4.8 Service Operation . . . . . . . . . . . . . . . . . . . 333
9.4.9 Customer Support . . . . . . . . . . . . . . . . . . 333
9.5 Self-Organising Cloud Architecture . . . . . . . . . . . . . 334
9.6 Horizontal Platform . . . . . . . . . . . . . . . . . . . . . . 335
9.6.1 Open IoT Architecture: Explanation and Usage . . . 338
9.6.2 Cloud Services for Internet-connected objects (ICO’s) 340
9.6.3 Management of IoT Service Infrastructures following
Horizontal Approach . . . . . . . . . . . . . . . . . 341
9.7 Conclusions and Future Work . . . . . . . . . . . . . . . . . 344
Index
351
4
Internet of Vehicles (IoV)
4.1 Introduction
The Internet of Vehicles (IoV) is a mobile cyber-physical system that
integrates two fundamental technological visions: vehicle networking and
vehicle intelligence. It enables real-time information exchange among
vehicles, humans, physical objects, network infrastructure, and the
surrounding environment. As a natural evolution from Vehicular Ad-hoc
Networks (VANETs), IoV addresses the fundamental limitations of purely
ad-hoc vehicular communication by incorporating all-IP infrastructure, cloud
computing, and heterogeneous wireless networks into a unified architecture.
The motivation for IoV is compelling. Global vehicle numbers grew
from 900 million in 2006 to one billion in 2014, with projections of two
billion by 2035. The World Health Organization estimates 1.25 million road
deaths per year — approximately 3,288 fatalities daily — while the United
States alone spends $836 billion annually on crash-related costs. Beyond
safety, connected vehicles represent an economic opportunity valued at
$210–740 billion per year by 2025 (Cisco and McKinsey), with projected
savings of $1,400 per vehicle per year through lower insurance, improved
fuel efficiency, and reduced commute time.
This chapter examines the definition, core components, and
communication types of IoV; presents the seven-layer architecture proposed
by Contreras-Castillo et al. and the five-layer model by Kaiwartya et al.;
surveys the IoV protocol stack; describes the intra-vehicular, environmental,
and multi-dimensional network models; introduces Vehicular Fog Computing
(VFC); surveys the taxonomy of IoV applications; and concludes with a
discussion of design challenges and future directions.
87
4 Internet of Vehicles (IoV)
| 88
4.2 Definition and Core Components
IoV is formally defined as a system that integrates IoT technology with
vehicular networking and vehicle intelligence via an all-IP infrastructure,
enabling persistent communication among vehicles, persons, personal
devices, network infrastructure, sensing devices, and roadside devices. The
distinction from VANET is fundamental: whereas VANET relies on ad-hoc
communication that cannot guarantee connectivity or support commercial
applications, IoV provides guaranteed Internet access through 4G/LTE,
Wi-Fi, and DSRC, with cloud-backed big-data analytics enabling
high-accuracy, commercially viable services.
The IoV environment consists of six core element types, each identified
by a distinct symbol in the literature. These six elements interact in eight
principal device-to-device (D2D) communication patterns, forming the
foundation of the IoV network model.
Table 4.1 Core element types in the IoV environment.
Component
Sym
bol
Description and Examples
Vehicle
V
Nearby vehicles that exchange traffic, safety, and
physical variable information via V2V communication.
Person
P
Drivers, passengers, and pedestrians who request or
access IoV services.
Personal Device
PD
Smartphones, tablets, and smartwatches belonging to a
person in the IoV environment.
Network
Infrastructure
I
All network nodes — base stations, routers, and servers
— used to route data.
Sensing Device
S
Sensors and actuators monitoring tire pressure, fuel
level, heart rate, pollution, noise, and weather.
Roadside
Device
R
Traffic lights, information screens, and radars that
disseminate accident and detour information.
The eight D2D interaction types are: (I) V2V — vehicle to vehicle; (II) V&P
— vehicle and person; (III) V&R — vehicle and roadside device; (IV) V&S
88
— vehicle and sensor; (V) V&I — vehicle and infrastructure; (VI) R&P —
roadside device and person; (VII) R2R — roadside to roadside (internal); and
(VIII) S&A — sensor and actuator (internal).
4.2.1 Five Types of Vehicular Communication
Vehicular communication is classified into five types depending on the
communicating entities and the technologies involved.
Table 4.2 Five types of vehicular communication in IoV.
Type
Full Form
Protocol /
Technology
Use Case
V2V
Vehicle-to-Vehicle
WAVE 802.11p /
DSRC (~300 m range)
Collision warning, speed
alerts, accident notification.
V2R /
V&R
Vehicle-to-Roadsid
e
WAVE 802.11p /
DSRC
Traffic signal information,
road condition alerts from
RSUs.
V2I
Vehicle-to-Infrastru
cture
4G/LTE, Wi-Fi
802.11b/g
Mobile
connectivity,
upload.
network
cloud data
V2P
Vehicle-to-Personal
Device
CarPlay / OAA / NFC,
Bluetooth
Driver
integration,
access.
smartphone
infotainment
V2S
Vehicle-to-Sensors
Ethernet / Wi-Fi /
MOST, CAN Bus
Intra-vehicle sensor data:
ECU, ABS, tire pressure
monitoring.
Key Terms: IoV | VANET | V2V | V2I | V2P | V2R | V2S | D2D | ECU | RSU | DSRC |
WAVE | 802.11p | Vehicle Intelligence | IoT
4.3 Seven-Layer IoV Architecture
The most widely referenced IoV architecture is the seven-layer model
proposed by Contreras-Castillo et al. (2017). It organizes the IoV system into
seven functional layers — from the User Interaction Layer at the bottom to
the Business Layer at the top — together with a transversal Security Layer
that communicates directly with all other layers. This layered structure
89
4 Internet of Vehicles (IoV)
provides modularity, interoperability, scalability,
integration for heterogeneous IoV components.
| 90
and
plug-and-play
Table 4.3 The seven-layer IoV architecture (Contreras-Castillo et al., 2017).
Layer / Name
Key Functions
Protocols /
Technologies
7 — Business
Stores, processes, and analyses data.
Defines business model strategies.
Supports Vehicular Cloud Computing
(VCC) and Big Data Analysis (BDA).
Models: Insurance (INS), Sale (SAL),
Service (SER), Advertisement
(ADV).
Vehicular-cloud
computing; INS, SAL,
SER, ADV.
6—
Management
Implements network management
policies. Manages multiple service
providers. Provides interoperability.
Handles traffic management, traffic
engineering, and deep packet
inspection.
CALM-SL,
WAVE-1609.6,
TR-069, OMA-DM.
5—
Communication
Coordinates the heterogeneous
network environment. Selects the best
access network using MADM
algorithms (SAW, TOPSIS, MEW,
GRA, VIKOR) based on QoS,
congestion, privacy, security, and
cost.
6LoWPAN,
IPv6,
RPL,
ROLL.
4—
Pre-processing
Filters collected data by removing
irrelevant information. Classifies and
disseminates data. Reduces network
bandwidth consumption based on the
active service profile.
XMPP, CoAP, HTTP
REST, MQTT, LLAP.
IPv4,
uIP,
90
4 Internet of Vehicles (IoV)
| 91
3 — Data
Acquisition
Gathers data from all sources.
Performs electromagnetic data
conversion. Intra-vehicular:
Bluetooth, RFID/NFC, WAVE,
UWB. Inter-vehicular: 802.15.4,
802.11p, 2G/3G/4G/LTE, WiMAX,
LoRaWAN.
Bluetooth
LE,
RFID/NFC,
IEEE
1609 WAVE, Wi-Fi
HaLow,
UWB,
802.11p,
WiMAX,
LoRaWAN.
2 — User
Interaction
Interacts directly with driver and
passengers. Manages driver
notifications. Selects the best display
modality for the current situation.
Reduces driver distraction.
Auditive
(sound),
Visual (display/HUD),
Haptic (vibration).
X — Security
(transversal)
Spans all other layers. Provides
authentication, integrity,
non-repudiation, confidentiality,
access control, and availability.
Mitigates cyberattacks, Sybil attacks,
replay attacks, and spoofing.
X.509, HSM, OTrP,
IEEE 1609.2, S-IC,
S-MIB.
4.3.1 User Interaction Layer
The User Interaction Layer manages all communication between the IoV
system and the human occupants of the vehicle. It supports two system types:
information-based systems, which deliver route guidance, traffic warnings,
parking information, and risk notifications; and control-based systems, which
implement adaptive cruise control, speed regulation, lane-keeping assistance,
and collision avoidance. Delivery modalities are auditive (voice alerts and
tones), visual (dashboard displays and head-up displays), and haptic (seat and
steering-wheel vibration). Commercial examples include Apple CarPlay and
the Google Open Automotive Alliance (OAA) Android platform. The central
design challenge is balancing information richness with driver safety:
excessive visual information increases cognitive workload and reduces
reaction time.
4.3.2 Data Acquisition Layer
The Data Acquisition Layer is responsible for gathering raw data from all
sources within and around the vehicle. Intra-vehicular data — collected by
91
4 Internet of Vehicles (IoV)
| 92
approximately 200 sensors per vehicle by 2020 — is routed to the Electronic
Control Unit (ECU) via in-vehicle wired and wireless networks. The
topology is stationary, so this layer requires low latency, high reliability, and
high security to protect vehicle control systems. Inter-vehicular data is
acquired from other vehicles, pedestrians, and roadside units (RSUs) via
wireless technologies to support real-time safety and infotainment
applications.
Table 4.4 Intra-vehicular wireless technology comparison.
Technolo
gy
Frequency
Max Data
Rate
Coverag
e
Max
Nodes
Security
Bluetooth
2.4 GHz
1–3 Mbps
10 m
8
—
ZigBee
868/915 MHz,
2.4 GHz
20–250 kbps
10–100 m
>65,000
128-bit
AES
Wi-Fi
HaLow
900 MHz
Up to 347
Mbps
Up to 1
km
~6,000
—
Ultra-wide
band
3.1–10.6 GHz
53.3–480
Mbps
300 m
8
AES
4.3.3 Pre-processing Layer
The Pre-processing Layer analyses the raw data collected at the Data
Acquisition Layer and removes irrelevant information before transmission,
thereby reducing network bandwidth consumption. The dissemination
decision is made based on the vehicle's active service profile: only data
relevant to subscribed services is forwarded to higher layers. Without this
filtering step, all devices would disseminate all collected data
indiscriminately, rapidly saturating available bandwidth. Protocols used at
this layer include XMPP (for messaging), CoAP (for constrained devices),
HTTP REST, MQTT (the publish-subscribe IoT protocol), and LLAP
(Lightweight Local Automation Protocol).
4.3.4 Communication Layer
92
4 Internet of Vehicles (IoV)
| 93
The Communication Layer selects the best available access network from the
heterogeneous environment surrounding the vehicle. Selection parameters
include network congestion, QoS level, network availability, information
relevance, privacy, security, and cost. The selection process is implemented
using Multi-Attribute Decision-Making (MADM) algorithms — including
SAW (Simple Additive Weighting), TOPSIS, MEW, GRA, and VIKOR —
which rank candidate networks against weighted criteria. Fuzzy logic is
applied to handle uncertain or imprecise attribute values. Protocols at this
layer include 6LoWPAN (IPv6 over low-power wireless personal area
networks), RPL (Routing Protocol for Low-Power and Lossy Networks), uIP
(micro Internet Protocol), and ROLL.
4.3.5 Management Layer
The Management Layer acts as the global coordinator for all network service
providers in the IoV environment. Its responsibilities include traffic
management, traffic engineering, deep packet inspection, and flow-based
management. A Virtual Network Operator (VNO) enforces policies and
manages data packet inspection. Protocols at this layer include CALM-SL,
WAVE-1609.6, TR-069, and OMA-DM (Open Mobile Alliance Device
Management).
4.3.6 Business Layer
The Business Layer constitutes the cloud-based intelligence of the IoV
system. It processes large volumes of data using Vehicular Cloud Computing
(VCC) and Big Data Analysis (BDA) in public, private, and enterprise cloud
environments. Functions include data storage, statistical decision-making,
and the implementation of business model strategies. Four principal business
models are supported: Insurance (INS), Sale (SAL), Service (SER), and
Advertisement (ADV).
4.3.7 Security Layer (Transversal)
The Security Layer is transversal — it communicates directly with all six
functional layers rather than occupying a single position in the layer stack. Its
functions include data authentication, integrity verification, non-repudiation,
confidentiality enforcement, access control, and availability assurance. It
93
4 Internet of Vehicles (IoV)
| 94
provides threat mitigation against cyberattacks, Sybil attacks, replay attacks,
and spoofing. Security projects referenced at this layer include WAVE (S-IC
security information connector), C2C (S-MIB security management
information base), CALM (HSM hardware security module), IEEE 1609.2,
X.509, and OTrP (Open Trust Protocol). Defining layer-wise security
protocol specifications remains an active research challenge.
Key Terms: Seven-Layer Architecture | Contreras-Castillo | User Interaction | Data
Acquisition | Pre-processing | Communication | Management | Business | Security
(Transversal) | ECU | MADM | TOPSIS | VIKOR | 6LoWPAN | RPL | MQTT | CoAP |
VCC | BDA | IEEE 1609.2 | X.509 | OTrP | HSM | S-IC | S-MIB
4.4 Protocol Stack for IoV
The IoV protocol stack is organized into two planes — an Operational plane
and a Security plane — corresponding to the seven-layer architecture. The
stack incorporates specifications from three vehicular standards projects
(WAVE, C2C-CC, CALM) and three IoT projects (HyDRA, IoT6, IoT-A).
The Security plane spans all layers, mirroring the transversal nature of the
Security Layer in the architectural model.
Table 4.5 IoV protocol stack organized by layer and plane.
Layer / Plane
Key Protocols
Business — Operational
Vehicular-cloud computing; Business models (INS,
SEL, SER, ADV).
Management —
Operational + Mgmt
CALM-SL, WAVE-1609.6, TR-069, OMA-DM;
Layer manager 1609.5; Channel coordinator;
Application, Network, and Interface managers.
Communication —
Operational
6LoWPAN, IPv4, IPv6, RPL, uIP, ROLL.
Pre-processing —
Operational
XMPP, CoAP, HTTP REST, MQTT, LLAP.
Acquisition Intra —
Operational
Bluetooth LE, RFID/NFC, IEEE 1609 WAVE,
Wi-Fi HaLow, Ultra-wideband.
94
4 Internet of Vehicles (IoV)
| 95
Acquisition Inter/Env —
Operational
IEEE 802.15.4, 2G/3G/4G/LTE, 802.11p (DSRC),
WiMAX, LoRaWAN.
User Interaction —
Operational
Auditive, Visual, and Haptic interfaces.
All Layers — Security
X.509, IEEE 1609.2, S-IC (C2C), S-MIB (C2C),
HSM (CALM), OTrP.
Key Terms: Protocol Stack | WAVE | C2C-CC | CALM | HyDRA | IoT6 | IoT-A |
Operational Plane | Security Plane | 6LoWPAN | RPL | uIP | ROLL | MQTT | CoAP |
LLAP | Bluetooth LE | RFID | Wi-Fi HaLow | Ultra-wideband | LoRaWAN | WiMAX
4.5 Five-Layer IoV Architecture
An alternative architecture, proposed by Kaiwartya et al. (2016), organizes
IoV into five layers: Perception, Coordination, Artificial Intelligence,
Application, and Business. Unlike the Contreras-Castillo model, this
architecture does not include a dedicated User Interaction layer or a
Pre-processing layer; these functions are absorbed into the Application layer
and Coordination layer respectively. Security is implemented as a security
plane that spans all layers rather than as a separate transversal layer.
Table 4.6 The five-layer IoV architecture (Kaiwartya et al., 2016).
Layer
Representation
Key Functionalities
Business
Graphs, flowcharts,
tables, diagrams.
Business model and investment designs;
resource usage and application pricing;
budget preparation; data aggregation.
Application
Smart applications for
vehicles and vehicular
dynamics.
Intelligent services to end users; service
discovery and integration; application usage
data and statistics.
Artificial
Intelligence
Cloud computing, big
data analysis, expert
systems.
Storing, processing, and analysis of data;
analysis-based decision making; service
management based on profit.
95
4 Internet of Vehicles (IoV)
| 96
Coordinatio
n
Heterogeneous
networks: WAVE,
WiFi, LTE.
Unified
structure
transformation;
interoperability
provisions;
secure
transportation of information.
Perception
Sensors and actuators
of vehicles, RSUs,
personal devices.
Data gathering from vehicles, traffic, and
devices; digitization and transmission;
energy optimization at lower layers.
Table 4.7 Comparison of the seven-layer and five-layer IoV architectures.
Feature
Seven-Layer
(Contreras-Castillo)
Five-Layer (Kaiwartya)
Security
Separate transversal security
layer.
Security plane spanning all
layers.
User interface
Dedicated User Interaction
layer.
Absorbed into the Application
layer.
Data filtering
Dedicated Pre-processing layer.
Absorbed into the Coordination
layer.
Cloud
Business layer uses cloud
computing.
Artificial Intelligence layer uses
cloud computing and BDA.
Focus
IoT-compatible protocols
(6LoWPAN, MQTT, CoAP).
Vehicular-specific
C2C, CALM).
(WAVE,
Key Terms: Five-Layer Architecture | Kaiwartya et al. | Perception | Coordination |
Artificial Intelligence | Application | Business | Security Plane
4.6 IoV Network Models
The IoV network model can be analysed at three levels of abstraction: the
intra-vehicular model describing communications inside the vehicle, the
environmental model describing communications between vehicles and
external entities, and the multi-dimensional model capturing the full scope of
entities and technologies that must cooperate in an IoV deployment.
4.6.1 Intra-Vehicular Model
96
4 Internet of Vehicles (IoV)
| 97
The intra-vehicular model focuses on communications inside a single vehicle.
The supported interaction types are V&P (vehicle and personal device), V&S
(vehicle and sensor), and S&A (sensor and actuator). Because all sensors are
physically fixed within the vehicle, the network topology is stationary and the
system is powered by the vehicle's battery, removing energy constraints that
apply in other IoT deployments. The ECU (Electrical Control Unit) acts as
the central hub, receiving all sensor data and controlling vehicle subsystems.
In-vehicle wired backbone networks — CAN Bus (Controller Area
Network), LIN Bus, and Automotive Ethernet — interconnect the ECUs.
Requirements are stringent: low latency, high reliability, and high security to
protect safety-critical vehicle control systems.
4.6.2 Environmental Model
The environmental model describes communications outside the vehicle,
covering inter-vehicle and vehicle-to-infrastructure interactions. Supported
interaction types include V2V, V&R, V&P (external pedestrians), R&P,
V&I, and R2R. DSRC provides a communication range of approximately 300
m; Dynamic Spectrum Access (DSA) extends coverage by exploiting unused
television white-space spectrum. 4G/LTE operates at 1700/2100 MHz with
throughput up to 129 Mbps, supports soft handoff for high-mobility
scenarios, and provides the low latency required for V2V
machine-to-machine communication. WiMAX offers coverage of up to 50
km with throughput of 70 Mbps and is particularly suited to road safety
monitoring and traffic analysis over large areas.
4.6.3 Multi-Dimensional Network Model
A complete IoV deployment requires multi-level collaboration across
multiple dimensions simultaneously.
Table 4.8 Dimensions of the multi-dimensional IoV network model.
Dimension
Examples
Multi-users
Drivers, passengers, pedestrians.
Multi-vehicles
Cars, motorcycles, bicycles.
97
4 Internet of Vehicles (IoV)
| 98
Multi-devices
Sensors, actuators, mobile devices, access points.
Multi-communication
models
Point-to-point, multipoint, broadcast, geocast.
Multi-networks
Wireless (Wi-Fi,
networks.
Multiple technologies
Wi-Fi, Bluetooth, WiMAX, LTE.
Multiple QoS
characteristics
Latency, throughput, packet loss.
DSRC,
LTE)
and
wired
Key Terms: Intra-Vehicular Model | Environmental Model | Multi-Dimensional
Model | ECU | CAN Bus | LIN Bus | DSRC | DSA | 4G/LTE | WiMAX | RSU | Soft
Handoff
4.7 Vehicular Fog Computing
Vehicular Fog Computing (VFC) is an architecture that employs vehicles
themselves as infrastructure — for both communication and computation —
to augment traditional fog computing. The motivation arises from a
fundamental limitation of static fog deployments: during peak-traffic hours,
the capacity of fixed fog nodes is overwhelmed, causing performance
degradation at precisely the moment when the highest computational demand
exists. VFC inverts this problem by treating traffic congestion as a
computational resource: more congestion means more vehicles co-located in
a small area, providing more fog compute power.
The VFC architecture is organized into three tiers: (1) a Sensors and
Applications tier at the vehicle level; (2) a Multi-Service Edge tier in which
vehicles act as fog nodes; and (3) a Core tier composed of RSUs, base
stations, and the cloud.
4.7.1 VFC Scenarios
Four VFC deployment scenarios arise from the intersection of two vehicle
states (moving or parked) and two functional roles (communication
infrastructure or computation infrastructure).
98
4 Internet of Vehicles (IoV)
| 99
Table 4.9 The four VFC deployment scenarios.
Vehicle
State
Functional
Role
Key Mechanism
Benefit
Moving
Communication
infrastructure
Multi-hop relaying; vehicles
form geo-distributed fog hubs
as mobile message carriers.
Better
packet
delivery; dynamic
connectivity; local
decision-making.
Moving
Computation
infrastructure
JamCloud: congested vehicles
and RSUs form a hybrid cloud
of mobile cloudlets and remote
cloud.
Redistributes
computation;
satisfies individual
vehicle processing
demands.
Parked
Communication
infrastructure
Vehicles form a static
backbone relaying packets
along roadsides; opportunistic
connectivity.
Improved content
sharing;
credible
static nodes; wide
geo-distribution.
Parked
Computation
infrastructure
Parking-lot cloudlet: parked
vehicles collaborate to execute
large distributed tasks.
Abundant
computation; long
dwell time; reduces
cloud dependency.
4.7.2 VFC Architecture Components
The VFC architecture incorporates several specialized management
components that operate across the three tiers.
• Fog Task Scheduler. Distributes computational tasks across fog clusters.
• Fog Resource Manager. Maintains a dynamically updated database of fog
nodes and their capacities; communicates with the Vehicular Resource
Manager.
• Vehicular Task Scheduler (VCC). Distributes computational tasks across
vehicle clusters.
• Vehicular Resource Manager. Maintains a dynamically updated database
of vehicular nodes and their capacities.
99
4 Internet of Vehicles (IoV)
•
| 100
Vehicle Clusters (1 to n). Groups of vehicles forming distributed
computational units.
• Fog Clusters (1 to m). Groups of static fog infrastructure nodes.
Key Terms: Vehicular Fog Computing (VFC) | JamCloud | Moving Vehicles | Parked
Vehicles | Fog Task Scheduler | Fog Resource Manager | Vehicular Task Scheduler |
Vehicular Resource Manager | Cloudlet | Mobile Cloudlet
4.8 Taxonomy of IoV Applications
IoV applications fall into two broad categories: Safety and Management
applications, which directly support road safety, navigation, vehicle health
monitoring, and remote telematic control; and Business-Oriented
applications, which generate commercial value through insurance, car
sharing, infotainment, and related services.
Table 4.10 Taxonomy of IoV applications by category and sub-category.
Category
Sub-catego
ry
Examples
Safety and
Management
Safety
Emergency call, wrong-way driver warning,
lane change warning, automatic braking,
overtaking warning, automatic speed control.
Safety and
Management
Navigation
Real-time traffic information, parking space
booking, traffic sign recognition, parking
location, electronic logging, navigation
extension.
Safety and
Management
Diagnostic
Service intimation, car usage checking,
self-repair guidance, driving behaviour
analysis, fuel optimisation.
Safety and
Management
Remote
Telematics
Remote locking/unlocking, stolen vehicle
recovery, car surveillance.
Business
Oriented
Insurance
Group/family
insurance,
usage-based
insurance, module-based, season-based, and
region-based insurance.
100
4 Internet of Vehicles (IoV)
| 101
Business
Oriented
Car Sharing
Car pooling, family group car booking, group
parking booking, car sharing via online key.
Business
Oriented
Infotainment
In-vehicle Wi-Fi, music downloading, online
streaming, SMS via car display, connected
drive, social media, location sharing.
Business
Oriented
Other
Mobile toll payment, reminder for forgotten
devices, cloud service access, car age analysis.
4.8.1 SmartDrive Application — VFC Case Study
SmartDrive is an illustrative VFC application in which an on-board computer
offloads three parallel sensing tasks to nearby vehicular fog nodes. Each task
is characterised by a start time, required processing delay, data size, and
mandatory completion deadline.
• Radar Task. Analyses radar sensor signals to determine the distance,
relative speed, and collision risk of surrounding vehicles. Enables forward
collision warning, automatic braking, and intersection movement
assistance.
•
Environment Task. Analyses pavement sensor data to determine
pavement type, asphalt status, moisture, and rain intensity. Calibrates
dampers, traction control, ABS, and brake feel accordingly.
• Camera Task. Analyses camera image streams to identify traffic signs and
speed limits. Enables road departure warning and speed limit alerts.
Key Terms: Application Taxonomy | Safety and Management | Business Oriented |
Emergency Call | Navigation | Diagnostic | Remote Telematics | Insurance | Car
Sharing | Infotainment | SmartDrive | VFC Case Study | Radar Task | Environment
Task | Camera Task
4.9 VANET Architecture Types and the IoV
Network Model
4.9.1 VANET Communication Architecture Types
101
4 Internet of Vehicles (IoV)
| 102
VANETs, the precursor to IoV, are classified into three communication
architecture types according to the degree of infrastructure dependency.
Table 4.11 VANET communication architecture types.
Type
Description
Key Characteristic
WAVE-base
d Infrastruct
ure
RSUs deployed alongside roads act as
wireless access points, providing
coverage to vehicles within their zone.
Infrastructure-dependent;
RSUs function as access
points;
coverage-zone
model.
Ad Hoc
Groups of on-road vehicles form
self-organising ad-hoc networks using
WAVE, operating independently of
fixed infrastructure.
Infrastructure-free;
self-organising; limited
range.
Hybrid
Cellular and ad-hoc architectures using
WAVE collaborate, combining the
benefits of infrastructure-based and
infrastructure-free approaches.
Most common in modern
deployments; forms the
basis for IoV.
The commercial failure of VANET can be attributed to six interrelated
limitations: pure ad-hoc networking without global service continuity; no
guaranteed Internet connectivity; incompatibility with personal devices;
absence of cloud computing support; low service accuracy due to reliance on
local traffic knowledge only; and cooperative dependency that makes
reliability contingent on user participation.
4.9.2 IoV Network Model — Three Elements
Kaiwartya et al. (2016) model the IoV network around three core elements:
Cloud, Connection, and Client.
Table 4.12 The three-element IoV network model (Kaiwartya et al., 2016).
Element
Description
Sub-components
102
4 Internet of Vehicles (IoV)
| 103
Cloud
The back-end intelligence and
storage of IoV. Hosts VCC and
BDA. Responsible for long-term
analytics, intelligent
decision-making, and service
management.
Public, private, and enterprise cloud;
VCC; BDA; STaaS, INaaS, NaaS,
CaaS, ENaaS, GaaS, PICaaS,
COMaaS.
Connec
tion
The heterogeneous network fabric
connecting clients to the cloud.
Manages interoperability across
all wireless access technologies
and includes all V2X links.
IEEE WAVE (802.11p) for
V2V/V2R; Wi-Fi and 4G/LTE for
V2I; CarPlay/NFC for V2P;
Ethernet/MOST for V2S; Global
Handoff Manager (GHM).
Client
End-user applications and
interfaces consuming IoV
services, divided into Safety and
Management applications and
Business-Oriented applications.
Emergency call, collision warning,
auto braking, parking, real-time
traffic, insurance, car sharing,
infotainment, connected drive.
4.9.3 IoV vs VANET: A Systematic Comparison
Table 4.13 Systematic comparison of IoV and VANET across key parameters.
Parameter
VANET
IoV
Network type
Pure ad-hoc (WAVE-based).
Heterogeneous:
ad-hoc,
cellular,
satellite,
and
Internet.
Internet
connectivity
Not guaranteed.
Guaranteed via 4G/LTE,
Wi-Fi, and WAVE.
Service continuity
Lost on vehicle
disconnection.
Maintained —
networks
automatically.
Personal device
integration
Architecturally incompatible.
V2P via CarPlay, NFC, and
OAA Android.
Cloud computing
Unavailable.
Core component — VCC
and BDA in AI/Business
layers.
alternative
selected
103
4 Internet of Vehicles (IoV)
| 104
Service accuracy
Low — based on local
knowledge only.
High — global traffic data
and AI/ML analysis.
Commercial
viability
Not viable.
Full
business
models:
insurance,
car-sharing,
infotainment.
Safety
applications
Basic safety and efficiency
only.
Advanced:
navigation,
telematics.
Cooperative
dependency
High — relies on user
cooperation.
Low
—
cloud
infrastructure-backed
decision-making.
Scalability
Limited to local cluster.
Global scale via cloud and
heterogeneous networks.
smart safety,
diagnostic,
and
Key Terms: VANET | WAVE-Based Infrastructure | Ad Hoc | Hybrid Architecture |
Cloud | Connection | Client | VCC | BDA | GHM | STaaS | COMaaS | IoV vs VANET |
Heterogeneous Networks | Global Handoff Manager
4.10 Design Challenges and Future Aspects
4.10.1 Design Challenges
Deploying a complete IoV system raises eight principal design challenges,
each arising from the unique characteristics of vehicular environments and
the stringent requirements of safety-critical applications.
Table 4.14 Principal design challenges in IoV deployment.
Challenge
Description
Potential Solution
Heterogen
eity
Incompatibility among devices,
protocols, and communication
technologies from different
manufacturers and standards
bodies.
Layered
architecture
with
standardized
interfaces;
middleware abstraction.
104
4 Internet of Vehicles (IoV)
| 105
QoS
Variability
Different quality and response
times across Internet connections,
creating inconsistent service for
safety-critical applications.
MADM algorithms (TOPSIS,
VIKOR) for dynamic network
selection.
Limited
Resources
Restricted processing power and
storage capacity at the vehicle end,
especially for computationally
intensive safety tasks.
VFC offloading to nearby fog
nodes or edge infrastructure.
Data
Overload
IoV devices generate enormous
volumes of raw data, much of it
irrelevant to any particular
application.
Pre-processing and filtering
layer; intelligent data mining.
Security
and
Privacy
Vulnerability to identity theft,
Sybil attacks, replay attacks, and
cyberattacks on safety-critical
systems.
Transversal
security
ECDSA; IEEE 1609.2.
Handoff M
anagement
Seamless switching between
DSRC, LTE, and Wi-Fi during
high-speed vehicle movement
without service interruption.
Global
Handoff
Manager
(GHM) — remains an open
research problem.
Connectivi
ty
Guarantee
Maintaining reliable
communication during high-speed
mobility, particularly in sparse
network conditions.
Multi-hop
V2V
combined
with
infrastructure.
Real-Time
Requireme
nts
Safety applications require
ultra-low latency (sub-100 ms)
that cannot be met by round-trips
to remote cloud servers.
Fog and edge processing at
RSUs or VFC nodes; DSRC for
local V2V.
layer;
relaying
RSU
4.10.2 Future Aspects
Several technology trends will shape the future evolution of IoV over the
coming decade.
• 5G and 6G Integration. Ultra-low latency and massive device density in
5G/6G networks will enable safety-critical V2V communication at
highway speeds and support dense urban IoV deployments.
105
4 Internet of Vehicles (IoV)
| 106
• AI and ML at the Edge. Intelligent traffic prediction, anomaly detection,
and autonomous decision-making will migrate to edge nodes, reducing
dependence on cloud round-trips for time-sensitive inference.
•
Blockchain for IoV. Decentralized identity management and
tamper-evident transaction logging will provide a scalable security
substrate for V2V and V2I interactions without central trust authorities.
• SDN and NFV. Software-Defined Networking and Network Functions
Virtualization will enable flexible, programmable IoV management layers
and support virtual network operators at scale.
• Energy Harvesting. Solar and kinetic energy harvesting at RSUs and
sensor nodes will reduce infrastructure operating costs and improve
sustainability.
•
C-ITS. The EU Commission's Cooperative Intelligent Transportation
Systems initiative is driving next-generation standardization of vehicular
network deployments across member states.
• Global Deployments. Active deployments include US security chips in all
connected vehicles, Delhi GPS/Wi-Fi integration in public transport, EU
C-ITS rollout, Apple CarPlay, and Google OAA.
Key Terms: Heterogeneity | QoS Variability | VFC Offloading | Data Overload |
Security | Sybil Attack | Replay Attack | Handoff Management | GHM | 5G | 6G |
AI/ML at Edge | Blockchain | SDN | NFV | Energy Harvesting | C-ITS
4.11 Case Study: Mechanical Failure Scenario
The following case study traces data and control flow through all seven layers
of the Contreras-Castillo architecture using a scenario in which a vehicle
suffers a mechanical failure on a public road. This scenario is representative
of the most common examination question type for this chapter.
Table 4.15 Layer-by-layer data flow in the mechanical failure scenario.
Ste
p
Layer
Action
106
4 Internet of Vehicles (IoV)
| 107
1
Data
Acquisition
Vehicle sensors detect the mechanical problem. The ECU is
immediately notified via Bluetooth or Ethernet, and a fault
alert is triggered.
2
User Interaction
The driver is notified through the most appropriate interface
— a visual dashboard warning light combined with an
auditory alert.
3
Pre-processing
The ECU filters the fault data into two categories: (a)
mechanical service information for the manufacturer, and
(b) environmental broadcast information for surrounding
vehicles.
4–5
Communication
+ Pre-processing
The Communication Layer selects the best available access
technology. The vehicle begins broadcasting its disabled
position at periodic intervals.
6
User Interaction
Nearby receiving vehicles notify their drivers via visual,
audio, or haptic signals. GPS systems suggest alternate
routes and recommend reduced speed.
7
Management
The vehicle notifies roadside infrastructure. RSUs display
warning messages to approaching vehicles and may alter
traffic signal timing or open emergency lanes.
8
Business
Roadside infrastructure stores the event data in the cloud
for future statistical analysis and insurance processing.
9
Pre-processing
The vehicle initiates a detailed status analysis for
transmission to the manufacturer and determines whether
vehicle isolation is required.
10
Communication
The Communication Layer evaluates all available
technologies against the vehicle's service profile, security
requirements, coverage, and cost, and selects the best
network.
11
Security
All transmitted data is encrypted and a secure connection is
established. Physiological data about occupants from
wireless body area network sensors is also included.
12
Business
All status data is stored in the cloud. A detailed
personalised report is generated, and Big Data Analysis
(BDA) is applied for predictive failure prevention.
107
4 Internet of Vehicles (IoV)
| 108
Key Terms: Mechanical Failure Scenario | Data Acquisition | User Interaction |
Pre-processing | Communication Layer | Management Layer | Business Layer |
Security Layer | RSU | ECU | BDA | Predictive Maintenance | Body Area Network
4.12 Answer Strategies for Examination
Questions
This section provides structured frameworks for answering common
examination questions on the Internet of Vehicles.
4.12.1 General Answer Strategy
Table 4.16 General strategy for answering IoV examination questions.
Step
Action
1. Define IoV
Open with: 'IoV integrates vehicle networking and vehicle
intelligence via an all-IP infrastructure enabling V2V, V2I, V2P,
V2R, and V2S communications.'
2. State
architecture
Name the seven-layer model (Contreras-Castillo) or five-layer
model (Kaiwartya) with layers listed bottom to top.
3. Map to
layers
Trace the scenario through: Data Acquisition → Pre-processing →
Communication → Management → Business.
4. Address
fog/edge
State: 'Fog computing processes latency-sensitive data locally at
VFC or RSU nodes; the cloud handles long-term analytics.'
5. Security
note
State: 'A transversal security layer (IEEE 1609.2, X.509, HSM)
ensures authentication and confidentiality across all layers.'
6. Conclude
Close with: 'This architecture improves road safety, reduces
congestion, enables commercial business models, and delivers
$1,400 per vehicle per year in savings (Cisco IBSG).'
4.12.2 Model Answer Framework: Smart City IoV System
(10 Marks)
The following framework addresses a representative 10-mark question:
design an IoV system for a smart city that uses fog computing locally and
108
4 Internet of Vehicles (IoV)
| 109
cloud computing for long-term analytics, covering data flow through the
system layers (Part A) and the protocols required for low-latency reliable
communication (Part B).
Opening statement (always write this first):
In an IoV ecosystem, data flows through a seven-layer architecture spanning
from physical sensor acquisition at the vehicle level through fog-based
pre-processing and communication to cloud-based analytics, enabling
real-time decision-making for traffic management and safety.
Part A — Data Flow [5 Marks]
Types of data generated (mention at least four types):
• Kinematic data. vehicle speed, acceleration, heading, and GPS location
from ECU and GPS receiver.
•
Sensor data. tire pressure, fuel consumption, engine temperature, oil
pressure, and proximity data from collision sensors.
• Environmental data. pollution levels, noise, weather conditions, road
surface type, and rain intensity.
• Biometric data. driver heart rate, blood pressure, and stress levels from
Body Area Network sensors.
• Infrastructure data. traffic signal states and road condition alerts from
RSUs and traffic cameras.
Data flow sequence through layers:
1. Data Acquisition Layer. Sensors collect raw data. Intra-vehicle data
flows via CAN Bus to the ECU. Inter-vehicle data arrives via
DSRC/802.11p (V2V, V&R;) and 4G/LTE (V2I).
2. Pre-processing Layer. The ECU or fog node filters irrelevant data,
classifying content into safety-critical (high priority) and non-critical
(infotainment) streams. Bandwidth consumption is reduced before
transmission.
3. Communication Layer. A MADM algorithm selects the best available
network — DSRC for real-time safety, LTE for wide-area coverage, and
109
4 Internet of Vehicles (IoV)
| 110
Wi-Fi for RSU-proximate communication. Processed data is forwarded
to the fog or cloud.
4. Fog Processing. Latency-sensitive data — collision alerts and speed
warnings — is processed locally at fog nodes (RSUs or VFC).
Immediate responses are dispatched to nearby vehicles.
5.
Management Layer. Coordinates multiple service providers, applies
traffic management policies, and controls data flow between fog and
cloud.
6. Business/Cloud Layer. Long-term analytics are applied: historical traffic
patterns, insurance pricing, and predictive maintenance. Data is stored
using VCC and BDA.
Part B — Protocols for Low-Latency and Reliable Communication [5
Marks]
Ensuring low-latency and reliable communication in IoV requires a
heterogeneous protocol stack combining short-range dedicated vehicular
standards for real-time safety with cellular technologies for wide-area
coverage, all managed through intelligent network selection algorithms.
Table 4.17 Protocols and technologies for low-latency reliable IoV communication.
Requirement
Protocol /
Technology
Why Suitable
Ultra-low latency
V2V safety
DSRC + IEEE
802.11p (WAVE)
Dedicated 5.9 GHz spectrum; ~300 m
range; latency below 10 ms; no
infrastructure dependency.
Wide-area
connectivity
4G/LTE
Up to 129 Mbps; soft handoff for
mobility; low latency; large coverage
area.
Local fog
communication
Wi-Fi HaLow
(802.11ah)
Energy-efficient; up to 1 km range;
supports thousands of simultaneous
devices.
110
4 Internet of Vehicles (IoV)
| 111
IoT sensor
telemetry
MQTT over 802.11p
/ LTE
Lightweight
publish-subscribe
protocol; minimal overhead; ideal for
high-frequency sensor data.
Constrained
device
communication
CoAP
REST-like
protocol
for
resource-limited devices; UDP-based;
low computational overhead.
Dynamic
network
selection
MADM (TOPSIS /
VIKOR)
Dynamically selects the optimal
network based on QoS, congestion,
security, and cost.
Intra-vehicle
backbone
CAN Bus +
Ultra-wideband
(UWB)
CAN
Bus:
proven
automotive
standard. UWB: 480 Mbps, 300 m
range, high reliability.
Authentication
and security
IEEE 1609.2 +
ECDSA
Certificate-based
authentication;
efficient
elliptic-curve
signature
verification for VANETs.
Closing statement: The combination of DSRC for time-critical safety
messages, 4G/LTE for wide-area reliable connectivity, fog computing for
local real-time processing, and MADM-based network selection ensures that
the IoV system achieves the sub-100 ms latency and high-reliability
requirements essential for a smart city transportation network.
Key Terms: Answer Strategy | Data Flow | Kinematic Data | Biometric Data | MADM
| TOPSIS | VIKOR | DSRC | 802.11p | 4G/LTE | MQTT | CoAP | Wi-Fi HaLow | CAN
Bus | Ultra-wideband | IEEE 1609.2 | ECDSA | Fog Processing | BDA | VCC
4.13 Quick Reference
4.13.1 Prior IoV Architecture Comparison
Table 4.18 Historical overview of IoV architecture proposals.
Architecture
Layers
Communication
Models
Security
Approach
111
4 Internet of Vehicles (IoV)
| 112
Nanjie (2011)
3: Client,
Connection,
Cloud
V2V, V&R;, V&P;,
V&I;
Security
Service.
Wan et al.
(2014)
3: Vehicle,
Location,
Cloud
V2V, V&R;
Cross-layered.
Bonomi (2013)
4: Services,
Operation,
Infrastructure,
Endpoints
V2V, V&I;
Cross-layered.
Gandotra et al.
(2017)
3: D2D Area,
Network
Management,
D2D
Applications
D2D-B, D2D-C,
D2D-D, M2MD,
D2D-N
Not specified.
Kaiwartya et al.
(2016)
5: Perception,
Coordination,
AI, App,
Business
V&I;, V2V, V&S;,
V&P;, V&R;
Security
plane
spanning all layers.
Contreras-Casti
llo (2017)
7 + transversal
Security layer
All: V2V, V&P;,
V&R;, V&S;, V&I;,
R&P;, R2R, S&A;
Transversal
security layer.
as
a
4.13.2 IoV Market Statistics
Table 4.19 Key IoV market and safety statistics.
Statistic
Value
Source / Context
Road deaths
worldwide
1.25 million/year
(~3,288/day)
WHO — primary motivation
for IoV investment.
Economic cost of
road crashes
3% of world GDP
WHO — justifies government
investment in smart transport.
Travel time savings
revenue
€25 billion/year by
2030
Assuming 5 minutes of saved
travel time per driver per day.
112
4 Internet of Vehicles (IoV)
| 113
Automobile profit
growth
€54B (2012) → €79B
(2020)
Market
opportunity
for
connected vehicle services.
Connected car sales
81.2 million/year; 80%
of new cars by 2025
Industry forecast —
market penetration.
Economic value of
IoV
$210–740 billion/year
by 2025
Cisco and McKinsey combined
estimates.
Benefit per vehicle
$1,400
USD/vehicle/year
Cisco
IBSG
Automotive:
insurance, fuel, productivity.
Driver saving per
vehicle
~$550 USD/year
Lower
insurance,
reduced
operating costs, commute time
savings.
rapid
4.14 Summary
The Internet of Vehicles represents a fundamental evolution from vehicular
ad-hoc networks toward a fully integrated, cloud-connected, and intelligent
transportation system. By combining IoT technology, vehicle intelligence,
and heterogeneous wireless networks within an all-IP infrastructure, IoV
overcomes the core limitations of VANET — guaranteed Internet
connectivity, support for personal devices, cloud-based big data analytics,
and commercially viable business models — while substantially improving
road safety and operational efficiency.
The seven-layer architecture of Contreras-Castillo et al. provides the
most comprehensive framework, organizing IoV functions from User
Interaction and Data Acquisition at the lower layers through Pre-processing,
Communication, and Management to the Business Layer, with a transversal
Security Layer protecting all tiers. The five-layer architecture of Kaiwartya et
al. offers an alternative abstraction focused on vehicular-specific protocols.
Vehicular Fog Computing extends the fog computing paradigm by
treating vehicles themselves as distributed compute and communication
infrastructure, addressing the peak-load problem of static fog deployments
and exploiting congestion as a resource. Four VFC scenarios — moving and
parked vehicles as communication and computation infrastructure — provide
113
4 Internet of Vehicles (IoV)
| 114
a systematic design space for VFC deployments.
Principal design challenges include heterogeneity management, QoS
variability, resource constraints, data overload, security threats, seamless
handoff, connectivity guarantees, and strict latency requirements. Future
directions centre on 5G/6G integration, AI/ML at the edge, blockchain-based
security, SDN/NFV for flexible management, and globally coordinated
C-ITS deployments.
Key Terms: Internet of Vehicles | IoT | Vehicle Intelligence | All-IP Infrastructure |
Seven-Layer Architecture | Five-Layer Architecture | VFC | Fog Computing | Cloud
Computing | V2V | V2I | V2P | V2R | V2S | DSRC | 4G/LTE | MADM | IEEE 1609.2 |
C-ITS | SDN | Blockchain
114
5
Optimization Problems in Fog and Edge
Computing
5.1 Introduction
Fog computing improves quality attributes by processing data near the source
rather than routing everything to a distant cloud. The three primary
optimization targets are latency, execution time, and energy consumption,
each of which has direct implications for application correctness and user
experience. Because these objectives frequently conflict with one another,
multi-objective optimization techniques are required to navigate the resulting
trade-off space effectively.
The sections that follow first establish a rigorous formal definition of
optimization problems, introduce the mathematical framework used to model
fog architectures, discuss the principal metrics that serve as objectives or
constraints, and then survey the major optimization opportunities that arise at
each layer and lifecycle stage of a fog deployment.
5.2 Optimization Problems – Definitions and Core
Concepts
An optimization problem asks for the best solution from all possible solutions
by adjusting a set of variables within their permitted ranges while satisfying a
collection of rules.
5.2.1 Four Components
Every well-posed optimization problem is characterized by four components,
conveniently remembered as VDCO: Variables, Domains, Constraints, and
an Objective function.
Table 5.1 The four components of an optimization problem.
5 Optimization Problems in Fog and Edge Computing
| 104
Component
Description
Variables (x1,...,xn)
Things we can adjust or change to reach the goal. For
example: departure time, route, or speed.
Domains (D1,...,Dn)
The allowed range of values for each variable. For
example: departure between 06:00 and 09:00.
Constraints (C1,...,Cm)
Rules that must be satisfied. For example: arrive before
17:00, respect speed limits.
Objective Function f
The mathematical goal: the value to maximize or minimize.
For example: minimize total travel time.
5.2.2 Formal Definition
More precisely, let x = (x1, x2, …, xn) be the list of variables, where each
variable xi has a domain Di specifying its valid values. A constraint Cj
involves variables xj1...xjk; their valid combinations form a subset Rj ⊆
Dj1×...×Djk. The objective function f : D1×…×Dn → R assigns a real number
to every combination of variable values.
The goal is to find values v1, …, vn such that: (a) each vi ∈ Di; (b) all
constraints are satisfied; and (c) f(v1, …, vn) is maximized (or, for a
minimization problem, minimized).
5.2.3 Optimization Types
The two canonical forms are maximization and minimization. In a
maximization problem the objective is to find the combination of variable
values that yields the highest possible value of f — for example, maximizing
network throughput. In a minimization problem the goal is the lowest
possible value — for example, minimizing end-to-end latency. The two forms
are equivalent: minimizing f is identical to maximizing f′ = −f.
5.2.4 Key Steps to Formalize a Practical Problem
1. Identify variables — determine what quantities can be adjusted.
2. Define domains — specify the valid range for each variable.
3. Set constraints — enumerate the rules that must hold.
4. Formulate the objective function — decide what is to be optimized.
Formalization necessarily involves abstraction: non-essential details are
suppressed so that the core mathematical structure is exposed. This improves
clarity, supports reusability across similar problem instances, and enables
precise reasoning about computational complexity.
5 Optimization Problems in Fog and Edge Computing
| 105
5.2.5 Multi-Objective Optimization
Real-world problems seldom have a single objective. Minimizing operational
cost while simultaneously maximizing user comfort, for instance, requires
trading off two goals that pull in opposite directions. Three standard
approaches handle this situation.
Table 5.2 Standard approaches to multi-objective optimization.
Approach
Description
Adding Lower Bounds
Fix minimum acceptable thresholds for all objectives except
one, then freely optimize the remaining objective. For
example: fuel efficiency ≥ 30 MPG, comfort score ≥ 7, then
minimize cost.
Scalarizing
Combine all objectives into a single weighted-sum function.
Each objective is assigned a weight reflecting its importance
(e.g., cost 50 %, fuel 30 %, comfort 20 %) and a combined
score is computed.
Pareto-Optimal
Solutions
Identify solutions where improving one objective cannot be
achieved without worsening another. The resulting Pareto
front represents the complete set of best possible trade-offs.
Key Terms: Variables | Domains | Constraints | Objective Function |
Minimization | Maximization | Formalization | Abstraction | Multi-objective |
Scalarizing | Pareto-optimal | Lower Bounds
5.3 The Case for Optimization in Fog Computing
Fog computing improves quality attributes by processing data near the source
instead of routing everything to a distant cloud. The three primary
optimization targets, together with their motivation and goal, are shown in
Table 5.3.
Table 5.3 Primary optimization targets in fog computing.
Target
Why It Matters
Optimization Goal
Latency
Real-time applications such as
self-driving vehicles and health
monitoring cannot tolerate delays.
Fog nodes are physically closer to
devices, cutting data-travel time.
Reduce the time for data to
travel between device and
computation resource.
5 Optimization Problems in Fog and Edge Computing
| 106
Target
Why It Matters
Optimization Goal
Execution Time
Compute-intensive tasks (ML
inference, video processing) must
meet deadlines. Fog enables faster
processing via nearby resources.
Minimize the time to process
and return results for offloaded
tasks.
Energy
Consumption
End devices (smartphones, IoT
sensors) have limited battery.
Offloading to fog reduces
device-side computation.
Minimize device energy while
ensuring efficient task
execution.
5.3.1 Conflicts Between Objectives
These three objectives exhibit non-trivial interactions that make simultaneous
optimization difficult.
• Latency vs. load. Assigning a task to a nearby fog node reduces latency,
but that node may already be heavily loaded, increasing execution time.
• Energy vs. latency. Minimizing device energy by offloading to a distant
node introduces higher communication latency.
• Reliability vs. cost. Adding redundancy improves fault-tolerance but
consumes more resources and increases cost.
These conflicts require multi-objective optimization techniques such as
Pareto optimality or weighted-sum scalarization.
5.3.2 Additional Optimization Objectives
• Resource utilization. Efficiently using CPU and storage of fog nodes.
• Cost minimization. Reducing operational costs — energy, subscription
fees, data-transfer charges.
• Reliability and fault tolerance. Ensuring tasks complete even when fog
nodes fail.
• Scalability. Handling more devices or tasks without performance
degradation.
5.4 Formal Modeling Framework for Fog Computing
The framework mathematically models the three-layer fog architecture (end
devices → edge/fog → cloud) so that optimization problems can be
rigorously defined and compared.
5.4.1 The Three Layers
5 Optimization Problems in Fog and Edge Computing
| 107
Table 5.4 The three layers of the fog computing architecture.
Layer
Components
Key Characteristic
Cloud
Data centers, cloud
services
Highest compute power, large-scale;
farthest from devices; cost- and
energy-efficient at scale.
Edge / Fog
Base stations, routers, mini Near the network edge; connected to both
data centres
cloud and end devices; intermediate
processing capability.
End Device
Mobile phones, IoT
sensors, cameras
Closest to the data source; limited battery
and compute capacity; each connects to
exactly one edge resource.
5.4.2 Sets and Definitions
The notation used throughout this chapter is summarized in Table 5.5. Let c
denote the cloud, E the set of all edge resources (fog nodes), and De the set of
end devices connected to a specific edge resource e ∈ E. The set of all end
devices is D = ∪e∈EDe. The complete set of resources in the system is
R = {c} ∪ E ∪ D.
Table 5.5 Notation overview.
Symbol
Meaning
c
The cloud (single entity).
E
Set of all edge resources (fog nodes).
De
Set of end devices connected to edge resource e ∈ E.
D = ∪De
Set of all end devices (union across all edge resources).
R = {c} ∪ E ∪ D
Set of all resources in the system.
a(r)
Compute capacity of resource r ∈ R (measured in FLOPS).
s(r)
Compute speed of resource r (instructions per second).
w(r)
Marginal energy consumption (power per instruction) of
resource r.
L
Set of all communication links between resources.
t(l)
Latency of link l ∈ L (delay in data transfer).
b(l)
Bandwidth of link l (data-transfer capacity).
w(l)
Power cost per byte transferred on link l.
5 Optimization Problems in Fog and Edge Computing
| 108
5.4.3 Communication Links
Links exist between the cloud and each edge resource (the set {ce : e ∈ E})
and between each edge resource and its connected end devices (the set
{ed : e ∈ E, d ∈ De}). There is no direct link between the cloud and end
devices; all communication must pass through the edge layer.
5.4.4 Smart City Problem – Full Formalization Example
To illustrate the framework, consider an IoT-based smart city deployment.
IoT devices generate tasks that are to be assigned to fog nodes for
preprocessing. The objective is to minimize total latency subject to resource
constraints.
Variables. Let xij ∈ {0, 1} be a binary assignment variable: xij = 1 if task Ti
is assigned to fog node fj, and 0 otherwise. Let D = {d1,…,dm} be the set of
IoT devices, F = {f1,…,fn} the set of fog nodes, and T = {T1,…,Tm} the set of
tasks.
Constraints.
• Task assignment: Σj xij = 1 for all i ∈ {1,…,m} (each task is assigned to
exactly one fog node).
• Compute capacity: Σi Ri·xij ≤ Cj for all j ∈ {1,…,n} (total compute load
on node j must not exceed its capacity).
• Bandwidth: Σi bi·xij ≤ Bj for all j (total data transferred to node j must not
exceed its bandwidth limit).
Objective function. The total latency for task Ti assigned to node fj is
Lij = Lcomp,i,j + Lcomm,i,j, where Lcomp,i,j is the computation latency and
Lcomm,i,j is the communication latency. The optimization problem is:
minimize Σi Σj xij·Lij
Key Terms: Formal Modeling | Edge Resources E | End Devices D | Resources R
| Compute Capacity a(r) | Compute Speed s(r) | Marginal Energy w(r) | Links L |
Latency t(l) | Bandwidth b(l) | Binary Variable xij | Compute Constraint |
Bandwidth Constraint
5.5 Metrics in Fog Computing
Metrics can serve as optimization objectives (quantities to minimize or
maximize) or as constraints (limits that must be respected), depending on the
5 Optimization Problems in Fog and Edge Computing
| 109
application context. The choice is application-driven: a real-time application
will constrain execution time and minimize energy, while a battery-limited
device will constrain energy and minimize execution time.
5.5.1 Performance Metrics
Table 5.6 Key performance metrics in fog computing.
Metric
Formula / Definition
Notes
Execution Time (Texec) Texec = Tend-device + Ttrans +
Tedge-compute
Governed by the critical path
(the slowest dependent
sequence).
Latency (Tlatency)
Delay in data transfer
between devices.
Lower is better. Fog reduces
this through physical
proximity.
Throughput (τ)
Number of tasks completed
per unit time.
Higher is better. Indicates
overall system capacity.
Computation Time
(Tcomp)
Time to process data on one
resource.
A component of total
execution time.
Transfer Time (Ttrans)
Time to send data between
resources.
Depends on data size and
bandwidth b(l).
5.5.2 Resource Usage Metrics
Table 5.7 Resource usage metrics.
Metric
Key Points
CPU Usage (UCPU)
CPU can be overbooked: more tasks may be assigned than
capacity strictly allows, causing execution to slow but not
fail. This is unacceptable for real-time tasks.
Memory Usage (Umem)
Memory cannot easily be overbooked. Running out causes
application failure, not merely a slowdown.
Network Bandwidth
(Unet)
Constrained by Unet ≤ Bmax. Should be minimized or kept
within limits.
5.5.3 Energy Consumption
The power consumption P(r) of a resource r denotes the rate of energy use in
watts. The total energy consumed is E(r) = P(r) × Texec. It is important to note
that a faster machine may consume more power per unit time yet still be more
energy-efficient overall because it finishes the task in less time.
5 Optimization Problems in Fog and Edge Computing
| 110
Table 5.8 Energy considerations by layer.
Layer
Battery-Powered
?
Priority
End Devices
Yes — critical
Minimize energy strongly. Battery
depletion equals device failure.
Edge Resources
No (grid-powered)
Less critical, but still matters for
operational cost.
Cloud
No (grid-powered)
Financial cost driver. Electricity bills are
significant at scale.
The total system energy is Etotal = Eend-devices + Eedge + Ecloud, and the
optimization goal is to minimize Etotal.
5.5.4 Financial Cost
The total financial cost is Ctotal = Cfixed + Cusage + Cnet, where:
• Cfixed = fixed costs such as subscription or infrastructure lease fees;
• Cusage = usage-based costs charged per unit of compute or storage
consumed;
• Cnet = network costs charged per byte of data transferred.
Key Terms: Execution Time | Latency | Throughput | Critical Path | CPU
Overbooking | Memory Constraint | Unet ≤ Bmax | Power P(r) | E(r) = P(r)×Texec
| Etotal | Fixed Cost | Usage Cost | Network Cost | Ctotal
5.6 Further Quality Attributes
Unlike performance metrics, quality attributes such as reliability, security,
and privacy are usually addressed through system design rather than pure
mathematical optimization. However, they can be incorporated into an
optimization formulation as constraints or secondary objectives, and they
invariably create trade-offs with performance metrics.
5.6.1 Reliability
Reliability is the property that ensures the system continues to function even
if individual components fail. The standard approach is redundancy: critical
tasks are processed on multiple fog nodes simultaneously. If one node fails,
another completes the task. The trade-off is that more redundancy requires
more resources and therefore incurs higher cost.
5 Optimization Problems in Fog and Edge Computing
| 111
5.6.2 Security
• Trust scores. Fog nodes are assigned scores based on reputation and past
performance. Tasks are preferentially assigned to high-trust nodes. The
trade-off is that trusted nodes may charge a premium.
• Avoiding multi-tenant risks. Multiple users sharing a fog node enlarges
the attack surface. Minimizing co-tenancy reduces risk but limits
resource utilization.
• Minimizing data transfer. Keeping a task on the same node avoids
sending sensitive data over the network, reducing the risk of interception.
5.6.3 Privacy
• Co-location of tasks. Processing tasks from the same user on the same
fog node prevents data fragmentation across potentially untrusted nodes,
thereby protecting user privacy.
5.6.4 Trade-Off Summary
Table 5.9 Trade-offs introduced by quality attributes.
Quality Attribute Action Taken
Negative Trade-Off
Reliability
Process critical tasks on
multiple redundant nodes.
More resource use; higher
operational cost.
Security
Prefer only trusted/verified
nodes for task assignment.
May be more expensive; limits
node selection.
Privacy
Avoid multi-tenant sharing;
Reduces overall resource
co-locate tasks of the same user. utilization efficiency.
Key Terms: Reliability | Redundancy | Security | Trust Scores | Multi-Tenant Risk
| Privacy | Co-location | Non-quantifiable Attributes | System Design Trade-offs
5.7 Optimization Opportunities along the Fog
Architecture
Optimization problems are classified according to the layers involved.
Single-layer optimization does not constitute fog computing; fog computing
by definition involves at least two layers.
5.7.1 Two-Layer Problems
Table 5.10 Comparison of two-layer optimization problems.
5 Optimization Problems in Fog and Edge Computing
| 112
Cloud + Edge
Edge + End Devices
Optimize overall energy or resource use
across data centers and edge nodes.
Computation offloading — deciding what
to process locally vs. at the edge.
Applications: load balancing between
cloud and edge; cloud energy
minimization.
Most critical type due to limited
end-device resources.
Edge nodes can be orders of magnitude
more numerous than cloud data centers.
Single edge plus its devices is simpler;
multiple edges allow load balancing.
Considers cloud capacity constraints and
latency to the edge.
Encompasses task offloading, resource
allocation, and energy optimization for end
devices.
5.7.2 Three-Layer Problems
Three-layer problems (Cloud + Edge + End Devices) are the most complex
category and present several distinct challenges.
•
Computational complexity. Decision variables spanning all fog
resources make the problem very large-scale.
• Integration. Combining cloud concerns (energy cost), edge concerns
(bandwidth, compute), and device concerns (battery, real-time deadlines)
into a single coherent model is difficult.
• Multiple stakeholders. Different organizations manage different layers
at different timescales, complicating joint optimization.
Because of these difficulties, each layer is often optimized independently
in practice.
5.7.3 Optimization Targets Within Each Layer
• Data-related. Where to store and process specific data within the fog
architecture.
• Code-related. Where to deploy program code across resources for
optimal placement.
• Task-related. How to split tasks among multiple resources to achieve
optimal performance.
5.7.4 Distributed Optimization
Fog systems are distributed by nature, and optimization may therefore need to
be decentralized. The goal is for locally optimal decisions made by
autonomous nodes to collectively produce globally optimal behavior —
though achieving this ideal requires careful algorithm design.
5 Optimization Problems in Fog and Edge Computing
| 113
Key Terms: Two-Layer Optimization | Three-Layer Optimization | Cloud+Edge
Layer | Edge+End Device Layer | Computation Offloading | Load Balancing |
Data/Code/Task Optimization | Distributed Optimization | Decentralized
Decision Making | Global vs. Local Optimality
5.8 Optimization Opportunities along the Service
Life Cycle
Fog services progress through three lifecycle stages, and different types of
optimization are appropriate at each stage.
Table 5.11 Optimization opportunities at each lifecycle stage.
Stage
What Is Known
Optimization Focus
Design-Time
Cloud and edge layer details
only. End-device specifics are
unknown (types known,
instances not).
Pre-planning resource allocation.
Constrained to cloud and edge.
Used for architectural decisions.
Deployment-Time
Exact capacities of edge
resources now known. Specific
end-device instances still being
determined.
Fine-tuning: re-optimize task
splits between cloud and edge
based on actual resource
capabilities.
Run-Time
Everything known: specific
devices, tasks, compute
capacities, current workloads,
network conditions.
Real-time task offloading,
dynamic resource allocation,
load balancing, continuous
re-optimization.
5.8.1 Run-Time Optimization
Run-time optimization receives special emphasis because most important
system parameters are only visible during actual operation.
•
Dynamic information. Which device is active, what tasks need
offloading, and current network congestion are only known at run time.
• Continuous change. Workload, network conditions, and battery levels
change constantly, requiring continuous monitoring and re-optimization.
• Time constraints. Algorithms must be fast. There is no time for
exhaustive search; approximations are often necessary.
• Adaptation cost. Changes to existing configurations must account for
the overhead of migration and temporary performance degradation.
5 Optimization Problems in Fog and Edge Computing
| 114
Key Terms: Design-Time | Deployment-Time | Run-Time | Dynamic Information |
Continuous Re-optimization | Algorithm Speed Constraint | Adaptation Cost |
Service Life Cycle | Static vs. Dynamic Optimization
5.9 Toward a Taxonomy of Optimization Problems
The taxonomy classifies fog optimization problems by examining three
representative scenarios from the literature alongside the classification
dimensions developed in earlier sections.
5.9.1 Scenario 1 – Video Streaming
The setting is a cloud plus many geographically distributed edge
fog-computing nodes (FCNs) and end devices. The problem is to find the
optimal data rate per edge resource. The objectives combine utility of data
rates, data-center energy, and workload capacity. The approach is a
distributed iterative algorithm inspired by the Alternating Direction Method
of Multipliers (ADMM). The layers involved are cloud and edge (two-layer).
5.9.2 Scenario 2 – Computation Offloading (MEC)
Mobile end devices offload tasks to a nearby edge resource. The decision
variables are whether to offload each task and which radio channel to use.
The objectives are to minimize energy and latency simultaneously
(multi-objective). For a single device the problem admits a closed-form
solution; for multiple devices with potentially interfering communication the
problem becomes nonconvex and requires a heuristic. The layers involved are
edge and end devices (two-layer).
5.9.3 Scenario 3 – Cooperative Robots
Robots acting as end devices offload compute tasks to a server acting as the
edge resource. The server distributes tasks back to the robots. The problem is
to find the optimal work distribution at run time, with objectives covering
communication costs, battery status, and compute capacities. The approach
uses an off-the-shelf nonlinear optimization package. Tasks can be split
arbitrarily. The layers involved are edge and end devices.
5.9.4 Classification Dimensions Summary
• Layers involved: Cloud+Edge, Edge+End Device, or all three.
• Metrics: Latency, execution time, energy, cost, throughput.
• Life-cycle stage: Design-time, deployment-time, or run-time.
5 Optimization Problems in Fog and Edge Computing
| 115
• Optimization type: Single or multi-objective; convex or nonconvex.
• Approach: Exact (closed-form), heuristic, distributed algorithm, or
off-the-shelf solver.
Key Terms: Taxonomy | ADMM Algorithm | MEC (Mobile Edge Computing) |
Computation Offloading | Nonconvex Problem | Heuristic | Closed-Form
Solution | Distributed Iterative Algorithm | Work Distribution | Multi-objective
Optimization
5.10 Answer Strategies for Examination Questions
This section presents structured answer frameworks for common question
patterns in this area.
5.10.1 General Strategy
Table 5.12 General answer strategy for fog-optimization questions.
Step
Action
1. Identify the fog
layer(s)
Always state which layers are involved (cloud, edge, end
device) and describe their roles.
2. Connect to a metric
Every answer should reference at least one metric: latency,
execution time, energy, bandwidth, cost, or reliability.
3. Use formal notation
Where mathematics is involved, use xij, Cj, Bj,
E(r) = P(r)×Texec, or constraint inequalities.
4. Mention trade-offs
Acknowledge that optimizing one objective frequently
worsens another (non-trivial interactions).
5. Name the
optimization type
State whether it is minimization/maximization,
single/multi-objective, and at which lifecycle stage.
6. Close with impact
End with: “This ensures [outcome] while maintaining
[constraint or quality attribute].”
5.10.2 Industrial IoT – High Energy Consumption
The following framework applies to questions that ask for the causes of high
energy consumption and proposals for redesign in an industrial IoT setting.
Part A – Which layers are responsible for high energy
consumption?
5 Optimization Problems in Fog and Edge Computing
| 116
In a fog computing architecture, energy consumption is a shared concern
across all three layers, but the most significant contributors in an industrial
IoT scenario are the edge (fog node) layer and the end-device layer.
• End-device layer. IoT sensors performing local pre-processing consume
significant energy. If tasks are not properly offloaded, battery drain
accelerates. Because these devices are battery-powered, energy is a hard
constraint.
• Edge/fog layer. Fog nodes receive, pre-process, and partially analyze
data from hundreds of sensors. Running at high utilization continuously
consumes grid power; poor task allocation can cause overloading on
certain nodes, leading to inefficiency.
• Cloud layer (secondary). Unnecessary data transmission to the cloud —
data that could have been processed locally — increases both network
energy and cloud computational energy.
Optimization should therefore focus on the edge layer for compute-side
energy and on the end-device layer for battery efficiency, using task
offloading strategies that minimize unnecessary cloud communication.
Part B – Specific factors causing excessive energy usage?
• Poor task distribution. Some fog nodes may be overloaded while others
are idle, causing imbalanced load and wasted energy.
• Inefficient offloading decisions. Sending all raw data to the cloud
instead of processing at the edge increases both transmission and cloud
processing energy.
• High bandwidth usage. Transmitting large, uncompressed data streams
consumes significant network energy and may violate Unet ≤ Bmax.
• Suboptimal resource allocation. Using high-power fog nodes for simple
tasks that could be handled by lower-power devices.
•
No energy-aware scheduling. Absence of energy metrics
(E(r) = P(r)×Texec) in the task-assignment decision leads to
energy-inefficient placements.
Part C – How to redesign to minimize energy?
• Energy-aware task scheduling. Reformulate task assignment as an
optimization
problem
with
objective
minimize
Etotal = Eend + Eedge + Ecloud.
• Computation offloading optimization. Dynamically decide what to
process locally versus at the edge based on battery level, task
complexity, and link bandwidth.
5 Optimization Problems in Fog and Edge Computing
| 117
• Load balancing. Distribute tasks evenly across fog nodes (Σi Ri·xij ≤ Cj)
to avoid overload and reduce idle waste.
• Data aggregation. Pre-aggregate sensor data at the edge before cloud
transmission to reduce unnecessary data transfer (lowers Cnet and
network energy).
• Redundancy calibration. Use redundancy only for truly critical tasks to
avoid wasting energy on unnecessary replication.
5.10.3 Agricultural IoT on a Remote Island
The following framework applies to questions that ask for optimization
objectives and algorithm selection in a resource-constrained,
connectivity-limited deployment.
Part A – Three optimization objectives and why they are critical.
1. Minimize latency. Farmers depend on real-time irrigation and pest
alerts. High latency means delayed action and potential crop damage.
Fog nodes must process soil and weather sensor data locally to provide
sub-second responses, ensuring alerts reach farmers before irreversible
harm occurs.
2.
Minimize energy consumption. The island has unreliable power
sources. Battery-powered IoT sensors and potentially solar-powered fog
nodes must operate efficiently. Without energy optimization (minimize
Etotal), the system may shut down during critical weather events. Energy
is a hard system-survival constraint.
3. Maximize reliability / fault tolerance. A remote location means no
quick hardware replacement, and network interruptions to the mainland
cloud are common. Optimization must include redundant task
assignment across multiple fog nodes so that sensor failures or node
crashes do not halt operations. Reliability directly determines whether
farmers receive critical alerts.
An optional fourth objective is to minimize the cost of cloud data
transmission, as limited island connectivity makes bandwidth both expensive
and scarce.
Part B – Which optimization algorithm and justification.
The recommended approach is a combination of a greedy heuristic for
run-time decisions with a multi-objective optimization framework
(Pareto-based or weighted-sum scalarization) for balancing competing
objectives.
5 Optimization Problems in Fog and Edge Computing
| 118
•
Why a greedy heuristic. The remote island scenario requires fast
run-time decisions with limited compute. Exact algorithms are too slow
given continuous sensor streams and limited fog-node processing power.
Greedy algorithms make locally optimal decisions quickly, which is
acceptable for real-time irrigation scheduling.
• Why multi-objective. The three objectives (latency, energy, reliability)
conflict with one another. Reducing latency may require more energy;
increasing reliability requires redundancy. A weighted-sum scalarization
weighting latency highest, or a Pareto-front approach, identifies the best
trade-off set.
• Why not a pure cloud-based algorithm. Limited island connectivity
means we cannot rely on a cloud round-trip for real-time decisions. The
algorithm must run locally on fog nodes.
• Why not ADMM. ADMM requires iterative communication across
distributed nodes; with unreliable island connectivity, convergence
cannot be guaranteed in time.
5.10.4 Mining Operation – Context-Aware Fog Computing
This question pattern focuses on context-awareness and its connection to fog
optimization concepts.
Part A – Why is context-awareness essential?
Context-awareness is the ability of a fog/edge system to automatically adapt
its behavior based on the current operational environment, including sensor
readings, device states, and user activity.
• Performance enhancement. Context-aware middleware dynamically
routes tasks to the most appropriate fog node based on current load,
proximity, and compute capacity (a(r), s(r)), thereby reducing execution
time.
• Reliability in hazardous environments. A gas-leak sensor triggers
immediate local processing on a nearby fog node without a cloud
round-trip, meeting hard real-time deadlines. Redundant processing
activates automatically when a node fails.
• Worker safety. Wearable sensors monitoring heart rate and fatigue can
trigger instant fog-side alerts if anomalies are detected, avoiding
cloud-transmission latency.
• Resource optimization. By knowing context (machine load, task
urgency), the middleware optimizes energy consumption — sleeping idle
sensors, activating those that are needed.
5 Optimization Problems in Fog and Edge Computing
| 119
Part B – Real-time processing and resource utilization.
• Task priority queues. Context-aware systems prioritize emergency tasks
(gas leak, equipment failure) over routine analytics; objective-function
weights change dynamically based on context.
• Intelligent offloading. Real-time data (equipment vibration) is processed
at the fog node; historical data (shift logs) is offloaded to the cloud. This
balances compute load and minimizes latency for critical tasks.
• Emergency response. Fog nodes near hazardous zones trigger
automated responses (ventilation, evacuation alerts) within milliseconds
— direct local actuation without cloud dependency.
Part C – Examples of context-aware optimizations.
• Worker fatigue detection. Wearable sensors feed data to the nearest fog
node. If fatigue indicators are detected, the node immediately sends a rest
alert. Energy optimization: full processing activates only when the
wearable reports an anomaly (event-driven, not continuous).
• Equipment failure prediction. Vibration sensors stream data to edge
nodes. Context-aware middleware uses local ML inference
(execution-time optimization) to predict failures, triggering maintenance
alerts before failure occurs.
• Gas-leak / hazard response. Environmental sensors detect methane
above threshold; the fog node broadcasts an evacuation signal within
milliseconds (latency optimization) while forwarding data to the cloud
for long-term pattern analysis.
5.10.5 Useful Phrases for Examination Answers
The following phrases may be used verbatim or adapted when constructing
examination answers.
• “The primary optimization objective is to minimize total latency while
respecting compute capacity and bandwidth constraints.”
•
“This represents a multi-objective optimization problem where
minimizing energy and minimizing latency exhibit non-trivial
trade-offs.”
• “Using a binary assignment variable xij ∈ {0, 1}, task Ti is assigned to
fog node fj if xij = 1.”
• “The fog computing architecture follows a three-layer model: end
devices, edge/fog nodes, and cloud. Optimization at the edge layer is
critical because…”
5 Optimization Problems in Fog and Edge Computing
| 120
•
“Run-time optimization is essential here because system parameters
change dynamically and algorithms must execute with minimal
overhead.”
• “Applying Pareto-optimal solutions, we can identify the trade-off frontier
between energy consumption and response latency.”
•
“The total execution time follows the critical path:
Texec = Tend-device-compute + Tedge-trans + Tedge-compute.”
• “Reliability is enhanced through redundancy, where critical tasks are
replicated across multiple fog nodes. This trades off resource utilization
for fault tolerance.”
5.11 Quick Reference – Key Formulas
Table 5.13 All key formulas for fog computing optimization.
Formula
Meaning
f : D1×…×Dn → R
Objective function mapping variable
combinations to a real value.
minimize −f ≡ maximize f
Minimization equals maximization of the
negated function.
Σj xij = 1, ∀i
Each task is assigned to exactly one fog node.
Σi Ri·xij ≤ Cj, ∀j
Total compute load on node j must not exceed its
capacity.
Σi bi·xij ≤ Bj, ∀j
Total bandwidth to node j must not exceed its
bandwidth limit.
Lij = Lcomp,i,j + Lcomm,i,j
Total latency = computation latency +
communication latency.
minimize ΣiΣj xij·Lij
Minimize the sum of assignment-weighted
latency over all tasks.
E(r) = P(r)×Texec
Energy consumed by resource r equals power
rate times execution time.
Etotal = Eend + Eedge + Ecloud
Total system energy is the sum across all layers.
Ctotal = Cfixed + Cusage + Cnet
Total financial cost of fog/cloud services.
Unet ≤ Bmax
Network bandwidth usage must stay within the
maximum available.
Texec = Tcomp-device + Ttrans-edge + Tc
Critical-path execution time for an offloaded
task.
omp-edge
5 Optimization Problems in Fog and Edge Computing
| 121
Formula
Meaning
D = ∪e∈E De
All end devices equal the union of device sets
across all edge resources.
R = {c} ∪ E ∪ D
All resources = cloud union all edges union all
end devices.
5.12 Master Keyword List
The following terms represent the principal concepts of this chapter and
should be understood precisely for examination purposes.
Optimization Problem | Variables | Domains | Constraints | Objective Function |
Minimization | Maximization | Formalization | Abstraction | Multi-objective |
Scalarizing | Pareto-optimal | Lower Bounds | Fog Computing | Latency |
Execution Time | Energy Consumption | Throughput | Critical Path | CPU
Overbooking | Memory Constraint | Bandwidth U(net) ≤ B(max) | Power P(r) |
Energy E(r) = P(r)×T | E(total) | C(total) | Edge Resources E | End Devices D |
Resources R | Cloud c | Compute Capacity a(r) | Compute Speed s(r) | Marginal
Energy w(r) | Links L | Latency t(l) | Bandwidth b(l) | Binary Variable x■■ |
Compute Constraint | Bandwidth Constraint | Formal Modeling Framework |
Reliability | Redundancy | Security | Trust Scores | Multi-Tenant Risk | Privacy |
Co-location | Two-Layer Optimization | Three-Layer Optimization | Computation
Offloading | Load Balancing | Distributed Optimization | Design-Time |
Deployment-Time | Run-Time | Adaptation Cost | Dynamic Re-optimization |
ADMM Algorithm | MEC | Heuristic | Closed-Form Solution | Taxonomy |
Non-trivial Interactions
6
Middleware for Fog and Edge Computing
6.1 Introduction
Middleware constitutes a critical software layer in fog and edge computing
architectures, serving as an intermediary that facilitates communication and
data management between heterogeneous devices and applications. As fog
and edge infrastructures grow in complexity, encompassing IoT devices, fog
nodes, and cloud services, middleware assumes the role of simplifying the
design of distributed mobile applications and reducing the complexity
involved in operating within dynamically changing environments.
This chapter examines the definition and purpose of middleware,
establishes why it is needed in fog and edge deployments, surveys the
principal design challenges and goals, reviews state-of-the-art middleware
infrastructures, and presents a proposed architecture together with illustrative
case studies.
6.2 Middleware – Definition and Purpose
Middleware is a software layer that connects different applications or
services, enabling them to communicate and manage data effectively. It acts
as an intermediary between IoT devices, edge/fog nodes, and cloud or
enterprise applications, providing a uniform interface that hides the
heterogeneity of the underlying infrastructure.
6.2.1 Core Functions
Table 6.1 Core functions of middleware in fog and edge computing.
Function
Description
Intermediary Layer
Bridges IoT devices, edge/fog nodes, and cloud/enterprise
applications, providing uniform communication across
heterogeneous components.
6 Middleware for Fog and Edge Computing
| 123
Function
Description
Communication
Simplifier
Reduces the complexity of developing distributed mobile
applications that must operate across diverse devices and
protocols.
Dynamic Environment
Handler
Manages dynamically changing environments in which
devices join or leave the network, network conditions
change, and devices move between locations.
Integration Platform
Connects heterogeneous devices, protocols, and services
through standardized APIs, enabling seamless
interoperability.
6.2.2 IoT Middleware Architecture
The IoT middleware architecture can be understood as three distinct layers,
each with a specific role in the overall data pipeline.
Table 6.2 The three-layer IoT middleware architecture.
Layer
Components
Role
Producer (IoT Device) Sensors, Actuators, Smart
Meters
Generates raw data from the
physical environment.
IoT Middleware
Layer
IoT Gateway, Data
Processing, Security, APIs
Processes and routes data
between producers and
consumers.
Enterprise Layer
Big Data/BI, Applications,
Rules and Controls
Consumes and acts on
processed data for business
decisions.
The IoT Middleware Layer itself encompasses several sub-components: the
IoT Gateway (comprising Application, UI, and DB modules), Device
Management, a Service Agent, Data Processing (covering Transformation,
Analytics, Context Processing, and Storage), Security (covering
Authentication, Authorization, Accounting, and Logging), and standardized
APIs for interoperability.
Key Terms: Middleware | Intermediary Layer | IoT Gateway | Device
Management | Service Agent | Data Processing | Authentication | Authorization |
API | Enterprise Layer
6 Middleware for Fog and Edge Computing
| 124
6.3 Need for Middleware in Fog and Edge
Computing
Fog and edge computing environments impose requirements that traditional
cloud-centric middleware cannot satisfy. Middleware in these environments
must address five principal management concerns, each of which is described
below.
Table 6.3 The five management areas addressed by fog/edge middleware.
Management
Area
Purpose
Mechanism / Example
Communication
Management
Ensures seamless
device-to-device and
layer-to-layer communication.
MQTT-based device discovery;
message exchange across
low-bandwidth networks.
Network
Management
Manages network resources and
optimizes data flow across fog,
edge, and cloud.
SDN-based multi-tier
distribution; point-to-point via
TCP/Wi-Fi/Bluetooth.
Task Scheduling
Allocates and distributes tasks
across available compute
resources.
GPS-aware, battery-aware
surrogate selection for task
execution.
Mobility
Management
Handles device movement and
maintains service continuity.
Follow Me Cloud (FMC); VM
migration across edge nodes;
LISP-based tracking.
Security
Management
Provides authentication, privacy, Lightweight mutual
encryption, and secure
authentication for roaming
offloading.
nodes; crypto-processor
encryption.
6.3.1 Communication Management
• Device Discovery. Allows new devices to join or leave the network
dynamically, using protocols such as MQTT for lightweight messaging.
• Establishing Channels. Sets up communication channels between
requesting devices and ad-hoc discovered devices for data acquisition
and processing.
• Maintaining Communication. Ensures continuous links even over
unreliable or low-bandwidth networks.
• Message Exchange. Manages secure, scalable, and reliable message
passing between devices.
6 Middleware for Fog and Edge Computing
| 125
6.3.2 Network Management
• Multitier Distribution. Uses software-defined networking (SDN) or
virtual topologies to distribute applications across fog, edge, and cloud
layers.
• Connection Monitoring. Detects lost connections and automatically
triggers reconnection procedures.
• Point-to-Point Networking. Manages connections between devices
using TCP sockets, Wi-Fi, Wi-Fi Direct, or Bluetooth.
• Bandwidth Optimization. Minimizes bandwidth consumption while
maintaining efficient data transfer across the network.
6.3.3 Task Scheduling and Management
• Surrogate Selection. Chooses appropriate devices to execute tasks based
on policies such as energy-aware selection, delay-tolerance, or
context-aware selection.
• Resource Monitoring. Continuously tracks the availability of resources
— new user devices, VMs in fog or cloud layers.
• Dynamic Task Assignment. Matches incoming tasks with suitable
devices based on real-time requirements such as GPS location, battery
level, and communication bandwidth.
• Optimized Task Distribution. Distributes tasks among multiple edge
devices to minimize latency and resource usage.
6.3.4 Mobility Management
• Follow Me Cloud (FMC). Ensures that middleware services and data
follow mobile devices as they move, using Locator/ID Separation
Protocols such as LISP.
• Service Continuity. Guarantees uninterrupted service in highly dynamic
scenarios, such as vehicle-to-vehicle systems.
• VM Migration. Manages the migration of virtual machines across edge
and fog nodes to accommodate device mobility.
• Dynamic Device Tracking. Updates the system as devices change
locations or contexts, using GPS or accelerometer data.
6.3.5 Security Management
• Authentication. Authenticates users and devices to prevent unauthorized
access; uses lightweight mutual authentication schemes for roaming fog
nodes.
6 Middleware for Fog and Edge Computing
| 126
• Privacy Protection. Ensures data privacy through anonymization or
encryption techniques and implements policy-based access control
mechanisms.
•
Encryption. Encrypts data during communication to ensure
confidentiality, using crypto processors or lightweight encryption
methods to reduce computational overhead.
• Secure Offloading. Safely offloads application tasks to other edge
devices without exposing sensitive data.
Key Terms: Communication Management | Network Management | Task
Scheduling | Mobility Management | Security Management | MQTT | SDN |
Surrogate Selection | Follow Me Cloud (FMC) | LISP | VM Migration |
Authentication | Encryption | Secure Offloading
6.4 Middleware Design Challenges
The design of middleware for fog and edge architectures is complicated by
four principal challenges. Each challenge arises from the unique
characteristics of edge deployments and has direct implications for system
reliability and performance.
6.4.1 Availability of Context on Sensing Devices
Middleware must ensure that sensing devices have the necessary contextual
information to perform tasks effectively. In fog environments, devices rely on
real-time context — such as location, load, and environmental conditions —
to make appropriate decisions. If this contextual data is absent or stale, tasks
may be incorrectly assigned or executed.
Consider a smart traffic light system. The traffic lights must adjust their
signals based on real-time traffic conditions derived from sensors such as
cameras and vehicle detectors. If these sensors fail to provide accurate or
timely context, the lights cannot adapt optimally, leading to congestion and
potentially dangerous intersections. This challenge is directly relevant to
scenarios involving power outages and sensor failures.
6.4.2 Cost of Data Transfer and Processing
Managing the cost associated with transferring and processing data across
different tiers of the Fog-Edge Architecture (FEA) is a significant challenge.
Routing all raw data to the cloud incurs high bandwidth costs and introduces
latency; processing everything locally at the edge may overload
6 Middleware for Fog and Edge Computing
| 127
resource-constrained devices.
In a large-scale agricultural deployment, numerous IoT sensors monitoring
soil moisture across a vast farm would require significant bandwidth if all
raw data were sent to a central cloud server. Processing data locally at edge
devices and transmitting only summarized reports minimizes the overall data
transfer cost substantially.
6.4.3 Limitations on the Number of Edge Devices
There are constraints on the number of edge devices available, compounded
by dynamic changes in their context and mobility. Middleware must
dynamically adapt to these changes, seamlessly reassigning tasks when
devices move out of range or become unavailable.
In a fleet of delivery drones, each drone is mobile and continuously
changing location. If a drone moves out of the range of one edge server, the
middleware must seamlessly connect it to another nearby server without
interrupting its mission. This requires continuous monitoring and adaptive
management of device context, including location and network connectivity.
6.4.4 Strict Latency Constraints
Many applications impose strict real-time response requirements that cannot
be met if processing is performed far from the edge. Cloud round-trips
introduce latency that is unacceptable for latency-sensitive applications.
An autonomous vehicle system relies on edge computing for real-time
decision-making. The system processes data from multiple sensors (cameras,
LIDAR) to detect obstacles and make driving decisions. If processing this
sensor data is delayed due to high latency, the vehicle may not respond
quickly enough to avoid a collision. Processing at the edge, close to the
source, ensures decisions are made within the required time frame of
milliseconds.
Key Terms: Context Availability | Fog-Edge Architecture (FEA) | Data Transfer
Cost | Edge Device Limitations | Strict Latency Constraints | Real-Time Response
| Dynamic Context | Mobility
6.5 Middleware Design Goals
In response to the challenges described above, middleware for fog and edge
computing must satisfy six design goals. These goals collectively define what
6 Middleware for Fog and Edge Computing
| 128
an effective middleware system must achieve.
Table 6.4 Design goals for fog and edge middleware.
Design Goal
Description
Example
Ad-Hoc Device
Discovery
Dynamically discover and establish
communication with edge devices.
Smart traffic lights
discovering nearby sensors
for traffic monitoring.
Run-Time Execution Provide a platform for remote code
Environment
execution on edge devices.
Offloading face detection
tasks to a nearby fog node.
Minimal Task
Disruption
Minimize interruptions during task
execution due to mobility or
network issues.
Connected vehicle
handing off its task to the
next fog node without
interruption.
Overhead of
Operational
Parameters
Minimize bandwidth and energy
usage during middleware
operations.
Smart agriculture:
transmitting only
necessary sensor data to
reduce bandwidth.
Context-Aware
Adaptive Design
Adapt to dynamic changes in device Fitness application
context and environment.
adjusting
recommendations based
on current user activity.
Quality of Service
(QoS)
Ensure middleware meets the
specific QoS requirements of
applications.
Disaster response:
real-time processing of
survivor location data.
6.5.1 Ad-Hoc Device Discovery
Devices in fog/edge environments range from IoT sensors and mobile devices
to fixed sensors and powerful fog servers. Middleware must facilitate the
dynamic discovery of these devices because:
• Applications often require data acquisition and processing from multiple
devices. A communication channel must be established between
requesting devices and ad-hoc discovered devices.
• Since edge devices are dynamic — they can join or leave the network
frequently — middleware must support a flexible communication layer
to enable seamless interaction.
In a smart traffic system, a traffic light controller may need to discover
nearby sensors or cameras to monitor traffic flow. Middleware ensures that
these devices can communicate effectively.
6 Middleware for Fog and Edge Computing
| 129
6.5.2 Run-Time Execution Environment
Middleware provides a platform to execute application tasks remotely on
edge devices through three steps:
• Code Download. Middleware allows application code to be downloaded
to edge devices.
• Remote Execution. The downloaded code is executed locally on the
edge device.
• Result Delivery. Results are sent back to the requesting device or a
centralized server.
This design enables real-time processing at the edge to reduce latency. For
example, a video surveillance system may offload face detection tasks to
nearby edge devices rather than sending raw video streams to the cloud. A
drone monitoring system could similarly offload image processing tasks to a
nearby fog node for faster analysis.
6.5.3 Minimal Task Disruption
Middleware must ensure that tasks running on edge devices are not
interrupted unnecessarily. Three categories of disruption must be addressed:
• Device Mobility. Devices may move out of range or lose connectivity.
• Resource Constraints. Devices may run out of battery or processing
power.
• Network Disconnections. Unreliable networks can interrupt task
execution.
Middleware uses anticipatory techniques to predict changes in device
context (battery level, location) and intelligently reschedule tasks to minimize
disruption. In a connected vehicle system, for instance, if a car moves out of
the range of one fog node, middleware ensures that the task is handed over to
another nearby node without interruption.
6.5.4 Overhead of Operational Parameters
Middleware must minimize the additional bandwidth and energy
consumption incurred during its own operations. Two resource dimensions
are critical:
•
Bandwidth Usage. Establishing communication channels, selecting
candidate devices, and distributing tasks across multiple devices all
consume bandwidth that must be managed carefully.
• Energy Consumption. Edge devices often have limited battery life;
excessive computation or communication can drain resources quickly.
6 Middleware for Fog and Edge Computing
| 130
The solution is to select devices with sufficient resources, distribute tasks
efficiently to avoid overloading any single device, and transmit only the data
that is strictly necessary. In a smart agriculture system, for example,
middleware ensures that only necessary sensor data is transmitted to the fog
server.
6.5.5 Context-Aware Adaptive Design
Middleware must adapt to dynamic changes in device context and
environment through two mechanisms:
•
Context Monitoring. Continuously monitors contextual information
such as device location, battery level, and user activity.
• Self-Adaptive Services. Middleware adjusts its behavior based on
changes in context to improve performance and quality of service.
A fitness application might use context-aware middleware to adjust its
recommendations based on the user's current activity, such as walking or
running.
6.5.6 Quality of Service
Middleware must ensure that the specific QoS requirements of applications
are met across three dimensions:
• Real-Time Response. Applications such as autonomous vehicles or
emergency response systems require ultra-low latency.
• Data Relevance. Acquired data must be relevant and accurate for the
application.
• Uninterrupted Data Acquisition. Middleware must ensure continuous
data collection even in dynamic environments.
Different applications have different QoS needs. A healthcare monitoring
system prioritizes accuracy and reliability, while a video streaming
application prioritizes low latency. In a disaster response system, middleware
ensures that critical data such as the location of survivors is collected and
processed in real time.
Key Terms: Ad-Hoc Device Discovery | Run-Time Execution Environment |
Minimal Task Disruption | Operational Overhead | Context-Aware Adaptive
Design | Quality of Service (QoS) | Anticipatory Scheduling | Self-Adaptive
Services | Remote Code Execution
6 Middleware for Fog and Edge Computing
| 131
6.6 State-of-the-Art Middleware Infrastructures
Contemporary middleware solutions for fog and edge computing can be
classified into four principal approaches. Each approach addresses a different
combination of the design goals described in Section 6.5 and is suited to
different deployment contexts.
6.6.1 Microservice-Based Middleware
Microservice-based middleware is designed as a collection of independent,
lightweight microservices that interact via APIs. Each service encapsulates a
specific function — authentication, scheduling, data analytics — and can be
deployed, scaled, and updated independently.
Carrega et al. propose a microservices-based middleware where different
services can be dynamically scaled and deployed in fog nodes. This approach
offers three principal advantages.
• Scalability. Components can be deployed separately based on demand,
allowing the system to scale individual services without affecting others.
• Modularity. Individual services can be updated or replaced without
disrupting the rest of the middleware stack.
• Flexibility. The approach supports heterogeneous edge environments
with diverse hardware and software requirements.
6.6.2 Service-Oriented Middleware
Service-oriented middleware provides a service-based framework in which
applications interact with the middleware through well-defined service
interfaces using standard protocols such as SOAP or REST.
Global Sensor Networks (GSN) is a widely used example of
service-oriented middleware that processes data from distributed sensors
using a service-oriented approach. The key features are:
• Interoperability. Applications can use standard service calls (SOAP,
REST), enabling multi-platform integration.
• Dynamic Composition. Services can be composed dynamically based on
the needs of individual applications.
• Scalability. The middleware can be deployed across multiple edge and
fog nodes.
6.6.3 Context-Aware Middleware
6 Middleware for Fog and Edge Computing
| 132
Context-aware middleware adapts dynamically based on real-time contextual
changes such as user location, device movement, and network conditions.
Two prominent examples are:
• MobiPADs. A context-aware middleware that adjusts mobile services
based on sensor inputs and the current context of the device and user.
•
MobiCon. Middleware that dynamically reconfigures network
connections based on mobility patterns.
Context-aware middleware provides three key advantages:
• Personalized User Experience. Behavior is adjusted based on device
and user conditions.
• Efficiency. Unnecessary resource consumption is reduced by predicting
user needs.
• Resilience. Dynamic changes in the edge environment are handled
transparently.
6.6.4 Cloudlet-Based Middleware
Cloudlet-based middleware uses cloudlets — small-scale, low-latency cloud
nodes located close to edge devices — to handle computing and storage. Two
key works in this area are:
• CloudAware. Middleware designed for adaptive cloudlet computing,
allowing edge devices to seamlessly offload tasks to nearby cloudlets.
• Satyanarayan et al. Proposed a “data center in a box” model using
cloudlets for real-time processing at the network edge.
The advantages of this approach are:
• Low Latency. Reduces dependency on remote cloud servers, resulting in
faster response times.
• Energy Efficiency. Minimizes energy consumption on edge devices
through local offloading.
• Mobile User Support. Tasks are migrated dynamically across cloudlets
as users move.
6.6.5 Summary Comparison
Table 6.5 Comparison of state-of-the-art middleware approaches.
Approach
Key Example
Best For
Main Advantage
Microservice
Carrega et al.
Modular fog
deployments
Independent
scalability
6 Middleware for Fog and Edge Computing
| 133
Approach
Key Example
Best For
Main Advantage
Service-Oriente
d
GSN (Global Sensor
Networks)
Large-scale sensor
networks
Interoperability
(REST/SOAP)
Context-Aware
MobiPADs, MobiCon
Mobile/dynamic
environments
Personalization and
resilience
Cloudlet-Based
CloudAware
Mobile users near
edge
Low latency and
energy efficiency
Key Terms: Microservice Middleware | Service-Oriented Middleware (SOM) |
Context-Aware Middleware | Cloudlet-Based Middleware | FemtoCloud |
CloudAware | MobiPADs | MobiCon | GSN | Carrega et al. | Nakamura et al. |
Satyanarayan et al.
6.7 Proposed Middleware Architecture
Based on the requirements and challenges identified in preceding sections, a
comprehensive middleware architecture for fog and edge computing can be
organized into two tiers: a set of top-level services exposed to applications,
and a set of core internal components that implement the middleware's
operational logic.
6.7.1 Top-Level Services
Table 6.6 Top-level services in the proposed middleware architecture.
Service
Description
API
Exposes middleware functionality via standardized interfaces,
enabling interoperability between applications and the middleware
layer.
Code Execution
Enables remote task execution at edge devices, supporting the
run-time execution environment design goal.
Security
Oversees all security concerns across the middleware, acting as the
overarching security policy enforcer.
Authentication
Verifies the identity of devices and users before granting access to
middleware services or data.
Privacy
Implements anonymization techniques and policy-based access
control to protect user data.
6 Middleware for Fog and Edge Computing
Service
Description
Encryption
Protects data in transit using crypto processors or lightweight
encryption methods.
Device Discovery
Dynamically identifies and registers available edge devices,
supporting ad-hoc network formation.
| 134
6.7.2 Core Middleware Components
The internal components of the proposed architecture handle the operational
concerns of the middleware.
Context Monitoring and Prediction. Continuously monitors device
location, battery level, and user activity. Predicts future context changes to
proactively adapt middleware behavior before disruptions occur.
Selection of Participating Devices. Determines which devices should
participate in task execution using three policy dimensions:
• Energy-Aware Selection. Selects devices with sufficient battery life to
complete assigned tasks without interruption.
• Delay Tolerance-Based Selection. Selects devices that can meet the
latency requirements of the specific task.
• Context-Aware Selection. Chooses devices based on contextual
suitability, such as proximity and current capability.
Data Analytics. Processes and extracts useful information from raw
sensor data. Can be performed locally at the edge to reduce latency and
bandwidth consumption.
Scheduling and Resource Management. Allocates computational tasks
to the most suitable fog or edge node and balances load to prevent any single
device from being overloaded.
Network Management. Monitors network status, manages connections,
and optimizes bandwidth. Uses SDN and multi-tier network distribution to
adapt to changing conditions.
Execution Management. Manages the complete lifecycle of task
execution: initiation, monitoring, and completion. Handles code download,
remote execution, and result delivery.
Mobility Management. Tracks device movement and migrates services
or VMs as needed. Implements Follow Me Cloud (FMC) using LISP or
similar protocols to ensure service continuity.
6 Middleware for Fog and Edge Computing
| 135
Key Terms: System Model | Top-Level Services | Core Components | Context
Monitoring | Device Selection | Energy-Aware Selection | Delay-Tolerance
Selection | Data Analytics | Scheduling | Resource Management | Execution
Management | Mobility Management
6.8 Case Studies
The following case studies illustrate how the middleware components
described in Section 6.7 operate in practice. The approach in each case is to
identify the scenario, map each middleware component to a specific function,
and explain how it addresses the problem.
6.8.1 Case Study: Smart City Traffic Management
In a smart city, traffic cameras, sensors, and fog servers cooperate to monitor
congestion. The problem with a purely cloud-centric approach is that sending
all raw video to the cloud introduces delays, creates network congestion, and
incurs high data transfer costs. Table 6.7 shows how each middleware
component addresses these problems.
Table 6.7 Middleware functions in the smart city traffic management scenario.
Middleware
Function
How It Helps
Outcome
Device Discovery
Middleware identifies nearby
cameras and traffic sensors
automatically.
Fog nodes become aware of
all active sensors in their
zone.
Data Filtering
Instead of all video footage, only
critical alerts such as accident
detection are sent to the cloud.
Bandwidth consumption is
reduced by approximately
80-90%.
Task Scheduling
When a fog server is busy,
middleware reassigns the task to a
less-loaded node.
Processing bottlenecks are
prevented.
Mobility Support
As a vehicle moves between
zones, continuous data tracking is
ensured across edge boundaries.
No service interruption
occurs as the vehicle crosses
zone boundaries.
Security
Only authorized devices can
access sensitive traffic data.
Spoofing and manipulation of
traffic signals are prevented.
6.8.2 Case Study: Smart Thermostat with Fog Computing
6 Middleware for Fog and Edge Computing
| 136
A smart thermostat that relies solely on cloud computing must send
temperature data to the cloud every second, wait for processing, then receive
instructions. This introduces delays in response time, increases internet
bandwidth costs, and creates a dependency on cloud connectivity that fails
when the internet is unavailable. Table 6.8 shows how different middleware
types address these limitations.
Table 6.8 Middleware types and their functions in the smart thermostat scenario.
Middleware
Type
Function
Benefit
Context-Aware
Detects room occupancy using
motion sensors and pre-adjusts
temperature settings based on
weather forecasts.
Proactive temperature control
without cloud dependency.
Data Filtering
Sends data to the cloud only when
temperature changes significantly;
aggregates data from multiple
rooms.
Substantial reduction in
bandwidth consumption.
Device Discovery
Discovers motion sensors, smart
blinds, and weather sensors
automatically.
Enables fully integrated
smart home automation.
Task Scheduling
When the thermostat processor is
busy, computation is offloaded to a
local fog node.
No delay in temperature
control decisions.
Security and
Privacy
Encrypts temperature and user data; Data confidentiality is
prevents unauthorized access to
maintained at all times.
thermostat controls.
Automation
When the smart lock detects that
nobody is home, middleware
switches the thermostat to eco
mode.
Energy savings without any
user input.
Key Terms: Smart City Traffic Management | Smart Thermostat | Data Filtering |
Task Offloading | Device Discovery | Mobility Support | Automation Middleware
| Context-Aware Processing
6.9 Answer Strategies for Examination Questions
6 Middleware for Fog and Edge Computing
| 137
This section presents structured frameworks for answering common question
patterns relating to fog and edge middleware.
6.9.1 General Answer Strategy
Table 6.9 General strategy for answering middleware examination questions.
Step
Action
1. Restate the
problem
Open with 2-3 lines describing the scenario and identifying the
core problem to be solved.
2. Map middleware
components
Identify which specific middleware function (communication,
scheduling, mobility, security, context-awareness) addresses each
aspect of the problem.
3. Explain the
mechanism
For each component, state what it does, how it does it, and what
outcome it achieves.
4. Address all
sub-parts
Explicitly address every part of the question. For two-part
questions, label your responses Part A and Part B clearly.
5. Close with
impact
End with: “Thus, the fog-and-edge-based system, supported by
middleware services covering [areas], enables [outcome] even
under [constraint].”
6.9.2 Model Answer Framework: Power Outage and Traffic Chaos
(5 Marks)
The following framework addresses a scenario in which a power outage
disables traffic signals across a city, causing congestion, a multi-vehicle
collision, and disruption to emergency services, school buses, and supply
chains. The question asks how a Smart City Traffic Management System
built on fog and edge computing principles would detect, respond to, and
mitigate these disruptions, and how it would prioritize edge nodes for backup
power.
Opening statement (always write this first):
A Smart City Traffic Management System designed with fog and edge
computing principles leverages distributed middleware to enable real-time
detection, autonomous decision-making, and coordinated emergency
response — even under partial infrastructure failure.
Part A — Detection and Response.
Step 1: Detection via Context-Aware Middleware.
6 Middleware for Fog and Edge Computing
| 138
• Sensor Fusion. Edge nodes at each intersection continuously aggregate
data from traffic cameras, vehicle detectors, and pedestrian sensors.
• Anomaly Detection. Fog-layer analytics detect abnormal patterns —
sudden absence of signal timing, zero vehicle flow, crowd accumulation
— and flag these as power-outage events.
• Collision Detection. Computer vision models running at edge nodes
identify multi-vehicle collisions using locally processed camera feeds,
ensuring sub-second alert generation without cloud dependency.
Step 2: Response via Task Scheduling and Communication Middleware.
•
Emergency Prioritization. Middleware uses priority-based task
scheduling to route emergency vehicle data first. Ambulances and fire
trucks are given dedicated communication channels via device
discovery.
• Traffic Police Support. Real-time dashboards are pushed to traffic
officers’ mobile devices via the middleware’s communication
management layer, providing live intersection status.
• Supply Chain Prioritization. The medical supply truck is tagged as
high-priority; route optimization middleware at the fog layer generates
alternative paths to bypass the gridlock.
Step 3: Mitigation via Mobility and Network Management.
• Pedestrian Safety. Edge nodes activate pedestrian crossing signals using
local backup logic, with no cloud dependency required.
• School Bus Routing. Middleware tracks school buses using GPS and
reroutes them via least-congested paths communicated in real time.
•
Public Transport Coordination. Fog nodes broadcast delay
notifications to tram and bus systems; vehicle-to-infrastructure (V2I)
communication middleware manages alternative stops.
Part B — Maintaining Functionality and Prioritizing Backup
Power.
Maintaining basic functionality.
•
Local Decision-Making. Each edge node runs a lightweight local
middleware instance capable of autonomous operation — no cloud
required for basic signal control.
• Graceful Degradation. When an edge node loses power, its tasks are
automatically migrated to the nearest operational fog node via VM
migration (mobility management).
6 Middleware for Fog and Edge Computing
•
| 139
Mesh Communication. Nodes communicate peer-to-peer via Wi-Fi
Direct or Bluetooth in the absence of central infrastructure, maintaining a
basic control plane.
Table 6.10 Priority framework for backup-power allocation to edge nodes.
Priority Level
Node Type
Justification
Priority 1 (Critical)
Emergency intersections, hospital
routes, school zones
Direct impact on life
safety.
Priority 2 (High)
High-traffic arterial road
intersections, collision site vicinity
Restoration of traffic flow.
Priority 3 (Medium)
Public transport hubs, supply chain
nodes
Essential services
continuity.
Priority 4 (Low)
Residential area nodes, low-traffic
intersections
Restored after all critical
nodes are operational.
• Context-Aware Selection. Middleware evaluates each node’s current
task criticality, number of vehicles managed, and proximity to
emergency services, then dynamically reallocates backup power
accordingly.
• Energy-Aware Policy. Non-critical nodes enter a low-power standby
mode, handing off their data streams to adjacent nodes to preserve
overall coverage with minimal battery draw.
Closing statement template:
Thus, the fog-and-edge-based Smart City Traffic Management System,
supported by comprehensive middleware services covering communication,
task scheduling, mobility, context awareness, and security, enables real-time,
distributed, and resilient operations — prioritizing emergency response while
restoring normalcy incrementally even under partial power failure.
6.9.3 Key Phrases for Examination Answers
The following phrases can be used directly in examination answers to signal
precise understanding of the subject.
•
“Middleware is a software intermediary layer that facilitates
communication and data management between heterogeneous devices
and applications in distributed fog and edge computing environments.”
• “In fog and edge computing environments, [X] is essential because
devices
operate
in
dynamically
changing
contexts,
are
resource-constrained, and require real-time processing — conditions that
6 Middleware for Fog and Edge Computing
| 140
traditional cloud-centric approaches cannot efficiently handle.”
• “The middleware layer addresses this by leveraging [component], which
[action], thereby ensuring [outcome] — a critical requirement in
latency-sensitive / safety-critical / resource-constrained scenarios.”
• “Unlike traditional cloud-based solutions, [approach] offers [advantage]
by processing data at or near the source, reducing latency from seconds
to milliseconds and eliminating dependency on continuous cloud
connectivity.”
6.9.4 Mark-Band Answer Strategy
Table 6.11 Recommended answer structure by mark allocation.
5-Mark Questions
10-Mark Questions
Approximately 1.5 pages.
Approximately 3 pages.
Open with a 2-line definition of
middleware.
Open with a full definition of middleware
and its role in fog/edge computing.
Cover 4-5 middleware functions mapped
to the scenario.
Cover all 5 management areas plus
relevant design goals.
Use a short table or bullet points.
Use tables, numbered lists, and examples
per point.
Close with one-line summary.
Address all sub-parts of the question
explicitly.
Do not provide excessive detail per point.
Close with implications or future scope
sentence.
Key Terms: Smart City Traffic Management | Power Outage Response |
Emergency Prioritization | Graceful Degradation | Local Decision-Making |
Priority-Based Node Selection | VM Migration | Mesh Communication | V2I
Communication
6.10 Quick Reference
Table 6.12 All named middleware systems referenced in this chapter.
System / Work
What It Does
Use Case
FemtoCloud
Supports data analytics and optimized
device selection.
Resource-constrained
edge networks.
6 Middleware for Fog and Edge Computing
| 141
System / Work
What It Does
Use Case
CloudAware
Adaptive cloudlet computing;
seamless task offloading.
Mobile users near edge
nodes.
MobiPADs
Context-aware; adjusts mobile
services via sensor inputs.
Mobile service
adaptation.
MobiCon
Dynamically reconfigures network
connections based on mobility
patterns.
Dynamic network
management.
GSN (Global
Sensor Networks)
Service-oriented; processes distributed Large-scale sensor
sensor data.
deployments.
Carrega et al.
Microservices-based middleware for
IoT fog nodes.
Modular fog
deployments.
Nakamura et al.
Proposes in-device processing for IoT.
Resource-limited IoT
devices.
Satyanarayan et al.
Data center in a box; cloudlet
real-time processing.
Local real-time
analytics.
LISP Protocol
Locator/ID separation for Follow Me
Cloud (FMC).
Mobility management.
MQTT
Lightweight messaging protocol for
IoT device discovery.
Low-bandwidth device
communication.
6.11 Summary
Middleware for fog and edge computing constitutes the essential software
glue that enables IoT devices, fog nodes, and cloud infrastructure to work
together coherently. The five core management functions — communication,
network, task scheduling, mobility, and security management — address the
unique demands of distributed, resource-constrained, and mobility-prone
environments.
Four design challenges shape the middleware design space: availability of
context on sensing devices, cost of data transfer and processing, limitations
on edge device count, and strict latency constraints. Six design goals —
ad-hoc device discovery, run-time execution environments, minimal task
disruption, low operational overhead, context-aware adaptation, and QoS
assurance — provide a framework against which any middleware solution
can be evaluated.
6 Middleware for Fog and Edge Computing
| 142
Contemporary solutions include microservice-based, service-oriented,
context-aware, and cloudlet-based middleware, each with distinct advantages.
The proposed architecture integrates all five management concerns into a
unified system that supports real-world deployments such as smart city traffic
management and smart home automation.
Key Terms: Middleware | Fog Computing | Edge Computing | Communication
Management | Network Management | Task Scheduling | Mobility Management |
Security Management | Design Challenges | Design Goals | Microservice |
Service-Oriented | Context-Aware | Cloudlet | Follow Me Cloud | Quality of
Service | IoT Gateway
0
You can add this document to your study collection(s)
Sign in Available only to authorized usersYou can add this document to your saved list
Sign in Available only to authorized users(For complaints, use another form )