WSN Lecture Notes
WSN Lecture Notes
WSN Lecture Notes
ON
WIRELESS SENSOR NETWORKS
M.Tech (R18) I Semester
Prepared by
Dr Chukka Santhaiah
Professor
A sensor nodemight vary in size from that of a shoebox down to the size of a grain of
dust. The cost of sensor nodes is similarly variable, ranging from a few to hundreds of
dollars, depending on the complexity of the individual sensor nodes. Size and cost constraints
on sensor nodes result in corresponding constraints on resources such as energy, memory,
computational speed and communications bandwidth. The topology of the WSNs can vary
from a simple star networkto anadvanced multi-hopwireless mesh network. The propagation
technique between the hops of the network can be routing or flooding.
Overview of wireless sensor network
Motivations
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), micro electromechanical systems
(MEMS), and wirless 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
defence 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.
Many wireless sensor networks also include actuators which allow them to directly
control the physical world. For example, an actuator can be a valve controlling the flow of
hot water, a motor that opens or closes a door or window, or a pump that controls the amount
of fuel injected into an engine. Such a wireless sensor and actuator network (WSAN) takes
commands from the processing device (controller) and transforms these commands into input
signals for the actuator, which then interacts with a physical process, thereby forming a
closed control loop (also shown in Figure 1.1).
Sensor Classifications
Which sensors should be chosen for an application depends on the physical property
to be
monitored, for example, such properties include temperature, pressure, light, or humidity.
Besides physical properties, the classification of sensors can be based on a variety of other
methods, for example, whether they require an external power supply. If the sensors require
external power, they are referred to as active sensors. That is, they must emit some kind of
energy (e.g., microwaves, light, sound) to trigger a response or to detect a change in the
energy of the transmitted signal. On the other hand, passive sensors detect energy in the
environment and derive their power from this energy input – for example, passive infrared
(PIR) sensors measure infrared light radiating from objects in the proximity.
The classification of sensors can also be based on the methods they apply and the
electrical
phenomena they utilize to convert physical properties into electrical signals. Resistive sensors
rely on changes to a conductor’s electrical resistivity, P, based on physical properties such as
temperature. The resistance, R, of a conductor can be determined as:
where l is the length of the conductor and A is the area of the cross-section.
Applications:
Area monitoring
Area monitoring is a common application of WSNs. In area monitoring, the WSN is
deployed over a region where some phenomenon is to be monitored. A military example is
the use of sensors to detect enemy intrusion; a civilian example is the geo-fencing of gas or
oil pipelines.
Environmental/Earth monitoring
The term Environmental SensorNetworks has evolved to cover many applications of
WSNs to earth science research. This includes sensing volcanoes, oceans, glaciers, forests,
etc. Some of the major areas are listed below.
Air quality monitoring-The degree of pollution in the air has tobe measured frequently in
order to safeguard people and the environment from any kind of damages due to air pollution.
In dangerous surroundings, real time monitoring of harmful gases is a concerning process
because the weather can change with severe consequences in an immediate manner.
Fortunately, wireless sensor networks have been launched to produce specific solutions for
people.
Interior monitoring
Observing the gas levels at vulnerable areas needs the usage of high-end,
sophisticated equipment, capable to satisfy industrial regulations. Wireless internal
monitoring solutions facilitate keep tabs on large areas as well as ensure the precise gas
concentration degree.
Exterior monitoring
External air quality monitoring needs the use of precise wireless sensors, rain & wind
resistant solutions as well as energy reaping methods to assure extensive liberty to machine
that will likely have tough access.
Air pollution monitoring
Wireless sensor networks have been deployed in several cities to monitor the
concentration of dangerous gases for citizens. These can take advantage of the ad-hoc
wireless links rather than wired installations, which also make them more mobile for testing
readings in different areas. There are various architectures that can be used forsuch
applications as well as different kinds of data analysis and data mining that can be conducted.
Forest fire detection
A network of Sensor Nodes can be installed in a forest to detect when a fire has
started. The nodes can be equipped with sensors to measure temperature, humidity and gases
which are produced by fire in the trees or vegetation. The early detection is crucial for a
successful action of the firefighters; thanks to Wireless Sensor Networks, the fire brigade will
be able to know when a fireis started and how it is spreading.
Landslide detection
A landslide detection system makes use of a wireless sensor network to detect the
slight movements of soil and changes in various parameters that may occur before or during a
landslide. Through the data gathered it may be possible to know the occurrence of landslides
long before it actually happens.
Water quality monitoring
Water quality monitoring involves analyzing water properties in dams, rivers, lakes &
oceans, as well as underground water reserves. The use of many wireless distributed sensors
enables the creation of a more accurate map of the water status, and allows the permanent
deployment of monitoring stations in locations of difficult access, without the need of manual
data retrieval.
Natural disaster prevention
Wireless sensor networks can effectively act to prevent the consequences of natural
disasters, like floods. Wireless nodes have successfully been deployed in rivers where
changes of the water levels have to be monitored in real time.
Industrial monitoring
Machine health monitoring
Wireless sensor networks have been developed for machinery condition-based
maintenance (CBM) as they offer significant cost savings and enable new functionality. In
wired systems, the installation of enough sensors is often limited by the cost of wiring.
Previously inaccessible locations, rotating machinery, hazardous or restricted areas, and
mobile assets can now be reached with wireless sensors.
Data logging
Wireless sensor networks are also used for the collection of data for monitoring of
environmental information, this can be as simple as the monitoring of the temperature in a
fridge to the level of water in overflow tanks in nuclear power plants. The statistical
information can then be used to show how systems have been working. The advantage of
WSNs over conventional loggers is the "live" data feed that is possible.
Water/Waste water monitoring
Monitoring the quality and level of water includes many activities such as checking the
quality of underground or surface water and ensuring a country’s water infrastructure for the
benefit of both human and animal. The area of water quality monitoring utilizes wireless
sensor networks and many manufacturers have launched fresh and advanced applications for
the purpose.
The whole process includes examining water properties in rivers, dams, oceans, lakes
and also in underground water resources. Wireless distributed sensors let users to make a
precise map of the water condition as well as making permanent distribution of observing
stations in areas of difficult access with no manual data recovery.
Water distribution network management
Manufacturers of water distribution network sensors concentrate on observing the
water management structuressuch as valve and pipes and also making remote access to water
meter readings.
Preventing natural disaster
The consequences of natural perils like floods can be effectively prevented with
wireless sensor networks. Wireless nodes are distributed in rivers so that changes of the water
level can be effectively monitored.
Agriculture
Using wireless sensor networks within the agricultural industry is increasingly
common; using a wireless network frees the farmer from the maintenance of wiring in a
difficult environment. Gravity feed water systems can be monitored using pressure
transmitters to monitor water tank levels, pumps can be controlled using wireless I/O devices
and water use can be measured and wirelessly transmitted back to a central control center
forbilling. Irrigation automation enables more efficient water use and reduces waste.
Accurate agriculture
Wireless sensor networks let users to make precise monitoring of the crop at the time
of its growth. Hence, farmers can immediately know the state of the item at all its stages
which will ease the decision process regarding the time of harvest.
Irrigation management
When real time data is delivered, farmers are able to achieve intelligent irrigation.
Data regarding the fields such as temperature level and soil moisture are delivered to farmers
through wireless sensor networks. When each plant is joined with a personal irrigation
system, farmers can pour the precise amount of water each plant needs and hence, reduce the
cost and improve the quality of the end product. The networks can be employed to manage
various actuators in the systems using no wired infrastructure.
Greenhouses
Wireless sensor networks are also used to control the temperature and humidity levels
inside commercial greenhouses. When the temperature and humidity drops below specific
levels, the greenhouse manager must be notified via e-mail or cell phone text message, or
host systems can trigger misting systems, open vents, turn on fans, or control a wide variety
of system responses.
Passive localization and tracking
The application of WSN to the passive localization and tracking of non-cooperative
targets (i.e., people not wearing any tag) has been proposed by exploiting the pervasive and
low-cost nature of such technology and the properties of the wireless links which are
established in a meshed WSN infrastructure.
Smart home monitoring
Monitoring the activities performed in a smart home is achieved using wireless
sensors embedded within everyday objects forming a WSN. A state change to objects based
on human manipulation is captured by the wireless sensors network enabling activity-support
services. While most of these applications are, in some form or another, possible even with
today’s technologies and without wireless sensor networks, all current solutions are “sensor
starved”.
Performance metrics
As with many other technologies, the military has been a driving force behind the
development of wireless sensor networks. For example, in 1978, the Defense Advanced
Research Projects Agency (DARPA) organized the Distributed Sensor Nets Workshop (DAR
1978), focusing on sensor network research challenges such as networking technologies,
signal processing techniques, and distributed algorithms. DARPA also operated the
Distributed Sensor Networks (DSN) program in the early 1980s, which was then followed by
the Sensor Information Technology (SensIT) program.
In collaboration with the Rockwell Science Center, the University of California at Los
Angeles proposed the concept of Wireless Integrated Network Sensors or WINS (Pottie
2001). One outcome of the WINS project was the Low PowerWireless Integrated
Microsensor (LWIM), produced in 1996 (Bult et al. 1996). This smart sensing system was
based on a CMOS chip, integrating multiple sensors, interface circuits, digital signal
processing circuits, wireless radio, and microcontroller onto a single chip. The Smart Dust
project (Kahn et al. 1999) at the University of California at Berkeley focused on the design of
extremely small sensor nodes called motes. The goal of this project was to demonstrate that a
complete sensor system can be integrated into tiny devices, possibly the size of a grain of
sand or even a dust particle. The PicoRadio project (Rabaey et al. 2000) by the Berkeley
Wireless Research Center (BWRC) focuses on the development of low-power sensor devices,
whose power consumption is so small that they can power themselves from energy sources of
the operating environment, such as solar or vibrational energy. The MIT μAMPS (micro-
Adaptive Multidomain Power-aware Sensors) project also focuses on low-power hardware
and software components for sensor nodes, including the use of microcontrollers capable of
dynamic voltage scaling and techniques to restructure data processing algorithms to reduce
power requirements at the software level (Calhoun et al. 2005).
While these previous efforts are mostly driven by academic institutions, over the last
decade a number of commercial efforts have also appeared (many based on some of the
academic efforts described above), including companies such as Crossbow
(www.xbow.com), Sensoria www.sensoria.com), Worldsens (http://worldsens.citi.insa-
lyon.fr),DustNetworks (http://www.dustnetworks.com), and Ember Corporation
(http://www.ember.com). These companies provide the opportunity to purchase sensor
devices ready for deployment in a variety of application scenarios along with various
management tools for programming,maintenance, and sensor data visualization.
WSN Design factors
Network Architecture
WSN Architecture
Most common architecture for WSN follows the OSI Model. Basically in sensor network we
need five layers: application layer, transport layer, network layer, data link layer and physical
layer. Added to the five layers are the three cross layers planes.
Cross-layer designs
The three cross planes or layers are; power management plane, mobility management plane
and task
management plane. These layers are used to manage the network and make the sensors work
together in
order to increase the overall efficiency of the network.
• Mobility management plane: detect sensor nodes movement. Node can keep track of
neighbours
and power levels (for power balancing).
• Task management plane: schedule the sensing tasks to a given area. Determine which nodes
are
off and which ones are on.
Network layer: The major function of this layer is routing. This layer has a lot of challenges
depending on the application but apparently, the major challenges are in the power saving,
limited memory and buffers, sensor does not have a global ID and have to be self organized.
This is unlike computer networks with IP address and central device for controlling . The
basic idea of the routing protocol is to define a reliable path and redundant paths according to
a certain scale called metric, which differs from protocol to protocol. There is a lot of routing
protocols available for this layer, they can be divide into; flat routing (for example, direct
diffusion) and hierarchal routing (for example, LEACH) or can be divided into time driven,
query driven and event driven. In continuous time driven protocol, the data is sent
periodically and time driven for applications that need a periodic monitoring. In event driven
and query driven protocols, the sensor responds according to action or user query.
Data link layer : Responsible for multiplexing data streams, data frame detection, MAC, and
error control, ensure reliability of point–point or point– multipoint. Errors or unreliability
comes from:
• Co- channel interference at the MAC layer and this problem is solved by MAC protocols.
• Multipath fading and shadowing at the physical layer and this problem is solved by forward
error
correction (FEC) and automatic repeat request (ARQ).
ARQ: not popular in WSN because of additional re-transmission cost and overhead. ARQ is
not efficient
to frame error detection so all the frame To retransmitted if there is a single bit error .
FEC: decreases the number of retransmission by adding redundant data on each message so
the receiver
can detect and correct errors. By that we can avoid re-transmission and wait for ACK.
MAC layer: Responsible for Channel access policies, scheduling, buffer management and
error control. In
WSN we need a MAC protocol to consider energy efficiency, reliability, low
access delay
and high throughput as a major priorities . The MAC layer is discussed in a
separate paper.
Physical Layer : Can provide an interface to transmit a stream of bits over physical medium.
Responsible
for frequency selection, carrier frequency generation, signal detection,Modulation and
data encryption.
IEEE 802.15.4: proposed as standard for low rate personal area and WSN with low:
cost,complexity,
power consumption, range of communication to maximize battery life. Use CSMA/CA,
support star
and peer to peer topology. There are many versions of IEEE 802.15.4.
Application layer: Responsible for traffic management and provide software for different
applications
that translate the data in an understandable form or send queries to obtain certain
information. Sensor
networks deployed in various applications in different fields, for example; military,
medical,
environment, agriculture fields .
WSN MOTES
In the following paragraphs, different wireless motes are analyzed depending on its
application usage, technicalspecifications etc. For improving readability and to provide a
better picture, the survey is organized with specifications of the motes in an ascending
fashion, starting from older to recently arrived motes in the market.
1) Mica2/MicaZ Motes
Figure 1 pictorially represents the Mica2 Mote. These motes are the second and third
generation mote technologies from CrossBow Technology. Mica2 and MicaZ use an
Atmega128L controller along with a CC1000/ CC2420 RF Module respectively.
Mica2/MicaZ are equipped with humidity, temperature and light sensors, with interface
support for connecting sensors that connect directly to the mote. These motes are capable of
measuring barometric pressure, acceleration/seismic activity etc. Possible uses of Mica motes
lie in pressure monitoring, structural health monitoring etc. The motes are powered from an
external 2 AA batteries with an operating range of 2.1 to 3.6 V DC.
Figure 2 pictorially represents the TelosB Mote. TelosB mote was initially developed
by University of California, Berkeley. The TelosB mote embeds an 802.15.4 compatible
CC2420 radio chip from Texas Instruments. It provides onboard humidity, and temperature
IC type sensors (SHT2x from Sensirion). The relative humidity reading is provided by the
humidity sensor with an accuracy of 3% and temperature sensor connected through SPI has
accuracy of 0.4˚C. The motes are powered from an external 2 AA batteries with an operating
range of 2.1 to 3.6 V DC. Apart from the TelosB, the XM1000 wireless motesare based on
the TelosB specifications but with an upgraded program and data memory. In-built light
sensors are also introduced in this product.
4) IRIS
Figure 3 pictorially represents the IRIS Mote. One of the available wireless node
platforms which offer
higher communication range (Near to 500 Meters in LoS), is the IRIS. It uses a 2.4 GHz
IEEE 802.15.4 wireless
module. The mote works on an open source TinyOS operating system on an ATmega1281
based low-power
Micro-Controller. The IRIS mote gives developers the support of integrating sensor support
boards through a
standard 51-pin expansion connector. The most interesting part is the current consumption
where TX current varies from 10 - 17 mA and the RX current reaches to 16 mA. The
communication range varies is >300 and >50
meters for outdoor and indoor ranges (with LoS). Due to its higher communication range, the
motes can be deployed underground for agriculture and soil monitoring. Though, it is an
obvious fact that soil provides higher interference to RF communication, it is possible to
implement a network of underground motes within a mote-mote communication range of ~30
meters underground. Moreover IRIS motes can also be integrated with a MIB600 TCP/IP
Ethernet network which can act asa base station.
8) WiSense Mote
Figure 7 pictorially represents the WiSense Mote. An interesting platform for WSN
and Internet-of-Things (IoT) implementation is the WiSense platform. Apart from providing
hardware modules for developers, Wi- Sense provides a framework through which
researchers and developers can build their own mesh networks
through a GUI. The software makes use of an easy-to-use Eclipse platform with an IEEE
802.15.4 protocol
stack implementation. This type of interface in terms of both the hardware and software
provides an extended
support to the developer. The hardware platform involves a MSP430 low-power controller
from Texas instruments.
The mote runs on an 8/16 MHz Clock along with a CC1101 RF module. With the
usage of CC1101, possible applications of this mote extends to Home automation, automated
food ordering system in restaurants, campus network, industrial automation, green cities etc.
The data and program memory are fixed at 4 KB and 56
KB respectively.
Hardware parameters
The sensor nodes are the fundamental components of a WSN. To enable WSN-based SHM
applications, the sensor nodes have to provide the following basic functionality.
• signal conditioning and data acquisition fordifferent sensors;
• temporary storage of the acquired data;
• processing of the data;
• analysis of the processed data for diagnosis and, potentially, alert generation;
• self monitoring (e.g., supply voltage);
• scheduling and execution of the measurement tasks;
• management of the sensor node configuration (e.g., changing the sampling rate and
reprogramming of data processing algorithms);
• reception, transmission, and forwarding of data packets;
• coordination and management of communication and networking.
WSN protocols
WSN protocols: synchronized
Based on the description above, a Markov chain model for the sensor node model is created
by and shown in Figure, where the subscript represents the number of packets in the buffer.
Using this model, the stationary distribution of a node’s state ðpÞ can be calculated given the
successful transmission probability of data ðbÞ and the probability that data are received in a
time slot ðaÞ. Other metrics can be calculated based on p: for example, the average number
of data generated in a time slot, the sensor throughput or average number of data forwarded
by the sensor in a time slot, and the average buffer occupancy in sensor node.
1. Construct a DTMC sensor node model, represented by the leftmost box for each sensor
node i to get the stationary distribution pi and the probability that data are received in a
time slot ðaiÞ in node i.
2. Solve the network model using queuing network analysis to calculate the average data
transmission rate between any pair of sensor nodes n and m in the network ðln;mÞ as well
as the average throughput for each sensor node.
3. Given ln;m as input to the interference model, compute the value of the probability that
data are transmitted successfully in a time slot in node iðbiÞ.
4. bi is used as input to the sensor node model, iterating through steps 1 to 3. The worst
relative error for two successive estimates of the sensor throughput is used as the stopping
criterion.
PROPERTIES
Packet transfer from source to destination via intermediateforwarders can be treated
as a state diagram of discreteparameter Markov chain with absorbing state. An absorbing
state is a state from which there is zero probability of exiting. An absorbing Markov system is
a Markov system that contains at least one absorbing state, and is such that it is possible to
get from each non absorbing state to some absorbing state in one or more
time steps. Consider p be the probability of successful transmission of a packet to an
intermediate relay node
inside the coverage range. Therefore 1-p will be the probability of unsuccessful transmission
of packet.
For each; node n, the probability to correctly deliver a packet to a node that is Rt links
distant is equal to p. So the probability that the packet is not correctly received by this node
(1 – p), while it is correctly received from theimmediately previous node with a probability p;
so with a probability (1 – p) p the packet will be forwarded by the previous node. If also this
node has not correctly received the packet send by node n, event that occur with a probability
(1- p)2, with a probability (1 –p )2 p the packet will be forwarded by the node previous to
previous. If none of the node in the coverage area of the transmitter receives a correct packet
it is necessary to ask the retransmission of the packet by the source node. It is possible to
describe the process concerning one data packet forwarding from the source node n = 1 to the
destination n = N with a discrete time Markov chain with absorbing state. Packet transmitted
by a node will be further forwarded by a node in the coverage range of the transmitter which
is furthest node from the source and has correctly received the packet.
1. A sink broadcasts its interest across the network in query messages with a special query
Semantic at a low rate.
2. All the nodes cache the interest. When a node senses that an event matches the interest, it
Sends the data relevant to the event to all the interested nodes. Sink will also get the initial
data and ‘‘reinforce’’ one of source nodes by resending the interest at a higher rate.
3. After the reinforcement propagation, the source nodes send data directly on the reinforced
path.
The performance of a routing protocol can be expressed through such measures as
computational overhead, communications overhead, path reliability, path length, convergence
rate, and stability.