Computer Engineering 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.

Sensor network architecture

Sensor network architecture: node and network building blocks, architectural styles (flat, hierarchical, location-based, tiered), key properties (coverage, connectivity, lifetime), and common quantitative models used by engineers.

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

Wireless sensor network (WSN) architecture is the design of the nodes and their organization into a system. An engineer uses these architectural ideas to choose node hardware, plan network topology (flat, hierarchical, or tiered), estimate coverage and connectivity, and optimise lifetime and reliability for real deployments (agriculture, smart cities, industrial monitoring).

Key ideas

Start from first principles: a wireless sensor network connects many small devices that sense the physical world and deliver data to users or actuators.

  • Sensor node — a small electronic device that senses physical data and can communicate; typical components are a sensing unit, a processing unit, a communication (radio) unit, and a power unit. (Draw a box labelled "Sensor node" and inside four smaller boxes labelled Sensing, Processing, Radio, Power; add arrows: Sensing → Processing → Radio; show optional Actuator block attached to Processing.)

  • Sink (base station) — a node with greater resources (energy, processing, radio, wired connection) that collects data from the network and forwards it to users.

  • Gateway — a protocol/technology translator between the WSN and another network (e.g. IP/Internet); may be co-located with the sink.

  • Cluster head — in a hierarchical/clustered architecture, a node that aggregates data from members and forwards toward the sink.

  • Coverage — a measure of how well the monitored region is observed. A common definition: a point in the region is covered if at least one sensor can sense it. Types: area coverage (fraction of area covered), point coverage (specific points monitored), barrier coverage (detection across a boundary). Also define k-coverage: every point is covered by at least k sensors.

  • Connectivity — graph-theoretic property: the network is connected if for every pair of nodes there exists at least one multi-hop path between them. Model nodes as vertices and a radio link as an edge when distance ≤ communication range.

  • Network lifetime — several formal definitions used in exams: (1) First node dies (FND): time until the first node exhausts its energy; (2) K-coverage lifetime: time until coverage falls below K for required area; (3) Partition lifetime: time until network becomes disconnected. Always state which definition you use.

  • Flat (peer-to-peer) architecture — all nodes run same role; routing and aggregation distributed. Use where nodes are abundant and homogeneous.

  • Hierarchical (clustered) architecture — nodes organised into clusters with cluster heads performing aggregation and long-range communication. Advantage: reduced communication, hence energy saving; cost: cluster-head selection overhead and non-uniform energy drain.

  • Tiered architecture — multiple hardware tiers (tiny sensors, more capable nodes, sinks); used when some nodes can be more powerful (e.g., for bridges to Internet).

  • Data-centric vs address-centric — in data-centric designs, queries and aggregation are based on data attributes (e.g., temperature) rather than node addresses; reduces redundant data transfer.

  • Location-based — algorithms and routing use node positions (actual or logical). Assumption: nodes know their location (via GPS or localisation algorithm).

  • Cross-layer design — in WSNs tight energy constraints motivate breaking strict layer boundaries so energy/latency trade-offs are made jointly across layers.

  • WSN protocol stack and management planes — standard five-layer stack (Application, Transport, Network, Data Link/MAC, Physical) with three management planes (Power management, Mobility management, Task management) interacting with all layers; often drawn in exams as the five layers stacked vertically and the three planes alongside spanning all layers.

Derivations commonly asked in exams

  1. From Poisson node placement to coverage probability (point coverage): assume nodes are distributed as a homogeneous Poisson point process with intensity λ (nodes per m^2) and each node has sensing radius r (m). The probability that a fixed point is not covered equals the probability that zero nodes fall into the circle of area πr^2: P0 = e^{-λπr^2}. Therefore the probability a point is covered is 1 − e^{-λπr^2}. (State assumption: independent, spatially homogeneous Poisson placement.) For finite n i.i.d. uniform nodes in area A, the exact expression (ignoring boundary effects) is P_covered = 1 − (1 − πr^2/A)^n; the Poisson form is a good approximation when n is large and πr^2/A is small.

  2. Connectivity threshold for random geometric graphs (RGG): for n nodes uniformly distributed in area A (m^2), the communication radius r required for connectivity scales approximately as r ≈ sqrt( A·(ln n)/(π n) ). This comes from scaling the unit-area result r_unit ≈ sqrt((ln n)/(π n)) and multiplying by sqrt(A) for area A. (Assumptions: nodes i.i.d. uniform, asymptotic result for large n; boundary effects ignored.)

  3. Simple radio energy model (frequently used in exam derivations): transmit and receive energy per k-bit packet depend on electronics and amplifier terms. The critical distance d0 separating free-space (d^2) and multi-path (d^4) loss regimes is d0 = sqrt(ε_fs/ε_mp).

Diagrams to draw in exams (describe exactly):

  • Node block diagram: rectangle with four internal boxes labelled Sensing, ADC, Microcontroller, Radio, and a battery symbol for Power; show optional Actuator box.
  • Flat vs hierarchical: for flat draw many identical nodes with arrows multi-hop to a sink; for hierarchical draw clusters of nodes with a cluster head in each cluster, arrows from members to head, and heads to sink.
  • WSN protocol stack: draw five horizontal layers (Application on top down to Physical), and three vertical management planes (Power, Mobility, Task) spanning all layers on the side.

Formulas

P_covered = 1 - exp(-λ·π·r^2) — λ: node density (nodes·m^-2), r: sensing radius (m). Applies to homogeneous Poisson placement of nodes and independent sensing.

r_connect ≈ sqrt( A·(ln n) / (π·n) ) — A: area (m^2), n: number of nodes (dimensionless). Gives approximate communication radius (m) needed for one-component connectivity (asymptotic result for large n).

E_tx(k,d) = E_elec·k + ε_fs·k·d^2 for d < d0 — E_tx: energy to transmit k bits over distance d (J). E_elec: electronics energy per bit (J·bit^-1). ε_fs: free-space amplifier (J·bit^-1·m^-2).

E_tx(k,d) = E_elec·k + ε_mp·k·d^4 for d ≥ d0 — ε_mp: multi-path amplifier (J·bit^-1·m^-4).

E_rx(k) = E_elec·k — energy to receive k bits (J).

d0 = sqrt(ε_fs / ε_mp) — crossover distance (m).

λ = n / A — node density (nodes·m^-2).

Define each symbol where it first appears and SI units: energy J (joule), distance m (metre), k bits (bit), λ nodes·m^-2, n dimensionless count, A m^2.

Worked examples

Example 1 — Coverage probability (numerical) Problem: 100 sensor nodes are uniformly and independently deployed over a 500 m × 500 m field. Sensors have sensing radius r = 20 m. Using the Poisson approximation, compute the probability that a random point is covered. Steps:

  1. Area A = 500·500 = 250000 m^2.
  2. Node density λ = n / A = 100 / 250000 = 0.0004 nodes·m^-2.
  3. Compute λ·π·r^2 = 0.0004·π·(20)^2 = 0.0004·π·400 = 0.0004·1256.637 = 0.502655.
  4. P_covered = 1 − exp(−0.502655) ≈ 1 − 0.6050 = 0.3950. Answer: Probability ≈ 0.395 (39.5%).

Example 2 — Connectivity radius (numerical) Problem: For the same deployment (n = 100, A = 250000 m^2), estimate the communication radius needed for the network to be connected (use r ≈ sqrt(A·ln n/(π n))). Steps:

  1. ln n = ln 100 = 4.60517.
  2. Compute numerator: A·ln n = 250000·4.60517 = 1,151,292.5.
  3. Denominator: π·n = π·100 ≈ 314.159.
  4. Ratio ≈ 1,151,292.5 / 314.159 = 3666.0.
  5. r ≈ sqrt(3666.0) = 60.55 m. Answer: r ≈ 60.6 m (approximate radius for asymptotic connectivity).

Example 3 — Radio energy use (numerical) Problem: Transmit a packet of k = 2000 bits a distance d = 50 m. Use E_elec = 50·10^-9 J/bit, ε_fs = 10·10^-12 J/bit/m^2, ε_mp = 1.3·10^-15 J/bit/m^4 (typical radio model values; verify constants). Compute E_tx and E_rx. Steps:

  1. d0 = sqrt(ε_fs/ε_mp) = sqrt(10e-12 / 1.3e-15) ≈ sqrt(7692.3077) ≈ 87.7 m. Since d = 50 < d0 use free-space model.
  2. E_tx = E_elec·k + ε_fs·k·d^2 = 50e-9·2000 + 10e-12·2000·(50^2).
    • E_elec·k = 50e-9·2000 = 0.0001 J.
    • ε_fs·k·d^2 = 10e-12·2000·2500 = 50e-6 = 0.00005 J.
    • E_tx = 0.0001 + 0.00005 = 0.00015 J.
  3. E_rx = E_elec·k = 0.0001 J. Answer: E_tx = 150 μJ, E_rx = 100 μJ. (Constants should be verified for the specific radio chipset in exam problems.)

Common mistakes

  • Not scaling the connectivity formula for area (using unit-area expression without sqrt(A)).
  • Using d^2 path-loss for distances beyond d0 (apply correct free-space/multipath condition).
  • Mixing units (e.g., using meters for r but km for A) — always convert to SI before numerical work.
  • Not specifying the network lifetime definition when asked (FND vs coverage-based vs connectivity-based).

For your exam

Question types you will see: short definitions (define sensor node, sink, coverage, connectivity), short notes (compare flat vs hierarchical architectures), derivations (derive coverage probability under Poisson), numericals (compute coverage probability, required communication radius, or radio energy use), and diagram-drawing (node block diagram, cluster architecture).

What full-marks answers include:

  • A clear definition with bold term (for written/short questions).
  • All assumptions stated before using a formula (e.g., node placement model, large n, identical radii).
  • Step-by-step derivation for probabilistic results and correct justification of approximations.
  • Units on all intermediate and final numeric results and a short interpretation (what the number means for design).
  • For diagrams: neat labels, arrows showing data flow, and caption identifying components.

Quick check

  1. Define "cluster head" in one sentence.
  2. Give the formula for the probability that a point is covered under Poisson node placement.
  3. For n uniformly random nodes in area A, how does the connectivity radius scale with n (state the main dependence)?

Answers: 1) A cluster head is a node in a clustered architecture that aggregates data from member nodes and forwards it toward the sink. 2) P_covered = 1 - exp(-λ·π·r^2). 3) r_connect scales as sqrt((ln n)/n) (more precisely r ≈ sqrt(A·ln n/(π n))).

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

Stuck on something here?