Quality of service in ad-hoc and sensor networks
Quality of service (QoS) in ad-hoc and sensor networks: metrics, causes, and practical methods to measure and provide QoS under wireless and energy constraints.
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
Quality of service (QoS) tells an engineer whether a wireless sensor or ad-hoc network will meet application requirements such as timely alarms, reliable data collection, or fair sharing of bandwidth. In design and deployment you use QoS metrics to choose routing, MAC, and cross-layer strategies so nodes meet deadlines while saving energy.
Key ideas
Diagram to draw for an exam: draw a linear chain of nodes A — B — C — D. At each hop, label t_proc and t_queue at the node, and t_tx and t_prop on the outgoing link. Show an arrow from A to D and label D_e2e = sum of all per-hop components.
Throughput — the rate (bits per second) at which the network can carry bits. Goodput is the useful application data rate (payload bits/s) excluding headers and retransmissions.
Packet Delivery Ratio (PDR) and Packet Loss Ratio (PLR) — PDR = delivered_packets / sent_packets; PLR = 1 − PDR. Define delivery ratio for a single link as probability a transmitted packet (and its ACK if used) is successfully received.
Expected Transmission Count (ETX) — a routing metric defined per link that estimates the expected number of transmissions (including retransmissions) needed to deliver a packet successfully across that link. Assumption: link losses are independent and forward and reverse delivery probabilities are measurable.
- Exact definition used in routing textbooks: for a link with forward delivery probability df and reverse delivery probability dr (ACK path),
ETX_link = 1 / (df · dr).
- Exact definition used in routing textbooks: for a link with forward delivery probability df and reverse delivery probability dr (ACK path),
Estimated Transmission Time (ETT) — a refinement of ETX that converts expected transmissions into time by multiplying by packet transmission time. Standard formula:
ETT_link = ETX_link · (S / B)where S is packet size in bits and B is link bandwidth in bits/s.Little's Law (queueing principle used in delay analysis): Under steady state and stable queue, average number in system L = λ · W, where λ is average arrival rate and W is average time in system. Assumptions: arrivals and departures in steady state, finite averages.
Service differentiation approaches: priority queues, admission control, scheduling (e.g., EDF — earliest deadline first), and resource reservation. In WSNs constraints (energy, lossy links) make hard reservations rare; lightweight priority and cross-layer adaptations are common.
Special considerations for sensor networks: energy is a first-order constraint, so QoS is often expressed as energy–delay tradeoff (save energy by increasing delay). Reliability may be measured as application-level PDR rather than link-level delivery.
Cross-layer methods: routing chooses paths that improve combined metrics (energy, ETX, delay); MAC supports priorities (e.g., shorter backoff for urgent packets). Assumption: cross-layer designs break strict OSI layering but are practical in resource-limited WSNs.
Formulas
D_e2e = Σ_i (t_proc,i + t_queue,i + t_tx,i + t_prop,i) — end-to-end delay is sum over hops i. t in seconds.
t_tx = S / R — transmission time; S = packet size in bits (bit), R = link rate (bits/s).
Throughput T = total_bits_transferred / total_time — bits/s.
Goodput G = useful_payload_bits_transferred / total_time — bits/s (excludes headers and retransmissions).
PLR = lost_packets / sent_packets — unitless fraction.
PDR = delivered_packets / sent_packets = 1 − PLR — unitless fraction. For a multi-hop path with independent links and no retransmissions, PDR_path = Π_i d_i where d_i is the per-link delivery probability (if ACK is used per hop, d_i ≈ d_f,i · d_r,i). For deadline-constrained traffic, DMR = missed_deadline_packets / total_packets — unitless fraction.
ETX_link = 1 / (d_f · d_r) — expected transmissions for link with forward delivery d_f and reverse delivery d_r (both unitless probabilities).
ETT_link = ETX_link · (S / B) — estimated transmission time for a packet of S bits on bandwidth B bits/s. Units: seconds.
L = λ · W — Little's Law: L average items in system, λ arrival rate (items/s), W average time in system (s).
Jain's fairness index J = ( (Σ_i x_i)^2 ) / (n · Σ_i x_i^2 ) — x_i are throughputs; dimensionless between 1/n and 1. Delay jitter (one-way delay standard deviation) σ_D = sqrt( E[ (D − E[D])^2 ] ) — units: seconds.
E_b = E_total / N_bits — energy per bit; E_total in joules, N_bits dimensionless.
Note: when using S in bytes convert to bits by multiplying by 8.
Worked examples
Example 1 — end-to-end delay (numerical). Calculate D_e2e for a 4-hop path with identical hops. Given: packet size 1000 bytes, link rate R = 250 kb/s (IEEE 802.15.4 typical), per-hop t_proc = 1.0 ms, average t_queue = 3.0 ms, propagation t_prop = 0.01 ms (short wireless). Steps:
- Convert packet size S = 1000 bytes = 8000 bits.
- Compute t_tx = S / R = 8000 bits / 250000 bits/s = 0.032 s = 32.0 ms.
- Per-hop delay = t_proc + t_queue + t_tx + t_prop = 1.0 + 3.0 + 32.0 + 0.01 = 36.01 ms.
- For 4 hops D_e2e = 4 · 36.01 ms = 144.04 ms. Answer: D_e2e = 144.04 ms.
Example 2 — ETX and ETT for a 3-link path. Given link delivery probabilities (forward df, reverse dr): link1 df=0.90, dr=0.90; link2 df=0.80, dr=0.90; link3 df=0.95, dr=0.95. Packet size S=1024 bytes. Bandwidth B=250000 bits/s.
- Compute ETX per link: ETX1 = 1/(0.9·0.9)=1/0.81=1.234567; ETX2 = 1/(0.8·0.9)=1/0.72=1.388889; ETX3 = 1/(0.95·0.95)=1/0.9025=1.108033.
- Convert S to bits: 1024 bytes = 8192 bits. Compute S/B = 8192 / 250000 = 0.032768 s.
- Compute ETT per link: ETT1 = 1.234567·0.032768 = 0.0404 s; ETT2 = 1.388889·0.032768 = 0.0455 s; ETT3 = 1.108033·0.032768 = 0.0363 s.
- Path ETX = sum ETX = 3.731489; path ETT = sum ETT = 0.1222 s. Answer: Path ETX ≈ 3.7315 transmissions; Path ETT ≈ 0.1222 s (122.2 ms).
Example 3 — throughput vs goodput with packet losses. Given physical rate B = 250000 bits/s, packet length 1024 bytes (8192 bits), payload 1000 bytes (8000 bits), packet loss ratio PLR = 0.10 (10%). Compute goodput G.
- Payload fraction = 8000 / 8192 = 0.9765625.
- Success probability = 1 − PLR = 0.9.
- Goodput G = B · payload_fraction · success_probability = 250000 · 0.9765625 · 0.9 = 219726.5625 bits/s. Answer: Goodput ≈ 219.7 kb/s while PHY throughput = 250 kb/s.
Common mistakes
- Using bytes and bits inconsistently — always convert bytes to bits when computing times with bits/s.
- Applying Little's Law without checking steady-state assumptions (arrivals must equal departures on average).
- Using ETX = 1/df only; remember ACKs require reverse delivery dr, so ETX = 1/(df·dr).
- Forgetting energy when choosing lower-latency routes; a shortest-delay route may consume far more energy.
For your exam
Question types you will see: definitions (define QoS, ETX, ETT), short notes (delay components, energy–delay tradeoff), derivations (derive end-to-end delay formula, apply Little's Law), numericals (compute D_e2e, ETX/ETT, goodput), and drawing simple diagrams (multi-hop path with labeled delays). What full-marks answers include:
- For definitions: a clear one-line definition with bold term and units where relevant.
- For derivations: state assumptions, write each step, and show algebra (e.g., sum per-hop delays; convert bytes→bits if computing t_tx).
- For numericals: list given data with units, show substitutions into formulas, carry units through, and present a final answer with units and reasonable significant figures.
Quick check
- What is ETX for a link with forward delivery 0.8 and reverse delivery 0.9?
- Write the four per-hop delay components used in end-to-end delay.
- If physical rate is 250 kb/s and payload fraction is 0.8 with PLR 0.2, what is goodput in kb/s? Answers: ETX = 1/(0.8·0.9) = 1.3889; components = processing, queuing, transmission, propagation; goodput = 250 · 0.8 · 0.8 = 160 kb/s.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?