Key takeaways
- OpenWrt covers the WAN side most operators need: PPPoE, IPoE/DHCP, VLAN tagging on DSA, and dual-stack with DHCPv6 prefix delegation.
- SQM with cake is one of the most noticeable quality improvements you can ship, but it needs CPU headroom on the CPE.
- OpenWrt is strong for CPE and short point-to-point links; dense point-to-multipoint sectors are often better served by vendor TDMA gear.
- Pick the management protocol (TR-069, TR-369/USP or an agent-based cloud) based on your OSS/BSS, not on fashion.
- Firmware lifecycle and support, not hardware price, decide the cost per subscriber over the life of a CPE.
For an ISP or WISP, the CPE is the most numerous and least visible part of the network. It is also where most support calls start. OpenWrt is attractive because it lets you standardise one firmware approach across many hardware models and keep control of updates. This guide covers what has to be right on the device, how to manage it at scale and where the real costs sit.
WAN access: PPPoE, IPoE and DHCP
OpenWrt handles the common access models through netifd protocol handlers. PPPoE is built in through the ppp packages; IPoE is simply DHCP (or static addressing) on the WAN device, optionally sending a vendor class (option 60) or client identifier (option 61) if your BNG design uses them.
Many operators deliver service on a tagged VLAN. On DSA-based targets (the default for most current hardware), a VLAN on the WAN port is just a device name with a dot suffix. A typical PPPoE-over-VLAN WAN looks like this in /etc/config/network:
config interface 'wan'
option device 'wan.101'
option proto 'pppoe'
option username 'sub12345@isp.example'
option password 'secret'
option ipv6 'auto'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
With ipv6 'auto', netifd starts a DHCPv6 client on the PPP session once IPv6CP comes up, so you do not need a separate wan6 stanza. For IPoE, use proto 'dhcp' on the WAN and a wan6 interface with proto 'dhcpv6' and device '@wan'.
Some access networks also need separate VLANs for IPTV or VoIP. On DSA you create additional VLAN devices or bridge VLANs and attach them to their own interfaces and firewall zones; avoid copying old swconfig examples, which use a different configuration model.
IPv6: prefix delegation and router advertisements
Dual-stack on OpenWrt is mature. The CPE requests a delegated prefix with DHCPv6-PD (odhcp6c), then odhcpd hands out /64s from it to LAN interfaces according to ip6assign, and sends router advertisements with SLAAC and optionally stateful DHCPv6.
- Agree the delegated prefix size with your addressing plan (/56 or /60 are common) and request it explicitly with
reqprefixif your BNG needs a hint. - Make prefix stability a design decision. Prefixes that change on every reconnect break subscriber firewall rules and self-hosting.
- Test the failure cases: PD lost but IPv4 up, RA with zero lifetime after WAN loss, and IPv6-only with NAT64/DNS64 if you plan to go there.
- Remember that fw4 allows ICMPv6 and DHCPv6 by default but not unsolicited inbound traffic to LAN hosts. That is correct for most residential service.
SQM and cake: fixing bufferbloat at the CPE
Most "the internet is slow" complaints during video calls or gaming are latency under load, not bandwidth. The fix is to shape slightly below the line rate on the CPE so that the queue forms where a smart queue manager can control it. On OpenWrt that means the sqm-scripts package with the cake qdisc:
config queue 'wan'
option enabled '1'
option interface 'pppoe-wan'
option download '90000'
option upload '18000'
option qdisc 'cake'
option script 'piece_of_cake.qos'
option linklayer 'ethernet'
option overhead '44'
Rates are in kbit/s. Set them from the provisioned profile, typically a few percent below the sync or policer rate, and push them from your management system so that a plan upgrade also updates the shaper. Configure overhead for your encapsulation; under-estimating it lets the queue escape to the upstream device.
Watch the CPU: cake is software shaping and bypasses most hardware offload paths. Low-end single-core SoCs may not shape at the higher plan speeds. Measure on the exact CPE model at the top plan rate before you make SQM a standard feature.
Point-to-point and point-to-multipoint wireless for WISPs
OpenWrt supports AP and station modes on mac80211 radios, WDS (four-address) mode for transparent bridging, and per-radio settings such as fixed channel, channel width, transmit power within the regulatory limit and the distance option that adjusts ACK timing for longer links.
Where it fits well:
- Subscriber-side CPE that needs routing, IPv6, SQM and remote management, even when the radio link itself is a vendor product.
- Short and medium point-to-point links between sites with clear line of sight.
- Small point-to-multipoint cells with a handful of subscribers.
Where to be careful: standard 802.11 uses CSMA/CA, which suffers from hidden-node problems when many distant stations share a sector. Several vendors use proprietary TDMA-style protocols on their PtMP radios specifically to handle that. A pragmatic WISP design often uses vendor radios for dense sectors and OpenWrt for the subscriber router behind them. If you need OpenWrt on the radio itself, plan channel reuse carefully and test with realistic subscriber counts.
Remote management at scale: TR-069, TR-369/USP or agent and cloud
Every CPE needs to be configurable and observable without a truck roll. The three common approaches differ more in integration than in capability:
| Approach | How it works | Fits best when |
|---|---|---|
| TR-069 (CWMP) | SOAP/XML sessions from CPE to an ACS over HTTP(S), TR-181 data model, connection requests to trigger sessions | You already run an ACS and your OSS/BSS workflows are built around it |
| TR-369 (USP) | Controller and agent exchange messages over MQTT, WebSocket or STOMP, TR-181 data model, event subscriptions | You want a standard protocol with near-real-time events and multiple controllers |
| Agent and cloud | A device agent keeps an outbound TLS session to a cloud platform and applies configuration natively (for example as UCI) | You want fast iteration, rich telemetry and full OpenWrt feature coverage |
Two practical points. First, TR-181 mapping is the hidden cost of TR-069 and USP on OpenWrt: every parameter has to be translated to and from UCI, and features without a standard mapping need vendor extensions. Second, CGNAT and firewalls make inbound connection requests unreliable, so device-initiated persistent sessions (USP over MQTT or WebSocket, or an agent) behave better at scale. Open-source agents exist for both standards, but expect integration and testing work.
Subscriber provisioning
The goal is that an installer, or the subscriber, plugs in the CPE and it comes up with the right plan. A robust flow looks like this:
- The factory image contains only bootstrap settings: management endpoint, device certificate or a claim token, and safe defaults. Put first-boot logic in
/etc/uci-defaults/. - On first contact, the management system identifies the device by serial number or MAC and looks up the subscriber in OSS/BSS.
- It renders a template with per-subscriber variables (PPPoE credentials or VLAN, Wi-Fi SSID and key, SQM rates) and pushes it.
- The CPE applies the configuration with a timed rollback, reconnects and confirms. If it cannot reach management again, it reverts.
- Plan changes update the same variables and re-render, so the CPE never drifts from the source of truth.
Keep credentials out of the firmware image. Unique per-device secrets, printed labels with generated Wi-Fi keys and no universal admin password are now baseline expectations and, in several markets, legal requirements.
Firmware lifecycle and support cost
A CPE may stay in service for seven years or more. Over that time the firmware will need many security updates and a few major OpenWrt rebases. The cost drivers are predictable:
- Number of hardware models. Each target multiplies build and test effort. Rationalise aggressively.
- Size of local patches. Staying close to upstream release branches keeps rebases cheap.
- Upgrade safety. Dual-partition images or a tested sysupgrade path with preserved settings (
/etc/sysupgrade.conf) prevent mass truck rolls. - Staged rollout. Canary groups, success metrics and automatic halt on failure turn a fleet upgrade into a routine task.
- Telemetry. Per-CPE WAN state, Wi-Fi quality and reboot reasons let support resolve tickets remotely.
How CloudWRT helps
The CloudWRT Platform provides the agent-and-cloud model for OpenWrt CPE: real-time monitoring of health, bandwidth and clients, configuration templates with variable substitution, device grouping and bulk operations, scheduled firmware rollouts with rollback, and REST APIs for OSS/BSS integration. For Wi-Fi-centric deployments we also offer OpenWiFi services based on TIP OpenWiFi.
If you need TR-069 or USP integration, custom CPE firmware or board bring-up for a new model, our R&D team can build and maintain it. Managed services are available if you would rather not run fleet operations yourself.
Frequently asked questions
Can OpenWrt CPE work behind CGNAT?
Yes. Subscriber traffic is unaffected, and management works well if the CPE initiates the session outbound, as USP over MQTT or WebSocket and agent-based platforms do.
Should we use TR-069 or USP for new deployments?
If you have an ACS and workflows built on it, TR-069 remains practical. For new builds, USP's persistent transports and event model are a better fit, provided your controller and OSS/BSS support it.
Is SQM worth enabling on every CPE?
It is worth enabling wherever the CPE can shape at the plan rate without saturating the CPU. Test each hardware model at its top plan speed first.
How do we avoid bricking CPE during upgrades?
Use dual-partition images or a well-tested sysupgrade path, roll out to a canary group first, monitor reconnection and halt automatically on failures.