Comm Notes
Internet of Things communication protocols, LPWAN, LoRa, NB-IoT, MQTT, and IoT network architecture
IoT Communication: Connecting Billions of Devices
Imagine a world where your refrigerator tells your phone that milk is running low, where street lights dim automatically when no one is walking nearby, and where factory machines predict their own breakdowns before they happen. This is the Internet of Things (IoT), and it all depends on specialized communication systems designed for machines that need to talk to each other — often using tiny amounts of power and sending small bursts of data over long distances.
What Makes IoT Communication Different?
Traditional communication systems were designed for humans. Voice calls need continuous, real-time streams. Video streaming demands high bandwidth. But IoT devices have radically different requirements. A temperature sensor might send just 10 bytes of data once every hour. A smart water meter might report usage once per day. These devices need to operate on a single battery for 5-10 years without replacement.
This creates a unique engineering challenge: how do you design a communication system optimized for tiny, infrequent data packets that must travel long distances using minimal power? The answer is a completely different set of protocols and architectures compared to what we use for smartphones and computers.
The key IoT communication requirements are:
- Ultra-low power consumption — devices must survive years on coin-cell batteries
- Long range — sensors may be deployed kilometers from the nearest gateway
- Low data rate — most IoT messages are just a few bytes
- Massive scalability — a single gateway must handle thousands of devices
- Low cost — sensors costing ₹100 cannot afford expensive radio hardware
LPWAN: The Backbone of IoT Connectivity
Low Power Wide Area Networks (LPWAN) are specifically designed for IoT. They sacrifice data rate (which IoT doesn't need much of) in exchange for incredible range and battery life. Think of it as the opposite of WiFi — instead of fast speeds over short distances, LPWAN gives you slow speeds over very long distances.
LoRa (Long Range): LoRa uses a clever modulation technique called Chirp Spread Spectrum (CSS). Instead of sending data on a single frequency, LoRa sweeps the signal across a wide bandwidth. This spreading gives the signal incredible noise immunity — a LoRa receiver can decode signals that are actually below the noise floor (negative SNR). The link budget can reach 157 dB, enabling communication over 10-15 km in rural areas and 2-5 km in urban environments.
The data rate trade-off is governed by the Spreading Factor (SF). Higher SF means longer range but slower speed:
- SF7: 5.5 kbps, shortest range, lowest power
- SF12: 0.25 kbps, longest range, highest power per bit
LoRaWAN is the network protocol built on top of LoRa's physical layer, defining how devices join networks, how messages are acknowledged, and how the network manages thousands of devices.
NB-IoT (Narrowband IoT): Unlike LoRa which uses unlicensed spectrum, NB-IoT operates within licensed cellular bands. It uses a 180 kHz bandwidth (one LTE resource block) and achieves deep indoor coverage through a link budget of 164 dB — about 20 dB better than regular LTE. NB-IoT can reach devices in deep basements and underground parking structures where GPS and regular cellular signals cannot penetrate.
NB-IoT achieves its extended coverage through repetition. A message might be transmitted up to 2048 times, and the receiver combines all copies coherently. The peak data rate is about 250 kbps downlink and 20 kbps uplink — plenty for IoT applications.
Sigfox: This ultra-narrowband technology uses just 100 Hz bandwidth per message. By concentrating all energy into such a narrow band, it achieves excellent sensitivity. However, it limits devices to just 140 uplink messages per day with a maximum payload of 12 bytes each.
IoT Network Architecture: Stars and Gateways
Most IoT networks use a star-of-stars topology. Devices communicate to gateways, which forward data to a central network server via the internet. This differs from mesh networks where devices relay messages for each other.
The typical IoT communication stack looks like this:
Device Layer: Sensors and actuators with embedded radios. These implement the physical layer (LoRa, NB-IoT, or others) and a minimal protocol stack. Processing power and memory are severely limited — many IoT microcontrollers have just 32 KB of RAM.
Gateway Layer: Gateways receive messages from hundreds or thousands of devices and forward them to the network server. A single LoRaWAN gateway with an 8-channel radio can handle approximately 1 million messages per day.
Network Server: Manages device authentication, message deduplication (if multiple gateways receive the same message), and routing to the correct application server.
Application Server: Where the actual business logic lives — analyzing sensor data, triggering alerts, and controlling actuators.
IoT Application Layer Protocols
At the application layer, IoT uses lightweight protocols designed for constrained devices:
MQTT (Message Queuing Telemetry Transport): A publish-subscribe protocol where devices publish data to named topics, and interested applications subscribe to those topics. The MQTT overhead is just 2 bytes minimum, making it incredibly efficient. A temperature sensor publishes to "building/floor3/room301/temperature" and any application subscribed to that topic receives the update.
CoAP (Constrained Application Protocol): Like HTTP but designed for IoT. It uses UDP instead of TCP (saving the overhead of connection establishment) and supports only 4-byte headers. CoAP maps naturally to REST APIs, making it easy to integrate IoT devices with web services.
LwM2M (Lightweight M2M): Built on CoAP, this protocol defines standard object models for device management — firmware updates, configuration changes, and monitoring device health remotely.
Power Budget Calculations
Understanding IoT power consumption requires analyzing the duty cycle. Consider a LoRaWAN device sending one message per hour:
- Sleep current: 1 μA (most of the time)
- Transmit current: 40 mA for 50 ms (the brief transmission burst)
- Receive window: 12 mA for 500 ms (listening for downlink responses)
Average current = (1 μA × 3594.45s + 40 mA × 0.05s + 12 mA × 0.5s) / 3600s ≈ 2.5 μA
With a 2400 mAh battery: lifetime = 2400 mAh / 0.0025 mA ≈ 960,000 hours ≈ 109 years (theoretical)
In practice, battery self-discharge and temperature effects limit actual life to 5-10 years, but this calculation shows why LPWAN enables truly deploy-and-forget sensor networks.
Security in IoT Communication
IoT security is critical because compromised devices can become attack vectors. The main challenges are:
- Constrained cryptography: Devices with 32 KB RAM cannot run full TLS stacks. Instead, IoT uses DTLS (Datagram TLS) over UDP, or pre-shared key authentication
- Key management: How do you securely provision keys to millions of devices during manufacturing?
- Firmware updates: Over-the-air updates must be authenticated and encrypted to prevent malicious code injection
- Network-level security: LoRaWAN uses AES-128 encryption with two separate keys — one for the network layer and one for the application layer, ensuring even the network operator cannot read application data
Comparison of IoT Technologies
| Parameter | LoRa | NB-IoT | Sigfox | WiFi (IoT) | BLE |
|---|---|---|---|---|---|
| Range | 10-15 km | 10 km | 30-50 km | 50 m | 100 m |
| Data Rate | 0.3-50 kbps | 250 kbps | 100 bps | 1-100 Mbps | 1 Mbps |
| Battery Life | 10+ years | 10+ years | 10+ years | Hours-Days | Months-Years |
| Spectrum | Unlicensed | Licensed | Unlicensed | Unlicensed | Unlicensed |
| Cost/Module | ₹200-400 | ₹300-600 | ₹200-400 | ₹100-200 | ₹50-150 |
| Best For | Rural sensors | Urban/indoor | Simple alerts | Rich data | Wearables |
Real-World IoT Deployments
Smart Agriculture: Soil moisture sensors using LoRa report data every 30 minutes to a central gateway mounted on a farmhouse. The farmer's app shows a moisture map and triggers irrigation automatically when levels drop below thresholds. Coverage over 100+ hectares with a single gateway.
Smart Cities: NB-IoT-connected parking sensors embedded in road surfaces detect vehicle presence and report to a central system. Drivers find available spots via an app, reducing congestion and emissions from circling.
Industrial IoT: Vibration sensors on factory motors transmit acceleration data every second via WiFi to an edge computing gateway that runs machine learning models predicting bearing failures 2-3 weeks in advance.
Key Takeaways
- IoT communication is fundamentally different from human communication — optimized for tiny data, long range, and ultra-low power rather than high throughput and low latency.
- LPWAN technologies (LoRa, NB-IoT, Sigfox) achieve 10+ km range with 10+ year battery life by trading data rate for link budget.
- LoRa uses Chirp Spread Spectrum to decode signals below the noise floor; NB-IoT uses repetition coding within licensed cellular spectrum.
- The IoT protocol stack (MQTT, CoAP, LwM2M) is specifically designed for constrained devices with minimal overhead.
- Security remains the biggest challenge — constrained devices cannot run full cryptographic stacks, requiring lightweight alternatives.
- Choosing the right IoT technology depends on range requirements, data rate needs, power budget, and whether licensed or unlicensed spectrum is appropriate for the deployment scenario.
Exam Focus
Revise definitions, diagrams, examples, and short-answer points for IoT Communication.
Interview Use
Prepare one clear explanation, one practical example, and one common mistake for this Communication Systems topic.
Search Terms
communication-systems, communication systems, communication, systems, modern, iot, iot communication
Related Communication Systems Topics