Wireless Sensor Network
Sensing is a skill used to assemble information about a physical object or process,
including the occurrence of events (i.e., changes in state such as a drop in temperature or
pressure). Sensor is an object performing such a task of sensing. For example, human
body is covered with sensors that can capture optical information from the surroundings
(eyes), acoustic information such as sounds (ears), and aroma related information such
as smells (nose). These are examples of remote sensors, that is, they do not need to touch
the object to be monitored to gather information. Recent advances in
microelectromechanical systems (MEMS) technology and use of low power embedded
computing devices made it feasible to develop sensors.
Sensor Network Components:
• Sensor - A transducer which converts physical phenomenon (e.g. heat, light, motion,
vibration, and sound) into electrical signals.
• Sensor Node - Basic unit in a sensor network contains on-board sensors, processor,
memory, transceiver, and power supply.
• Sensor Network - Consists of a large number of sensor nodes.
• Gateway Node - A gateway is a device or software that acts as a bridge between the
sensor nodes and a network or the internet. It is responsible for collecting data from
the sensor nodes, processing it, and forwarding it to the appropriate destination.
• Management Node - A management node is a device or software that performs a
variety of management tasks, such as network configuration, monitoring, and control.
There are four types of sensor network topologies:
• Point to Point Network Topology: In this topology, there is no central hub. A single
data communication channel is used for a secure communication path. Each device
can act as a client and a server in it.
• Star Network Topology: In Star topology, all the nodes are transferring messages via
hub. Total number of cables required is given by n and total number of ports required
is given by 2n. So, if hub fails, then entire network will fail. Thus, reliability is very less.
Cost is low as there are less number of cables but cost of hub is more as there are more
number of nodes in it. Security is very less as entire communication happens via hub
so if hub gets corrupted, the security system fails. It gives point-to-point (dedicated)
connection.
• Tree Network Topology: This topology is the variation of the Star topology. This
topology has a hierarchical flow of data. In this, the various secondary hubs are
connected to the central hub which contains the repeater. This data flow from top to
bottom i.e. from the central hub to the secondary and then to the devices or from
bottom to top i.e. devices to the secondary hub and then to the central hub. It is a multi-
point connection and a non-reliable topology because if the backbone fails the
topology crashes.
• Mesh Network Topology: In Mesh topology, all the nodes are connected to each other
n×(n−1)
by links. Total number of cables required is given by . In a mesh topology, the
2
number of ports required for each device is N-1, where N is the number of devices
connected to each other. The total number of ports required is given by n × (n − 1).
Reliability is very high i.e., when one node in a mesh topology is fed with information,
the other nodes still can communicate with each other simultaneously. Cost is very
high as number of cables is very high. Security is very high as there are separate
communicating wires between each node. It gives point-to-point (dedicated)
connection.
Unique Constraints/ Disadvantages and Challenges in Wireless Sensor Network:
• Limited energy resources: Sensors in a network often rely on batteries or other
limited energy sources, which means that energy efficiency is a critical concern in
sensor network design.
• Limited computational resources: Many sensors have limited processing power and
memory, which can make it challenging to perform complex tasks or store large
amounts of data.
• Limited communication range: Sensors often have a limited communication range,
which can make it difficult to transmit data over long distances or through physical
barriers.
• Dynamic network topology: The topology of a sensor network can change frequently
as sensors are added, removed, or moved around, which can make it difficult to
maintain reliable communication.
• Heterogeneity of sensors: Sensors can have different capabilities, such as different
sensing ranges, resolutions, and accuracy. This heterogeneity can make it challenging
to design algorithms and protocols that can be used effectively by all sensors in the
network.
• Security: Sensors are often deployed in remote or unsecured locations, which can
make them vulnerable to tampering or attacks.
• Interference: Sensor networks can be susceptible to interference from other
electronic devices or environmental factors, which can affect the accuracy and
reliability of the data being collected.
• Maintenance: Sensor networks can be complex systems that require regular
maintenance to ensure that they are operating correctly.
• Lack of standards: There are currently no widely adopted standards for sensor
networks, which can make it difficult to integrate sensors from different
manufacturers or use them in different applications.
• Limited data storage: Many sensors have limited data storage capabilities, which can
make it challenging to store large amounts of data or transmit it to a central location
for analysis.
Advantages of Wireless Sensor Networks:
• Scalability: Sensor networks can be easily scaled up or down by adding or removing
sensors as needed, which makes them highly flexible and adaptable.
• Cost-effectiveness: Sensor networks can be more cost- effective than traditional
monitoring systems, as they often require fewer resources and infrastructure to set
up and maintain.
• High resolution: Sensor networks can provide high-resolution data due to the large
number of sensors that can be deployed in a given area.
• Real-time monitoring: Sensor networks can provide real-time monitoring of a variety
of physical parameters, such as temperature, humidity, and air quality.
• Improved accuracy: By using multiple sensors to collect data, sensor networks can
improve the accuracy of measurements compared to using a single sensor.
• Robustness: Sensor networks are often designed to be fault- tolerant and self-healing,
which makes them resilient to failures of individual sensors.
• Versatility: Sensor networks can be used to monitor a wide range of physical
parameters in various environments, making them versatile and adaptable to
different applications.
• Ease of deployment: Sensor networks can be quickly and easily deployed in a variety
of locations, making them convenient to use in a wide range of applications.
Applications of WSN:
• Environmental monitoring: Sensor networks can be used to monitor various
environmental parameters, such as temperature, humidity, air quality, and soil
moisture. This data can be used to track changes in the environment over time,
identify pollution sources, and predict weather patterns.
• Pull up for Industrial process control: Sensor networks can be used to monitor
industrial processes and control machinery in real-time. This can help improve
efficiency, reduce waste, and prevent accidents.
• Traffic monitoring: Sensor networks can be used to monitor traffic patterns and flow
in real-time, which can be used to optimize traffic routes and reduce congestion.
• Agriculture: Sensor networks can be used to monitor soil moisture and temperature,
which can help farmers optimize irrigation and fertilization practices.
Types of WSN: Depending on the environment, the types of networks are decided so that
those can be deployed underwater, underground, on land, and so on. Different types of
WSNs include:
• Terrestrial WSNs: Terrestrial WSNs are capable of communicating base stations
efficiently, and consist of hundreds to thousands of wireless sensor nodes deployed
either in an unstructured (ad hoc) or structured (pre-planned) manner. In an
unstructured mode, the sensor nodes are randomly distributed within the target area
that is dropped from a fixed plane. The pre planned or structured model considers
optimal placement, grid placement, and 2D, 3D placement models. In this WSN, the
battery power is limited; however, the battery is equipped with solar cells as a
secondary power source. The energy conservation of these WSNs is achieved by using
low duty cycle operations, minimizing delays, and optimal routing, and so on.
• Underground WSNs: The underground wireless sensor networks are more expensive
than the terrestrial WSNs in terms of deployment, maintenance, and equipment cost
considerations and careful planning. The WSNs networks consist of several sensor
nodes that are hidden in the ground to monitor underground conditions. To relay
information from the sensor nodes to the base station, additional sink nodes are
located above the ground.
The underground wireless sensor networks deployed into the ground and the sensor
battery nodes equipped with limited battery power are difficult to recharge. In
addition to this, the underground environment makes wireless communication a
challenge due to the high level of attenuation and signal loss.
• Underwater WSNs: More than 70% of the earth is occupied with water. These
networks consist of several sensor nodes and vehicles deployed underwater.
Autonomous underwater vehicles are used for gathering data from these sensor
nodes. A challenge of underwater communication is a long propagation delay, and
bandwidth and sensor failures. Underwater, WSNs are equipped with a limited battery
that cannot be recharged or replaced. The issue of energy conservation for
underwater WSNs involves the development of underwater communication and
networking techniques.
• Multimedia WSNs: Multimedia wireless sensor networks have been proposed to
enable tracking and monitoring of events in the form of multimedia, such as imaging,
video, and audio. These networks consist of low-cost sensor nodes equipped with
microphones and cameras. These nodes are interconnected with each other over a
wireless connection for data compression, data retrieval, and correlation. The
challenges with the multimedia WSN include high energy consumption, high
bandwidth requirements, data processing, and compressing techniques. In addition
to this, multimedia contents require high bandwidth for the content to be delivered
properly and easily.
• Mobile WSNs: These networks consist of a collection of sensor nodes that can be
moved on their own and can be interacted with the physical environment. The mobile
nodes can compute sense and communicate. Mobile wireless sensor networks are
much more versatile than static sensor networks. The advantages of MWSN over static
wireless sensor networks include better and improved coverage, better energy
efficiency, superior channel capacity, and so on.
Mobile Ad-hoc Networks (MANET):
MANET stands for Mobile Ad-hoc Network also called a wireless Ad-hoc network or Ad-
Hoc wireless network. They consist of a set of mobile nodes connected wirelessly in a self-
configured, self-healing network without having a fixed infrastructure. MANET nodes are
free to move randomly as the network topology changes frequently. Each node behaves
as a router as they forward traffic to other specified nodes in the network.
MANET may operate a standalone fashion or they can be part of larger internet. They form
a highly dynamic autonomous topology with the presence of one or multiple different
transceivers between nodes. The main challenge for the MANET is to equip each device
to continuously maintain the information required to properly route traffic.
Characteristics of MANET:
MANETS consist of a peer-to-peer, self-forming, self-healing network communicating at
radio frequencies (30MHz-5GHz). This can be used in road safety, ranging from sensors
for the environment, home, health, disaster rescue operations, air/land/navy defence,
weapons, robots, etc.
• Dynamic Topologies: Network topology which is typically multihop may change
randomly and rapidly with time, it can form unidirectional or bi-directional links.
• Bandwidth constrained, variable capacity links: Wireless links usually have lower
reliability, efficiency, stability, and capacity as compared to a wired network.
• Autonomous Behaviour: Each node can act as a host and router, which shows its
autonomous behaviour.
• Energy Constrained Operation: As some or all the nodes rely on batteries or other
exhaustible means for their energy. Mobile nodes are characterized by less memory,
power, and lightweight features.
• Limited Security: Wireless networks are more prone to security threats. A centralized
• firewall is absent due to the distributed nature of the operation for security, routing,
and host configuration.
• Less Human Intervention: They require minimum human intervention to configure
the network, therefore they are dynamically autonomous in nature.
Advantages of MANET:
• Separation from central network administration.
• Each node can play both the roles i.e., of router and host showing autonomous nature.
• Self-configuring and self-healing nodes do not require human intervention.
• Highly scalable and suits the expansion of more network hub.
Disadvantages of MANET:
• Resources are limited due to various constraints like noise, interference conditions,
etc.
• Lack of authorization facilities.
• More prone to attacks due to limited physical security.
• High latency i.e., there is a huge delay in the transfer of data between two sleeping
nodes.
There are several enabling technologies that are important for the development and
deployment of wireless sensor networks (WSNs). These technologies include:
• Sensors: Sensors are the key component of WSNs, as they are responsible for
gathering data from the environment. There are many different types of sensors
available, each designed to measure a specific type of parameter, such as temperature,
humidity, pressure, light, sound, or acceleration.
• Microprocessors: Microprocessors are used to process the data gathered by the
sensors and to perform various functions, such as data analysis, data storage, and
communication.
• Wireless Communication: WSNs rely on wireless communication to transmit data
from the sensor nodes to the sink node or to other nodes in the network. There are
many different wireless communication technologies available, including Bluetooth,
Zigbee, ZWave, and Wi-Fi, each with its own characteristics and capabilities.
• Energy Management: WSNs are often deployed in remote or hard-to-reach locations,
where it is not practical to replace or recharge their batteries. As a result, energy
management is a critical aspect of WSNs, and various techniques are used to optimize
the energy consumption of the sensor nodes, such as duty cycling, power
management, and energy harvesting.
• Data Management: WSNs generate large amounts of data, which need to be stored,
processed, and analyzed. Data management is a key challenge in WSNs, and various
techniques are used to optimize the data flow and to extract useful information from
the data.
Issues and Challenges in Wireless Sensor Networks:
• Limited power and bandwidth: WSNs are often deployed in remote or hard-to-reach
locations, where it is not practical to replace or recharge their batteries. As a result,
they need to be designed to be energy efficient, and they often have limited power and
bandwidth.
• Interference: WSNs operate in a shared radio frequency spectrum, and they can be
affected by interference from other wireless devices or from environmental factors,
such as reflections, absorption, and scattering.
• Security: WSNs are vulnerable to security threats, such as spoofing, tampering,
eavesdropping, and denial of service, and they need to be designed to be secure.
• Reliability: WSNs need to be reliable, as they are often used for mission-critical
applications, such as industrial automation, healthcare, and security.
• Scalability: WSNs need to be scalable, as they can be deployed in a wide range of
environments and applications, and they often need to be able to support a large
number of nodes.
Routing Protocols in Wireless Sensor Networks:
Routing protocols are responsible for forwarding data packets from the source node to
the destination node, through intermediate nodes if necessary. They define the rules and
procedures that are used to determine the route that the data packets should follow
through the network. There are many different routing protocols available, and they can
be classified into several categories, including:
• Proactive routing protocols: Proactive routing protocols maintain a routing table that
contains the routes to all the nodes in the network. They periodically update the
routing table to reflect the current network topology, and they can quickly route data
packets to the destination without delay. However, they consume more energy and
bandwidth, as they constantly exchange routing information.
• Reactive routing protocols: Reactive routing protocols do not maintain a routing table,
and they only establish routes when they are needed. They are more energy and
bandwidth efficient, as they only exchange routing information when necessary.
However, they may have longer delays when routing data packets, as they need to
discover the route before they can transmit the data.
• Hybrid routing protocols: Hybrid routing protocols combine the characteristics of
proactive and reactive routing protocols, and they attempt to balance the trade-offs
between energy efficiency and delay.
Overall, the choice of routing protocol depends on the specific requirements of the
application, including the network size, the traffic pattern, the energy constraints, and the
delay tolerance.
Medium Access Control (MAC):
In most networks, multiple nodes share a communication medium for transmitting their
data packets. The medium access control (MAC) protocol is primarily responsible for
regulating access to the shared medium. The choice of MAC protocol has a direct bearing
on the reliability and efficiency of network transmissions due to errors and interferences
in wireless communications and to other challenges. Energy efficiency also affects the
design of the MAC protocol. Energy efficiency is traded for increased latency or a
reduction in throughput or fairness. Responsibilities of MAC layer is:
• It decides when a node accesses a shared medium.
• It resolves any potential conflicts between competing nodes.
• It corrects communication errors occurring at the physical layer.
• It performs other activities such as framing, addressing, and flow control.
Second layer of the OSI reference model (data link layer) or the IEEE 802 reference model
(which divides data link layer into logical link control and medium access control layer).
where LLC stands for Logical Link Control.
Contention-Free Medium Access:
• Fixed Assignment: Collisions can be avoided by ensuring that each node can use its
allocated resources exclusively. Examples of fixed assignment strategies:
➢ FDMA (Frequency Division Multiple Access): In this case, the frequency band is
divided into several smaller frequency bands. The data transfer between a pair of
nodes uses one frequency band. All other nodes use a different frequency band.
➢ TDMA (Time Division Multiple Access): In this case, multiple devices use the same
frequency band. It relies on periodic time windows (frames). The frames consist
of a fixed number of transmission slots to separate the medium accesses of
different devices. A time schedule indicates which node may transmit data during
a certain slot.
➢ CDMA (Code Division Multiple Access): In this case, simultaneous accesses of the
wireless medium are supported using different codes. If these codes are
orthogonal, it is possible for multiple communications to share the same frequency
band. Forward error correction (FEC) at the receiver is used to recover from
interferences among these simultaneous communications.
Fixed assignment strategies are inefficient. It is impossible to reallocate slots
belonging to one device to other devices if not needed in every frame. Generating
schedules for an entire network can be a taunting task as these schedules may require
modifications every time the network topology or traffic characteristics in the
network change.
• Dynamic Assignment: This strategy allows nodes to access the medium on demand.
Examples of dynamic assignment strategies are:
➢ Polling-based protocols: In this protocol, a controller device issues small polling
frames in a round-robin fashion, asking each station if it has data to send. If no data
is to be sent, the controller polls the next station.
➢ Token passing: In this protocol, stations pass a polling request to each other
(round-robin fashion) using a special frame called a token. A station is allowed to
transmit data only when it holds the token.
➢ Reservation-based protocols: In this protocol, static time slots are used to reserve
future access to the medium. For e.g., a node can indicate its desire to transmit data
by toggling a reservation bit in a fixed location. It then ensures that other
potentially conflicting nodes take note of such a reservation to avoid collisions.
Contention-Based Medium Access:
In this case, nodes may initiate transmissions at the same time. It requires mechanisms
to reduce the number of collisions and to recover from collisions.
• ALOHA protocol: It uses acknowledgments to confirm the success of a broadcast data
transmission. It allows nodes to access the medium immediately. It addresses
collisions with approaches such as exponential back-off to increase the likelihood of
successful transmissions.
• Slotted-ALOHA protocol: It requires that a station may commence transmission only
at predefined points in time (the beginning of a time slot). It increases the efficiency
of ALOHA and introduces the need for synchronization among nodes.
• CSMA with Collision Detection (CSMA/CD): In this protocol, the sender first senses
the medium to determine whether it is idle or busy. If it is found busy, the sender
refrains from transmitting packets and if the medium is idle, the sender can initiate
data transmission.
• CSMA with Collision Avoidance (CSMA/CA): CSMA/CD requires that sender is aware
of collisions while CSMA/CA attempts to avoid collisions in the first place.
• Multiple Access with Collision Avoidance (MACA): This is a dynamic reservation
mechanism. In this protocol, the sender indicates desire to send with ready-to-send
(RTS) packet and the intended receiver responds with clear-to-send (CTS) packet. If
sender does not receive CTS, it will retry at later point in time. Nodes overhearing RTS
or CTS know that reservation has taken place and must wait. It addresses hidden
terminal problem and reduces number of collisions.
• MACA for Wireless LANs (MACAW): In this protocol, receiver responds with
acknowledgment (ACK) after data reception. Other nodes in receiver's range learn
that channel is available. Nodes hearing RTS, but not CTS do not know if transmission
will occur. MACAW uses data sending (DS) packet, sent by sender after receiving CTS
to inform such nodes of successful handshake.
S-MAC Protocol:
The S-MAC (Sensor MAC) protocol is a medium access control (MAC) protocol that is
designed specifically for wireless sensor networks (WSNs). It is a power-saving MAC
protocol that is designed to reduce the energy consumption of sensor nodes. It achieves
this by introducing several energy-saving mechanisms, such as:
• Duty cycling: S-MAC divides the time into sleep and awake periods, and it allows the
sensor nodes to sleep during the sleep periods to conserve energy.
• Listen before talk: S-MAC requires the sensor nodes to listen before they transmit, to
avoid collisions and to reduce the energy consumption of idle listening.
• Synchronization: S-MAC uses synchronization mechanisms to ensure that the sensor
nodes are awake and ready to communicate at the same time. Overall, S-MAC is a
widely used MAC protocol for WSNs, and it has been shown to be effective in reducing
the energy consumption of sensor nodes and extending the lifetime of WSNs.
However, it has some limitations, such as high latency and the need for good
synchronization, which may not be suitable for all applications.
B-MAC Protocol:
The B-MAC (Berkeley MAC) protocol is a medium access control (MAC) protocol that is
designed specifically for wireless sensor networks (WSNs). Like S-MAC, B-MAC is a
power-saving MAC protocol that is designed to reduce the energy consumption of sensor
nodes. It achieves this by introducing several energy-saving mechanisms, such as:
• Duty cycling: B-MAC divides the time into sleep and awake periods, and it allows the
sensor nodes to sleep during the sleep periods to conserve energy.
• Low-power listening: B-MAC uses a low-power listening mechanism to allow the
sensor nodes to listen for incoming data while they are asleep, without consuming too
much energy.
• Automatic packet fragmentation and reassembly: B-MAC allows the sensor nodes to
automatically fragment and reassemble data packets to optimize their transmission
for energy efficiency.
Overall, B-MAC is a widely used MAC protocol for WSNs, and it has been shown to be
effective in reducing the energy consumption of sensor nodes and extending the lifetime
of WSNs. However, it has some limitations, such as the need for good synchronization,
which may not be suitable for all applications.
S-MAC Protocol B-MAC Protocol
Energy Efficiency Good Excellent
Latency High Low
Synchronization Good Good
Data Rate Low High
IEEE 802.15.4 Protocol:
It is a standard for wireless personal area networks (WPANs), which are low-rate, low-
power, and short-range wireless networks that are used for communication between
devices that are near each other. The standard defines the physical and media access
control (MAC) layers for WPANs, and it specifies the characteristics of the wireless
communication, including the frequency band, the data rate, the modulation scheme, and
the power levels.
IEEE 802.15.4 is widely used in wireless sensor networks (WSNs) and the Internet of
Things (loT), as it provides a reliable and low-cost solution for low-rate wireless
communication. The standard defines several different operating modes, including star,
peer-to-peer, and mesh, which allow it to be used in a variety of applications and network
architectures.
IEEE 802.15.4 is a flexible and widely adopted standard, and it has been extended by
several other standards, such as Zigbee, 6LOWPAN, and Thread, which add additional
features and capabilities on top of the basic 802.15.4 specification.
ZigBee:
It is a wireless networking standard that is based on the IEEE 802.15.4 standard for
wireless personal area networks (WPANSs). It is designed for low-rate, low-power, and
short-range communication between devices that are near to each other.
ZigBee is widely used in wireless sensor networks (WSNs) and the Internet of Things
(loT), as it provides a reliable and low-cost solution for wireless communication and
control. It is particularly well-suited for applications that require long battery life, low
cost, and simplicity, such as smart homes, building automation, and industrial control.
ZigBee defines several different network topologies, including star, tree, and mesh, which
allow it to be used in a variety of applications and network architectures. It also defines
several different device types, including coordinators, routers, and end devices, which
have different capabilities and roles in the network. Overall, ZigBee is a popular and
widely adopted standard for low-rate wireless communication, and it is expected to play
a key role in the development of the Internet of Things (loT) and the wider adoption of
connected systems.
Dissemination Protocol for Large Sensor Network:
A dissemination protocol for a large sensor network is a set of rules and procedures that
govern the distribution of information or data within the network. The primary objectives
of a dissemination protocol in a large sensor network are to minimize the use of network
resources, such as energy and bandwidth, while ensuring efficient and reliable
communication between nodes.
Importance of Dissemination Protocols:
Dissemination protocols are essential for efficient and reliable communication within the
network, as they govern the distribution of information from one node to another. There
are several common dissemination protocols for sensor networks, including Flooding,
Gossiping, SPIN. Each of these protocols has its own advantages and disadvantages, and
the choice of protocol will depend on the specific requirements and constraints of the
network.
Flooding:
It is a data dissemination method in which a sensor node broadcasts its data to all of its
neighbouring nodes, and the process is repeated until the data reaches the sink node. In
Flooding, each node in the network acts as both a sender and a receiver of data. A sensor
node broadcasts its data to all its neighbours, and each neighbour, in turn, broadcasts the
data to all of its neighbours, until the data reaches the sink node.
Limitations of Flooding:
• Implosion: Occurs when a node sends data to its neighbours, regardless of whether or
not the neighbour has already received it.
• Overlap: Occurs when sensor nodes cover overlapping geographical area (wastage of
energy and bandwidth).
• Resource Blindness: Occurs when nodes do not modify their activities based on the
amount of energy available to them at a given time.
Gossiping:
It is a data dissemination method in which each sensor node randomly selects a few
neighbouring nodes and exchanges data with them, and the process is repeated until the
data reaches the sink node. In Gossiping, each node acts as both a sender and a receiver
of data. A sensor node randomly selects a few of its neighbours and exchanges data with
them. This process is repeated until the data reaches the sink node. Advantages of
gossiping are:
• Gossiping is efficient and scalable, as it reduces network congestion.
• Gossiping avoids the problem faced in flooding approach like implosion.
SPIN (Sensor Protocol for Information via Negotiation):
It corporates negotiation and resource adaptation to overcome the limitations of classic
flooding.
• Negotiation: Nodes negotiate with each other before transmitting data to ensure that
only useful information is transferred which helps in eliminating implosion and
overlap.
• Resource-Adaptation: Each node has its own resource manager which keeps track of
resource consumption. In this case, nodes poll before data transmission.
SPIN-1:
It is a 3-stage protocol. Nodes use 3 types of messages to communicate: ADV - To advertise
new data; REQ - To request for data and DATA - for actual message.
Advantages are:
• Simple.
• Each node performs little decision making, therefore wastes little energy in
computation.
• Each node only needs to know about its single-hop network neighbours.
Data Gathering:
It refers to the process of collecting and aggregating data from individual sensor nodes
and transmitting it to a central node for further processing or storage. The objective of
the data gathering problem is to transmit the sensed data from each sensor node to a BS.
The goal of algorithm which implement data gathering is:
• Maximize the lifetime of network
• Minimum energy should be consumed
• The transmission occurs with minimum delay
Types of Data Gathering:
• Direct Transmission: All sensor nodes transmit their data directly to the BS. It cost
expensive when the sensor nodes are very far from the BS. Nodes must take turns
while transmitting to the BS to avoid collision, so the media access delay is also large.
• Power-Efficient Gathering for Sensor Information Systems (PEGASIS): It assumes that
all sensor nodes know the location of every other node. Any node has the required
transmission range to reach the BS in one hop, when it is selected as a leader. The goal
of PEGASIS is as following:
➢ Minimize the distance over which each node transmits
➢ Minimize the broadcasting overhead
➢ Minimize the number of messages that need to be sent to the BS
➢ Distribute the energy consumption equally across all nodes
➢ To construct a chain of sensor nodes, starting from the node farthest from the BS.
At each step, the nearest neighbour which has not been visited is added to the
chain.
➢ It is reconstructed when nodes die out.
➢ At every node, data fusion or aggregation is carried out.
➢ A node which is designated as the leader finally transmits one message to the BS.
➢ Leadership is transferred in sequential order.
• Binary Scheme: This is a chain-based scheme like PEGASIS, which classifies nodes into
different levels. This scheme is possible when nodes communicate using CDMA, so
that transmissions of each level can take place simultaneously.
• Chain-Based Three Level Scheme: It is mainly for non-CDMA sensor nodes. The chain
is divided into a number of groups to space out simultaneous transmissions in order
to minimize interference. Within a group, nodes transmit data to the group leader, and
the leader fusion the data, and become the member to the next level. In the second
level, all nodes are divided into two groups. In the third level, consists of a message
exchange between one node from each group of the second level. Finally, the leader
transmits a single message to the BS.
Introduction to Data Aggregation or Fusion:
When sensors generate raw data packets, before these packets transfer to the sink, we
can do the process combining and compressing data coming from different sensors in
order to reduce the packets to be sent over the network.
The main purpose of data aggregation is in order to conserve energy to extend the lifetime
of sensor node. So, we reduce the packet length and the transmission times to conserve
energy by data aggregation.
The data aggregation process tries to obtain critical data through sensors, so as to provide
it to the sink energy- efficiently, while keeping the data latency minimal. The latter is
significant in a variety of uses, including environmental monitoring, which considers data
freshness of high importance. Developing energy-effective data aggregating algorithms is
crucial for enhancing the life span of networks.
Data Aggregation Protocols:
• Flat Networks: The Flat Networks Protocol is a protocol used to perform data
aggregation in sensor networks. This protocol assumes a flat network structure,
where all nodes have equal roles and responsibilities in the network, and no specific
node is designated as the central coordinator. The Flat Networks Protocol uses a
distributed approach to data aggregation, where each node in the network
participates in the aggregation process.
• Hierarchical Networks: The high rates of energy consumption in flat networks is often
due to the fact that any form of communicating and computing create a burden upon
the sink. As for hierarchical networks, the data is aggregated by means of a special
node which reduced the number of data packets sent to the sink. Therefore, such a
structure improves the overall energy efficient performance of the hierarchical
networks, which consist of Centralized, In-Network, Tree Based and Cluster Based.
➢ Centralized Approach: As for this type of approaches, all sensors send their sensed
data in form of data packets to a central node or base station through the briefest
route available. The role of the aggregator or header node is to aggregate the data
received via the other nodes, after which the resulting data is transmitted in form
of a single packet. Direct Diffusion (DD) and Sensor Protocol for Information via
Negotiation (SPIN) are some examples of this type of protocol. Figure 3 illustrates
the centralized aggregation approach.
➢ In-Network Approach: In-network aggregating is a thorough approach to gather
and process data at intermediate nodes, as well as to route information via multi-
hop networks. It mainly aims to reduce amount of power consumed throughout
the process. Two forms of in-network aggregation are known:
▪ Size-reducing aggregation: The data packets coming from sensor nodes
through their neighbour nodes are compressed to reduce the size of packets to
be node.
▪ With no size reduction: The value of data is not processed here when merging
the packets of various neighbour nodes into one packet.
Some examples of this type of protocol are Data Routing In-Network Aggregation
(DRINA) and Modified Data Routing In- Network Aggregation (M-DRINA).
➢ Tree Based Approach: Data Aggregation Trees (DAT) are created whereby all data
transmissions require the construction of minimal spanning trees. All nodes
within the network have a parent-child relationship where data is directed in a
bottom-up approach, as shown in Figure 5. The data flows starting by the leaf
nodes towards the sink node, while the parent nodes aggregate the data within the
networks. An example of this type of protocol is Tiny Aggregation (TAG).
➢ Cluster Based Approach: This approach involves splitting networks into a number
of clusters. Every cluster consists of a set of sensor nodes, one of which is selected
to be the cluster head. The cluster head performs the role of data aggregation
whereby the data obtained gets aggregated and is then forwarded to the sink. The
bandwidth here is brought to a minimum due to the reduced number of packets to
be sent. In this approach, the data aggregating process serves to reduce any
directly transmitted packets to the base station, in addition to the decrease in the
amount of energy consumed as a result of the reduced distance of transmission.
There are a number of cluster-based approaches which have been introduced for
wireless sensor networks, such as Low Energy Adaptive Clustering Hierarchy
(LEACH), Hybrid Energy Efficient Distributed Clustering Approach (HEED) and
clustered diffusion with dynamic data aggregation (CLUDDA).
Quality of Wireless Sensor Network:
The quality of a Wireless Sensor Network (WSN) is determined by several factors,
including:
• Reliability: The ability of the network to consistently provide accurate and timely data
without failures or errors.
• Scalability: The ability of the network to grow and accommodate increasing numbers
of nodes without significant degradation in performance.
• Energy Efficiency: The ability of the network to conserve energy by minimizing the
use of resources, such as bandwidth and processing power, while still providing
accurate and timely data.
• Latency: The time it takes for a message to travel from one node to another, or from a
node to the central node.
• Security: The ability of the network to protect against unauthorized access, tampering,
and data theft.
• Connectivity: The ability of nodes to communicate with each other, regardless of their
physical locations.
• Robustness: The ability of the network to continue functioning in the presence of node
failures or other disruptions.
The quality of a WSN is crucial for its success, as it directly impacts the accuracy and
usefulness of the data it collects and the ability of the network to meet its objectives. To
ensure high quality, WSNs must be carefully designed and implemented, taking into
consideration the specific requirements and constraints of the application and the
environment.
Real Time Traffic Support in WSN:
Real-time traffic support in Wireless Sensor Networks (WSNs) refers to the ability of the
network to provide timely and accurate data for applications that require low latency and
high reliability, such as traffic monitoring and control systems. In these applications,
sensors are deployed along roads or highways to collect data such as vehicle speeds,
counts, and locations. This data is then transmitted to a central node for processing and
analysis to support real-time traffic management and decision- making. To support real-
time traffic support in WSNs, several challenges must be addressed, including:
• Latency: To support real-time applications, the network must have low latency, so that
the data is transmitted and processed quickly.
• Reliability: The network must be able to provide accurate and reliable data, as errors
or failures in the network can have serious consequences for traffic management and
decision-making.
• Energy Efficiency: The network must conserve energy to ensure that sensors have a
long lifespan, as it can be difficult or expensive to replace sensors in remote locations.
• Security: The network must be secure to prevent unauthorized access or tampering
with the data, which can also have serious consequences for traffic management and
decision-making.
To meet these challenges, WSNs used for real-time traffic support are often designed and
implemented with a focus on reliability, low latency, and energy efficiency.
Security Protocols in WSN:
Security protocols in Wireless Sensor Networks (WSNs) are designed to protect against
various security threats, including unauthorized access, tampering with data, and
eavesdropping. Some common security protocols used in WSNs include:
• Cryptographic Protocols: These protocols use encryption algorithms to secure data
transmitted over the network, making it difficult for unauthorized users to access or
modify the data.
• Authentication Protocols: These protocols verify the identity of nodes in the network,
ensuring that only authorized nodes can participate in data transmission and
processing.
• Key Management Protocols: These protocols manage the distribution and updation of
cryptographic keys used for encryption, ensuring that all nodes have the same key and
that keys are updated regularly to maintain security.
• Access Control Protocols: These protocols define rules for accessing the network and
data, ensuring that only authorized users have access to sensitive information.
• Trust Management Protocols: These protocols determine the level of trust in different
nodes in the network, allowing the network to prioritize data from more trustworthy
sources.
The choice of security protocols for a WSN will depend on the specific requirements and
constraints of the application and environment. Some protocols may be more suitable for
certain applications or environments than others, and trade-offs may need to be made
between security, energy consumption, and network performance.
Design Principles for WSN:
Wireless sensor networks (WSNs) are networks of small, low-power devices that are used
to monitor and collect data from the surrounding environment. There are several design
principles that are important to consider when designing a WSN, including:
• Energy efficiency: WSN nodes are often powered by batteries, so it is important to
design the network in a way that minimizes energy consumption.
• Scalability: WSNs can potentially include thousands or even millions of nodes, so it is
important to design the network in a way that allows it to scale easily.
• Robustness: WSNs often operate in harsh environments and can be subjected to
interference, so it is important to design the network to be robust and resilient to
these challenges.
• Security: WNs often handle sensitive data, so it is important to design the network to
be secure against attacks and data breaches.
• Interoperability: WSNs may need to integrate with other systems and devices, so it is
important to design the network to be interoperable with other technologies.
• Adaptability: WSNs may need to adapt to changing environments and requirements,
so it is important to design the network to be flexible and able to adapt to these
changes.
Gateway Concept in WSN:
In a wireless sensor network (WSN), a gateway is a device that connects the sensor nodes
to other networks, such as the internet. The gateway serves as the interface between the
WSN and the outside world, allowing sensor data to be transmitted to remote locations
for analysis and processing. There are several key concepts related to gateway design and
operation in WSNs:
• Communication protocols: The gateway must be able to communicate with the sensor
nodes using the appropriate communication protocols. This may involve support for
multiple protocols, depending on the specific needs of the WSN.
• Data aggregation: The gateway may be responsible for aggregating data from multiple
sensor nodes before transmitting it to the outside world. This can help to reduce the
amount of data that needs to be transmitted, and can also be used to perform simple
data processing tasks
• Power management: The gateway may need to manage the power consumption of the
sensor nodes to ensure that they do not run out of power before their batteries can be
replaced or recharged.
• Security: The gateway must be secured against attacks, as it is the primary point of
entry for outside access to the WSN. This may involve the use of encryption and other
security measures to protect against data breaches.
• Deployment: The gateway must be carefully deployed in the WSN to ensure that it has
good coverage and can communicate effectively with the sensor nodes. This may
involve the use of multiple gateways to provide redundancy and improve reliability.
Need for Gateway in WSN:
There are several reasons why a gateway may be needed in a WSN:
• Data transmission: The primary function of a gateway in a WSN is to transmit data
from the sensor nodes to remote locations for analysis and processing. Without a
gateway, the sensor nodes would be isolated and unable to transmit their data.
• Network management: The gateway can be used to manage and control the sensor
nodes in the WSN. For example, it can be used to update the firmware on the nodes,
or to configure their sensor parameters.
• Security: The gateway serves as the primary point of entry for outside access to the
WSN. By securing the gateway, it is possible to protect the entire WSN against attacks
and data breaches.
• Interoperability: The gateway can be used to integrate the WSN with other systems
and devices. For example, it can be used to transmit data from the WSN to a cloud-
based analytics platform, or to a local server for further processing.
• Reliability: The use of a gateway can improve the reliability of the WSN by providing
a redundant communication path. If a sensor node fails or goes offline, the gateway
can be used to transmit data from other nodes in the network.
WSN to Internet Communication:
Wireless sensor networks (WSNs) are networks of small, low-power devices that are used
to monitor and collect data from the surrounding environment. In order to transmit this
data to the internet or other external networks, a gateway is typically used to connect the
WSN to these networks. There are several different ways that a WSN can communicate
with the internet, depending on the specific needs of the network and the available
infrastructure:
• Cellular: A WSN can use a cellular network to transmit data to the internet. This can
be done using a cellular modem connected to the gateway, or by using specialized
sensor nodes that include a built-in cellular modem.
• Wi-Fi: If the WSN is deployed in an area with Wi-Fi coverage, it can use a Wi-Fi
network to transmit data to the internet. This can be done using a Wi-Fi modem
connected to the gateway, or by using specialized sensor nodes with built-in Wi-Fi.
• Satellite: In remote or hard-to-reach areas, a satellite network may be used to transmit
data from the WSN to the internet. This can be done using a satellite modem connected
to the gateway, or by using specialized sensor nodes with built-in satellite modems.
• Long-range wireless: In some cases, it may be possible to use long-range wireless
technologies, such as LoRa or Sigfox, to transmit data from the WSN to the internet.
These technologies can be used to transmit data over long distances, making them
well-suited for remote or hard-to-reach areas.
Internet to WSN Communication:
Wireless sensor networks (WSNs) are networks of small, low-power devices that are used
to monitor and collect data from the surrounding environment. In order to transmit data
from the internet to a WSN, a gateway is typically used to connect the WSN to the internet.
There are several different ways that the internet can communicate with a WSN:
• Remote management: The gateway can be used to remotely manage and control the
sensor nodes in the WSN. For example, it can be used to update the firmware on the
nodes, or to configure their sensor parameters.
• Data collection: The gateway can be used to collect data from the sensor nodes in the
WSN and transmit it to the internet for analysis and processing. This can be done using
a variety of protocols, such as HTTP, MQTT, or CoAP.
• Command and control: The gateway can be used to transmit commands from the
internet to the WSN, allowing remote users to control the sensor nodes and collect
data on demand.
• Alerts and notifications: The gateway can be used to transmit alerts and notifications
from the WSN to the internet in real-time. For example, if a sensor node detects a
problem or anomaly, the gateway can transmit an alert to the internet to notify the
appropriate parties.
Single Node Architecture:
A single-node architecture in a Wireless Sensor Network (WSN) typically consists of a
sensor node that includes the following hardware components:
• Controller: A microcontroller or a microprocessor that is responsible for processing
data, making decisions, and controlling the other components of the node.
• Sensors/Actuators: Devices that collect data from the environment and/or control
physical processes. They can include temperature sensors, humidity sensors, light
sensors, accelerometers, etc.
• Communication Device: A wireless transceiver, such as a Zigbee or RF module, that
enables the node to communicate with other nodes or a central control unit.
• Memory: A non-volatile memory device, such as flash memory or an EEPROM, that
stores data and programs.
• Power Supply: A battery or other power source that provides power to the node.
The design constraints of single node architecture are:
• Power consumption: Limited battery life is a major constraint, so power efficiency is
critical.
• Cost: Sensor nodes must be inexpensive to manufacture and deploy in large numbers.
• Size and weight: Sensor nodes must be small and lightweight for easy deployment and
mobility.
• Reliability and robustness: Sensor nodes must be able to function correctly in harsh
environments and maintain data accuracy.
• Communication range: Limited communication range may limit the overall coverage
and functionality of the network.
Operating Systems and Execution Environments Used in WSNs:
Wireless sensor networks (WSNs) are networks of small, low-power devices that are used
to monitor and collect data from the surrounding environment. These devices typically
have limited processing power and memory, and as a result, they require specialized
operating systems and execution environments that are optimized for their unique
constraints. Some examples of operating systems and execution environments that are
commonly used in WSNs include:
• TinyOS: It is an open-source operating system designed specifically for WSNs. It is
written in the nesC programming language and is designed to be lightweight and
energy efficient.
• Contiki: Contiki is another open-source operating system for WSNs. It is written in the
C programming language and includes support for a wide range of networking
protocols and applications.
• RIOT: RIOT is an open-source operating system for the internet of things (IoT) and
WSNs. It is written in the C programming language and is designed to be lightweight
and energy efficient.
• Java Embedded: Java Embedded is a Java execution environment that can be used to
run Java applications on WSN devices. It is designed to be lightweight and energy-
efficient, and includes support for a wide range of Java libraries and frameworks.
• MicroPython: It is a lightweight implementation of the Python programming language
that can be used to develop applications for WSNs and other embedded devices. It is
designed to be easy to use and includes a range of libraries and tools for working with
sensors and other hardware.
Introduction to TinyOS:
TinyOS is an open-source operating system designed specifically for wireless sensor
networks (WSNs) and other embedded systems. It is written in the nesC programming
language and is designed to be lightweight and energy-efficient, making it well-suited for
use on small, low-power devices. Some key features of TinyOS include:
• Modular architecture: TinyOS is designed to be modular, with a wide range of reusable
components that can be easily combined to create custom applications.
• Event-driven model: TinyOS uses an event-driven programming model, where tasks
are triggered by events such as the arrival of a packet or the expiration of a timer. This
can help to minimize energy consumption by allowing the system to sleep between
events.
• Support for a wide range of hardware: TinyOS includes support for a wide range of
hardware platforms, including microcontrollers, sensors, and radio transceivers.
• Networking stack: TinyOS includes a fully-featured networking stack that supports a
wide range of networking protocols, including IPv4, IPv6, and 6LoWPAN.
• Development tools: TinyOS includes a range of development tools, including a
simulator, a debugger, and a code profiler, to help developers create and debug
applications.
Overall, TinyOS is a popular choice for developing applications for WSNs and other
embedded systems due to its lightweight design, modular architecture, and support for a
wide range of hardware platforms.