Chapter One
What a Wireless Sensor Network Is
Syllabus topic Module 1, "Introduction and Overview of WSNs"
In one line
A wireless sensor network is a large number of small, battery-powered devices that measure something about the physical world and pass their readings to one collection point by radio, usually hopping through each other on the way.
In the wording a student can write in an examination: a wireless sensor network (WSN) is a network of a large number of sensor nodes, each combining a sensing unit, a processing unit, a radio transceiver and a power source in one small low-cost device, densely deployed inside or very close to the phenomenon being observed. The nodes organise themselves, cooperate by processing data locally, and deliver it over a multi-hop, infrastructureless wireless network to a sink (base station), from which it reaches the task manager and the user over the Internet or a satellite link.
The survey that gave the subject its standard vocabulary puts the central idea in one phrase: the nodes are "densely deployed either inside the phenomenon or very close to it". Everything else in this book follows from taking that phrase seriously.
Why such a network exists at all
Suppose you need to know the soil moisture of a vineyard, the temperature inside two hundred grain silos, or whether a bridge is vibrating more than it did last year. There were always three ways to do it, and all three are bad at scale.
Send a person. Somebody walks the field with an instrument and a notebook. It is cheap for one reading and hopeless for a reading every fifteen minutes at forty places, day and night, for a season.
Wire the sensors. Industrial plants do this, and it works, but every sensor needs a cable for power and a cable for data, and the cabling costs more than the sensor. A cable cannot be run through a forest, across a glacier or into a bird's burrow.
Put one expensive sensor far away and look at the whole scene. A weather station at the edge of the farm, or a camera on a tower. It sees the average and misses the detail, and the detail (the dry corner, the one hot silo) is usually what matters.
A wireless sensor network is the fourth way: many cheap sensors, placed right where the phenomenon is, each with its own battery and radio, so nothing has to be wired and nobody has to visit. The survey lists the property that makes this possible: the position of the nodes "need not be engineered or predetermined", so they can be scattered in terrain nobody can reach, and the network sorts itself out afterwards.
The four things every node does
A sensor node is a small computer with four jobs, and the next several chapters take them one at a time.
What a Wireless Sensor Network Is
- It senses. A sensor turns a physical quantity (temperature, moisture, light, vibration, sound) into an electrical signal, which is converted into a number.
- It processes. A microcontroller, a very small and very frugal processor, decides what to do with the number: store it, compare it with a threshold, combine it with others, or send it.
- It communicates. A low-power radio sends the result to a neighbouring node, and also receives and forwards other nodes' packets. A packet is one small parcel of data sent over the network in one go.
- It survives on its own energy. Almost always a pair of batteries, sometimes helped by a small solar cell. Nobody is expected to change them for months.
By 2000 a Berkeley group could already build such a node from shop-bought parts, "on the scale of a square inch in size and a fraction of a watt in power", and wrote a whole operating system for it, TinyOS, which the chapter [TinyOS: Components, Tasks and the Scheduler] takes apart.
The picture: the sensor field, the sink and the way out
Figure 1.1 A wireless sensor network: nodes in the sensor field, a multi-hop path to the sink, and the way out to the user
Read the figure from the event outwards, because that is the direction the data goes.
- The sensor field is the area being watched: the vineyard, the forest, the factory floor. The small circles are sensor nodes scattered over it.
- An event happens near node A: the soil there has dried out. Node A senses it.
- A cannot reach the sink directly, because a low-power radio reaches tens of metres, not the whole field. So A sends its reading to its neighbour B, B to C, and so on through D and E to the sink. Each of those steps is a hop, and the whole route is a multi-hop path. Every node is both a source of its own data and a router for other nodes' data.
- The sink, also called the base station, is the collection point. It is usually better equipped: mains power or a big battery, more memory, and a second way out.
- The sink reaches the task manager node over the Internet or a satellite link. The task manager is where the network is told what to do (what to measure, how often, what to report) and where the results arrive.
- The user is the person or program that actually wants the answer: the farmer, the biologist, the control room.
Notice that there are no routers, cables or towers inside the field. That is what "infrastructureless" means: the nodes themselves are the network. The only infrastructure is at the edge, at the sink and beyond it.
What a Wireless Sensor Network Is
How a WSN differs from the networks you already know
A student who has studied the Internet brings expectations that are wrong here, and each wrong expectation costs marks. Six differences, each with the reason.
- Energy, not bandwidth, is the scarce resource. A laptop's network card is designed for speed. A sensor node's radio is designed to last a year on two AA cells, and it does so by being switched off almost all the time. Every protocol in this book is judged first on the energy it costs.
- The network exists for data, not for conversations between named machines. On the Internet you ask a particular address for something. In a WSN the user asks a question about the world (which part of the field is below 20 per cent moisture?) and does not care which node answers. This is called data-centric operation, and the chapter [Design Principles: Data Centricity, Location, Activity and Heterogeneity] develops it.
- The traffic flows mostly one way, towards the sink. Many sources, one destination. The technical name for this many-to-one pattern is convergecast. An Internet router expects traffic between any pair of hosts; a sensor network is shaped like a funnel.
- The nodes cooperate and compute inside the network. Rather than send every raw reading to the sink, nodes can combine readings on the way (the average of ten neighbours sent once instead of ten readings sent ten times). The survey calls this the "cooperative effort of sensor nodes": they "transmit only the required and partially processed data".
- Nodes are many, cheap, unattended and expected to fail. A deployment may have hundreds or thousands of nodes. Some will die, be eaten, be washed away or run flat, and the network is expected to carry on. Designing for failure is normal here, not an afterthought.
- Every network is built for one application. The Internet carries everything for everybody. A WSN is designed, often down to its radio schedule, for the one job it was deployed to do. That is why there are dozens of WSN protocols: each suits a different kind of task.
Where the idea came from
Dargie and Poellabauer, the first reference book on MU's list, trace the history, and it is worth knowing in outline.
- Military research first. In 1978 the United States Defense Advanced Research Projects Agency (DARPA) organised a Distributed Sensor Nets Workshop, on networking, signal processing and distributed algorithms for sensors. DARPA then ran a Distributed Sensor Networks (DSN) programme in the early 1980s, followed by the Sensor Information Technology (SensIT) programme.
- Putting a whole node on a chip. The University of California at Los Angeles, with the Rockwell Science Center, proposed Wireless Integrated Network Sensors (WINS); one result, in 1996, was a single CMOS chip carrying sensors, interface circuits, signal processing, a radio and a microcontroller.
- Smaller still. Berkeley's Smart Dust project set out to show that a complete sensor system could be built into a device perhaps the size of a grain of sand. Berkeley's PicoRadio project and MIT's microAMPS project worked on nodes frugal enough to be powered by their surroundings.
- Commercial motes. From the Berkeley work came the motes and TinyOS, and companies selling ready-made nodes.
What a Wireless Sensor Network Is
A real one: Great Duck Island, 2002
The deployment that showed the idea working outside a laboratory was on Great Duck Island, off the coast of Maine in the United States. Biologists wanted to study a seabird, Leach's Storm Petrel, which nests in underground burrows and is likely to abandon a burrow if it is disturbed. People walking about the colony were the problem the study was trying to avoid.
In July 2002 a team from Intel Research, the University of California at Berkeley and the College of the Atlantic deployed thirty-two motes, nine of them inside burrows, measuring temperature, relative humidity, barometric pressure, light and infrared (which shows whether a warm bird is at home). Readings went from the motes to a gateway beside the patch, across a longer radio link to a base station with a database and a wide-area connection, and from there to researchers over the Internet. The design goal was a network that runs for nine months on non-rechargeable batteries, so that nobody needed to visit during the breeding season.
Every element of the figure above is there: the sensor field (the colony), the nodes (the motes), the sink and gateway (the island's base station), the way out (the Internet), and the user (the biologists). And the reason for using a WSN at all is exactly the one this chapter gave: the measurement had to be taken where the phenomenon was, without people.
Worked example: a vineyard near Nashik
A grape grower near Nashik wants to irrigate only when the soil needs it. The farm's engineer, Meera, plans a WSN.
The task. Measure soil moisture and temperature at 40 points across the vineyard every 15 minutes, and tell the pump controller when any zone falls below the moisture threshold.
Step 1: what each node produces. A reading every 15 minutes is
24 × 60 / 15 = 96
readings per node per day, so the whole network produces 40 × 96 = 3,840 readings a day.
Step 2: how much data that is. Each reading, with the node's identity and a timestamp, fits in 12 bytes, so the day's data is 3,840 × 12 = 46,080 bytes, about 45 kilobytes. That is less than one photograph on a phone. Bandwidth is not the problem, and it never will be here. The problem is doing this for a season without anyone changing batteries.
What a Wireless Sensor Network Is
Step 3: how the data travels. The farthest row of vines is 600 metres from the pump house, where the sink sits with mains power. The node radios reliably reach about 100 metres through the vines, so a reading from the far end needs at least 600 / 100 = 6 hops. Each node therefore forwards its neighbours' readings as well as sending its own, and the nodes nearest the pump house carry the most traffic.
Step 4: what the sink does. It collects the readings, notices that zone 7 has dropped below the threshold, and sends one message to the pump controller and one to the task manager, a small server in Nashik that the grower checks on his phone.
Step 5: what is already visible. The nodes near the sink will run out of energy first, because every other node's data passes through them. Meera will have to deal with that, and the chapters [Single Hop or Multiple Hops: The Energy Argument Worked Out] and [Energy-aware Routing] show how.
That is a whole WSN, in miniature, and it already contains the three ideas the rest of the module is about: the node's energy, the multi-hop network, and the sink as the bridge to the outside world.
Distinctions
| Wireless sensor network | The Internet | A wired sensor system | |
|---|---|---|---|
| Main purpose | Deliver readings about the physical world | Carry any traffic between any machines | Deliver readings from fixed points |
| Scarcest resource | Energy in each node | Bandwidth and latency | Cabling and installation cost |
| Addressing | Data-centric: ask about the data | Address-centric: ask a named host | Each sensor on its own wire |
| Traffic pattern | Many sources to one sink (convergecast) | Any to any | Every sensor to the controller |
| Infrastructure | None inside the field | Routers, links, servers | Cables and junction boxes |
| Failure of a unit | Expected, the network carries on | Handled by rerouting | That point goes dark |
| Built for | One application | Every application | One installation |
What it does not mean
A WSN is not Wi-Fi with a thermometer on it. Wi-Fi is built for tens of megabits per second and a power supply. Sensor node radios are built for a few hundred kilobits per second at most and years on batteries, and they are asleep nearly all the time. The chapter [The Wireless Technologies a Sensor Network Can Use] compares the real options.
"Wireless" does not mean every node talks to the sink. Most nodes cannot reach it. Multi-hop forwarding through neighbours is the normal case, and it is why a node spends as much energy on other nodes' data as on its own.
What a Wireless Sensor Network Is
The sink is not the user. The sink is a machine at the edge of the field. The user is a person or program somewhere else, reached through the task manager.
"No infrastructure" is about the field, not the whole system. The sink, the gateway, the Internet and the task manager are all infrastructure. What a WSN does without is infrastructure among the nodes.
A WSN is not the same thing as the Internet of Things. The Internet of Things is any device on the Internet, from a smart television to a car. A WSN is one particular kind of network of sensing devices, which may or may not be joined to the Internet. The chapter [Sensor Networks in the Internet of Things: 6LoWPAN, RPL and CoAP] shows how the two meet.
Quick revision
- WSN: many small battery-powered sensor nodes, densely deployed inside or near the phenomenon, which sense, process and send data over a multi-hop, infrastructureless radio network to a sink.
- A node has four jobs: sense, process, communicate, survive on its own energy.
- The path: sensor field, nodes, multi-hop route, sink (base station), Internet or satellite, task manager node, user.
- Nodes need not be placed by design, so the network must self-organise.
- Six differences from the Internet: energy is scarce; data-centric; convergecast to one sink; nodes compute and cooperate; nodes are many, cheap and fail; one network per application.
- History (Dargie and Poellabauer): DARPA workshop 1978, DSN programme early 1980s, then SensIT; UCLA WINS; Berkeley Smart Dust and motes.
- First real deployment usually cited: Great Duck Island, July 2002, 32 motes, 9 in burrows, designed to run 9 months on batteries.
- Vineyard: 96 readings a node a day, 3,840 in all, 46,080 bytes: bandwidth is not the problem, energy is.
Test yourself
1. Define a wireless sensor network. A WSN is a network of a large number of low-cost, low-power sensor nodes, each with sensing, processing, radio and power units, densely deployed inside or close to a phenomenon. The nodes self-organise, process data locally and send it over a multi-hop, infrastructureless wireless network to a sink, which passes it through the Internet or a satellite link to a task manager and the user.
2. Draw and explain the elements of the network from an event to the user. The figure: sensor nodes in the sensor field; a node near the event senses it; the reading hops node to node to the sink; the sink sends it over the Internet or satellite to the task manager node; the user reads it there. Each intermediate node acts as a router.
What a Wireless Sensor Network Is
3. Why do WSN nodes use multi-hop forwarding instead of sending straight to the sink? Because their radios are low-power and reach only tens of metres, far less than the size of the field. Sending a long distance directly would also cost far more energy than several short hops in most cases, which is examined in [Single Hop or Multiple Hops: The Energy Argument Worked Out].
4. State four ways a WSN differs from the Internet. Energy rather than bandwidth is the scarce resource; operation is data-centric rather than address-centric; traffic converges on one sink rather than flowing between any pair of hosts; and nodes cooperate and process data inside the network. Also: nodes are many, cheap and expected to fail, and each network is built for one application.
5. In the vineyard, 40 nodes each report every 15 minutes with 12-byte readings. How much data does the network produce a day, and what does that tell you? 96 readings a node a day, 3,840 readings, 46,080 bytes, about 45 kilobytes. It tells you that the design problem is energy and lifetime, not data rate.
6. What did the Great Duck Island deployment show? That a WSN could monitor a phenomenon (a seabird colony) where people's presence would itself disturb it: 32 motes, nine in burrows, deployed in July 2002, sending data through an island gateway to researchers over the Internet, designed to run nine months on batteries.