Computer Basics

Internet of Things (IoT) Explained: Architecture, Protocols, and Security Risks

The Internet of Things (IoT) is the network of everyday physical objects – sensors, appliances, vehicles, machines – that carry embedded sensors and wireless connectivity so they can send and receive data over the internet with little or no human input. IoT Analytics counted 21.1 billion connected IoT devices worldwide by the end of 2025, growing about 14% a year toward roughly 39 billion by 2030. This guide defines IoT, shows how a device works end to end, and covers its applications, protocols, and main security risks.

In shortThe Internet of Things is everyday physical objects fitted with sensors and connectivity that exchange data over the internet. A device qualifies when it has a unique ID, at least one sensor or actuator, and network connectivity – it senses, sends data to edge or cloud, and acts on the result. About 21.1 billion were connected by end of 2025, heading toward ~39 billion by 2030.
21.1B
Connected devices (end 2025)
~39B
Forecast by 2030
~14%
Yearly growth
~60%
Are consumer devices

What Is the Internet of Things?

The Internet of Things is a system where physical objects connect to IP networks and exchange data without manual input:

  • What counts as IoT: a device needs a unique identifier (IP address or device ID), at least one sensor or actuator, and network connectivity.
  • The range: from a $5 temperature sensor on LoRaWAN to a $50,000 CNC machine streaming vibration data for predictive maintenance.
  • Origin: the term was coined by Kevin Ashton in 1999 at MIT’s Auto-ID Center, in the context of RFID supply-chain tracking.

Best for understanding: if an everyday object can sense something and report it over a network, it is IoT.

How Does an IoT Device Work, End to End?

An IoT device works by sensing the physical world, sending that data over a network to edge or cloud compute, then acting on the result – a four-stage loop:

  • Sense. A sensor or actuator (temperature, motion, vibration, GPS) captures a reading from the physical environment as analog or digital data.
  • Connect. The device sends data over a radio (Wi-Fi, Bluetooth, Zigbee, LoRaWAN, or cellular NB-IoT), often through a gateway that translates mixed protocols into one format.
  • Process. Compute happens at the edge (a local gateway like a Raspberry Pi or NVIDIA Jetson) for low latency, or in the cloud (AWS IoT Core, Azure IoT Hub) for storage, analytics, and machine learning.
  • Act. The result drives an action – a dashboard alert, an automated control (turn on HVAC, open a valve), or a command sent back to the device.
2026 trend: hybrid edge + cloudReal-time, high-frequency control runs at the edge near the device, while the cloud handles long-term storage, heavy analytics, and fleet management – splitting the work to cut latency and bandwidth cost.

IoT Architecture: 4 Layers

IoT systems are organized into 4 functional layers, each handling one stage of data flow from physical sensing to the end-user app:

Perception layer

The physical sensors and actuators that touch the environment – temperature sensors (DS18B20, plus or minus 0.5C), pressure sensors, RFID readers, servo motors, relays. Generates the raw data.

Network layer

Moves data from devices to compute. Wi-Fi, Zigbee (250 kbps, 10-100 m), Z-Wave, LoRaWAN (up to ~15 km rural), and NB-IoT (deep building penetration over cellular).

Processing layer

Turns raw data into insight. Edge gateways cut latency and bandwidth; cloud platforms (AWS IoT Core, Azure IoT Hub) add storage, analytics, and ML pipelines.

Application layer

Delivers data and control to people – dashboards (Grafana), mobile apps, and automated control. Industrial SCADA and consumer smart-home apps both live here.

IoT Communication Protocols

IoT splits into connectivity radios that carry the data and messaging protocols that format it. Two messaging protocols dominate because they are efficient on tiny devices:

  • MQTT (Message Queuing Telemetry Transport): a publish-subscribe protocol for low-bandwidth or unreliable networks. Minimum header is just 2 bytes; runs over TCP port 1883 (plain) or 8883 (TLS). Used in Amazon Alexa and industrial sensor networks.
  • CoAP (Constrained Application Protocol): a RESTful protocol over UDP port 5683 with a 4-byte header, for devices too small to run HTTP – 8-bit microcontrollers with under 10 KB of RAM. Defined in RFC 7252.
  • Radios: Wi-Fi for high-bandwidth devices, Bluetooth/BLE for wearables, Zigbee and Thread for low-power mesh, and Matter as an interoperability layer that runs over Wi-Fi, Ethernet, or Thread to unify smart-home ecosystems. See how computers work for the networking basics underneath.
Minimum message header size (bytes, lower is leaner)
MQTT2 B
CoAP4 B
HTTP20 B

Consumer IoT Applications

Consumer IoT covers connected devices in the home and on the body. Three categories show the range of sensor, connectivity, and processing needs:

Consumer IoT Applications - Internet of Things (IoT) Explained: Architecture, Protocols, and Security Risks

Smart thermostat

Ecobee SmartThermostat Premium uses occupancy sensors, Wi-Fi, and a cloud API to learn schedules and cut HVAC energy by up to 26% (Ecobee, 2022). Works with Alexa, HomeKit, and Google Home.

Smart security camera

Arlo Ultra 2 streams 4K HDR over Wi-Fi, runs on-device motion detection on a dedicated ML accelerator, and stores footage to the cloud. Active streaming draws about 8-10 W.

Smart speaker

Amazon Echo (5th gen) uses seven beam-forming microphones for far-field voice; its MediaTek quad-core SoC runs Alexa, with speech processed server-side over TLS.

Best for: convenience and automation at home – low cost, easy setup, but the weakest security posture of any IoT class.

Industrial IoT (IIoT) Applications

Industrial IoT applies connected sensors and analytics to manufacturing, logistics, and infrastructure. Two use cases dominate current deployments:

  • Predictive maintenance: MEMS vibration sensors (10-40 kHz), temperature, and oil-quality sensors on motors and pumps stream to ML models that detect bearing wear early. GE’s Predix reported a 25% drop in unplanned downtime; unplanned industrial downtime costs an estimated $50 billion a year across Fortune 500 manufacturers (Aberdeen, 2019).
  • Supply-chain tracking: RFID tags (UHF Gen2) and GPS asset trackers monitor location, cold-chain temperature (2-8C for pharma), and shock from factory to customer. Walmart’s 2022 RFID mandate targets 98%+ inventory accuracy vs a ~63% industry average without it.
  • Scale signal: BMW’s private 5G factory network links thousands of sensors to edge controllers that optimize throughput in real time.

Best for: uptime-critical operations – higher cost and longer device life, with certificate-based security built in.

3 Major IoT Security Risks

IoT security failures are well documented at scale, and three attack vectors cause most compromises:

3 Major IoT Security Risks - Internet of Things (IoT) Explained: Architecture, Protocols, and Security Risks
  • Default credentials: the Mirai botnet (Sept 2016) took over 600,000 routers, cameras, and DVRs using just 62 factory username-password pairs. Its Oct 21 2016 DDoS on Dyn DNS peaked at 1.2 Tbps and knocked Twitter, Reddit, GitHub, and Spotify offline.
  • Unpatched firmware: Palo Alto Networks (2020) found 57% of IoT devices vulnerable to medium- or high-severity attacks and 98% of IoT traffic unencrypted. Devices with no update path stay exploitable indefinitely.
  • Lack of encryption: plaintext MQTT, Zigbee without AES-128, and older Z-Wave permit traffic interception. A 2019 NIST study found only 17% of tested consumer IoT devices enforced TLS to the cloud.
Security warningChange default passwords on every new device, enable automatic firmware updates, and put IoT gear on a separate network or VLAN. The consumer-IoT baseline ETSI EN 303 645 bans default passwords and requires a secure update path – buy devices that meet it.

Consumer IoT vs. Industrial IoT Comparison

Consumer and Industrial IoT share the same architecture but differ sharply in reliability, security, and latency needs:

DimensionConsumer IoTIndustrial IoT (IIoT)
Primary protocolWi-Fi, Bluetooth, ZigbeeLoRaWAN, NB-IoT, MQTT over LTE, OPC-UA
Device cost$5–$300$50–$50,000+
Update frequencyIrregular, user-managedScheduled, managed OTA via MDM
Uptime requirementBest-effort, >95%Mission-critical, >99.9%
Latency toleranceSeconds acceptableSub-100 ms for control loops
Data volumeKB–MB per dayGB–TB per day per facility
Security postureFrequently default passwords, no TLSCertificate-based auth, VPN, segmented VLAN
Lifespan2–5 years10–20 years

For the hardware powering the processing layer – edge gateways, CPUs, and storage – see the computer hardware guide and what a CPU is.

Last Thoughts on the Internet of Things

The Internet of Things is everyday objects made to sense and report over a network, and its 21.1 billion connected devices in 2025 all run the same four-stage loop – sense, connect, process, act – across four architecture layers. The network and processing layers decide latency, cost, and security; MQTT and CoAP handle messaging for the smallest devices. The split between cheap, lightly secured consumer gear and uptime-critical industrial systems is the line that matters most in practice.

Security stays the defining challenge: with most traffic unencrypted and a majority of devices unpatched, the Mirai botnet showed how default credentials at scale become attack infrastructure. Treat every connected device as something that must be identified, updated, and isolated – the same discipline industrial deployments already apply through certificates, VPNs, and segmented networks.

Key Takeaways:

  • The Internet of Things is everyday physical objects with sensors and connectivity that exchange data over the internet; a device qualifies when it has a unique ID, a sensor or actuator, and a network connection.
  • There were 21.1 billion connected IoT devices by the end of 2025 (IoT Analytics), growing ~14% a year toward ~39 billion by 2030; about 60% are consumer devices.
  • Every IoT device runs a four-stage loop – sense, connect, process, act – across four architecture layers: perception, network, processing, and application.
  • MQTT (2-byte header, pub-sub) and CoAP (4-byte header over UDP) handle messaging for constrained devices; Wi-Fi, Bluetooth, Zigbee, Thread, and Matter carry the data.
  • The Mirai botnet (2016) hijacked 600,000 devices with 62 default credential pairs to launch a 1.2 Tbps DDoS – default passwords, unpatched firmware, and no encryption are the top three risks.
  • Industrial IoT needs >99.9% uptime and 10-20 year device life with certificate-based security, versus 2-5 year, lightly secured consumer IoT.

Frequently Asked Questions (FAQs)

How many IoT devices are there in 2024?

IoT Analytics reported 15.9 billion connected IoT devices globally in 2024. The count excludes smartphones, tablets, and traditional PCs, counting only purpose-built connected devices.

What is MQTT used for in IoT?

MQTT is a lightweight publish-subscribe messaging protocol used in IoT for sending sensor data over low-bandwidth or unreliable networks. Its 2-byte minimum header makes it suitable for microcontrollers.

What caused the Mirai botnet attack?

The Mirai botnet exploited default factory credentials on 600,000 IoT devices in 2016 using a list of 62 username-password pairs, creating a 1.2 Tbps DDoS attack that disrupted major websites.

What are the 4 layers of IoT architecture?

The 4 IoT architecture layers are: perception (sensors/actuators), network (Wi-Fi/Zigbee/LoRaWAN), processing (edge/cloud compute), and application (dashboards/control interfaces).

What is the difference between IoT and IIoT?

IoT refers to consumer-oriented connected devices (smart home, wearables). IIoT is Industrial IoT — connected sensors and systems in manufacturing and logistics requiring >99.9% uptime and 10–20 year device lifespans.

Nizam Ud Deen

Muhammad Nizam Ud Deen Usman is the founder of theCoreiTech and the author of The Local SEO Cosmos. Nizam works as an SEO consultant and content strategy expert with more than a decade of experience in digital marketing and IT, and he also founded ORM Digital Solutions, a digital agency serving medium and large businesses. He holds a degree from the University of Education, Lahore (Multan Campus), and was listed among the top 20 SEO experts in Pakistan in 2024. Nizam started theCoreiTech in 2012 to make computers easier to understand and use for everyone. Connect with Nizam on LinkedIn (seoobserver), X (@SEO_Observer), or at nizamuddeen.com.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button