IoT Fundamentals · Study deck

Why Protocol Choice Is Hard

Picture a farm sensor that must last through winter and report a burst pipe quickly.

Physics Phoebe is your guide for this deck.

protocolframeworkchallenge
Physics Phoebe, the module guide, in a scene from this chapter.
iotclass.org

After studying this chapter

Learning objectives

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.
  • Use a first-pass shortlist before doing weighted scoring or detailed lifecycle-cost work.
First-pass shortlisting removes impossible families before detailed scoring.
First-pass shortlisting removes impossible families before detailed scoring.
iotclass.org

Major section

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.

Key terms

Latency
Latency means the time from sending to a useful result.
iotclass.org

Major section

In 60 Seconds (continued)

A gateway is a device that joins one network to another.

  • Latency means the time from sending to a useful result.
  • This first screen cannot predict every site condition or future version.
  • It only makes the current trade clear.
  • A radio that reaches farther often sends less data or needs more energy.
iotclass.org

Major section

Start With the Story

You will explain competing protocol constraints and build a shortlist that excludes choices your deployment cannot support.

  • The opening preference becomes unreliable once parking, wearable, logistics, and building deployments reveal conflicting range, power, timing, security, and operational constraints.
  • Hard-stop gates remove candidates that cannot satisfy the deployment.
iotclass.org

Major section

Selection Dimensions

Site survey, antenna plan, weak-path tests, mobility assumptions.

  • Devices install successfully but cannot report reliably.
  • The device works in the lab but fails field lifetime targets.
  • Payload budget, retry policy, acknowledgment needs, latency contract.
  • A high-throughput link is overbuilt, or a low-data-rate link misses timing needs.
iotclass.org

Major section

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.
  • The trade-off is usually higher active energy, shorter practical range, or stronger infrastructure requirements.
  • A Wi-Fi camera needs airtime, roaming, firmware-update, and mains-power assumptions.
Protocol choice starts by ranking competing constraints before naming winners.
Protocol choice starts by ranking competing constraints before naming winners.
iotclass.org

Major section

The Constraint Triangle (continued)

The trade-off is usually lower payload rate, stricter duty behavior, delayed downlink, or site-specific coverage validation.

  • 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.
  • A LoRaWAN field sensor needs received-signal margin, duty-cycle, downlink, and battery-life evidence for the real site.
iotclass.org

Major section

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.
  • CoAP, MQTT, HTTP, or AMQP define what the message means.
  • UDP, TCP, DTLS, TLS, or QUIC carry it with particular ports, ordering, acknowledgement, and protection behavior.
  • This layer answers how bits reach the next hop.
Layer-aware selection builds a stack instead of comparing unrelated technologies.
Layer-aware selection builds a stack instead of comparing unrelated technologies.
iotclass.org

Major section

Layer Boundaries (continued)

Wi-Fi, Ethernet, or IEEE 802.15.4 share one local medium through frame and retry rules, while the physical layer moves bits over a band or wire.

  • This order supports the framework challenge: protocol selection is a set of compatible boundary contracts, so a familiar application protocol cannot repair an unsuitable route, frame budget, or radio path.
  • This layer answers how packets are addressed, adapted, or routed.
  • This layer answers how application data is named, encoded, requested, published, or acknowledged.
  • "Should we use MQTT or Wi-Fi?" compares an application protocol with a link-layer technology.
iotclass.org

Major section

Common Pitfalls

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.
  • "LoRaWAN or MQTT" and "Wi-Fi or CoAP" are layer mistakes.
  • The radio part is not the deployment.
iotclass.org

Major section

Place Each Candidate In Trade-Off Space

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.
  • LoRaWAN may fit, but the accepted cost is low throughput and constrained downlink behavior.

Key terms

Neither decision
Neither decision is automatically wrong; each weights the axes differently.
iotclass.org

Major section

Place Each Candidate In Trade-Off Space (continued)

A machine-vision camera on the same farm needs steady megabits per second and mains power, so Wi-Fi or Ethernet is more realistic.

  • Wi-Fi may fit, but the accepted cost is access-point planning and higher active energy.
  • Thread or Zigbee may fit, but the accepted cost is commissioning, router density, route repair, and channel planning.
  • Two teams can therefore both need "wireless sensors" and still choose oppositely.
iotclass.org

Major section

Place Each Candidate In Trade-Off Space (continued)

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.
  • Neither decision is automatically wrong; each weights the axes differently.
iotclass.org

Deck summary

Key takeaways

Eliminate Choices With Evidence, Not Habit: Picture a farm sensor that must last through winter and report a burst pipe quickly.

  • A gateway is a device that joins one network to another.
  • You will explain competing protocol constraints and build a shortlist that excludes choices your deployment cannot support.
  • Site survey, antenna plan, weak-path tests, mobility assumptions.
  • The common teaching shortcut is a triangle: range, energy, and throughput cannot all be optimized at once.
iotclass.org

Retrieval practice

Recall check 1 of 5

Physics Phoebe says: answer from memory, then check your reasoning.

Q1Why can a long-range radio still be a poor fit for a sensor that sends large images?

ARange alone supposedly guarantees image throughput.
BAll radios supposedly use equal energy per image byte.
CImages require no transport or application protocol
DLonger reach can mean lower rate or greater energy use.
Show answer

Answer: D Range, throughput and energy must be weighed together.

iotclass.org

Retrieval practice

Recall check 2 of 5

Physics Phoebe says: answer from memory, then check your reasoning.

Q2In a protocol-selection challenge, what should a strong answer include?

AName a familiar protocol without rejected options or field evidence
BThe same answer for every scenario, even when range, energy, or ownership changes
CA choice based on the shortest acronym and the most recent product announcement
DRank options using requirements, rejections and missing field evidence.
Show answer

Answer: D Protocol-selection challenges test tradeoff reasoning, not recall of one favorite option.

iotclass.org

Retrieval practice

Recall check 3 of 5

Physics Phoebe says: answer from memory, then check your reasoning.

Q3A team asks whether to use MQTT or Wi-Fi; what is the layer-aware answer?

AChoose Wi-Fi in place of MQTT because both carry sensor data
BReplace IP with MQTT to gain wireless range
CUse Wi-Fi for local links and MQTT for application messages.
DChoose only one because both are application protocols
Show answer

Answer: C They serve different layers and can coexist in one stack.

iotclass.org

Retrieval practice

Recall check 4 of 5

Physics Phoebe says: answer from memory, then check your reasoning.

Q4A candidate fails the required range even under the planned gateway layout; what should happen before detailed scoring?

ADeclare it the winner and skip field tests
BKeep it because its module price is low
CRemove it from the first-pass shortlist
DGive it extra points for familiar branding
Show answer

Answer: C A hard constraint failure makes detailed preference scoring wasteful.

Q5Why should protocol selection start with the dominant hard constraint?

ABecause the hard constraint identifies which advertised protocol feature to prioritize
BBecause protocol names are easier to compare than requirements
CBecause the hard constraint eliminates protocol families that cannot work.
DBecause the hard constraint should be converted into a cost score
Show answer

Answer: C Hard constraints protect the shortlist.

iotclass.org

Retrieval practice

Recall check 5 of 5

Physics Phoebe says: answer from memory, then check your reasoning.

Q6Why is the question 'MQTT or Wi-Fi?' a protocol-selection mistake?

ABecause MQTT is a radio protocol with longer range than Wi-Fi
BBecause Wi-Fi cannot carry application payloads at all.
CBecause MQTT and Wi-Fi are separate layers that can work together.
DBecause neither is ever used in IoT network designs.
Show answer

Answer: C A complete protocol stack needs choices at multiple layers.

iotclass.org

Print reference

Answers

Answer key.

  1. D · Range, throughput and energy must be weighed together.
  2. D · Protocol-selection challenges test tradeoff reasoning, not recall of one favorite option.
  3. C · They serve different layers and can coexist in one stack.
  4. C · A hard constraint failure makes detailed preference scoring wasteful.
  5. C · Hard constraints protect the shortlist.
  6. C · A complete protocol stack needs choices at multiple layers.
iotclass.org