skip to content

In a smart-building design, how does each radio reach the IP network: natively over Wi-Fi, through a Thread border router, or through a Zigbee, Z-Wave or LoRaWAN gateway?

level: seniorimportance: should knowfreq 32%

answer

  1. native, routed or translated
  2. 127-octet frames, 1280-octet MTU
  3. a border router routes, a hub translates
  4. gateways forward frames to a server

basics

~20 s

Wi-Fi and HaLow devices run IP natively. Thread and IPv6 over Bluetooth LE carry compressed IPv6 (6LoWPAN) to a border router that routes it. Zigbee and Z-Wave need a translating hub; LoRaWAN gateways forward radio frames to a network server.

solid answer

~50 s

There are three paths. **Native IP**: a Wi-Fi or `802.11ah` (HaLow) device runs a full IP stack and joins the LAN through an access point. **IPv6 through a border router**: Thread runs IPv6 over IEEE 802.15.4, and IPv6 over Bluetooth LE (RFC 7668) does the same over a star, using `6LoWPAN` header compression and fragmentation because an 802.15.4 frame is at most 127 octets while IPv6 needs a 1280-octet MTU; the border router routes packets, so the device is addressable end to end. **Translation**: Zigbee and Z-Wave devices do not run IP to the LAN, so a hub or controller terminates their network and translates; LoRaWAN gateways turn radio frames into IP packets for a network server, and the device's data reaches applications from the server side. The path decides what the building runs, where security terminates and what a hub failure takes down.

go deeper

for a junior

Recall the three ideas: some radios speak IP themselves, some need a border router, some need a translating hub or gateway. Know that Wi-Fi is the native-IP case.

for a middle

Explain why 6LoWPAN exists: 127-octet 802.15.4 frames against the 1280-octet IPv6 MTU, solved with header compression and fragmentation. Place Thread and Bluetooth LE on that path.

for a senior

Contrast a border router that routes with a hub that translates, and say what that changes for end-to-end security and failure. Describe LoRaWAN gateways forwarding frames to a network server, not IP from the device.

for a principal

Treat the path to IP as the infrastructure commitment: how many border routers, hubs and servers the site must run and patch. Weigh an open routed path against a translating hub that controls which devices reach the IP side.

## Three ways onto the IP network Every radio in a building brief eventually has to reach the IP network, where the building management system, the dashboards and the cloud services live. The radios do this in three different ways, and the difference shapes what the building has to install, operate and secure. | Path | Links | Does the device speak IP? | What joins it to the LAN | |---|---|---|---| | **Native** | Wi-Fi, Wi-Fi HaLow (`802.11ah`) | yes, a full stack | an access point | | **Routed IPv6** | Thread, IPv6 over Bluetooth LE | yes, compressed IPv6 | a border router | | **Translated** | Zigbee, Z-Wave | no | a hub or controller | | **Forwarded to a server** | LoRaWAN | no | gateways, then a network server | ## Native IP A Wi-Fi device is an ordinary IP host. It associates to an access point, gets an address, and talks to anything on the network. Wi-Fi HaLow keeps this property below 1 GHz: the Wi-Fi Alliance lists native IP support and "no proprietary hubs or gateways" among its benefits. The cost is on the device: a full IP stack and Wi-Fi security need memory and energy that many constrained sensors do not have. ## IPv6 through a border router Constrained radios carry very small frames. RFC 4944 notes that IEEE 802.15.4 has a physical-layer packet size of 127 octets, while IPv6 requires every link to carry at least 1280 octets. **6LoWPAN** closes that gap with an adaptation layer: 1. **Fragmentation and reassembly** carry a 1280-octet IPv6 packet across several small frames. 2. **Header compression** (RFC 6282, which updates RFC 4944) elides header fields that can be derived from the link layer or from shared context. RFC 8376 notes the IPv6 header for link-local traffic can shrink to 2 bytes in the best case. Two links use this path: - **Thread** runs IPv6 over the IEEE 802.15.4 MAC and PHY, in a mesh. A **Thread border router** connects the mesh to the Ethernet or Wi-Fi LAN. - **IPv6 over Bluetooth LE** (RFC 7668) uses 6LoWPAN techniques over a star. In the primary deployment, the central device acts as the **6LoWPAN Border Router (6LBR)** and each peripheral as a **6LoWPAN Node (6LN)**, because the central is assumed to be less constrained. RFC 9159 later added IPv6 mesh over Bluetooth LE through the Internet Protocol Support Profile. The key property: a border router **routes** IPv6 packets; it does not translate what the device says. The device is addressable end to end, and an application on the LAN talks to it directly. Matter builds on this: it is an IP-based application layer that runs over Wi-Fi and Thread and uses Bluetooth LE for commissioning. How IPv6 addresses are formed is covered with the IPv6 material. ## Translation through a hub or controller Zigbee and Z-Wave have their own network and application layers. Their devices do not send IP packets to the LAN. A **hub** (Zigbee) or **controller** (Z-Wave) runs the radio network, keeps track of its devices and translates their messages into something an IP application can use. RFC 7428 does define IPv6 over the ITU-T G.9959 radio that Z-Wave uses, but in common practice building deployments reach Z-Wave devices through a controller. ## LoRaWAN: gateways forward, the server terminates LoRaWAN gateways do not translate either. The LoRa Alliance describes them as converting RF packets to IP packets and back, relaying between end devices and a central network server over standard IP connections. The device's data reaches applications from the network-server side, not as IP from the device. Where a design does want IPv6 over such a link, RFC 8724 defines **SCHC**, a static-context header compression and fragmentation framework designed with LPWANs in mind: the device sends compressed IPv6 inside its LoRaWAN frames and the network side rebuilds it. How the gateways, network server and application server divide the work is covered with LoRaWAN's network architecture. ## What the path decides - **Infrastructure:** access points, border routers, hubs, gateways and servers each need power, placement, monitoring and patching. - **Where security ends:** routed IPv6 can be protected end to end; a translating hub decrypts the radio network's traffic and re-protects it on the IP side, so the hub becomes a trusted component. - **What fails together:** when a hub fails, every device behind it goes dark; several border routers or overlapping gateways can share the load. - **Lock-in:** a translating hub's software decides which devices and features reach the IP side; a routed path leaves the application layer open.

  • Why does a translating hub change the security picture compared with a border router?
    A border router forwards IPv6 packets, so device and application can protect traffic end to end and the router never needs the content. A Zigbee or Z-Wave hub has to read the devices' messages to translate them, so it holds the radio network's keys and re-protects the data on the IP side. The hub becomes a trusted component to patch, monitor and restrict.
  • Under RFC 7668, which Bluetooth LE role usually acts as the 6LoWPAN border router, and why?
    The central. RFC 7668 assumes the central is less resource-constrained than a peripheral, so in its primary deployment scenario the central acts as the 6LoWPAN Border Router and the peripherals as 6LoWPAN Nodes, in a star. The RFC allows either role to be a node or a border router; RFC 9159 later added IPv6 mesh over Bluetooth LE.

  • A Thread border router translates device messages like a Zigbee hub
  • A LoRaWAN gateway routes IP packets that devices send to it
  • 6LoWPAN exists because IEEE 802.15.4 devices have no addresses
  • Zigbee devices get addresses on the building LAN through the hub
  • IPv6 fits an 802.15.4 frame without compression or fragmentation