iwantcoding.com
🔥 Daily 👥 Rooms 🏆 Top Log in Sign up

4.3 Internet of Things

The Internet of Things connects physical devices - sensors, actuators, machines - to networks. Industrial IoT (IIoT), consumer IoT, and infrastructure IoT have distinct architecture patterns.

4.3 The Internet of Things

Three IoT categories

CategoryExamplesDriver
ConsumerPhones, watches, smart homeMass market
IndustrialFactory sensors, IIoTROI
InfrastructureSmart cities, traffic, utilitiesLong-lived asset

The five-layer IoT reference architecture

5. Application Dashboards, alerts, actuator commands 4. Cloud Ingestion, storage, analytics, control plane 3. Edge Local gateway; aggregation, filtering, inference 2. Network LPWAN, 5G, Wi-Fi, Bluetooth 1. Sensing Sensor + actuator + microcontroller Figure 4.3 - IoT reference architecture: data flows up; commands flow down.

Protocols by layer

LayerProtocols
NetworkLoRaWAN, NB-IoT, Sigfox, 5G, Wi-Fi, Bluetooth
MessagingMQTT (pub/sub), CoAP (REST-light), AMQP
IndustryOPC UA, Modbus, BACnet

Worked example - cold-chain logistics fleet

LayerImplementation
SensingGPS + temperature sensor
NetworkLoRa for tracking + 4G periodic upload
EdgeOn-board MCU buffers; alerts on threshold
CloudIngestion + dashboard + SMS
ApplicationDispatch sees route + temp in real time

Security in IoT - the hard part

RiskControl
Default credentialsPer-device unique at provisioning
Unsigned firmwareSigned updates with secure boot
No encryption on linkmTLS to cloud
10-year deployed lifePlan EOL and key rotation upfront
Mentor’s tip: Five layers: sense, network, edge, cloud, app. MQTT is the default protocol; LoRa + 5G the default networks. Security defaults are the source of most IoT incidents - mandate firmware signing + per-device identity before procurement.

Discussion

Loading…