IoT Fundamentals · Study deck

IoT Architecture Planner

Picture a farm owner who needs a dry-soil warning before a pump is damaged.

Physics Phoebe is your guide for this deck.

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

After studying this chapter

Learning objectives

You will be able to:

  • Design a complete five-layer IoT architecture from sensing through application delivery
  • Evaluate edge-versus-cloud processing trade-offs for a given latency and bandwidth budget
  • Estimate hardware and recurring costs for different architectural approaches
  • Diagnose potential bottlenecks in data flow, gateway capacity, and processing pipelines
iotclass.org

Major section

In 60 Seconds

A diagram with five boxes is not yet an architecture.

  • The owner needs to know where the reading begins, where a safe local action can happen, how the warning travels, and who notices a broken path.
  • Latency means the time a result takes to travel through the system.
  • A protocol means the agreed rules used to exchange messages.
iotclass.org

Major section

Step 1: Define Your Application

where DmonthD_{\text{month}}Dmonth​ is monthly data volume in MB, NsensorsN_{\text{sensors}}Nsensors​ is sensor count, fdayf_{\text{day}}fday​ is messages per sensor per day, and BmsgB_{\text{msg}}Bmsg​ is bytes per message.

  • If edge filtering removes 70% of non-actionable records, cloud ingest becomes about 13.213.213.2 MB/month.
  • That reduction directly affects backhaul usage, storage cost, and query latency.
  • Problem: Assuming one gateway can cover an entire deployment area.
iotclass.org

Major section

Deep Dive: Place Computation Where the Constraint Lives

An IoT architecture spans sensing, networking, processing, cloud, and application layers, but the decision that shapes cost and behavior most is where computation runs.

  • The same analytics can execute on the device, at the edge through a nearby gateway, or in the cloud.
  • The edge sits between those extremes.

Why it matters

The alarm decision belongs on the device or gateway because staff need it during an internet outage.

Use the edge, fog, and cloud tiers as a placement record: immediate sensing and actuation stay low, local aggregation and offline decisions sit in the fog or gateway layer, and fleet analytics plus management live in the cloud.
Use the edge, fog, and cloud tiers as a placement record: immediate sensing and actuation stay low, local aggregation and offline decisions sit in the fog or gateway layer, and fleet analytics plus management live in the cloud.
iotclass.org

Major section

Deep Dive: Place Computation Where the Constraint Lives (continued)

The cloud still aggregates events and retrains models, but it should not sit in the real-time inference path.

  • Below it, the fog layer handles local processing and caching, while the edge/device layer contains sensors and actuators.
  • A supermarket cold-room monitor shows the split.
  • The hidden mechanism is ownership of state.
iotclass.org

Major section

Deep Dive: Place Computation Where the Constraint Lives (continued)

It may read DS18B20 or SHT31 probes every few seconds, trigger a local buzzer when temperature crosses a food-safety threshold, and publish summaries to a cloud dashboard.

  • The hourly trend, cross-site comparison, and maintenance report can live in the cloud because they need storage and fleet context more than millisecond timing.
  • Streaming raw 1080p video to the cloud for hazard detection costs large amounts of bandwidth, adds latency, and ships sensitive footage off-site.
  • The on-device tier is not one category of hardware, and treating it as one is a common planning mistake.
iotclass.org

Major section

Deep Dive: Place Computation Where the Constraint Lives (continued)

Running the detection model on a gateway or camera means only a compact event travels upstream: timestamp, camera ID, confidence score, and a short retained clip when policy allows.

  • That purpose-built nature is also why application domain changes the architecture more than the five-layer diagram alone suggests.
  • The device-vs-edge-vs-cloud choice is rarely all-or-nothing.
  • Each tier does the job it is suited for, and the architecture degrades gracefully instead of failing when the cloud link drops.
  • Each handoff should name message schema, retry behavior, timestamp source, and stale-data rules.
iotclass.org

Major section

Summary

Secure by design: Security is not an afterthought.

  • Optimize data flow: Process at the edge when possible to reduce costs.
  • Temperature Terry is excited! "I want to build the BIGGEST IoT system ever!" he shouts.
  • Building a great IoT system is like planning an awesome school project.

Key terms

Temperature Terry
Temperature Terry is excited!

Why it matters

If you process data close to the sensors (at the 'edge'), I last longer because you don't have to send everything far away to the cloud!".

iotclass.org

Deck summary

Key takeaways

A diagram with five boxes is not yet an architecture.

  • where DmonthD_{\text{month}}Dmonth​ is monthly data volume in MB, NsensorsN_{\text{sensors}}Nsensors​ is sensor count, fdayf_{\text{day}}fday​ is messages per sensor per day, and BmsgB_{\text{msg}}Bmsg​ is bytes per message.
  • An IoT architecture spans sensing, networking, processing, cloud, and application layers, but the decision that shapes cost and behavior most is where computation runs.
  • The cloud still aggregates events and retrains models, but it should not sit in the real-time inference path.
  • Secure by design: Security is not an afterthought.
iotclass.org

Retrieval practice

Recall check 1 of 4

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

Q1Which sequence covers all five layers of a basic IoT architecture?

ASensing, battery, cable, dashboard, invoice
BDevice, password, firewall, broker, chart
CSensing, networking, processing, cloud, application
DSensor, gateway, gateway, gateway, cloud
Show answer

Answer: C Each layer carries data toward an application decision.

Q2Why should the planner estimate data volume before choosing cloud storage?

ABecause storage cost is the only important architecture constraint
BBecause data volume affects gateway load, backhaul cost, storage cost, and processing placement
CBecause frequent messages favor local storage, so the estimate should set the gateway's storage capacity
DBecause the data-volume estimate replaces field validation and gateway testing
Show answer

Answer: B Data volume affects gateway capacity, bandwidth cost, storage cost, and processing location.

iotclass.org

Retrieval practice

Recall check 2 of 4

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

Q3A vineyard deploys 500 battery-powered soil-moisture sensors spread across 50 hectares with no Wi-Fi infrastructure. Which connectivity approach is most appropriate?

AWi-Fi with range extenders across the 50 hectares
BBluetooth LE mesh across all 500 sensors
CLoRaWAN with measured outdoor gateway coverage
DDirect cellular NB-IoT SIM in every sensor
Show answer

Answer: C Wide outdoor coverage with battery-powered, low-rate sensors is a classic LoRaWAN gateway fit.

iotclass.org

Retrieval practice

Recall check 3 of 4

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

Q4A gateway has enough sensor links, but its backhaul saturates on raw readings; what should the team inspect next?

AInspect reduction or buffering before the cloud hop.
BAdd more cloud dashboards without changing traffic
CIncrease sample rates, further saturating backhaul.
DReplace battery chemistry before measuring traffic.
Show answer

Answer: A The bottleneck is the flow leaving the gateway.

iotclass.org

Retrieval practice

Recall check 4 of 4

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

Q5A pump must react locally within one second when its cloud link fails; which placement best fits?

AMove the dashboard to the sensor but keep the decision in cloud
BProcess the alarm at the edge and send summaries to the cloud
CIncrease cloud storage but leave the decision remote
DSend every sample to cloud before making the alarm decision
Show answer

Answer: B Local processing can meet the timing and offline requirement.

Q6Complete the IoT architecture configuration in JSON:

A'network_layer': 'MQTT',
B'network_layer': 42,
C'network_layer': True,
D'network_layer': ['MQTT',
Show answer

Answer: A IoT architectures are often configured as JSON objects with layers.

iotclass.org

Print reference

Answers

Answer key.

  1. C · Each layer carries data toward an application decision.
  2. B · Data volume affects gateway capacity, bandwidth cost, storage cost, and processing location.
  3. C · Wide outdoor coverage with battery-powered, low-rate sensors is a classic LoRaWAN gateway fit.
  4. A · The bottleneck is the flow leaving the gateway.
  5. B · Local processing can meet the timing and offline requirement.
  6. A · IoT architectures are often configured as JSON objects with layers.
iotclass.org