Blog

What is TR-⁠069? How CWMP manages home routers

Tuesday, 11 p.m. A new firmware image is ready for 200,000 home routers. Nobody is going to visit 200,000 homes. The routers will get it the same way they got their Wi-⁠Fi settings on day one: from a server they check in with, over TR-⁠069.

TR-⁠069 is a Broadband Forum protocol, also called CPE WAN Management Protocol (CWMP), that lets a service provider manage customer devices such as home routers and ONTs remotely. Each device connects to an auto-configuration server (ACS) over HTTPS, reports its status and receives configuration changes, firmware updates and diagnostics.

This guide covers how the TR-⁠069 protocol works, its data models, ports and security, how it compares with TR-⁠369, and how ISPs use it for routers and ONTs.

A white home Wi-Fi router with small green lights on a wooden shelf beside a plant and books.

What is TR-⁠069?

TR-⁠069 is a technical report from the Broadband Forum, the standards body for fixed broadband, first published in 2004. It defines how customer premises equipment (CPE) and a provider's management server talk to each other.

What is CWMP? It is the protocol's formal name: CPE WAN Management Protocol. TR-⁠069, tr069 and CWMP all mean the same thing.

Before TR-⁠069, setting up a home router meant a technician or a customer typing settings into a web page. With it, a router can come out of the box, connect, and configure itself from the provider's server.

How the TR-⁠069 protocol works

Two parts talk: the CPE (router, ONT, set-⁠top box) and the ACS server (auto-configuration server). A TR-⁠069 ACS is not the same thing as Cisco ACS, an unrelated access-control product.

The device always starts the conversation. It opens an HTTPS session to the ACS URL, and within that session the two exchange SOAP messages until neither has anything left to say.

The Inform message

Every session begins with an Inform from the device. It says who the device is (manufacturer, model, serial number), why it is calling (first boot, periodic check-⁠in, a value changed, a reboot) and a few key parameters. The ACS answers, then uses the rest of the session to send work.

RPC methods

The ACS sends remote procedure calls (RPCs). The common ones:

  • GetParameterValues and SetParameterValues: read and change settings.
  • Download: fetch a firmware image or configuration file from a URL.
  • Reboot and FactoryReset.
  • AddObject and DeleteObject: create or remove items such as a port-forwarding rule.

Connection requests

If the ACS needs a device now rather than at its next check-⁠in, it sends a connection request: a small HTTP message to the device asking it to call in. The device then opens a normal session to the ACS. Behind NAT, where the ACS can't reach the device directly, TR-⁠069 has an extension (Annex G) that uses STUN instead.

TR-⁠069 data models

TR-⁠069 defines how to talk; data models define what to talk about. Every setting a device exposes has a parameter path in a tree.

  • TR-⁠098

    the older model for home gateways, rooted at InternetGatewayDevice.

  • TR-⁠181

    the current model, rooted at Device., used by newer CPE and by TR-⁠369.

Example: the Wi-⁠Fi network name on a TR-⁠181 device sits at a path like Device.WiFi.SSID.1.SSID. The ACS reads or sets that one value without knowing anything else about the device's software.

TR-⁠069 port and security

TR-⁠069 devices connect out to the ACS over HTTP or HTTPS on whatever port the ACS URL specifies. The ACS asks a device to start a session by sending a connection request to the device, commonly on TCP port 7547.

Port 7547 is the one that matters for security. If it is open to the whole internet, anyone can send connection requests, and flaws in a device's TR-⁠069 client become reachable from anywhere. Large botnet attacks have used exactly that path.

Hardening checklist

  • Use HTTPS to the ACS, with certificate validation on the device.
  • Accept connection requests on 7547 only from the ACS's addresses.
  • Use strong, per-⁠device credentials for connection requests.
  • Keep the device's TR-⁠069 client patched like any other firmware.
  • Monitor for unexpected Inform patterns, such as a sudden spike of factory-default devices.

TR-⁠069 vs TR-⁠369

TR-⁠369, also called User Services Platform (USP), is the Broadband Forum's newer device-management standard.

ItemTR-⁠069 (CWMP)TR-⁠369 (USP)
TransportSOAP over HTTP or HTTPSMessage transfer protocols such as WebSocket, MQTT or STOMP
CommunicationSession-based; device calls inReal-⁠time messaging in both directions
Data modelTR-⁠098 or TR-⁠181TR-⁠181
ControllersOne ACS per deviceSeveral controllers per device (for example the ISP and an app)
Typical useInstalled base of home routers and ONTsNew devices, in-⁠home Wi-⁠Fi apps, real-⁠time diagnostics

When to move

  • Stay on TR-⁠069 for the installed base that works, especially older CPE that will never get USP.
  • Add TR-⁠369 for new device models, mesh Wi-⁠Fi and features that need real-⁠time data.
  • Run both side by side for years; most ISPs will.

TR-⁠069 for ONTs and ISPs: CPE management in practice

  • Zero-⁠touch provisioning

    a new router connects, the ACS recognizes it, and the customer's plan settings arrive without a technician.

  • Firmware at scale

    updates go out in waves, and the next wave starts only if the last one succeeded.

  • Diagnostics

    the helpdesk reads Wi-⁠Fi signal, connected devices and line status while the customer is on the phone.

On fiber, two management channels meet. OMCI manages the optical side of the ONT from the OLT. TR-⁠069 manages the services side: Wi-⁠Fi, routing, voice. Many ONTs support both.

At a million routers, the hard part isn't the protocol. It is the check-⁠in storm after a regional outage, the firmware wave that bricks one hardware revision, and the helpdesk that still can't see the router during the call.

Common questions

What is TR-⁠069 used for?

Remote configuration, firmware updates and diagnostics for routers, ONTs and other customer devices.

What does CWMP stand for?

CPE WAN Management Protocol.

What is an ACS server?

In TR-⁠069, the auto-configuration server that manages devices. It is unrelated to Cisco ACS.

What port does TR-⁠069 use?

Devices reach the ACS on the port in the ACS URL. Connection requests to devices commonly use TCP 7547.

Is TR-⁠069 secure?

It can be, with HTTPS, certificate checks and port 7547 closed to everyone but the ACS. Exposed, unpatched clients have been attacked.

Is TR-⁠369 replacing TR-⁠069?

Gradually. Both will run side by side for years.

Can TR-⁠069 manage ONTs?

Yes, for the services side of many ONTs. OMCI handles the optical layer.

What is TR-⁠069? How CWMP manages home routers

Alepo Home Router (CPE) and ONT Management, in beta, gives the helpdesk a one-⁠click health check and runs firmware updates in staged waves, on the operator's own servers.