Artificial Intelligence & Data Science is coming soon

We're still writing and reviewing the notes for every subject, and we'll open it when every subject is ready. Meanwhile you can practise aptitude, ask Aria about any subject, or see the branches that are ready.

Routing protocol design issues

Routing protocol design issues for wireless sensor networks — energy, scalability, reliability and trade-offs when choosing routing strategies.

Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

Routing in Wireless Sensor Networks (WSNs) decides how sensor data moves from many sensor nodes to one or more sinks (base stations). An engineer uses routing design rules to maximise network lifetime (how long sensors can work), meet reliability and latency needs, and handle limited node energy, processing and communication resources.

Key ideas

Define terms first, simply:

  • Sensor node: a small device with sensors, a radio, CPU and limited battery. It senses data and transmits or forwards packets.
  • Sink: a node (often mains-powered) that collects data from sensor nodes and connects the WSN to the outside world.
  • Hop: a single wireless transmission from one node to a neighbour.
  • Network lifetime: a measure of how long the network performs a required function (common definitions: time until first node dies, time until X% nodes die, or time until connectivity is lost).
  • Link quality: how reliable a wireless link is (packet delivery ratio, RSSI, SNR).

Routing design in WSNs must balance several objectives that often conflict:

  • Energy efficiency: minimize energy per delivered bit because sensor nodes run on batteries.
  • Scalability: protocol should work with hundreds or thousands of nodes without huge overhead.
  • Reliability: deliver data with acceptable packet delivery ratio; tolerate lossy links.
  • Latency: meet application delay bounds when needed (e.g., event alarm).
  • Robustness / fault tolerance: handle node failures, mobility (if any), topology changes.
  • Simplicity: sensor nodes have limited CPU and memory, so algorithms should be simple.

Classes of routing approaches (short, exact definitions):

  • Proactive routing: routing tables are maintained continuously (e.g., table-driven). Up-to-date routes available but control overhead may be high.
  • Reactive routing: routes discovered on demand (e.g., on-demand). Lower control traffic for low traffic loads but route discovery introduces delay.
  • Hierarchical routing: nodes form clusters; cluster-heads aggregate data and forward (reduces transmissions). Example idea: cluster-based energy saving.
  • Data-centric routing: sinks query data by attributes (not node addresses); named-data approach reduces irrelevant traffic.
  • Geographic routing: nodes know locations and forward to neighbour that makes most progress toward destination; stateless and scalable but needs location knowledge.
  • Energy-aware routing: routing metric includes residual battery to balance energy usage across nodes.
  • Multipath routing: maintain multiple disjoint or braided paths to improve reliability/load balancing at the cost of extra overhead.
  • QoS-aware routing: incorporate delay/bandwidth/reliability constraints in the routing metric (e.g., prioritize alarm traffic).

Key trade-offs and derived principles universities ask for:

  1. Multi-hop vs single-hop energy trade-off (derive using radio energy model; see Formulas and Worked examples). State assumptions: identical nodes, symmetric links, simple path-loss model.
  2. Control overhead vs freshness: proactive protocols keep fresh routes but cost control energy; reactive saves energy during idle periods but costs route discovery delay and bursts of control messages.
  3. Aggregation vs latency: in-network aggregation reduces traffic but may add buffering delay and complicate reliability.
  4. Energy hole / hot-spot near the sink: many-to-one convergecast overloads nodes near the sink, depleting them early; design for load balancing (unequal clustering, multi-sink or mobile sink, gradient-based balancing) and duty-cycled cluster-head rotation.

What to draw in an exam when asked for a diagram:

  • Draw a square area; place several small circles labelled N1, N2, ... and one larger square labelled SINK at one corner. Draw arrows showing a multi-hop path from node Ni to SINK. Label distances between hops (d1, d2...). Also draw a cluster with one node marked CH (cluster-head) and arrows from cluster members to CH and CH to sink, to illustrate hierarchical routing.

Formulas

E_tx(k,d) = E_elec · k + ε_amp · k · d^n — energy to transmit k bits over distance d. E_elec in J/bit, ε_amp in J/bit/m^n, n is path-loss exponent. Applies to simple radio energy models.

E_rx(k) = E_elec · k — energy to receive k bits. E_elec in J/bit. Applies when reception cost equals transmitter electronics cost.

E_single = E_tx(k,d) — energy used by a single sensor to send one packet directly to sink at distance d (sink receive cost often ignored if sink is mains-powered).

E_twohop = E_tx(k,d1) + E_rx(k) + E_tx(k,d2) — total energy used by two nodes along a two-hop path, where d1 + d2 = d.

E_total_multi = Σ (E_tx_i + E_rx_i) — sum of transmit and receive costs over all nodes participating in forwarding. Use to compare route options.

When n = 2 and d equally split across m hops: E_multi = (2m-1)·E_elec·k + m·ε_amp·k·(d/m)^2 — approximate total energy among forwarding nodes for m hops (include all transmit and receive where internal nodes both receive and transmit).

Notes: symbols — E_elec (J/bit) energy consumed by radio electronics, ε_amp (J/bit/m^n) amplifier energy factor, k (bits) number of payload bits, d (m) distance, n (dimensionless) path-loss exponent (typically 2–4 depending on environment). These formulas assume ideal medium access (no retransmissions) and symmetric links. Many textbooks use a two-region model: E_tx(k,d) = E_elec·k + ε_fs·k·d^2 for d < d0 and E_tx(k,d) = E_elec·k + ε_mp·k·d^4 for d ≥ d0, with d0 = sqrt(ε_fs/ε_mp); units: ε_fs (J/bit/m^2), ε_mp (J/bit/m^4). Always state which model you assume.

Worked examples

Example 1 — Energy comparison: single-hop vs two-hop (numeric) Given: packet size k = 2000 bits; distance d = 100 m between source and sink; assume E_elec = 50×10^-9 J/bit, ε_amp = 100×10^-12 J/bit/m^2, path-loss exponent n = 2. (I list these constants in verify below.) Step 1 — single-hop energy (sensor transmits once): Formula: E_single = E_elec·k + ε_amp·k·d^2 Compute: E_elec·k = 50e-9 · 2000 = 0.0001 J ε_amp·k·d^2 = 100e-12 · 2000 · (100^2) = 0.002 J So E_single = 0.0001 + 0.002 = 0.0021 J (final)

Step 2 — two-hop energy (assume two equal hops d1 = d2 = 50 m). Total among sensors (source and relay): Formula: E_twohop = E_tx(source,d1) + E_rx(relay) + E_tx(relay,d2) Compute electronics: each transmit or receive uses E_elec·k = 0.0001 J. We have 3 electronics operations → 0.0003 J. Amplifier terms: two transmissions each with distance 50 m: ε_amp·k·(50^2) = 100e-12 ·2000·2500 = 0.0005 J per transmission → 0.001 J total. So E_twohop = 0.0003 + 0.001 = 0.0013 J → two-hop is more energy efficient here.

Comment: this example shows multi-hop can save energy when path-loss is quadratic and hops are shorter. If path-loss exponent n increases, short hops help even more; if amplifier constant or distances differ, result changes. For equal-hop two-hop under n = 2, two-hop uses less total energy when d > sqrt(4·E_elec/ε_amp); with the given constants, d_th ≈ sqrt(4·50e-9 / 100e-12) ≈ sqrt(2000) ≈ 44.7 m.

Example 2 — Greedy geographic routing trace (algorithmic) Setup: Destination (sink) at (100,0). Node S at (10,0) wants to send a packet. Neighbours: A(40,10), B(70,-5), C(55,20). Greedy rule: forward to neighbour whose Euclidean distance to sink is smallest. Step 1: distances of neighbours to sink: dist(A,sink)=sqrt((100-40)^2+(0-10)^2)=sqrt(60^2+10^2)=sqrt(3600+100)=sqrt(3700)=60.83 m. dist(B,sink)=sqrt((100-70)^2+5^2)=sqrt(30^2+25)=sqrt(900+25)=sqrt(925)=30.41 m. dist(C,sink)=sqrt(45^2+20^2)=sqrt(2025+400)=sqrt(2425)=49.24 m. Pick B (closest to sink). Forward S -> B. Step 2: At B, if destination still not reached and B has neighbour closer, repeat. This illustrates the greedy rule.

If no neighbour is closer (local minimum), greedy fails and we need a recovery strategy (face routing, perimeter routing) — important exam point.

Common mistakes

  • Using path-loss exponent n = 2 always: state environment assumptions (free-space n≈2, indoor/nLOS n>2).
  • Mixing MAC-layer retransmissions with routing costs: if link is lossy, routing energy must include expected retransmissions.
  • Not defining network lifetime metric: always say which definition you use (first node death, k% node death, etc.).
  • Using hop-count alone: prefer link-quality-aware metrics (PRR/SNR/ETX) to avoid lossy long hops that waste energy via retransmissions.

For your exam

Types of questions you will see:

  • Definitions and short notes (define proactive/reactive/hierarchical/data-centric/geographic routing). A full answer gives the definition and one advantage and one disadvantage.
  • Derivations (derive when multi-hop saves energy): show energy formulas, list assumptions (radio model, symmetric links), algebra and final inequality or numeric threshold.
  • Numerical problems (compute energy for given k, d, constants): show units, steps, final numeric answer with units.
  • Algorithm trace (show greedy routing, Dijkstra, or cluster formation): give step-by-step forwarding decisions or table updates.
  • Diagrams: draw network with sink, show routing paths, label distances and indicate cluster-heads.

Full-marks answers include: clear definitions in simple words, explicit assumptions, correct formulas with units, step-by-step algebra or numeric calculation, labelled diagram if requested, and a concluding sentence interpreting the result.

Quick check

  1. What is the main trade-off between proactive and reactive routing in WSNs?
  2. Write the formula for energy to transmit k bits a distance d under the simple radio model.
  3. In greedy geographic routing, what recovery is needed when the packet reaches a local minimum? Answers: 1) Proactive keeps up-to-date routes with higher control overhead; reactive reduces overhead but adds route discovery delay. 2) E_tx(k,d) = E_elec·k + ε_amp·k·d^n. 3) A perimeter/face routing or other recovery method to route around the void (local minima).

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?