Module 2
Module 2
Wireless sensor architectures refer to the structural design and organization of systems that
utilize wireless sensor technologies. These architectures are crucial in facilitating the
seamless functioning of wireless sensor networks, enabling the collection, transmission, and
processing of data from various sensing devices.
1. Sensor Nodes:
2. Communication Protocols:
Dictate how sensor nodes communicate with each other and the central system.
Common protocols include Zigbee, Bluetooth, Wi-Fi, LoRa, and NB-IoT.
Selection depends on factors like range, power consumption, and data rate.
3. Network Topology:
4. Data Aggregation:
Involves combining and summarizing data from multiple sensor nodes before
transmission.
Reduces the volume of transmitted data, saving energy and bandwidth.
Strategies include spatial and temporal aggregation techniques.
5. Power Management:
6. Security Mechanisms:
1
MODULE 2: WIRELESS SENSOR ARCHITECTURES
Centralized architectures involve a single control point for managing the network.
Decentralized architectures distribute control among sensor nodes.
Selection depends on application requirements, scalability, and fault tolerance.
5. Application-Specific Considerations:
Architectures are tailored based on the specific application domain (e.g., industrial,
healthcare, environmental monitoring).
Considerations include data accuracy, latency, and adaptability to the application's
unique challenges.
Types and Range: Depending on the application, sensors could include a variety of types
such as photodetectors, gas sensors, or proximity sensors. The range of measurement for each
sensor type should align with the intended use case.
Precision and Accuracy: Considerations for the precision and accuracy of sensors are crucial
to ensure reliable data collection. Calibration and sensor fusion techniques may be employed
to enhance accuracy.
2. Processing Unit:
Real-Time Capabilities: Some applications may require real-time processing capabilities, and
the microcontroller's ability to meet these requirements is a critical consideration.
Communication Protocol Details: Specify the wireless communication protocol being used,
including version details and any specific configurations relevant to the application.
Data Transfer Rate: The rate at which data is transmitted between the single node and other
devices can impact the efficiency of the system.
4. Power Supply:
2
MODULE 2: WIRELESS SENSOR ARCHITECTURES
Battery Type and Capacity: Details about the type of battery used (e.g., lithium-ion, alkaline)
and its capacity in terms of milliampere-hours (mAh).
Power Consumption Profile: Information about the power consumption profile of the node,
detailing how power is utilized during sensor activation, data processing, and wireless
communication.
Expected Battery Life: An estimate of the expected battery life under typical usage
conditions.
Storage Capacity: If the node includes local storage, specify the capacity of the storage
device in terms of gigabytes (GB) or terabytes (TB).
Data Retention: Information on how long the device can store data locally before reaching
storage capacity.
6. Control Logic:
Event Triggering Mechanisms: Describe the mechanisms that trigger events within the
device, such as predefined thresholds, user inputs, or external stimuli.
Configuration Options: If the device allows user configuration, provide details on the
available options and how users can interact with the device.
7. Housing/Enclosure:
IP Rating: If applicable, specify the Ingress Protection (IP) rating indicating the level of
protection against dust and water.
Material Durability: Details on the durability and ruggedness of the materials used for the
housing, especially if the device is intended for outdoor or harsh environments.
8. Security Measures :
Encryption Algorithm: If encryption is used, specify the encryption algorithm employed and
any key management mechanisms.
Authentication Methods: Describe the methods used to authenticate the identity of the device
and ensure secure communication.
Functionality: A sensor node is a compact device designed for data acquisition, processing,
and communication in a wireless sensor network.
3
MODULE 2: WIRELESS SENSOR ARCHITECTURES
Compact Form Factor: Typically, sensor nodes are designed to be small, lightweight, and
energy-efficient for easy deployment in various environments.
Wireless Capability: Equipped with wireless communication modules to transmit data to
other nodes or a central system.
Basic sensor node comprises five main components
Microcontroller/Microprocessor:
Acts as the brain of the sensor node, responsible for processing data and controlling overall
functionality.
Examples include ARM Cortex-M series microcontrollers, AVR microcontrollers, or custom-
designed microprocessors.
2. Memory:
Sensors:
Collect data from the environment.
Examples include temperature sensors, humidity sensors, accelerometers, gas sensors, etc.
Actuators:
Devices that perform actions based on received data.
Examples include motors, valves, or other devices depending on the application.
Battery:
Commonly powered by batteries due to their portability.
4
MODULE 2: WIRELESS SENSOR ARCHITECTURES
These components work together to enable the sensor node to sense its environment, process
data, and communicate wirelessly with other nodes or a central system. The choice of
components depends on the specific application requirements, including the types of sensors
needed, communication range, power constraints, and environmental conditions.
Active Mode:
In the active mode, sensor nodes are fully operational, actively sensing the environment,
processing data, and communicating with other nodes or a central hub.
Energy consumption is generally highest during this state due to the simultaneous operation
of sensors, microcontroller, memory, and radio transceivers.
Sleep Mode:
Sleep mode is a low-power state where non-essential components are turned off to minimize
energy consumption.
Sensor nodes often transition to sleep mode during idle periods to conserve energy.
The trade-off is a longer wake-up time since the node must power up components before
resuming normal operations.
2. Microcontroller Energy Consumption:
Active Processing:
The microcontroller's power consumption is influenced by its clock frequency, voltage, and
the complexity of the tasks it performs.
Higher clock frequencies and more complex computations generally lead to increased energy
consumption.
Idle State:
Microcontrollers often feature low-power modes or idle states where they consume less
energy by reducing clock frequency and disabling non-essential functions.
Sleep modes allow microcontrollers to maintain some functionality while minimizing power
consumption.
3. Memory:
5
MODULE 2: WIRELESS SENSOR ARCHITECTURES
Reading and writing to memory consume energy, with dynamic RAM (DRAM) typically
consuming more power than non-volatile memory like Flash.
Efficient memory management involves minimizing unnecessary data transfers and utilizing
sleep modes with memory retention.
Sleep Mode with Retention:
Some microcontrollers support sleep modes that retain the contents of RAM. This allows the
system to quickly resume operation without reloading data from non-volatile memory.
4. Radio Transceivers:
Transmission:
Transmitting data wirelessly is one of the most energy-intensive tasks. Power amplifiers and
signal modulation contribute to higher energy consumption during transmission.
Transmitting data in bursts and using low-power transmission modes can help reduce energy
consumption.
Reception:
While receiving data consumes less energy than transmission, it still contributes significantly
to power consumption.
Implementing efficient reception protocols and minimizing the time the radio is active can
help conserve energy.
5. Relationship between Computation and Communication:
Data Aggregation:
Local processing and data aggregation reduce the frequency and volume of wireless
communication.
Aggregating data before transmission can minimize the overall energy consumption by
reducing the time the radio transceiver is active.
Efficient Protocols:
Active Sensing:
Sensors consume energy when actively measuring environmental parameters. Power
consumption depends on the sensor type and the duration of the sensing operation.
Implementing duty cycling, where sensors are turned on intermittently, helps reduce overall
power consumption.
Power Consumption of Actuators:
Actuation:
Actuators consume energy when performing physical actions based on sensor data.
Energy-efficient actuators and control strategies that optimize the actuation process
contribute to overall power efficiency.
7. Energy Harvesting:
6
MODULE 2: WIRELESS SENSOR ARCHITECTURES
Supplementing Power:
Energy harvesting techniques, such as solar cells or piezoelectric generators, can supplement
or replace battery power, enhancing overall sustainability.
Efficient energy harvesting systems require careful matching with the power requirements of
the sensor node.
Dynamic Power Management:
8. Adaptive Control:
Dynamic power management involves adapting the sensor node's operational state based on
workload, environmental conditions, or specific events.
Adaptive strategies optimize energy consumption by dynamically adjusting the duty cycle
and operational parameters.
9. Energy Monitoring and Optimization:
Continuous Monitoring:
Energy monitoring features enable developers to analyze power consumption patterns in real-
time.
Developers can identify energy-intensive components and optimize their operation to
improve overall efficiency.
Algorithmic Optimization:
7
MODULE 2: WIRELESS SENSOR ARCHITECTURES
8
MODULE 2: WIRELESS SENSOR ARCHITECTURES
Resource Constraints:
o Embedded systems often operate with limited resources such as RAM, ROM, and
processing power. The OS must be designed to efficiently utilize these resources.
o Lightweight kernels and minimalistic designs are common to ensure optimal
performance.
Real-time Capabilities:
o Real-time operating systems (RTOS) are prevalent in embedded systems where tasks
must be executed within specific time constraints.
o Deterministic behavior is crucial, ensuring that tasks are performed reliably and
predictably.
Specific Functionality:
FreeRTOS:
o A customized version of the Linux operating system designed for embedded systems.
o Offers a balance between the flexibility of Linux and the resource constraints of
embedded devices.
2. Programming Paradigms and Application Programming Interfaces (APIs):
Programming Paradigms:
o Imperative/Procedural:
9
MODULE 2: WIRELESS SENSOR ARCHITECTURES
o OS-level APIs:
Provide a set of functions and procedures for applications to interact with the operating
system.
Examples include the Win32 API for Windows and POSIX for Unix-like systems.
o Library APIs:
2. 1 Concurrent Programming:
Definition:
Concurrency: Tasks progress independently but not necessarily simultaneously. It's more
about dealing with many things at once.
Parallelism: Tasks are executed simultaneously, usually on multiple processors.
Thread-based Concurrency:
Using threads (lightweight processes) to perform multiple tasks concurrently within a single
process.
Threads share the same memory space, making communication between them easier.
Shared Memory vs. Message Passing:
Shared Memory: Threads share a common address space. Changes in one thread are visible to
others.
Message Passing: Threads communicate by sending messages. Processes may have separate
address spaces.
2. Process-Based Concurrency:
Definition:
10
MODULE 2: WIRELESS SENSOR ARCHITECTURES
Processes:
Overhead: Creating and managing processes can have higher overhead compared to threads.
Communication: Inter-process communication can be more challenging.
3. Event-Based Programming:
Definition:
Central to event-driven systems. The program continuously listens for events and triggers
associated callbacks or handlers.
Typically used in graphical user interfaces (GUIs) and asynchronous I/O operations.
Callbacks:
Execution doesn't block on a single task; it continues with other tasks until the asynchronous
task completes.
Common in web development for handling non-blocking I/O.
Advantages:
Responsiveness:
Complexity:
11
MODULE 2: WIRELESS SENSOR ARCHITECTURES
Asynchronous and event-driven code can be more complex than synchronous, sequential
code.
Requires careful handling of state and potential race conditions.
o Monolithic Kernel:
Core functions are kept in the kernel space, while other services run in user space.
Offers better modularity and easier maintenance.
o Hybrid Kernel:
Software components that enable the operating system to communicate with hardware
devices.
Translate generic OS commands into specific commands understood by the device.
o File System:
Collections of precompiled routines, functions, and procedures that a program can use.
4. Protocol Stack:
o Physical Layer:
12
MODULE 2: WIRELESS SENSOR ARCHITECTURES
o Link Layer:
Adjusts the voltage and frequency of a CPU based on the workload to optimize power
consumption.
Reduces power during periods of low activity.
o Sleep Modes:
Puts certain components or the entire system into low-power states during periods of
inactivity.
Wake-up mechanisms ensure rapid responsiveness when needed.
o Task Offloading:
13
MODULE 2: WIRELESS SENSOR ARCHITECTURES
Systems must remain responsive even when components are in low-power states.
o Adapting to Varying Workloads:
In a single-hop network, communication occurs directly between two nodes without any
intermediate nodes.
Nodes are within direct radio range of each other, and there is no need for relaying through
other nodes.
2. Characteristics:
Figure 2.1 in first case the sink could belong just another sensor/ actuator. In the second case,
the sink can take on various forms, serving as a versatile component within the Wireless
Sensor Network (WSN) architecture. Figure 2.1 visualizes this flexibility by presenting two
main types of sinks engaged in direct communication with sensor nodes. One representation
of the sink involves a physical device, such as a hand-held device or Personal Digital
Assistant (PDA), directly interacting with the sensor network. This configuration allows for
on-site data gathering, control, or monitoring, making it suitable for scenarios where real-
time, hands-on management is required.
Alternatively, the sink can serve as a gateway to a broader network, as exemplified in Figure
2.1. In this context, the sink functions as an intermediary connecting the sensor network to a
larger network, such as the Internet. Requests for information may originate from nodes
situated at a distance, indirectly connected to the sensor network. This type of sink facilitates
remote data access and control, extending the reach of the sensor network to external entities.
14
MODULE 2: WIRELESS SENSOR ARCHITECTURES
Figure 2.1: Three types of sinks in very simple, single-hop sensor networks
Communication between nodes occurs through multiple intermediate nodes, creating a series
of hops from the source to the destination.
2. Characteristics:
Extended Range: Communication is not limited to direct radio range; data can be relayed
over multiple hops to reach distant nodes.
Redundancy: Offers redundancy and alternative paths, enhancing robustness against node
failures.
Scalability: Can be more scalable as nodes collaborate to extend the network's reach.
3. Applications:
15
MODULE 2: WIRELESS SENSOR ARCHITECTURES
One of the main benefits of wireless communication is its ability to support mobile
participants. In wireless sensor networks, mobility can appear in three forms:
Depend on the application of WSN the nodes themselves could be mobile. In this situation,
the network has to reorganize itself frequently enough to be able to function correctly. This
shows that there are trade-offs between the frequency and speed of node movement on the
one hand and the energy required to maintain a desired level of functionality in the network
on the other hand. An example for this kind of node mobility is in livestock surveillance,
where sensor nodes attached to cattle.
16
MODULE 2: WIRELESS SENSOR ARCHITECTURES
Figure 2.3: A mobile sink moves through a sensor network as information is being retrieved
on its behalf.
17
MODULE 2: WIRELESS SENSOR ARCHITECTURES
is accompanied by an area of
activity within the Network.
This notion is described by
Figure 8, where the task is to
detect a moving elephant and
to observe it as it moves
around [18].
2.6.3 Event mobility
An example for this kind of
mobility is in applications like
event detection, the cause of
the events or the objects to be
tracked can be mobile. Usually
the observed events
covered by number of sensors
at all time. So, sensors will
wake up around the object to
observe it and then go back
to sleep. As the event source
moves through the network, it
18
MODULE 2: WIRELESS SENSOR ARCHITECTURES
is accompanied by an area of
activity within the Network.
This notion is described by
Figure 8, where the task is to
detect a moving elephant and
to observe it as it moves
around [18].
2.4.3.3 Event mobility:
An example for the kind of mobility is in application like event detection, the cause of the
events or the objects to be tracked can be mobile. Usually the observed events covered by
number of sensor at all time. So, sensors will wake up around the object observe it and then
go back to sleep. As the event source moves through the network, it is accompanied by an
area of activity within the Network. The notion is described by Figure 2.4, where the task is
to detect a moving elephant and to observe it as it moves around.
Fig. 2.4: Area of sensor nodes detecting an event – an elephant – that moves through the
network along with the event source (dashed line indicate the elephant’s trajectory; shaded
ellipse the activity area following or even preceding the elephant).
Single-Hop: Suitable for scenarios where all nodes are within direct communication range.
Multihop: Ideal for applications requiring communication over an extended area.
19
MODULE 2: WIRELESS SENSOR ARCHITECTURES
2. Network Size:
Optimization goals and figures of merit in Wireless Sensor Networks (WSNs) are essential
for enhancing the overall performance and efficiency of these networks.
2.5.1: Optimization Goals:
2. Energy Efficiency:
3. Scalability:
4. Robustness:
20
MODULE 2: WIRELESS SENSOR ARCHITECTURES
1. QoS Metrics:
Packet Delivery Ratio (PDR): Represents the ratio of successfully delivered packets
to the total sent.
End-to-End Delay: Measures the time taken for data to travel from source to
destination.
Jitter: Examines variations in packet arrival times, contributing to the stability of
communication.
Energy Consumption per Bit: Quantifies the energy used for transmitting each bit of
data.
Network Lifetime: Reflects the duration for which the network can operate efficiently
before needing recharging or replacement of nodes.
3. Scalability Metrics:
Throughput Scaling: Assesses the network's ability to maintain high throughput as the
number of nodes increases.
Network Diameter: Measures the maximum number of hops between the farthest
nodes in the network.
4. Robustness Metrics:
Resilience to Node Failures: Evaluates how well the network performs in the presence
of node failures.
Adaptability: Measures how well the network adjusts to dynamic changes in the
environment or topology.
For practical deployment, a sensor network only concerned with itself is insufficient.
The network rather has to be able to interact with other information devices, for
example, a user equipped with a PDA moving in the coverage area of the network or
with a remote user, trying to interact with the sensor network via the Internet (the
standard example is to read the temperature sensors in one’s home while traveling and
accessing the Internet via a wireless connection).
21
MODULE 2: WIRELESS SENSOR ARCHITECTURES
To this end, the WSN first of all has to be able to exchange data with such a mobile
device or with some sort of gateway, which provides the physical connection to the
Internet.
This is relatively straightforward on the physical, MAC, and link layer – either the
mobile device/the gateway is equipped with a radio transceiver as used in the WSN,
or some (probably not all) nodes in the WSN support standard wireless
communication technologies such as IEEE Either option can be advantageous,
depending on the application and the typical use case (Fig. 2.5).
Fig. 2.5: A wireless sensor network with gateway node, enabling access to remote clients via
the internet.
Assume that the initiator of a WSN – Internet communication resides in the WSN– for
example, a sensor node wants to deliver an alarm message to some Internet host.
The first problem to solve is akin to ad hoc networks, namely, how to find the
gateway from within the network. Basically, a routing problem to a node that offers a
specific service has to be solved, integrating routing and service discovery
Enabling communication between a Wireless Sensor Network (WSN) and the Internet
involves addressing various architectural considerations and application challenges. In such
scenarios, the deployment of a gateway becomes imperative, acting as a pivotal link that
seamlessly integrates routing and service discovery mechanisms. The gateway serves as a
bridge between the constrained and often resource-limited sensor nodes in the WSN and the
broader Internet infrastructure. One of the primary challenges is selecting the "best" gateway
when multiple options are available, a decision that requires a careful balance between factors
like proximity, bandwidth, and reliability. Additionally (Fig. 2.6), determining the location or
IP address of a specific destination, such as finding Alice or Alice's IP, poses a unique
challenge. This involves incorporating robust mechanisms for addressing and name
resolution within the WSN architecture. Techniques like Domain Name System (DNS)
services or distributed databases may be employed to facilitate the translation of human-
readable names, such as "Alice," into corresponding IP addresses. Effectively addressing
these issues is crucial for seamlessly delivering essential messages, such as alarm
notifications, from the WSN to Internet hosts, ensuring the reliability and efficiency of the
communication pathway.
22
MODULE 2: WIRELESS SENSOR ARCHITECTURES
Figure 2.6: An event notification to “Alice” needs decision about, among others, gateway
choice, mapping “Alice” to a concrete IP address, and translating an intra-WSN event
notification message to an internet application message.
Enabling communication from the Internet to a Wireless Sensor Network (WSN) involves
navigating intricate decisions and challenges (Fig. 2.7). Determining the right WSN to
address a specific need requires careful consideration of target networks and the selection of
an appropriate gateway node within the chosen network. This ensures that the request reaches
the relevant sensor nodes capable of fulfilling the intended purpose, such as collecting
specific environmental data. Simultaneously, translating from Internet Protocol (IP) to WSN
protocols demands addressing disparities in semantics, data formats, and communication
methodologies. A notable example is the utilization of 6LowPAN, where IPv6-enabled
sensor networks rely on gateways to bridge the communication gap between the IPv6 Internet
and resource-constrained WSNs. These gateways play a crucial role in adapting application-
layer protocols, managing differences in addressing, data representation, and communication
methods between the Internet and WSNs. In the context of remote requests for sensor
network information, judicious choices are essential to determine the target network, select
the appropriate gateway node, and define the methods for adapting application-layer
protocols. This strategic decision-making ensures effective communication between the
Internet and WSNs, with accurate data routing through gateways facilitating seamless
translation between the two environments.
23
MODULE 2: WIRELESS SENSOR ARCHITECTURES
Figure 2.7: Requesting sensor network information from a remote terminal entails choices
about which network to address, which gateway node of a given network, and how and where
to adapt application-layer protocol in the Internet to WSN-specific protocols.
The case of an Internet-based entity trying to access services of a WSN is even more
challenging.
This is fairly simple if this requesting terminal is able to directly communicate with
the WSN, for example, a mobile requester equipped with a WSN transceiver, and also
has all the necessary protocol components at its disposal.
In this case, the requesting terminal can be a direct part of the WSN and no particular
treatment is necessary
Once the requesting terminal has obtained this information, how to access the actual
services?
Clearly, addressing an individual sensor (like addressing a communication peer in a
traditional Internet application) both goes against the grain of the sensor network
philosophy where an indi- vidual sensor node is irrelevant compared to the data that it
provides and is impossible if a sensor node does not even have an IP address
In addition to these scenarios describing actual interactions between a WSN and Internet
terminals, the gateways can also act as simple extensions of one WSN to another WSN.
The idea is to build a larger, “virtual” WSN out of separate parts, transparently “tunneling”
all protocol messages between these two networks and simply using the Internet as a
transport network (Fig. 2.8).
24
MODULE 2: WIRELESS SENSOR ARCHITECTURES
Figure 2.8: Connecting two WSN with a tunnel over the internet.
F
n example for this kind of
mobility is in applications like
event detection, the cause of
the events or the objects to be
tracked can be mobile. Usually
the observed events
covered by number of sensors
at all time. So, sensors will
wake up around the object to
observe it and then go back
25
MODULE 2: WIRELESS SENSOR ARCHITECTURES
26