TR-069 Protocol Support
This page is a reference for the TR-069/CWMP protocol features the emulator implements: the CWMP RPC methods an ACS can call, the events the CPE raises, the Connection Request transports, and the supported diagnostics, software-module and bulk-data profiles.
Most of these features are exercised by the ACS against a running emulated device (they are part of the TR-069 data model), rather than from the Web UI. Use Single Emulator Mode (or the /apiV2 API) to start a device and watch the resulting sessions in the live log.
Supported CWMP RPC Methods
When the ACS calls GetRPCMethods, the emulated CPE advertises the following methods (defined in cpe_methods.txt). The emulator processes each of them in an ACS-initiated session:
| RPC Method | Direction | Description |
|---|---|---|
|
ACS → CPE |
Return the list of RPC methods the CPE supports |
|
ACS → CPE |
Read one or more parameter values from the data model |
|
ACS → CPE |
Write parameter values atomically, all or none, with one fault per bad parameter — see SetParameterValues and CWMP Faults (triggers diagnostics when a |
|
ACS → CPE |
Enumerate parameter/object names under a path (honours |
|
ACS → CPE |
Read notification/access-list attributes |
|
ACS → CPE |
Set the notification level (active/passive/off) on parameters |
|
ACS → CPE |
Create a new object instance (e.g. a WiFi SSID or a PortMapping). The target must be a multi-instance object, else fault 9005. A table the data model knows gets its template; any other table is recognised from the device’s own tree (a copy of its lowest instance with the values reset, or just the instance object when the tree has only the |
|
ACS → CPE |
Remove an object instance and everything under it. An unknown instance, or a name that is not one instance of a multi-instance object, is fault 9005; the table’s |
|
ACS → CPE |
Firmware / config file download (HTTP or FTP) — see File Transfers (Download / Upload) |
|
ACS → CPE |
File upload (HTTP or FTP) — see File Transfers (Download / Upload) |
|
ACS → CPE |
Reboot the device (the next Inform carries |
|
ACS → CPE |
Drop every change the ACS made and go back to what the device was started with: a device started on its own keeps its parameter tree, ACS URL and ACS credentials, a Load Test device gets the global settings; |
|
ACS → CPE |
Install / Update / Uninstall a Deployment Unit — see Software Modules (Deployment Units, TR-157) |
|
The CPE also issues |
SetParameterValues and CWMP Faults
SetParameterValues is atomic (TR-069 A.3.2.1): the emulator checks every parameter of the request first and applies them only when all of them are valid. If any parameter is in error, no value is changed (and ManagementServer.ParameterKey keeps its old value) and the CPE answers with fault 9003 Invalid arguments that carries one SetParameterValuesFault per parameter in error, in request order. The checks, in this order, for each parameter:
| Fault | Raised when |
|---|---|
|
The name is unknown, is an object path (empty or ending in |
|
The parameter’s |
|
The request’s |
|
The value is outside the parameter type’s lexical space or range: |
The parameter tree carries no enumerations or ranges beyond the type, so none are checked. A parameter whose tree type is null or unknown is checked against the request’s xsi:type only. A parameter named twice in one request is 9003 without a SetParameterValuesFault (no single parameter is to blame). The values are written before the response is sent, so SetParameterValuesResponse carries Status 0 (changes applied, TR-069 A.3.2.1). A failing side effect (diagnostics start, auto-channel) is logged and does not fault the request.
On success the new values are applied together and the ParameterKey of the request is stored. A forced COMPLETED task result (taskResultSetParameterValues) also stores the ParameterKey, but changes no value. A SetParameterValues raises no 4 VALUE CHANGE event, and changing XMPP connection-request parameters still triggers the XMPP check at the end of the session.
A request that lacks a required argument (for example ParameterList, a parameter’s Name or Value, or the URL / DelaySeconds of a Download or Upload) or carries a non-numeric number field (DelaySeconds) is answered with 9003 Invalid arguments. Any other unexpected internal error is 9002 Internal error.
The CPE fault codes and their SOAP faultcode (TR-069 A.5.1, Table 87; Client or Server) are:
| Code | Fault string | SOAP faultcode |
|---|---|---|
|
Method not supported |
Server |
|
Request denied |
Server |
|
Internal error |
Server |
|
Invalid arguments |
Client |
|
Resources exceeded |
Server |
|
Invalid Parameter name |
Client |
|
Invalid Parameter type |
Client |
|
Invalid Parameter value |
Client |
|
Attempt to set a non-writable Parameter |
Client |
|
Notification request rejected |
Server |
|
File transfer failures ( |
Server |
|
File transfer failure: unable to complete download within specified time windows |
Client |
|
Cancelation of file transfer not permitted in current transfer state |
Client |
|
Invalid UUID Format |
Server |
|
Unknown Execution Environment |
Server |
|
Disabled Execution Environment |
Server |
|
Deployment Unit to Execution Environment Mismatch |
Server |
|
Duplicate Deployment Unit |
Server |
|
System Resources Exceeded |
Server |
|
Unknown Deployment Unit |
Server |
|
Invalid Deployment Unit State |
Server |
|
Invalid Deployment Unit Update - Downgrade not permitted |
Server |
|
Invalid Deployment Unit Update - Version not specified |
Server |
|
Invalid Deployment Unit Update - Version already exists |
Server |
TR-069 Event Codes
The emulator can raise the following CWMP events. They open a session with the ACS and appear in the device log as <code> <NAME>.
| Event Name | Code | Meaning |
|---|---|---|
|
0 |
Initial setup, factory reset, or a change of the ACS URL |
|
1 |
Device power-up or reboot. The first Inform after a power-up, a factory reset, a stop and start, or a Load Test device creation carries |
|
2 |
Scheduled inform (see Periodic Inform and UpTime) |
|
4 |
A parameter with active notification changed |
|
6 |
ACS-initiated connection request (see Connection Request Transports) |
|
7 |
Download/upload completed |
|
8 |
Diagnostics complete (see Diagnostics) |
|
11 |
Deployment-unit state change complete (see Software Modules (Deployment Units, TR-157)) |
|
|
The device rebooted on a |
|
|
A |
|
|
An |
|
|
A |
The M … events (TR-069 3.7.1.5, Table 8) are raised by the RPC they are named after, never by hand, and have no numeric code. M ScheduleInform and M ScheduleDownload are not generated: the emulator does not implement those RPCs.
-
CommandKey. Per Table 40 each
M …event carries theCommandKeyof the originatingReboot,Download,UploadorChangeDUStatecall (empty when the call had none). Every other event,7 TRANSFER COMPLETEand11 DU STATE CHANGE COMPLETEincluded, has an emptyCommandKey; theTransferCompleteandDUStateChangeCompleteRPCs keep their ownCommandKeyargument. -
Retry. A failed session redelivers its undelivered events,
0 BOOTSTRAPand1 BOOTas a pair, but not6 CONNECTION REQUEST(Table 8: "MUST NOT retry delivery"). A retried power-up Inform keeps the0 BOOTSTRAP/1 BOOTpair. -
Multiple. Two completed transfers whose
TransferCompletethe ACS has not yet answered give twoM Downloadentries, each with its own key. The plain events are Single: they appear once. -
Delivery. An
M …event is kept, across failed or interrupted sessions, until the ACS gave the response Table 8 names:InformResponseforM Reboot,TransferCompleteResponseforM DownloadandM Upload,DUStateChangeCompleteResponseforM ChangeDUState. TheTransferCompleteRPCs of several pending transfers go out one after the other in a session. The undelivered events live in the emulator’s memory only. -
Discard.
0 BOOTSTRAP(a factory reset or a change of the ACS URL) discard the undeliveredM …events, as do a single-device Stop, a FactoryReset and a stop-all with clear. A stop-all without clear keeps them (Table 8 discards only on BOOTSTRAP).
Events can be triggered manually for a Single Mode device through POST /apiV2/invoke (field eventName, using the exact names above; the M … events, 7 TRANSFER COMPLETE and 11 DU STATE CHANGE COMPLETE are rejected with 400, only their RPC raises them; so is an unknown or missing eventName).
|
The Single Mode Invoke Event dropdown exposes codes |
Connection Request Transports
A Connection Request is the mechanism an ACS uses to ask a device to start a session immediately, rather than waiting for the next periodic inform. The emulator supports all three TR-069 transports:
| Transport | Enabled by | Notes |
|---|---|---|
HTTP (default) |
|
A listener on port |
XMPP (CWMP Annex K) |
Data-model objects ( |
When the device’s parameter tree contains an enabled XMPP connection-request profile, the emulator connects to the XMPP server and listens for connection-request IQ stanzas. The server is the enabled |
UDP / STUN |
|
When |
|
HTTP Connection Request is the only transport with a Web UI / REST toggle. XMPP and UDP/STUN are driven entirely by the device data model — include (and enable) the relevant |
Connection Request authentication
The device authenticates every Connection Request with its own ManagementServer.ConnectionRequestUsername and ConnectionRequestPassword, read from the device’s tree at request time. A request that does not authenticate opens no session, on any transport.
| Transport | Rule |
|---|---|
HTTP and HTTPS |
HTTP Digest (TR-069 3.2.2.2, RFC 7616), MD5 with |
UDP |
CWMP Annex G.2.1.4 and G.2.2.3. The datagram must be an HTTP 1.1 |
XMPP |
CWMP Annex K.2.3.3. The |
One session per window. While a device runs a session and a follow-up Connection Request is already queued, a further request gets 503 with an empty body (HTTP and HTTPS), a service-unavailable error IQ (XMPP) or is dropped (UDP), as TR-069 3.2.2.2 asks for requests the device does not accept. The log line names the reason: follow-up-session-queued, or follow-up-thread-not-started when the emulator could not start the thread for the follow-up (out of threads or memory). A full nonce ledger (see Limits) also answers 503 on HTTP and HTTPS. Otherwise a request that arrives while an earlier one has not yet led to its Inform joins it: 200, no second session. Both kinds count in coalesced of /apiV2/invoke/decisions.
Start parameter. connectionRequestAuthEnabled (variable EMULATOR_CONNECTION_REQUEST_AUTH_ENABLED, chart value fleet.connectionRequestAuth) is true by default. false restores the old behaviour for a client that cannot authenticate: HTTP and HTTPS accept a request without Digest, UDP checks only that the keys are present. The emulator then logs one WARN, when its shared services start (once per run, also with connectionRequestEnabled=false and whether or not the HTTP listener binds), that cites TR-069 3.2.2.2 and G.2.1.4. Only true, false, 1 and 0 are read. In the parameter file and through the REST API or the web UI any other value logs an ERROR and keeps authentication on; in EMULATOR_CONNECTION_REQUEST_AUTH_ENABLED it stops the startup. There is no command-line argument for this parameter.
Limits.
-
A device without a
ConnectionRequestUsernamerefuses every Connection Request:401on HTTP, ignored on UDP,not-authorizedon XMPP. -
Credential values are read trimmed: a username or password with leading or trailing white space is compared without it (the tree file wraps values across lines).
-
The default tree of the image (
cpe_params.xml) carries the usernameftacsand an empty password. A device left on them authenticates anyone who knowsftacs. Set your own credentials, by the tree or bySetParameterValues, for a device an untrusted network can reach. -
The nonce ledger keeps up to 65 536 entries per JVM. When it is full, a request gets
503until expired entries are removed. Only a request that authenticated writes to the ledger, so it fills only for someone who knows the device’s credentials (the public default ones, on a device left on them). Without a full ledger expired entries are removed once a second at most; a full ledger removes them on each new nonce.
HTTPS Connection Request
The HTTP listener can also serve HTTPS. Start the JVM with an https:// Connection Request address and the emulator opens an additional TLS listener. It serves the operator PEM pair from -Dconnection.request.cert (X.509 certificate) / -Dconnection.request.key (PKCS#8 private key); when absent, unreadable or expired it generates a self-signed CN=localhost certificate at startup (new key every start, never expires) and logs one WARN with its notAfter:
java -Dconnection.request.address=https://<host>:<port> \
-Dconnection.request.cert=/path/cr-cert.pem \
-Dconnection.request.key=/path/cr-key.pem \
-jar target/FTCpeEmulator.jar --web-mode
The -D options must precede -jar: anything after the JAR name is passed to the application as an argument and does not set a system property. Omit the cert/key pair to use the generated certificate. If no certificate can be built at all, the TLS listener does not start and the reason is logged at ERROR; the HTTP listener still serves.
The FT ACS validates the Connection Request TLS certificate against its own JVM truststore, so for HTTPS Connection Requests from it supply a certificate the ACS trusts (the generated one changes on every start). The generated certificate names only localhost, so a client that verifies the host name (curl or openssl without -k) accepts it only on localhost; for any other host supply the operator pair.
HTTPS deviates from TR-069 3.2.2.2, which says the CPE MUST use HTTP, not HTTPS, for the Connection Request. The emulator logs one WARN with that clause when the TLS listener starts. Digest authentication applies to it as to HTTP (Connection Request authentication).
The listener port can be overridden with -Dconnection.request.port (default 9999). See Environment Variables for the Docker mapping of CONNECTION_REQUEST_HOST.
Diagnostics
The emulator implements the standard TR-069 diagnostic state machine: the ACS sets the diagnostic object’s DiagnosticsState to Requested (via SetParameterValues), the emulator runs the test, writes the result parameters and raises an 8 DIAGNOSTICS COMPLETE event.
| Diagnostic | Trigger object (parameter prefix) |
|---|---|
IP Ping |
|
TraceRoute |
|
Download Diagnostics |
|
Upload Diagnostics |
|
UDP Echo (config + send) |
|
Neighboring WiFi Diagnostic |
|
IP Layer Capacity Metrics |
|
Vendor WiFi ( |
|
|
Download and Upload diagnostics never use HTTP authentication, as TR-181 |
|
IP Ping and TraceRoute execute the host OS |
DiagnosticsState values. The success value is taken from the loaded data model (TR-181 2.18 DiagnosticsState enumerations; Completed was deprecated in 2.13 and deleted in 2.17):
-
Completefor the IGDIPPingDiagnosticsandTraceRouteDiagnostics,Device.IP.DiagnosticsIPPing,TraceRoute,DownloadDiagnosticsandUploadDiagnostics, andDevice.WiFi.NeighboringWiFiDiagnostic(and the IGDLANDeviceNeighboringWiFi fallback). -
Completedstays for the IGDDownloadDiagnosticsandUploadDiagnostics(TR-143).UDPEcho,NSLookupandIPLayerCapacityare unchanged (Complete). -
A failed Upload transfer ends with
Error_NoTransferComplete(the value is in every Upload enumeration); Download is unchanged. -
A diagnostic that fails before it has a result writes the object’s error value (
Error_Internal; IGD TraceRouteError_CannotResolveHostName; IGD Download and UploadError_InitConnectionFailed; NeighboringWiFiError) instead of leavingNone. The8 DIAGNOSTICS COMPLETEevent is still sent (TR-069 Table 8).
Set the environment variable EMULATOR_LEGACY_DIAGNOSTICS_COMPLETED_STATE=true (Helm value legacy.diagnosticsCompletedState) to restore the old Completed value on the objects that wrote it before: IPPing, TraceRoute, Download, Upload and NeighboringWiFi. UDPEcho, NSLookup and IPLayerCapacity stay Complete.
File Transfers (Download / Upload)
The Download and Upload RPCs are handled over HTTP and FTP (with Basic authentication). On completion the emulator sends a 7 TRANSFER COMPLETE event together with M Download (or M Upload) carrying the CommandKey of the call, followed by a TransferComplete RPC (see TR-069 Event Codes).
-
DelaySeconds. The
DownloadResponse/UploadResponsegoes out at once withStatus1. A non-zeroDelaySecondsnever lets the transfer occur in the session that carried the request (TR-069 Download and Upload arguments): the transfer starts at the later of "request time plusDelaySeconds`" and "end of that session" (a session that fails counts as ended). An emulated transfer follows the same rule, and its duration runs from that start. `DelaySeconds0 is not held back. TheStartTimeandCompleteTimeofDownloadResponse,UploadResponseandTransferCompleteare written in UTC (+00:00); the InformCurrentTimekeeps the device’s local offset. -
Stop and FactoryReset cancel the transfers of the device, those still waiting for their
DelaySecondsand those already running (emulated ones included): a cancelled transfer reports noTransferCompleteand noM Download/M Upload. -
In Load Test Mode, enable Transfer Emul (
transferEmulation) and set a Transfer Delay to simulate realistic transfer timing across the batch — see Emulator Configuration. -
Transfer faults are reported with standard CWMP fault codes (e.g.
9012login failed,9015could not connect,9016transfer failed).
Software Modules (Deployment Units, TR-157)
The emulator supports the TR-157 software-modules object model and the ChangeDUState RPC. The ACS can request three operation types:
-
Install — download a Deployment Unit (DU) from a URL, parse its metadata and create
DeploymentUnit/ExecutionUnitinstances. -
Update — replace an installed DU with a new version.
-
Uninstall — remove a DU and its execution units.
Each operation result is returned via a DUStateChangeComplete (event 11, sent with M ChangeDUState carrying the CommandKey of the ChangeDUState call) session, including per-operation fault structures where applicable. The relevant data-model objects are …SoftwareModules.DeploymentUnit.{i}. and …SoftwareModules.ExecutionUnit.{i}..
Bulk Data Collection (TR-157)
The emulator supports TR-157 Bulk Data Collection profiles. Each enabled profile periodically collects the parameters referenced by its collection tasks (wildcards across multi-instance tables are supported) and HTTP/HTTPS POSTs the report to the profile’s ServerURL.
Profiles are configured through the data model under …BulkData.Profile.{i}. (Enable, ReportingInterval, CollectionTask.{j}.ParameterName, ServerURL). Collection is scheduled automatically from each profile’s ReportingInterval.
|
The |
Session Behaviour
How the CPE conducts a CWMP session against the ACS (TR-069 Amendment 6, sections 3.2.1.1, 3.4.2 and 3.7.1).
HTTP redirects
The CPE follows an HTTP redirect from the ACS at any point of a session, including the answer to the Inform.
-
Codes:
302and307(required by the spec) and301. Any other3xxends the session as a failure. -
What is re-sent: the same POST, to the URL in the
Locationheader (a relativeLocationis resolved against the URL that was redirected). The session then goes on at that URL as if no redirect had happened. The body of the redirect response is ignored. -
How long the URL is used: for the rest of that session, or until the next redirect. It is never written to
ManagementServer.URL; the next session, and a retried Inform, start from the configured ACS URL again. -
Hop limit: up to 5 redirects in a row are followed. A sixth ends the session as a failure and the session retry applies (below). A missing or non-HTTP(S)
Locationalso fails the session. -
Cookies: every cookie of the session is sent to the redirected URL, whatever its host.
-
Credentials: the configured Basic or Digest credentials are sent only to the scheme, host and port that asked for them with a
401, with every later request of the session. A request to a different origin, for example after a redirect, carries none; that origin gets them only after it answers401itself, and then it is the one the credentials belong to.
Connections
Each session has its own TCP connection to the ACS (TR-069 3.4.2):
-
One connection per session: every POST of the session goes over the same connection while the ACS keeps it open, the resend with credentials after a
401included. If the ACS closes the connection after an answer (for example withConnection: close), the next POST of the session opens a new one. -
Not shared: a connection never carries the POSTs of another session or of another device.
-
Closed at the end: the CPE closes the connection when the session ends, whether it completed or failed. No connection stays open between sessions.
-
Redirect: a redirect to another host or port opens a connection there, which is also closed at the end of the session.
A farm pod therefore holds at most sessionConcurrency connections to the ACS (one more per redirect target during a redirected session). Over HTTPS each session makes its own TLS handshake; the emulator offers the ACS TLS session resumption, so an ACS that supports it does not pay a full handshake per session.
HoldRequests
The ACS can hold the CPE’s own requests with the SOAP header cwmp:HoldRequests (1 or true; 0, false or no header means no hold). The CPE’s own requests are the TransferComplete (an earlier download or upload) and the DUStateChangeComplete (a Software Module operation); they are sent after the InformResponse and after the answer to each of them. Table 7 of TR-069 3.7.1.3 decides what the CPE sends next, from the most recent response of the ACS:
-
Every message of the ACS sets the hold, whether it is an
InformResponse, the response to aTransferCompleteor a request. An empty HTTP response (no envelope) means no hold. -
A request of the ACS is always answered first, whatever its header says. Only after a response of the ACS does the CPE choose between its own request and an empty POST.
-
No hold: the next own request goes out. Hold: the CPE sends an empty POST and keeps the request; a held request is never lost and is never sent early.
-
An empty HTTP response lifts the hold. The CPE then sends the request it kept. If it has none, and the empty POST it sent earlier went out during the hold, it sends one more empty POST: only an empty POST sent without hold tells the ACS there is nothing more to send (3.7.1.4).
-
Once the CPE has sent an empty POST without hold, it sends no further own request in that session (3.7.1.3, condition 3). A
TransferCompletestill queued stays pending and goes out in the next session. -
The session ends when the ACS answers empty after such an empty POST.
-
The confirmation of an event does not wait for the hold: the
M Rebootentry is confirmed when theInformResponsearrives, and the entry of aTransferCompleteorDUStateChangeCompletewhen its response arrives. Only the sending of the next request waits. A session that fails during the hold therefore does not reportM Rebootagain.
Session retry waits
A session that fails is retried after a random wait of whole seconds taken from a range that grows with each failed attempt (3.2.1.1, Table 3). With m the minimum wait and k the multiplier, retry number n waits between m × (k/1000)n-1 and m × (k/1000)n seconds. From the tenth retry on the range stays that of the tenth.
| Retry | Wait with the defaults (m = 5, k = 2000) | Wait with m = 1, k = 1000 |
|---|---|---|
#1 |
5 to 10 s |
1 s |
#2 |
10 to 20 s |
1 s |
#3 |
20 to 40 s |
1 s |
#10 and later |
2560 to 5120 s |
1 s |
m and k are read from the device’s ManagementServer.CWMPRetryMinimumWaitInterval and ManagementServer.CWMPRetryIntervalMultiplier. The shipped parameter trees differ (some hold 1 and 1000, some 5 and 2000, a few 0, and cpe_params.xml defines neither); a value of 0, a missing parameter, or a multiplier below 1000, means the spec defaults (5 and 2000).
One rule covers every way a session can fail: a refused or dropped connection, a timeout, an HTTP error such as 503, a 401 the credentials do not answer, a redirect loop or an unusable response. The session ends as failed, the failure is counted (see RetryCount below), and the device is scheduled again after the wait. The wait is outside the session: the device holds no session slot while it waits, so a farm whose ACS is down does not block its own session concurrency (sessionConcurrency).
During the wait:
-
Connection Request, or another new event: a session starts at once (3.2.1.1: the CPE retries "after the wait or when a new event occurs, whichever comes first"). Its Inform carries the
RetryCountof the failed attempts and the new event, together with the events the failed session had not delivered, a2 PERIODICamong them (Table 8: an undelivered periodic event is never discarded). A device without periodic inform sends nothing more after that session; it does not start an event-less one when the old wait runs out. -
Stop: the device is removed. No further Inform is sent.
-
Not registered yet: a device whose
0 BOOTSTRAPhas not been delivered ignores a Connection Request; its retried session carries the bootstrap. -
Periodic Inform: the wait is not shortened to the next periodic time. A periodic Inform that would fall due during a wait is not sent on its own; the retried session replaces it.
With the defaults the wait of the tenth and later retries is 2560 to 5120 seconds (Table 3 allows no cap). To shorten the waits, the ACS sets ManagementServer.CWMPRetryMinimumWaitInterval (m) and ManagementServer.CWMPRetryIntervalMultiplier (k) with SetParameterValues after the device has started: with m = 1 and k = 1000 every retry waits 1 second. Values written into a device’s parameter tree are not the way: a factory reset reloads that tree, and the factory defaults of m and k must be the values of the Default column (5 and 2000). The former sessionRetryMaxWait setting is gone, and so is the chart value fleet.sessionRetryMaxWait; an old deployment that still sets EMULATOR_SESSION_RETRY_MAX_WAIT stops at startup with the unknown emulator variable error.
RetryCount
The RetryCount of the Inform is the number of failed sessions since the last one that completed (Table 37). The count is kept per device in one place, so the Inform after a refused connection, a 503, a 401, a redirect loop and a dropped connection all report it. Every Inform is built when its session starts, from that count. A session that completes resets it to 0; a session that is skipped because no event is left for it (a 7 TRANSFER COMPLETE whose entry an earlier session already delivered) sends no Inform and leaves the count as it was; the count is not persisted, so a restart of the emulator starts at 0 too. A session that fails or completes after a newer session of the same device has started does not change the count. The Random RetryCount option of the Web UI (randomRetryCount) still replaces the value of every Inform with a random one.
Periodic Inform and UpTime
-
Phase. When
ManagementServer.PeriodicInformTimeholds a valid time, the device informs at that time plus a whole number ofPeriodicInformIntervalperiods (the next grid point, never at once; TR-181 2.18PeriodicInformTime). Otherwise, with a spread of 0, it uses a fixed grid started by the first session after power-up; a reboot or an invoked session does not move it (the old behaviour was the session end plus one period, which drifted). A spread above 0, phase anchors andperiodicAlignEpochMswork as before, but a validPeriodicInformTimetakes precedence over a spread above 0; to keep a mass group dispersed, useperiodicAlignEpochMs, phase anchors orlegacyPeriodicPhase. The seed parameter trees start withPeriodicInformTimeset to Unknown Time (0001-01-01T00:00:00Z), so they follow the first-session grid until the ACS sets a time. -
Interval. A
PeriodicInformIntervalof 0, a negative, unparseable or missing value parks the device until a session is invoked (it was an immediate re-Inform, a past schedule or an exception that skipped the post-session work). A value aboveInteger.MAX_VALUEseconds is clamped to it. -
UpTime.
DeviceInfo.UpTimeis the number of seconds since the last restart. It is 0 at the first session, restarts from 0 on aRebootRPC and on a REST reboot, and is not reset by the0 BOOTSTRAPof an ACS URL change. A first session that has neither0 BOOTSTRAPnor1 BOOT(without initial Inform,INITIAL_EVENT=PERIODIC, restore) starts at 9000 seconds. The old values carried an offset of 9000000 ms; QoEUpTimevalues are therefore about 1/1000 of what they were. -
Inform parameters. The Inform
ParameterListfollows the model’s forced-Inform set (TR-069 3.7.2.1): TR-181 addsDevice.RootDataModelVersion,DeviceInfo.ProvisioningCodeandManagementServer.AliasBasedAddressingand dropsDevice.DeviceSummaryandDevice.LAN.IPAddress; TR-098 addsManagementServer.AliasBasedAddressing. A name that the device’s own parameter tree lacks is skipped, so the effective list follows the seed tree. -
UpTime notification. The
DeviceInfo.UpTimerefresh at session start is written without notification (TR-181 2.18DeviceInfo.UpTimeactiveNotify="canDeny"): an ACS that set Notification 1 or 2 onUpTimegets no4 VALUE CHANGEsession for it and noUpTimequeued in the Inform. The value is unchanged and its type is alwaysxsd:unsignedInt.SetParameterAttributesrefuses Active notification onUpTimewith fault 9009. -
DUStateChangeComplete. The
StartTimeandCompleteTimeof the Results are UTC dateTimes (+00:00),0001-01-01T00:00:00Zwhen absent (TR-069 A.4.2.3, Table 80).
Set EMULATOR_LEGACY_BOOTSTRAP_ONLY_EVENT=true (Helm legacy.bootstrapOnlyEvent) to send 0 BOOTSTRAP alone on a first Inform, and EMULATOR_LEGACY_PERIODIC_PHASE=true (Helm legacy.periodicPhase) to restore the session-end-plus-period phase. The interval rule, UpTime, the Inform parameters, the Upload and failure diagnostic values and the DU timestamps have no switch.
Not implemented
The CWMP version negotiation of 3.7.1.1 and 3.7.4 (inferring the ACS version from the namespace of the InformResponse, the SupportedCWMPVersions and UseCWMPVersion headers of CWMP 1.4, and the fall back to 1.0 when a failed first session is retried) is not implemented. The emulator declares urn:dslforum-org:cwmp-1-2 in its Inform and does not change its messages according to the namespace of the ACS’s answers.
TLS / Certificates
| Direction | Behaviour |
|---|---|
CPE → ACS (outbound) |
The CPE validates the certificate of an |
ACS → CPE (Connection Request) |
Optional HTTPS listener serving the operator PEM pair or a generated self-signed certificate — see Connection Request Transports. |
Bulk Data upload |
Bulk data reports are sent over HTTP or HTTPS depending on the profile |
ACS certificate parameters
| Parameter (variable) | Default | Effect |
|---|---|---|
|
empty (JDK CAs) |
File of the CAs the CPE trusts for the ACS, instead of the JDK CAs. The extension names the format: |
|
empty |
Password of a PKCS12 or JKS store. Set it in the environment only: the emulator does not write it to |
|
|
If |
|
|
TR-069 3.4.6: the empty response of the ACS is a |
These parameters are read at the start of each HTTPS session. The emulator reads a trust store once per path and password: if the file changes on disk (for example a rotated Kubernetes Secret), restart the emulator.
A rejected certificate is logged as a warning that names the endpoint and both acsTrustStore and acsTlsInsecure, at most once a minute per ACS host and port.
Related Documentation
-
REST API Reference — the
/apiand/apiV2endpoints that drive these features -
Single Emulator Mode — start one device and watch protocol sessions live
-
Load Test Mode — run protocol features across a batch of devices
-
Connection Request Host — externally reachable address setup