Study smarter with Fiveable
Get study guides, practice questions, and cheatsheets for all your subjects. Join 500,000+ students with a 96% pass rate.
When you're building or analyzing IoT systems, the communication protocol you choose determines everything—power consumption, range, latency, scalability, and security. You're being tested on your ability to match protocols to use cases, understand the tradeoffs between bandwidth, power, range, and reliability, and explain why certain architectures work better for specific applications. This isn't just about memorizing acronyms; it's about understanding the engineering decisions behind connected systems.
These protocols fall into distinct categories based on their design philosophy and constraints. Some prioritize minimal power draw for battery-operated sensors, others optimize for long-range coverage across smart cities, and still others focus on reliable message delivery in enterprise environments. Don't just memorize protocol names—know what problem each one solves and when you'd choose it over alternatives.
These protocols are engineered for IoT's toughest environments: low bandwidth, high latency, limited processing power, and unreliable connections. They strip away overhead to keep devices running efficiently.
Compare: MQTT vs. CoAP—both target constrained devices, but MQTT uses publish/subscribe over TCP while CoAP uses request/response over UDP. Choose MQTT for event-driven telemetry; choose CoAP when you need REST-like interactions with minimal overhead.
When IoT devices need to integrate with existing web infrastructure or require continuous bidirectional communication, these protocols provide the connectivity layer.
Compare: HTTP vs. WebSocket—HTTP requires a new connection for each request (high overhead for frequent updates), while WebSocket maintains one connection for continuous bidirectional flow. Use HTTP for infrequent queries; use WebSocket for dashboards, live monitoring, or any application needing instant updates.
These protocols dominate the personal area network (PAN) space, connecting devices within homes, buildings, and wearables. They prioritize low power consumption and mesh networking for extended coverage.
Compare: Zigbee vs. Z-Wave—both use mesh networking for home automation, but Zigbee operates at 2.4 GHz (global but crowded) while Z-Wave uses sub-1 GHz (less interference but region-specific frequencies). Zigbee supports more devices per network; Z-Wave guarantees cross-vendor compatibility through mandatory certification.
When devices need to communicate over kilometers rather than meters—while running on batteries for years—LPWAN protocols deliver. These are the backbone of smart city, agricultural, and utility monitoring deployments.
Compare: LoRaWAN vs. NB-IoT—both serve LPWAN applications, but LoRaWAN uses unlicensed spectrum (lower cost, you control infrastructure) while NB-IoT leverages cellular networks (better coverage, carrier dependency). Choose LoRaWAN for private deployments; choose NB-IoT when you need guaranteed QoS and existing cellular coverage.
| Concept | Best Examples |
|---|---|
| Constrained device messaging | MQTT, CoAP, AMQP |
| Web integration | HTTP/HTTPS, WebSocket |
| Short-range mesh networking | Zigbee, Z-Wave |
| Personal area / wearables | BLE |
| Long-range, low-power | LoRaWAN, NB-IoT |
| Real-time bidirectional | WebSocket, MQTT |
| Enterprise reliability | AMQP, HTTP/HTTPS |
| Sub-1 GHz operation | Z-Wave, LoRaWAN |
Which two protocols both use mesh networking for home automation, and what frequency bands differentiate them?
You're designing a smart agriculture system with sensors spread across 10 km of farmland, battery-powered, sending data once per hour. Which protocol category fits best, and what are your two main options?
Compare MQTT and CoAP: What transport layer does each use, and how does this affect their suitability for unreliable networks?
A factory needs to integrate IoT sensor data with existing enterprise middleware, requiring guaranteed message delivery and complex routing patterns. Which protocol would you recommend and why?
Explain why you might choose WebSocket over HTTP for an IoT dashboard displaying live sensor readings, referencing the connection model of each protocol.