TR-069 Protocol Complete communication Process
The following is the device restart to hang TR069 network management of the Message flow resolution (1) device startup; Based on the configured ACS (auto-Configuration server) address, after establishing a secure HTTP connection, Each connection to the CPE must first issue an inform RPC call request to ACS to report the connection information to ACS. ACS returns a inform response as a confirmation connection.
the parameters of the standard inform method are as shown in the table
Parameter name |
parameter Description |
DeviceID |
Data Structure Identification CPE |
Event |
Identify why this inform was launched |
Maxenvelopes |
HTTP response can carry the number of soap envelopes |
CurrentTime |
Current time of CPE |
RetryCount |
Maximum number of repeat connections for this session |
Parameterlist |
The parameters required to carry this inform |
post/service.tr069 http/1.1 host:183.62.12.23:8012 user-agent:cwmp content-type:text/xml; Charset=utf-8 connection:keep-alive content-length:1730 <soap-env:envelope xmlns:soap-env= "/http schemas.xmlsoap.org/soap/envelope/"xmlns:soap-enc=" http://schemas.xmlsoap.org/soap/encoding/"xmlns:xsd=" http:/ /www.w3.org/2001/xmlschema "xmlns:cwmp=" urn:dslforum-org:cwmp-1-0 "> <SOAP-ENV:Header> <cwmp:id soap-en v:mustunderstand= "1" >946684824</cwmp:ID> </SOAP-ENV:Header> <SOAP-ENV:Body> <!--inform method
At any time to establish a connection to the ACS, you must call the Inform method-<!--to initialize a transmission sequence, escalate some events to the ACS server, and bring the event to EventCode--<cwmp:Inform> <!--device description information--<DeviceId> <!--device Manufacturer--<manufacturer>star-net</manufa Cturer> <!--device manufacturer's unique label-<OUI>00D0F8</OUI> <!--device Type-< ; Productclass>svp3000_v5_sip_cn</productclass> <!--equipmentSerial number-<SerialNumber>00100400RJ0100100000001AA9800003</SerialNumber> </DeviceId>
<!--The specific event that caused this session--<event soap-enc:arraytype= "cwmp:eventstruct[1" > <EventStruct>
<!--escalate the boot event, which is to tell ACS to initiate the CWMP connection-<!--1 boot indicates that the reason for initiating the session is the device power-on (first boot or other cause of device restart)-
<eventcode>1 boot</eventcode> <CommandKey></CommandKey> </EventStruct> </Event> <!--The number of allowed SOAP packets that receive a response, 0 means unlimited---<MaxEnvelopes>1</MaxEnvelopes> &L t;! --The current time of the CPE-<CurrentTime>2000-01-01T08:00:23</CurrentTime> <!--the number of attempts to complete the inform call each time you add 1--&
Gt <RetryCount>0</RetryCount> <!--CPE equipment parameter list--<parameterlist soap-enc:arraytype= "Cwmp:para METERVALUESTRUCT[6] "> <ParameterValueStruct> <!--device description information--<name>device . DevicesummAry</name> <value>device:1.0[] (baseline:1), voiceservice:1.0[1] (baseline:1) </Value> &L T;/parametervaluestruct> <ParameterValueStruct> < hardware version information for!--devices--<name>de Vice.
Deviceinfo.hardwareversion</name> <Value>5.0</Value> </ParameterValueStruct> <ParameterValueStruct> < software version information for!--devices--<name>device.deviceinfo.softwareversi on</name> <Value>AIM1.3.10.8</Value> </ParameterValueStruct> <paramet ervaluestruct> <!--request URL (device contact address)--<name>device.managementserver.connectionrequestur
L</name> <Value>http://192.168.99.17:7547/</Value> </ParameterValueStruct>
<ParameterValueStruct> <!--calls to some methods can cause this change in the value such as scheduled Inform, reboot, download, upload Method-- <!--in additionThe call to this value is null and the device only calls the Inform method in this message, so the value should be set to empty-<Name>Device.ManagementServer.ParameterKey</Name> <Value></Value> </ParameterValueStruct> <ParameterValueStruct> < !--Device IP address-<Name>Device.LAN.IPAddress</Name> <VALUE>192.168.99.17</VALUE&G
T </ParameterValueStruct> </ParameterList> </cwmp:Inform> </SOAP-ENV:Body> </soap-env :envelope>
(2) After receiving the inform message from the device side (CPE side), the ACS server will give a informresponse response machine CWMP Connection Creation success
http/1.1 OK date:tue, 03:20:53 GMT server:microsoft-iis/6.0 x-powered-by:asp.net x-aspnet-version:2.0. 50727 set-cookie:serialnumber=00100400rj0100100000001aa9800003; path=/cache-control:private content-type:text/xml;charset=utf-8 content-length:522 <!--response to a device-side inform message accepts a connection request- -<soap:envelope xmlns:soap= "http://schemas.xmlsoap.org/soap/envelope/" xmlns:cwmp= "urn:dslforum-org:
cwmp-1-0 "xmlns:xsd=" Http://www.w3.org/2001/XMLSchema "xmlns:xsi=" Http://www.w3.org/2001/XMLSchema-instance " xmlns:soap-enc= "http://schemas.xmlsoap.org/soap/encoding/" > <soap:Header> <cwmp:id SOAP: mustunderstand= "1" >946684824</cwmp:ID> <cwmp:holdrequests soap:mustunderstand= "1" >0</CWMP: Holdrequests> </soap:Header> <soap:Body> <!--ACS accepts inform requests on the device-side (CPE) side (that is, requests to create CWMP connections)---& lt;cwmp:informresponse> <MaxEnvelopes>1</MaxEnvelopes> </cwmp:InformResponse> </soap:b Ody> </soap:Envelope>
(3) The device side sends an empty message, indicating that no subsequent requests
post/service.tr069 http/1.1
host:183.62.12.23:8012
user-agent:cwmp
content-type:text/xml; charset= Utf-8
connection:keep-alive
cookie:serialnumber=00100400rj0100100000001aa9800003;path=/
content-length:0
<!--host:acs (automatic configuration Server) address--
<!--cookies: Set the serial number on the device--
<!-- Content-length: Message content length is 0 for empty message--
(4) The ACS server receives an empty message, according to the serial number carried in the empty message to verify the legality of the device, if the verification through the subsequent operation, if not passed the message that the device is illegal. The judgment of the serial number is judged within the ACS and is not reflected in the message.
(5) ACS authentication device serial number is legal, send message request device side to report the network Management account information
http/1.1 OK date:tue, 03:20:53 GMT server:microsoft-iis/6.0 x-powered-by:asp.net x-aspnet-version:2.0. 50727 set-cookie:serialnumber=00100400rj0100100000001aa9800003; path=/cache-control:private content-type:text/xml;charset=utf-8 content-length:658 <soap:Envelope xmlns:soap= " http://schemas.xmlsoap.org/soap/envelope/"xmlns:cwmp=" urn:dslforum-org:cwmp-1-0 "xmlns:xsd=" http://www.w3.org/ 2001/xmlschema "xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance "xmlns:soap-enc=" http://schemas.xmlsoap.org /soap/encoding/"> <soap:Header> <cwmp:id soap:mustunderstand=" 1 ">1</cwmp:ID> <cwmp:holdr Equests soap:mustunderstand= "1" >0</cwmp:HoldRequests> </soap:Header> <soap:Body> <!--the requested party Method for Getparametervalues, get the device-side parameter information--<cwmp:GetParameterValues> <parameternamessoap-enc:arraytype= "xsd : string[2] "> <!--get device TR069 Network name-to-<string>device.managementserver.username</string> <!--get device TR069 network management password--<string>device.managementserver.password</st ring> </ParameterNames> </cwmp:GetParameterValues> </soap:Body> </soap:Envelope>
(6) When the device side receives the message that the ACS server requests to escalate the account, it sends the account information configured on the device as the response of the request.
http/1.1 host:183.62.12.23:8012 user-agent:cwmp Content-type:text/xml; Charset=utf-8 connection:keep-alive cookie:serialnumber=00100400rj0100100000001aa9800003;path=/Content-Length: 828 soapaction: "" <soap-env:envelope xmlns:soap-env= "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap-enc= "http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd= "Http://www.w3.org/2001/XMLSchema" xmlns:xsi= "http// Www.w3.org/2001/XMLSchema-instance "xmlns:cwmp=" urn:dslforum-org:cwmp-1-0 "> <SOAP-ENV:Header> <cwmp:i D soap-env:mustunderstand= "1" >1</cwmp:ID> </SOAP-ENV:Header> <SOAP-ENV:Body> <!--account information as a CS Request Response Message-<cwmp:GetParameterValuesResponse> <parameterlist xsi:type= "Soap-enc:array" soap- Enc:arraytype= "Cwmp:parametervaluestruct[2" > <ParameterValueStruct> <!--set the username of the network administrator on the device-->
; <Name>Device.ManagementServer.Username</Name> <!--The specific value of the user name--&Gt <Value>66661160</Value> </ParameterValueStruct> <ParameterValueStruct> & lt;!
--Set the network management password on the device-<Name>Device.ManagementServer.Password</Name> <!--password Specific value-- <Value>66661160</Value> </ParameterValueStruct> </ParameterList> </ Cwmp:getparametervaluesresponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
(7) After the ACS server receives the message, according to the message carries the account information carries on the legitimacy authentication, if passes through the verification to carry on the operation, if does not pass the message prompts the account illegal. The judgment of the serial number is judged within the ACS and is not reflected in the message.
(8) ACS verifies that the account is valid and sends a message asking the device to download the configuration file from a specific URL
http/1.1 OK date:tue, 03:21:04 GMT server:microsoft-iis/6.0 x-powered-by:asp.net x-aspnet-version:2.0. 50727 set-cookie:serialnumber=00100400rj0100100000001aa9800003; path=/cache-control:private content-type:text/xml;charset=utf-8 content-length:856 <soap:Envelope xmlns:soap= " http://schemas.xmlsoap.org/soap/envelope/"xmlns:cwmp=" urn:dslforum-org:cwmp-1-0 "xmlns:xsd=" http://www.w3.org/ 2001/xmlschema "xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance "xmlns:soap-enc=" http://schemas.xmlsoap.org /soap/encoding/"> <soap:Header> <cwmp:id soap:mustunderstand=" 1 ">1</cwmp:ID> <cwmp:holdr Equests soap:mustunderstand= "1" >0</cwmp:HoldRequests> </soap:Header> <soap:Body> <cwmp:dow Nload> <commandkey>m download</commandkey> <!--file type configuration file--<filetype>3 Vend or configuration file</filetype> <!--The URL of the profile, the device side obtains the configuration file from that address and automatically loads the device--< Url>http://183.62.12.23:8012/config.aspx?id=00100400rj0100100000001aa9800003</url> <Description> </Description> <Username></Username> <Password></Password> <filesize> ;0</filesize> <TargetFileName>ConfigFile.xml</TargetFileName> <delayseconds>0</dela yseconds> <SuccessURL></SuccessURL> <FailureURL></FailureURL> </cwmp:downloa D> </soap:Body> </soap:Envelope>
(9) After the device receives the message, and according to the URL address in the message to download the configuration file and automatically configured, and to the ACS server a download a successful response message
host:183.62.12.23:8012
user-agent:cwmp
content-type:text/xml; charset=utf-8
connection:keep-alive
cookie:serialnumber=00100400rj0100100000001aa9800003;path=/
content-length:484
soapaction: "
<soap-env:envelope
xmlns:soap-env=" http://schemas.xmlsoap.org/ soap/envelope/"
xmlns:soap-enc=" http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="/http/ Www.w3.org/2001/XMLSchema "
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance "
xmlns:cwmp=" urn: dslforum-org:cwmp-1-0 ">
<SOAP-ENV:Header>
<cwmp:id soap-env:mustunderstand=" 1 ">1</ cwmp:id>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<!--inform the ACS server device of the successful acquisition of the configuration file with this message--
<cwmp:DownloadResponse>
<!--successfully downloaded status codes--
<Status>1</Status>
</ cwmp:downloadresponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
ACS server sends a message asking the device to download the upgrade file from a specific URL (whether the upgrade is at the user's discretion)
http/1.1 OK
date:tue, 03:21:04 GMT
server:microsoft-iis/6.0
x-powered-by:asp.net
x-aspnet-version:2.0.50727
set-cookie:serialnumber=00100400rj0100100000001aa9800003; path=/
Cache-control:private