Data dissemination and gathering
Data dissemination and gathering in WSNs: how sensor data is moved, collected and aggregated to the sink with energy, latency and reliability trade-offs.
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
Two sentences: Sensor nodes have very limited energy, so how you move sensed readings to the sink (collector) determines network lifetime, latency and reliability. Engineers use data dissemination and gathering techniques to minimise energy use, reduce redundant traffic, and meet application needs (e.g., periodic monitoring, event reporting).
Key ideas
- In-network aggregation — combining multiple packets or measurements inside the network (at intermediate nodes) to reduce the number or size of transmissions. If aggregation reduces multiple reports into a single packet, we call it perfect aggregation (idealised). If it only compresses or partially combines, call it partial aggregation.
- Data-centric routing — routing approaches that name data by attribute or type rather than node addresses. Examples: Directed Diffusion, SPIN. Assumes queries or interests are expressed in terms of data (e.g., "temperature in region X").
- Flooding — every node that receives a packet retransmits it once. Use: simple dissemination or route discovery. Problems: duplicates, collisions, implosion.
- Draw: a small 5-node mesh. From one source, draw arrows from source to all neighbors; label duplicate receptions in the middle node.
- Gossiping — variant of flooding where a node forwards to a random neighbour (reduces implosion, increases delay).
- Directed Diffusion (data gathering) — a data-centric protocol where the sink floods an interest (query) and nodes with matching data set up gradients back to the sink; sensors send data along reinforced gradients. Assumptions: data is attribute-based, path setup is dependent on gradients and data rates.
- SPIN (Sensor Protocols for Information via Negotiation) — nodes negotiate data using meta-data (advertise, request, send) to avoid useless flooding. Assumes meta-data small and application tolerant to asynchronous propagation.
- Rumor Routing — compromise between flooding events and queries: events create agent packets that randomly walk and record routes; queries route to agents to find events. Good when events are rare.
- Tree-based gathering (routing tree / collection tree) — build a spanning tree rooted at the sink; each node forwards its reading up the tree. Good for periodic sensing and enables in-network aggregation. Diagram to draw: sink at top, tree edges toward it, show leaf transmissions aggregating as they go. Caveat: nodes near the sink relay more traffic (energy-hole/hotspot problem), so load balancing or multiple sinks may be needed.
- Cluster-based gathering (e.g., LEACH idea) — nodes form clusters; cluster-heads aggregate local data and forward to sink (maybe multi-hop). Trade-offs: cluster-head selection cost vs energy savings. LEACH uses randomized rotation of cluster-heads to balance energy among nodes.
Important performance metrics and their meanings:
- Energy per bit — energy required to send/receive one bit.
- Latency — time from sensing to delivery at sink (count hops and per-hop processing/queueing delays).
- Reliability — probability data arrives correctly (affected by retransmissions, redundancy and error control).
- Scalability — how message overhead grows with number of nodes N.
Derivation students are often asked for: compare total energy for a linear convergecast tree vs direct single-hop to sink when aggregation is possible. (See Worked examples for full step-by-step derivation and numeric.)
Assumptions to state when solving problems: whether aggregation is perfect, path-loss exponent (commonly n = 2 for free-space), whether each node transmits once per epoch, whether neighbour distances are constant, and whether aggregation processing energy E_DA is included.
Formulas
Each formula on its own line followed by symbol meanings, SI unit and when it applies.
E_tx(k,d) = E_elec · k + E_amp · k · d^n
- E_tx(k,d): energy to transmit k bits over distance d, in joule (J). E_elec: electronics energy per bit (J/bit). E_amp: transmit amplifier energy coefficient (J/bit/m^n). d: distance (m). n: path-loss exponent (dimensionless, often 2 for free-space).
E_tx dual-slope model: E_tx(k,d) = E_elec · k + E_fs · k · d^2 (if d < d0); E_tx(k,d) = E_elec · k + E_mp · k · d^4 (if d ≥ d0); d0 = √(E_fs / E_mp) - E_fs: free-space amplifier coefficient (J/bit/m^2). E_mp: multipath amplifier coefficient (J/bit/m^4). d0: threshold distance (m) where path-loss changes. Use this when channels exhibit d^2 for short links and d^4 for long links (common in WSN exam problems).
E_rx(k) = E_elec · k
- E_rx(k): energy to receive k bits (J). E_elec: electronics energy per bit (J/bit). Applies when reception cost equals electronics cost.
E_agg(k) = E_DA · k - E_agg(k): energy to aggregate/process k bits at an intermediate node (J). E_DA: data aggregation energy per bit (J/bit); include this term when problems specify non-negligible computation cost at aggregators.
E_total_convergecast = (N-1) · (E_tx(k,d_hop) + E_rx(k))
- N: number of nodes (dimensionless). d_hop: hop distance (m). Assumes a chain/tree with (N-1) hops and perfect aggregation so one packet per hop.
E_total_direct = Σ_{i=2..N} (E_elec·k + E_amp·k·d_i^n)
- d_i: direct distance from node i to sink (m). Applies when each node transmits directly to sink without aggregation.
Latency_convergecast ≈ depth(tree) · (t_tx + t_proc + t_prop)
- depth(tree): number of hops from deepest leaf to sink (dimensionless). t_tx: transmission time for packet (s), t_proc: processing/aggregation time at node (s), t_prop: propagation delay per hop (s). Use when queueing delay is negligible.
Flooding messages (connected graph) ≈ N transmissions + Σ deg(v) receptions
- N: nodes, deg(v): degree of node v. Explains why flooding causes many duplicate receptions; depends on network graph.
Worked examples
Example 1 — Energy compare: linear chain convergecast vs direct single-hop. Given: N = 10 nodes arranged along a straight line with sink at node 1. Hop separation = 10 m. Packet size k = 2000 bits. Use E_elec = 50 × 10^-9 J/bit, E_amp = 100 × 10^-12 J/bit/m^2, path-loss exponent n = 2. Assume perfect aggregation for convergecast. Steps and formulas:
- Per-packet energy values:
- E_elec·k = 50e-9 J/bit × 2000 bit = 1.00e-4 J.
- E_amp·k·d^2 for one hop (d = 10 m) = 100e-12 J/bit/m^2 × 2000 × 10^2 = 2.00e-5 J.
- E_tx(hop) = 1.00e-4 + 2.00e-5 = 1.20e-4 J.
- E_rx = 1.00e-4 J.
- Convergecast (chain): there are N-1 = 9 hops; each hop causes one transmit and one receive: E_total_convergecast = 9 × (1.20e-4 + 1.00e-4) J = 9 × 2.20e-4 J = 1.98e-3 J.
- Final: E_total_convergecast = 0.00198 J.
- Direct single-hop: nodes 2..10 send directly to sink; distances to sink are 10,20,..,90 m. Sum of squares = 28,500 m^2.
- Amplifier term total = E_amp·k·Σ d_i^2 = 100e-12 × 2000 × 28500 = 5.70e-3 J.
- Electronics term total = (N-1) × E_elec·k = 9 × 1.00e-4 = 9.00e-4 J.
- E_total_direct = 5.70e-3 + 9.00e-4 = 6.60e-3 J.
- Final: E_total_direct = 0.00660 J.
- Conclusion: convergecast with aggregation uses ~0.00198 J, direct single-hop uses ~0.00660 J; convergecast uses ≈3.33× less energy (~70% energy saving) in this scenario.
Example 2 — Algorithm trace: Directed Diffusion for a simple query. Network: sink S, intermediate nodes A, B, C, and sensor node D that sees the event. Topology edges: S-A, A-B, B-C, C-D (a line). Steps:
- S floods an interest "temperature > 40 in region R". Each node receiving the interest sets up a gradient towards S (records neighbor from which interest arrived) and forwards the interest once.
- D matches the interest and starts sending data packets toward gradient neighbor C.
- Packets traverse C→B→A→S following gradients; S receives data.
- S can reinforce a particular path (e.g., by increasing the interest rate along A-B-C-D) to get higher throughput along that path. Trace output: Show interest copies at each node and the gradient arrows. State whether in-network caching/aggregation happens at C or B (if multiple sources exist).
Example 3 — Model answer (theory): Explain advantages and limitations of in-network aggregation. Full-marks points: definition, how aggregation reduces transmitted bytes, trade-offs (computation cost, increased delay at aggregator, loss of raw data granularity), applicability conditions (data correlation, commutative/associative aggregation functions like sum, average), an example (temperature averaging), and mention of security/privacy concerns if intermediate nodes are compromised.
Common mistakes
- Double-counting transmissions or receptions when counting hops in convergecast; carefully enumerate who transmits and who receives.
- Treating flooding as free of duplicates. In exams, mention implosion and redundancy when discussing flooding.
- Using graph-theory expressions without defining network topology (edge count E, node degree) — give numbers or clearly defined symbols.
For your exam
Types of questions:
- Definitions and short notes: define convergecast, in-network aggregation, data-centric routing.
- Derivations: show energy formulas from the radio model or derive total energy for a given topology under stated assumptions.
- Numericals: compute energy, latency or message counts for small networks (you will be given E_elec/E_amp or you state typical values and mark assumptions).
- Algorithms: step-by-step trace of Directed Diffusion, SPIN, Gossiping or Rumor Routing on a tiny topology.
- Diagrams: draw a collection tree and label hops, or sketch floods and show duplicate reception points. What a full-marks answer includes:
- Clear definitions of terms, explicit assumptions (aggregation, n value, packet size), formulas written before numbers, units carried through each arithmetic step, final numeric answer bolded and with correct SI units, and short discussion of trade-offs.
Quick check
- What is the main difference between data-centric and address-centric routing?
- Name two problems with naive flooding.
- If E_elec = 50 nJ/bit and k = 1000 bits, what is E_rx for one packet (in joules)? Answers: 1) Data-centric routes by data attributes (names), address-centric routes by node addresses. 2) Implosion (duplicate receptions) and collisions/overuse of energy. 3) E_rx = E_elec·k = 50e-9 × 1000 = 5.0e-5 J.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?