Ad-hoc and sensor networks: definitions and challenges
Definitions of ad-hoc and sensor networks, their common models (unit-disk, random geometric graph), core challenges (energy, connectivity, scalability, mobility, reliability, coverage, localization) and standard analytical formulas and worked examples useful for exam answers.
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
Ad-hoc and sensor networks are used when a fixed infrastructure (base stations, wired links) is unavailable or impractical — for example in disaster recovery, environmental monitoring, industrial sensing and battlefield surveillance. An engineer must design protocols and hardware that meet strict constraints (energy, cost, scale) while giving required connectivity, coverage and reliability.
Key ideas
- Ad-hoc network (MANET): a self-organizing wireless network without fixed infrastructure in which nodes also act as routers; links form opportunistically, topology may change due to mobility, and resource constraints depend on the application.
- Node degree: the number of other nodes within a node's communication range. For a node at position x, node degree = number of neighbors y such that distance(x,y) ≤ r.
- Unit-disk model: a simple radio model that assumes two nodes can communicate if and only if their Euclidean distance ≤ r (communication range). Assumptions: identical isotropic antennas, no fading, no interference. Use this model for basic theoretical work and exams when stated.
- Random geometric graph (RGG): graph made by placing n nodes independently and uniformly at random in an area A and connecting pairs within distance r. The RGG is the standard mathematical model for connectivity analysis of randomly deployed ad-hoc/WSN nodes.
- Connectivity threshold (informal): in an RGG, to get the whole network connected with high probability as n → ∞, the average node degree must grow like ln n. More precisely, for large n and uniform deployment, choose r such that expected neighbors ≈ ln n; then the graph is connected with high probability. Assumptions: large n, uniform IID placement, unit-disk connectivity. Note: a more precise asymptotic threshold adds a + ln ln n term to the required average degree; use ln n as a rule of thumb unless your course specifies the refinement.
- Derivation (standard exam-style): expected neighbors = ρ·π·r^2 where ρ = n/A. For connectivity with high probability set ρ·π·r^2 ≈ ln n, so r ≈ sqrt((ln n)/(π ρ)) = sqrt((A ln n)/(π n)). This gives an order-of-magnitude required range. State assumptions clearly (no obstacles, no fading).
- Coverage vs connectivity: Coverage means the monitored region is within sensing ranges of some nodes (sensing radius s); connectivity means nodes can communicate (communication radius r). They are related but different. In many sensor applications we need both; a common sufficient condition: if r ≥ 2s, then full coverage of a convex region implies that the communication graph of the covering sensors is connected (unit-disk sensing/communication, no holes; state these assumptions in exam answers).
- Energy model (radio): simple first-order model used in many protocol analyses. Energy to transmit k bits a distance d: E_tx(k,d) = k·E_elec + k·ε_amp·d^α Energy to receive k bits: E_rx(k) = k·E_elec Definitions: E_elec = energy per bit for transmitter/receiver electronics (J/bit), ε_amp = amplifier energy coefficient (J/bit/m^α), α = path-loss exponent (typically 2 free-space, 3–4 in obstructed environments). Assumptions: no retransmissions, packet overhead ignored unless included.
- Routing and scalability: routing must trade energy, latency and state (routing tables). Flat routing (e.g., flooding, gossip) is simple but not scalable energy-wise. Hierarchical routing (clustering) reduces overhead; cluster-heads aggregate data to save energy but require cluster management overhead.
- Mobility and dynamics: mobility causes link breakages and requires route repair and topology control. Protocols designed for low-mobility ad-hoc (e.g., many MANET protocols) may fail in high-mobility scenarios.
- Reliability and link-awareness: real radios are lossy; reliability requires retransmission, error-control coding or multipath. Cross-layer designs (link + network layer) are common in WSN research.
When writing an exam answer, always state the model and assumptions (unit-disk, RGG, energy model parameters, whether mobility or interference is considered).
Formulas
ρ = n / A — node density; ρ in nodes per m², n = number of nodes (dimensionless), A = area in m². Applies for uniform placement.
E[degree] = ρ·π·r² — expected node degree under unit-disk model; r in m. Applies in RGG with uniform placement and negligible border effects.
Connectivity threshold (rule of thumb): ρ·π·r² ≈ ln n — means set r ≈ sqrt((ln n)/(π ρ)). Units: r in m. Applies asymptotically (large n) under IID uniform placement.
E_tx(k,d) = k·E_elec + k·ε_amp·d^α — transmit energy for k bits over distance d. Units: joules (J) when energies in J/bit and distance in m. Applies to first-order radio model.
E_rx(k) = k·E_elec — receive energy for k bits. Units: J. Applies to same model.
Network lifetime (simple metric) = time until first node dies — depends on traffic pattern, energy per node, routing. No unique formula; use as a performance metric.
Path loss (simplified) ∝ d^α — received power falls approximately as 1/d^α. α is dimensionless; typical α = 2 (free space), 3–4 indoor/obstructed.
Worked examples
Required communication range for connectivity (numerical):
- Problem: n = 1000 nodes uniformly in A = 1 km² = 10^6 m². Find r so that expected degree ≈ ln n (use natural log).
- Formula:
r ≈ sqrt((A ln n)/(π n)). - Compute: ln n = ln 1000 = 6.9078. A/n = 10^6 / 1000 = 1000 m² per node. So r² = (1000·6.9078)/π = 6907.8/3.14159 = 2199.0 m². r = sqrt(2199.0) = 46.90 m.
- Answer: r ≈ 46.9 m (under the unit-disk, uniform-packing assumption; border effects ignored).
Energy to transmit a packet (numerical):
- Problem: transmit k = 2000 bits over d = 50 m. Use E_elec = 50 nJ/bit, ε_amp = 100 pJ/bit/m², α = 2 (typical simple values used in exam problems; verify constants for your course).
- Formulas:
E_tx = k·E_elec + k·ε_amp·d^2 - Compute: k·E_elec = 2000·50e-9 J = 0.000100 J. k·ε_amp·d^2 = 2000·100e-12·(50²) = 2000·100e-12·2500 = 0.000500 J. Total E_tx = 0.000100 + 0.000500 = 0.000600 J.
- Answer: E_tx = 6.0×10^-4 J. (E_rx = k·E_elec = 0.000100 J.)
Short theory (model answer) — list main challenges and a mitigation method each:
- Energy scarcity — use duty-cycling, data aggregation, energy-efficient routing (describe briefly).
- Scalability — use hierarchical clustering, localized algorithms that use only neighbor information.
- Unreliable links — use link-quality estimation and retransmission or diversity techniques.
- Mobility — use reactive routing with fast local repair or geographic routing. This is the kind of 8–10 line answer examiners expect; name challenge, explain cause, propose a mitigation.
Common mistakes
- Using ln instead of log10 or vice versa in connectivity formulas; use natural log (ln) in theoretical results unless told otherwise.
- Forgetting units (e.g., using km with m-based constants). Convert area to m² consistently.
- Applying the connectivity threshold formula to very small n without noting asymptotic assumptions — it is only a rule of thumb for large n.
- Mixing path-loss exponent values: state which α you use and why (2 for free-space, 3–4 for obstructed).
- Omitting border effects when using expected-degree formulas in small or irregular deployment areas.
For your exam
Kinds of questions:
- Definitions: define ad-hoc network, sensor network, unit-disk model, RGG, connectivity, coverage.
- Short notes: energy models, connectivity vs coverage, main challenges and mitigation.
- Derivation: show how expected degree = ρπr² and derive r ≈ sqrt((A ln n)/(π n)) for connectivity; explain assumptions.
- Numericals: compute r for given n and A; compute E_tx/E_rx for given k and d using the radio model.
- Diagrams: draw a small network showing sensing radius s and communication radius r; label nodes, a cluster-head, and a disconnected island if r is too small. For the connectivity derivation draw: a square area, one node at center, circle of radius r around it, label πr² and show expected neighbors = ρ·π·r².
What full-marks answers include:
- Clear statement of model and assumptions.
- Correct formulas with units.
- Step-by-step algebra in derivations; keep intermediate numeric values and units.
- For diagrams: clear labels for distances, radii and densities; annotate steps that use the diagram.
Quick check
- Define the unit-disk model in one sentence.
- Give the expression for expected node degree in terms of node density ρ and communication range r.
- Using the radio energy model, what part of E_tx scales with d^α?
Answers: 1) The unit-disk model says two nodes can communicate iff their Euclidean distance ≤ r (a fixed communication range). 2) E[degree] = ρ·π·r². 3) The amplifier term k·ε_amp·d^α scales with d^α.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?