Introduction
As the number of IoT devices continues to grow, communication and connectivity among these devices have become a central concern. Communication is essential to IoT, whether using short-range wireless transmission or cellular communication. Communication protocols are particularly important; they define the rules and conventions that two entities must follow to complete communication or provide services.
This article introduces several IoT communication protocols. They differ in performance, data rate, coverage, power consumption, and memory requirements, and each protocol has its own advantages and limitations. Some protocols are suitable for small household devices, while others can be applied to large urban deployments. IoT communication protocols can be divided into two main categories:
- Access protocols: generally responsible for networking and communication among devices within a subnet.
- Communication protocols: typically run on top of the traditional Internet TCP/IP stack and handle device data exchange over the Internet.
1. Physical and Data Link Layer Protocols
1.1 Long-range Cellular Communication
2G / 3G / 4G
Refers to second, third, and fourth generation mobile communication systems.
NB-IoT
Narrowband IoT (NB-IoT) is an important branch of connectivity for massive machine-type communications. NB-IoT is built on cellular networks and consumes about 180 kHz of bandwidth. It can be deployed within GSM, UMTS, or LTE networks to reduce deployment cost and enable smooth upgrades. NB-IoT focuses on low-power wide-area (LPWA) IoT markets and is being adopted globally. Key characteristics include wide coverage, large connection capacity, reasonable data rate, low cost, low power consumption, and a simplified architecture.
Typical applications include smart parking, fire monitoring, water management, smart street lighting, shared bikes, and smart appliances.
5G
Fifth generation mobile communication technology aims for high data rates, reduced latency, energy efficiency, lower cost, increased system capacity, and massive device connectivity.
Applications include AR/VR, vehicle-to-everything (V2X), smart manufacturing, smart energy, wireless healthcare, home entertainment, connected drones, ultra-high-definition and panoramic streaming, personal AI assistance, and smart city services.
1.2 Long-range Non-Cellular Communication
WiFi
With the widespread adoption of home WiFi routers and smartphones, WiFi protocols are widely used in smart home systems. A major advantage of WiFi is direct Internet access. Compared with ZigBee, WiFi-based smart home solutions can avoid an additional gateway; compared with Bluetooth, they avoid dependence on mobile terminals such as smartphones.
Commercial WiFi coverage in public transportation, shopping malls, and other public spaces highlights its application potential.
ZigBee
ZigBee is a low-rate, short-range wireless communication protocol offering a reliable wireless data network. Main features include low data rate, low power consumption, low cost, support for a large number of network nodes, multiple network topologies, low complexity, quick response, reliability, and security. ZigBee has become a mainstream technology in IoT, with large-scale applications in industrial, agricultural, and smart home deployments.
LoRa
LoRa (Long Range) is a modulation technique that provides longer communication distances compared with many alternatives. LoRa is used in gateways, smoke detectors, water monitoring, infrared detection, asset tracking, power strips, and other IoT devices. As a narrowband wireless technology, LoRa can use time-of-arrival differences for geolocation. Typical use cases include smart city and traffic monitoring, metering and logistics, and agricultural positioning and monitoring.
1.3 Short-range Communication
RFID
Radio Frequency Identification (RFID) enables non-contact data communication between a reader and a tag for the purpose of identification. Typical applications include animal chips, vehicle immobilizers, access control, parking management, production line automation, and material management. A complete RFID system consists of readers, electronic tags, and a data management system.
NFC
Near Field Communication (NFC) is derived from RFID combined with wireless interconnect technologies. NFC provides a secure and fast communication method for many consumer electronic products. The term "near field" refers to the near electromagnetic field used for communication.
Applications include access control, attendance, visitor check-in, event sign-in, and security patrols. NFC supports both human-machine interaction and device-to-device interaction.
Bluetooth
Bluetooth is an open global standard for short-range wireless data and voice communication. It provides low-cost short-range wireless connectivity for fixed and mobile devices. Bluetooth enables wireless data exchange among mobile phones, PDAs, wireless headsets, laptops, and peripherals. It simplifies communication between mobile devices and between devices and the Internet.
1.4 Wired Communication
USB
Universal Serial Bus (USB) is an external bus standard that defines connections and communication between computers and peripherals. It is a common interface technology in PC environments.
Serial Port Protocols
Serial communication protocols define the packet structure including start bit, payload, parity, and stop bit. Common serial standards include RS-232, RS-422, and RS-485. Serial communication transmits data bit by bit over a small number of wires, which can reduce wiring costs for long-distance connections, though transmission speed is lower than parallel communication. Serial interfaces are commonly used in instrumentation and industrial equipment.
Ethernet
Ethernet is a local area network technology. The IEEE 802.3 standard specifies Ethernet technical standards, including physical cabling, electrical signaling, and media access control protocols.
MBus
MBus is a European standard two-wire bus for remote meter reading, mainly used for consumption meters such as heat and water meters.
2. Network and Transport Layer Protocols
IPv4
Internet Protocol version 4 (IPv4) is the fourth revision of the Internet Protocol and the first widely deployed version. IPv4 is the core protocol of the Internet and remains the most widely used version.
IPv6
Internet Protocol version 6 (IPv6) was developed to address the address space limitations of IPv4. IPv6 increases address availability and facilitates connectivity for a broader range of devices.
TCP
Transmission Control Protocol (TCP) is a connection-oriented, reliable, byte-stream transport layer protocol. TCP provides reliable communication services between paired processes on different but interconnected hosts, assuming only an unreliable datagram service from lower-level protocols.
6LoWPAN
6LoWPAN defines IPv6 over IEEE 802.15.4 for low-rate wireless personal area networks, enabling IPv6 connectivity for constrained devices.
3. Application Layer Protocols
MQTT
MQTT (Message Queue Telemetry Transport) is a lightweight publish/subscribe messaging protocol optimized for constrained environments such as low bandwidth, high latency, or unreliable networks. It is widely used in machine-to-machine (M2M) communication and IoT scenarios, including satellite-linked sensors, intermittently dialed medical devices, smart homes, and small devices.
CoAP
CoAP (Constrained Application Protocol) is a web-like protocol for IoT designed for small, low-power sensors, switches, valves, and similar components that require remote control or monitoring over standard Internet networks. Servers may choose not to respond to unsupported request types.
REST / HTTP
REST is an architectural style based on resources, where each resource is a network-representable entity such as an image or a song. RESTful APIs are commonly implemented using HTTP, an application-layer protocol characterized by simplicity and speed.
DDS
Data Distribution Service (DDS) is a middleware protocol for distributed real-time data distribution. DDS provides publish/subscribe communications for real-time systems and serves as a data-centric integration middleware in distributed networks.
AMQP
Advanced Message Queuing Protocol (AMQP) is an open application-layer standard for message-oriented middleware. AMQP enables clients and messaging middleware to exchange messages regardless of product or implementation language. Implementations include systems such as RabbitMQ.
XMPP
XMPP is a protocol based on a subset of XML that provides extensibility and flexible development in XML environments. Extended XMPP can support content publishing systems and address-based services by sending extended messages.
4. Protocol Comparisons
4.1 NB-IoT vs LoRa
First, frequency bands. LoRa operates in unlicensed sub-1 GHz bands and generally does not require licensing fees. NB-IoT and cellular technologies use licensed sub-1 GHz bands, which typically require fees.
Second, battery life. LoRa modules have characteristics that help handle interference, network overlap, and scalability, but they do not provide the same quality-of-service guarantees as cellular protocols. NB-IoT, designed with QoS considerations, does not typically match LoRa in raw battery lifetime.
Third, device cost. LoRa endpoints tend to be simpler, easier to develop, and better compatible with low-cost microcontrollers. Low-cost LoRa modules are readily available on the market.
Fourth, network coverage and deployment timeline. The NB-IoT standard was published in 2016; beyond standardization, commercial adoption and the build-out of the ecosystem require time and investment. The LoRa ecosystem is relatively mature, and many countries are deploying or have deployed nationwide networks.
4.2 Bluetooth, WiFi, and ZigBee
WiFi is widely adopted and ubiquitous in homes and offices. ZigBee offers low power consumption and mesh networking. UWB provides very high data rates. Bluetooth offers simple pairing and ease of use. None of these technologies fully meets all smart home requirements on its own.
Bluetooth enabled short-range wireless communication but has limitations such as protocol complexity, higher power consumption, and higher cost, making it less suitable for some industrial control and low-power home network scenarios. Bluetooth range is typically around 10 meters and it can be sensitive to interference and security concerns.
WiFi is a short-range RF technology that provides strong mobility and easy access to network signals, suitable for office and home environments. A notable drawback is susceptibility to radio interference.
ZigBee supports large networks with up to tens of thousands of endpoints per network, making it suitable for home, industrial, and agricultural applications. Typical Bluetooth and WiFi network sizes are much smaller. ZigBee also offers low power consumption and low cost.
4.3 MQTT vs CoAP
MQTT is a many-to-many messaging protocol that uses an intermediary broker to decouple producers and consumers. Clients publish messages and the broker determines routing and copies messages to subscribers. MQTT supports persistence features but is best used as a real-time messaging bus.
CoAP is primarily a point-to-point protocol for state transfer between clients and servers. Although CoAP supports observing resources, it is best suited to state transfer models rather than pure event-driven architectures.
MQTT clients establish persistent TCP connections, which generally works well for many deployments. CoAP uses UDP for exchanges between clients and servers; in NAT environments, tunneling or port forwarding may be required to allow CoAP, and some device management protocols may establish front-end connections first.
MQTT does not include built-in support for content typing or metadata to help clients interpret payloads. MQTT messages can carry arbitrary payloads, so all clients must agree on payload formats. CoAP, by contrast, provides built-in support for content negotiation and resource discovery, enabling devices to probe each other to determine how to exchange data.
Both protocols have advantages and disadvantages, and choosing between them depends on the specific application requirements.
ALLPCB