Chapter 1
Chapter 1
Chapter 1
1
CHAPTER 1: INTRODOUCTION TO SENSOR NETWORKS
AND THE INTERNET OF THINGS
the phenomenon that they are supposed to control. Hence, wireless communication between
such devices is, in many application scenarios, an inevitable requirement.
Therefore, a new class of networks has appeared in the last few years: the so-called Wireless
Sensor Network (WSN). These networks consist of individual nodes that are able to interact with
their environment by sensing or controlling physical parameters; these nodes have to collaborate
to fulfill their tasks as, usually, a single node is incapable of doing so; and they use wireless
communication to enable this collaboration. In essence, the nodes without such a network contain
at least some computation, wireless communication, and sensing or control functionalities.
Despite the fact that these networks also often include actuators, the term wireless sensor network
has become the commonly accepted name. Sometimes, other names like “wireless sensor and
actuator networks” are also found. Sensors link the physical with the digital world by capturing
and revealing real-world phenomena and converting these into a form that can be processed, stored,
and acted upon. Integrated into numerous devices, machines, and environments, sensors provide a
tremendous societal benefit. They can help to avoid catastrophic infrastructure failures, conserve
precious natural resources, increase productivity, enhance security, and enable new applications
such as context-aware systems and smart home technologies. The phenomenal advances in
technologies such as very large-scale integration (VLSI), microelectromechanical systems
(MEMS), and wireless communications further contribute to the widespread use of distributed
sensor systems. For example, the impressive developments in semiconductor technologies
continue to produce microprocessors with increasing processing capacities, while at the same time
shrinking in size. The miniaturization of computing and sensing technologies enables the
development of tiny, low-power, and inexpensive sensors, actuators, and controllers. Further,
embedded computing systems (i.e., systems that typically interact closely with the physical world
and are designed to perform only a limited number of dedicated functions) continue to find
application in an increasing number of areas. While defense and aerospace systems still dominate
the market, there is an increasing focus on systems to monitor and protect civil infrastructure (such
as bridges and tunnels), the national power grid, and pipeline infrastructure. Networks of hundreds
of sensor nodes are already being used to monitor large geographic areas for modeling and
forecasting environmental pollution and flooding, collecting structural health information on
bridges using vibration sensors, and controlling usage of water, fertilizers, and pesticides to
improve crop health and quantity.
2
CHAPTER 1: INTRODOUCTION TO SENSOR NETWORKS
AND THE INTERNET OF THINGS
they managed to connect a coke machine to the Internet and remotely check its status.
Advancements in science and technology enabled making smaller, cheaper, and faster computing
devices capable of sensing the environment, communicating and actuating remotely, which
resulted to the increased interest of applying the IoT to vast aspects of life, such as smart cities,
healthcare, and smart home.
The Internet of Things (IoT) describes physical objects, that are embedded with sensors,
processing ability, communication capability, software, and other technologies, and that
connect and exchange data with other devices and systems over the Internet. It refers to
connected device and sensor technology enabled by secure network connectivity and cloud
infrastructure, to reliably transform data into useful information for people, businesses, and
institutions. At its core, the Internet of things means just an environment that gathers information
from multiple devices (computers, vehicles, smartphones, traffic lights, and almost anything with
a sensor) and applications (anything from a social media app like Twitter to an e-commerce
platform, from a manufacturing system to a traffic control system. Yet data alone is useless, it
needs to be interpreted and turned into information and this information is often required to be
exchanged with other devices or applications to generate business value.
The IoT is already around us connecting wearable devices, smart cars, and smart home systems. It
is expected that more than 50 billion devices will be connected to the Internet by 2020. The
introduction of such a huge number of connected devices requires a scalable architecture to
accommodate them without any degradation of the quality of service demanded by applications.
In addition, the majority of the devices that make up the Internet-of-Things are resource
constrained; resources, such as computing power, energy, bandwidth, and storage, are scarce.
These constraints limit the deployment scenarios of applications using such IoT devices. For
instance, it is infeasible to use a battery-powered sensor to directly connect to the Internet and
publish information regarding its surrounding for a long time or store readings of a longer time in
local memory. These constraints present a design challenge that is shaping the architecture of the
IoT in many ways. Many of these challenges can be mitigated by extending the functions of Cloud
computing closer to the IoT devices.
The architecture of the IoT is an active research area. Architecture plays a critical role in
determining the success of a system. As such, there are several efforts ranging from public projects
to industrial standard associations and academic institutions to set a working IoT architecture. An
IoT system is naturally a distributed system by definition. Hence, the components identified above
are geographically distributed where the communication component is in charge of connecting
them. In the simplest form, two groups can be formed: the first group contains identification and
sensing while the second one hosts computation, services, and semantics.
A straightforward way to make an IoT device visible through the Internet is to provide it with an
access to a Cloud server, such that it can upload data, receive notifications or commands. In such
configuration, the client handles reading data from the environment and most of the remaining
functions run in the Cloud. This traditional client–server approach of organizing the different
3
CHAPTER 1: INTRODOUCTION TO SENSOR NETWORKS
AND THE INTERNET OF THINGS
components of IoT is still used by many vendors. There are also many variations of this
architecture to separate certain logical components of the system into three or five layers as shown
in Figure 1.1. These separations of concerns are mostly based on the functionality of the module.
In the three-layer architecture, the sensors appear in the lower perception layer. Network layer,
which is located on top of perception layer, connects the sensors to the topmost application layer.
The functionality of each layer is distinct in this approach. The sensors and actuators in the
perception layer gather the data that will be transported through the network to ultimately reach
the application logic. Figure 1.1 shows the different types of logical separation of IoT elements.
Other alternatives of this architecture proposal divide the layers into five. Some of these variations
consider middleware and object abstraction as separate layers. These additional layers help provide
integration services and encapsulate the devices in the perception layer, respectively. Even though,
implementing these layers of logically separated components as such provides modularity and ease
of implementation, it fails to address the requirements of the perception layer, such as low latency
communication and mobility.
Figure 1.1: IoT architecture proposals (three layers and five layers)
The perception layer or sensor network layer, shown in Figure 1.2, can be composed of millions
of devices. The majority of these devices are very tiny in size, battery powered, and have small
memory and limited processing power. Such resource constraints necessitate novel design
approaches to accommodate them. In addition, various wireless communication protocols are
widely used for networking such as Wi-Fi, Bluetooth Low Energy (BLE), LoRa, ZigBee, RFID,
and 6LoWPAN. Besides the foregoing network protocol variations, there are differences in
application layer protocols even among devices using the same underlying network protocol. For
instance, CoAP, MQTT, DDS, and XMPP are among the frequently used ones. Furthermore, there
are multiple data formats used by these protocols that are application domain specific. The resource
constraints mentioned above, the heterogeneity of protocols, platforms, and data formats, call for
the design of more efficient and IoT-friendly architectures.
4
CHAPTER 1: INTRODOUCTION TO SENSOR NETWORKS
AND THE INTERNET OF THINGS
5
CHAPTER 1: INTRODOUCTION TO SENSOR NETWORKS
AND THE INTERNET OF THINGS
6
CHAPTER 1: INTRODOUCTION TO SENSOR NETWORKS
AND THE INTERNET OF THINGS
processing capability. However, the unique features of WSN present new challenges in hardware
design, communication protocols, and application design. A WSN technology must address these
challenges to realize the numerous envisioned applications. This requires modifying legacy
protocols for conventional wireless ad-hoc networks or designing new effective communication
protocols and algorithms.
Table 1 lists important challenges and corresponding required mechanisms to address them in
WSN. Sensor nodes have resource constraints including limited energy, limited memory and
computational capacities. The limited energy supplies of the sensor nodes in the network impose
lifetime constraints on the WSN. The problem of limited resources can be addressed by using them
efficiently. Energy efficient operation is required to maximize the network lifetime by
implementing energy efficient protocols, e.g., energy-aware routing on network layer, energy-
saving mode on MAC layer, etc. Efficient use of limited memory in sensors is required by taking
into account the memory consuming issues like routing tables, data replication, security, etc.
Table 1: Challenges vs. Required mechanisms in WSN
Dynamic network topologies and harsh environment conditions may cause sensor-node failures
and performance degradation. This requires WSN to support adaptive network operation including
adaptive signal-processing algorithms and communication protocols to enable end-users to cope
with dynamic wireless-channel conditions and varying connectivity.
The communication in WSN is unreliable due to error prone wireless medium with high bit error
rates and variable-link capacity. Thus, a WSN should be reliable in order to function properly and
depending on the application requirements, the sensed data should be reliably delivered to the sink
node. WSNs are usually prone to unexpected node failures due to different reasons like nodes may
run out of energy or might be damaged (in extreme environment conditions), or wireless
communication between two nodes can be permanently interrupted. This requires WSNs to be
robust to node failures. In WSN, fault tolerance can be improved through a high level of
redundancy by deploying additional nodes than required if all nodes functioned properly. In case
of high-density deployment, sensor observations can be highly correlated in the space domain.
Data fusion and localized processing are required to address the data redundancy such that only
necessary information is delivered to the end-user and communication overhead can be reduced.
7
CHAPTER 1: INTRODOUCTION TO SENSOR NETWORKS
AND THE INTERNET OF THINGS
8
CHAPTER 1: INTRODOUCTION TO SENSOR NETWORKS
AND THE INTERNET OF THINGS
long propagation delay, high latency, and signal fading problems. These nodes must be able to
self-configure and adapt to extreme conditions of ocean environment. Nodes are equipped with a
limited battery which cannot be replaced or recharged requiring energy efficient underwater
communication and networking techniques. Applications of underwater WSNs include pollution
monitoring, under-sea surveillance and exploration, disaster prevention and monitoring, seismic
monitoring, equipment monitoring, and underwater robotics.
4. Multi-media WSN: consists of low-cost sensor nodes equipped with cameras and microphones,
deployed in a pre-planned manner to guarantee coverage. Multi-media sensor devices are capable
of storing, processing, and retrieving multimedia data such as video, audio, and images. They must
cope with various challenges such as high bandwidth demand, high energy consumption, quality
of service (QoS) provisioning, data processing and compressing techniques, and cross-layer
design. It is required to develop transmission techniques that support high bandwidth and low
energy consumption in order to deliver multi-media content such as a video stream. Though QoS
provisioning is difficult in multi-media WSNs due to variable link capacity and delay, a certain
level of QoS must be achieved for reliable content delivery. Multi-media WSNs enhance the
existing WSN applications such as tracking and monitoring.
5. Mobile WSN: consists of mobile sensor nodes that can move around and interact with the
physical environment. Mobile nodes can re-position and organize themselves in the network in
addition to be able to sense, compute, and communicate. A dynamic routing algorithm must, thus,
be employed unlike fixed routing in static WSN. Mobile WSNs face various challenges such as
deployment, mobility management, localization with mobility, navigation and control of mobile
nodes, maintaining adequate sensing coverage, minimizing energy consumption in locomotion,
maintaining network connectivity, and data distribution. Primary examples of mobile WSN
applications are monitoring (environment, habitat, underwater), military surveillance, target
tracking, search and rescue. A higher degree of coverage and connectivity can be achieved with
mobile sensor nodes compared to static nodes.
9
CHAPTER 1: INTRODOUCTION TO SENSOR NETWORKS
AND THE INTERNET OF THINGS
processing unit for supplementary operations. Based on the observed or gathered phenomena,
sensor nodes are classified as thermal, optical, acoustic, mechanical sensors, etc.
10
CHAPTER 1: INTRODOUCTION TO SENSOR NETWORKS
AND THE INTERNET OF THINGS
modulation, filtering, multiplexing, band bass, and demodulation, which makes it more complex
and expensive. Basically, sensor node uses industrial scientific medical bands (ISM) which
provide a radio band at no cost with comprehensive accessibility. There are three transmission
technologies offered in wireless transmission; optical communication, infrared, and radio
frequency. First, optical communication requires low power, line of sight, and squat at atmospheric
circumstances. Second, infrared communication has no need for antennae, but has a low
broadcasting capacity. Third, radio frequency communication is the most relevant method best
suited for wireless transmission because it provides free spectrum at 173, 433, 868, and 915 MHz
and 2.4 GHz.
The majority of sensor nodes use low-rate, wireless personal area networks (WPAN) which are
IEEE 802.15.4 standard, meaning the transceiver has four operational modes, like transmit,
receive, idle, and sleep. In receive and idle mode, the power consumption of the transceiver is the
same. However, the transceiver should initiate sleep mode and not be left in idle mode when it is
not actively working, otherwise considerable energy will be wasted. It will simply interchange
from sleep state to the active broadcast or receive state.
11
CHAPTER 1: INTRODOUCTION TO SENSOR NETWORKS
AND THE INTERNET OF THINGS
12
CHAPTER 1: INTRODOUCTION TO SENSOR NETWORKS
AND THE INTERNET OF THINGS
ensure security, authenticity, and integrity. There cannot be the weak link in a chain, as the
IoT will form the largest attack surface on earth.
This ecosystem will need talents from the body of engineering disciplines, such as device physics
scientists developing new sensor technologies and many-year batteries. Embedded system
engineers working on driving sensors at the edge. Network engineers capable of working in a
personal area network or wide area network as well as a Software-Defined Networking. Data
scientists working on novel machine learning schemes at the edge and in the cloud. DevOps
engineers to successfully deploy scalable cloud solutions as a well as fog solutions. IoT will also
need service vendors such as solution provision firms, system integrators, value-added resellers,
and OEMs.
13