Chapters

34 Why Protocol Choice Is Hard

fundamentals
protocol
framework
challenge

34.1 In 60 Seconds

Eliminate Choices With Evidence, Not Habit

Picture a farm sensor that must last through winter and report a burst pipe quickly. One familiar network reaches the shed but drains the battery. Another saves energy but cannot meet the warning time. No single option wins every need.

A protocol is an agreed set of message and timing rules. A gateway is a device that joins one network to another. Latency means the time from sending to a useful result. Write the hard limits for range, energy, message size, warning time, safety, and upkeep before naming a favourite.

Build a short list, then change one condition at a time. Add a wall, lose the gateway link, increase message size, delay a reply, and restart a device. Record which option fails each limit, what evidence supports the rejection, and what extra service or field work a surviving choice requires.

This first screen cannot predict every site condition or future version. It only makes the current trade clear. The deeper sections separate the radio, network, transport, and application duties so the final choice is a stack of bounded decisions rather than one product label.

IoT protocol selection is difficult because the strongest requirements usually compete. A radio that reaches farther often sends less data or needs more energy. A high-throughput link may need mains power or short range. A protocol that looks simple at the device may require gateway, service, update, and monitoring work. Start with hard constraints, separate protocol layers, and keep evidence for every eliminated option.

34.2 Start With the Story

You will explain competing protocol constraints and build a shortlist that excludes choices your deployment cannot support. Start by separating hard limits from preferences and identifying which network layer each candidate serves.

Follow the difficult choice across four beats to see why familiarity cannot replace deployment evidence.

  1. Packet Pete places a familiar radio at the centre of the meeting before Bex has reviewed the deployment requirements.

    Packet Pete: “We already know this radio. Why not begin with it?”

  2. Bex and Test Tessa reveal parking, wearable, logistics, and building deployments with conflicting range, power, timing, security, scale, and operations needs.

    Bex: “Small messages do not make these four deployments the same problem.”

  3. Packet Pete, Bex, and Test Tessa move three radio candidates behind hard stop gates and retain two finalists for comparison.

    The team: “Eliminate every failed hard constraint before scoring the survivors.”

  4. The team validates a selected radio at the real parking and building site using delivery, power, timing, security, and operations evidence.

    Test Tessa: “The field record supports this deployment choice, not a universal winner.”

Protocol choice becomes defensible when hard constraints narrow the field and deployment evidence bounds the answer.

The mathematical gist. Antenna gain adds directly to the link budget, while free-space loss grows as 20log10d20\log_{10}d. For this chapter’s 14 dBm, 868 MHz LoRaWAN example with −130 dBm sensitivity, 0 dBi gateway gain permits 144 dB of free-space loss or about 435 km; 6 dBi permits 150 dB or about 869 km. The factor is 106/20=1.99510^{6/20}=1.995, so 6 dB nearly doubles the free-space ceiling without promising real-world coverage.

Math Bridge · guided foundationsWhy does 6 dB of antenna gain nearly double range?Let Phoebe unpack the logarithm, the link budget, and the chapter's 435 km to 869 km free-space example.

34.3 Protocol Selection: The Challenge

Protocol selection is not a popularity contest. It is a constraint-ranking problem. The hard part is that an IoT deployment asks for several things at once:

  • reach the device;
  • fit the energy source;
  • carry the payload at the required freshness;
  • respond within the latency budget;
  • scale to the device count;
  • protect the data and control path;
  • interoperate with the rest of the stack;
  • remain operable after installation.

No single protocol wins every dimension. The goal is to identify which constraint is non-negotiable, then find the smallest set of protocol candidates that can survive it.

34.4 Learning Objectives

By the end of this chapter, you will be able to:

  • Explain why range, energy, throughput, latency, coverage, security, scalability, interoperability, and operations compete.
  • Rank hard constraints before comparing protocol names.
  • Separate physical/link choices from network, transport, and application-layer choices.
  • Avoid layer-confusion questions such as “MQTT or Wi-Fi?”
  • Use a first-pass shortlist before doing weighted scoring or detailed lifecycle-cost work.
  • Record what evidence is still missing before a protocol can be selected.

Quick Check: Challenge Reasoning

Minimum Viable Understanding

Protocol selection starts with the dominant constraint. A camera, a wearable, a buried meter, an indoor light switch, and a mobile asset do not belong to the same connectivity class because their payload, range, power source, latency, and operations assumptions differ.

34.5 Why This Is Hard

Most failed protocol decisions begin with one of three shortcuts:

  • choosing a familiar protocol before checking power and coverage;
  • comparing protocol names that operate at different layers;
  • optimizing one dimension while ignoring the deployment system around it.

The challenge is not that the protocol landscape is random. The challenge is that every reasonable option is optimized for a different job.

Pause at the figure Figure 34.1 before applying Why This Is Hard. Its Range and gateway, tower, labels show why Protocol choice starts by ranking competing constraints before naming winners needs an evidence check for Why This Is Hard here.

Protocol-selection constraint map showing range, energy, throughput, latency, coverage, security, scalability, interoperability, and operations as competing review areas.
Figure 34.1: Protocol choice starts by ranking competing constraints before naming winners.

Read Figure 34.1 from range and energy down through throughput, latency, security, and operations. The paired boxes expose different questions, from reaching infrastructure to maintaining devices after installation. Only candidates that satisfy the hard constraints reach the shortlist at the bottom, before any preference scoring begins.

34.6 Selection Dimensions

Use these dimensions as a review checklist before naming a winner.

Dimension
Question
Evidence
Failure Mode
Range and coverage
Where are devices relative to gateways, access points, readers, phones, or towers?
Site survey, antenna plan, weak-path tests, mobility assumptions.
Devices install successfully but cannot report reliably.
Energy source
Can the device sleep, wake, transmit, receive, and recover within its energy budget?
Full reporting-cycle current trace and maintenance interval.
The device works in the lab but fails field lifetime targets.
Payload and freshness
How many bytes, how often, how bursty, and how fresh must the data be?
Payload budget, retry policy, acknowledgment needs, latency contract.
A high-throughput link is overbuilt, or a low-data-rate link misses timing needs.
Operations
Who provisions, updates, monitors, diagnoses, and replaces the system?
Provisioning workflow, update path, logging, support and replacement plan.
The radio works, but the deployed system is hard to maintain.

34.7 The Constraint Triangle

The common teaching shortcut is a triangle: range, energy, and throughput cannot all be optimized at once. The triangle is useful, but it should not be treated as a magic formula.

34.7.1 High Throughput

Useful for images, audio, firmware transfer, dense local backhaul, dashboards, and user-facing interactions. The trade-off is usually higher active energy, shorter practical range, or stronger infrastructure requirements.

34.7.2 Long Reach

Useful for sparse outdoor sensing, utility metering, agriculture, remote assets, and hard-to-wire sites. The trade-off is usually lower payload rate, stricter duty behavior, delayed downlink, or site-specific coverage validation.

34.7.3 Low Energy

Useful for devices that sleep most of the time and are expensive to service. The trade-off is usually smaller payloads, limited receive windows, less frequent reporting, or gateway/topology planning.

The safest reading is: the dominant constraint chooses the first candidate family. Secondary constraints then decide which member of that family survives.

Turn the triangle into measurements before it becomes a debate. A LoRaWAN field sensor needs received-signal margin, duty-cycle, downlink, and battery-life evidence for the real site. A BLE wearable needs phone-reconnect behavior, advertising interval, current trace, and privacy evidence. A Wi-Fi camera needs airtime, roaming, firmware-update, and mains-power assumptions. A Thread or Zigbee control network needs router density, commissioning success, route repair, channel planning, and local-failure behavior. The challenge answer is stronger when it names the test that would eliminate each tempting family.

34.8 Layer Boundaries

Many protocol arguments are actually layer mistakes. MQTT, CoAP, HTTP, Wi-Fi, BLE, LoRaWAN, IPv6, TCP, and UDP are not all alternatives to each other.

Follow the layers in Figure 34.2 to see how a sensor message reaches the physical link. Compare candidates within the role they perform, because an application protocol and a radio technology answer different questions.

Detailed IoT protocol stack across five layers, each with representative protocols, data units, and example roles: application with CoAP, MQTT, HTTP/2, and AMQP; transport with UDP, TCP, DTLS, TLS, and QUIC; network with IPv6 addressing and routing; data link; and physical.
Figure 34.2: Layer-aware selection builds a stack instead of comparing unrelated technologies.

Read down Figure 34.2 from the application layer through transport, network, data link, and physical transmission. The left column tracks messages becoming segments, packets, frames, and bits; the right gives a role example at each stage. Build a compatible stack from these responsibilities rather than selecting one name to cover every layer.

34.8.1 Layer Review

34.8.3 Network And Adaptation

Examples: IPv4, IPv6, 6LoWPAN, RPL, LoRaWAN network behavior.

This layer answers how packets are addressed, adapted, or routed.

34.8.4 Transport

Examples: TCP, UDP, QUIC, DTLS context.

This layer answers how endpoints exchange streams, datagrams, sessions, or protected transport.

34.8.5 Application

Examples: MQTT, CoAP, HTTP, AMQP, custom payload contracts.

This layer answers how application data is named, encoded, requested, published, or acknowledged.

Layer Mistake

“Should we use MQTT or Wi-Fi?” compares an application protocol with a link-layer technology. A complete stack might use both: Wi-Fi for local connectivity, IP and TCP for transport, and MQTT for application messaging.

34.9 First-Pass Shortlisting

A first-pass shortlist is not the final decision. It prevents impossible options from wasting design time.

Inspect the figure Figure 34.3 before carrying First-Pass Shortlisting forward. Communication job and Rank hard constraints identify the evidence boundary implicit in First-pass shortlisting removes impossible families before detailed scoring.

Evidence-first protocol shortlist workflow: define the decision question, rank hard constraints, remove impossible families, then keep evidence for remaining candidates.
Figure 34.3: First-pass shortlisting removes impossible families before detailed scoring.

For First-Pass Shortlisting, the visual sequence in Figure 34.3 opens with Communication job, where it highlights Communication job. Rank hard constraints follows to show how it highlights Rank hard constraints; reach, energy, payload, latency, security then uses reach, energy, payload, latency, security to show the next hand-off. That progression connects First-pass shortlisting removes impossible families before detailed scoring to the next First-Pass Shortlisting check.

Use this sequence:

  1. Define the communication job. Is it telemetry, control, configuration, bulk transfer, discovery, local automation, tracking, or backhaul?
  2. Rank hard constraints. Identify what must not fail: power source, reach, latency, payload, security boundary, mobility, or operations.
  3. Eliminate impossible families. Remove options that cannot satisfy the hard constraint without redesigning the system.
  4. Keep a shortlist. Compare only the candidates that remain viable.
  5. Record missing evidence. Note field tests, current traces, payload measurements, standards profiles, or operations checks still required.

34.10 Example Challenge Reviews

These examples show the shape of the reasoning without pretending that one protocol is always correct.

34.10.1 Remote Telemetry

Dominant constraint: reach and energy.

Likely first-pass direction: LPWAN or cellular IoT candidates, depending on coverage evidence, payload freshness, operations, and ownership model.

Do not decide from: nominal maximum data rate alone.

34.10.2 Local Control

Dominant constraint: latency, reliability, and local coverage.

Likely first-pass direction: local star or mesh candidates, depending on power source, room geometry, gateway placement, and maintenance access.

Do not decide from: radio module price alone.

34.10.3 High-Data Device

Dominant constraint: throughput and user experience.

Likely first-pass direction: Wi-Fi, Ethernet, or cellular broadband candidates, depending on power source, mobility, coverage, and backhaul.

Do not decide from: sensor-node energy assumptions.

34.10.4 Moving Asset

Dominant constraint: coverage across changing locations.

Likely first-pass direction: carrier, gateway, or hybrid designs depending on routes, handoff, dead zones, and reporting criticality.

Do not decide from: one static site test.

34.11 Common Pitfalls

Pitfall 1: Asking One Protocol To Maximize Everything

If requirements demand long reach, high throughput, tiny energy use, low latency, low cost, and no infrastructure, the problem is under-ranked. The correct next step is constraint negotiation, not protocol shopping.

Pitfall 2: Comparing Layers Instead Of Building A Stack

“LoRaWAN or MQTT” and “Wi-Fi or CoAP” are layer mistakes. First identify the connectivity layer, then complete network, transport, security, and application decisions around it.

Pitfall 3: Treating Module Price As System Cost

The radio part is not the deployment. Gateways, subscriptions, antenna work, commissioning, monitoring, replacement, and field service can dominate the real decision.

Pitfall 4: Trusting Nominal Specs

Advertised range, data rate, and power numbers are starting points. Real sites need antenna placement, interference, payload, retries, receive behavior, and operations evidence.

34.12 Knowledge Check

Knowledge Check: Dominant Constraint

Knowledge Check: Protocol Layers

Matching Check

Ordering Check

34.13 Place Each Candidate In Trade-Off Space

Protocol choice is hard because the things teams usually want, long range, high data rate, and low power, pull against one another. Radio physics ties them together: reaching farther for a given power usually means spending airtime on fewer bits through narrower bandwidth, lower coding rate, spreading, or more conservative modulation. Pushing many bits per second usually needs wider bandwidth, cleaner signal conditions, shorter practical range, stronger infrastructure, or more energy.

So every IoT radio is a point in a trade-off space. The honest question is not “which protocol is best?” but “which compromise fits this job?” A battery soil sensor that reports moisture every 30 minutes can tolerate tiny payloads and seconds of delay, so LoRaWAN or NB-IoT may be reasonable after coverage checks. A machine-vision camera on the same farm needs steady megabits per second and mains power, so Wi-Fi or Ethernet is more realistic. Same site, different communication job, different shortlist.

TechnologyTypical reach classTypical data-rate classPower posture
BLERoom to nearby-phone rangeAbout 1-2 Mbit/s at the PHY, less at the applicationLow when duty-cycled
Zigbee or IEEE 802.15.4Room/building range, often extended by mesh250 kbit/s PHY for 2.4 GHz 802.15.4Low with careful sleep and routing design
Wi-FiLocal access-point rangeTens to hundreds of Mbit/s depending on generation and link qualityHigher active energy; often mains or rechargeable
LoRaWANLong-range LPWAN classSmall, infrequent payloads at low data ratesVery low for sparse uplinks
NB-IoTCellular wide-area classSmall telemetry payloads, operator and coverage dependentLow power with cellular power-saving modes

Use the table as a placement aid, not as a winner list. Want long reach and years on a battery? LoRaWAN may fit, but the accepted cost is low throughput and constrained downlink behavior. Want to move a firmware image quickly? Wi-Fi may fit, but the accepted cost is access-point planning and higher active energy. Want a dense building control network? Thread or Zigbee may fit, but the accepted cost is commissioning, router density, route repair, and channel planning.

34.13.1 Hidden Coupling

Range, rate, and power are the headline axes, but real decisions add more: topology, spectrum regime, cost, scale, latency, mobility, ownership, provisioning, updates, monitoring, and failure recovery. A mesh can reduce gateway count, but it can increase route churn, commissioning work, and security-key operations. A cellular link can remove local gateways, but it adds SIM lifecycle, coverage contracts, operator outages, and recurring fees. A high-rate Wi-Fi design can simplify application updates while forcing larger batteries or mains power.

Two teams can therefore both need “wireless sensors” and still choose oppositely. A utility may choose NB-IoT for scattered meters because licensed coverage and no site-owned gateways matter more than subscription cost. A factory may choose Zigbee or Thread for dense in-building sensors because local control, no recurring carrier fee, and mesh coverage matter more than wide-area reach. Neither decision is automatically wrong; each weights the axes differently.

A defensible selection names the layer being chosen, the constraint that eliminated alternatives, and the evidence still missing. For example: “Thread remains a candidate for the building mesh, but stairwell packet delivery, commissioning success, and route repair after router loss must be measured.” That sentence is stronger than “Thread is modern” because it turns protocol preference into testable engineering work.

34.14 Summary

Protocol selection is difficult because useful requirements compete. The first task is not to choose the most familiar protocol; it is to rank hard constraints, understand which layer each technology belongs to, and remove options that cannot meet the deployment evidence. Once the shortlist is real, later chapters can compare candidates systematically.

34.15 See Also

34.15.1 Protocol Selection Framework

Protocol Selection Framework

34.15.2 Systematic Selection

Systematic Selection

34.15.3 Protocol Anti-Patterns

Protocol Anti-Patterns

34.15.4 Selection Scenarios

Selection Scenarios

34.15.5 Protocol Selector Wizard

Protocol Selector Wizard

34.15.6 Radio Basics

Radio Basics

34.15.8 Core Topology Shapes

Core Topology Shapes

34.15.9 Energy-Aware Design

Energy-Aware Design

34.16 What’s Next

34.16.1 Apply A Process

Systematic Selection turns this challenge review into a repeatable elimination and scoring workflow.

34.16.2 Test Scenarios

Selection Scenarios applies the constraints to realistic deployment situations.

34.16.3 Avoid Mistakes

Protocol Anti-Patterns shows what happens when teams skip the constraint checks in this chapter.

34.16.4 Use the Selector

Protocol Selector Wizard provides the wider shortlist helper for review.

34.17 Key Takeaway

A protocol recommendation should survive challenge. Defend it against latency, power, range, payload, reliability, security, cost, gateway, and lifecycle constraints.