WO2012122730A1 - 基于Tr069协议获取设备状态的方法、ACS及*** - Google Patents

基于Tr069协议获取设备状态的方法、ACS及*** Download PDF

Info

Publication number
WO2012122730A1
WO2012122730A1 PCT/CN2011/073603 CN2011073603W WO2012122730A1 WO 2012122730 A1 WO2012122730 A1 WO 2012122730A1 CN 2011073603 W CN2011073603 W CN 2011073603W WO 2012122730 A1 WO2012122730 A1 WO 2012122730A1
Authority
WO
WIPO (PCT)
Prior art keywords
cpe
acs
connection request
status code
authentication error
Prior art date
Application number
PCT/CN2011/073603
Other languages
English (en)
French (fr)
Inventor
殷宝玉
陆春君
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to EP11860878.5A priority Critical patent/EP2688245B1/en
Priority to ES11860878T priority patent/ES2748405T3/es
Publication of WO2012122730A1 publication Critical patent/WO2012122730A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning

Definitions

  • the present invention relates to the field of network management technologies, and in particular, to a method for obtaining a device state based on the TY069 protocol, an ACS (Auto-Configuration Server), and a system. Background technique
  • Method 1 According to the interaction process of the Tr069 protocol, obtain a fixed parameter on the device, and obtain the parameter value as an online state, and the offline state is not obtained when the value is not obtained or the protocol interaction timeout is performed, and the method flow is as shown in FIG. .
  • the disadvantages of this method are:
  • Method 2 In the initial stage of obtaining the state, the network management system sends a connection request to the device, and obtains the state of the device by using the HTTP status code returned by the HTTP method, as shown in FIG. 2, because the connection request is attached.
  • the ACS username and password cause the connection request to be sent immediately, and the status code 200 or 204 can be obtained immediately.
  • the CPE Customer premises equipment
  • the CPE Customer premises equipment
  • Inform message package this method is more efficient than method one, but there is protocol interaction between CPE and ACS, which degrades system performance. Summary of the invention
  • the main object of the present invention is to provide an efficient and simple method, ACS and system for acquiring device status based on the T 069 protocol.
  • the present invention provides a method for obtaining device status based on the T 069 protocol, the method comprising:
  • the ACS sends a connection request to the CPE, where the connection request carries an incorrect username and password.
  • the status of the CPE is determined according to whether the authentication error status code returned by the CPE after receiving the connection request is received.
  • the ACS determines that the CPE is in an online state
  • the ACS determines that the CPE is offline.
  • the authentication error status code is an HTTP status code.
  • the username and password are set to a fixed or random alphanumeric string.
  • the present invention also provides an ACS for acquiring device status based on the Tr069 protocol, and the ACS includes: a connection request sending module, configured to send a connection request to the CPE, where the connection request carries an incorrect username and password;
  • the status determining module is configured to determine the status of the CPE according to whether an authentication error status code returned by the CPE after receiving the connection request is received.
  • the status determining module is further configured to: when receiving an authentication error status code that is synchronously returned by the CPE according to the connection request, determine that the CPE is in an online state; when receiving a non-authentication error status code or waiting Timeout, determining that the CPE is offline.
  • the authentication error status code is an HTTP status code.
  • the username and password are set to a fixed or random alphanumeric string.
  • the present invention also provides a system for obtaining device status based on the Tr069 protocol, the system comprising: an ACS and a CPE, wherein:
  • the ACS is configured to send a connection request to the CPE, where the connection request carries an incorrect username and password, and determines whether the CPE is determined according to whether an authentication error status code returned by the CPE after receiving the connection request is received.
  • the CPE is configured to receive a connection request sent by the ACS.
  • the authentication error status code is returned to the ACS.
  • the ACS is further configured to: when receiving the authentication error status code that is synchronously returned by the CPE according to the connection request, determining that the CPE is in an online state; when receiving a non-authentication error status code or waiting for a timeout, determining The CPE is offline.
  • the method for obtaining the device status based on the Tr069 protocol, the ACS and the system the ACS sends a connection request carrying the wrong username and password to the CPE, and the CPE is online according to the authentication error status code returned by the CPE.
  • Status when the ACS waits for a timeout or the ACS receives another status code, it determines that the CPE is offline. Therefore, compared with the prior art, the present invention only needs to make an HTTP get call to obtain the device state, and the method is simple and efficient.
  • FIG. 1 is a schematic flow chart of a method for obtaining a device state in the prior art
  • FIG. 2 is a schematic flow chart of another method for acquiring a device state in the prior art
  • FIG. 3 is a schematic flow chart of a method for obtaining a device state based on the T 069 protocol according to the present invention
  • FIG. 4 is a schematic flowchart of determining the state of the CPE according to whether the CPE receives the connection error and returns the authentication error status code after receiving the connection request in the embodiment of the present invention
  • FIG. 5 is a schematic diagram of an interaction process between an ACS and a CPE in an embodiment of a method for obtaining a device state according to the T 069 protocol;
  • FIG. 6 is a schematic structural diagram of an ACS-acquisition method for acquiring a device state based on the TY069 protocol in this embodiment
  • FIG. 7 is a schematic structural diagram of an embodiment of a system for acquiring a device state based on the T 069 protocol in this embodiment. detailed description
  • the solution of the embodiment of the present invention is that the ACS sends a connection request carrying the wrong username and password to the CPE, and determines that the CPE is online according to the authentication error status code returned by the CPE; otherwise, the ACS waits for the timeout or the ACS receives other When the status code is used, it is determined that the CPE is offline; its method of obtaining the device status is simple and efficient.
  • Embodiments of the present invention are implemented based on the existing Tr069 protocol.
  • an embodiment of the present invention provides a method for obtaining a device status based on the T 069 protocol, including:
  • Step S101 the ACS sends a connection request to the CPE, where the connection request carries the wrong username and Password
  • the username and password are set to a fixed or random alphanumeric string.
  • the ACS Similar to the method of obtaining the device status by using the correct username and password as shown in FIG. 2, first, the ACS sends a connection request to the CPE.
  • the connection request carries the wrong username and password. Therefore, the protocol interaction between the CPE and the ACS is detrimental to the performance of the system when the device name is obtained with the correct username and password.
  • Step S102 Determine the state of the CPE according to whether the authentication error status code returned by the CPE after receiving the connection request is received.
  • the CPE when the CPE is online, when receiving the connection request sent by the ACS, the CPE returns an authentication error status code to the ACS, and the authentication error status code is an HTTP status code.
  • the ACS When the ACS receives the authentication error status code, it can determine that the CPE is online; when the ACS receives another status code or the ACS waits for a timeout, it can be determined that the CPE is offline.
  • step S102 includes:
  • Step S1021 determining whether the authentication error status code returned by the CPE according to the connection request is received, and if yes, proceeding to step S1022; otherwise, proceeding to step S1023;
  • the case where the ACS does not receive the authentication error status code returned by the CPE according to the connection request includes: Receiving a non-authentication error status code or waiting for a timeout.
  • Step S1022 The ACS determines that the CPE is in an online state.
  • step S1023 the ACS determines that the CPE is offline.
  • Step 11 The ACS initiates a connection request to the CPE, where the connection request carries the correct username and password.
  • Step 12 The CPE synchronizes to return an HTTP status code of 200 or 204.
  • Step 13 The CPE reports an Inform message with a CONNECTION REQUEST event to the ACS, and the CPE has established a session with the ACS.
  • Step 14 The ACS returns an InformResponse message to the CPE.
  • Step 15 The CPE sends an empty packet to the ACS.
  • Step 16 The ACS sends a GetParameterValues packet to the CPE to obtain a certain parameter of the CPE.
  • Step 17 The CPE returns a GetParameterValuesResponse to the ACS, and the packet contains the parameter value.
  • connection request is sent by using the correct username and password.
  • the CPE After the ACS sends a connection request to the CPE, the CPE returns a 200 or 204 status code, and then the CPE initiates a session, and the Inform and InformResponse interact with each other.
  • the package process ends; its specific interaction process is as follows:
  • Step 21 The ACS initiates a connection request to the CPE, where the connection request carries the correct username and password.
  • Step 22 The CPE synchronizes to return an HTTP status code of 200 or 204.
  • Step 23 The CPE reports an Inform message with a CONNECTION REQUEST event to the ACS, and the CPE has established a session with the ACS.
  • Step 24 The ACS returns an InformResponse message to the CPE.
  • Step 25 The CPE sends an empty packet to the ACS.
  • Step 26 The ACS returns an empty packet to the CPE.
  • Step 51 The ACS initiates a connection request to the CPE, where the connection request carries an incorrect username and password.
  • Step 52 The CPE synchronizes to return an HTTP status code 401.
  • the CPE cannot be activated to send the Inform message to the ACS, but the CPE synchronous transmission status code is 401 (authentication failure).
  • the ACS After receiving the status code, the ACS receives the status code. , the CPE can be considered to be online.
  • the CPE synchronization returns timeout, the program considers the device offline.
  • the embodiment in order to obtain the status of the device, when the ACS sends a connection request to the CPE, the connection request carries the wrong username and password.
  • the ACS synchronizes to return an authentication.
  • the error status code the ACS can determine whether the CPE is online according to whether the authentication error status code returned by the CPE is received.
  • the embodiment only needs to perform an HTTP get call to obtain the device status; For common synchronous calls, the process of obtaining device status is greatly simplified, and the loss of system performance is reduced.
  • the method of this embodiment is particularly applicable to a scenario of polling status in a large-scale device (such as a terminal network management system) because of its high efficiency and simplicity.
  • an embodiment of the present invention provides a device status based on the T 069 protocol.
  • the ACS includes: a connection request sending module 501 and a state determining module 502, wherein: a connection request sending module 501, configured to send a connection request to the CPE; the connection request carries an incorrect username and password;
  • the status determining module 502 is configured to determine the status of the CPE according to whether an authentication error status code returned by the CPE after receiving the connection request is received.
  • the state determining module 502 is further configured to: when receiving the authentication error status code returned by the CPE according to the connection request, determine that the CPE is in an online state; otherwise, if receiving the non-authentication error status code or waiting for a timeout, determining that the CPE is offline status.
  • the username and password are set to a fixed or random alphanumeric string.
  • connection request sending module 501 of the ACS sends a connection request to the CPE, in this embodiment.
  • the connection request carries the wrong user name and password. Therefore, when the correct user name and password are used to obtain the device status, the protocol interaction between the CPE and the ACS causes a defect in system performance.
  • the CPE When the CPE is online, the CPE returns an authentication error status code to the ACS when it receives the connection request sent by the ACS.
  • the authentication error status code is the HTTP status code.
  • the status determination module 502 of the ACS determines whether the CPE is online by receiving an authentication error status code returned by the CPE. When the ACS receives the authentication error status code, it can determine that the CPE is online; when the ACS receives another status code or the ACS waits for a timeout, it can be determined that the CPE is offline.
  • an embodiment of the present invention further provides a system for acquiring a device state based on the TY069 protocol, including: an ACS 601 and a CPE 602, where:
  • the ACS 601 is configured to send a connection request to the CPE 602.
  • the connection request carries an incorrect username and password.
  • the status of the CPE 602 is determined according to whether an authentication error status code returned by the CPE 602 after receiving the connection request is received.
  • the CPE 602 is configured to receive a connection request sent by the ACS 601. When the CPE 602 is online, the authentication error status code is synchronously returned to the ACS 601.
  • the ACS 601 is further configured to: when receiving the authentication error status code returned by the CPE 602 according to the connection request, determining that the CPE 602 is in an online state; otherwise, if receiving the non-authentication error status code or waiting for a timeout, determining that the CPE 602 is in Offline status.
  • the ACS sends a connection request carrying the wrong username and password to the CPE, and the CPE is online according to the authentication error status code returned by the CPE synchronization.
  • Status when the ACS waits for a timeout or the ACS receives another status code, it determines that the CPE is offline. Therefore, the present invention can obtain the device status only by making an HTTP get call, which is simple and efficient.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明提供了一种基于Tr069协议获取设备状态的方法,所述方法包括:ACS向CPE发送连接请求,所述连接请求携带错误的用户名和密码;根据是否接收到所述CPE收到所述连接请求后同步返回的认证错误状态码,判断所述CPE的状态。本发明还提出的一种基于Tr069协议获取设备状态的ACS及***,通过ACS向CPE发送携带有错误的用户名和密码的连接请求,根据CPE同步返回的认证错误状态码得知该CPE处于在线状态,当ACS等待超时或ACS接收到其他状态码时,确定CPE处于离线状态。因此,本发明相比现有技术,只需要做个HTTPget调用,即可获取到设备状态,其方法简单且高效。

Description

基于 Tr069协议获取设备状态的方法、 ACS及*** 技术领域
本发明涉及网管技术领域, 尤其涉及一种基于 TY069 协议获取设备状 态的方法、 ACS ( Auto-Configuration Server, 自动配置服务器 )及***。 背景技术
随着设备网管技术的快速发展, 网管服务器性能的快速提升, 网管服 务器需要管理的设备数量也呈几何级数的增加, 如何快速高效地管理这些 设备, 成为网管***中的一大难题。
在网管领域中, 设备数量巨大, 种类繁多, 如何管理这些设备成为一 大难题, 现有的 SNMP ( Simple Network Management Protocol, 简单网络管 理协议) 由于数据传输的不安全性以及数据定义的随意性, 导致其管理变 得越来越复杂而难以实现, 由 BBF ( Broadband Forum, 宽带论坛)制定的 Tr069协议较好地解决了上述问题,但对于如何实时批量地获取设备的状态 的问题, 依旧没有得到很好地解决, 在现有的 TY069协议中, 通常有以下 两种方法:
方法一、 根据 Tr069协议的交互流程, 获取设备上的某个固定的参数, 能取到参数值为在线状态, 而取不到值或者协议交互超时时为离线状态, 其方法流程如图 1所示。 该方法存在的弊端有:
1、 设备种类繁多, 固定参数可能在某设备上不存在, 导致设备明明在 线, 但因取不到固定参数而认为设备不在线;
2、 要获取设备上的某个固定的参数, 必须基于设备类型做配置, 如 A 类型设备, 取 A1值, B类型设备取 B1值, 导致网管功能结构复杂;
3、 用 TY069协议获取参数, 要经历多次 HTTP ( Hyper Text Transfer Protocol, 超文本传输协议) 交互, 效率低。
方法二、 在获取状态的初期, 网管向设备发送一个连接请求, 通过釆 用 HTTP协议的 get方法返回的 HTTP状态码来实现对设备状态的获取,如 图 2所示, 由于连接请求中附带了 ACS的用户名和密码, 导致连接请求发 送后, 能立即取到状态码 200 或 204, 但随后, CPE ( Customer premises equipment, 用户驻地设备) 将向 ACS 发送一个对获取设备状态无用的 CONNECTION REQUEST 事件的 Inform消息包, 此方法二相比方法一而 言, 效率得到了提高, 但 CPE与 ACS之间有协议交互, 损耗了***性能。 发明内容
本发明的主要目的在于提供一种高效且简单的基于 T 069 协议获取设 备状态的方法、 ACS及***。
为了达到上述目的, 本发明提出一种基于 T 069 协议获取设备状态的 方法, 该方法包括:
ACS向 CPE发送连接请求, 所述连接请求携带错误的用户名和密码; 根据是否接收到所述 CPE收到所述连接请求后同步返回的认证错误状 态码, 判断该 CPE的状态。
优选地, 所述根据是否接收到 CPE收到所述连接请求后同步返回的认 证错误状态码, 判断该 CPE的状态为:
当 ACS接收到所述 CPE根据所述连接请求同步返回的认证错误状态码 时, ACS确定所述 CPE处于在线状态;
当 ACS接收到非认证错误状态码或等待超时,所述 ACS确定所述 CPE 处于离线状态。
优选地, 所述认证错误状态码为 HTTP状态码。
优选地, 所述用户名和密码设定为固定或随机的数字字母组合字符串。 本发明还提出一种基于 Tr069协议获取设备状态的 ACS,该 ACS包括: 连接请求发送模块, 用于向 CPE发送连接请求, 所述连接请求携带错 误的用户名和密码;
状态判断模块, 用于根据是否接收到所述 CPE收到所述连接请求后同 步返回的认证错误状态码, 判断该 CPE的状态。
优选地, 所述状态判断模块, 还用于当接收到所述 CPE根据所述连接 请求同步返回的认证错误状态码时, 确定所述 CPE处于在线状态; 当接收 到非认证错误状态码或等待超时, 确定所述 CPE处于离线状态。
优选地, 所述认证错误状态码为 HTTP状态码。
优选地, 所述用户名和密码设定为固定或随机的数字字母组合字符串。 本发明还提出一种基于 Tr069 协议获取设备状态的***, 所述***包 括: ACS及 CPE, 其中:
所述 ACS, 用于向 CPE发送连接请求, 所述连接请求携带错误的用户 名和密码; 并根据是否接收到所述 CPE收到所述连接请求后同步返回的认 证错误状态码, 判断该 CPE的状态;
所述 CPE,用于接收 ACS发送的连接请求; 当该 CPE在线时, 向 ACS 同步返回认证错误状态码。
优选地,所述 ACS还用于当接收到所述 CPE根据所述连接请求同步返 回的认证错误状态码时, 确定所述 CPE处于在线状态; 当接收到非认证错 误状态码或等待超时, 确定所述 CPE处于离线状态。
本发明提出的一种基于 Tr069协议获取设备状态的方法、 ACS及***, 通过 ACS向 CPE发送携带有错误的用户名和密码的连接请求, 根据 CPE 同步返回的认证错误状态码得知该 CPE处于在线状态,当 ACS等待超时或 ACS接收到其他状态码时, 确定 CPE处于离线状态。 因此, 本发明相比现 有技术, 只需要做个 HTTP get调用, 即可获取到设备状态, 其方法简单且 高效。 附图说明
图 1是现有技术中获取设备状态的一种方法流程示意图;
图 2是现有技术中获取设备状态的另一种方法流程示意图;
图 3是本发明基于 T 069协议获取设备状态的方法一实施例流程示意 图;
图 4是本发明基于 TY069协议获取设备状态的方法一实施例中根据是否 接收到 CPE收到连接请求后同步返回的认证错误状态码,判断该 CPE的状态 的流程示意图;
图 5是本发明基于 T 069协议获取设备状态的方法一实施例中 ACS与 CPE交互过程示意图;
图 6是本实施例中基于 TY069协议获取设备状态的 ACS—实施例结构示 意图;
图 7是本实施例中基于 T 069协议获取设备状态的***一实施例结构示 意图。 具体实施方式
本发明实施例解决方案主要是通过 ACS向 CPE发送携带有错误的用户 名和密码的连接请求,根据 CPE同步返回的认证错误状态码确定该 CPE处 于在线状态; 否则, ACS等待超时或 ACS接收到其他状态码时, 确定 CPE 处于离线状态; 其获取设备状态方法简单、 高效。
本发明实施例基于现有的 Tr069协议而实现。
为了使本发明的技术方案更加清楚、 明了, 下面将结合附图作进一步 详述。
如图 3所示, 本发明一实施例提出一种基于 T 069协议获取设备状态 的方法, 包括:
步骤 S101 , ACS向 CPE发送连接请求,连接请求携带错误的用户名和 密码;
其中, 用户名和密码设定为固定或随机的数字字母组合字符串。
与图 2所示的、 现有的釆用正确的用户名和密码获取设备状态的方法 类似, 首先, ACS向 CPE发送一个连接请求, 本实施例中连接请求中携带 有错误的用户名和密码, 由此, 避免了携带正确的用户名和密码获取设备 状态时, CPE与 ACS之间的协议交互给***性能带来损耗的缺陷。
步骤 S102,根据是否接收到 CPE收到连接请求后同步返回的认证错误 状态码, 判断该 CPE的状态。
本实施例中, 当 CPE在线时, CPE接收到 ACS发送的连接请求时, 会 向 ACS同步返回一个认证错误状态码,该认证错误状态码为 HTTP状态码。
当 ACS收到该认证错误状态码时, 由此可以确定 CPE在线; 当 ACS 收到其他状态码或者 ACS等待超时时, 由此可以确定 CPE离线。
如图 4所示, 步骤 S102包括:
步骤 S1021 , 判断是否接收到 CPE根据连接请求同步返回的认证错误 状态码, 若是, 则进入步骤 S1022; 否则, 进入步骤 S1023;
ACS没有接收到 CPE根据连接请求同步返回的认证错误状态码的情况 包括: 接收到非认证错误状态码或等待超时。
步骤 S1022 , ACS确定 CPE处于在线状态;
步骤 S1023 , ACS确定 CPE处于离线状态。
下面通过将本实施例与现有技术中获取设备状态的方法进行对比, 详 细阐述本实施例的技术方案。
现有的获取设备状态的一种方法流程中, 如图 1所示, ACS向 CPE发 送连接请求后, CPE返回 200或 204状态码, 紧接着 CPE发起会话, 进行 Inform, InformResponse交互后, CPE再发一个空包, ACS发出 get命令, CPE返回 getReponse, 流程结束; 其具体交互过程如下: 步骤 11、 ACS向 CPE发起一个连接请求, 连接请求中携带正确的用 户名和密码;
步骤 12、 CPE同步返回一个 HTTP状态码 200或 204;
步骤 13、 CPE向 ACS上报一个带 CONNECTION REQUEST 事件的 Inform报文, 标志 CPE已和 ACS建立起会话;
步骤 14、 ACS向 CPE回一个 InformResponse报文;
步骤 15、 CPE向 ACS发送一个空报文;
步骤 16、 ACS向 CPE发送一个 GetParameterValues报文, 获取 CPE 的某个参数;
步骤 17、 CPE 向 ACS 返回一个 GetParameterValuesResponse,报文中 包含了参数值。
如图 2所示, 其为使用正确的用户名和密码发送连接请求, 当 ACS向 CPE发送连接请求后, CPE返回 200或 204状态码, 紧接着, CPE发起会 话, Inform、 InformResponse交互, 互发空包流程结束; 其具体交互过程如 下:
步骤 21、 ACS向 CPE发起一个连接请求, 连接请求中携带正确的用 户名和密码;
步骤 22、 CPE同步返回一个 HTTP状态码 200或 204;
步骤 23、 CPE向 ACS上报一个带 CONNECTION REQUEST 事件的 Inform报文 , 标志 CPE已和 ACS建立起会话;
步骤 24、 ACS向 CPE回一个 InformResponse报文;
步骤 25、 CPE向 ACS发送一个空报文;
步骤 26、 ACS向 CPE返回一个空报文。
如图 5所示, 其为本实施例中 ACS与 CPE交互流程示意图, 其交互过 程如下: 步骤 51、 ACS向 CPE发起一个连接请求, 连接请求中携带错误的用户 名和密码;
步骤 52、 CPE同步返回一个 HTTP状态码 401。
在本实施例中, 由于连接请求携带的是错误的用户名和密码, 导致不 能激活 CPE发送 Inform报文到 ACS, 而是 CPE同步发送状态码为 401 (认 证失败), ACS接收到此状态码后, 即可认为此 CPE在线, 当 CPE同步返 回超时时, 程序认为设备离线。
本实施例与现有技术的比较结果如下表 1所示:
Figure imgf000009_0001
表 1
由上表可知, 与现有技术相比较, 现有技术需要获取设备参数或引入 了 T 069协议交互, 方法复杂而且低效, 而本实施例方法高效且简单。
本实施例根据现有的 TY069 协议交互流程, 为了获取设备的状态, 在 ACS向 CPE发送连接请求时, 在连接请求中携带错误的用户名和密码, 当 CPE在线时, 会向 ACS同步返回一个认证错误状态码, ACS从而根据是否 收到 CPE返回的认证错误状态码,即可判断 CPE是否在线,相比现有技术, 本实施例只需进行一次 HTTP get调用, 即可获取到设备状态; 且为常用的 同步调用, 大大简化了获取设备状态的流程, 减少了对***性能的损耗。 本实施例方法由于其高效, 简单, 尤其适用于在大批量设备(如终端网管) 轮询状态的场景。
如图 6所示, 本发明一实施例提出一种基于 T 069协议获取设备状态 的 ACS , 包括: 连接请求发送模块 501 以及状态判断模块 502, 其中: 连接请求发送模块 501 , 用于向 CPE发送连接请求; 连接请求携带错 误的用户名和密码;
状态判断模块 502, 用于根据是否接收到 CPE收到连接请求后同步返 回的认证错误状态码, 判断该 CPE的状态。
具体地, 状态判断模块 502还用于当接收到 CPE根据连接请求同步返 回的认证错误状态码时, 确定 CPE处于在线状态; 否则, 若接收到非认证 错误状态码或等待超时, 确定 CPE处于离线状态。
其中, 用户名和密码设定为固定或随机的数字字母组合字符串。
在本实施例中, 与图 2 所示的、 现有的釆用正确的用户名和密码获取 设备状态的方法类似, 首先, ACS的连接请求发送模块 501向 CPE发送一 个连接请求, 本实施例中连接请求中携带有错误的用户名和密码, 由此, 避免了携带正确的用户名和密码获取设备状态时, CPE与 ACS之间的协议 交互给***性能带来损耗的缺陷。
当 CPE在线时, CPE接收到 ACS发送的连接请求时, 会向 ACS同步 返回一个认证错误状态码, 该认证错误状态码为 HTTP状态码。
ACS的状态判断模块 502通过是否收到 CPE同步返回的认证错误状态 码来判断 CPE是否在线。 当 ACS收到该认证错误状态码时, 由此可以确定 CPE在线; 当 ACS收到其他状态码或者 ACS等待超时时, 由此可以确定 CPE离线。
如图 7所示, 本发明一实施例还提出一种基于 TY069协议获取设备状 态的***, 包括: ACS 601及 CPE 602 , 其中:
ACS 601用于向 CPE 602发送连接请求, 连接请求携带错误的用户名 和密码; 根据是否接收到 CPE 602收到连接请求后同步返回的认证错误状 态码, 判断 CPE 602的状态; CPE 602用于接收 ACS 601发送的连接请求; 当该 CPE 602在线时, 向 ACS 601同步返回认证错误状态码。
具体地, ACS 601还用于当接收到 CPE 602根据连接请求同步返回的 认证错误状态码时, 确定 CPE 602处于在线状态; 否则, 若接收到非认证 错误状态码或等待超时, 确定 CPE 602处于离线状态。
本发明实施例提供的基于 Tr069协议获取设备状态的方法、 ACS及系 统, 通过 ACS向 CPE发送携带有错误的用户名和密码的连接请求, 根据 CPE同步返回的认证错误状态码得知该 CPE处于在线状态,当 ACS等待超 时或 ACS接收到其他状态码时, 确定 CPE处于离线状态。 因此, 本发明相 比现有技术, 只需要做个 HTTP get调用, 即可获取到设备状态, 其方法简 单且高效。
以上所述仅为本发明的优选实施例, 并非因此限制本发明的专利范围, 凡是利用本发明说明书及附图内容所作的等效结构或流程变换, 或直接或 间接运用在其它相关的技术领域, 均同理包括在本发明的专利保护范围内。

Claims

权利要求书
1、 一种基于 Tr069协议获取设备状态的方法, 其特征在于, 所述方法 包括:
自动配置服务器 ACS向用户驻地设备 CPE发送连接请求, 所述连接请 求携带错误的用户名和密码;
根据是否接收到所述 CPE收到所述连接请求后同步返回的认证错误状 态码, 判断所述 CPE的状态。
2、 根据权利要求 1 所述的方法, 其特征在于, 所述根据是否接收到 CPE收到所述连接请求后同步返回的认证错误状态码, 判断所述 CPE的状 态为:
当 ACS接收到所述 CPE根据所述连接请求同步返回的认证错误状态码 时, ACS确定所述 CPE处于在线状态;
当 ACS接收到非认证错误状态码或等待超时,所述 ACS确定所述 CPE 处于离线状态。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述认证错误状态 码为 HTTP状态码。
4、 根据权利要求 1或 2所述的方法, 其特征在于, 所述用户名和密码 设定为固定或随机的数字字母组合字符串。
5、 一种基于 TY069协议获取设备状态的 ACS , 其特征在于, 所述 ACS 包括:
连接请求发送模块, 用于向 CPE发送连接请求, 所述连接请求携带错 误的用户名和密码;
状态判断模块, 用于根据是否接收到所述 CPE收到所述连接请求后同 步返回的认证错误状态码, 判断所述 CPE的状态。
6、 根据权利要求 5所述的 ACS, 其特征在于, 所述状态判断模块, 还 用于当接收到所述 CPE根据所述连接请求同步返回的认证错误状态码时, 确定所述 CPE处于在线状态; 当接收到非认证错误状态码或等待超时, 确 定所述 CPE处于离线状态。
7、 根据权利要求 5所述的 ACS, 其特征在于, 所述认证错误状态码为 HTTP状态码。
8、 根据权利要求 5、 6或 7所述的 ACS , 其特征在于, 所述用户名和 密码设定为固定或随机的数字字母组合字符串。
9、 一种基于 T 069协议获取设备状态的***, 其特征在于, 所述*** 包括: ACS及 CPE, 其中:
所述 ACS, 用于向 CPE发送连接请求, 所述连接请求携带错误的用户 名和密码; 并根据是否接收到所述 CPE收到所述连接请求后同步返回的认 证错误状态码, 判断所述 CPE的状态;
所述 CPE, 用于接收 ACS发送的连接请求; 当所述 CPE在线时, 向 ACS同步返回认证错误状态码。
10、 根据权利要求 9所述的***, 其特征在于, 所述 ACS, 还用于当 接收到所述 CPE根据所述连接请求同步返回的认证错误状态码时, 确定所 述 CPE处于在线状态; 当接收到非认证错误状态码或等待超时, 确定所述 CPE处于离线状态。
PCT/CN2011/073603 2011-03-15 2011-05-03 基于Tr069协议获取设备状态的方法、ACS及*** WO2012122730A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP11860878.5A EP2688245B1 (en) 2011-03-15 2011-05-03 Method, auto-configuration server (acs), and system for obtaining status of device based on tr069 protocol
ES11860878T ES2748405T3 (es) 2011-03-15 2011-05-03 Método, Servidor de Autoconfiguración (ACS), y sistema para obtener el estado de un dispositivo sobre la base del protocolo Tr069

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110062135.7 2011-03-15
CN201110062135.7A CN102684899B (zh) 2011-03-15 2011-03-15 基于Tr069协议获取设备状态的方法、ACS及***

Publications (1)

Publication Number Publication Date
WO2012122730A1 true WO2012122730A1 (zh) 2012-09-20

Family

ID=46816300

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/073603 WO2012122730A1 (zh) 2011-03-15 2011-05-03 基于Tr069协议获取设备状态的方法、ACS及***

Country Status (4)

Country Link
EP (1) EP2688245B1 (zh)
CN (1) CN102684899B (zh)
ES (1) ES2748405T3 (zh)
WO (1) WO2012122730A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112714140A (zh) * 2019-10-24 2021-04-27 海信电子科技(武汉)有限公司 数据传输方法、装置及***
CN113904939A (zh) * 2021-10-27 2022-01-07 中国联合网络通信集团有限公司 一种管理目标终端的方法、装置及存储介质

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841084B (zh) * 2012-11-23 2018-03-02 中国电信股份有限公司 Wan连接查询方法、网关和终端管理设备、***
CN105282204B (zh) * 2014-07-23 2019-01-25 中兴通讯股份有限公司 Tr069协议方法处理方法、装置及网关设备
CN104954187B (zh) * 2015-06-30 2018-11-27 新华三技术有限公司 一种确定用户侧设备状态的方法和装置
CN106330513A (zh) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 tr069协议信息的处理方法及装置
CN108881343B (zh) * 2017-05-11 2021-06-15 中兴通讯股份有限公司 获取客户终端设备状态的方法、装置及自动配置服务器
CN109274658B (zh) * 2018-09-04 2020-11-06 烽火通信科技股份有限公司 基于tr069协议的工单报文分析方法及***
CN112564976A (zh) * 2020-12-11 2021-03-26 江苏亿通高科技股份有限公司 一种基于tr069协议的性能参数监控方法

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159684A (zh) * 2007-10-19 2008-04-09 华为技术有限公司 用户驻地设备会话管理的方法及***
CN101360021A (zh) * 2008-10-14 2009-02-04 中国电信股份有限公司 一种无线宽带用户状态的监测方法和***

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5710885A (en) * 1995-11-28 1998-01-20 Ncr Corporation Network management system with improved node discovery and monitoring
US7143152B1 (en) * 2000-03-31 2006-11-28 Verizon Laboratories Inc. Graphical user interface and method for customer centric network management
ATE513382T1 (de) * 2008-04-04 2011-07-15 Alcatel Lucent Automatische konfigurierung einer netzwerkvorrichtung von einem automatischen konfigurierungsserver durch ein fernsteuerungsprotokoll

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159684A (zh) * 2007-10-19 2008-04-09 华为技术有限公司 用户驻地设备会话管理的方法及***
CN101360021A (zh) * 2008-10-14 2009-02-04 中国电信股份有限公司 一种无线宽带用户状态的监测方法和***

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112714140A (zh) * 2019-10-24 2021-04-27 海信电子科技(武汉)有限公司 数据传输方法、装置及***
CN112714140B (zh) * 2019-10-24 2023-04-07 海信电子科技(武汉)有限公司 数据传输方法、装置及***
CN113904939A (zh) * 2021-10-27 2022-01-07 中国联合网络通信集团有限公司 一种管理目标终端的方法、装置及存储介质
CN113904939B (zh) * 2021-10-27 2023-07-28 中国联合网络通信集团有限公司 一种管理目标终端的方法、装置及存储介质

Also Published As

Publication number Publication date
EP2688245B1 (en) 2019-07-10
ES2748405T3 (es) 2020-03-16
EP2688245A1 (en) 2014-01-22
EP2688245A4 (en) 2014-10-29
CN102684899A (zh) 2012-09-19
CN102684899B (zh) 2014-11-05

Similar Documents

Publication Publication Date Title
WO2012122730A1 (zh) 基于Tr069协议获取设备状态的方法、ACS及***
KR101457241B1 (ko) 네트워크에서의 완전 메시 레이트 트랜잭션
US20160294575A1 (en) System, Apparatus, and Method for Automatically Configuring Application Terminals in Home Network
US9614914B2 (en) System comprising a publish/subscribe broker for a remote management of end-user devices, and respective end-user device
US9615224B2 (en) Zero touch deployment over a wireless wide area network
CN103825881A (zh) 基于无线访问控制器ac实现wlan用户的重定向方法及装置
TWI507890B (zh) Pushlet即時通訊方法及平台
WO2011107013A1 (zh) 设备间安全接入方法和通信设备
US20210392045A1 (en) Device Configuration Method, System, and Apparatus
WO2018196587A1 (zh) 融合网络中的用户认证方法及装置
WO2015131524A1 (zh) 远程访问服务器的方法及web服务器
WO2009021460A1 (fr) Procédé de rapport d'un résultat de mise en œuvre de politique, système de communication par réseau et équipement
KR20150043533A (ko) 모바일 단말기들의 웹 기반 오버―디―에어 제공 및 활성화
WO2017080335A1 (zh) 一种基于pppoe网络的拨号方法、拨号***及路由器
WO2012155668A1 (zh) 网管配置管理方法及装置
WO2016180089A1 (zh) 一种交换机的配置方法、装置、移动终端及交换机
WO2012041029A1 (zh) 一种服务器处理业务的方法及装置
CN114268938A (zh) 用户前置设备的纳管方法、装置、设备以及存储介质
WO2010124571A1 (zh) 节点信息获取方法、客户端、服务器
WO2014015525A1 (zh) 一种用户在线状态的查询方法和装置
CN106453400B (zh) 一种认证方法及***
CN115334066B (zh) 一种分布式集群***及其处理同步请求响应的方法
EP3382943B1 (en) Method and system for managing a service provider infrastructure
EP2466814A1 (en) Method, remote access server and system for configuring quality of service
WO2013044516A1 (zh) 网络拨号的方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11860878

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2011860878

Country of ref document: EP