Billions of everyday objects — sensors, meters, cameras, appliances and machines — are now connected to the internet. This changes what networks must do.

What Is IoT

The Internet of Things (IoT) is the network of physical devices with sensors, actuators, processing and connectivity, which collect data and act on it with little human involvement. Examples include smart homes (lights, thermostats, locks), wearables, smart cities (traffic, parking, street lights), healthcare monitoring, agriculture (soil moisture sensors), industrial IoT (machines in factories) and connected vehicles. A typical IoT architecture has a perception layer (sensors and devices), a network layer (connectivity and gateways), a processing layer (cloud or edge platforms that store and analyse data) and an application layer (dashboards, alerts and control).

Definition: Internet of Things. The network of physical objects fitted with sensors, software and connectivity, which collect and exchange data and can act on their environment.

IoT Connectivity and Protocols

IoT devices are often small, battery-powered and cheap, so they need efficient communication. Short-range technologies include Bluetooth Low Energy, Zigbee, Z-Wave and Wi-Fi. Long-range, low-power wide-area networks (LPWAN) include LoRaWAN, Sigfox and the cellular NB-IoT and LTE-M. 6LoWPAN carries IPv6 over low-power radios. Lightweight application protocols are MQTT (Message Queuing Telemetry Transport), a publish-subscribe protocol in which devices publish messages on topics to a broker, which delivers them to subscribers, running over TCP with tiny headers; and CoAP (Constrained Application Protocol), a REST-like protocol over UDP.

Impact on Networking

IoT affects networks in many ways. Scale: billions of devices need addresses, which drives IPv6 adoption. Traffic patterns: many devices sending small, frequent messages, mostly upstream. Power and constrained devices: protocols must be lightweight, and devices sleep most of the time. Latency: control of machines and vehicles needs fast responses, so data is processed close to the devices in edge and fog computing. Security: many devices have weak passwords and are rarely updated; the Mirai botnet (2016) took over hundreds of thousands of cameras and routers to launch huge DDoS attacks. Good practice includes changing default credentials, firmware updates, encryption (TLS, DTLS), placing IoT devices on separate VLANs and monitoring their traffic. Management: provisioning and updating huge fleets needs automation. Privacy: devices collect personal data.

Table 4.6: IoT communication technologies

Technology Range Typical use
BLE Short (metres) Wearables, beacons
Zigbee Short, mesh Smart home sensors
Wi-Fi Medium Cameras, appliances
LoRaWAN Long (km), low power Agriculture, smart cities
NB-IoT Long, cellular Meters, trackers

Example 4.6: MQTT publish-subscribe

Problem: A broker has subscribers: a dashboard on topic college/lab1/temp, an alarm on college/+/temp (+ matches one level), and a logger on college/# (# matches everything below). Which receive a message published on (a) college/lab1/temp, (b) college/lab2/temp, (c) college/lab1/humidity?

Solution:

  1. (a) Exact match for the dashboard; + matches lab1 for the alarm; # matches for the logger: all three.
  2. (b) The alarm and the logger.
  3. (c) Only the logger, since the others need temp.

Result: Topics and wildcards let one message reach exactly the interested subscribers.

subs = {"dashboard": "college/lab1/temp",
        "alarm": "college/+/temp", "logger": "college/#"}
def matches(pattern, topic):
    p, t = pattern.split("/"), topic.split("/")
    for i, part in enumerate(p):
        if part == "#":
            return True
        if i >= len(t) or (part != "+" and part != t[i]):
            return False
    return len(p) == len(t)
for topic in ["college/lab1/temp", "college/lab2/temp",
              "college/lab1/humidity"]:
    got = [s for s, pat in subs.items() if matches(pat, topic)]
    print(f"{topic:<22} -> {', '.join(got)}")

Output

college/lab1/temp      -> dashboard, alarm, logger
college/lab2/temp      -> alarm, logger
college/lab1/humidity  -> logger

Common mistakes

  • Leaving IoT devices with default passwords, the cause of botnets such as Mirai.
  • Assuming every IoT device can run full TCP/IP and TLS easily; many are highly constrained.
  • Sending all data to the cloud when time-critical decisions should be made at the edge.

Key takeaways

  • IoT connects physical devices with sensors and actuators to networks.
  • Layers: perception, network, processing and application.
  • Technologies: BLE, Zigbee, Wi-Fi, LoRaWAN, NB-IoT; protocols MQTT and CoAP.
  • Impact: scale and IPv6, small upstream traffic, edge computing, security and management.

Practice questions

  1. What is MQTT?
  2. Why does IoT drive IPv6 adoption?
  3. What was the Mirai botnet?

Answers to the practice questions

  1. A lightweight publish-subscribe messaging protocol for IoT, using a broker and topics.
  2. Billions of devices need addresses, more than IPv4 can provide.
  3. Malware that took over poorly secured IoT devices and used them for large DDoS attacks.

Sources

  • Official BCA syllabus Computer Networks, course code 26BCA404DS02, Unit IV