WO2010121531A1 - 一种终端管理系统更新终端状态的方法及终端管理系统 - Google Patents

一种终端管理系统更新终端状态的方法及终端管理系统 Download PDF

Info

Publication number
WO2010121531A1
WO2010121531A1 PCT/CN2010/071874 CN2010071874W WO2010121531A1 WO 2010121531 A1 WO2010121531 A1 WO 2010121531A1 CN 2010071874 W CN2010071874 W CN 2010071874W WO 2010121531 A1 WO2010121531 A1 WO 2010121531A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
status
response message
management system
managed
Prior art date
Application number
PCT/CN2010/071874
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 华为终端有限公司
Publication of WO2010121531A1 publication Critical patent/WO2010121531A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method for a terminal management system to update a terminal state and a terminal management system.
  • an operator uses a TMS (Terminal Management System) platform to implement terminal management of a terminal device that is distributed to a user.
  • TMS Terminal Management System
  • the interaction between the TMS and the managed terminal is implemented by the CWM P Protocol (CPE WAN Management Protocol).
  • CWM P session is actively established by the terminal device. Therefore, the update of the online status of the management terminal by the TMS mainly depends on the active reporting of the terminal device in a fixed period, and the update mode is passive update.
  • the TMS needs to update the online status of the management terminal, as specified in the CWMP protocol:
  • the establishment of the CWMP session is initiated based on the event that the terminal device actively reports, so the TMS can only actively establish a CWM P session through the connection request mechanism.
  • the connection request mechanism is completed in two sessions in the actual application process: (1) The TMS system acts as the client, the terminal device acts as the server, and the TMS and the terminal device are built. After the connection is established, the TMS actively sends an HTTP GET return message with an empty content to the terminal device to initiate a connection to the terminal, and the user-side terminal device receives the HTTP 200 OK response message and disconnects the TMS after receiving the message.
  • the terminal device acts as the client, and the TMS acts as the server.
  • the terminal device actively reports the INFORM event of the CONNECTION REQUEST to the TMS, and creates a new CWMP ⁇ tongue.
  • the CWMP connection request mechanism established in the above two sessions can be seen that the TMS can obtain the online status of the terminal in the TMS system and update it according to the received HTTP 200 OK response message.
  • the terminal that sends the HTTP 200 OK response message will also actively report the INFORM event of the CONNECTION REQUEST to the TMS.
  • the TMS usually needs to update the online status of the terminal in real time to meet the monitoring of the terminal.
  • the TMS relies on the active device of the terminal device in a fixed period. Passive update method, lack of real-time;
  • Embodiments of the present invention provide a method for a terminal management system to update a terminal state and a terminal management system, which can perform a refreshing of a massive terminal state in real time and greatly reduce the impact on the performance overhead and normal service operation of the TMS system. .
  • An embodiment of the present invention provides a method for a terminal management system to update a terminal state, including: Receiving a transmission control protocol connection response message sent by the terminal managed by the terminal management system; determining, according to the connection response message, that the terminal that sends the response message is in an online state; and updating the terminal status according to the obtained status of the managed terminal.
  • the present invention provides a terminal management system, and the system includes:
  • a message receiving module configured to receive a transmission control protocol connection response message sent by the terminal managed by the terminal management system
  • a status determining module configured to determine, according to the connection response message received by the message receiving module, that the terminal that sends the response message is in an online state
  • a status update module configured to update the terminal status according to the status of the managed terminal obtained by the status determination module.
  • Embodiment 1 is a flowchart of a method according to Embodiment 1 of the present invention.
  • FIG. 2 is a flow chart of the process of updating a terminal state of a TMS in the CWMP protocol according to the method according to the first embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a system according to Embodiment 2 of the present invention.
  • FIG. 5 is a schematic structural diagram of a terminal according to Embodiment 4 of the present invention. detailed description
  • the TMS system relies on the managed terminal to actively report in a fixed period to obtain the online status of the terminal (the current time of the terminal that is reported is online, and the current time of the terminal that is not reported is not online); In the application scenario, the TMS system needs to update the status of the managed terminal in real time to manage the terminal, and the terminal actively reports the method, and does not have real-time requirements;
  • the TMS system can only establish a CWMP connection requesting machine with the managed terminal.
  • a series of commands for establishing application layer data are also sent (for details, please refer to the background technology).
  • the INFORM event of CONNECTION REQUEST which does not process a large number of terminals concurrently reported in the later stage, causes the TMS system to sacrifice a large performance overhead, which has an impact on the operation of normal services.
  • An embodiment of the present invention provides a method and system for updating a terminal state by a terminal management system.
  • the technical solution includes: receiving a transmission control protocol connection response message sent by a terminal managed by a terminal management system; determining, according to the connection response message, sending the The terminal responding to the message is in an online state; the terminal state is updated according to the obtained status of the managed terminal.
  • the TMS system sends a TCP connection request message to the managed terminal before receiving the transmission control protocol connection response message sent by the terminal managed by the terminal management system; after that, if the TMS system does not receive the TCP connection response message within a predetermined time, It is determined that the terminal that did not send the response message is offline.
  • the predetermined time is set by the terminal management system.
  • the terminal management system needs to update the status of the managed mass terminal in a short time to realize resource allocation, it is usually required to set the predetermined time. Short, to ensure business needs, for example: You can set the scheduled time to a few seconds to tens of seconds;
  • the predetermined time may be set longer, for example: set to a few minutes.
  • the embodiment of the present invention is mainly for the terminal management system to implement the massive terminals managed by the terminal management system.
  • the technical solution proposed when refreshing, so the time setting is usually shorter to meet the time requirement of real-time refresh.
  • the TMS system can accurately judge the state of the managed terminal in a short time, and realize the monitoring and management of the terminal.
  • the method may further include: disconnecting the TCP connection with the terminal that sends the connection response message in the managed terminal, to end the The process of managing terminal status updates.
  • Embodiment 1 The method in the embodiment of the present invention is applicable to the CWMP protocol to implement real-time update of the terminal state by the terminal management system.
  • the following description will be made in conjunction with the embodiments.
  • a method for updating a terminal state of a terminal management system is applicable to a real-time update of a terminal state by a terminal management system in a CWMP protocol, and the method may include: Step 102: Receive terminal management system management The transmission control protocol connection response sent by the terminal is cancelled. Step 103: According to the connection response message, determining that the terminal that sends the response message is in an online state;
  • Step 104 Update the terminal status according to the obtained status of the managed terminal.
  • the method according to the first embodiment of the present invention is applied to the CWMP protocol, and provides a real-time and simple method not only when the TMS system updates the state of the massive terminal managed in real time;
  • the connection request mechanism using the CWMP protocol is updated during the process. Additional performance overhead from TMS systems and impact on normal operations.
  • the method may further include:
  • Step 101 Send a transmission control protocol connection request message to the managed terminal.
  • the method is proposed in the perspective of a TMS system (terminal management system), that is,
  • the TMS system knows the address information of the managed terminal and the corresponding CWMP listening port address information, so the TCP protocol connection request message may carry the address of at least one terminal managed by the TMS system and the address of the CWMP listening port, and the TMS system itself.
  • the address information is such that the TMS system receives a TCP connection response message sent by the terminal that can establish a TCP protocol connection.
  • the method further includes:
  • the response message in the embodiment of the present invention may include the address information of the terminal that sends the response message and the corresponding CWMP listening port address, so that the TMS system that receives the response message collects the managed terminal status.
  • the TMS system can obtain the online and offline status of the managed terminal.
  • the setting of the predetermined time is mainly determined by the terminal management system according to the requirements of the terminal.
  • the specific setting manner refer to the related content in the foregoing specific embodiment of the present invention.
  • the TMS system can accurately determine the end of management in a short time.
  • the state of the terminal enables monitoring and management of the terminal.
  • the method may further include:
  • Step 105 Disconnect the TCP protocol from the terminal that sends the response message in the managed terminal to end the process of updating the managed terminal status.
  • the TMS system updates the managed terminal in a short period of time, in order not to affect the normal operation of the TMS system, after the update is completed, the TCP connection is disconnected and the link is released.
  • the embodiment of the present invention when updating the state of the managed terminal, establishes only a TCP connection, and does not send an HTTP GET message to the terminal to establish an application layer.
  • the TMS system only needs to judge whether the terminal can be online by establishing a TCP connection to the CWMP listening port of the terminal through the interaction of the TCP connection layer.
  • the TMS system since the TMS system does not send an HTTP GET message to the terminal, the TCP connection session is terminated, and the terminal follows the CWMP protocol, and the session is considered to be an abnormal CWMP connection request mechanism operation, so After the TCP connection is terminated, the INFORM event of the CONNECTION REQUEST is reported concurrently, so that the TMS system can avoid spending a lot of time to process the INFORM event of the unrelated CONNECTION REQUEST when refreshing the terminal state, thus reducing the overhead of the TMS system. And will not affect normal business operations.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the embodiment of the present invention further provides a terminal management system corresponding to the method described in the first embodiment, which is proposed by the TMS system, and is applicable to the CWMP protocol.
  • the related technical solutions in this embodiment are the same as the first embodiment of the present invention. For details, refer to the first embodiment.
  • the system can include:
  • the message receiving module 22 is configured to receive a transmission control protocol connection response message sent by the terminal managed by the terminal management system;
  • the status determining module 33 is configured to determine, according to the connection response message received by the message receiving module, that the terminal that sends the response message is in an online state;
  • the status update module 44 is configured to update the status of the terminal according to the status of the managed terminal obtained by the status determination module.
  • system may further include:
  • the request message sending module 1 1 is configured to send a transmission control protocol connection request message to the managed terminal.
  • the content of the transmission control protocol connection request message is the same as the related technical solution in the first step of the first embodiment, and is not described here.
  • the state determining module 33 is further configured to: after the message sending module 11 sends a transmission control protocol connection request message to the terminal, if the connection response message is not received within a predetermined time, It is determined that the terminal that did not send the response message is offline.
  • the state determining module 33 is the same as the related technical solution in the first step of the first embodiment, and the setting method of the predetermined time is also referred to in the first embodiment of the present invention, and details are not described herein.
  • system may further include:
  • the disconnection module 55 is configured to disconnect the transmission control protocol from the terminal that sends the response message after the status update module updates the terminal status.
  • the method for updating the terminal state of another terminal management system corresponding to the first embodiment of the present invention is also applicable to the real-time update of the terminal state by the terminal management system in the CWM P protocol.
  • Methods include:
  • Step 401 Receive a TCP protocol connection request message sent by the terminal management system.
  • Step 402 Send a TCP protocol connection response message to the terminal management system, so that the terminal management system determines the status of the managed terminal according to the connection response message, and updates the terminal status.
  • the specific process of the step 402 may include:
  • a TCP protocol connection response message is sent to the terminal management system for a predetermined time, the response message being used to indicate that a TCP protocol connection has been established with the terminal management system.
  • the embodiment of the present invention is proposed by the terminal managed by the TMS system. Therefore, after receiving the connection request message, the terminal device at the current moment sends the address including the own address and the CWMP listening port address within a predetermined time. The response message is sent to the TMS system to indicate that a TCP connection has been established with the terminal management system.
  • the method may further include:
  • Step 403 Receive a request message for disconnecting the TCP protocol connection sent by the terminal management system.
  • Step 404 Send a response message to the terminal management system, to disconnect from the terminal management system. TCP protocol connection between the systems.
  • Embodiment 4 By applying the method described in the foregoing embodiment 3 to the CWMP protocol, a simple update method can be provided for the terminal management system, and the passiveness of the terminal management system in the prior art when updating the managed terminal is avoided.
  • Embodiment 4
  • the terminal can include:
  • the request message receiving module 41 is configured to receive a TCP protocol connection request cancellation response message sending module 42 sent by the terminal management system: configured to send a TCP protocol connection response message to the terminal management system, so that the terminal management system responds according to the connection The message determines the status of the managed terminal and updates the status of the terminal.
  • the response message sending module 42 sends a TCP protocol connection response message to the terminal management system for a predetermined time, and the response message is used to indicate that a TCP protocol connection has been established with the terminal management system.
  • the embodiment of the present invention is proposed from the perspective of a terminal managed by the TMS system, so the current time is online.
  • the terminal device After receiving the connection request message, the terminal device sends a response message including its own address and the CWM P listening port address to the TMS system within a predetermined time to indicate that a TCP connection has been established with the terminal management system.
  • the terminal sends a response message to the terminal management system within a predetermined time set by the terminal management system to indicate that the terminal is in an online state; otherwise, the terminal management system does not receive the response message sent by the terminal within a predetermined time, which is regarded as This terminal is offline.
  • the terminal may further include:
  • the disconnection message receiving module 43 is configured to receive a request message for disconnecting the TCP protocol connection sent by the terminal management system;
  • the disconnection response sending module 44 is configured to feed back a response message to the terminal management system to disconnect the TCP protocol with the terminal management system.
  • the technical solutions involved in the disconnection message receiving module 43 and the disconnection response sending module 44 correspond to the steps 403 and 404 in the third embodiment, and are not described herein.
  • the device described in the fourth embodiment of the present invention solves the problem that the TMS system uses the request mechanism of the CWM P protocol to perform terminal update in the CWMP protocol, and the performance of the TMS system is large, thereby normal service operation, and the TMS is reduced.
  • the performance overhead of the system ensures the normal operation of the business.
  • a person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium, the program When executed, the flow of an embodiment of the methods as described above may be included.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)
  • Stored Programmes (AREA)

Abstract

本发明公开了一种终端管理系统更新终端状态的方法,技术方案包括:接收终端管理系统管理的终端发送的传输控制协议连接回应消息;根据所述连接回应消息,确定发送所述回应消息的终端处于在线状态;根据获得的所管理的终端的状态更新终端状态。本发明还提供了一种终端管理系统。采用本发明所述的技术方案能够准确的对终端在线和离线状态进行实时更新,解决了现有技术中依靠终端设备在固定周期内主动上报这种方式来更新终端状态的被动性问题,并且采用本发明技术方案能够减轻终端管理系统的性能开销,在不影响 正常业务运作的情况下提高系统的效率。

Description

一种终端管理系统更新终端状态的方法及终端管理系统
本申请要求于 2009 年 4 月 21 日提交中国专利局、 申请号为 200910130995.2、 发明名称为 "一种终端管理系统更新终端状态的方法及终 端管理系统" 的中国专利申请的优先权, 其全部内容通过引用结合在本申 请中。 技术领域 本发明涉及通信技术领域,尤其涉及一种终端管理系统更新终端状态的方 法及终端管理系统。
背景技术 在通信技术领域中, 运营商为了对发放到用户侧的终端设备进行统一管 理, 采用了 TMS ( Terminal Management System, 终端管理系统)平台, 以 实现终端配置的自动化。 在实际的应用场景下, TMS与管理的终端之间的交互通过 CWM P协议 ( CPE WAN Management Protocol, CPE广域网管理协议)来实现。 其中, CWM P会话是由终端设备主动建立的, 所以 TMS对管理终端的在线状态的更 新,主要依赖于终端设备在固定周期内的主动上报,这种更新方式为被动更新。 TMS需要对管理终端的在线状态进行更新时, 由于在 CWMP协议中规定:
CWMP会话的建立是根据终端设备主动上报事件发起的, 所以 TMS只能通过 连接请求机制来主动建立 CWM P会话。 连接请求机制在实际的应用过程中通过两个会话完成: ( 1 ) TMS系统作为客户端, 终端设备作为服务器端, TMS与终端设备建 立连接后, TMS向终端设备主动发送一个内容为空的 HTTP GET回连报文以对 终端发起连接, 用户侧终端设备接收后向 TMS发送 HTTP 200 OK回应报文, 并断开连接;
( 2 )终端设备作为客户端, TMS作为服务器端, 终端设备向 TMS主动上 报 CONNECTION REQUEST的 INFORM事件, 新建一个 CWMP^ 舌。
在上述两个会话建立的 CWMP连接请求机制可以看出, TMS根据接收到 的 HTTP 200 OK回应报文, 就可以获得 TMS系统中终端的在线状态, 进行更 新。 但是由于采用了 CWMP协议, 发送 HTTP 200 OK回应报文的终端还会主 动向 TMS上报 CONNECTION REQUEST的 INFORM事件。
在实现本发明过程中, 发明人发现现有技术中至少存在如下问题:
( 1 )在实际应用中, 通常 TMS要求在需要时实时地对终端的在线状态进 行更新, 以达到对终端的监控,现有技术中 TMS依赖于终端设备在固定周期内 的主动上^艮这种被动更新方式, 缺乏实时性;
( 2 )在采用 CWM P协议的连接请求机制通过应用层数据的交互获取终端 状态时, 仍然需要处理大量终端并发上报的 CONNECTION REQUEST的 INFORM事件, 加大了 TMS系统的性能开销, 对其正常业务的运作存在影响。 发明内容 本发明的实施例提供了一种终端管理系统更新终端状态的方法及终端管 理系统, 能够实时高效地完成海量终端状态的刷新,并且大大降低对 TMS系统 的性能开销和正常业务运行的影响。
本发明的实施例提供一种终端管理系统更新终端状态的方法, 包括: 接收终端管理系统管理的终端发送的传输控制协议连接回应消息; 根据所述连接回应消息, 确定发送所述回应消息的终端处于在线状态; 根据获得的所管理的终端的状态更新终端状态。 本发明提供了一种终端管理系统, 所述系统包括:
消息接收模块,用于接收终端管理系统管理的终端发送的传输控制协议连 接回应消息;
状态判定模块, 用于根据所述消息接收模块接收到的所述连接回应消息, 确定发送所述回应消息的终端处于在线状态;
状态更新模块,用于根据所述状态判定模块获得的所管理的终端的状态更 新终端状态。 由上述本发明的实施例提供的技术方案可以看出,在 CWMP协议中, TMS 系统通过判断是否能够与所管理的终端建立 TCP连接,获得所管理的终端的状 态, 从而对所述终端的状态进行更新。 本发明实施例不仅在 CWMP协议中, 提出了一种使得 TMS系统能够对所管理的海量终端的状态进行实时更新的方 法; 还避免了利用 CWMP协议中连接请求机制进行更新时, 给 TMS系统带来 的性能开销以及对正常运作业务的影响。 附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需 要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的 一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例一所述方法的流程图;
图 2为本发明实施例一所述方法在 CWMP协议中 TMS更新终端状态的交 互流程图;
图 3为与本发明实施例二所述系统的结构示意图;
图 4为本发明实施例三所述方法的流程图;
图 5与本发明实施例四所述终端的结构示意图。 具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。 通常, 在现有技术中 TMS系统依靠所管理的终端在固定周期内主动上报, 来获得终端的在线状态(作出上报的终端当前时刻在线, 未作出上报的终端当 前时刻不在线); 但是在实际应用场景中, TMS系统需要对所管理的终端状态 进行实时更新, 以对所述终端进行管理, 采用终端主动上报这种方式, 不具备 实时性的要求;
在 CWMP协议中, 由于未针对 TMS系统更新所管理的终端提出一种合适 的方法, 通常 TMS系统只能通过与所管理的终端之间建立 CWMP连接请求机 制的方式来获取终端的状态; 但是 CWMP协议规定了会话机制, 并且 CWMP 协议规定的会话机制并不是仅仅针对 TMS系统更新所提出的,是一种建立在应 用层数据的会话, 即在 TMS系统与终端之间建立了 TCP连接后,还要发送一系 列的建立应用层数据的命令 (具体技术请参照背景技术), 虽然在 TCP连接初 始会话中 TMS系统可以获得终端的在线状态,但又不得不处理大量终端在后期 并发上报的 CONNECTION REQUEST的 INFORM事件,使 TMS系统牺牲了较 大的性能开销, 对正常业务的运作带来了影响。
本发明实施例提供了一种终端管理系统更新终端状态的方法及系统,技术 方案包括: 接收终端管理系统管理的终端发送的传输控制协议连接回应消息; 根据所述连接回应消息,确定发送所述回应消息的终端处于在线状态;根据获 得的所管理的终端的状态更新终端状态。
其中,接收终端管理系统管理的终端发送的传输控制协议连接回应消息之 前, TMS系统向所管理的终端发送 TCP连接请求消息; 之后, TMS系统在预 定时间内如果未收到 TCP连接回应消息,则确定未发送所述回应消息的终端处 于离线状态。
其中, 所述预定时间是由终端管理系统来设定的,通常终端管理系统需要 在短时间内对所管理的海量终端进行状态更新以实现资源的分配时,通常需要 将预定时间设定的很短, 以保证业务需求, 例如: 可以将预定时间设定为几秒 到几十秒;
若终端管理系统为了保持对所管理的海量终端进行监控时, 可以将所述 预定时间设置的较长, 例如: 设置为几分钟。
由于本发明实施例主要是针对终端管理系统对所管理的海量终端进行实 时刷新而提出的技术方案, 所以通常将时间设置的较短, 以符合实时刷新的时 间要求。
通过预定时间的设定, TMS系统可以在短时间内准确地判断出所管理的终 端的状态, 实现对终端的监控管理。
具体地说, ^居获得的所管理的终端的状态更新终端状态的更新之后,该 方法还可以包括: 与所管理的终端中发送所述连接回应消息的终端断开 TCP 连接, 以结束对所管理的终端状态更新的过程。
本发明实施例所述方法适用于 CWMP协议中, 以实现终端管理系统对终 端状态的实时更新。 为了更好的说明本发明实施例所述技术方案, 下面结合实施例进行说明。 实施例一:
结合图 1所示, 本发明实施例——种终端管理系统更新终端状态的方法, 适用于 CWMP协议中终端管理系统对终端状态的实时更新, 该方法可以包括: 步骤 102: 接收终端管理系统管理的终端发送的传输控制协议连接回应消 步骤 103: 根据所述连接回应消息, 确定发送所述回应消息的终端处于在 线状态;
步骤 104: 根据获得的所管理的终端的状态更新终端状态。
如上所述,本发明实施例一所述的方法应用在 CWMP协议中,不仅在 TMS 系统对所管理的海量终端的状态进行实时更新时,提供了一种实时、 简便的方 法; 还避免了现有技术中利用 CWMP协议的连接请求机制在更新过程中, 给 TMS系统带来的额外性能开销以及对正常运作业务的影响。 具体地说, 在步骤 102之前, 所述方法还可以包括:
步骤 101 : 向所管理的终端发送传输控制协议连接请求消息;
本实施例中, 所述方法是以 TMS系统(终端管理系统)的角度提出的, 即
TMS系统已知所管理的终端的地址信息以及对应的 CWMP监听端口地址信 息,所以 TCP协议连接请求消息中可以携带 TMS系统所管理的至少一个终端的 地址和 CWMP监听端口的地址, 以及 TMS系统自身的地址信息, 以使 TMS系 统接收到可以建立 TCP协议连接的终端发送的 TCP连接回应消息。
进一步地,在向所管理的终端发送传输控制协议连接请求消息之后, 所述 方法还包括:
根据预定时间是否接收到连接回应消息,确定终端的状态; 当在预定时间 内收到连接回应消息,确定发送所述回应消息的终端处于在线状态; 若在预定 时间未接收到回应消息, 则确定未发送所述回应消息的终端处于离线状态。
本发明实施例中所述回应消息中可以包含发送回应消息的终端的地址信 息以及对应的 CWMP监听端口地址, 以使接收到所述回应消息的 TMS系统收 集所管理的终端状态。
通过判断在预定时间内是否接收到连接回应消息, TMS系统就可以获得 所管理的终端的在线和离线的状态。
具体地说,所述预定时间的设定主要是由终端管理系统根据自身的需求来 决定, 具体设定方式请参见上述本发明具体实施例中的相关内容。
通过预定时间的设定, TMS系统可以在短时间内准确地判断出所管理的终 端的状态, 实现对终端的监控管理。 具体地说, 步骤 104之后, 所述方法还可以包括:
步骤 105: 与所管理的终端中发送所述回应消息的终端断开 TCP协议连 接, 以结束对所管理的终端状态更新的过程。
说明: 由于 TMS系统对所管理的终端进行更新是在较短的时间内发生的, 为了不影响 TMS系统正常的运行,在更新完毕后,要断开 TCP连接,释放链路。
结合图 2, 由上述实施例一可知, 应用本发明所述实施例在对所管理的终 端状态进行更新时, 仅仅建立 TCP连接, 并不向终端发送协议中规定 HTTP GET报文来建立应用层数据的交互业务, TMS系统只需通过 TCP连接层的交 互判断是否可以向终端的 CWMP监听端口建立 TCP连接, 即可判断该终端是 否在线。
以上这种更新方式,由于 TMS系统未向终端发送 HTTP GET报文就结束了 TCP连接会话,并且终端遵循 CWMP协议,会认为此次会话为非正常的 CWMP 连接请求机制的操作, 所以并不会在结束 TCP连接后并发上报 CONNECTION REQUEST的 INFORM事件,这样 TMS系统就能够避免在对终端状态进行刷新 时, 花大量的时间去处理无关的 CONNECTION REQUEST的 INFORM事件, 这样就减低了 TMS系统的开销, 并且不会影响正常的业务运作。
实施例二:
结合图 3所示, 本发明实施例还提供了一种是以 TMS系统的角度提出的, 与实施例一所述方法对应的终端管理系统, 适用于 CWMP协议。 其中, 本实 施例中涉及的相关技术方案与本发明实施例一相同,具体可参见实施例一, 该 系统可以包括:
消息接收模块 22,用于接收终端管理系统管理的终端发送的传输控制协议 连接回应消息;
状态判定模块 33, 用于根据所述消息接收模块接收到的所述连接回应消 息, 确定发送所述回应消息的终端处于在线状态;
状态更新模块 44,用于^^据所述状态判定模块获得的所管理的终端的状态 更新终端状态。
具体地说, 所述系统还可以包括:
请求消息发送模块 1 1,用于向所管理的终端发送传输控制协议连接请求消 息。
该传输控制协议连接请求消息中携带的内容与实施例一中步骤 101所涉 及的相关技术方案相同, 在此不作赘述。
具体地说, 所述状态判定模块 33, 还用于在所述消息发送模块 1 1向所述 终端发送传输控制协议连接请求消息后,若在预定时间内未接收到所述连接回 应消息, 则确定未发送所述回应消息的终端处于离线状态。
该状态确定模块 33与实施例一中步骤 103所涉及的相关技术方案相同, 且 所述预定时间的设定方式也可参见本发明实施例一, 在此不作赘述。
具体地说, 所述系统还可以包括:
断开连接模块 55,用于在所述状态更新模块对终端状态更新完毕后,与发 送所述回应消息的终端断开传输控制协议连接。
所述断开连接模块 55中涉及的技术内容与实施例一中步骤 105相同, 在此 不作赘述。 采用上述本发明实施例三所述的系统, 由于未采用 CWMP协议中的连接 请求机制, 所以解决了现有技术在更新过程中终端产生的大量 CON N ECTION REQUST时间, 减小了 TMS系统的性能开销。 实施例三:
结合图 4所示, 以终端的角度提出, 与本发明实施例一对应的另一种终端 管理系统更新终端状态的方法, 同样适用于 CWM P协议中终端管理系统对终 端状态的实时更新, 该方法包括:
步骤 401: 接收终端管理系统发送的 TCP协议连接请求消息;
步骤 402: 向终端管理系统发送 TCP协议连接回应消息, 以使所述终端管 理系统根据所述连接回应消息确定所管理的终端的状态,并进行终端状态的更 新。
所述步骤 402具体过程可以包括:
在预定时间内向所述终端管理系统发送 TCP协议连接回应消息,所述回应 消息用于表示与所述终端管理系统之间已建立 TCP协议连接。
说明:本发明实施例是以 TMS系统所管理的终端的角度提出的,所以当前 时刻在线的终端设备在接收到所述连接请求消息后,会在预定时间内发送包含 自身地址以及 CWMP监听端口地址的回应消息给 TMS系统, 以表示与终端管 理系统已建立 TCP连接。
具体地说, 在步骤 402之后, 所述方法还可以包括:
步骤 403: 接收终端管理系统发送的断开 TCP协议连接的请求消息; 步骤 404: 向所述终端管理系统反馈响应消息, 以断开与所述终端管理系 统之间的 TCP协议连接。
步骤 403和 404中涉及的技术方案与所述实施例一中步骤 105对应, 在此 不作赘述。
通过将上述实施例三所述的方法应用在 CWMP协议中, 能够为终端管理 系统提供一种简便的更新方法,并且避免了现有技术中终端管理系统对管理的 终端进行更新时的被动。 实施例四:
结合图 5, 是以终端的角度提出的, 与本发明实施例三中所述方法对应的 一种装置, 具体技术方案可参加实施例三, 适用于 CWMP协议中, 该终端可 以包括:
请求消息接收模块 41:用于接收终端管理系统发送的 TCP协议连接请求消 回应消息发送模块 42: 用于向终端管理系统发送 TCP协议连接回应消息, 以使所述终端管理系统根据所述连接回应消息确定所管理的终端的状态,并进 行终端状态的更新。
所述回应消息发送模块 42, 在预定时间内向所述终端管理系统发送 TCP 协议连接回应消息, 所述回应消息用于表示与所述终端管理系统之间已建立 TCP协议连接。
说明: 请求消息接收模块和回应消息发送模块与实施例三中步骤 401和
402相同, 在此不作赘述。
本发明实施例是以 TMS系统管理的终端的角度提出的,所以当前时刻在线 的终端设备在接收到所述连接请求消息后,会在预定时间内发送包含自身地址 以及 CWM P监听端口地址的回应消息给 TMS系统, 以表示与终端管理系统已 建立 TCP连接。
说明: 终端在终端管理系统设定的预定时间内, 向终端管理系统发送回应 消息, 以表示此终端处于在线状态; 否则, 终端管理系统在预定时间内未接收 到终端发送的回应消息, 视为此终端处于离线状态。
具体地说, 所述终端还可以包括:
断开消息接收模块 43:用于接收终端管理系统发送的断开 TCP协议连接的 请求消息;
断开响应发送模块 44:用于向所述终端管理系统反馈响应消息, 以断开与 所述终端管理系统之间的 TCP协议连接。
断开消息接收模块 43和断开响应发送模块 44中涉及的技术方案与所述实 施例三中步骤 403和 404对应, 在此不作赘述。
采用上述本发明实施例四所述的装置, 解决了在 CWMP协议中, TMS系 统应用 CWM P协议的请求机制进行终端更新时, TMS系统的性能开销大从而 正常业务运行的问题, 减小了 TMS系统的性能开销, 保证了业务的正常运行。 本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程, 是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算 机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。 其中,所述的存储介质可为磁碟、光盘、只读存储记忆体( Read-Only Memory, ROM )或随才 储记忆体 ( Random Access Memory, RAM )等。 以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局 限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易 想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应该以权利要求的保护范围为准。

Claims

权 利 要 求
1、 一种终端管理系统更新终端状态的方法, 其特征在于, 包括: 接收终端管理系统管理的终端发送的传输控制协议连接回应消息; 根据所述连接回应消息, 确定发送所述回应消息的终端处于在线状态; 根据获得的所管理的终端的状态更新终端状态。
2、根据权利要求 1所述的方法, 其特征在于, 所述接收所述终端管理系统 管理的终端发送的传输控制协议连接回应消息之前, 所述方法还包括:
向所述终端发送传输控制协议连接请求消息。
3、根据权利要求 2所述的方法, 其特征在于, 所述向所述终端发送传输控 制协议连接请求消息后, 所述方法还包括:
若在预定时间内未接收到所述连接回应消息,则确定未发送所述回应消息 的终端处于离线状态。
4、根据权利要求 1所述的方法, 其特征在于, 所述根据获得的所管理的终 端的状态更新终端状态之后, 所述方法还包括:
与所管理的终端中发送所述连接回应消息的终端断开传输控制协议连接。
5、根据权利要求 1所述的方法, 其特征在于, 所述方法适用于用户侧设备 广域网管理协议中。
6、 一种终端管理系统, 其特征在于, 所述系统包括:
消息接收模块,用于接收终端管理系统管理的终端发送的传输控制协议连 接回应消息;
状态判定模块, 用于根据所述消息接收模块接收到的所述连接回应消息, 确定发送所述回应消息的终端处于在线状态;
状态更新模块,用于根据所述状态判定模块获得的所管理的终端的状态更 新终端状态。
7、 根据权利要求 6所述的系统, 其特征在于, 所述系统还包括: 消息发送模块, 用于向所述终端发送传输控制协议连接请求消息。
8、根据权利要求 7所述的系统, 其特征在于, 所述状态判定模块, 还用于 在所述消息发送模块向所述终端发送传输控制协议连接请求消息后,在预定时 间内未接收到所述连接回应消息时,确定未发送所述回应消息的终端处于离线 状态。
9、 根据权利要求 6所述的系统, 其特征在于, 所述系统还包括: 连接断开模块, 用于在所述状态更新模块对终端状态更新完毕后, 与发送 所述回应消息的终端断开传输控制协议连接。
10、 根据权利要求 6所述的系统, 其特征在于, 所述装置适用于用户侧设 备广域网管理协议中。
PCT/CN2010/071874 2009-04-21 2010-04-19 一种终端管理系统更新终端状态的方法及终端管理系统 WO2010121531A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2009101309952A CN101873727B (zh) 2009-04-21 2009-04-21 一种终端管理系统更新终端状态的方法及终端管理系统
CN200910130995.2 2009-04-21

Publications (1)

Publication Number Publication Date
WO2010121531A1 true WO2010121531A1 (zh) 2010-10-28

Family

ID=42998324

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/071874 WO2010121531A1 (zh) 2009-04-21 2010-04-19 一种终端管理系统更新终端状态的方法及终端管理系统

Country Status (2)

Country Link
CN (1) CN101873727B (zh)
WO (1) WO2010121531A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109982116A (zh) * 2019-03-12 2019-07-05 视联动力信息技术股份有限公司 一种终端业务管理方法及系统

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769841A (zh) * 2011-05-06 2012-11-07 中兴通讯股份有限公司 离线终端的控制方法及系统
CN105025063A (zh) * 2014-04-29 2015-11-04 刘广威 面向大规模终端设备的在线数据传输方法
CN105577410A (zh) * 2014-10-16 2016-05-11 中兴通讯股份有限公司 一种终端状态实时刷新方法及装置
CN104468265A (zh) * 2014-11-19 2015-03-25 北京国双科技有限公司 局域网终端在线状态的检测方法和装置
CN107453940A (zh) * 2017-06-19 2017-12-08 深圳市盛路物联通讯技术有限公司 一种基于接入节点的物联网终端设备检测方法及系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006070300A2 (en) * 2004-12-28 2006-07-06 Koninklijke Philips Electronics N.V. Method and apparatus for peer-to-peer instant messaging
CN1822599A (zh) * 2005-02-16 2006-08-23 中兴通讯股份有限公司 会议发起协议服务器对终端在线状态的检测方法
CN1859361A (zh) * 2005-05-08 2006-11-08 中兴通讯股份有限公司 一种会议发起协议服务器对终端在线状态的检测方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006070300A2 (en) * 2004-12-28 2006-07-06 Koninklijke Philips Electronics N.V. Method and apparatus for peer-to-peer instant messaging
CN1822599A (zh) * 2005-02-16 2006-08-23 中兴通讯股份有限公司 会议发起协议服务器对终端在线状态的检测方法
CN1859361A (zh) * 2005-05-08 2006-11-08 中兴通讯股份有限公司 一种会议发起协议服务器对终端在线状态的检测方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109982116A (zh) * 2019-03-12 2019-07-05 视联动力信息技术股份有限公司 一种终端业务管理方法及系统

Also Published As

Publication number Publication date
CN101873727B (zh) 2013-06-26
CN101873727A (zh) 2010-10-27

Similar Documents

Publication Publication Date Title
US8392531B2 (en) Unified device management method and system
US8396972B2 (en) Session control apparatus, software applied to session control apparatus, communication control method, and network system
CN107528891B (zh) 一种基于WebSocket的自动集群方法及其系统
CN110266810B (zh) 基于mqtt协议的消息接收方法、设备及存储介质
US11251981B2 (en) Communication method and apparatus
WO2010121531A1 (zh) 一种终端管理系统更新终端状态的方法及终端管理系统
JP5173607B2 (ja) 通信システム
WO2015154350A1 (zh) 上网流量分享处理方法、装置及终端
WO2013097452A1 (zh) 接收数据的方法、发送数据的方法、移动终端和服务器
WO2015078341A1 (zh) 应用程序远程更新的方法和装置
WO2021051966A1 (zh) 一种信息推送方法及系统
JP5372140B2 (ja) ネットワークを管理するための方法及び装置
EP1650895B1 (en) The method of providing reliable quality of service in the communication network
WO2019128647A1 (zh) 消息传输方法、装置、存储介质及电子装置
TW201107995A (en) Relay communication system and access management apparatus
CN114584602B (zh) 一种会话状态管理方法、系统、装置、设备及存储介质
WO2013159492A1 (zh) 信息上报与下载的方法及系统
WO2007124662A1 (fr) Procédé, système, dispositif d'abonnement, dispositif d'information de commande centrale d'abonnement
WO2008049346A1 (fr) Dispositif, procédé et système pour enregistrer un dispositif
CN116028278A (zh) 一种主备双机切换方法、介质及系统
WO2022042545A1 (zh) Tsn工业应用服务器、客户端、系统、服务方法及储存介质
WO2012079374A1 (zh) 对虚拟串口和物理串口进行绑定的方法、装置及系统
CN105306442A (zh) 代理服务器及其指令传输方法
WO2009129712A1 (zh) 上报会话状态的方法、媒体网关和系统
JP5026551B2 (ja) 中継装置、通信システム及び通信監視方法

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: 10766621

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10766621

Country of ref document: EP

Kind code of ref document: A1