CN103312766A - Method, system and device for supporting permanent online of application client - Google Patents

Method, system and device for supporting permanent online of application client Download PDF

Info

Publication number
CN103312766A
CN103312766A CN 201310072940 CN201310072940A CN103312766A CN 103312766 A CN103312766 A CN 103312766A CN 201310072940 CN201310072940 CN 201310072940 CN 201310072940 A CN201310072940 A CN 201310072940A CN 103312766 A CN103312766 A CN 103312766A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
aoe
long link
iol
request
a0g
Prior art date
Application number
CN 201310072940
Other languages
Chinese (zh)
Other versions
CN103312766B (en )
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

Links

Abstract

A method for supporting permanent online of an application client comprises the following steps: establishing a long link between an always online engine (AOE) (101) located in a terminal (10) and an always online gateway (AOG) (20) located on a network side, wherein at least two application clients are respectively communicated with one or more application servers (04, 05) through the long link; during a process of establishing the long link, providing routing information to the AOE (101) and providing authentication information to the AOG (20) by a user management server (30) located on the network side.

Description

一种支持应用客户端永久在线的方法、系统及装置 For supporting an application client being always online method, system and apparatus

技术领域 FIELD

[0001] 本发明涉及通信领域,尤其是一种支持应用客户端永久在线的方法,系统及装置。 [0001] The present invention relates to the field of communications, particularly to a permanent online customer support application method, system and device terminal. 背景技术 Background technique

[0002] 智能终端上有大量“永久在线”类的应用,这种类型的应用通过终端主动发起的PULL方式周期性的与服务器主动建立链接,更新状态,因而会产生大量重复的、短小的PULL消息,比如即时消息頂、社交网络SNS、VOIP等永久在线应用需要客户端频繁发送“keep alive”消息通知服务在线状态;又例如,頂、SNS应用需要客户端频繁向服务器Pull消息更新好友状态;PushMail需要周期性同步、刷新;iphone4的iAD广告推送,定位跟踪服务都需要耗费大量的通信资源等等。 [0002] There are a lot of applications, "always-on" type of intelligent terminal, this type of application by the end of PULL initiate a periodic manner with the initiative to establish a link server, update status, which will generate a lot of repetition, short PULL news, such as instant messaging top, social networking SNS, VOIP and other permanent online applications require a client frequently sends "keep alive" message notification service online; another example, top, SNS applications require client frequently update friend status to the server Pull the message; PushMail require periodic synchronization, refresh; iphone4 the iAD advertising push, location tracking services that requires a lot of communication resources, and so on.

[0003] 为了维持应用永久在线,一个或者多个应用服务器至少需要维持与用户终端间的一条永久链路。 [0003] In order to maintain a permanent line applications, one or more application servers need to maintain at least a permanent link between the user terminal. 终端与一个或者多个应用服务器之间的链路是不稳定的,例如链路中间有NAT、防火墙,用户的IP地址可能变化,因此需要通过频繁的心跳维持链路,并获取用户状态(呈现/[目息)。 The link between the terminal and the one or more application servers is unstable, for example, the middle link the NAT, firewall, the user's IP address may change, it is necessary to maintain a link through frequent heartbeat, and acquires the user state (present / [mesh information).

[0004] 一般情况下,终端进行正常的数据通信时,网络给终端分配专用的物理信道用于数据的上下行无线传输,这种状态称之为DCH(DediCated CHannel专用信道)状态。 When [0004] In general, normal data communication terminal, the network terminal is assigned to the dedicated physical channel for uplink and downlink wireless transmission of data, this state is referred to DCH (DediCated CHannel dedicated channel) state. 当没有数据传输时,可使终端处理Idle状态,在Idle状态下所有的链接在接入层都是关闭的,终端只监听寻呼信息。 When there is no data transmission, the terminal can process the Idle state, the Idle state of all the links in the access layer are closed, the terminal only listen to the paging information. 因而在DCH和Idle状态下,终端对于电量的消耗差别非常大。 DCH and thus the Idle state, the terminal for the difference in power consumption is very large. 智能终端基于省电的考虑,一般6〜8秒无数据传输,手机进行“快速休眠”强制切换到Idle状态。 Intelligent terminal based on the power saving considerations, generally 6 ~ 8 seconds without data transmission, mobile phone "fast dormancy" forcible switching to the Idle state. 而“永久在线”应用又经常需要与服务端进行心跳联接。 The "always-on" applications and often require a heartbeat connection with the server. 从而导致终端在Idle状态与DCH状态间的频繁切换,从Idle状态到DCH激活态转换无线侧需要32条信令恢复链接,这种状态间的频繁切换对无线侧的信令造成重大的冲击。 Resulting in frequent handover of the terminal between the DCH state and the Idle state, the active state 32 side needs to convert the wireless link signaling recover from DCH to Idle state, frequent switching between this state have a significant impact on the signaling radio side.

发明内容 SUMMARY

[0005] 本发明的一个实施方式,提供了支持应用客户端永久在线的方法,在位于终端 [0005] An embodiment of the present invention, there is provided a method for supporting a permanent online client application, located in the terminal

(10)中的永久在线引擎AOE (101)和位于网络侧的永久在线服务网关AOG (20)之间建立一个长链接,其中,至少两个应用客户端通过该长链接分别与一个或者多个应用服务器(04,05)通信;位于网络侧的用户管理服务器(30)向该AOE(IOl)提供路由信息,其中,该AOE(IOl)根据该路由信息请求建立该长链接;用户管理服务器(30)进一步用于在建立该长链接的过程中,向该A0G(20)提供鉴权信息。 Always online engine AOE (101) (10) and the network side always online service gateway AOG establish a link between a long (20), wherein the at least two client applications through the long link respectively with one or more application server (04, 05) communicate; at the network side of the user management server (30) to provide AOE (IOl) routing information, wherein the AOE (IOl) to establish the long link according to the routing information request; user management server ( 30) is further used in the process of establishing the long link is provided to the authentication information A0G (20).

[0006] 较优的,该用户管理服务器(30)获取并存储终端身份信息和用户身份信息的对应关系,且存储该用户身份信息所归属的A0G(20)的地址;当该AOE(IOl)发送携带终端身份信息路由信息请求时,该用户管理服务器(30)根据该终端身份信息和该用户身份信息的对应关系,以及,该用户身份信息所归属的A0G(20)的地址,向该AOE(IOl)提供该用户身份信息归属的AOG的地址;当该A0G(20)发送鉴权信息请求时,该用户管理服务器(30)根据该鉴权信息请求中的终端身份信息,以及,该终端身份信息和该用户身份信息的对应关系,向该A0G(20)提供该用户身份信息。 [0006] superior, the user management server (30) acquires and stores the corresponding relationship between the user terminal identity information and identity information, A0G (20) the user identity information and storing the home address; when the AOE (IOl) when the portable terminal identity information transmission routing information request, the user management server (30) based on the terminal identity information and the correspondence information to the user identity and the user identity information belongs A0G (20) address, to AOE (IOL) AOG provide user identity information of the home address; and when the A0G (20) sends an authentication information request, the user management server (30) according to the terminal identity information request to the authentication information, and the terminal the user identity information and identity correspondence information, to A0G (20) providing the user identity information.

[0007] 较优的,该终端身份信息为IMSI信息,该用户身份信息为手机号码。 [0007] superior, the terminal identity information is IMSI information, the user identity information is a phone number.

[0008] 较优的,该位于网络侧的用户管理服务器(30)向该AOE(IOl)提供路由信息,以及,向该A0G(20)提供鉴权信息的过程具体包括: [0008] superior, at the network side of the user management server (30) provides routing information to the AOE (IOL), and, providing the authentication information to A0G (20) the process comprises:

[0009] 该AOE(IOl)在该永久在线引擎AOE(101)启动时或者检测到SM卡中的ISMI信息与上次注册的信息不同时,自动发送上报消息到用户管理服务器(30),该上报消息携带该IMSI信息和该手机号码;该用户管理服务器(30)根据收到的该上报消息获取该IMSI信息和该手机号码,存储该手机号码和该MSI信息的对应关系;该八(^(101)向该用户管理服务器(30)发送路由信息请求,该路由信息请求中携带该IMSI信息;该用户管理服务器(30)根据接收到的路由信息请求中的IMSI信息查找到对应的手机号码,再根据预先存储的手机号码归属的AOG地址,返回该手机号码归属的A0G(20)的地址给该AOE(IOl);该永久在线引擎AOE(IOl)向该手机号码归属的A0G(20)发起注册请求,该注册请求携带IMSI信息;该A0G(20)接收到该AOE(IOl)的注册请求后,判断其中包含的IMSI信息在该AOG(20)中是否已经注册,如果没有注册则 [0009] The AOE (IOl) when the engine always online AOE (101) detects the start or ISMI SM card information with previous registration information is not the same, automatically sends a report message to the user management server (30), the reporting message carries the IMSI information and the cell phone number; the user management server (30) to obtain the IMSI information and the cell phone number based on the reported information received, stored correspondence between the phone number and the MSI information; the eight (^ (101) to the user management server (30) sends a routing information request, the route request carries the IMSI information; and the user management server (30) to find the corresponding phone number according to the IMSI information in the routing information request received in , then according to the AOG address home phone number stored in advance, which returns the phone number belongs A0G (20) to the address of AOE (IOl); the always online engine AOE (IOl) to the phone number belongs A0G (20) initiating a registration request, the registration request carries the IMSI information; after the A0G (20) receiving the AOE (IOl) registration request, determines whether the IMSI information contained therein has been registered in the AOG (20), if it is not registered 用户管理服务器(30)发送鉴权信息请求,该鉴权信息请求携带该注册请求中的MSI信息;用户管理服务器(30)接收到该鉴权信息请求后根据存储的该手机号码和该MSI信息的对应关系,返回该IMSI信息对应的该手机号码;当该AOG(20)判断该手机号码属于该A0G(20)的服务范围,该AOG(20)存储该手机号码,并向AOE(IOl)返回注册响应。 User management server (30) sends an authentication information request, the authentication information request message carries the MSI registration request; user management server (30) receives the authentication information request to the information based on the phone number and the stored MSI correspondence between the IMSI return information corresponding to the phone number; if the AOG (20) determines that the phone number belongs to the A0G (20) of the service area, the AOG (20) storing the phone number, and AOE (IOl) registration response is returned.

[0010] 较优的,该上报消息为短信息,该上报消息携带IMSI信息和手机号码具体包括:该短信息的内容中包括该頂SI信息,该短消息的发送方为该手机号码。 [0010] superior, the report message is a short message, the report message carries the IMSI information and the phone number comprises: the content of the short message included in the top SI information, the sender of the short message for the phone number.

[0011] 较优的,该终端身份信息为终端设备标识,该用户身份信息为用户名称或者用户标识。 [0011] superior, the terminal identity information terminal device identification, the user identity information is a user name or user ID.

[0012] 本发明的另一个实施方式,提供了一种支持应用客户端永久在线的系统,该系统包括:永久在线引擎AOE(lOl),位于终端(10)中,与至少两个应用客户端通信连接;永久在线服务网关A0G(20),位于网络侧,与位于网络侧的一个或者多个应用服务器(04,05)通信连接;该永久在线引擎AOE(101)和该永久在线服务网关A0G(20),用于建立一个长链接,其中,该至少两个应用客户端通过该长链接分别与该一个或者多个应用服务器(04,05)通信;用户管理服务器(30),位于网络侧,与该永久在线引擎AOE(IOl)和该永久在线服务网关A0G(20)通信连接,用于向该AOE(IOl)提供路由信息,以便于该AOE (101)根据该路由信息请求建立该长链接,在该AOE(101)和该A0G(20)建立长链接的过程中,进一步向该AOG (20)提供鉴权信息。 [0012] Another embodiment of the present invention, there is provided a system for supporting a permanent online client application, the system comprising: a permanent online engine AOE (lOl), located in a terminal (10), and at least two client application a communication connection; A0G always online service gateway (20 is), at the network side, (04, 05) located on the network side communication connection with one or more application servers; the always online engine AOE (101) and the permanent online service gateway A0G (20), for establishing a long link, wherein the at least two client application through the long link respectively with the one or more application servers (04, 05) communicate; user management server (30), at the network side , the always online engine AOE (IOL) and the permanent online service gateway A0G (20) a communication connection, for providing routing information to the AOE (IOL), so that (101) to establish the length of the routing information request according to the AOE link, during which AOE (101) and the A0G (20) to establish long link is further provided authentication information to the AOG (20).

[0013] 较优的,该用户管理服务器(30),具体用于:该获取并存储终端身份信息和用户身份信息的对应关系,且存储该用户身份信息所归属的A0G(20)的地址;当该AOE(IOl)发送携带终端身份信息路由信息请求时,根据该终端身份信息和该用户身份信息的对应关系,以及,该用户身份信息所归属的A0G(20)的地址,向该AOE(IOl)提供该用户身份信息归属的AOG的地址;当该AOG (20)发送鉴权信息请求时,根据该鉴权信息请求中的终端身份信息和该终端身份信息和该用户身份信息的对应关系,向该A0G(20)提供该用户身份信息。 [0013] superior, the user management server (30) configured to: acquire the correspondence relation, and stores the terminal identity information and user identity information, and stores the user identity information belongs A0G (20) of the address; when the address AOE (IOl) message carrying the routing information request terminal identity information, the user identification information and correspondence information based on the terminal identity and the user identity information belongs A0G (20), to which AOE ( IOL) providing address AOG the user identity information belongs; when the AOG (20) sends an authentication information request to the terminal according to the identity authentication information request information and the terminal identity information and the user identity correspondence information to this A0G (20) providing the user identity information.

[0014] 较优的,该终端身份信息为IMSI信息,该用户身份信息为手机号码;该AOE(IOl)具体用于:在该永久在线引擎AOE (101)启动时或者检测到SIM卡中的ISMI信息与上次注册的信息不同时,自动发送上报消息到用户管理服务器(30),该上报消息携带该IMSI信息和该手机号码;向该用户管理服务器(30)发送路由信息请求,该路由信息请求中携带该IMSI信息;向接收到的该手机号码归属的A0G(20)发起注册请求,该注册请求携带IMSI信息。 [0014] superior, the terminal identity information is IMSI information, the user identity information to a mobile phone number; the AOE (IOl) specifically configured to: when the engine always online AOE (101) detects the start or SIM card ISMI previous registration information is not the same information, automatically sends a report message to the user management server (30), the report message carries the IMSI information and the phone number; to the user management server (30) sends a routing information request, the route information request message carries the IMSI; home phone number to the received A0G (20) initiates a registration request, the registration request carries the IMSI information. 该用户管理服务器(30)具体用于:根据收到的该上报消息获取该IMSI信息和该手机号码,存储该手机号码和该MSI信息的对应关系;根据接收到的路由信息请求中的IMSI信息查找到对应的手机号码,再根据预先存储的手机号码归属的AOG地址,返回该手机号码归属的A0G(20)的地址给该AOE(IOl);接收到该鉴权信息请求后根据存储的该手机号码和该IMSI信息的对应关系,返回该IMSI信息对应的该手机号码。 The user management server (30) configured to: obtain the IMSI information and the phone number based on the received report message, stores the mobile phone number and a corresponding relationship between the MSI information; IMSI information in accordance with the routing information request received in after receiving the authentication request according to the stored information; finds the corresponding mobile phone number, then the address stored in advance according to the AOG home phone number, the process returns A0G (20) of the mobile phone number to the home address of AOE (IOl) correspondence between the IMSI and phone number information, and return the phone number corresponding to the IMSI information. 该A0G(20)具体用于:接收到该AOE(IOl)的注册请求后,判断其中包含的IMSI信息在该A0G(20)中是否已经注册,如果没有注册则向用户管理服务器(30)发送鉴权信息请求,该鉴权信息请求携带该注册请求中的MSI信息,接收返回的该IMSI信息对应的该手机号码;当判断该手机号码属于该AOG(20)的服务范围,该AOG(20)存储该手机号码,并向AOE(101)返回注册响应。 The A0G (20) specifically configured to: receive the AOE (IOl) registration request, determines whether the IMSI information contained therein has been registered in the A0G (20), if no registration is sent to the user management server (30) authentication information request, the authentication information request carries the information of the MSI registration request, receiving the return information corresponding to the IMSI of the mobile phone number; if the phone number is determined service area belong to the AOG (20) of the AOG (20 ) store the phone number, and AOE (101) returns a registration response.

[0015] 在其他的实施方式中,相应的提供了可以执行前述方法各相关步骤的永久在线引擎AOE (101),永久在线服务网关AOG (20),以及用户管理服务器(30)。 [0015] In other embodiments, the respective permanent online engine provided AOE (101) may perform the relevant method steps, always online service gateway AOG (20), and a user management server (30).

[0016] 在另一个本发明实施方式的支持应用客户端永久在线的系统中,永久在线引擎AOE(lOl),位于终端(10)中,与至少两个应用客户端通信连接,用于和永久在线服务网关AOG(20)之间建立一个长链接;永久在线服务网关A0G(20),位于网络侧,用于与永久在线引擎AOE(IOl)之间建立该长链接,以及发起心跳消息,以便于维护该长链接;其中,该至少两个应用客户端通过该长链接与该一个或者多个应用服务器(04,05)通信。 [0016] In another embodiment the customer support application embodiment of the present invention, the permanent end of the online system, always online engine AOE (lOl), located in a terminal (10), connecting at least two applications to communicate with clients, and for permanent establishing a long connection between online service gateway AOG (20); always online service gateway A0G (20), at the network side, and for establishing the long link between the permanent online engine AOE (IOl), and initiating a heartbeat message, for to maintain the long link; wherein the at least two client application through the long link with the one or more application servers (04, 05) communicate.

[0017] 较优的,AOE(IOl)和A0G(20)可以各自分别根据自己的判断主动地断开该长链接。 [0017] superior, AOE (IOl) and A0G (20) may each according to their own judgment actively disconnect the long link.

[0018] 较优的,该永久在线引擎AOE(IOl)进一步用于当判断出收到心跳请求后超过一定的时间阈值的时候还未收到其他心跳请求,则主动向A0G(20)发送断开请求;或者,当检测到其管理的所有应用客户端在一定的时间阈值内未运行时,则主动向AOG(20)发起断开请求;或者,当检测到终端01上的电池电量低于一定的阈值时,则主动向A0G(20)发送断开请求,该断开请求用于断开该长链接。 [0018] superior, which always online engine AOE (IOl) is further configured to receive a heartbeat when it is determined that the request exceeds a certain threshold value the time when a heartbeat has not received other request, sends off to A0G (20) open request; alternatively, when it is detected all the management client application is not running within a certain time threshold, then initiate the disconnection request to the AOG (20); or, when detecting that the battery terminal 01 is less than when a certain threshold, sends the disconnection request to A0G (20), the disconnection request for disconnecting the long link.

[0019] 较优的,A0G(20)进一步用于当判断出超过一定时间阈值没有收到从该A0E101发送的数据流,则主动发起断开请求;当判断出超过一定的次数阈值发送心跳请求后,但没有得到A0E101的响应时,主动发起断开请求,该断开请求用于断开该长链接。 [0019] superior, A0G (20) is further for, when it is determined that the threshold exceeds the predetermined time has not received data from the stream transmitted A0E101, then initiate disconnection request; when it is judged that the transmission exceeds a certain threshold number of requests heartbeat after, but did not receive the response A0E101, initiate disconnection request, the disconnection request for disconnecting the long link.

[0020] 较优的,AOG(20)进一步用于将已经断开该长链接的A0E101在该A0G(20)上记录的是否在线状态修改为离线,并且构造下线通知消息发给应用服务器发送给该应用服务器。 Whether online status [0020] superior, AOG (20) further has means for disconnecting the long link A0E101 recorded on the A0G (20) modified offline, and offline configuration server sends a notification message to the application to the application server.

[0021] 较优的,AOG(20)进一步用于在特殊情况下向AOE(IOl)发送唤醒短信,用于唤醒尚未建立或者已经断开的长链接。 [0021] superior, AOG (20) is further used to send text messages to wake AOE (IOl) in exceptional circumstances, for waking up has not been established or has been disconnected long link.

[0022] 较优的,AOE(IOl)进一步用于监听并拦截到该唤醒短信后,解析该唤醒短信,并触发建立长链接。 After the [0022] superior, AOE (IOl) is further configured to monitor and intercept to the wake-up message, parses the wake-up message, and trigger the establishment of long link.

[0023] 在另一个本发明实施方式的支持应用客户端永久在线的系统中,永久在线引擎AOE(lOl),位于终端(10)中,与至少两个应用客户端通信连接,用于和永久在线服务网关AOG(20)之间建立一个长链接;其中,该至少两个应用客户端通过该长链接与一个或者多个应用服务器04通信;A0E(101)进一步用于在该长链接正常(已经成功地建立)时,终端(10)中的应用客户端已经退出,但是接收到了A0G(20)转发的发送给该应用客户端的数据时,拉起该已经退出的应用客户端。 [0023] In another embodiment the customer support application embodiment of the present invention, the permanent end of the online system, always online engine AOE (lOl), located in a terminal (10), connecting at least two applications to communicate with clients, and for permanent established between the online service gateway AOG (20) a long link; wherein at least the long link the application server 04 communicate with one or more clients through two applications; A0E (101) is further normal for the long link ( it has been successfully established), the client terminal application (10) has exited, but received the A0G (20) when the data is sent to the client application forwarded, the pull has withdrawn the application client.

[0024] 在另一个本发明实施方式的支持应用客户端永久在线的系统中,永久在线引擎AOE(lOl),位于终端(10)中,与至少两个应用客户端通信连接,用于和永久在线服务网关AOG(20)之间建立一个长链接;其中,该至少两个应用客户端通过该长链接与一个或者多个应用服务器04通信;A0E(101)进一步用于当应用客户端有大量数据需要与该应用服务器中的一个交互时,提供单独的连接与该应用服务器交互,原来的长链接可以主要用来传输控制流相关的数据。 [0024] In another embodiment the customer support application embodiment of the present invention, the permanent end of the online system, always online engine AOE (lOl), located in a terminal (10), connecting at least two applications to communicate with clients, and for permanent establishing a long connection between online service gateway AOG (20); wherein the at least the long link 04 communicate with one or more application servers by two client applications; A0E (101) is further for, when a large number of client applications when a data needs to interact with the application server, a separate server connected to the application interacts with the original long link can be used to transmit the main data stream associated control.

[0025] 较优的,当传递的数据达到阈值时,需要建立专门的IP代理通道,由该通道专门传输该传递的数据,一般的,这些数据是提供应用的过程中产生的数据流。 [0025] superior, when the data transfer reaches a threshold value, the need for dedicated IP agent channel, the dedicated data transmission channel by the transmission, in general, these data are application data stream generated in the process.

[0026] 较优的,在数据传递结束时可以主动关闭该IP代理通道。 [0026] superior, at the end of the data transfer may be active agent close the IP channel.

[0027] 较优的,对于应用客户端或者应用服务器不主动关闭IP代理通道的,AOE(IOl)可以设定超时机制,在无数据交互达到阈值(例如60s)后,AOE(IOl)主动断开连接。 After [0027] superior for application client or the application server does not close the IP active agent passage, AOE (IOl) can set the timeout mechanism, without reaching the threshold data exchange (e.g. 60s), AOE (IOl) Active off open connection.

[0028] 本发明的另外一些实施方式中,提供了上述系统执行的相应的方法,以及相应的AOE (101),终端(10),以及AOG (20)。 [0028] Some embodiments further embodiment of the present invention, there is provided a corresponding method performed by the system described above, and the corresponding AOE (101), the terminal (10), and AOG (20).

[0029] 通过上述不同的实施方式,从不同的侧面提供了一个节约通信资源的支持应用客户端永久在线的系统,方法和装置。 [0029] By the above-described various embodiments, the support application provides a client side communication resource saving permanent online systems, methods and devices from different sides.

附图说明 BRIEF DESCRIPTION

[0030] 图1为一个本发明实施方式应用环境的示意图; [0030] Figure 1 is a schematic embodiment of the present invention application environment embodiment;

[0031] 图2a为一个包含用户管理服务器的实施方式的系统架构图; [0031] Figure 2a is a view of a system architecture comprising a user management server embodiment;

[0032] 图2b为一个包含用户管理服务器的系统中建立长链接的实施方式的方法流程图; [0032] Figure 2b is a flowchart of a method for establishing long link to an embodiment of the system comprises a user management server;

[0033] 图3a为一个以运营商通信系统为例的建立长链接的实施方式的方法流程图; [0033] Figure 3a is a flowchart of a method to establish long link to an embodiment of a communication system as an example of the operator;

[0034] 图3b为一个更新应用客户端的流程示意图实施方式的方法流程图; [0034] Figure 3b is a process to update application client schematic flowchart of a method embodiment;

[0035] 图4a为一个关于长链接心跳维护的实施方式的系统架构图; [0035] Figure 4a is a system architecture diagram of an embodiment of the long link maintenance heartbeat;

[0036] 图4b为一个关于长链接心跳维护方法的实施方式的方法流程图; [0036] Figure 4b is a method according to an embodiment on the long link maintenance heartbeat flowchart of a method;

[0037] 图5a为一个从AOE(IOl)角度描述的关于长链接心跳维护的实施方式的方法流程图; [0037] Figure 5a relates to a method to maintain long link heartbeat embodiment of a flowchart described from AOE (IOl) angle;

[0038] 图5b为一个从A0G(20)角度描述的关于长链接心跳维护的实施方式的方法流程图; [0038] FIG. 5b embodiment relates to a method heartbeats long link maintenance is a flowchart from the perspective described A0G (20);

[0039] 图6为一个从包含了扩展的功能的实施方式的系统架构图; [0039] FIG. 6 is a system architecture from the group consisting of an embodiment of the extended function;

[0040] 图7为一个关于唤醒长链接的实施方式的方法流程图; [0040] FIG. 7 is a wake-up method according to an embodiment of the flowchart of the long link;

[0041] 图8为一个关于唤醒应用客户端的实施方式的方法流程图; [0041] FIG. 8 is a wake-up method of an embodiment of a flowchart of a client application;

[0042] 图9为一个终端的实施方式的结构示意图; [0042] FIG. 9 is a schematic structural diagram of a terminal of the embodiment;

[0043] 图10为一个AOG (20)的实施方式的结构示意图; Structure [0043] FIG. 10 is a AOG (20) a schematic view of an embodiment;

[0044] 图11为系统中用户管理服务器(30)的一个实施方式的结构示意图。 Schematic structural diagram of an embodiment of [0044] FIG. 11 is a system user management server (30). 具体实施方式 Detailed ways

[0045] 为了各发明实施方式清楚明白,各可能用到的术语解释如下: [0045] For various embodiments of the invention apparent, various terms may be used is explained as follows:

[0046] AOG:A0G(Always Online Gateway),永远在线网关,通过与永久在线引擎的配合,可以给SP提供通用的TOSH通道,允许SP服务侧随时随地找到终端。 [0046] AOG: A0G (Always Online Gateway), always-on gateway, through cooperation with the always online engine can provide a common channel to TOSH SP, SP service allows the terminal side find anywhere.

[0047] AOE(101):A0E(101) (Always Online Engine),永久在线引擎,是部署在终端侧的中间件,汇聚和代理客户端应用客户端的永远在线需求。 [0047] AOE (101): A0E (101) (Always Online Engine), always online engine, is deployed in the terminal side middleware, aggregation, and application proxy client always on the client's needs.

[0048] AOI:A0I (Always Online Infrastructure),永远在线设施,包括AOE (101)、AOG、 [0048] AOI: A0I (Always Online Infrastructure), always-on facilities including AOE (101), AOG,

或者进一步包括用户管理服务器等各网元的集合。 Or further comprising a set of network elements of the user management server and the like.

[0049] 如图1所示为本发明的一个本发明实施方式应用环境系统的示意图,该系统包含多个通信设备,通过有线或者无线通信网络相互通信。 [0049] FIG. 1 shows a schematic view of a present invention embodiment of present invention embodiment Environment System, the system comprising a plurality of communication devices communicate with each other through wired or wireless communication network. 这些通信网络包括但是不限于移动通信网络(mobile telephone network),无线本地局域网络(wireless Local AreaNetwork (LAN)),蓝牙网络(Bluetooth personal area network),以太网络(EthernetLAN),令牌环局部网(a token ring LAN),广域网(a wide area network),互联网(theInternet,)等等。 These communication networks include, but are not limited to a mobile communication network (mobile telephone network), a wireless local area network (wireless Local AreaNetwork (LAN)), a Bluetooth network (Bluetooth personal area network), Ethernet (EthernetLAN), token ring local network ( a token ring LAN), a wide area network (a wide area network), Internet (theInternet,) and the like.

[0050] 图1所示的系统中,终端(10)可以包括但是不限于,移动设备(mobile device),可移动通信的PDA 装置(a combination PDA and mobile telephone),PDA,集成信息装置(integrated messaging device (IMD)),个人计算机(personal computer and 笔记本型计算机(notebook computer) 0这些终端可以移动,也可以位于某个可移动的设备上,例如但不限于汽车,卡车,出租车,公共汽车,轮船,飞机,自行车,摩托车,等等上面。上述终端(10)可以通过该无线网络和/或该有线网络接入到一个或者多个应用服务器04上,以便于获取该一个或者多个应用服务器04提供的应用。一个或者多个应用服务器包括但不限于,上述网络可以包含其他的各种不同种类的通信设备。 The system shown in FIG. 1 [0050], the terminal (10) may include, but are not limited to, PDA apparatus (a combination PDA and mobile telephone) the mobile device (mobile device), may be mobile communications, PDA, an integration means (integrated messaging device (IMD)), a personal computer (personal computer and a notebook computer (notebook computer) 0 terminals may move, it can also be located on a movable device, such as, but not limited to automobiles, trucks, taxis, buses , ships, airplanes, bicycles, motorcycles, and the like above. the terminal (10) can be connected via the wireless network and / or the wired network to one or more of the application servers 04, in order to obtain the one or more the application server 04 provides the application. One or more application servers include, but are not limited to, the above-described network may comprise other different kinds of communication devices.

[0051] 上述通信设备可以基于各种不同的传输技术实现通信的过程,包括但不限于码分多址Code Division Multiple Access (CDMA),全球移动通讯系统Global System forMobile Communications (GSM),通用移动通信系统Universal Mobile TelecommunicationsSystem(UMTS),时分多址Time Division Multiple Access (TDMA),频分多址FrequencyDivision Multiple Access (FDMA),传输控制协议/ 因特网互联协议TransmissionControl Protocol/Internet Protocol(TCP/IP),短消息服务Short MessaGIngService (SMS),多媒体信息服务Multimedia Messaging Service (MMS), e-mail,即时消息服务Instant Messaging Service (IMS),蓝牙Bluetooth, IEEE802.11,等等.上述的通信设备之间可以使用不同的媒体资源,包括但是不限于,无线电(radio),红外线(infrared),激光(laser),电缆(cable connection),等等。 [0051] The communication device may be based on a variety of different process communication transmission technology, including but not limited to CDMA Code Division Multiple Access (CDMA), global system for mobile communications Global System forMobile Communications (GSM), Universal Mobile Telecommunications system Universal Mobile TelecommunicationsSystem (UMTS), Time division Multiple Access Time division Multiple Access (TDMA), frequency division multiple access FrequencyDivision Multiple Access (FDMA), transmission control protocol / Internet protocol TransmissionControl protocol / Internet protocol (TCP / IP), short message services Short MessaGIngService (SMS), multimedia messaging service multimedia messaging service (MMS), e-mail, instant message service, instant messaging service (IMS), Bluetooth Bluetooth, IEEE802.11, and the like may be used between the different communication devices media resources, including but not limited to, radio (radio), IR (infrared), a laser (laser), the cable (cable connection), and the like.

[0052] 如图2a所示为一个支持应用客户端永久在线的系统实施方式的架构示意图,系统中包括: [0052] The architecture shown in FIG. 2a is a schematic side permanent online support system according to the embodiment of the application client, the system comprising:

[0053] 永久在线引擎AOE (101),位于终端(10)中,与至少两个应用客户端通信链接; [0053] permanently online engine AOE (101), (10), the client application at least two communications links located in a terminal;

[0054] 永久在线服务网关A0G(20),位于网络侧,与位于网络侧的一个或者多个应用服务器(04,05)通信链接; [0054] permanently online service gateway A0G (20), at the network side, one or more application servers at the network side of the communications link (04, 05);

[0055] 所述永久在线引擎AOE (101)和所述永久在线服务网关A0G(20),用于建立一个长链接,其中,所述至少两个应用客户端通过所述长链接分别与所述一个或者多个应用服务器(04,05)通信; [0055] The permanent online engine AOE (101) and said permanent online service gateway A0G (20), for establishing a long link, wherein the at least two client application through the long link respectively the (04, 05) communicate with one or more application servers;

[0056] 用户管理服务器(30),位于网络侧,与所述永久在线引擎AOE(IOl)和所述永久在线服务网关A0G(20)通信链接,向所述AOE(101)提供路由信息,其中,所述AOE(101)根据所述路由信息请求建立所述长链接;用户管理服务器(30)进一步用于在建立所述长链接的过程中,向所述AOG (20)提供鉴权信息。 [0056] The user management server (30), at the network side, the permanent online engine AOE (IOl) and said (20) always online service gateway communications link A0G, provides routing information to the AOE (101), wherein the AOE (101) according to the routing information request to establish the long link; user management server (30) is further used in the process of establishing the long link, to provide authentication information to the AOG (20).

[0057] 上述提到的一个或者多个应用服务器可以包括但不限于提供下述应用的之一或者任一组合的服务器:PUSH Mail,天气预报,V0IP,广告,定位服务,企业办公,生活服务,等 [0057] The above-mentioned one or more application servers may include, but are not limited to, providing one of the following application server, or any combination of: PUSH Mail, weather forecasts, V0IP, advertising, location services, corporate office, the service life ,Wait

坐寸o O sit inch

[0058] 上述提到的长链接,可以是符合传输控制协议(TCP, Transmission ControlProtocol)的长链接,也可以是符合用户数据报协议(UDP,UserDatagramProtocol)的长链接; [0058] The above-mentioned long link, the link may be a long line with a transmission control protocol (TCP, Transmission ControlProtocol), and may be in line with the long link User Datagram Protocol (UDP, UserDatagramProtocol); and

[0059] 上述用户管理服务器(30)可以作为永久在线业务用户数据的管理节点,向所述AOE(IOl)提供路由信息,以便于所述AOE(IOl)根据所述路由信息请求建立所述长链接;以及,在所述AOE(IOl)和所述A0G(20)建立长链接的过程中,向所述AOG(20)提供鉴权信息。 [0059] The user management server (30) may be used as a permanent online service management node user data, to the AOE (IOl) provides routing information so that the AOE (IOl) establishing the routing information request according to the length links; and, in the process of AOE (IOl) and said A0G (20) to establish long link, to provide authentication information to the AOG (20). 上述方案可以使得该永久在线引擎AOE(IOl)和该永久在线服务网关A0G(20)能够简便的,并且安全的建立该长链接。 The above solution may cause the always online engine AOE (IOl) and the always online service gateway A0G (20) can be simple, and secure the establishment of the long link. 需要说明的是,该用户管理服务器(30)内部可以是集群式,或分布式;可以是和网络侧任何可能的设备合设,或者独立设置的,但对于AOG而言是能够与其他设备相区分的,上述的系统中AOG可能有多个。 Incidentally, the user management server (30) interior may be clustered or distributed; and the network may be any device may be co-located or provided independently, but are relative terms AOG with other devices distinguishable, the system described above may have multiple AOG.

[0060] 在一个较优的实施方式中,上述鉴权信息为用户身份信息,例如手机号码,用户标识或者用户名称,方便各种应用服务器针对其用户进行鉴权,具体实施方式中可以由AOG(20)代理该鉴权的过程。 [0060] In embodiments with a preferred embodiment of the authentication information for the user identity information, such as phone number, user name or user ID, to facilitate the application server for authentication for the various users thereof, particular embodiments may be made AOG (20) the proxy authentication process. 然而一般的,终端(01)在通信的过程中携带的是终端身份信息,例如MSI信息,或者设备标识,这些信息如果作为鉴权信息,需要提前与一个或者多个应用服务器等设备进行复杂的认证交互。 However, in general, the terminal (01) carried in the course of communication is the terminal identity information, e.g. MSI information or device identification, if such information as the authentication information, in advance complex with one or more application servers and other equipment certification interaction. 另外需要说明的是,上述路由信息为用户身份信息所归属的AOG (20)的地址,在具体实施方式中,对于整个网络,可能有多个AOG (20),需要明确为某个用户身份信息提供代理服务的A0G。 Further Incidentally, AOG (20) the user identity information to the routing information of the home address, in the specific embodiment, for the entire network, there may be multiple AOG (20), a clear need for a user information A0G provide agency services.

[0061] 参考图2b,为一个较优的实施方式的流程图,前述图2的系统执行如下的方法: [0061] Referring to Figure 2b, is a flowchart of an exemplary implementation of the system of FIG. 2 performs the following method:

[0062] 201.用户管理服务器(30)(例如注册管理模块(3011))获取并存储终端身份信息和用户身份信息的对应关系,且存储用户身份信息所归属的A0G(20)的地址; [0062] 201. The user management server (30) (e.g., registration management module (3011)) and stores the acquired correspondence relationship between the terminal identity information and user identity information, and A0G (20) for storing user identity information of the home address;

[0063] 202.当AOE(IOl)(如链接管理模块(1011))发送路由信息请求时,用户管理服务器(30)(例如路由信息模块(3012))根据路由信息请求中的终端身份信息,以及终端身份信息和用户身份信息的对应关系,向AOE(IOl)提供用户身份信息归属的AOG的地址; [0063] 202. When AOE (IOL) (such as a link management module (1011)) send routing information request, the user management server (30) (e.g., routing information module (3012)) according to the routing information request, the terminal identity information, and the correspondence between the terminal identity information and user identity information, providing the user identity information AOG address belongs to AOE (IOl);

[0064] 203.当AOG(20)发送鉴权信息请求时,用户管理服务器(30)(例如鉴权信息模块(3013))根据鉴权信息请求中的终端身份信息,以及终端身份信息和用户身份信息的对应关系,向A0G(20)提供用户身份信息。 [0064] 203. When AOG (20) sending the authentication information request, the user management server (30) (e.g., authentication information module (3013)) according to the terminal identification information of the authentication information in the request, and the terminal identity information and the user correspondence between the identity information to provide user identity information to A0G (20).

[0065] 具体的,上述获取并存储终端身份信息和用户身份信息的对应关系的过程,可以是在前述长链接未建立之前,利用其他可能的通信通道实现的,例如电路域通信通道,或者短消息通道。 [0065] Specifically, the acquired correspondence relation, and stores the terminal identity information and user identity information of the process, may be before the long link is not established, the use of other possible communication channels implemented, for example, a circuit domain communication channels, or short message channel. 具体的,可以包括但不限于由终端(10)上报给用户管理服务器(30),或者由其他网络设备转发给用户管理服务器(30),也可以是用户管理服务器(30)向终端(10)或者其他网络设备请求的方式得到。 Specifically, it may include, but are not limited to reports by the terminal (10) to the user management server (30) or forwarded by other network devices to a user management server (30) may be a user management server (30) to the terminal (10) or other network devices to obtain requests. [0066] 参考图3a,较优的,以由运营商提供的通信系统为例,并具体以终端身份信息为IMSI信息,用户身份信息为手机号码为例,上述在建立长链接的过程中,位于网络侧的用户管理服务器(30)向AOE(IOl)提供路由信息,向A0G(20)提供鉴权信息的过程具体包括: [0066] Referring to FIG 3a, superior to a communication system provided by the operator, for example, and in particular to the terminal identity information is IMSI information and user identity information to phone numbers, for example, in the above-described process of establishing long link, the network side of the user management server (30) to provide routing information AOE (IOl), provides authentication information to A0G (20) of the process comprises:

[0067] 301,所述AOE (101)(例如,AOE (101)上的链接管理模块(1011))在所述永久在线引擎AOE(IOl)启动时或者检测到SM卡中的ISMI信息与上次注册的信息不同时,自动发送上报消息到用户管理服务器(30),所述上报消息携带所述IMSI信息和所述手机号码。 [0067] 301, the AOE (link management module (1011) on e.g., AOE (101)) (101) when the permanent online engine AOE (IOl) promoter or SM detects ISMI information on the card and registration information is not the same time, automatically sends a report message to the user management server (30), said report message carries the IMSI information and the phone number.

[0068] 上述上报消息是不需要建立好前述的AOE(IOl)和A0G(20)之间的链路的情况下能够发送的信息,例如电路域的信息,或者非数据链路的信息。 Information, such as CS domain, or the non-data link information [0068] The report message is not necessary to establish a good AOE case where the above-described link between the (IOL) and A0G (20) can be transmitted. 更具体的,可以是短信息,或者,由AAA服务器转发的上线Radius通知等等。 More specifically, it may be a short message, or forwarded by the on-line Radius AAA server notifies the like. 如果为短消息,则只需要在内容中携带MSI信息,系统将其发送方默认设置为手机号码,进一步节约了数据通信资源。 If a short message, only needs to carry MSI information content, the system defaults to the sender phone number, a further saving of data communication resources.

[0069] 302,用户管理服务器(30)(如上述注册管理模块(3011))根据收到的所述上报消息获取所述頂SI信息和所述手机号码,存储所述手机号码和所述IMSI信息的对应关系。 [0069] 302, the user management server (30) (as described registration management module (3011)) reported the acquired message information SI and the top cell phone number, the phone number and the memory according to the received IMSI correspondence information.

[0070] 303,可选的,由于上报消息可能有延迟,为了确保用户管理服务器(30)收到该上报消息后再进行后续处理流程,AOE(IOl)可以进行一定的延时。 [0070] 303, an optional, since the report message may be delayed, in order to ensure the user management server (30) receives a subsequent message and then reports the processing flow, AOE (IOL) may be a certain delay.

[0071] 304,AOE(IOl)(例如链接管理模块(1011))向所述用户管理服务器(30)发送路由信息请求,该路由信息请求中携带所述IMSI信息。 [0071] 304, AOE (IOl) (e.g. link management module (1011)) sends a routing information request to the user management server (30), the routing information request message carries the IMSI.

[0072] 305,用户管理服务器(30)(如路由信息模块(3012))根据接收到的路由信息请求中的MSI信息查找到对应的手机号码(具体的,即指查找上述注册管理模块(3011)),再根据预先存储的手机号码归属的AOG地址,返回该手机号码归属的A0G(20)的地址给所述AOE(IOl)。 [0072] 305, the user management server (30) (e.g., routing information module (3012)) to find information MSI according to the routing information request received in the corresponding phone number (specifically, referring to the registration management module to find (3011 )), then according to the address AOG home phone number stored in advance, which returns the phone number belongs A0G (20) of the address to the AOE (IOl).

[0073] 306,AOE(IOl)(例如链接管理模块(1011))获取到归属的AOG信息后,向归属的AOG(20)发起注册请求,该注册请求携带IMSI信息。 [0073] 306, AOE (IOl) (e.g. link management module (1011)), after obtaining the information belongs AOG, initiate a registration request to the home AOG (20 is), the registration request carries the IMSI information.

[0074] 较优的,该注册请求还可以携带但不限于:A0E(101)中的已经注册的应用客户端的信息,例如该应用的标识,终端的型号、接入网络APN、操作系统版本,以及AOE(IOl)的版 [0074] superior, the registration request may also carry but are not limited to: information A0E (101) registered application client, such as the model identifier of the application, the terminal, access to the APN network, operating system version, and AOE (IOl) version

本等等。 This and more.

[0075] 307,该A0G(20)收到注册请求后,接收到所述AOE(101)的注册请求后,判断其中包含的MSI信息在该A0G(20)中是否已经注册。 After [0075] 307, the A0G (20) after receiving the registration request, receiving the AOE (101) a registration request, determines whether the information contained therein has been registered in the MSI A0G (20) in.

[0076] 308.如果没有注册则该AOG(20)向用户管理服务器(30)发送鉴权信息请求,所述鉴权信息请求携带所述注册请求中的頂SI信息。 [0076] 308. If not registered the AOG (20) sends an authentication information request to the user management server (30), said authentication information request carries a top SI information in the registration request.

[0077] 309,用户管理服务器(30)接收到鉴权信息请求后(具体的,例如终端信息模块301)向A0G(20)返回MSI信息对应的终端信息手机号码。 [0077] 309, the user management server (30) receives the return information corresponding to the terminal MSI information to the mobile phone number A0G (20) after (specifically, for example, the terminal 301 information module) authentication information request.

[0078] 310,A0G(20)(例如其中的链接管理模块(2011))判断是该手机号码否为该AOG(20)的服务范围,如果不是返回注册失败,流程结束。 [0078] 310, A0G (20) (for example, where the link management module (2011)) to determine is whether the phone number for the service range AOG (20), if not return the registration fails, the process ends. 如果属于该A0G(20)的服务范围,该AOG(20)(例如其中的链接管理模块(2011))存储该手机号码。 If you belong to the scope of services A0G (20) of the AOG (20) (for example, where the link management module (2011)) to store the phone number. 较优的,还可以保存前述注册信息中携带的其他信息,例如终端型号,已经注册的应用客户端,等等信息。 Superior, you can also save other foregoing information carried in the registration information, such as terminal type, registered application client, and so forth.

[0079] 311,在310中成功注册以后A0G(20)(例如其中的链接管理模块(2011))向AOE(IOl)(例如链接管理模块(1011))返回注册响应。 [0079] 311, 310, after successful registration in A0G (20) (e.g. wherein the link management module (2011)) returns a registration response to AOE (IOl) (e.g. link management module (1011)).

[0080] 至此,AOE(IOl)与归属的A0G(20)成功建立前述长链接。 [0080] Thus, AOE (IOl) and belonging A0G (20) successful establishment of the long link. 该过程利用了系统中可信任的终端信息,以及用户信息建立长链接,不需要系统通过复杂的交互为每个终端(10)生成唯一的设备ID,并利用该唯一的设备ID建立长链接,从而在简化流程的同时提高了长链接的安全性。 The process utilizes a trusted system terminal information, user information and the establishment of the long link, the system does not require each terminal (10) generates a unique device ID, and the establishment of the long link utilizing the unique device ID by the complex interaction of, so while simplifying the process of improving the safety of the long link.

[0081] 前述图3a示出的是终端(10)启动时或者检测到SM卡中的ISMI信息与上次注册的信息不同时(即终端中的SM卡被更换,可以理解为一个新的终端(10))的建立联接的过程,具体的,包含终端信息在AOG (20)上的注册和应用信息在AOG (20)上的注册。 [0081] Figure 3a shows the time that the terminal (10) detects the start or ISMI previous registration information and information of SM card is not the same (i.e., terminal SM card is replaced, can be understood as a new terminal process (10)) to establish a connection, concrete, comprising a terminal information registration and application information in the AOG (20) registered on the AOG (20) of. 在其他的情况下,可能出现终端(10)本身到A0G(20)注册后,增加安装或者删除了某些应用,需要采取类似的方法进行应用信息的更新。 In other cases, it may appear terminal (10) itself to A0G (20) after registration, increase installed or removed some applications, you need to take a similar approach to update application information. 参考图3b,为更新应用的流程示意图,其中A0G(20)为终端(10)归属地的AOG和应用服务器接入地的AOG所组成的系统。 Referring to Figure 3b, is a schematic flow diagram of the update application, wherein A0G (20) of the terminal (10) of AOG home system and the application server access to the AOG thereof. 一个具体例子中,其流程包括: A specific example, the process comprising:

[0082] 301b,终端上安装(或者卸载)支持能与AOE (101)交互实现AOI功能的应用客户端; [0082] 301b, installed on the terminal (or unloaded) can interact with the support AOE (101) AOI implement application client function;

[0083] 302b,应用客户端安装完成后(或者卸载完成后),调用SDK的应用登记接口进行登记(卸载视为调用SDK的应用注销接口进行注销); After [0083] 302b, the client application installed (or unloaded after completion), the SDK application calls registering interface for registration (unload considered call the SDK application interface logout logout);

[0084] 303b, AOE(IOl)调用REG接口,向终端归属地AOG发送增加应用请求(卸载时为删除应用请求); [0084] 303b, AOE (IOl) REG call interface to the home terminal transmits AOG increase application request (request to remove the application uninstall);

[0085] 304b,终端归属地AOG将终端对应的应用信息更新入库; [0085] 304b, the AOG home terminal corresponding to the terminal to update the application information storage;

[0086] 305b,终端归属地AOG向AOE (101)返回注册响应(卸载时未注销响应); [0086] 305b, the home terminal registration response is returned to the AOG AOE (101) (not canceled in response to unloading);

[0087] 305b,终端归属地AOG根据终端上报的应用的ID,构造INFO上线通知消息,发送到应用归属的AOG网关,该上线通知消息携带手机号码。 [0087] 305b, the terminal notifies the home AOG reported by the terminal according to the ID of the application, the line configuration INFO message, sent to the AOG application belongs, the notification message on the line phone number. (当卸载时为下线通知消息)。 (Unloaded notification message when offline).

[0088] 307b,应用服务器接入地的A0G,将手机号码转换为伪码。 [0088] 307b, the access to the application server A0G, the phone number is converted pseudo code.

[0089] 308b,应用服务器接入地的A0G,将上线通知消息(当卸载时为下线通知消息)转发给应用服务器,消息中携带伪码。 [0089] 308b, the access to the application server A0G, the on-line notification message (the notification message is unloaded when offline) forwarded to the application server, the message carries the pseudo-code.

[0090] 309b,应用服务器返回通知响应。 [0090] 309b, the application server returns a notification response.

[0091] 310b,应用服务器接入地的AOG将通知响应转发给原通知发起方AOG网关。 [0091] 310b, the access to the application server forwards the response to notification AOG original notification initiating the AOG.

[0092] 具体的,当终端归属AOG网关与应用归属AOG网关为同一个网关时,则不需要上述流程中的第306b、310b步的消息在网关间的前转过程。 [0092] Specifically, when the terminal belongs to the AOG AOG, and application in the home gateway is the same, the first 306b, 310b further message flow described above is not required in the forwarding procedure between the gateway.

[0093] 若终端归属地AOG网关与应用归属AOG网关不是同一个网关,并且二者之间没有建立有效联接,则在前转消息前,由终端归属地AOG网关主动向应用归属地AOG网关完成REG注册登录过程,然后再进行消息前转。 Before [0093] If the home terminal and application of the AOG AOG, the home gateway is not the same, and the absence of an effective coupling between the two, then the forwarding message, the home terminal by the initiative to complete the application home AOG, the AOG REG registration login process, and then the message before forwarding.

[0094] 为了简化AOG网关内部对于REG消息的处理流程,在应用安装流程中,A0G02可以不区分何种类型的注册消息(或者注销消息),收到报文后仍可按首次注册流程,确认IMSI摘要在本AOG是否存在,如果不存在到用户管理服务器03上查询手机号码,并根据手机号码是否属于本AOG服务的范围,确认给AOE(101)返回消息的内容。 [0094] To simplify the internal processing flow for the AOG REG message, the application installation process, A0G02 may not distinguish which type of registration message (or deregistration message), receiving the packet can still press the first registration process, to confirm IMSI exists in this summary AOG, if there is no phone number to query the user management server 03, and in accordance with the phone number is within the scope of AOG services, confirmed the content of the message is returned to the AOE (101). 只不过在单纯的应用安装流程中,IMSI必定存在,号码必定属于本A0G,不会走到另外分支。 But in a simple application installation process, IMSI must exist, this number must belong A0G, do not come to another branch.

[0095] 如图4a所示为一个支持应用客户端永久在线的系统实施方式的架构示意图,系统中包括: [0095] As shown in FIG. 4a is a side schematic view of the architecture of a system always online customer support applications embodiments, the system comprising:

[0096] 至少两个应用客户端,该应用客户端位于终端(10)中,与所述永久在线引擎AOE(IOl)通信连接;; [0096] Application of the at least two clients, the client located in a terminal application (10) in permanent communication connection with the online engine AOE (IOl) ;;

[0097] 永久在线引擎AOE(lOl),位于终端(10)中,与至少两个应用客户端通信连接,用于和永久在线服务网关AOG (20)之间建立一个长链接; [0097] permanently online engine AOE (lOl), located in a terminal (10), at least two applications to communicate with clients connected to and between the permanent online service gateway AOG (20) to establish a long link;

[0098] 永久在线服务网关A0G(20),位于网络侧,用于与永久在线引擎AOE(IOl)之间建立所述长链接; [0098] permanently online service gateway A0G (20), at the network side, for establishing the long connection between the permanent online engine AOE (IOl) and;

[0099] 一个或者多个应用服务器(04,05),位于网络侧,与永久在线服务网关A0G(20)通 [0099] one or more application servers (04, 05), at the network side, the permanent online service gateway A0G (20) through

信连接; Communication connection;

[0100] 其中,该至少两个应用客户端通过该长链接与该一个或者多个应用服务器04通信,以分别实现该一个或者多个服务器(04,05)提供的应用业务;在该系统中,该长链接的维护由服务侧的AOG(20)负责,也就是说,在终端(10)与A0G(20)之间,由A0G(20)发起心跳消息,以便于维护该长链接。 [0100] wherein the at least two clients of the application of the long link 04 one or more application servers in communication with, respectively, to implement the one or more servers (04, 05) provided by the application service; in the system the long link maintenance responsibility of the AOG (20) service side, that is, between the terminal (10) and A0G (20), by the A0G (20) initiates a heartbeat message, in order to maintain the long link. 其中应用客户端用于面向用户提供应用业务,应用服务器04用于提供各种应用业务,例如下述应用的之一或者任一组合:PUSH Mail,天气预报,VOIP,广告,定位服务,企业办公,生活服务,等等。 Where the application client to provide user-oriented business applications, application servers 04 for providing various application services, for example, one of the following applications or any combination of: PUSH Mail, weather forecasts, VOIP, advertising, location services, corporate office , service life, and so on.

[0101] 如图4a所示,采用这种维护长链接的方式,相对于由终端侧发起心跳的方式,一方面终端(含其内的各个应用客户端)不需要向一个或者多个应用服务器发送大量心跳消息,减少终端侧的信令压力,另一方面终端内的AOE(IOl)也不需要对这些心跳进行过滤/放弃等特别的处理,在减少了终端向外发送的信令消耗的同时,进一步的减少了终端(10)内部的信令消耗;另外,AOG(20)发起心跳时可以根据网络情况调整心跳间隔,自动控制心跳参数,使心跳最符合于网络的情况,从而避免终端侧主动探测网络参数的过程,进一步的减少了通信资源浪费。 [0101] Figure 4a, in this way the maintenance of the long link with respect to the terminal side mode is initiated by the heartbeat, on the one hand a terminal (client applications each containing therein) need not to one or more application servers sending a large number of heartbeat messages, the pressure to reduce signaling terminal side, on the other hand AOE (IOl) in the terminal does not need to filter these heartbeat / abort other special processing, the terminal reduces the signaling transmitted outwardly consumption at the same time, further reducing the terminal (10) inside the signaling consumed; further, AOG (20) heartbeat interval may be adjusted according to the network when initiating a heartbeat, heart automatic control parameters to best meet the heartbeat in the network, thereby preventing the terminal side active network probing process parameters, further reducing the waste of communication resources.

[0102] 参考图4b,在较优的实施方式中,AOE(IOl)和A0G(20)可以各自分别根据自己的判断主动地断开该长链接,从而进一步得以节省网络、终端、服务器等的通信资源,当然也节省了各设备尤其是终端(10)的电量消耗。 [0102] Referring to FIG 4b, In the preferred embodiment, AOE (IOl) and A0G (20) may each according to their own judgment actively disconnect the long link, to thereby further saving network, terminal, server, etc. communication resources, of course, each device saves in particular power terminal (10) is consumed. 当有需要时,A0G(20)可主动再次唤醒与终端侧的连接。 When necessary, A0G (20) actively connected to the wake-up terminal side again.

[0103] 参考图5a为从AOE(IOl)的角度,关于长链接的心跳维护的实施方式的示意图。 [0103] Referring to FIG 5a from AOE (IOl) perspective, schematic view of the long link according to an embodiment of the maintenance of the heartbeat. 参考图5a,在建立了长链接后,AOE(IOl)对长链接进行维护的较优的方法的示意图,包括: Referring to Figure 5a, after the establishment of the long link, AOE (IOl) on the schematic superior long links maintenance method, comprising:

[0104] 可选的,AOE(IOl)(例如其中的链接管理模块(1011))收到A0G(20)主动发送的断开请求(例如BYE),则断开该长链接。 [0104] Alternatively, AOE (IOl) (e.g. wherein the link management module (1011)) receives the disconnect request (e.g. BYE), the long link disconnection A0G (20) actively sent.

[0105] 可选的,AOE(IOl)(例如心跳时间模块(1012))收到心跳消息后,刷新定时器,如果该定时器超过一定的时间阈值的时候还未收到其他心跳消息,则向A0G(20)发送断开请求(例如BYE),用以关闭该长链接。 [0105] Alternatively, AOE (IOL) (e.g. heartbeat time module (1012)) after receiving a heartbeat message, a refresh timer, if the timer exceeds a certain time threshold when other heartbeat message has not been received, then (20) transmits the disconnect request (e.g. the BYE) to A0G, to close the long link. 例如,设置该时间阈值为5分钟,10分钟,或者30分钟 For example, setting the time threshold is 5 minutes, 10 minutes, or 30 minutes

坐坐寸寸o O begins to sit

[0106] 可选的,AOE(IOl)(例如其中的应用管理模块(1012))检测到其管理的所有应用客户端在一定的时间阈值内未运行时,主动发起断开请求(例如BYE请求),则断开该长链接。 [0106] Alternatively, AOE (IOL) (e.g., where the application management module (1012)) which manages all of the detected client application is not running within a certain time threshold, initiate disconnection request (BYE request e.g. ), disconnect the long link. 例如,设置该时间阈值为5分钟,10分钟,或者30分钟等等。 For example, setting the time threshold is 5 minutes, 10 minutes, 30 minutes or the like.

[0107] 可选的,AOE(IOl)(例如其中的电池监控模块(1014))监视终端(10)的电池电量,当电量不足于一定的阈值时(例如电量仅剩10 %,或者5 % ),如果长链接存在,则主动发送断开请求例如BYE),可选的,可以在断开请求中增加标签,表明是因为电量低而断开该长链接。 [0107] Alternatively, AOE (IOL) (e.g., where a battery monitoring module (1014)) monitor terminal (10) of the battery, when the battery is less than a certain threshold value to (e.g. electricity remaining 10%, or 5% ), if the long link exists, sends the disconnection request, for example, the BYE), optionally, the label may be increased in the disconnect request, indicating a low battery is disconnected because of the long link.

[0108] 通过前述可能的实施方式,长链接断开以后,AOE(IOl)进入休眠状态,(可以等待AOG (20)通过短信唤醒),能够节省终端(10)的电量。 [0108] possible by the foregoing embodiment, the link is broken after a long, AOE (IOL) into the dormant state (may wait AOG (20) via SMS wakeup), saves the terminal (10) of electricity. 其中,各种由AOE(IOl)主动发起的断开长链接的方式,进一步的减少了不必要的信令浪费,例如断开后网络侧的A0G(20)不需要再发送心跳消息,另外也进一步的节省了终端(10)上的电池电量。 Wherein, by the various AOE (IOl) initiates disconnection of the long link, to further reduce the unnecessary signaling waste, e.g. A0G network side after disconnection (20) does not need to send a heartbeat message, while also further saves battery power on the terminal (10).

[0109] 另外需要说明的是,当AOE(IOl)与AOG(20)之间的长链接存在时,需要禁止终端 [0109] Further to be noted that, when the length of the link between the AOE (IOl) and AOG (20) is present, the terminal needs to be disabled

(10)的操作系统进入休眠状态,以保证长链接的正常连接,当与AOG之间的长链接断开时,可以恢复操作系统的休眠机制。 (10) of the operating system into a sleep state, to ensure the normal length of the link, when the length of the link between the AOG disconnected, can return from the sleep mechanism of the operating system.

[0110] 参考图5b,从A0G(20)的角度说明如何维护该长链接。 [0110] Referring to Figure 5b, from A0G (20) explains how to maintain the angle of the long link. 需要说明的是,图5b描述的A0G(20)在实际的应用过程中,可能是单一的一个服务器,可能根据需要分为终端(10)(具体的其中的AOE(IOl))归属的A0G(20)和一个或者多个应用服务器归属的AOG(20)。 Incidentally, A0G (20) described in Figure 5b the actual application process, it may be a single server, may (particularly therein AOE (IOl)) as needed into the home terminal (10) A0G ( 20) and one or more application servers in the home AOG (20). 其中,可选的,对于后者(两个AOG的情况),终端(10)归属的A0G(20)和一个或者多个应用服务器归属的AOG(20)之间进行通信连接,终端(10)归属的A0G(20)负责与终端(10)中的AOE(IOl)交互,一个或者多个应用服务器归属的A0G(20)负责与一个或者多个应用服务器交互。 Wherein, optionally, the latter (AOG case two), the terminal (10) belongs A0G (20) and one or more application servers for home AOG (20) communication connection terminal (10) attribution A0G (20) and the terminal is responsible for AOE (IOl) (10) of the interaction, one or more application server belongs A0G (20) responsible for interacting with the one or more server applications. 更为具体的,从A0G(20)的内部结构来讲,图5b所示的501到504可以由终端管理模块(1021)执行,该终端管理模块(1021)可以位于终端(10)归属的A0G(20)上;步骤500,505-508可以由应用管理模块(1022)执行,该应用管理模块(1022)可以位于应用服务器归属的AOG (20)上。 More specifically, from A0G (20 is) in terms of internal structure, FIG. 5b 501 to 504 may (1021) performed by the terminal management module illustrated, the terminal management module (1021) may be located A0G terminal (10) belongs (20); 500,505-508 step may (1022) performed by the application management module, the application management module (1022) may be located on (20) the application server belongs AOG.

[0111] 具体的,图5b所示的实施方式中,包括如下步骤: [0111] Specifically, the embodiment shown in FIG. 5b, the steps comprising:

[0112] 500-501,AOE(101)与A0G(20)成功的建立长链接。 [0112] 500-501, AOE (101) and A0G (20) successfully established long link. 其中包括AOE(101)与终端归属地AOG完成REG注册流程(501),包含终端的信息,以及终端上应用客户端的信息。 These include AOE (101) and the terminal REG home registration process completion AOG (501), containing information of the terminal, and information of the client application on the terminal. 相应的,一个或者多个应用服务器也需要已经成功的注册到A0G(20)(步骤500),这样,AOE(IOl)(即终端(10))上下线通知后续能够通知到一个或者多个应用服务器。 Accordingly, one or more application server needs to successfully register A0G (20) (step 500), so that, AOE (IOL) (i.e., the terminal (10)) on a subsequent offline notification can be notified to one or more applications server.

[0113] 502,AOE(IOl)与A0G(20)成功的建立长链接后,AOG(20)主动向终端发起ACK心跳消息,以便于维护该长链接。 [0113] 502, AOE (IOl) and A0G (20) long link is established successfully, AOG (20) initiates an ACK heartbeat message to the terminal, so as to maintain the long link. 较优的实施方式中,可以根据网络的状况配置发送心跳消息的时间间隔,即心跳间隔,以及配置超时时间控制等; In an exemplary implementation, the heartbeat message is sent can configure the time interval depending on the condition of the network, i.e. heartbeat interval, and set the timeout time control;

[0114] 503, AOE(IOl)回复ACKRSP响应,表示AOE (101)处于的活动状态。 [0114] 503, AOE (IOl) replies ACKRSP response indicating the active state AOE (101) located.

[0115] 504,AOG(20)根据下面几种情况对长链接进行维护,包括但不限于: [0115] 504, AOG (20) to maintain the long link according to the following situations, including but not limited to:

[0116] 5041,当A0G(20)接收到AOE(IOl)主动发送的断开请求时,断开该长链接,不再发送心跳消息;具体的,可以参考图5a所示的流程。 [0116] 5041, when A0G (20) receives a disconnect request AOE (IOl) actively sent, the long link disconnection, no heartbeat message is sent; flow illustrated in particular, reference may be Figure 5a.

[0117] 5042,当AOG (20)判断超过一定时间阈值没有收到从该终端(10) (AOE(IOl))发送的数据流,主动发起断开请求(例如BYE),不再发送心跳消息。 [0117] 5042 AOG (20) is determined over a certain time threshold has not received data stream (AOE (IOL)) transmitted from the terminal (10), initiates the disconnect request (e.g. the BYE), no heartbeat message is sent . 较优的实施方式中,该时间阈值可配置,例如,默认5分钟,10分钟或者30分钟。 Superior embodiment, the time threshold may be configured, for example, default 5 minutes, 10 minutes or 30 minutes.

[0118] 5043,当A0G(20)判断发送心跳消息ACT后,没有得到AOE(IOl)的响应的情况超过一定的次数阈值时,主动发起断开请求(例如BYE),不再发送心跳消息。 [0118] 5043, after A0G (20) is determined to send a heartbeat message ACT, not the case in response to the AOE (IOl) exceeds a certain threshold number of times, initiate disconnection request (e.g. the BYE), no heartbeat message is sent. 较优的实施方式中,该次数阈值可配置,例如,默认为3次,4次或者5次等等。 Superior embodiment, the threshold number may be configured, for example, the default is 3 times, 4 times, or 5 times the like.

[0119] 5054,图中未示出,502后,如果既未收到AOE (101)发送的断开请求也未主动向AOE(IOl)发送断开请求,则根据心跳时间间隔,规律的向AOE(IOl)发送心跳消息,以便于保持该长链接。 [0119] 5054, not shown in the figures, after 502, if neither received AOE (101) transmits the disconnection request has not actively sends a disconnection request to AOE (IOl), according to the heartbeat interval, the law AOE (IOl) heartbeat message is sent, in order to maintain the long link.

[0120] 较优的实施方式中,在前述针对长链接的维护的基础上,AOG(20)(例如应用管理模块(2012))还可以进一步的对AOE(IOl)的在线状态,以及该AOE(101)上的应用客户端进行管理。 [0120] In an exemplary implementation, the basis for the maintenance of the long link, AOG (20) (e.g. the application management module (2012)) may further AOE online state (IOL), and the AOE application clients on the (101) management. 例如,可选的,505,如果AOG (20)根据步骤5041,5042,或者5043等情况断开该长链接,则确认AOE (101)已经离线,更新本地存储的AOE(IOl)的是否在线状态为:离线。 For example, optional, 505, if the AOG (20) breaks the long link according to step 5041,5042, or 5043, etc., it is confirmed AOE (101) is offline, the locally stored updated AOE (IOl) whether the online status It is: offline.

[0121] 可选的,506,AOG(20)查询AOE(IOl)上注册的永久在线的应用客户端信息,如果和一个或者多个应用服务器之间需要使用伪码进行交互,则A0G(20)(例如应用管理模块(2012))将AOG (20)上存储的该AOE (101)的手机号码转换为伪码,该伪码用于在AOG (20)和应用服务器之间作为用户身份信息进行传递。 [0121] Alternatively, 506, AOG (20) registered on the query AOE (IOl) always online client application information, and if between one or more application servers need to interact pseudo code, the A0G (20 ) (e.g., the application management module (2012) which AOE (101) stored on) the AOG (20) is converted into pseudo-code phone number, the pseudo code is used between the AOG (20) and the application server as a user identity for delivery. 这里,伪码是一个用户在系统内部针对某一个应用的唯一身份标识。 Here, the pseudo-code is a unique user identification for a particular application within the system.

[0122] 具体的,为了保护用户隐私,有些应用不能把手机号码透露给应用服务器(SP),这时需要用其它的标识来代替手机号码。 [0122] Specifically, in order to protect user privacy, some applications can not disclose the phone number to the application server (SP), then the need to use other identification instead of the phone number. 一般做法为根据用手机号码和其它随机数这些信息做一个摘要,计算出的摘要可称之为伪码。 Abstract The general approach for making a phone number in accordance with the random number and other information, may be referred to digest calculated pseudo code. 手机号码与伪码是一一对应的,映射关系可以保留在服务器侧。 Phone number and the pseudo-code is a one to one mapping relationship can remain on the server side. 但算法是单向的,也就是说相关的随机参数不会发送给应用服务器(SP),因而应用服务器(SP)通过伪码不能反推出手机号码。 But algorithms are one-way, that is associated with random parameters are not sent to the application server (SP), and therefore the application server (SP) can not launch anti-cell phone number through the pseudo-code. 一个或者多个应用服务器(SP)发送下行消息时可以通过伪码来标识用户,在服务器侧例如可由伪码查询出对应的手机号码,则消息可路由到正确的用户。 One or more application servers (SP) may be identified by the user when sending a downlink message pseudo code, for example, on the server side may be a pseudo-code query corresponding phone number, the message may be routed to the correct user.

[0123] 更具体的,伪码是应用级别的,可指定某些应用启用伪码功能,某些应用关闭伪码功能。 [0123] More specifically, the pseudo code is an application level, the application can specify that certain features enable pseudo code, pseudo-code function to close some applications. 若应用管理模块(2012)在应用的控制属性中指定了需要传递伪码,则需要为与此应用有交互的手机号码生成伪码,以及,维护用户手机号码与伪码的对应关系。 If the application management module (2012) is designated in the application you need to transfer control attribute pseudo code, it is necessary for this application to interact with the cell phone number to generate a pseudo code as well, maintaining correspondence between the user's phone number and the pseudo-code. 一个例子中,生成的伪码的方法为:伪码=HASH(MSISDN、Time、APPID、Random)其中:HASH为哈希算法,例如采用MD5算法;MSISDN为用户手机号;Time:时间戳,例如采用YYYYMMDDHH24MISS格式;APPID为应用标识;Random为随机数。 In one example, a method of generating a pseudo-code: Pseudo Code = HASH (MSISDN, Time, APPID, Random) wherein: the HASH hash algorithm, such as MD5 algorithm; the MSISDN for the mobile phone number; Time: time stamp, e.g. YYYYMMDDHH24MISS format employed; the APPID for the application identifier; the random is a random number. 对于指定的手机号码与某个应用,伪码在系统中只生成一次,终生有效。 For a given cell phone number and an application, the pseudo-code generation in the system only once, valid for life. 具体的,当需要由手机号码转换成伪码时,系统首先根据手机号码及应用ID做联合查询本地数据库,查不到伪码,则证明是首次使用该应用,则用上述算法生成伪码。 Specifically, when a phone number is to be converted to pseudo code, the system according to the first phone number and make a joint application queries the local database ID, finding pseudo-code, it proved to be the first time the application is generated by the above pseudo-code algorithm. 当需要由伪码到手机号码的转换时,A0G(20)查询本地数据库,查询失败,则证明应用指定的伪码错误。 When you need to convert from the pseudo-code phone number, A0G (20) queries the local database, query fails, then prove that the pseudo-code error application specified. 查询成功时,将应用消息中的APPID与本地伪码数据库的APPID进行匹配,匹配成功,则认为伪码校验成功。 When the query is successful, the APPID APPID local pseudo-code database application message match, the match is successful, it is considered a pseudo-code verification is successful.

[0124] 可选的,507A0G(20)构造下线通知消息发给一个或者多个应用服务器,该下线通知消息中包含伪码。 [0124] Alternatively, 507A0G (20) configured offline notification message to one or more application servers, the offline notification message contains the pseudo-code.

[0125] 相应的,508,一个或者多个应用服务器收到下线通知消息后可以返回通知响应。 [0125] Accordingly, 508, one or more application server receives the notification message may be returned after the offline notification response.

[0126] 具体的,如果A0G(20)是一个服务器,则,该AOG (20)自己执行上述步骤506,507 ;如果A0G(20)是AOE(IOl)归属的A0G(20)和一个或者多个应用服务器归属的AOG(20)组成的系统,则AOE(IOl)归属的A0G(20)发送包含手机号码的下线通知消息给一个或者多个应用服务器归属的A0G(20),由一个或者多个应用服务器归属的A0G(20)将该手机号码转换为伪码,将包含伪码的下线通知消息发送给一个或者多个应用服务器。 [0126] Specifically, if A0G (20) is a server, the AOG (20) executes the above-described steps 506 and 507; if A0G (20) is AOE (IOl) belongs A0G (20) and a plurality or application server belongs AOG (20) consisting of the system, to one or more of the AOE A0G (20) belongs to the application server (IOL) belongs A0G (20) transmits an offline notification message comprising phone number, by one or a plurality of application servers belongs A0G (20) converts the cell phone number to the pseudo-code, including pseudocode offline notification message to one or more application servers.

[0127] 基于上述各种可能的实施方式,在长链接断开以后,AOE(IOl)可以等待A0G(20)通过短信唤醒,重新建立起该长链接。 [0127] Based on the above various possible embodiments, after a long link is broken, AOE (IOl) may wait A0G (20) via SMS wakeup, the long link is re-established. 具体的可以由如图6所示的系统实现,例如是AOG(20)中的“短信推送模块(2015)”,AOE(101)中的“短信处理模块(1013)”,“应用唤醒模块(1015)”等来实现。 Specific may be implemented by the system shown in FIG. 6, for example, AOG (20) in the "SMS push module (2015)", AOE "short message processing module (1013)" (101) "wake up module application ( 1015) "or the like.

[0128] 具体的,参考图7为长链接断开的情况下可能的唤醒该长链接的实施方式的流程示意图。 [0128] Specifically, with reference to FIG. 7 is a schematic flow diagram of wake-up in the case of a long link length of the link disconnection embodiment. 包括: include:

[0129] 701,AOG(20)中的短信推送模块(2015)在特殊情况下向AOE(101)发送“唤醒短信”,用于唤醒尚未建立或者已经断开的长链接。 [0129] 701, AOG SMS push module (20) (2015) (101) transmitted in special cases to AOE "wake up message", has not been established, or to wake up the long link has been disconnected.

[0130] 具体的,唤醒短信不是普通的文本短信,是一种特殊格式的二进制短信,在AOG(20)和AOE(IOl)之间约定,二者可理解,其它网络设备不可见。 [0130] Specifically, the wake-up message is not an ordinary text message, a special message is a binary format, the agreement between the AOG (20) and AOE (IOl), both appreciated, other network devices are not visible. 这种用于唤醒长链接的二进制短信,可能包括需要唤醒的应用ID,下行消息发送方标识,目的用户标识,消息的摘要等内容。 Such binary SMS for awakening long link, including the application ID may need to wake up, the downlink message sender identification, destination user identification, a summary of the message and so on.

[0131] 702,AOE(101)中的短信处理模块(1013)监听、拦截到“唤醒短信”后,解析该“唤醒短信”触发AOE(IOl)中的链接管理模块(1011)建立长链接;具体的,监听是监测到有唤醒短信存在,拦截是指唤醒短信不再向下传递,其它应用不会再收到唤醒短信内容。 [0131] 702, the AOE (101) short message processing module (1013) monitor, intercept to "wake-up SMS" after parsing the "wake-up SMS" trigger AOE link management module (1011) (IOl) in establishing long link; specifically, the monitor is to monitor the presence of the wake-up message, SMS interception is no longer passed down refers to wake up, wake up other applications will no longer receive the message content.

[0132] 703-704,AOE(IOl)中的链接管理模块(1011)根据短信处理模块(1013)的提示向A0G(20)发起注册请求,以及接收A0G(20)返回的注册响应,相应的建立起该长链接,AOG (20)将应用服务器发送的下行消息通过前述重新建立的长链接发送给AOE(IOl)。 [0132] 703-704, AOE (IOl) in the link management module (1011) (1013) prompted to initiate a short message processing module according A0G (20) registration request, and receiving A0G (20) to return a registration response, the respective establish the long link, AOG (20) transmits the downlink long link message transmitted by the application server to re-establish AOE (IOl).

[0133] 在另一个较优的实施方式中,参考图8,一个唤醒应用客户端的方法实施方式的流程示意图,在长链接已经建立或者已经被唤醒,但是终端(10)中的应用客户端已经退出,但是接收到了A0G(20)转发的发送给该应用客户端的数据时(801),AOE(IOl)中应用唤醒模块(1015)还可以拉起该已经退出的应用客户端(802)。 Showing the method [0133] In still another preferred embodiment of embodiment, with reference to FIG. 8, a wake-up application client according to the embodiment, it has been established or has been awakened in the long link, but the terminal (10) has a client application exit, but received the A0G (20) when (801) the data to the application client is sent to, AOE (IOl) applied forwarding wake-up module (1015) may also pull that has withdrawn application client (802).

[0134] 具体的,应用客户端与AOE(IOl)在终端(10)上是两个独立的进程,应用启动时需要向AOE(IOl)注册,告知AOE(IOl)其程序安装位置、运行参数等信息,AOE(IOl)得以监控终端上应用客户端的运行状态。 [0134] Specifically, the client application AOE (IOl) on the terminal (10) are two separate processes, the need to register AOE (IOl) when the application starts, inform AOE (IOl) its installation position, the operating parameters and other information, AOE (IOl) is an application running on the client to monitor the state of the terminal. 当应用客户端退出(可能是根据用户的指令主动退出),又有下行消息需要通知到该应用客户端时,AOE(IOl)根据前面的注册信息,重新运行客户端的程序,从而拉起该应用客户端,然后通过内部的API接口或消息接口将收到的下行消息通知到该应用客户端。 When the application client exits (exit may be active according to a user's instruction), there needs to be notified when a downlink message the client application, AOE (IOL) according to the previous registration information, re-run the client program, whereby the pull applied the client then notifies the received downlink message to the client application via an internal message interface or API interface.

[0135] 在其他的实施方式中,可以提供不同的可以与上述各实施方式进行任一组合的进一步的实施方式,参考图6,可选的,AOE(IOl)、AOG(20),用户管理服务器(30)包含多种可能的模块,各模块之间除非逻辑上有排斥,将可以进行任意的组合,从而形成更优的实施方式。 [0135] In other embodiments, it may provide a different further embodiments, with reference to FIG. May be any combination of the above-described sixth embodiment, an alternative, AOE (IOl), AOG (20), the user management server (30) comprising a plurality of modules possible, unless there is a logical between the modules rejection, the composition may be any, to form a more preferred embodiment. 下文将对各装置,以及装置中的各模块一一进行介绍。 Each device will hereinafter, and means in each module described one by one.

[0136] 图9为系统中终端(10)的一个实施方式的结构不意图。 Structure of one embodiment of the [0136] FIG 9 is a system terminal (10) is not intended. 终端(10) —般包括至少一个处理器(102)(例如CPU),至少一个网络接口(105)或者其他通信接口,存储器 The terminal (10) - typically includes at least one processor (102) (e.g., the CPU), at least one network interface (105) or other communication interface, a memory

(106),和至少一个通信总线(103),用于实现这些装置之间的连接通信。 (106), and at least one communication bus (103) for enabling communication between these devices is connected. 处理器(102)用于执行存储器中存储的可执行模块,例如计算机程序;终端(10)可选的包含用户接口 The processor (102) for executing the executable module stored in the memory, such as a computer program; terminal (10) optionally comprising a user interface

(104),包括但不限于显示器,键盘和点击设备(例如,鼠标,轨迹球(trackball),触感板或者触感显示屏。存储器(106)可能包含高速Ram存储器,也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个网络接口(可以是有线或者无线)实现该终端(10)与至少一个其他计算机之间的通信连接,可以使用互联网,广域网,本地网,城域网等。 (104), including but not limited to a display, a keyboard and a pointing device (e.g., a mouse, a trackball (Trackball), touch panel, or the display memory (106) may include high-speed memory Ram, and may also include non-volatile memory (non-volatile memory), for example, at least one disk memory through at least one network interface (which may be wired or wireless) of the terminal (10) with at least one communication connection between the other computers can use the Internet, a wide area network, local network, metropolitan area network.

[0137] 存储器(106)可选的可以包含至少一个位于远离前述CPU801的地方的存储装置(例如外接存储装置)。 [0137] The memory (106) may optionally comprise at least one storage device (such as an external storage device) located remotely of the CPU801. 在一些实施方式中,存储器(106)存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集: In some embodiments, the memory (106) stores the following elements, executable modules or data structures, or a subset of them, or their expansion set:

[0138] 操作系统(106),用于,包含各种程序,用于实现各种基础业务以及处理基于硬件的任务;[0139] 至少两个应用客户端(108),用于永久在线引擎AOE(IOl)通信连接,用于分别向用户提供应用业务; [0138] operating system (106), comprising various programs for implementing various basic services and hardware-based processing tasks; [0139] Application of the at least two clients (108), for always online engine AOE (IOL) a communication connection, respectively, for providing an application service to a user;

[0140] 永久在线引擎AOE(101),与位于终端(10)中的至少两个应用客户端(108)通信连接,与位于网络侧的永久在线服务网关A0G(20)通信连接,与位于网络侧的一个或者多个一个或者多个应用服务器04通过所述永久在线服务网关AOG (20)通信连接; [0140] permanently online engine AOE (101), connected to at least two application communication client (108) located in a terminal (10), a permanent communication connection with the online service gateway A0G at the network side (20), and located on a network or a side of a plurality of 04 or more application servers (20) through the communication connection the AOG always online service gateway;

[0141] 该永久在线引擎AOE (101)中包括但不限于下述模块之一或者其组合: [0141] The permanent online engine AOE (101) include, but are not limited to, one or a combination of the following modules:

[0142] 链接管理模块(1011),应用管理模块(1012),短信处理模块(1013),数据转发模块(1014),应用唤醒模块(1015),IP代理模块(1016),心跳时间模块(1017),或者,电池监控模块(1018),API接口等等。 [0142] Link management module (1011), the application management module (1012), short message processing module (1013), data forwarding module (1014), application wake up module (1015), IP proxy module (1016), heartbeat module (1017 ), or, the battery monitoring module (1018), API interface, etc.

[0143] 一个具体实施方式中,链接管理模块(1011),可以用于在所述AOE(IOl)和永久在线服务网关A0G(20)之间建立一个长链接,其中,所述至少两个应用客户端通过所述长链接分别与一个或者多个应用服务器(04,05)通信;从用户管理服务器(30)获取路由信息,并根据所述路由信息请求建立所述长链接。 [0143] In a specific embodiment, the link management module (1011), may be used between the AOE (IOl) and permanent online service gateway A0G (20) to establish a long link, wherein the at least two applications client through the long link respectively communicate with one or more application servers (04, 05); obtaining routing information from a user management server (30), and establishing the long link according to the routing information request. 具体的,获取路由信息的过程包括:向用户管理服务器(30)发送包含终端身份信息的路由信息请求,接收用户管理服务器(30)根据存储的终端身份信息和用户身份信息的对应关系,以及用户身份信息归属的AOG的地址返回的所述AOG的地址。 Specifically, the routing information of the process comprising: a user management server (30) transmits a routing information request terminal identity information, the received user management server (30) based on the correspondence terminal identity information and the user identity information stored, and the user AOG address of the home AOG identity information of the return address. 一个例子中,终端身份信息为IMSI信息,用户身份信息为手机号码;另一个例子中,终端身份信息为终端设备标识,用户身份信息为用户名称或者用户标识。 In one example, the terminal identity information is IMSI information, phone number of the user identity information; another example, the terminal identity information to the terminal device identification, user identification information is a user name or user ID. 具体的,上述过程可以参考图2b,3a,3b所示的实施方式。 Specifically, the above-described process, reference may embodiment, 3a, shown in FIG. 2b 3b.

[0144] 可选的,永久在线引擎AOE(101)提供API接口,应用客户端可以通过API接口与其进行通信,这样,每个应用客户端不直接与应用提供商建立长链接,而是通过永久在线引擎AOE (101)建立长链接。 [0144] Alternatively, the always online engine AOE (101) provides an API interface to the client application through the API interface to communicate with it, so that each client applications and application providers do not establish a direct link length, but through permanent online engine AOE (101) to establish a long link.

[0145] 可选的,AOE(101)中包括应用管理模块(2013),对在该永久在线引擎AOE(101)上注册的应用客户端的管理的功能,包括但不限于程序的登记、取消登记以及程序运行、退出运行状态的上报 [0145] Alternatively, AOE (101) comprises an application management module (2013) for managing registered on the permanent online engine AOE (101) application client function, including but not limited to the program registration deregistration and the program is running, quit running status report

[0146] 可选的,永久在线引擎AOE(IOl),例如进一步包含数据转发模块(1014),可以用于从不同应用客户端接收数据,然后通过前述的“长链接”发送出去;同时还可以从“长链接”获取数据,并根据数据中的应用ID来判断该消息报文属于哪个应用客户端的消息,然后将消息转发给该应用客户端。 [0146] Alternatively, the always online engine AOE (IOL), for example, further comprising a data forwarding module (1014), may be used to receive data from different client applications, and transmitted through the aforementioned "long link"; while also acquiring data from the "long link", and the data application ID in the message to determine which application client message packet belongs, and then forwards the message to the client application. 具体而言,将应用客户端发送的上行消息的,转发给永久在线服务网关102,以便于再转发给一个或者多个应用服务器;以及接收永久在线服务网关AOG(20)转发的由一个或者多个应用服务器发送的下行消息,转发到应用客户端。 Specifically, the uplink message sent by the client application, forwards always online service gateway 102 so as to forwarded to one or more application servers; and receiving a permanent online service gateway AOG (20) or forwarded by a plurality downlink message sent by the application server, the application is forwarded to the client.

[0147] 另一个较优的实施方式中,当应用客户端有大量数据需要与一个或者多个应用服务器交互时,AOE (101),如IP代理模块(1016),可以提供单独的连接与一个或者多个应用服务器交互。 When [0147] In still another preferred embodiment, when the application data to a large number of client-server interaction with one or more applications, AOE (101), such as IP proxy module (1016) may be provided with a separate connection or more application server interaction. 较优的,当传递的数据达到阈值时,需要建立IP代理通道,由该IP代理通道专门传输该数据。 Superior, when the data transfer reaches a threshold, the channel needs to establish an IP agent, specifically by the transmission of the data channel of the IP agent. 较优的,在数据传递结束时可以主动关闭IP代理通道。 Superior, at the end of the data transfer channel may be actively closed IP agent. 较优的,对于应用客户端或者一个或者多个应用服务器不主动关闭IP代理通道的,AOE(IOl)可以设定超时机制,在无数据交互达到阈值(例如60s)后,AOE(IOl)主动断开连接。 After superior for application client, or one or more application servers not actively closed IP agent channel, AOE (IOl) can set the timeout mechanism, without reaching the threshold data exchange (e.g. 60s), AOE (IOl) Active Disconnect.

[0148] 图10为系统中永久在线网关A0G(20)的一个实施方式的结构示意图。 [0148] FIG. 10 is a schematic structural diagram of a gateway system always online A0G (20) of a embodiment. 需要说明的是如前文所述,可以根据需要设置为两个分离的不在同一个物理位置的设备,即终端(10)归属的AOG (20)和应用服务器归属的AOG (20),由他们相互通信一起完成相关的功能,其结构类似,但是应用模块中可能根据其所在的位置包含不同的模块。 Note that as previously described, may be two separate physical locations not in the same equipment, i.e. the terminal (10) belongs AOG (20) and the application server belongs AOG (20), is provided as required by their mutual together complete a communication-related functions, similar to the structure, but may contain application modules according to its different modules in position.

[0149] AOG (20)位于网络侧,与位于终端(10)中永久在线引擎AOE (101)通信连接,该永久在线引擎AOE(IOl)与位于终端(10)中的至少两个应用客户端通信连接;与位于网络侧的一个或者多个一个或者多个应用服务器(04,05)通信连接。 [0149] AOG (20) located at the network side, communication connection with the terminal is located (10) permanently online engine AOE (101), the always online engine AOE (IOl) and at least two terminals located in the client application (10) a communication connection; (04, 05) located on the network side communication connection with one or more of the one or more application servers.

[0150] 该A0G(20) —般包括至少一个处理器(202)(例如CPU),至少一个网络接口或者其他通信接口(205),存储器(206),和至少一个通信总线(203),用于实现这些装置之间的连接通信。 [0150] The A0G (20) - generally comprises at least one processor (202) (e.g., the CPU), at least one network interface or other communications interface (205), a memory (206), and at least one communication bus (203), with to realize the connection between the communication devices. 处理器(202)用于执行存储器中存储的可执行模块,例如计算机程序。 The processor (202) for executing the executable module stored in the memory, such as a computer program. 该A0G(20)可选的还包含用户接口(904),包括但不限于显示器,键盘和点击设备(例如,鼠标,轨迹球(trackball),触感板或者触感显示屏。存储器(906)可能包含高速Ram存储器,也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个网络接口(可以是有线或者无线)实现该A0G(20)与至少一个其他计算机之间的通信连接,可以使用互联网,广域网,本地网,城域网等。 The A0G (20) optionally further comprises a user interface (904), including but not limited to a display, a keyboard and a pointing device (e.g., a mouse, a trackball (Trackball), touch panel, or the display memory (906) may include Ram-speed memory, and may also include non-volatile memory (non-volatile memory), for example, at least one disk memory via at least one network interface (which may be wired or wireless) to achieve the A0G (20) with at least one other computer of a communication connection between, can use the Internet, a wide area network, local area network, metropolitan area network.

[0151] 存储器(206)可选的可以包含至少一个位于远离前述CPU的地方的存储装置(例如外接存储装置)。 [0151] The memory (206) may optionally include a storage device (such as an external storage device) located remotely of at least one of the CPU. 在一些实施方式中,存储器(206)存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集: In some embodiments, the memory (206) stores the following elements, executable modules or data structures, or a subset of them, or their expansion set:

[0152] 操作系统(207),用于,包含各种程序,用于实现各种基础业务以及处理基于硬件的任务;以及,下述模块之一或者任一组合: [0152] operating system (207), comprising various programs for implementing various basic services and hardware-based processing tasks; and, one or any combination of the following modules:

[0153] 终端管理模块(2011),应用管理模块(2012),路由管理模块(2013),缓存管理模块(2014),短信推送模块(2015),IP推送模块(2016),协议转换模块(2017),或者,升级管理模块(2018)。 [0153] terminal management module (2011), the application management module (2012), route management module (2013), buffer management module (2014), SMS push module (2015), IP push module (2016), protocol conversion module (2017 ), or upgrade management module (2018).

[0154] 具体的实施方式中,终端管理模块(2011),用于在永久在线引擎AOE(IOl)和所述AOG(20)之间建立一个长链接,其中,至少两个应用客户端通过所述长链接分别与所述一个或者多个应用服务器(04,05)通信;在建立所述长链接的过程中,从用户管理服务器(103)获取鉴权信息。 [0154] In specific embodiments, the terminal management module (2011) for between the permanent online engine AOE (IOl) and the AOG (20) to establish a long link, wherein the at least two clients through the application each of said long link and said one or more application servers (04, 05) communicate; during the establishment of the long link, acquiring authentication information from a user management server (103). 具体的,终端管理模块(2011)用于:向所述用户管理服务器(30)发送携带终端身份信息的鉴权信息请求,接收所述用户管理服务器(30)根据终端身份信息和所述用户身份信息的对应关系,返回的用户身份信息。 Specifically, the terminal management module (2011) configured to: send authentication information request carries the terminal identity information to the user management server (30), receiving the user management server (30) according to the terminal identification information and the user identity correspondence between the information returned by the user identity information. 一种例子中,上述终端身份信息为IMSI信息,用户身份信息为手机号码;另一种例子中该终端身份信息为终端设备标识,该用户身份信息为用户名称或者用户标识。 One example of the terminal identity information is IMSI information, phone number of the user identity information; another example of the terminal identity information is terminal device identification, the user identity information is a user name or user ID.

[0155] 同时参考图6,较佳的实施方式中,可选的,永久在线服务网关A0G(20)中的终端管理模块(2011),还可以用于实现终端(10)的管理,例如,管理注册到系统的中的AOE(IOl)的信息,例如MSI摘要、AOE(IOl)的用户代理(UserAgent, UA)信息等,还包括AOE(IOl)上注册的应用信息,如该AOE (101)上目前安装了的应用的标识或其版本。 [0155] Also with reference to FIG. 6, the preferred embodiment, optionally, always online service gateway A0G terminal management module (2011) (20), may also be used to manage the terminal (10), e.g., information management register with the system in AOE (IOl), e.g. MSI summary, AOE (IOl) user agent (UserAgent, UA) information, further comprising the application information registered on AOE (IOl), if the AOE (101 identifying the version of the application thereof) present in the installation. 可选的,终端管理模块(2011)还可以对AOE(IOl)身份进行鉴别,对注册信息进行登记,并储存在系统中。 Alternatively, the terminal management module (2011) may also be of AOE (IOl) authentication, registration of the registration information and stored in the system. 具体的过程可以参考2b,3a,3b等所示的实施方式。 Specific process, reference may 2b, 3a, 3b, etc. illustrated embodiment. 较优的,终端管理模块(2011)还可以管理AOE(IOl)与AOG之间的长链接,例如发送心跳消息,维护长链接状态信息,例如已经建立状态,断开状态等。 Superior, terminal management module (2011) may also manage the long connection between AOE (IOl) and the AOG, e.g. heartbeat message is sent, the long link state information maintenance, for example, has been established and off states, and the like.

[0156] 可选的,永久在线服务网关A0G(20)中的应用管理模块(2012),可以对应用进行管理,例如管理接入到本AOG (20)的所有的应用信息,包括应用归属的应用服务器(或者应用提供商SP)及其信息,对接入的一个或者多个应用服务器提供接入鉴权、使用权限控制等功能。 [0156] Alternatively, the always online service gateway A0G application management module (2012) (20), the application can manage, for example, managing access to the present AOG (20) of all applications, including the application of a home application server (or application provider SP) and the information, providing access authentication for one or more application access servers, use authority control. 较优的实施方式中,针对具体的应用进行伪码的管理,等等。 Superior embodiment, the pseudo-code for managing a specific application, and the like. 具体过程可参考图5b所示的各实施方式。 The specific process may be as shown in each embodiment with reference to FIG. 5b.

[0157] 可选的,永久在线服务网关A0G(20)中的路由管理模块(2013),可以实现路由管理:对于上下行消息,AOG能够正确的路由到对应的网元。 [0157] Alternatively, the always online service gateway A0G route management module (2013) (20), the routing management can be realized: for downlink message, the AOG is possible to correct routing to the corresponding NE.

[0158] 可选的,永久在线服务网关A0G(20)中的缓存管理模块(2014),可以实现缓存管理,具体的,根据应用需要,对应用下发给AOE(IOl)的数据消息,在下发不成功的时候,对消息进行缓存。 [0158] Alternatively, the always online service gateway A0G buffer management module (2014) (20), buffer management can be achieved, in particular, according to application requirements, the application of the distributed AOE (IOl) data message, the next made unsuccessful when the message cache. 具体的,缓存后的消息应进行重试,并在重试成功后向应用返回成功的状态手艮告。 Specifically, the cache message should be retried, and the retry is successful to the application returns a successful status report Gen hand.

[0159] 可选的,AOG(20)中的短信推送模块(2015),可以在特殊情况下向AOE(IOl)发送“唤醒短信”,用于唤醒尚未建立或者已经断开的长链接;将应用服务器发送的下行消息通过前述重新建立的长链接发送给AOE (101)。 [0159] Alternatively, the AOG SMS push module (20) (2015), may be transmitted in special cases to AOE (IOl) "wake-up message", has not been established or has been used to wake up disconnection of the long link; and transmitting a downlink message sent to the application server AOE (101) through the long link reestablished. 具体的过程可以参考图7所示的实施方式。 The specific process may be as shown in the embodiment 7 with reference to FIG.

[0160] 可选的,A0G(20)中的IP推送模块(2016),可以实现IP数据推送的功能(IPPUSH),具体的,在长链接已经断开的情况下,相比于前述短信唤醒长链接的技术方案,还可以采取另外一个方案:即对于应用服务器需要发送的下行的消息,直接建立一个IP数据通道,通过该IP数据通道下发到永久在线引擎AOE (101),通过该AOE (101)发送给应用客户端。 [0160] Alternatively, A0G IP push module (2016) (20), can implement IP data push function (IPPUSH), specifically, in a case where the long link has been disconnected, as compared to the wake-up message long link technical solution, can also take another embodiment: i.e. for downlink message application server needs to be sent directly to the establishment of an IP data channel, sent to a permanent online engine AOE (101) under which the IP data channel, through which AOE (101) to the client application. 较优的,当应用服务器需要发送的下行的消息数据量较大(例如大于设定的阈值)时,直接建立IP数据通道进行下行数据的推送;当应用服务器需要发送的下行的消息数据量较小时(例如小于等于设定的阈值),可以采用短信唤醒的方式唤醒该长链接后,通过该长链接推送该下行的数据。 Superior, when the amount of downlink data message of the application server needs to send a large (e.g., greater than a set threshold value), establishing IP data channels directly push the downlink data; when the amount of downlink data message needs to be sent to the application server than after hours (e.g., less than equal to the set threshold value), a wake-up mode wakeup message may take the long link, the downlink data is pushed through the long link.

[0161] 可选的,当永久在线服务网关A0G(20)与永久在线引擎AOE(IOl)之间采用内部协议,AOG(20)与一个或者多个应用服务器之间采用公开的协议时,永久在线服务网关AOG(20)中的协议转换模块(2017)可以将消息在这两种协议之间进行转换。 When [0161] Alternatively, when the online service gateway between the permanent A0G (20) and the permanent online engine AOE (IOl) using the internal protocol, AOG (20) between one or more application servers using the protocol disclosed, permanent online service gateway AOG protocol conversion module (2017) (20) may convert messages between the two protocols.

[0162] 可选的,A0G(20)中的升级管理模块(2018),可以管理所有永久在线引擎AOE(IOl)的版本,可以触发永久在线引擎的自动升级更新。 [0162] Optionally, A0G upgrade management module (2018) (20), can manage all versions of the always online engine AOE (IOl), and can trigger permanent online update automatically upgraded engines.

[0163] 图11为系统中用户管理服务器(30)的一个实施方式的结构示意图。 Schematic structural diagram of an embodiment of [0163] FIG. 11 is a system user management server (30). 如前文所述,用户管理服务器(30),位于网络侧,与所述永久在线引擎AOE (101)和所述永久在线服务网关A0G(20)通信连接,至少两个应用客户端通过所述长链接分别与所述一个或者多个应用服务器(04,05)通信。 As previously described, the user management server (30), at the network side, and the permanent online service gateway A0G (20) permanently connected to the communication line engine AOE (101), at least two of said length by the application client communication link with each of said one or more application servers (04, 05). 该用户管理服务器(30) —般包括至少一个处理器(302)(例如CPU),至少一个网络接口或者其他通信接口(305),存储器(306),和至少一个通信总线(303),用于实现这些装置之间的连接通信。 The user management server (30) - generally comprises at least one processor (302) (e.g., the CPU), at least one network interface or other communications interface (305), a memory (306), and at least one communication bus (303), for implement communication between these devices is connected. 处理器(302)用于执行存储器中存储的可执行模块,例如计算机程序。 The processor (302) for executing the executable module stored in the memory, such as a computer program. 用户管理服务器(30)可选的包含用户接口(304),包括但不限于显示器,键盘和点击设备(例如,鼠标,轨迹球(trackball),触感板或者触感显示屏。存储器(306)可能包含高速Ram存储器,也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个网络接口(可以是有线或者无线)实现该用户管理服务器(30)与至少一个其他计算机之间的通信连接,可以使用互联网,广域网,本地网,城域网等。 User management server (30) optionally comprising a user interface (304), including but not limited to a display, a keyboard and a pointing device (e.g., a mouse, a trackball (Trackball), touch panel, or the display memory (306) may include Ram-speed memory, and may also include non-volatile memory (non-volatile memory), for example, at least one disk memory via at least one network interface (which may be wired or wireless) implementing the user management server (30) with at least one other communication connection between the computer, can use the Internet, a wide area network, local area network, metropolitan area network.

[0164] 存储器(306)可选的可以包含至少一个位于远离前述CPU的地方的存储装置(例如外接存储装置)。 [0164] The memory (306) may optionally include a storage device (such as an external storage device) located remotely of at least one of the CPU. 在一些实施方式中,存储器(306)存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:[0165] 操作系统(307),用于,包含各种程序,用于实现各种基础业务以及处理基于硬件的任务;以及,下述模块之一或者任一组合: In some embodiments, the memory (306) stores the following elements, executable modules or data structures, or a subset of them, or they set of extensions: [0165] operating system (307), for containing various program for realizing various basic services and hardware-based processing tasks; and, one or any combination of the following modules:

[0166] 路由信息模块(3012),鉴权信息模块(3013)。 [0166] Routing information module (3012), the authentication information module (3013).

[0167] 具体的,路由信息模块(3012),用于向所述AOE(IOl)提供路由信息,以便于根据所述路由信息请求建立所述长链接;鉴权信息模块(3013),用于在所述AOE(IOl)和所述AOG (20)建立长链接的过程中,向所述AOG (20)提供鉴权信息。 [0167] Specifically, the routing information module (3012) for supplying the AOE (IOl) provides routing information in order to establish the long link according to the routing information request; authentication information module (3013) for during the AOE (IOl) and the AOG (20) to establish long link, to provide authentication information to the AOG (20).

[0168] 较优的,可以进一步包括注册管理模块(3011),用于获取并存储终端身份信息和用户身份信息的对应关系,且存储该用户身份信息所归属的A0G(20)的地址;该路由信息模块(3012),具体用于:根据该AOE(IOl)发送的路由信息请求中的终端身份信息,以及注册管理模块获取并存储的该终端身份信息和该用户身份信息的对应关系,向该AOE(IOl)提供该用户身份信息归属的AOG的地址;该鉴权信息模块(3013),具体用于:当该A0G(20)发送鉴权信息请求时,根据该鉴权信息请求中的终端身份信息,以及注册管理模块获取并存储的该终端身份信息和该用户身份信息的对应关系,向该A0G(20)提供该用户身份信息。 [0168] superior, may further include a registration management module (3011) for acquiring and storing the terminal identity information and user identity correspondence information, and stores the user identity information belongs A0G (20) of the address; the routing information module (3012) configured to: acquire a correspondence relationship of the terminal identity information and the user identity information and identity information stored in the terminal according to the routing information request AOE (IOl) in the transmission, and a registration management module, to the AOE (IOl) AOG provide user identity information of the home address; and the authentication information module (3013), specifically configured to: when the A0G (20) sends an authentication information request, based on the authentication information request terminal identity information, and registration management module acquires and stores the correspondence between the terminal identification information and the user identity information, to A0G (20) providing the user identity information. 一种例子中,上述终端身份信息为IMSI信息,用户身份信息为手机号码;另一种例子中该终端身份信息为终端设备标识,该用户身份信息为用户名称或者用户标识。 One example of the terminal identity information is IMSI information, phone number of the user identity information; another example of the terminal identity information is terminal device identification, the user identity information is a user name or user ID.

[0169] 需要说明的是,上述各实施方式中,尤其是提到了不同的模块,如果不是说明了无法配合实施,都可以进行任意的组合,以实现更为有益的效果,不受形式上的限制。 [0169] Incidentally, the above-described embodiment, particularly referred to the different modules, can not be fitted if not described embodiment, can be arbitrarily combined in order to achieve a more beneficial effect, without formal limit. 以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。 It means the above-described embodiments are merely illustrative, as a unit wherein the separate parts may be or may not be physically separate, parts displayed as units may be or may not be physical units, i.e. may be located a place, or they may be distributed to multiple network units. 可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。 You can select some or all of the modules according to actual needs to achieve the object of the solutions of the embodiments. 本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。 Those of ordinary skill in the art in the case without creative labor, i.e., can be understood and implemented.

[0170] 通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。 [0170] By the above described embodiments, those skilled in the art may clearly understand that the embodiments may be implemented by software plus a necessary universal hardware platform, also be implemented by hardware. 基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如R0M/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。 Based on such understanding, the technical solutions of the above or the part contributing to the prior art may be embodied in a software product out of the computer software product may be stored in a computer-readable storage medium, such as a R0M / RAM, magnetic disk, optical disk, etc., some parts of the various method embodiments or embodiment includes a plurality of instruction execution to enable a computer device (may be a personal computer, a server, or network device).

[0171] 以上所述的实施方式,并不构成对该技术方案保护范围的限定。 Embodiment [0171] above, do not limit the scope of protection of the technical solution. 任何在上述实施方式的精神和原则之内所作的修改、等同替换和改进等,均应包含在该技术方案的保护范围之内。 Any modifications within the spirit and principle of the above embodiments, equivalent alterations and modifications all fall within the scope of protection of the technical solution.

Claims (29)

1.一种支持应用客户端永久在线的系统,包括:永久在线引擎AOE(lOl),位于终端(10)中,与所述终端(10)上的至少两个应用客户端通信连接,用于和永久在线服务网关AOG (20)之间建立一个长链接; 永久在线服务网关A0G(20),位于网络侧,用于与所述永久在线引擎AOE(IOl)之间建立该长链接,以及发起心跳消息,以便于维护该长链接;其中,所述至少两个应用客户端通过该长链接与一个或者多个应用服务器(04,05)通信。 An application client always online support system, comprising: a permanent online engine AOE (lOl), located in a terminal (10), at least two applications on a client communication connection (10) and the terminal, for and permanently established between online service gateway AOG (20) a long link; A0G always online service gateway (20), at the network side, for establishing the long link between the always online engine AOE (IOL) and, initiating and heartbeat message, so as to maintain the long link; wherein the at least two client application through the long link with one or more application servers (04, 05) communicate.
2.根据权利要求1的系统,所述AOG(20)进一步用于根据网络情况调整心跳间隔,自动控制心跳参数。 2. The system of claim 1, the AOG (20) further for adjusting the heartbeat interval according to the network, automatic control of heart rate parameters.
3.根据权利要求1或者2的系统, 所述AOE (101)进一步用于根据自己的判断主动地断开该长链接;或者, 所述A0G(20)进一步用于根据自己的判断主动地断开该长链接。 3. The system as claimed in claim 1 or 2, the AOE (101) is further for actively disconnecting the long link according to their own judgment; or the A0G (20) is further determined according to their own initiative off open the long link.
4.根据权利要求3的系统,所述AOE(101)进一步用于在所述长链接断开以后,进入休眠状态。 4. The system of claim 3, wherein said AOE (101) is further configured to disconnect after the long link into hibernation.
5.根据权利要求3或者4任一的系统,所述A0G(20)进一步用于:如果既未收到所述AOE(IOl)发送的断开请求也未主动向所述AOE (101)发送断开请求,则根据心跳时间间隔,规律的向所述AOE(IOl)发送心跳消息,以便于保持所述长链接。 3 or 5. The system of any one of claim 4, said A0G (20) is further configured to: disconnect request the AOE (IOl) transmitted if neither received nor transmitted to the active AOE (101) disconnect request, in accordance with the heartbeat interval, the regularity of the heartbeat message AOE (IOl) sends, in order to maintain the long link.
6.根据权利要求3的系统, 其中所述AOE (101)根据自己的判断主动地断开该长链接具体包括: 用于当判断出收到心跳请求后超过一定的时间阈值的时候还未收到其他心跳请求,则主动向所述A0G(20)发送断开请求;或者,当检测到其管理的所有应用客户端在一定的时间阈值内未运行时,则主动向所述A0G(20)发起断开请求;或者,当检测到所述终端(10)上的电池电量低于一定的阈值时,则主动向所述A0G(20)发送断开请求;所述断开请求用于断开该长链接; 其中所述AOG (20)根据自己的判断主动地断开该长链接具体包括: 当判断出超过一定时间阈值没有收到从所述AOE(IOl)发送的数据流,则主动发起断开请求;或者,当判断出超过一定的次数阈值发送心跳请求后,但没有得到所述AOE(IOl)的响应时,主动发起断开请求;所述断开请求用于断开所述长链接。 6. The system according to claim 3, wherein said AOE (101) according to their own judgment actively disconnect the long link comprises: means for determining when the request is received heartbeat over a certain time threshold has not been received when heartbeat request to the other, the active (20) to transmit the disconnection request A0G; or, when detecting all of its management application client is not running within a certain time threshold, then the initiative to A0G (20) initiating disconnection request; alternatively, when battery power is detected on the terminal (10) is below a certain threshold, the active (20) transmits the disconnect request to the A0G; disconnection request for disconnecting the the long link; wherein the AOG (20) according to their own judgment actively disconnect the long link comprises: when it is determined that the threshold exceeds the predetermined time does not receive the data stream from the AOE (IOl) sent, the initiate disconnection request; or, when it is determined that a request to send a heartbeat exceeds a certain threshold number of times, but not in response to the AOE (IOl), the request to initiate disconnection; disconnecting the disconnect request for the long link.
7.根据权利要求1-6任一的系统,所述AOG(20)进一步用于将已经断开所述长链接的AOE(IOl)在所述A0G(20)上记录的是否在线状态修改为离线,并且构造下线通知消息发送给所述应用服务器。 The system of one of claims 1-6, the AOG (20) further has means for disconnecting said long link AOE (IOl) whether to modify the online A0G recorded on (20) offline, and offline configuration notification message to the application server.
8.根据权利要求1-7任一的系统, 所述A0G(20)进一步用于向AOE(IOl)发送唤醒短信,用于唤醒尚未建立或者已经断开的长链接; 所述AOE (101)进一步用于监听并拦截到所述唤醒短信后,解析所述唤醒短信,并触发建立长链接。 8. The system of one of claims 1-7, said A0G (20) is further configured to send a wakeup message to AOE (IOl), has not been established or used to wake the long link has been disconnected; the AOE (101) after further used to monitor and intercept the wake-up message, parsing the wake-up message, and trigger the establishment of long link.
9.一种支持应用客户端永久在线的通信方法,在位于终端(10)中的永久在线引擎AOE(IOl)和位于网络侧的永久在线服务网关A0G(20)之间建立一个长链接,其中,位于终端(10)中的至少两个应用客户端通过所述长链接分别与一个或者多个应用服务器(04,05)通信;该方法包括:所述永久在线服务网关AOG(20)发起心跳消息,以便于维护该长链接。 A permanent online client application supports the communication method of establishing a link between length of the terminal is located (10) is always online engine AOE (IOl) and the network side always online service gateway A0G (20), wherein at least two application client located in a terminal (10) through said long link respectively communicate with one or more application servers (04, 05); the method comprising: a permanent online service gateway AOG (20) initiating a heartbeat message in order to maintain the long link.
10.根据权利要求9的方法,进一步包括: 所述A0G(20)根据网络情况调整心跳间隔,自动控制心跳参数。 10. The method of claim 9, further comprising: said A0G (20) heartbeat interval adjusted according to the network, automatic control of heart rate parameters.
11.根据权利要求9或者10的方法,进一步包括所述AOE (101)根据自己的判断主动地断开该长链接;或者, 所述A0G(20)根据自己的判断主动地断开该长链接。 11. The method according to claim 9 or claim 10, further comprising the AOE (101) to actively disconnect the long link according to their own judgment; or the A0G (20) actively breaks the long link according to their own judgment .
12.根据权利要求11的方法,进一步包括,所述AOE(IOl)在所述长链接断开以后,进入休眠状态。 12. The method of claim 11, further comprising the AOE (IOl) after disconnection of the long link into hibernation.
13.根据权利要求11的方法, 其中所述AOE (101)根据自己的判断主动地断开该长链接具体包括: 当所述永久在线引擎AOE(101)判断出收到心跳请求后超过一定的时间阈值的时候还未收到其他心跳请求,则主动向所述A0G(20)发送断开请求;或者,当所述永久在线引擎AOE(IOl)检测到其管理的所有应用客户端在一定的时间阈值内未运行时,则主动向所述AOG(20)发起断开请求;或者,当所述永久在线引擎AOE(101)检测到所述终端(10)上的电池电量低于一定的阈值时,则主动向所述A0G(20)发送断开请求;所述断开请求用于断开所述长链接; 其中所述AOG (20)根据自己的判断主动地断开所述长链接包括: 所述A0G(20)进一步用于当判断出超过一定时间阈值没有收到从所述AOE(IOl)发送的数据流,则主动发起断开请求;当判断出超过一定的次数阈值发送心跳请求后,但没有得到AOE(IOl)的响应 13. The method of claim 11, wherein said AOE (101) according to their own judgment actively disconnect the long link comprises: when the always online engine AOE (101) determines that the request after receiving the heartbeat exceeds a certain time threshold when a heartbeat has not received other request to the active disconnect request (20) transmitting said A0G; or, when the always online engine AOE (IOl) detects all of its management application client terminal at a certain not running within the time threshold, then initiate the disconnection request to the AOG (20); or, on the battery when the engine always online AOE (101) detects that said terminal (10) is below a certain threshold when, the active (20) to transmit the disconnection request A0G; disconnection request for the disconnection of the long link; wherein the AOG (20) actively off according to the determination of their long link comprises : the A0G (20) is further for, when it is determined that the threshold exceeds the predetermined time does not receive the data stream from the AOE (IOl) transmitted, then initiate the disconnection request; when it is judged that the transmission exceeds a certain threshold number of requests heartbeat after, but I did not get a response AOE (IOl) of 时,主动发起断开请求;所述断开请求用于断开所述长链接。 When the request to initiate disconnection; disconnecting the disconnect request for the long link.
14.根据权利要求11-13任一的方法,进一步包括:所述A0G(20)将已经断开所述长链接的所述AOE(IOl)在所述A0G(20)上记录的是否在线状态修改为离线,并且构造下线通知消息发送给所述应用服务器。 14. The method according to any one claim 11-13, further comprising: said A0G (20) which has been disconnected the AOE the long link (IOL) is online state of the recording on said A0G (20) modified offline, and offline configuration notification message to the application server.
15.根据权利要求9-14任一的方法,进一步包括: 所述A0G(20)向所述AOE(IOl)发送唤醒短信,用于唤醒尚未建立或者已经断开的长链接; 所述AOE (101)监听并拦截到所述唤醒短信后,解析所述唤醒短信,并触发建立长链接。 15. The method according to any one of claim 9-14, further comprising: said A0G (20) to the wake-up message AOE (IOl) transmitting, to wake up the long link has not been established or has been disconnected; the AOE ( after 101) to monitor and intercept the wake-up message, parsing the wake-up message, and to trigger the establishment of long link.
16.一种支持应用客户端永久在线的终端(10),包括:永久在线引擎AOE (101)和至少两个应用客户端; 所述永久在线引擎AOE (101),与所述终端(10)上的所述至少两个应用客户端通信连接,用于和位于网络侧的永久在线服务网关A0G(20)之间建立一个长链接;接收所述永久在线服务网关AOG (20)发起的心跳消息,以便于维护所述长链接; 所述至少两个应用客户端用于通过所述长链接与网络侧的一个或者多个应用服务器(04,05)通信。 16. A client application supports a permanent line terminal (10), comprising: a permanent online engine AOE (101) and at least two client applications; the always online engine AOE (101), said terminal (10) establishing a link length of said at least two applications on client communication connection, and the network side for permanent A0G between online service gateway (20); receiving said permanent online service gateway AOG (20) initiating a heartbeat message in order to maintain the long link; the at least two client applications to communicate via one or more application servers to the network side and the long link (04, 05).
17.根据权利要求16的终端(10), 所述AOE (101)进一步用于根据自己的判断主动地断开所述长链接;或者, 所述AOE(IOl)包括链接管理模块(1011)用于收到A0G(20)主动发送的断开请求,则断开所述长链接。 17. The terminal according to claim 16 (10), said AOE (101) is further determined according to their own initiative disconnecting said long link; or the AOE (IOl) comprises a link management module (1011) with receipt A0G (20) sends a disconnect request, the long link is disconnected.
18.根据权利要求17的终端(10),所述AOE(IOl)进一步用于在所述长链接断开以后,进入休眠状态。 18. The terminal (10) as claimed in claim 17, said AOE (IOl) for further turned off after the long link into hibernation.
19.根据权利要求17的终端(10), 所述永久在线引擎AOE (101)具体包括: 心跳时间模块(1012),用于当判断出收到心跳请求后超过一定的时间阈值的时候还未收到其他心跳请求,则主动向AOG(20)发送断开请求;或者, 应用管理模块(1012),用于当检测到其管理的所有应用客户端在一定的时间阈值内未运行时,则主动向AOG(20)发起断开请求;或者, 电池监控模块(1014),用于当检测到终端(01)上的电池电量低于一定的阈值时,则主动向AOG (20)发送断开请求; 所述断开请求用于断开所述长链接。 19. The terminal (10) according to claim 17, said permanent online engine AOE (101) comprises: a heartbeat time module (1012) for, when more than a certain time threshold time after receipt of a heartbeat is determined that a request has not been other heartbeat received request, sends to the OFF AOG (20) request; alternatively, the application management module (1012) for, when it is detected all the management client application is not running within a certain time threshold, then initiates the AOG (20) disconnect request; or a battery monitoring module (1014) for, when the detected battery terminal (01) is below a certain threshold, sends the disconnection to AOG (20) request; the request for disconnection of the long link disconnection.
20.根据权利要求16-19任一的终端(10),所述AOE(IOl)进一步包括短信处理模块(1013)和链接管理模块(1011),所述短信处理模块(1013)用于监听并拦截到唤醒短信后,解析所述唤醒短信,并触发所述AOE (101)中的所述链接管理模块(1011)建立长链接;所述链接管理模块(1011)用于根据触发情况建立长链接。 20. The one terminal (10) according to any of claims 16-19, said AOE (IOl) further comprises a message processing module (1013) and the link management module (1011), the short message processing module (1013) for monitoring and after intercepting the wake-up message, parsing the wake-up message, and the trigger in AOE (101) to the link management module (1011) to establish the long link; the link management module (1011) for establishing a long link according triggering .
21.一种支持应用客户端永久在线的永久在线服务网关A0G(20),包括: 终端管理模块(2011),用于在位于终端(10)中的永久在线引擎AOE(IOl)和所述AOG(20)之间建立一个长链接,以及发起心跳消息,以便于维护所述长链接; 其中,所述终端(10)上的至少两个应用客户端通过所述长链接分别与一个或者多个应用服务器(04,05)通信。 21. A permanent online client application supports a permanent online service gateway A0G (20), comprising: a terminal management module (2011) for the terminal is located (10) is always online engine AOE (IOl) and the AOG establishing (20) a long link, and initiating a heartbeat message, so as to maintain the long link; wherein said terminal (10) of the at least two client applications by each of the long link with one or more application server (04, 05) communicate.
22.根据权利要求21的A0G(20),包括:调整模块,用于根据网络情况调整心跳间隔,自动控制心跳参数。 22. A0G 21 according to claim (20), comprising: adjusting means for adjusting the heartbeat interval according to the network, automatic control of heart rate parameters.
23.根据权利要求21或者22的AOG (20),断开模块,用于根据自己的判断主动地断开该长链接。 23. The AOG (20) 21 or claim 22, disconnect module for actively disconnecting the long link according to their own judgment.
24.根据权利要求21-23任一的AOG (20),终端管理模块(2011)进一步用于:如果既未收到AOE(IOl)发送的断开请求也未主动向AOE(IOl)发送断开请求,则根据心跳时间间隔,规律的向AOE(IOl)发送心跳消息,以便于保持该长链接。 24. A according to any one of 21-23 AOG (20) as claimed in claim, the terminal management module (2011) is further configured to: if neither received disconnection request AOE (IOl) transmitted nor sends off to AOE (IOl) open request, according to the heartbeat interval, the heartbeat message is sent to the law of AOE (IOl), in order to maintain the long link.
25.根据权利要求23的AOG (20), 其中所述断开模块具体用于:当判断出超过一定时间阈值没有收到从所述AOE(IOl)发送的数据流,则主动发起断开请求;或者,当判断出超过一定的次数阈值发送心跳请求后,但没有得到AOE(IOl)的响应时,主动发起断开请求;所述断开请求用于断开该长链接。 25. AOG (20) 23 claim, wherein said disconnect module configured to: when it is determined over a certain time threshold has not received data stream from the AOE (IOl) transmitted, then initiate the disconnection request ; or, when it is determined that a request to send a heartbeat exceeds a certain threshold number of times, but no responses AOE (IOl), the request to initiate disconnection; disconnecting the request for opening the long link.
26.根据权利要求24的AOG(20),所述终端管理模块(2011)进一步用于将已经断开该长链接的所述AOE(IOl)在所述A0G(20)上记录的是否在线状态修改为离线,并且构造下线通知消息发送给所述应用服务器。 26. The AOG (20) 24 claim, the terminal management module (2011) is further for determining whether the line has been disconnected state of the long link the AOE (IOl) recorded on the A0G (20) modified offline, and offline configuration notification message to the application server.
27.根据权利要求21-26任一的AOG(20),所述AOG(20)进一步包括短信推送模块(2015),用于向所述AOE(IOl)发送唤醒短信,用于唤醒尚未建立或者已经断开的长链接。 27. 21-26 any one AOG (20) of claim AOG (20) further including SMS push module (2015) for the short message to the wake AOE (IOl) transmission, or a wake-up has not been established the long link has been disconnected.
28.根据权利要求21的永久在线服务网关AOG (20),进一步包括: 应用管理模块(2012),用于查询所述AOE(IOl)上注册的永久在线的应用客户端信息,如果所述应用客户端和一个或者多个应用服务器之间需要使用伪码进行交互,则将所述A0G(20)上存储的所述AOE(IOl)所在终端的手机号码转换为伪码,所述伪码用于在AOG(20)和应用服务器之间作为用户身份信息进行传递。 28. The permanent online service gateway AOG 21 (20), as claimed in claim further comprising: the application management module (2012) for querying the permanent online client application information registered on the AOE (IOl), if the application required between the client and one or more application servers interact pseudo-code, stored on the AOE then the A0G (20) (IOl) conversion of the terminal with the mobile phone number for the pseudo code, with the pseudo-code in between the AOG (20) and the application server is transmitted as user identity information.
29.根据权利要求28的AOG (20), 所述应用管理模块(2012)包括: 第一模块,用于根据用所述手机号码和随机数计算出与所述手机号码对应的伪码,将所述伪码发送给所述应用服务器,或者, 第二模块,用于根据下述方法生成伪码:伪码=HASH(MSISDN、Time、APPID、Random),其中:HASH为哈希算法,MSISDN为用户手机号,Time为时间戳,APPID为应用标识;Random为随机数。 29. AOG (20) 28 claim, the application management module (2012) comprising: a first module for a mobile phone according to the calculated number with the random number and the pseudo code to the phone number corresponding to the the pseudo-code is sent to the application server, or a second module for generating a pseudo-code according to the following method: pseudocode = hASH (MSISDN, Time, APPID, Random), wherein: the hASH hash algorithm, MSISDN for the user's mobile phone number, Time timestamp, APPID for the application identifier; random is a random number.
CN 201310072940 2011-11-15 2011-11-15 For supporting an application client being always online method, system and apparatus CN103312766B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN 201310072940 CN103312766B (en) 2011-11-15 2011-11-15 For supporting an application client being always online method, system and apparatus
CN201110360998.22011.11.15 2011-11-15

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310072940 CN103312766B (en) 2011-11-15 2011-11-15 For supporting an application client being always online method, system and apparatus

Publications (2)

Publication Number Publication Date
CN103312766A true true CN103312766A (en) 2013-09-18
CN103312766B CN103312766B (en) 2016-06-29

Family

ID=49137544

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310072940 CN103312766B (en) 2011-11-15 2011-11-15 For supporting an application client being always online method, system and apparatus

Country Status (1)

Country Link
CN (1) CN103312766B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092714A (en) * 2013-09-25 2014-10-08 腾讯科技(深圳)有限公司 Stream media file playing method and device
CN104753774A (en) * 2013-12-26 2015-07-01 中国移动通信集团公司 Distributed enterprise integrated access gateway
CN105163339A (en) * 2015-08-28 2015-12-16 上海斐讯数据通信技术有限公司 Network access device buffered asymmetric long connection method and system
CN105898844A (en) * 2015-01-26 2016-08-24 中国移动通信集团湖南有限公司 Method and device for controlling terminal link
CN106102141A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 Processing method and apparatus based on data packet

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357684A (en) * 2016-10-26 2017-01-25 北京奇虎科技有限公司 Login method and device of game application

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6212175B1 (en) * 1997-04-22 2001-04-03 Telxon Corporation Method to sustain TCP connection
US20050228848A1 (en) * 2004-03-22 2005-10-13 Thurston Stacy D Method and system for operating a peer network
CN1972252A (en) * 2006-10-13 2007-05-30 蒋晓海 A method for maintaining communication connection in mobile instant communication
CN101360125A (en) * 2008-09-09 2009-02-04 深圳华为通信技术有限公司 Message pushing method and system based on packet domain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6212175B1 (en) * 1997-04-22 2001-04-03 Telxon Corporation Method to sustain TCP connection
US20050228848A1 (en) * 2004-03-22 2005-10-13 Thurston Stacy D Method and system for operating a peer network
CN1972252A (en) * 2006-10-13 2007-05-30 蒋晓海 A method for maintaining communication connection in mobile instant communication
CN101360125A (en) * 2008-09-09 2009-02-04 深圳华为通信技术有限公司 Message pushing method and system based on packet domain

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092714A (en) * 2013-09-25 2014-10-08 腾讯科技(深圳)有限公司 Stream media file playing method and device
CN104092714B (en) * 2013-09-25 2016-02-17 腾讯科技(深圳)有限公司 Method and apparatus for playing streaming media file
CN104753774A (en) * 2013-12-26 2015-07-01 中国移动通信集团公司 Distributed enterprise integrated access gateway
CN104753774B (en) * 2013-12-26 2018-07-24 中国移动通信集团公司 A distributed enterprise integrated access gateway
CN105898844A (en) * 2015-01-26 2016-08-24 中国移动通信集团湖南有限公司 Method and device for controlling terminal link
CN105163339A (en) * 2015-08-28 2015-12-16 上海斐讯数据通信技术有限公司 Network access device buffered asymmetric long connection method and system
CN106102141A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 Processing method and apparatus based on data packet
CN106102141B (en) * 2016-05-31 2017-10-17 广东欧珀移动通信有限公司 A processing method and apparatus based on the packet

Also Published As

Publication number Publication date Type
CN103312766B (en) 2016-06-29 grant

Similar Documents

Publication Publication Date Title
US20100077023A1 (en) Method and Apparatus for Establishing a Session
US20080059582A1 (en) Mobile network optimized method for keeping an application IP connection always on
US20100122110A1 (en) Method and apparatus for managing advertising-enabled applications
US20130111572A1 (en) Ip push platform and connection protocol in a push notification framework
US20060252435A1 (en) Enabling application wakeup on a mobile device with a hybrid client
US20060075269A1 (en) Distributed link-layer wake-up agent system, method, and device for universal plug and play function with low power proxy
US20090003252A1 (en) System and method for conserving power for a wireless device while maintaining a connection to a network
US20100094985A1 (en) Http push to simulate server-initiated sessions
US20110256891A1 (en) Power savings through cooperative operation of multiradio devices
US20120117401A1 (en) Maintaining connectivity during low power operation
US20110255444A1 (en) Power savings through cooperative operation of multiradio devices
US20130190032A1 (en) Proxy-Based Push Service
US20040068666A1 (en) Always-on virtual private network access
US20050009537A1 (en) Method and apparatus for facilitating wireless presence-based services
US20100099421A1 (en) Efficient messaging over internet protocol
US20090271517A1 (en) Method and apparatus for wireless device reconnection handling
US20130117382A1 (en) Push messaging platform with high scalability and high availability
US20140206348A1 (en) Network assisted device-to-device discovery for peer-to-peer applications
US7269629B2 (en) Method and apparatus for distributing notification among cooperating devices and device channels
US20090252072A1 (en) Method and Apparatus for Maintaining Long-Lived Connections Between a Mobile Client and a Server
US20090135751A1 (en) Low Power Operation of Networked Devices
US20110044307A1 (en) Deregistration with Context Retention for Inter-RAT Operations
US20120020393A1 (en) User device dormancy
WO2015006636A1 (en) Neighbor discovery to support sleepy nodes
US20110102157A1 (en) Wake-Up For Wireless Devices Based On Requested Data

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model