tr069报文汇总 .doc
1、 报文抓取A、 tcpdum本机端口互发抓包写包到tr069文件tcpdump -i 2 -s0 tcp port 8080 -w tr069.pcapB、 用wireshark 查看内容C、 tcpdump -D 可以查看网卡序号2、 连接2.1 Cpe A、 Cpe connect request http header POST /openacs/acs HTTP/1.1Host: 192.168.1.115:8080User-Agent: gSOAP/2.7Content-Type: text/xml; charset=utf-8Content-Length: 2023Connection: Keep-AliveSOAPAction: ""B、 Connect request Soap 消息<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http:/schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http:/schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http:/www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http:/www.w3.org/2001/XMLSchema" xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><SOAP-ENV:Body SOAP-ENV:encodingStyle="http:/schemas.xmlsoap.org/soap/encoding/"><cwmp:Inform><DeviceId><Manufacturer>FishCore</Manufacturer><OUI>00A00D</OUI><ProductClass>FishCore IGD Device</ProductClass><SerialNumber>FC1234567890</SerialNumber></DeviceId><Event xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cwmp:EventStruct1"><EventStruct><EventCode>0 BOOTSTRAP</EventCode><CommandKey></CommandKey></EventStruct></Event><MaxEnvelopes>1</MaxEnvelopes><CurrentTime>2012-08-15T01:43:47</CurrentTime><RetryCount>0</RetryCount><ParameterList xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cwmp:ParameterValueStruct6"><ParameterValueStruct><Name>InternetGatewayDevice.DeviceSummary</Name><Value xsi:type="xsd:string">InternetGatewayDevice:1.1(Baseline:1, UDPConnReq:1, Time:1, EthernetLAN:1, USBLAN:1, WiFiLAN:1, ADSLWAN:1, IPPing:1)</Value></ParameterValueStruct><ParameterValueStruct><Name>InternetGatewayDevice.DeviceInfo.HardwareVersion</Name><Value xsi:type="xsd:string">1.0</Value></ParameterValueStruct><ParameterValueStruct><Name>InternetGatewayDevice.DeviceInfo.SoftwareVersion</Name><Value xsi:type="xsd:string">1.0.0</Value></ParameterValueStruct><ParameterValueStruct><Name>InternetGatewayDevice.DeviceInfo.ProvisioningCode</Name><Value xsi:type="xsd:string">code</Value></ParameterValueStruct><ParameterValueStruct><Name>InternetGatewayDevice.ManagementServer.ParameterKey</Name><Value xsi:type="xsd:string"></Value></ParameterValueStruct><ParameterValueStruct><Name>InternetGatewayDevice.ManagementServer.ConnectionRequestURL</Name><Value xsi:type="xsd:string">http:/192.168.1.115:9892/acscall</Value></ParameterValueStruct></ParameterList></cwmp:Inform></SOAP-ENV:Body></SOAP-ENV:Envelope>2.2 Openacs-http header HTTP/1.1 401 UnauthorizedServer: Apache-Coyote/1.1X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0Set-Cookie: JSESSIONID=B7ED1CA86F84EB0B71F076607DE4ED6E; Path=/WWW-Authenticate: Digest realm="OpenACS",qop="auth",nonce="709372ba4dfb05c20061bfc4bbfa0257"Content-Type: text/html;charset=utf-8Content-Length: 948Date: Wed, 15 Aug 2012 05:43:47 GMT3、 认证3.1cpe 3.1.1 http header HTTP/1.1Host: 192.168.1.115:8080User-Agent: gSOAP/2.7Content-Type: text/xml; charset=utf-8Content-Length: 2023Connection: Keep-AliveAuthorization: Digest realm="OpenACS", username="cpe", nonce="709372ba4dfb05c20061bfc4bbfa0257", uri="/openacs/acs", qop="auth", nc=00000001, cnonce="502b3713ca536bdf380b", response="78bfead30ffb7c3276e1dfa35e44f2dc", opaque="(null)"Cookie: JSESSIONID=B7ED1CA86F84EB0B71F076607DE4ED6ESOAPAction: ""3.1.2 soap 消息<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http:/schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http:/schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http:/www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http:/www.w3.org/2001/XMLSchema" xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><SOAP-ENV:Body SOAP-ENV:encodingStyle="http:/schemas.xmlsoap.org/soap/encoding/"><cwmp:Inform><DeviceId><Manufacturer>FishCore</Manufacturer><OUI>00A00D</OUI><ProductClass>FishCore IGD Device</ProductClass><SerialNumber>FC1234567890</SerialNumber></DeviceId><Event xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cwmp:EventStruct1"><EventStruct><EventCode>0 BOOTSTRAP</EventCode><CommandKey></CommandKey></EventStruct></Event><MaxEnvelopes>1</MaxEnvelopes><CurrentTime>2012-08-15T01:43:47</CurrentTime><RetryCount>0</RetryCount><ParameterList xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cwmp:ParameterValueStruct6"><ParameterValueStruct><Name>InternetGatewayDevice.DeviceSummary</Name><Value xsi:type="xsd:string">InternetGatewayDevice:1.1(Baseline:1, UDPConnReq:1, Time:1, EthernetLAN:1, USBLAN:1, WiFiLAN:1, ADSLWAN:1, IPPing:1)</Value></ParameterValueStruct><ParameterValueStruct><Name>InternetGatewayDevice.DeviceInfo.HardwareVersion</Name><Value xsi:type="xsd:string">1.0</Value></ParameterValueStruct><ParameterValueStruct><Name>InternetGatewayDevice.DeviceInfo.SoftwareVersion</Name><Value xsi:type="xsd:string">1.0.0</Value></ParameterValueStruct><ParameterValueStruct><Name>InternetGatewayDevice.DeviceInfo.ProvisioningCode</Name><Value xsi:type="xsd:string">code</Value></ParameterValueStruct><ParameterValueStruct><Name>InternetGatewayDevice.ManagementServer.ParameterKey</Name><Value xsi:type="xsd:string"></Value></ParameterValueStruct><ParameterValueStruct><Name>InternetGatewayDevice.ManagementServer.ConnectionRequestURL</Name><Value xsi:type="xsd:string">http:/192.168.1.115:9892/acscall</Value></ParameterValueStruct></ParameterList></cwmp:Inform></SOAP-ENV:Body></SOAP-ENV:Envelope>3.2 openacs3.2.1 header HTTP/1.1 200 OKServer: Apache-Coyote/1.1X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0Content-Type: text/xml;charset=utf-8Content-Length: 589Date: Wed, 15 Aug 2012 05:43:47 GMT3.2.2 soap 消息<SOAP-ENV:Envelope xmlns:SOAP-ENC="http:/schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="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"><SOAP-ENV:Header><cwmp:ID SOAP-ENV:mustUnderstand="1">ID:device_did_not_send_id</cwmp:ID><cwmp:NoMoreRequests>0</cwmp:NoMoreRequests></SOAP-ENV:Header><SOAP-ENV:Body><cwmp:InformResponse xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><MaxEnvelopes>1</MaxEnvelopes></cwmp:InformResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>4、 设置参数4.1 cpe 发空request Host: 192.168.1.115:8080User-Agent: gSOAP/2.7Content-Type: text/xml; charset=utf-8Content-Length: 0Connection: Keep-AliveAuthorization: Digest realm="OpenACS", username="cpe", nonce="709372ba4dfb05c20061bfc4bbfa0257", uri="/openacs/acs", qop="auth", nc=00000002, cnonce="502b3713ca540367ae97", response="3592a4159a912404b57a2b47a9029a40", opaque="(null)"Cookie: JSESSIONID=B7ED1CA86F84EB0B71F076607DE4ED6ECookie: CharCode=293a1567c77f25780de94981d4b8b907ba280ee2baa0c4SOAPAction: ""4.2 openacs 响应4.2.1http header HTTP/1.1 200 OKServer: Apache-Coyote/1.1X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0Content-Type: text/xml;charset=utf-8Content-Length: 886Date: Wed, 15 Aug 2012 05:43:47 GMT4.2.2Soap -SetParameterValues <SOAP-ENV:Envelope xmlns:SOAP-ENC="http:/schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="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"><SOAP-ENV:Header><cwmp:ID SOAP-ENV:mustUnderstand="1">ID:intrnl.unset.id.SetParameterValues1345013027511.1424597</cwmp:ID><cwmp:NoMoreRequests>0</cwmp:NoMoreRequests></SOAP-ENV:Header><SOAP-ENV:Body><cwmp:SetParameterValues xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><ParameterList SOAP-ENC:arrayType="cwmp:ParameterValueStruct1"><ParameterValueStruct><Name>InternetGatewayDevice.ManagementServer.PeriodicInformInterval</Name><Value xsi:type="xsd:unsignedInt">160</Value></ParameterValueStruct></ParameterList><ParameterKey>MyCommandKey</ParameterKey></cwmp:SetParameterValues></SOAP-ENV:Body></SOAP-ENV:Envelope>4.3 cpe -SetParameterValuesresponse4.3.1 http header Host: 192.168.1.115:8080User-Agent: gSOAP/2.7Content-Type: text/xml; charset=utf-8Content-Length: 657Connection: Keep-AliveAuthorization: Digest realm="OpenACS", username="cpe", nonce="709372ba4dfb05c20061bfc4bbfa0257", uri="/openacs/acs", qop="auth", nc=00000003, cnonce="502b3713ca552eddf501", response="ddf03724e0c1e47d183de178cf76393c", opaque="(null)"Cookie: JSESSIONID=B7ED1CA86F84EB0B71F076607DE4ED6ECookie: CharCode=293a1567c77f25780de94981d4b8b907ba280ee2baa0c4SOAPAction: ""4.3.2 soap <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http:/schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http:/schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http:/www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http:/www.w3.org/2001/XMLSchema" xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><SOAP-ENV:Header><cwmp:ID SOAP-ENV:mustUnderstand="1">ID:intrnl.unset.id.SetParameterValues1345013027511.1424597</cwmp:ID></SOAP-ENV:Header><SOAP-ENV:Body SOAP-ENV:encodingStyle="http:/schemas.xmlsoap.org/soap/encoding/"><cwmp:SetParameterValuesResponse><Status>0</Status></cwmp:SetParameterValuesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>5、 获取参数Openacs 在接到cpe 空请求或response时,判断是否有方法待执行5.1Openacs-header HTTP/1.1 200 OKServer: Apache-Coyote/1.1X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0Content-Type: text/xml;charset=utf-8Content-Length: 746Date: Wed, 15 Aug 2012 05:43:47 GMT5.2 soap<SOAP-ENV:Envelope xmlns:SOAP-ENC="http:/schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="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"><SOAP-ENV:Header><cwmp:ID SOAP-ENV:mustUnderstand="1">ID:intrnl.unset.id.GetParameterValues1345013027560.6576755</cwmp:ID><cwmp:NoMoreRequests>0</cwmp:NoMoreRequests></SOAP-ENV:Header><SOAP-ENV:Body><cwmp:GetParameterValues xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><ParameterNames SOAP-ENC:arrayType="xsd:string1"><string>InternetGatewayDevice.ManagementServer.PeriodicInformInterval</string></ParameterNames></cwmp:GetParameterValues></SOAP-ENV:Body></SOAP-ENV:Envelope>5.2 cpe -response 5.2.1 cpe header Host: 192.168.1.115:8080User-Agent: gSOAP/2.7Content-Type: text/xml; charset=utf-8Content-Length: 910Connection: Keep-AliveAuthorization: Digest realm="OpenACS", username="cpe", nonce="709372ba4dfb05c20061bfc4bbfa0257", uri="/openacs/acs", qop="auth", nc=00000004, cnonce="502b3713ca56e1d09941", response="e1e4785168ebf040ee41c7bf2df65b3a", opaque="(null)"Cookie: JSESSIONID=B7ED1CA86F84EB0B71F076607DE4ED6ECookie: CharCode=293a1567c77f25780de94981d4b8b907ba280ee2baa0c4SOAPAction: ""5.2.2 cpe soap GetParameterValuesResponse<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http:/schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http:/schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http:/www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http:/www.w3.org/2001/XMLSchema" xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><SOAP-ENV:Header><cwmp:ID SOAP-ENV:mustUnderstand="1">ID:intrnl.unset.id.GetParameterValues1345013027560.6576755</cwmp:ID></SOAP-ENV:Header><SOAP-ENV:Body SOAP-ENV:encodingStyle="http:/schemas.xmlsoap.org/soap/encoding/"><cwmp:GetParameterValuesResponse><ParameterList xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cwmp:ParameterValueStruct1"><ParameterValueStruct><Name>InternetGatewayDevice.ManagementServer.PeriodicInformInterval</Name><Value xsi:type="xsd:unsignedInt">160</Value></ParameterValueStruct></ParameterList></cwmp:GetParameterValuesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>6、 Reboot 6.1 Openacs -reboot 6.1.1 header HTTP/1.1 200 OKServer: Apache-Coyote/1.1X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0Content-Type: text/xml;charset=utf-8Content-Length: 600Date: Wed, 15 Aug 2012 05:43:47 GMT6.1.2 soap<SOAP-ENV:Envelope xmlns:SOAP-ENC="http:/schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="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"><SOAP-ENV:Header><cwmp:ID SOAP-ENV:mustUnderstand="1">ID:intrnl.unset.id.Reboot1345013027582.16300368</cwmp:ID><cwmp:NoMoreRequests>0</cwmp:NoMoreRequests></SOAP-ENV:Header><SOAP-ENV:Body><cwmp:Reboot xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><CommandKey>commandKey</CommandKey></cwmp:Reboot></SOAP-ENV:Body></SOAP-ENV:Envelope>6.2 cpe RebootResponse6.2.1 cpe header Host: 192.168.1.115:8080User-Agent: gSOAP/2.7Content-Type: text/xml; charset=utf-8Content-Length: 604Connection: Keep-AliveCookie: JSESSIONID=B7ED1CA86F84EB0B71F076607DE4ED6ECookie: CharCode=293a1567c77f25780de94981d4b8b907ba280ee2baa0c4SOAPAction: ""6.2.2 cpe soap <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http:/schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http:/schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http:/www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http:/www.w3.org/2001/XMLSchema" xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><SOAP-ENV:Header><cwmp:ID SOAP-ENV:mustUnderstand="1">ID:intrnl.unset.id.Reboot1345013027582.16300368</cwmp:ID></SOAP-ENV:Header><SOAP-ENV:Body SOAP-ENV:encodingStyle="http:/schemas.xmlsoap.org/soap/encoding/"><cwmp:RebootResponse></cwmp:RebootResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>7、 FactoryReset7.1openacs 7.1.1header HTTP/1.1 200 OKServer: Apache-Coyote/1.1X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0Content-Type: text/xml;charset=utf-8Content-Length: 564Date: Wed, 15 Aug 2012 05:43:47 GMT7.1.