58  Network Access & PHY

Key Concepts
  • Physical Layer: The lowest OSI layer; converts digital bits into physical signals (electrical, optical, or radio) and defines timing, voltage levels, and connector types
  • Medium Access Control (MAC): The sublayer above the Physical layer that governs when and how devices access the shared physical medium
  • Baseband Transmission: Sending a signal directly on the medium without modulation; used in wired Ethernet (Manchester encoding)
  • Broadband Transmission: Modulating data onto a carrier wave, allowing multiple channels on the same medium (cable TV, ADSL)
  • Duplex Mode: Half-duplex allows transmission in only one direction at a time; full-duplex allows simultaneous bidirectional transmission
  • Modulation: The process of encoding digital data onto an analogue carrier wave (ASK, FSK, PSK, OFDM) for radio transmission
  • Bit Rate vs Baud Rate: Bit rate is bits per second; baud rate is symbols per second; each symbol may carry multiple bits (e.g., QAM-16 carries 4 bits/symbol)

58.1 In 60 Seconds

Network access and physical layer protocols define how IoT devices physically transmit data – whether over Ethernet cables, Wi-Fi radio waves, Zigbee mesh, LoRa long-range links, or cellular networks. Each protocol offers different trade-offs in bandwidth (kbps to Gbps), range (meters to kilometers), and power consumption. Choosing the right physical layer protocol is the most fundamental IoT design decision because it constrains every layer above it.

Learning Objectives

By the end of this section, you will be able to:

  • Explain the role of network access and physical layer protocols in IoT systems
  • Compare wired (Ethernet) and wireless (Wi-Fi, Zigbee, LoRa, Cellular) protocols across bandwidth, range, and power dimensions
  • Map IoT protocols to network classifications (PAN, LAN, WAN)
  • Evaluate protocol selection based on bandwidth and coverage requirements
  • Trace the evolution of cellular protocols for IoT from 2G through 5G
  • Select appropriate protocols for different IoT deployment scenarios

58.2 Prerequisites

Before diving into this chapter, you should be familiar with:

  • Networking Basics: Understanding fundamental networking concepts including the OSI model, protocol layers, and basic data transmission principles is essential for grasping network access layer functions
  • Basic Electronics: Familiarity with radio frequencies, signal transmission, and the electromagnetic spectrum helps you understand physical layer wireless technologies
  • Communication Fundamentals: Knowledge of concepts like bandwidth, data rates, modulation, and error correction provides the foundation for comparing different physical layer protocols

Network access and physical layers are like the roads and vehicles that carry messages between friends who live far apart!

58.2.1 The Sensor Squad Adventure: The Great Message Relay Race

Sammy the Sensor had exciting news to share with his friend Max the Microcontroller, who lived all the way across Sensor City. But there was a problem - Sammy couldn’t just shout loud enough for Max to hear!

“I need to send my temperature reading to Max,” Sammy said. “But he’s SO far away!”

Lila the LED had an idea. “We need a MESSENGER! Like how people used to send letters on horseback!”

Just then, they met three different messengers, each with their own special transportation:

Ethel the Ethernet Cable said, “I travel on WIRES! I’m super fast and reliable, but I can only go where my cables are laid - like a train on tracks!”

Wally the Wi-Fi Wave said, “I fly through the AIR as invisible radio waves! I can reach anywhere in this room, but walls slow me down and I get tired after about 100 meters.”

Lori the LoRa Signal said, “I travel through the air too, but I use SPECIAL radio waves that can go REALLY far - even 10 kilometers! But I can only carry small messages, like postcards instead of packages.”

Sammy thought carefully. His temperature reading was just a small number, Max was on the other side of the city, and there were no wires between them.

“Lori the LoRa, you’re perfect for this job!” Sammy cheered.

The Sensor Squad learned that just like choosing between walking, biking, driving, or flying for a trip, IoT devices must choose the RIGHT way to send their messages based on how far, how fast, and how much data needs to travel!

58.2.2 Key Words for Kids

Word What It Means
Physical Layer The actual “roads” that carry messages - wires, radio waves, or light beams
Wi-Fi Invisible radio waves that let devices talk to each other through the air (short range)
Ethernet Super-fast messages that travel through special cables (like telephone wires for computers)
LoRa Special radio waves that can travel REALLY far but carry small messages
Bandwidth How much “stuff” you can send at once - like a skinny pipe vs. a fat pipe for water

When you hear “networking,” you might think of Wi-Fi or Ethernet cables. But underneath those familiar terms are two critical OSI layers: the Physical Layer (Layer 1) and the Data Link/Network Access Layer (Layer 2). These are the foundation of all network communication.

Physical Layer answers: “How do bits physically travel?” Through copper wires? Radio waves? Fiber optic light? It defines voltages, frequencies, and physical connectors.

Network Access Layer answers: “How do devices share the physical medium and address each other locally?” It handles MAC addresses, frame formatting, and media access control.

Term Simple Explanation
Physical Layer How bits physically travel – wires, radio waves, light pulses
Network Access Layer How devices share medium and address each other locally
Ethernet (802.3) Wired LAN protocol – reliable, high bandwidth, requires cables
Wi-Fi (802.11) Wireless LAN – high bandwidth, short range (50-100m indoors)
802.15.4 Low-power wireless – foundation for Zigbee, Thread
LoRa Long-range radio – kilometers of range on low power
Cellular Mobile networks – ubiquitous coverage, higher power and cost
MVU: Medium Access Control (MAC)

Core Concept: MAC protocols determine when devices can transmit on a shared medium – using methods like CSMA/CA (listen before talk) or TDMA (assigned time slots) to prevent collisions when multiple devices want to communicate simultaneously.

Why It Matters: In IoT networks with hundreds of sensors sharing one wireless channel, uncoordinated transmission causes collisions that waste energy and bandwidth. MAC efficiency directly impacts battery life and network capacity.

Key Takeaway: Choose CSMA/CA for low-traffic sporadic sensors (Wi-Fi, Zigbee), TDMA for deterministic industrial control (WirelessHART), and understand that MAC overhead can consume 20-50% of available airtime in dense IoT deployments.

Check Your Understanding: MAC and Physical Layer Fundamentals


58.3 Chapter Overview

The network access and physical layers form the foundation of IoT connectivity. These protocols define how devices physically connect to networks and how data is transmitted over communication media (wired or wireless).

Diagram of the network protocol stack with layers from Physical at the bottom through Data Link, Network, Transport, to Application at the top, highlighting the Network Access and Physical layers that handle physical transmission and local addressing
Figure 58.1: Network protocol stack highlighting Network Access and Physical layers

This section is divided into four focused chapters covering all aspects of network access and physical layer protocols:

58.4 Chapter Navigation

58.4.1 Wired Network Access: Ethernet for IoT

Explore IEEE 802.3 Ethernet standards for IoT deployments. Learn about 10/100/1000BASE-T speeds, Power over Ethernet (PoE), and when wired connectivity is the best choice for reliability and performance.

Topics covered:

  • Ethernet standards (10BASE-T, 100BASE-T, 1000BASE-T)
  • Power over Ethernet (PoE, PoE+, PoE++)
  • Use cases: IP cameras, industrial control, high-security applications
  • Worked examples comparing Ethernet vs wireless

58.4.2 Wireless Network Access: Wi-Fi for IoT

Understand IEEE 802.11 Wi-Fi evolution and IoT-specific standards. Compare Wi-Fi 4/5/6 and learn about Wi-Fi HaLow (802.11ah) for long-range IoT and Wi-Fi 6 (802.11ax) for dense deployments.

Topics covered:

  • Wi-Fi protocol evolution (802.11 b/g/n/ac/ax)
  • IoT-specific: Wi-Fi HaLow (1 km range) and Wi-Fi 6 (OFDMA, TWT)
  • Frequency band trade-offs (2.4 GHz vs 5 GHz)
  • Hands-on lab: ESP32 Wi-Fi scanning

58.4.3 Low-Power Networks: 802.15.4, LPWAN, and Cellular

Deep dive into low-power wireless technologies. Cover IEEE 802.15.4 (Zigbee, Thread), LPWAN (LoRaWAN, Sigfox, NB-IoT), and cellular IoT evolution from 2G to 5G.

Topics covered:

  • IEEE 802.15.4 and protocols (Zigbee, Thread, WirelessHART)
  • LPWAN comparison: LoRaWAN vs Sigfox vs NB-IoT vs LTE-M
  • Cellular evolution: 2G GSM to 5G (mMTC, URLLC, eMBB)
  • Licensed vs unlicensed spectrum trade-offs

58.4.4 Network Classification: PAN, LAN, and WAN

Understand how IoT protocols map to traditional network classifications. Learn about bandwidth-coverage trade-offs and practical deployment topologies.

Topics covered:

  • PAN: Bluetooth, Zigbee, Thread, Z-Wave
  • LAN: Wi-Fi, Ethernet, Wi-Fi HaLow
  • WAN: LoRaWAN, Cellular, Satellite
  • Bandwidth vs coverage quadrant analysis
  • Common IoT networking terminology

Layered Models:

Wireless Protocols:

Wired Protocols:

Protocol Comparison:

Learning:

58.5 Worked Example: Physical Layer Selection for a Cold Chain Logistics Center

Scenario: A pharmaceutical distribution center handles temperature-sensitive vaccines. They need three types of IoT connectivity:

  1. Cold storage rooms (6 rooms, 10 sensors each): Monitor temperature every 30 seconds, alert within 2 seconds if temperature exceeds 8 degrees C
  2. Loading dock cameras (12 cameras): Stream 1080p video for package verification
  3. Delivery truck tracking (25 trucks): Report GPS + temperature every 5 minutes while on the road

Step 1: Map requirements to physical layer constraints

System Data Rate Range Latency Power Source Environment
Cold storage sensors 50 bytes/30 sec = 13.3 bps <30m (inside rooms) <2 sec for alerts Battery (3 yr target) Metal shelving, cold (-25 C)
Dock cameras 2-5 Mbps continuous <100m (dock area) <200ms PoE (wired power) Indoor, some weather exposure
Truck tracking 20 bytes/5 min = 0.53 bps City-wide (50 km) Minutes OK Vehicle 12V On-road, moving

Step 2: Select technology for each

  • Cold storage sensors: Zigbee (802.15.4). Low data rate fits well. Battery operation. Mesh topology routes around metal shelving. 250 kbps capacity is 19,000x more than the 13.3 bps needed. Alternative considered: LoRa – rejected because range is only 30 m (LoRa is overkill) and lacks mesh self-healing.

  • Dock cameras: Ethernet (802.3) with PoE. 1080p video at 2-5 Mbps requires wired bandwidth. PoE delivers both power and data over one cable, eliminating power outlets at each camera location. Wi-Fi was considered but rejected because dock doors opening/closing create inconsistent RF environments.

  • Truck tracking: Cellular LTE-M. Only cellular provides city-wide mobile coverage. LTE-M uses 1.4 MHz bandwidth (sufficient for 20-byte GPS reports) at a fraction of full LTE power consumption. NB-IoT was considered but rejected because trucks move between cell towers and NB-IoT’s handover performance is poor for mobile devices.

Step 3: Calculate total cost of connectivity infrastructure

Component Unit Cost Qty Total
Zigbee coordinator + gateway $200 1 $200
Zigbee sensors (battery, temp-rated) $35 60 $2,100
PoE switch (16-port, Gigabit) $400 1 $400
IP cameras (PoE) $250 12 $3,000
Ethernet cabling + installation $50/drop 12 $600
LTE-M modules $15 25 $375
Cellular data plans ($3/mo/truck) $3 x 25 x 12 $900/yr
Year 1 Total $7,575

Key insight: Each connectivity choice is driven by a different physical constraint: cold storage needs low power and mesh reliability, cameras need high bandwidth and wired power, and trucks need mobile wide-area coverage. Trying to use a single technology for all three would either under-serve cameras (Zigbee’s 250 kbps cannot stream video) or over-spend on sensors (cellular modules at $15 + $36/yr each vs Zigbee at $35 one-time).

Try It: Cold Chain Cost Estimator

Adjust the deployment parameters to see how total Year 1 cost changes across different cold chain scenarios.

How do bandwidth and range relate for different physical layer technologies? Let’s quantify the fundamental physics tradeoff.

Link budget equation constrains all wireless protocols: \(P_{RX} = P_{TX} - L_{path} + G_{TX} + G_{RX}\)

Where \(P_{RX}\) is received power, \(P_{TX}\) is transmit power, \(L_{path}\) is path loss, and \(G_{TX}\)/\(G_{RX}\) are transmit/receive antenna gains (all in dB).

Free-space path loss (Friis formula): \(L_{path}(\text{dB}) = 20\log_{10}(d) + 20\log_{10}(f) + 32.45\)

Where \(d\) = distance (km), \(f\) = frequency (MHz).

Key insight: To double range while maintaining the same received power, you must:

  • Increase TX power by 6 dB (4x power), OR
  • Reduce data rate to improve receiver sensitivity (halving rate gains ~3 dB), OR
  • Reduce frequency to benefit from lower path loss

Quantifying protocol tradeoffs:

Protocol Frequency Data Rate Link Budget TX Power Typical Range
Wi-Fi 2.4 GHz 2400 MHz 54 Mbps 84 dB 20 dBm ~100 m
Zigbee 2400 MHz 250 kbps 84 dB 0 dBm ~30 m (mesh extends)
LoRa SF7 915 MHz 5.5 kbps 148 dB 14 dBm ~1.5 km
LoRa SF12 915 MHz 250 bps 157 dB 14 dBm ~4 km

Calculating LoRa’s range advantage over Wi-Fi:

Free-space path loss at 100 m (0.1 km), 2.4 GHz: \(20\log_{10}(0.1) + 20\log_{10}(2400) + 32.45 = -20 + 67.6 + 32.45 = 80\text{ dB}\)

Free-space path loss at 1 km, 915 MHz: \(20\log_{10}(1) + 20\log_{10}(915) + 32.45 = 0 + 59.2 + 32.45 = 91.7\text{ dB}\)

But LoRa SF12 uses chirp spread spectrum with 4096 chips per symbol, yielding processing gain: \(\text{Processing gain} = 10\log_{10}(4096) = 36.1\text{ dB}\)

Where LoRa’s advantage comes from:

  • Lower frequency: ~8.4 dB less path loss at the same distance vs 2.4 GHz (\(20\log_{10}(2400/915) = 8.4\) dB)
  • Lower data rate: improved receiver sensitivity from narrower noise bandwidth
  • Spread spectrum: 36 dB processing gain from chirp spreading
  • Combined link budget: 157 dB (LoRa SF12) vs 84 dB (Wi-Fi) = 73 dB advantage

Range extension: \(\text{Range ratio} = 10^{(73/20)} = 10^{3.65} \approx 4{,}467\text{x}\)

But that is theoretical maximum in free space. Real-world with obstacles, fading, and interference: ~40x range improvement (4 km vs 100 m).

Data rate cost: \(\frac{\text{54 Mbps (Wi-Fi)}}{\text{250 bps (LoRa SF12)}} = 216{,}000\text{x slower}\)

Key insight: There is no free lunch in physics. LoRa achieves 40x range by transmitting 216,000x slower and using spread spectrum. For a 50-byte packet: Wi-Fi takes ~7 microseconds, LoRa SF12 takes ~1.3 seconds. This is why you use Wi-Fi for video (needs Mbps) and LoRa for sensor readings (needs km range, not speed).

Try It: Free-Space Path Loss Calculator

Explore how distance and frequency affect wireless signal path loss using the Friis free-space model.


58.6 Quick Review Activities


58.7 Knowledge Check

Common Pitfalls

A 2.4 GHz Zigbee radio running O-QPSK at 250 kbps has a chip rate of 2 Mchip/s. Confusing these numbers leads to incorrect capacity calculations. Fix: identify whether a datasheet figure refers to bits, symbols, or chips per second before using it in calculations.

Physical layer problems in wired segments of an IoT system (e.g., SPI, UART bus noise, impedance mismatch) can cause intermittent data corruption that looks like RF interference. Fix: when diagnosing intermittent packet loss, check both wired and wireless physical layer integrity.

Selecting a 2.4 GHz frequency doubles FSPL compared to 915 MHz, directly affecting the network topology choices (fewer hops possible per gateway). Fix: evaluate physical layer parameters (frequency, power, modulation) jointly with topology and protocol stack decisions.

58.8 What’s Next?

Start with Wired Network Access: Ethernet for IoT to understand when and why wired connectivity remains essential for IoT, then progress through wireless technologies to build a complete understanding of network access options.

Topic Chapter Description
Wired Ethernet for IoT Wired Network Access: Ethernet for IoT IEEE 802.3 standards, Power over Ethernet (PoE), and when wired connectivity outperforms wireless for reliability-critical deployments
Wi-Fi for IoT Wireless Network Access: Wi-Fi for IoT 802.11 evolution, Wi-Fi HaLow (1 km range), Wi-Fi 6 (OFDMA, TWT), and frequency band trade-offs for dense IoT environments
LPWAN and Cellular Low-Power Networks: 802.15.4, LPWAN, and Cellular Zigbee, Thread, LoRaWAN, Sigfox, NB-IoT, and cellular IoT evolution from 2G through 5G NR
Network Classification Network Classification: PAN, LAN, and WAN How IoT protocols map to PAN, LAN, and WAN classifications with bandwidth-coverage trade-off analysis
Layered Network Models Layered Network Models OSI and TCP/IP layer framework — understanding how the physical and access layers fit into the full protocol stack
Protocol Integration LPWAN Comparison Side-by-side comparison of LoRaWAN, Sigfox, NB-IoT, and LTE-M across key deployment dimensions