Flooding, hierarchical and power-aware routing
Practical notes on simple flooding, controlled flooding and gossiping; hierarchical (clustering) routing such as LEACH; and power-aware routing ideas and energy models for wireless sensor networks.
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
Flooding, hierarchical and power-aware routing are central to getting data from sensors to a sink while using very little battery energy. An engineer uses these methods when designing a sensor deployment: flooding for simple broadcast or route discovery, clustering to scale and balance load, and power-aware routing to extend network lifetime.
Key ideas
Flooding: a simple broadcast protocol where each node that receives a new packet forwards it to all neighbours immediately. Assumptions: nodes can identify duplicate packets (by packet ID) and neighbourhood is defined by radio range. To draw: sketch nodes with one source at left, arrows from source to all neighbours, then arrows from neighbours to their neighbours; label duplicate receptions and collision points.
Problems caused by flooding: implosion (multiple copies delivered to same node), overlap (sensors with overlapping sensing areas send the same data), and resource blindness (no energy consideration). These follow directly from the forwarding rule: if every node blindly retransmits, number of transmissions grows exponentially with hop count.
Controlled flooding techniques reduce these problems:
- Sequence-number based suppression: each packet carries a sequence number; nodes forward only the first copy and drop duplicates. This reduces implosion (fewer redundant forwards) but does not prevent duplicate receptions or collisions caused by simultaneous forward.
- Time-to-live (TTL): packets include hop-count limit; nodes decrement and stop forwarding at 0 — draw a packet with TTL field and show how it limits reach.
- Probabilistic flooding (gossiping): on first reception, forward with probability p. This reduces transmissions; expected number forwarded per hop = p·(number of recipients).
Hierarchical (clustering) routing
- Clustering: partition nodes into groups (clusters). Each cluster has a cluster head (CH) that collects data from members, aggregates it, and forwards to sink. Assumptions: CHs can do extra computation and transmission; clusters may be spatially local.
- Benefits: reduces total number of long-range transmissions and allows in-cluster data aggregation, lowering redundant traffic.
- LEACH (Low-Energy Adaptive Clustering Hierarchy): a distributed, randomized clustering protocol where nodes elect themselves as CHs probabilistically and rotate the CH role to balance energy. Core elements to state exactly (university exam style): each node chooses a random number between 0 and 1; if the number is less than a threshold T(n) it becomes CH for the current round. The threshold is
- Nodes belong to set G if they have not been CHs in the last 1/p rounds (assumes 1/p is an integer epoch length).
T(n) = p / (1 - p * (r mod (1/p)))if n is in G; otherwiseT(n) = 0.- Here p is desired fraction of CHs per round, and r is current round number. Draw: a cluster with several member nodes and one CH, arrows from members to CH (short range) and CH to sink (longer range). LEACH operates in setup and steady-state phases: CHs advertise, nodes join the nearest CH, CHs create and distribute a TDMA schedule to members, and in steady-state members transmit in assigned slots while CHs aggregate and forward to the sink; CH roles rotate each round.
- You should be able to derive that using this threshold gives on average p·N CHs per round (where N is number of nodes), because each node in G has probability T(n) and the cycling of G ensures fairness.
Power-aware routing
- Energy model (first-order radio model): energy to transmit and receive depends on number of bits k and distance d. Typical model has electronic energy per bit and amplifier energy that depends on distance power-law. State the equations (below in Formulas). Assumptions: nodes have isotropic antennas, path-loss exponent n is 2 for free-space and 4 for multi-path; no MAC retransmissions considered.
- Power-aware metric: when choosing routes, use link cost that reflects energy needed for successful delivery and residual energy. Examples:
- Minimum total transmit energy path (sum of per-hop transmit energies) — may quickly deplete nodes on that path.
- Max-min residual energy path: choose route that maximizes minimum node residual energy along route — better for lifetime but may be longer.
- Energy-aware Dijkstra: run Dijkstra with edge weights equal to expected energy to transmit a packet on that link; can include receive cost and retransmissions.
- Trade-offs: shortest-energy path minimizes immediate cost but can create hotspots; load-balanced routing extends time until first node dies.
Assumptions usually required in exam derivations:
- Nodes are static (no mobility), have identical initial energy unless stated, and know their residual energy when required by the protocol.
- Radio model follows free-space or multipath loss with additive costs separated into per-bit electronics and distance-dependent amplifier.
Formulas
E_tx(k,d) = E_elec * k + ε_amp * k * d^n — E_elec is energy per bit for transmitter/receiver electronics (J/bit), ε_amp is amplifier energy coefficient (J/bit/m^n), d is distance (m), n is path-loss exponent (unitless). Applies for a single transmission of k bits over distance d.
Common two-slope variant: E_tx(k,d) = E_elec*k + ε_fs*k*d^2 if d < d0, else E_tx(k,d) = E_elec*k + ε_mp*k*d^4, with threshold d0 = sqrt(ε_fs/ε_mp); ε_fs in J/bit/m^2 and ε_mp in J/bit/m^4.
E_rx(k) = E_elec * k — energy to receive k bits; E_elec same as above (J/bit). Assumes no extra decoding cost.
Total energy for hop = E_tx(k,d) + E_rx(k) — energy consumed by sender and receiver for one hop (J).
Expected forwards in probabilistic flooding ≈ p * N_neigh — p is forwarding probability (0..1), N_neigh is number of neighbours; unitless expected count. Holds for first reception when all neighbours see packet.
LEACH threshold T(n) = p / (1 - p * (r mod (1/p))) (if node n ∈ G; otherwise 0) — p is desired fraction of CHs per round, r is current round number, G is set of nodes not CH in last 1/p rounds. Unitless probability. Applies in LEACH.
Energy per round in multi-hop routing ≈ Σ_over_hops (E_tx(k,d_hop) + E_rx(k)) — sum over hops of the hop energy; units J per packet per round.
(Definitions repeated as needed: J = joule, m = metre, bit = information bit.)
Worked examples
Energy to send a sensed packet to sink in single-hop vs two-hop comparison
- Given: k = 2000 bits, d_total = 100 m, split into two equal hops of 50 m each. Use E_elec = 50e-9 J/bit, ε_fs = 10e-12 J/bit/m^2 for free-space (n=2). (Check these constants in verify.)
- Formula: for one-hop
E_one = E_tx(k,d_total) + E_rx(k)if sink is receiving. UsingE_tx = E_elec*k + ε_fs*k*d^2andE_rx = E_elec*k. - Calculation one-hop:
E_tx = 50e-9 * 2000 + 10e-12 * 2000 * 100^2=1.0e-4 + 10e-12 * 2000 * 10000=1.0e-4 + 10e-12 * 20,000,000=1.0e-4 + 2.0e-4=0.000300J.E_rx = 50e-9 * 2000 = 1.0e-4J.E_one = 0.000300 + 0.000100 = 0.000400J. Final: 0.0004 J. - Calculation two-hop (each hop d=50 m): per hop
E_tx = 50e-9*2000 + 10e-12*2000*50^2=0.000100 + 10e-12*2000*2500=0.000100 + 0.000050=0.000150J.E_rx = 0.000100J. Total for two hops = 2*(E_tx+E_rx for each hop) but note middle node both receives and transmits (so counted twice): simpler to sum sender and both receivers: first sender transmits (E_tx), first receiver (middle) receives (E_rx) and then transmits (E_tx), sink receives (E_rx). So total = 2E_tx + 2E_rx = 20.000150 + 20.000100 = 0.000300 + 0.000200 = 0.000500 J. Final: 0.0005 J. - Conclusion: with these parameters, two-hop consumes more energy (0.0005 J vs 0.0004 J) because extra electronics/receive cost outweighs the reduced amplifier cost; multi-hop is energy-saving only when the distance-dependent term dominates (e.g., larger d or higher path-loss for long links).
LEACH threshold and expected CH count example
- Given N = 100 nodes, desired p = 0.05 (5% CHs), r = 10, assume 1/p = 20 so nodes cycle over 20 rounds. For a node that has not been CH in last 20 rounds, T(n) = p / (1 - p * (r mod (1/p))). Compute r mod 20 = 10, so denominator = (1 - 0.0510) = 1 - 0.5 = 0.5. Thus T(n) = 0.05 / 0.5 = 0.1. Each eligible node has 10% chance this round. Expected CHs = |G| * T(n). In expectation at r mod 20 = 10, |G| = N * (1 - p10) = 100 * 0.5 = 50, so expected CHs = 50 * 0.1 = 5 = p*N.
Probabilistic flooding expected forwards
- Given a node has 8 neighbours and p = 0.4 forwarding probability. Expected forwards = 8 * 0.4 = 3.2 neighbours will forward on average. Use this to estimate total transmissions in a ring of hops.
Common mistakes
- In LEACH, mis-stating the threshold T(n) (missing the modulus or the set G condition). Students often write T(n) = p without the fairness correction.
- Assuming multi-hop always saves energy: when electronics/receive costs dominate or the total distance is small (e.g., d < d0 in the two-slope model), additional hops can be worse even though the amplifier term decreases with more hops.
- For probabilistic flooding, treating expected value as exact number of forwards; remember it is an expectation with variance.
For your exam
Kinds of questions:
- Definitions and short notes: define flooding, gossiping, clustering, LEACH, power-aware routing.
- Derivations: show the energy expression for a multi-hop route and compare single-hop vs multi-hop; derive expected number of forwards in probabilistic flooding; derive average number of CHs per round in LEACH using T(n).
- Numericals: compute energy to send packets for given k, d, and radio constants; compute threshold T(n) for LEACH for given p and round number.
- Algorithm traces: run a round of LEACH on a small 6-node example showing CH election, cluster formation and data aggregation.
- Diagrams: draw a cluster and label CH, members, and sink; draw flooding with duplicate reception points and TTL fields.
Full-marks answer includes: precise definitions (bolded terms), stated assumptions, step-by-step derivation with formulas, units on all numbers, and a short concluding remark comparing alternatives (e.g., when clustering helps and its costs).
Quick check
- What is implosion in flooding? 2) Write the LEACH threshold T(n) expression. 3) Which two energy components are present in the first-order radio model?
Answers: 1) Multiple redundant copies delivered to the same node because every node forwards blindly. 2) T(n) = p / (1 - p * (r mod (1/p))) if node n ∈ G, else 0. 3) Transmitter/receiver electronics energy per bit (E_elec) and distance-dependent amplifier energy (ε_amp·d^n).
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?