tr069 CPE 模拟器 genieacs-sim 默认通信流程解读

发布时间: 2023-04-27 20:37:06 作者: 大象笔记

cpe 端模拟器 genieacs sim 的日志

> ./genieacs-sim --acs-url=http://127.0.0.1:2999
Simulator 000000 started
Simulator 000000 listening for connection requests on http://127.0.0.1:53849/

acs 端日志

增加了部分 debug 日志:

Connection: [keep-alive]
Content-Length: [2066]
Content-Type: [text/xml; charset="utf-8"]
Authorization: [Basic OEtBOFdBMTE1MTEwMDA0Mzo=]
[2023-04-26T22:43:47+08:00]     INFO    tr069/handlers.go:127   debug: body length: 2066

[2023-04-26T22:43:47+08:00]     INFO    tr069/handlers.go:157   recv CPE Inform Message: 4ebliaur       {"namespace": "tr069", "ipaddr": "127.0.0.1", "metrics": "tr069_message_total"}
[2023-04-26T22:43:47+08:00]     DEBUG   tr069/handlers.go:166   msg name: Inform
[2023-04-26T22:43:47+08:00]     INFO    tr069/handlers.go:170   recv inform message     {"namespace": "tr069", "msgid": "4ebliaur", "msgtype": "Inform", "ipaddr": "127.0.0.1", "metrics": "tr069_inform"}
Set-Cookie: [tr069_cookie=000000; Expires=Thu, 27 Apr 2023 14:43:47 GMT]
Content-Type: [application/xml; charset=UTF-8]
Connection: [keep-alive]
cwmp-acs 2023-04-26T22:43:47+08:00 127.0.0.1 POST / HTTP/1.1 200   1659200 2066 664
Authorization: [Basic OEtBOFdBMTE1MTEwMDA0Mzo=]
Cookie: [tr069_cookie=000000; Expires=Thu, 27 Apr 2023 14:43:47 GMT]
Connection: [keep-alive]
Content-Length: [0]
Content-Type: [text/xml; charset="utf-8"]
[2023-04-26T22:43:47+08:00]     INFO    tr069/handlers.go:119   cwmp cooike session sn = 000000 {"namespace": "tr069"}
[2023-04-26T22:43:47+08:00]     INFO    tr069/handlers.go:127   debug: body length: 0

[2023-04-26T22:43:47+08:00]     INFO    tr069/handlers.go:329   debug: Events: map[2 PERIODIC:]

Connection: [keep-alive]
Content-Length: [0]
cwmp-acs 2023-04-26T22:43:49+08:00 127.0.0.1 POST / HTTP/1.1 204   2013392300 0 0

周期性 5 分钟一次?

但是,5 分钟后这一次没有对应的 cpe 端日志。

TODO

我是一名山东烟台的开发者,联系作者