Key takeaways

  • A cloud controller manages the control plane only; client traffic should break out locally at the site.
  • The device agent opens a persistent outbound TLS session, so access points work behind NAT and firewalls without inbound ports.
  • Configuration should be declarative, versioned and applied with a confirm-or-rollback step on the device.
  • Telemetry, alerting and firmware are separate services with very different load patterns; design them independently.
  • Decide explicitly what keeps working when the cloud is unreachable, especially authentication and captive portals.

"Cloud-managed Wi-Fi" sounds like one product, but under the hood it is a set of cooperating services and a small, carefully written agent on every access point. Understanding those parts helps you evaluate platforms, plan for outages and decide what to build yourself. This article walks through a reference architecture and uses TIP OpenWiFi (uCentral) as an open example.

Control plane versus data plane

The single most important design decision is that the cloud handles management, not traffic. Configuration, monitoring, firmware and commands travel between AP and cloud. Client traffic is bridged or routed locally and leaves the site through the local internet connection.

Older controller designs tunnelled all client traffic to a central controller. Doing that to a public cloud would add latency, create a bandwidth bill, and make every site dependent on the cloud for basic connectivity. Modern cloud controllers use local breakout by default. Where central tunnelling is genuinely needed, for example guest traffic that must exit through a specific gateway, it should be a per-SSID choice terminating on infrastructure you control.

Cloud Wi-Fi controller architecture with local data plane and cloud control plane services Wi-Fi clients Laptops, phones, IoT OpenWrt AP Agent, hostapd, netifd Local internet Direct breakout Data plane stays on site Device gateway mTLS, sessions Outbound TLS Config service Templates, versions Telemetry pipeline Stream ingest Time-series store Metrics, events Alerting Rules, notifications Firmware service Images, rollouts Public API REST, webhooks Multi-tenant control plane: no client traffic
The AP keeps one outbound session to the device gateway. Client traffic breaks out locally; only management, telemetry and firmware flow to the cloud.

The device agent

On an OpenWrt access point the agent is a small daemon, usually supervised by procd, that does four jobs: maintain the cloud session, apply configuration, collect telemetry and execute commands (reboot, upgrade, packet capture, speed test, scan). It should talk to the system through native interfaces, ubus for state and UCI for configuration, rather than scraping command output.

Design rules that matter in production:

  • Keep it small and stable. The agent is the one component that must never break, because it is how you fix everything else.
  • Persist the last-known-good configuration locally and never depend on the cloud to boot.
  • Back off exponentially with jitter on reconnect, so a cloud restart does not trigger a thundering herd of reconnecting devices.
  • Identify the device with a per-unit certificate or key, provisioned at the factory or during a claim step.

Secure outbound transport

The AP initiates the connection, so it works behind NAT, CGNAT and restrictive firewalls with only outbound HTTPS-like traffic allowed. Common choices:

TransportStrengthsConsiderations
WebSocket over TLSPasses most proxies and firewalls on port 443; full duplex; simple request/response framing such as JSON-RPCOne stateful connection per device; the gateway tier must handle many long-lived sockets
MQTT over TLSLightweight; publish/subscribe suits telemetry; brokers scale well; QoS levelsCommand/response semantics and topic access control must be designed carefully
HTTPS pollingSimplest to implement and operateCommand latency equals poll interval; wasteful at short intervals

Whatever the transport, use mutual TLS or an equivalent device credential, pin the server CA in the firmware, and plan certificate rotation before your first certificates expire.

Configuration service and templates

The configuration service is the source of truth. Good designs share a few traits:

  • Declarative and complete. The cloud sends the full desired configuration (or a validated document) rather than a sequence of imperative commands. Drift is detected by comparing desired and reported state.
  • Templated. Templates at organisation, site and group level, with per-device variables (hostname, VLAN IDs, radio power), keep thousands of devices consistent.
  • Versioned. Every change has an author, a diff and a revision you can roll back to.
  • Safe to apply. The agent applies the change, checks it can still reach the cloud, and reverts automatically if not. OpenWrt's own apply-with-rollback mechanism in rpcd, which LuCI uses, follows the same idea.

uCentral is a useful open reference here. The device receives a single JSON configuration document, validated against a published schema, and the on-device client renders it into UCI. That separates a stable, vendor-neutral data model from the underlying OpenWrt configuration.

Telemetry pipeline, storage and alerting

Telemetry is the highest-volume part of the system. Devices send periodic state (interface counters, radio utilisation, noise, client lists with RSSI and rates) plus events (client join and leave, DFS radar hits, reboots, WAN changes). A typical pipeline:

  1. The device gateway receives messages and publishes them to a stream or queue, decoupling ingestion from processing.
  2. Consumers normalise and enrich records with tenant, site and device metadata.
  3. Metrics go to a time-series database with downsampling and retention tiers; events go to a searchable store.
  4. An alerting service evaluates rules on the stream (AP offline, high retries, DFS channel change, certificate expiry) and notifies by email, webhook or ticketing integration.

Two cost-control tips: aggregate on the device where possible, and keep high-resolution data for days rather than months. Alerting should account for flapping and maintenance windows, or operators will learn to ignore it.

Firmware service

The firmware service stores signed images per hardware model, tracks which device runs which version and orchestrates rollouts: canary group, staged waves, success criteria and automatic halt. On OpenWrt the agent downloads the image, verifies the signature and checksum, and calls sysupgrade, preserving settings or not depending on the release. Dual-partition layouts make failed upgrades recoverable without a site visit.

Multi-tenancy and APIs

Service providers and MSPs need strict tenant isolation: every device, configuration, metric and API token belongs to exactly one tenant, enforced at the data layer rather than only in the UI. Role-based access control on top lets a venue manager see their site without touching others.

Everything the UI does should be available through a public REST API, with webhooks or an event stream for state changes. That is what allows integration with billing, PSA and ticketing, and with your own automation.

High availability

Treat the device gateway as a horizontally scaled tier behind a load balancer, with devices spread across nodes and a shared registry of which node holds which session. Services behind it should be stateless where possible, with state in replicated databases. Plan for rolling upgrades of the cloud itself: devices will reconnect, so the reconnect logic in the agent is part of your HA design.

What happens when the cloud is unreachable

With local breakout, an outage of the cloud or of the site's internet path should not drop clients. The AP keeps running its last configuration. What you lose depends on design choices:

  • Management and visibility pause; the agent should buffer recent events and send them on reconnect.
  • Enterprise authentication fails if RADIUS servers are only reachable via the cloud. Use redundant or on-site RADIUS for critical SSIDs.
  • Captive portals hosted in the cloud stop working for new guests. Decide whether the SSID fails open or closed.
  • Scheduled actions such as SSID schedules should run locally rather than being triggered from the cloud.

Tip: Test this deliberately. Block the management endpoint at a pilot site for an hour and record what users notice. It is the fastest way to find hidden cloud dependencies.

TIP OpenWiFi as an open example

TIP OpenWiFi publishes both sides of this architecture. The AP firmware is OpenWrt-based and runs a uCentral client that keeps a TLS-secured WebSocket to the OpenWiFi gateway, exchanging JSON-RPC messages for configuration, commands and telemetry. The cloud SDK is split into microservices for the gateway, security, firmware, provisioning and analytics. Even if you do not deploy it, it is a good reference for interfaces and data models.

How CloudWRT helps

The CloudWRT Platform implements this model for OpenWrt devices: real-time monitoring of health, bandwidth and clients, configuration templates with variable substitution, scheduled firmware and config rollouts with rollback, alerting, analytics, REST APIs and an AI WiFi dashboard. Our OpenWiFi services cover deployments built on TIP OpenWiFi and uCentral, including zero-touch provisioning and multi-tenancy.

If you are building your own controller or agent, our R&D team can help with agent development, cloud platform integration and firmware. Start a free trial to see the platform with your own hardware.

Frequently asked questions

Does a cloud Wi-Fi controller see my users' traffic?

Not in a local-breakout design. Only management data, telemetry and firmware pass between the AP and the cloud; client traffic leaves the site directly.

Do I need to open inbound firewall ports for cloud management?

No. The AP opens an outbound TLS connection, typically on port 443, and commands flow back over that session.

Will Wi-Fi stop working if the cloud goes down?

Clients stay connected and traffic continues, because the AP runs its stored configuration. Cloud-dependent services such as remote RADIUS or hosted captive portals need their own fallback plan.

Is uCentral tied to specific hardware?

No. It is an open protocol and data model from TIP OpenWiFi, implemented on OpenWrt-based firmware that has been ported to access points from multiple vendors.