Wireless sensor networks and routing

Wireless Technologies · · wireless sensor networks, routing

Contents

This typeset version was assembled by AI from my notes. The scanned PDF is the original source.

5. WSN basics

Topic 5 · Wireless Technologies exam topics

WSN – basic characteristics and features

  • Wireless Sensor Network (WSN)
    • A set of nodes (sensors) distributed in a field and exchanging information.
    • From tens or hundreds to thousands of nodes in the network.
    • Deployed in structured or unstructured manner.
    • Wide range of traffic patterns depending on application.
    • Typically powered by batteries or using energy harvesting.
    • Ability to cope with node failures.
  • Each node (sensor) can act as
    • Source: generates data to be sent.
    • Sink: receives data generated by Source.
    • Relay of data: i.e. in between source and sink.
  • Key characteristics of nodes (sensors)
    • Low cost.
    • Low energy consumption (battery life-time)
      • a) Limited computing and processing capabilities.
      • b) Limited communication range.

Visually:

Sensor nodes scattered in a sensor field; data hops from node A through B, C, D and E to a sink outside the field

Source: wsn-field.tex

6. Routing in WSN

Topic 6 · Wireless Technologies exam topics

Routing in WSN – process (discovery, selection, maintenance), basic principle of routing, metrics for route selection

Basic principles of routing

General types of routing protocols for computer networks:

  • Distance Vector (DV)
    • a) Keep routing tables (destination, next hop, hop count)
    • b) Selects shortest path hops
      • Very simple, but disregards the health of communication channels.
  • Link State (LS)
    • a) Routing table with route metric
    • b) Consider the health of communication channels/links between nodes.
      • High overhead for route management.

Challenges and issues for WSN routing:

  • a) Dynamic time varying wireless channel and topology (movement, fading …)
  • b) Asymmetric wireless channels (multipath propagation, interference …)
  • c) Limited resources for route management (signaling)
  • d) Energy constraint for nodes

In short, DV and LS in these basic forms is probably not the best for use in WSN.

Weighted graph. DV (green) takes the shortest path, two hops of cost 3 and 5. LS (orange) takes the least-cost path, four hops of cost 1, 2, 1, 1

Source: dv-ls.tex

The routing process

  • Route Discovery
    • Find possible (suitable) routes between Source and Sink nodes.
      • a) Including cost of routes.
  • Route Selection
    • Select the most suitable route among all routes found during discovery.
      • a) Depends on routing metric and complexity.
  • Route Maintenance
    • Keep information about route status up-to-date.
      • a) Mobility, interference, battery status, new node, …

Route discovery

  • We need to discover possible routes between Source and Sink.
    • Either all routes are discovered or only the ones fulfilling certain requirements (e.g. max number hops, latency, etc.)
  • Procedure
    • Source node sends route request packet to its neighbors.
      • a) Well, the Source node is going to have some number of neighbors.
    • Next, the neighboring nodes will also forward the route request packet to their own neighbors.
      • a) We repeat this until the route request packet reaches the sink node.
      • b) Specifically, which node will forward and how it is forwarded depends on the actual protocol used.
      • c) During this process, route metrics are recorded (again, depends on the specific protocol used). These recorded metrics are then used for best route selection. (“best” depends on what our priorities are).
    • Route response is sent back from Sink to Source
      • a) Same route as it came from Source to Sink.

Below, you can see route discovery visually. You can see that the route packet response (red) comes back the same way it went to the sink.

Lecture slide: source A, sink Z, relays B to G. Blue route-request arrows spread from A towards Z along every link; red route-response arrows run back the opposite way. The C–B link has a request arrow in both directions

Redrawn from a lecture slide in my notes. Source: route-discovery.tex

Route selection

  • Now that metrics of routes have been obtained during the discovery step, we go ahead and select (the best/the most suitable) route.
  • A particular route rr will be selected if its metric mim_i is:
    • Minimum (e.g. energy consumption):   r=min⁡i{mi}\;r = \min\limits_i \{m_i\}

      Why? Because these small devices need to operate for years and if long term operation of the network is our priority, we can always select least energy-demanding routes.

    • Maximum (e.g. throughput):   r=max⁡i{mi}\;r = \max\limits_i \{m_i\}

      Why? Maybe energy is of lesser importance than throughput. For example, if the devices harvest energy, maybe one can afford to prioritize throughput instead of energy consumption.

    • OR, we could make trade-offs.

      • For example, maximize throughput while energy consumption is below a certain threshold;
      • Or, minimize energy consumption while certain throughput is ensured.

Metrics for route selection

So, what metrics can there be?

  • Number of hops (until sink is reached)
  • Energy consumption (efficiency)
    • a) Energy consumed for communication
  • Network life-time
    • a) Time before the first node dies (depletes energy); So, avoid nodes which have low battery level to ensure that the majority of the nodes are at relatively similar battery level.
  • Delay
    • a) Time required to deliver information from Source to Sink.
  • Packet delivery success rate (i.e. reliability)
    • a) Computed as packets delivered successfully (from Source to Sink)all packets sent\dfrac{\text{packets delivered successfully (from Source to Sink)}}{\text{all packets sent}}

      Note: this is computed in a moving time window.

  • Route stability
    • a) Fluctuation of route selection metric (e.g. channel quality, node energy, etc).
  • Management cost (overhead of obtaining metrics for example)
    • a) Amount of redundant steps that need to be taken before packets can be delivered (route discovery …)
  • Throughput/data rate/capacity/…
    • a) Amount of information (bits, packets) delivered over a period of time.
  • And many others… Or, combination of these.

Route maintenance

In general, one must pay attention to mobility of nodes, dynamic channel, battery depletion, handling new nodes in the network. Also, we must consider:

  • Varying availability of routes
    • a) Acknowledging packets (symmetrical channel)
  • Varying route quality
    • a) Acknowledging packets (known tx power)
    • b) Report quality of channels among neighbors
  • Need for awareness of route status if communication is in progress.

Route maintenance provides monitoring of route parameters

  • Keep information about all available routes up-to-date.
  • Allow dynamic selection of the most suitable path each time.

So, we end up making a trade-off between overhead and freshness of route status.

7. Routing protocols for WSN

Topic 7 · Wireless Technologies exam topics

Principle of routing protocols for WSN – Flooding and its improvements, Gossiping, Expanding Ring Search (incl. Blocking, Two-side), Low-energy adaptive clustering hierarchy

Classification of WSN routing protocols

When is the protocol at work?

  • Proactive (table driven)
    • a) Routing table is kept up-to-date even if no communication is requested.
      • Update at certain interval or event driven (change of topology, channel, energy).
      • Route is ready whenever needed
      • Big overhead to keep tables up-to-date →\rightarrow energy cost.
  • Reactive (on-demand, source initiated)
    • a) Route is found, when it is needed.
      • Delay and overhead due to route discovery & selection.
      • No overhead if no communication is in progress (sleeping)
  • Hybrid (combination of the two)

What are the topologies of the network?

  • Flat
    • a) All nodes are of equal importance and type of operation (homogeneous)
  • Hierarchical
    • a) Cluster head/Gateway collects information from sources.
  • Location-based
    • a) Location of nodes is known.

Flooding

Received message is forwarded by all nodes

  • No need for maintenance of any tables, topology or route info.
  • Messages received multiple times by nodes →\rightarrow huge overhead

Visual example:

Lecture slide: the source (checkered) reaches every node in its communication range; each of them forwards again, so nodes in the overlap and beyond receive the same message several times

Redrawn from a lecture slide in my notes. Source: flooding.tex

(Actually, I don’t like this example.) Here’s a better example:

Example (each user has 2 neighbors)

  • 1st Tx: source sends msg to both neighbors – 2 msgs received by 2 new recipients
  • 2nd Tx: both recipients send msg – 4 msgs received by 3 recipients, 2 new
  • 3rd Tx: three recipients send msg – 6 msgs received by 4 recipients, 2 new
  • 4th Tx: four recipients send msg – 8 msgs received by 5 recipients, 2 new
  • 5th Tx: five recipients send msg – 10 msgs received by 6 recipients, 2 new
  • Sum: 15 messages (1+2+3+4+5) transmitted and 30 messages (2+4+6+8+10) received to reach 10 neighboring nodes
Lecture slide: a line of 11 nodes; the middle node transmits first (black arrows) to its two neighbours, then each transmission round, shown in green, orange, purple and pink, is repeated by every node that has the message

Redrawn from a lecture slide in my notes. Source: flooding-chain.tex

So many messages got transmitted to reach just 10 neighboring nodes. A lot of energy wasted.

Simple improvements of flooding

Improvements (for wireless)

  • Single message repetition only
    • a) Do not forward the same message again
      • i.e. if this device already sent this message before don’t send it again!
  • Reception from multiple directions
    • a) Same message received from multiple directions →\rightarrow Don’t forward!
      • All neighbors most likely covered
      • Need for knowledge of locations of nodes or coordination among nodes.
  • Close nodes
    • a) Two nodes close to each other →\rightarrow similar coverage →\rightarrow similar set of neighbors.
    • b) Do not forward message by receiver if source (or transmitter) is close.
      • Determine close nodes based on location information or received signal strength/level.

Gossiping

Basically, improved flooding

  • message not forwarded by all neighbors.

Gossip1(pp)

  • Source sends message with probability p=1p = 1.
  • Node who receives the message
    • Forwards it with probability pp (if p=1→p = 1 \rightarrow flooding)
    • Discards it with probability 1−p1-p →\rightarrow so we are saving energy.
  • If node receives the same message again, it is discarded (i.e. p=0p = 0).
  • Problem
    • If only few neighbors around source – message might not be forwarded at all.

Visually:

Lecture slide: the source reaches seven neighbours; each of them forwards with probability p, shown with a tick (forwards) or a cross (does not)

Redrawn from a lecture slide in my notes. Source: gossip.tex

Gossip1(pp, kk)

  • Hops i=1…ki = 1 \dots k: pi=1p_i = 1
    • e.g. gossip(pp, 4) means that first 4 hops are sent with probability p=1p = 1, i.e., will be certainly sent.
  • Hops i>ki > k: pi=pp_i = p
    • after those 4 hops, all following hops will happen with probability pi=pp_i = p (usually less than 1).
  • How do we set pp, kk parameters?
    • Here’s some simulation results: GOSSIP1(0.72, 4), GOSSIP1(0.65, 4) and GOSSIP1(0.60, 4), fraction of nodes reached versus hop distance to source.

You can see that first 4 send for certain and then it keeps going down according to the used pp value.

More Gossip variants:

GOSSIP2(pp, kk, p2p_2, nn) – new parameters nn and p2p_2

  • Less than nn neighbors →\rightarrow all neighbors gossip with probability p2p_2, p2>pp_2 > p
  • Problem – messages are still dying out
    • p×np \times n messages should be received back →\rightarrow if not, messages are dying

GOSSIP3(pp, kk, mm)

  • Do not broadcast message immediately
  • Wait for a certain interval and broadcast to all only if less than mm copies are received

Parameters when Gossip1, Gossip2 and Gossip3 exhibit similar results: GOSSIP1(0.75, 4), GOSSIP2(0.6, 4, 1, 6), GOSSIP3(0.65, 4, 1) (simulation plots on page 12 of the scan).

  • Time-To-Live (TTL)
    • Defines how many times the message can be forwarded, then discarded
  • Initial transmission of message with TTL = 1
  • TTL increased every time destination is not reached
    • Wait for Route response before increase (2×Hr2 \times H_r, HrH_r is the number of hops)
    • Delay   TTTL_ERS=2∑i=1Hri\;T_\mathrm{TTL\_ERS} = 2\displaystyle\sum_{i=1}^{H_r} i, i\quad i … ring (hop index), i=1…Hri = 1 \dots H_r
    • TTL increased typically by one or two
  • Works well for small networks only
    • Source and Sink are far from each other →\rightarrow too many transmissions
      • Energy cost
Lecture slide: with TTL = 1 the request from A reaches only E, C and B in the first ring; with TTL = 2 it also reaches H, F, G and D in the second ring

Redrawn from a lecture slide in my notes (after I. Pu, 2009). Source: ers.tex

Blocking ERS

Based on common ERS, but…

  • Message not retransmitted by Source, retransmission done by node(s) in N-th hop
  • How to identify if nodes should retransmit the message?
    • If route is found Source sends Stop instruction to stop flooding
    • Waiting period to see if a route was found or not
      • 2 × hop number (TTL)
      • →\rightarrow slightly increased packet delay (request transmission)
Lecture slide: the source broadcasts once to the first ring; the second broadcast comes from intermediate node M in the first ring, the third from N in the second ring, until the route node in the third ring is reached

Redrawn from a lecture slide in my notes (after Park, Kim, Pu, WOSN 2006). The slide also compares time delay and energy consumption against distance: blocking ERS has about the same delay as TTL-sequence-based ERS but much lower energy, see page 13 of the scan. Source: blocking-ers.tex

Two-sides ERS

  • ERS conducted by Source and Sink nodes
  • Objective
    • Find an intermediate node with sub-path to sink and source
  • Number of nodes involved in forwarding is lower than for one-side ERS

(The slide shows the two search trees growing from both ends until they meet, and the number of transmitting nodes for ERS by node 1, ERS by node 2 and two-sided ERS; Shamoun, Sarne, COMSNETS 2014.)

Low-Energy Adaptive Clustering Hierarchy (LEACH)

  • Network lifetime is improved considerably

  • It is a cluster-based protocol

    • Nodes communicate with the “Cluster Head” (CH)
    • CH role rotates among nodes
      • Energy consumption is balanced among nodes
      • It is a distributed algorithm
  • CH selection process and clustering (basically, procedure)

    • Define percentage of nodes needed to be CHs – PP
    • Each node indicates its willingness to be a CH.
      • a) Threshold: T(n)={P1−P⋅(r mod 1P),if n∈G0,otherwiseT(n) = \begin{cases} \dfrac{P}{1 - P\cdot\left(r \bmod \frac{1}{P}\right)}, & \text{if } n \in G \\[2ex] 0, & \text{otherwise} \end{cases}
      • b) Nodes randomly choose a number between 0 and 1 (rand); if rand <T(n)< T(n) →\rightarrow node nn becomes CH
      • c) Definitions:
        • PP = targeted percentage of CHs.
        • GG = nodes that have not been CH within 1/P1/P rounds.
        • rr = round number (starting with 0)
    • Next, all CHs distribute advertisement message (using CSMA)
      • a) All transmit with the same power
    • Non-CH nodes choose the CH they want to be assigned to
      • a) According to received power from CHs
      • b) Inform CH about membership in the cluster (CSMA)
    • Communication within cluster using TDMA (+ CDMA)
  • LEACH extending system lifetime: number of sensors still alive versus time (rounds) for direct transmission, MTE routing, static clustering and LEACH with 0.5 J/node. With the others all nodes are dead by about 400 rounds; with LEACH the first node dies near 950 rounds and the last near 1300.

  • Illustration of clusters: dynamic clusters at time t1t_1 and at t1+dt_1 + d; all nodes marked with a given symbol belong to the same cluster, cluster heads are marked with a dot.

  • Don’t sweat these 2 figures. Just to help us enhance understanding.

© 2026 Giorgi Aptsiauri. All rights reserved. Do not copy or republish this text or its figures without permission. Online version: https://giorgiaptsiauri.com/notes/wireless-technologies/02-wireless-sensor-networks/