CN103312766B - A kind of method, system and device supporting applications client forever online - Google Patents

A kind of method, system and device supporting applications client forever online Download PDF

Info

Publication number
CN103312766B
CN103312766B CN201310072940.7A CN201310072940A CN103312766B CN 103312766 B CN103312766 B CN 103312766B CN 201310072940 A CN201310072940 A CN 201310072940A CN 103312766 B CN103312766 B CN 103312766B
Authority
CN
China
Prior art keywords
aog
aoe
chain
long
request
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201310072940.7A
Other languages
Chinese (zh)
Other versions
CN103312766A (en
Inventor
仲其涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310072940.7A priority Critical patent/CN103312766B/en
Publication of CN103312766A publication Critical patent/CN103312766A/en
Application granted granted Critical
Publication of CN103312766B publication Critical patent/CN103312766B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

A kind of method supporting applications client forever online, the method includes: permanent set up a long-chain between engine AOE (101) and the permanent online service gateway A OG (20) being positioned at network side what be arranged in terminal (10) online and connects, wherein, at least two applications client is connect by described long-chain and communicates with one or more application server (04,05) respectively;In setting up the process that described long-chain connects, the subscriber management server (30) being positioned at network side provides routing iinformation to described AOE (101), provides authentication information to described AOG (20).

Description

A kind of method, system and device supporting applications client forever online
Technical field
The present invention relates to the communications field, especially a kind of method supporting applications client forever online, system and device.
Background technology
Intelligent terminal has the application of a large amount of " forever online " class, the PULL mode that such application is actively initiated by terminal periodically actively establishes the link with server, more new state, thus a large amount of repetition, short and small PULL message can be produced, permanent application on site such as such as instant message IM, social networks SNS, VOIP etc. needs client frequently to send " keepalive " messaging service presence;Again such as, IM, SNS application needs client frequently to server Pull information updating friend state;PushMail needs periodic synchronous, refreshing;The iAD advertisement pushing of iphone4, location tracking service is required for expending substantial amounts of communication resource etc..
Permanent online in order to maintain application, one or more application server at least needs a permanent link between maintenance and user terminal.Link between terminal and one or more application server is unstable, for instance have NAT, fire wall in the middle of link, and the IP address of user is likely to change, it is therefore desirable to maintains link by heart beating frequently, and obtains User Status (presenting information).
Generally, when terminal carries out normal data communication, the up-downgoing that network is used for data to the physical channel that terminal distribution is special is wirelessly transferred, and this state is referred to as DCH (DedicatedCHannel dedicated channel) state.When not having data to transmit, can making terminal processes Idle state, under Idle state, all of Access Layer that is linked at is all close, and terminal only monitors paging information.Thus under DCH and Idle state, terminal is very big for the consumption difference of electricity.Intelligent terminal is based on the consideration of power saving, no data transmission in general 6~8 seconds, and mobile phone carries out " quick dormancy " to be forced to be switched to Idle state.And " forever online " application it is frequently necessary to carry out heart beating with service end and couples.Thus causing the terminal frequent switching between Idle state and DCH state, changing wireless side from Idle state to DCH activated state needs 32 signalings to recover link, and the signaling of wireless side is caused great impact by the frequently switching between this state.
Summary of the invention
An embodiment of the invention, provide the method supporting that applications client is forever online, permanent set up a long-chain between engine AOE (101) and the permanent online service gateway A OG (20) being positioned at network side what be arranged in terminal (10) online and connect, wherein, at least two applications client is connect by this long-chain and communicates with one or more application server (04,05) respectively;The subscriber management server (30) being positioned at network side provides routing iinformation to this AOE (101), and wherein, this AOE (101) sets up this long-chain according to this routing information request and connects;Subscriber management server (30) is further used in setting up the process that this long-chain connects, and provides authentication information to this AOG (20).
Preferably, this subscriber management server (30) obtains and stores the corresponding relation of terminal identity information and subscriber identity information, and stores the address of the AOG (20) that this subscriber identity information belongs to;When this AOE (101) sends carried terminal identity information routing information request, this subscriber management server (30) corresponding relation according to this terminal identity information He this subscriber identity information, and, the address of the AOG (20) that this subscriber identity information belongs to, provides the address of AOG that this subscriber identity information belongs to this AOE (101);When this AOG (20) sends authentication information request, this subscriber management server (30) is according to the terminal identity information in the request of this authentication information, and, the corresponding relation of this terminal identity information and this subscriber identity information, provides this subscriber identity information to this AOG (20).
Preferably, this terminal identity information is IMSI information, and this subscriber identity information is phone number.
Preferably, this subscriber management server (30) being positioned at network side provides routing iinformation to this AOE (101), and, provide the process of authentication information to specifically include to this AOG (20):
This AOE (101) is when this permanent online engine AOE (101) starts or when detecting that the ISMI information in SIM is different from the information that last time registers, automatically sending reporting message to subscriber management server (30), this reporting message carries this IMSI information and this phone number;This subscriber management server (30) obtains this IMSI information and this phone number according to this reporting message received, and stores the corresponding relation of this phone number and this IMSI information;This AOE (101) sends routing information request to this subscriber management server (30), carries this IMSI information in this routing information request;This subscriber management server (30) finds the phone number of correspondence according to the IMSI information in the routing information request received, further according to the AOG address of the phone number ownership prestored, return to the address of AOG (20) of this phone number ownership to this AOE (101);The AOG (20) that this permanent online engine AOE (101) belongs to this phone number initiates registration request, and this registration request carries IMSI information;After this AOG (20) receives the registration request of this AOE (101), judge whether the IMSI information wherein comprised is registered in this AOG (20), then sending authentication information request to subscriber management server (30) without registration, the IMSI information in this registration request is carried in the request of this authentication information;Subscriber management server (30) receives the corresponding relation after this authentication information is asked according to this phone number stored and this IMSI information, returns this phone number that this IMSI information is corresponding;When this AOG (20) judges that this phone number belongs to the service area of this AOG (20), this AOG (20) stores this phone number, and returns registration response to AOE (101).
Preferably, this reporting message is short message, and this reporting message carries IMSI information and phone number specifically includes: the content of this short message includes this IMSI information, and the sender of this short message is this phone number.
Preferably, this terminal identity information is Terminal Equipment Identifier, and this subscriber identity information is user's name or ID.
Another embodiment of the invention, it is provided that a kind of system supporting applications client forever online, this system includes: permanent online engine AOE (101), is arranged in terminal (10), communicates to connect with at least two applications client;Permanent online service gateway A OG (20), is positioned at network side, communicates to connect with one or more application server (04,05) being positioned at network side;This permanent online engine AOE (101) and this permanent online service gateway A OG (20), connect for setting up a long-chain, wherein, this at least two applications client is connect by this long-chain and communicates with this one or more application server (04,05) respectively;Subscriber management server (30), it is positioned at network side, with this permanent online engine AOE (101) and the communication connection of this permanent online service gateway A OG (20), for providing routing iinformation to this AOE (101), connect so that this AOE (101) sets up this long-chain according to this routing information request, set up in the process that long-chain connects at this AOE (101) and this AOG (20), provide authentication information to this AOG (20) further.
Preferably, this subscriber management server (30), specifically for: this acquisition the corresponding relation storing terminal identity information and subscriber identity information, and store the address of the AOG (20) that this subscriber identity information belongs to;When this AOE (101) sends carried terminal identity information routing information request, corresponding relation according to this terminal identity information He this subscriber identity information, and, the address of the AOG (20) that this subscriber identity information belongs to, provides the address of AOG that this subscriber identity information belongs to this AOE (101);When this AOG (20) sends authentication information request, the corresponding relation according to the terminal identity information in the request of this authentication information and this terminal identity information and this subscriber identity information, provide this subscriber identity information to this AOG (20).
Preferably, this terminal identity information is IMSI information, and this subscriber identity information is phone number;This AOE (101) specifically for: when this permanent online engine AOE (101) starts or when detecting that the ISMI information in SIM is different from the information that last time registers, automatically sending reporting message to subscriber management server (30), this reporting message carries this IMSI information and this phone number;Send routing information request to this subscriber management server (30), this routing information request carries this IMSI information;AOG (20) to this phone number ownership received initiates registration request, and this registration request carries IMSI information.This subscriber management server (30) specifically for: obtain this IMSI information and this phone number according to this reporting message received, store the corresponding relation of this phone number and this IMSI information;Find the phone number of correspondence according to the IMSI information in the routing information request received, further according to the AOG address of the phone number ownership prestored, return to the address of AOG (20) of this phone number ownership to this AOE (101);Receive the corresponding relation according to this phone number stored and this IMSI information after this authentication information is asked, return this phone number that this IMSI information is corresponding.This AOG (20) specifically for: after receiving the registration request of this AOE (101), judge whether the IMSI information wherein comprised is registered in this AOG (20), then authentication information request is sent to subscriber management server (30) without registration, the IMSI information in this registration request is carried in the request of this authentication information, receives this phone number that this IMSI information returned is corresponding;When judging that this phone number belongs to the service area of this AOG (20), this AOG (20) stores this phone number, and returns registration response to AOE (101).
In other implementations, the permanent online engine AOE (101) that can perform each correlation step of preceding method, permanent online service gateway A OG (20), and subscriber management server (30) are provided accordingly.
In the system that the support applications client of another embodiment of the present invention is forever online, permanent online engine AOE (101), it is arranged in terminal (10), communicate to connect with at least two applications client, be used for and between permanent online service gateway A OG (20), set up a long-chain connecing;Permanent online service gateway A OG (20), is positioned at network side, is used for setting up this long-chain between permanent online engine AOE (101) and connects, and initiate heartbeat message, in order to safeguards that this long-chain connects;Wherein, this at least two applications client is connect by this long-chain and communicates with this one or more application server (04,05).
Preferably, AOE (101) and AOG (20) each can disconnect this long-chain on one's own initiative according to the judgement of oneself respectively and connects.
Preferably, this permanent online engine AOE (101) is further used in time exceeding regular hour threshold value after judging to receive heartbeat request also do not receive other heartbeat request, then actively send to disconnect to AOG (20) and ask;Or, when all applications client off-duty in regular hour threshold value of its management being detected, then actively initiate to disconnect request to AOG (20);Or, when the battery electric quantity detected in terminal 01 is lower than certain threshold value, then actively sending, to AOG (20), the request of disconnection, this disconnection request is used for disconnecting this long-chain and connects.
Preferably, AOG (20) is further used for when judging that exceeding certain time threshold value does not receive from this AOE101 data stream sent, then actively initiate to disconnect request;After judging that exceeding certain frequency threshold value sends heartbeat request, but when not obtaining the response of AOE101, actively initiating to disconnect request, this disconnection request is used for disconnecting this long-chain and connects.
Preferably, AOG (20) is further used for the AOE101 that connect by this long-chain already off and is revised as off-line at the whether presence of the upper record of this AOG (20), and constructs the notification message that rolls off the production line and issue application server and be sent to this application server.
Preferably, AOG (20) is further used for sending to AOE (101) under special circumstances waking note up, connects for waking not yet foundation or already off long-chain up.
Preferably, AOE (101) is further used for monitoring and intercept after this wakes note up, resolves this and wakes note up, and triggers and set up long-chain and connect.
In the system that the support applications client of another embodiment of the present invention is forever online, permanent online engine AOE (101), it is arranged in terminal (10), communicate to connect with at least two applications client, be used for and between permanent online service gateway A OG (20), set up a long-chain connecing;Wherein, this at least two applications client is connect by this long-chain and communicates with one or more application server 04;AOE (101) is further used for when this long-chain connects and normally (has successfully set up), applications client in terminal (10) has logged out, but when have received AOG (20) data being sent to this applications client forwarded, this applications client having logged out of pull-up.
In the system that the support applications client of another embodiment of the present invention is forever online, permanent online engine AOE (101), it is arranged in terminal (10), communicate to connect with at least two applications client, be used for and between permanent online service gateway A OG (20), set up a long-chain connecing;Wherein, this at least two applications client is connect by this long-chain and communicates with one or more application server 04;AOE (101) is further used for when applications client has mass data to need mutual with in this application server, it is provided that independent connection is mutual with this application server, and long-chain originally connects can be mainly used to transmit and controls the data that stream is relevant.
Preferably, when transmission data reach threshold value time, it is necessary to set up special IP and act on behalf of passage, this passage transmit the data of this transmission specially, general, these data be to provide in the process of application produce data stream.
Preferably, can actively close this IP when data transmission terminates and act on behalf of passage.
Preferably, IP is not actively closed for applications client or application server and acts on behalf of passage, AOE (101) can set that timeout mechanism, and after no data reaches threshold value (such as 60s) alternately, AOE (101) actively disconnects.
In the other embodiment of the present invention, it is provided that the corresponding method that said system performs, and corresponding AOE (101), terminal (10), and AOG (20).
By above-mentioned different embodiment, provide the system that the support applications client of a saving communication resource is forever online, method and apparatus from different sides.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of an embodiment of the present invention applied environment;
Fig. 2 a is the system architecture diagram of an embodiment comprising subscriber management server;
Fig. 2 b is the method flow diagram setting up the embodiment that long-chain connects in a system comprising subscriber management server;
Fig. 3 a be one for the method flow diagram setting up the embodiment that long-chain connects of operators communication system;
Fig. 3 b is the method flow diagram of a schematic flow sheet embodiment updating applications client;
Fig. 4 a is a system architecture diagram connecing the embodiment that heart beating is safeguarded about long-chain;
Fig. 4 b is the method flow diagram of an embodiment connecing heart beating maintaining method about long-chain;
Fig. 5 a is a method flow diagram connecing the embodiment that heart beating is safeguarded about long-chain described from AOE (101) angle;
Fig. 5 b is a method flow diagram connecing the embodiment that heart beating is safeguarded about long-chain described from AOG (20) angle;
Fig. 6 is a system architecture diagram from the embodiment of the function containing extension;
Fig. 7 be one about the method flow diagram waking the embodiment that long-chain connects up;
Fig. 8 is a method flow diagram about the embodiment waking applications client up;
Fig. 9 is the structural representation of the embodiment of a terminal;
Figure 10 is the structural representation of the embodiment of an AOG (20);
Figure 11 is the structural representation of an embodiment of subscriber management server (30) in system.
Detailed description of the invention
In order to each invention embodiment is clear, each terminological interpretation being likely to use is as follows:
AOG:AOG (AlwaysOnlineGateway), always online gateway, by with the coordinating of permanent online engine, it is possible to provide general PUSH passage to SP, it is allowed to SP services side and finds terminal whenever and wherever possible.
AOE (101): AOE (101) (AlwaysOnlineEngine), permanent online engine, it is the middleware being deployed in end side, converges the always online demand with agent client applications client.
AOI:AOI (AlwaysOnlineInfrastructure), always online facility, including AOE (101), AOG or the set farther including each network elements such as subscriber management server.
Being illustrated in figure 1 the schematic diagram of an embodiment of the present invention applied environment system of the present invention, this system comprises multiple communication equipment, is intercomed mutually by wired or cordless communication network.These communication networks include, but are not limited to mobile communications network (mobiletelephonenetwork), wireless local area network (wirelessLocalAreaNetwork (LAN)), blueteeth network (Bluetoothpersonalareanetwork), Ethernet (EthernetLAN), token ring local area network (atokenringLAN), wide area network (awideareanetwork), the Internet (theInternet) etc..
In system shown in Fig. 1, terminal (10) can include, but are not limited to, mobile equipment (mobiledevice), the PDA device (acombinationPDAandmobiletelephone) of mobile communication, PDA, integrated information device (integratedmessagingdevice (IMD)), personal computer (personalcomputerand notebook computer (notebookcomputer).These terminals can move, it is also possible to is positioned on certain moveable equipment, for instance but is not limited to automobile, truck, taxi, bus, steamer, aircraft, bicycle, motorcycle, etc. above.Above-mentioned terminal (10) can be linked on one or more application server 04 by this wireless network and/or this cable network, in order to obtains the application that this one or more application server 04 provides.One or more application server includes but not limited to, above-mentioned network can comprise other various different types of communication equipment.
Above-mentioned communication equipment can realize the process of communication based on various different transmission technologys, include but not limited to CDMA CodeDivisionMultipleAccess (CDMA), global system for mobile communications GlobalSystemforMobileCommunications (GSM), UMTS UniversalMobileTelecommunicationsSystem (UMTS), time division multiple acess TimeDivisionMultipleAccess (TDMA), frequency division multiple access FrequencyDivisionMultipleAccess (FDMA), transmission control protocol/Internet Protocol TransmissionControlProtocol/InternetProtocol (TCP/IP), Short Message Service ShortMessaGIngService (SMS), MMS (Multimedia Message Service) MultimediaMessagingService (MMS), e-mail, instant message service InstantMessagingService (IMS), bluetooth Bluetooth, IEEE802.11, etc.. different media resources can be used between above-mentioned communication equipment, include, but are not limited to, radio (radio), infrared ray (infrared), laser (laser), cable (cableconnection), etc..
Being the configuration diagram of a system embodiment supporting applications client forever online as shown in Figure 2 a, system includes:
Permanent online engine AOE (101), is arranged in terminal (10), with at least two applications client communication linkage;
Permanent online service gateway A OG (20), is positioned at network side, with one or more application server (04, the 05) communication linkage being positioned at network side;
Described permanent online engine AOE (101) and described permanent online service gateway A OG (20), connect for setting up a long-chain, wherein, described at least two applications client is connect by described long-chain and communicates with one or multiple application server (04,05) respectively;
Subscriber management server (30), it is positioned at network side, with described permanent online engine AOE (101) and described permanent online service gateway A OG (20) communication linkage, routing iinformation is provided to described AOE (101), wherein, described AOE (101) sets up described long-chain according to described routing information request and connects;Subscriber management server (30) is further used in setting up the process that described long-chain connects, and provides authentication information to described AOG (20).
One or more application server mentioned above can include but not limited to provide following application one of or the server of any combination: PUSHMail, weather forecast, VOIP, advertisement, positioning service, enterprise handles official business, service for life, etc..
Long-chain mentioned above connects, it is possible to the long-chain being consistent with transmission control protocol (TCP, TransmissionControlProtocol) connects, it is also possible to the long-chain being consistent with UDP (UDP, UserDatagramProtocol) connects;
Above-mentioned subscriber management server (30) can as the management node of permanent online service-user data, routing iinformation is provided, in order to described AOE (101) sets up described long-chain according to described routing information request and connects to described AOE (101);And, set up in the process that long-chain connects at described AOE (101) and described AOG (20), provide authentication information to described AOG (20).Such scheme can so that this permanent online engine AOE (101) and this permanent online service gateway A OG (20) can simplicity, and this long-chain of setting up of safety connects.It should be noted that this subscriber management server (30) inside can be concentrating type, or distributed;Can being possible equipment any with network side closes and sets, or be independently arranged, but be able to distinguish mutually with other equipment for AOG, in above-mentioned system, AOG be likely to have multiple.
In one preferably embodiment, above-mentioned authentication information is subscriber identity information, for instance phone number, ID or user's name, facilitate various application server to authenticate for its user, detailed description of the invention can be acted on behalf of by AOG (20) process of this authentication.But it is general, what terminal (01) was carried in the process of communication is terminal identity information, for instance IMSI information, or device identification, if these information are as authentication information, it is necessary to the certification carrying out in advance complexity with the equipment such as one or more application server is mutual.It is further to note that, above-mentioned routing iinformation is the address of the AOG (20) that subscriber identity information belongs to, in a specific embodiment, for whole network, it is likely to there is multiple AOG (20), it is necessary to clearly provide the AOG of agency service for certain subscriber identity information.
With reference to Fig. 2 b, being the flow chart of a preferably embodiment, the system of earlier figures 2 performs following method:
201. subscriber management server (30) (such as registration management module (3011)) obtains and stores the corresponding relation of terminal identity information and subscriber identity information, and stores the address of the AOG (20) that subscriber identity information belongs to;
202. when AOE (101) (such as url management module (1011)) sends routing information request, subscriber management server (30) (such as routing iinformation module (3012)) is according to the terminal identity information in routing information request, and the corresponding relation of terminal identity information and subscriber identity information, the address of the AOG of subscriber identity information ownership is provided to AOE (101);
203. when AOG (20) sends authentication information request, subscriber management server (30) (such as authentication information module (3013)) is according to the terminal identity information in authentication information request, and the corresponding relation of terminal identity information and subscriber identity information, provide subscriber identity information to AOG (20).
Concrete, above-mentioned acquisition also stores the process of corresponding relation of terminal identity information and subscriber identity information, it is possible to is before foregoing long-chain connects and do not set up, utilizes other possible communication ports to realize, for instance circuit domain communication port, or SMS channel.Concrete, can include but not limited to be reported subscriber management server (30) by terminal (10), or it is transmitted to subscriber management server (30) by other network equipments, it is also possible to be that subscriber management server (30) obtains to the mode of terminal (10) or other network device requests.
With reference to Fig. 3 a, preferably, for the communication system provided by operator, and specifically with terminal identity information for IMSI information, subscriber identity information is phone number is example, above-mentioned in setting up the process that long-chain connects, the subscriber management server (30) being positioned at network side provides routing iinformation to AOE (101), provides the process of authentication information to specifically include to AOG (20):
301, described AOE (101) is (such as, url management module (1011) on AOE (101)) when described permanent online engine AOE (101) starts or when detecting that the ISMI information in SIM is different from the information that last time registers, automatically sending reporting message to subscriber management server (30), described reporting message carries described IMSI information and described phone number.
The information that above-mentioned reporting message can send when being and need not establish the link between aforesaid AOE (101) and AOG (20), for instance the information of circuit domain, or the information of non-data link.More specifically, it is possible to be short message, or, aaa server the Radius notice etc. of reaching the standard grade forwarded.If being short message, then having only to carry IMSI information in the content, the system side of being sent to default setting is phone number, further saves data resource communication.
302, subscriber management server (30) (such as above-mentioned registration management module (3011)) according to receive as described in reporting message obtain as described in IMSI information and as described in phone number, store described phone number and the corresponding relation of described IMSI information.
303, optionally, owing to reporting message is likely to there is delay, after receiving this reporting message in order to ensure subscriber management server (30), carry out follow-up processing flow again, AOE (101) can carry out certain time delay.
304, AOE (101) (such as url management module (1011)) send routing information request to described subscriber management server (30), carry described IMSI information in this routing information request.
305, the phone number that subscriber management server (30) (such as routing iinformation module (3012)) finds correspondence according to the IMSI information in the routing information request received is (concrete, namely refer to search above-mentioned registration management module (3011)), further according to the AOG address of the phone number ownership prestored, return to the address of AOG (20) of this phone number ownership to described AOE (101).
After 306, AOE (101) (such as url management module (1011)) get the AOG information of ownership, initiating registration request to the AOG (20) of ownership, this registration request carries IMSI information.
Preferably, this registration request can also carry but be not limited to: the information of the chartered applications client in AOE (101), the mark of such as this application, the model of terminal, access network APN, operating system version, and version of AOE (101) etc..
307, after this AOG (20) receives registration request, after receiving the registration request of described AOE (101), it is judged that whether the IMSI information wherein comprised is registered in this AOG (20).
308. send authentication information request without registration then this AOG (20) to subscriber management server (30), the IMSI information in described registration request is carried in the request of described authentication information.
309, after subscriber management server (30) receives authentication information request, (concrete, for instance end message module 301) returns, to AOG (20), the end message phone number that IMSI information is corresponding.
310, AOG (20) (such as url management modules (2011) therein) judge it is the no service area as this AOG (20) of this phone number, and if not returning registration failure, flow process terminates.If belonging to the service area of this AOG (20), this AOG (20) (such as url management module (2011) therein) stores this phone number.Preferably, it is also possible to preserve other information carried in aforementioned log-on message, for instance terminal models, chartered applications client, etc. information.
311, after successful registration, AOG (20) (such as url management module (2011) therein) returns registration response to AOE (101) (such as url management module (1011)) in 310.
So far, AOE (101) is successfully established foregoing long-chain connects with the AOG (20) of ownership.This process make use of end message trusty in system, and user profile sets up long-chain and connects, system need not generate unique device id for each terminal (10) alternately by complicated, and utilize this unique device id to set up long-chain to connect, thus improve the safety that long-chain connects while simple flow.
When earlier figures 3a is illustrated that when terminal (10) starts or the ISMI information that detects in SIM is different from the information that last time registers, (SIM in terminal is replaced, can be understood as a new terminal (10)) set up couple process, concrete, comprise end message registration on AOG (20) and application message registration on AOG (20).In the other cases, in fact it could happen that terminal (10) itself, after AOG (20) registration, increases and installs or delete some application, it is necessary to take similar method to carry out the renewal of application message.With reference to Fig. 3 b, for the schematic flow sheet of more new opplication, AOG and application server that wherein AOG (20) is terminal (10) ownership place access the AOG on the ground system formed.In one object lesson, its flow process includes:
301b, terminal is installed (or unloading) and supports realize the applications client of AOI function alternately with AOE (101);
302b, after applications client installation (or having unloaded rear), the application enrollment interface calling SDK carries out registering (unloading is considered as calling the application cancellation interface of SDK and nullifies);
303b, AOE (101) call REG interface, and sending to terminal attaching ground AOG increases application request (for deleting application request during unloading);
304b, application message corresponding for terminal is updated warehouse-in by terminal attaching ground AOG;
305b, terminal attaching ground AOG returns registration response (not nullifying response during unloading) to AOE (101);
305b, the terminal attaching ground AOG ID according to the application of terminal to report, structure INFO reaches the standard grade notification message, is sent to the AOG gateway of application ownership, this notification message carrying mobile phone number of reaching the standard grade.(when unloaded for the notification message that rolls off the production line).
307b, application server accesses the AOG on ground, and phone number is converted to pseudo-code.
308b, application server accesses the AOG on ground, and notification message of reaching the standard grade (when unloaded for the notification message that rolls off the production line) is transmitted to application server, carries pseudo-code in message.
309b, application server returns push-notification-answer.
310b, application server accesses the AOG on ground and is transmitted to by push-notification-answer and former notifies initiator's AOG gateway.
Concrete, when terminal attaching AOG gateway is same gateway with application ownership AOG gateway, then need not the message of 306b, 310b step in the above-mentioned flow process forward process between gateway.
If terminal attaching ground AOG gateway is not same gateway with application ownership AOG gateway, and it is not set up therebetween effective connection, then before forwarding message, terminal attaching ground AOG gateway actively complete REG to application ownership place AOG gateway and register login process, then carry out message forwarding again.
In order to simplify the AOG intra-gateway handling process for REG message, in application installation procedure, AOG02 can not differentiate between what type of registration message (or logout message), still can by register flow path first after receiving message, confirm that IMSI makes a summary whether this AOG exists, if there is no to inquiry mobile phone number on subscriber management server 03, and according to whether phone number belongs to this AOG scope serviced, the content returning message to AOE (101) is confirmed.Only in simple application installation procedure, IMSI there will necessarily be, and number must belong to this AOG, will not go to other branch.
A configuration diagram supporting the forever online system embodiment of applications client as shown in Figure 4 a, system includes:
At least two applications client, this applications client is arranged in terminal (10), with described permanent online engine AOE (101) communication connection;;
Permanent online engine AOE (101), is arranged in terminal (10), communicates to connect with at least two applications client, is used for and sets up a long-chain between permanent online service gateway A OG (20) connecing;
Permanent online service gateway A OG (20), is positioned at network side, is used for setting up described long-chain between permanent online engine AOE (101) and connects;
One or more application server (04,05), is positioned at network side, communicates to connect with permanent online service gateway A OG (20);
Wherein, this at least two applications client is connect by this long-chain and communicates with this one or more application server 04, to realize the applied business that this one or more server (04,05) provides respectively;Within the system, safeguarding that this long-chain connects is responsible for by the AOG (20) of service side, say, that between terminal (10) and AOG (20), AOG (20) initiate heartbeat message, in order to safeguard that this long-chain connects.Wherein applications client for user oriented provide applied business, application server 04 is used for providing various applied business, for instance following application one of or any combination: PUSHMail, weather forecast, VOIP, advertisement, positioning service, enterprise handles official business, service for life, etc..
As shown in fig. 4 a, adopt this mode safeguarding that long-chain connects, relative to the mode being initiated heart beating by end side, terminal (containing each applications client that it is interior) need not send a large amount of heartbeat message to one or more application server on the one hand, reduce the signaling pressure of end side, AOE (101) in terminal is also without being filtered these heart beatings/abandon waiting special process on the other hand, while decreasing the signaling consumption that terminal is sent out, further decrease the signaling consumption that terminal (10) is internal;Additionally, AOG (20) can adjust eartbeat interval according to network condition when initiating heart beating, automatically controls heart beating parameter, makes heart beating accord with the situation of network most, thus avoiding the process of end side active probe network parameter, further decrease communication resource waste.
With reference to Fig. 4 b, in preferably embodiment, AOE (101) and AOG (20) each can disconnect this long-chain on one's own initiative according to the judgement of oneself respectively and connect, thus being conserved the communication resource of network, terminal, server etc. further, certainly also save the electric quantity consumption of each equipment especially terminal (10).When required, AOG (20) actively can wake the connection with end side up again.
Be the angle from AOE (101) with reference to Fig. 5 a, the schematic diagram of the embodiment of the heart beating maintenance connect about long-chain.With reference to Fig. 5 a, establishing after long-chain connects, long-chain is tapped into the schematic diagram of the preferably method of row maintenance by AOE (101), including:
Optionally, AOE (101) (such as url management module (1011) therein) receives AOG (20) disconnection actively sent request (such as BYE), then disconnect this long-chain and connect.
Optionally, after AOE (101) (such as heart time module (1012)) receives heartbeat message, refresh timer, if also not receiving other heartbeat message time this intervalometer exceedes regular hour threshold value, then send the request of disconnecting (such as BYE) to AOG (20), connect in order to close this long-chain.Such as, arranging this time threshold is 5 minutes, 10 minutes, or 30 minutes etc..
Optionally, AOE (101) (such as application management module (1012) therein) detects that all applications client of its management are in regular hour threshold value during off-duty, actively initiate the request that disconnects (such as BYE request), then disconnect this long-chain and connect.Such as, arranging this time threshold is 5 minutes, 10 minutes, or 30 minutes etc..
Optionally, the battery electric quantity of AOE (101) (such as battery cell monitoring module (1014) therein) monitoring terminal (10), when electricity is not enough to certain threshold value, (such as electricity only remains 10%, or 5%), if long-chain connects existence, then actively send disconnection and ask such as BYE), optionally, label can be increased, it was shown that be because electricity low and disconnect this long-chain and connect in disconnecting request.
By aforementioned possible embodiment, after long-chain connects disconnection, AOE (101) enters resting state, (can wait that AOG (20) is waken up by note), it is possible to save the electricity of terminal (10).Wherein, the mode that the various disconnection long-chains actively initiated by AOE (101) connect, further decrease unnecessary signaling waste, such as, after disconnecting, the AOG (20) of network side need not retransmit heartbeat message, additionally also further saves the battery electric quantity in terminal (10).
It is further to note that, long-chain between AOE (101) and AOG (20) connects when existing, the operating system forbidding terminal (10) is needed to enter resting state, to ensure the normal connection that long-chain connects, when long-chain between AOG connects disconnection, it is possible to the dormancy mechanism of recovery operation system.
With reference to Fig. 5 b, illustrate how to safeguard that this long-chain connects from the angle of AOG (20).It should be noted that, the AOG (20) that Fig. 5 b describes is in actual application process, it is probably a single server, it is possible to be divided into the AOG (20) of AOG (20) that terminal (10) (concrete AOE therein (101)) belongs to and one or more application server ownership as required.Wherein, optionally, as the latter (during two AOG), it is communicatively coupled between AOG (20) and the AOG (20) of one or more application server ownership that terminal (10) belongs to, the AOG (20) that terminal (10) belongs to is responsible for mutual with the AOE (101) in terminal (10), and the AOG (20) of one or more application server ownership is responsible for mutual with one or more application server.More specifically, internal structure from AOG (20), shown in Fig. 5 b 501 to 504 can be performed by termination management module (1021), and this termination management module (1021) may be located on the AOG (20) that terminal (10) belongs to;Step 500,505-508 can be performed by application management module (1022), and this application management module (1022) may be located on the AOG (20) of application server ownership.
Concrete, in the embodiment shown in Fig. 5 b, comprise the steps:
500-501, AOE (101) and AOG (20) successfully set up long-chain and connect.Complete REG register flow path (501) including AOE (101) with terminal attaching ground AOG, comprise the information of terminal and the information of applications client in terminal.Accordingly, one or more application server is also required to successfully be registered to AOG (20) (step 500), so, AOE (101) (i.e. terminal (10)) rolls off the production line notify follow-up to notify one or more application server.
502, AOE (101) successfully set up after long-chain connects with AOG (20), and AOG (20) actively initiates ACK heartbeat message to terminal, in order to safeguard that this long-chain connects.Preferably in embodiment, it is possible to configure the interval sending heartbeat message, i.e. eartbeat interval, and configuration time-out time control etc. according to the situation of network;
503, AOE (101) reply ACKRSP response, represent AOE (101) active state being in.
Long-chain is tapped into row maintenance according to following several situations by 504, AOG (20), includes but not limited to:
5041, when AOG (20) receives AOE (101) disconnection actively sent request, disconnect this long-chain and connect, do not retransmit heartbeat message;Concrete, it is possible to reference to the flow process shown in Fig. 5 a.
5042, when AOG (20) judges that exceeding certain time threshold value does not receive the data stream sent from this terminal (10) (AOE (101)), actively initiate to disconnect request (such as BYE), do not retransmit heartbeat message.Preferably in embodiment, this time threshold can configure, for instance, give tacit consent to 5 minutes, 10 minutes or 30 minutes.
5043, when AOG (20) judges to send after heartbeat message ACT, it does not have obtain the situation of the response of AOE (101) when exceeding certain frequency threshold value, actively initiate to disconnect request (such as BYE), do not retransmit heartbeat message.Preferably in embodiment, this frequency threshold value can configure, for instance, it is defaulted as 3 times, 4 times or 5 times etc..
5054, not shown, after 502, if both not received AOE (101) disconnection sent request actively do not send, to AOE (101), the request of disconnection yet, then according to heartbeat time interval, rule to AOE (101) send heartbeat message, in order to keep this long-chain to connect.
Preferably in embodiment, on the basis of the aforementioned maintenance connect for long-chain, AOG (20) (such as application management module (2012)) can also further presence to AOE (101), and the applications client on this AOE (101) is managed.Such as, optionally, 505, if AOG (20) is according to step 5041,5042, or the situations such as 5043 disconnect this long-chain and connect, then confirm that AOE (101) has been off, update locally stored AOE (101) whether presence is: off-line.
Optionally, 506, AOG (20) inquires about the forever online application client client information of the upper registration of AOE (101), if and need between one or more application server use pseudo-code interact, then the phone number of this AOE (101) of upper for AOG (20) storage is converted to pseudo-code by AOG (20) (such as application management module (2012)), and this pseudo-code for transmitting as subscriber identity information between AOG (20) and application server.Here, pseudo-code is a user at the internal system unique identity for some application.
Concrete, in order to protect privacy of user, some application can not reveal to application server (SP) phone number, at this moment needs to replace phone number by other mark.Common practices is for doing a summary according to by phone number and these information of other random number, and the summary calculated can be referred to as pseudo-code.Phone number and pseudo-code are one to one, and mapping relations can be retained in server side.But algorithm is unidirectional, say, that relevant random parameter will not be sent to application server (SP), thus application server (SP) counter can not release phone number by pseudo-code.One or more application server (SP) can identify user by pseudo-code when sending downstream message, such as can be inquired the phone number of correspondence by pseudo-code in server side, then message can be routed to correct user.
More specifically, pseudo-code is application level, may specify that some application enables pseudo-code function, and pseudo-code function is closed in some application.If application management module (2012) specifies in the controlled attribute of application needs transmission pseudo-code, then need for having mutual phone number to generate pseudo-code with this application, and, safeguard the corresponding relation of subscriber phone number and pseudo-code.In one example, the method for the pseudo-code of generation is: pseudo-code=HASH (MSISDN, Time, APPID, Random) wherein: HASH is hash algorithm, for instance adopt MD5 algorithm;MSISDN is user mobile phone number;Time: timestamp, for instance adopt YYYYMMDDHH24MISS form;APPID is application identities;Random is random number.For the phone number specified and certain application, pseudo-code only generates once in systems, throughout one's life effectively.Concrete, when needs are converted to pseudo-code by phone number, first system does conjunctive query local data base according to phone number and application ID, can not find out pseudo-code, then proves and use this application first, then generate pseudo-code with above-mentioned algorithm.When needing the conversion by pseudo-code to phone number, AOG (20) inquires about local data base, inquires about unsuccessfully, then prove the pseudo-code mistake that application is specified.During successful inquiring, being mated by the APPID of the APPID in application message with local pseudo-code data base, the match is successful, then it is assumed that pseudo-code check success.
Optionally, 507AOG (20) constructs the notification message that rolls off the production line and issues one or more application server, comprises pseudo-code in this notification message that rolls off the production line.
Accordingly, 508, one or more application server can return push-notification-answer after receiving the notification message that rolls off the production line.
Concrete, if AOG (20) is a server, then, this AOG (20) oneself performs above-mentioned steps 506,507;The system that the AOG (20) of the AOG (20) that if AOG (20) is AOE (101) to be belonged to and one or more application server ownership forms, the AOG (20) that then AOE (101) belongs to sends the AOG (20) that the notification message that rolls off the production line comprising phone number belongs to one or more application server, this phone number is converted to pseudo-code by the AOG (20) belonged to by one or more application server, and the notification message that rolls off the production line comprising pseudo-code is sent to one or more application server.
Based on above-mentioned various possible embodiments, after long-chain connects disconnection, AOE (101) can wait that AOG (20) is waken up by note, starts against this long-chain and connects.Concrete can be realized by system as shown in Figure 6, it is such as " note pushing module (2015) " in AOG (20), " note processing module (1013) " in AOE (101), " application wake module (1015) " etc. realizes.
Concrete, with reference to Fig. 7 be long-chain connect disconnection when the possible schematic flow sheet waking the embodiment that this long-chain connects up.Including:
Note pushing module (2015) in 701, AOG (20) sends " waking note up " to AOE (101) under special circumstances, connects for waking not yet foundation or already off long-chain up.
Concrete, waking note up is not common text SMS, is the binary system note of a kind of special format, and agreement between AOG (20) and AOE (101), the two is it is understood that other network equipment is invisible.This for waking the binary system note that long-chain connects up, it is possible to include the contents such as the application ID needing to wake up, downstream message transmitting side marking, purpose ID, the summary of message.
Note processing module (1013) in 702, AOE (101) monitors, intercept " waking note up " after, resolve and " waking note up " the url management module (1011) in AOE (101) should be triggered set up long-chain and connect;Concrete, monitoring is to have monitored to wake note existence up, and interception refers to and wakes note no longer going down up, and other application will not receive again and wake short message content up.
703-704, url management module (1011) in AOE (101) initiates registration request according to the prompting of note processing module (1013) to AOG (20), and receive AOG (20) registration returned response, setting up this long-chain accordingly to connect, the downstream message that application server is sent by AOG (20) gives AOE (101) by the aforementioned long-chain sending and receiving re-established.
In another preferably embodiment, with reference to Fig. 8, the schematic flow sheet of one method embodiment waking applications client up, connect at long-chain and have built up or have woken up, but the applications client in terminal (10) has logged out, but have received during AOG (20) data being sent to this applications client forwarded (801), in AOE (101), application wake module (1015) can also this applications client having logged out (802) of pull-up.
Concrete, applications client and AOE (101) are two independent processes in terminal (10), need when application starts to register to AOE (101), inform the information such as AOE (101) its program installation site, operational factor, the running status that AOE (101) is able on monitor terminal applications client.When applications client exits (being probably the instruction according to user actively to exit), when having again downstream message to need to notify this applications client, AOE (101) is according to log-on message above, rerun the program of client, thus this applications client of pull-up, the downstream message received is notified this applications client by the api interface or the message interface that then pass through inside.
In other implementations, can provide different and can carry out the further embodiment of any combination with the respective embodiments described above, with reference to Fig. 6, optionally, AOE (101), AOG (20), subscriber management server (30) comprises multiple possible module, unless there is repulsion in logic between each module, can combine arbitrarily, thus forming more excellent embodiment.Hereafter will to each device, and each module in device is introduced one by one.
Fig. 9 is the structural representation of an embodiment of terminal (10) in system.Terminal (10) generally comprises at least one processor (102) (such as CPU), at least one network interface (105) or other communication interfaces, memorizer (106), with at least one communication bus (103), for the connection communication realizing between these devices.Processor (102) is for performing the executable module of storage in memorizer, for instance computer program;Terminal (10) optionally comprises user interface (104), includes but not limited to display, and keyboard and pointing device (such as, mouse, trace ball (trackball), touch-sensitive plate or touch sensitive display screen.Memorizer (106) is likely to comprise high speed Ram memorizer, it is also possible to also include non-labile memorizer (non-volatilememory), for instance at least one disk memory.The communication connection between this terminal (10) and at least one other computer is realized, it is possible to use the Internet, wide area network, LAN, Metropolitan Area Network (MAN) etc. by least one network interface (can be wired or wireless).
Memorizer (106) optionally can comprise at least one local storage device (such as external connection storage apparatus) being located remotely from aforementioned CPU801.In some embodiments, memorizer (106) stores following element, executable module or data structure or their subset or their superset:
Operating system (106), is used for, and comprises various program, is used for realizing various basic business and processing hardware based task;
At least two applications client (108), for permanent online engine AOE (101) communication connection, for providing a user with applied business respectively;
Permanent online engine AOE (101), communicate to connect with at least two applications client (108) being arranged in terminal (10), communicate to connect with the permanent online service gateway A OG (20) being positioned at network side, communicated to connect by described permanent online service gateway A OG (20) with one or more one or more application server 04 being positioned at network side;
This permanent online engine AOE (101) includes but not limited to one of following module or its combination:
Url management module (1011), application management module (1012), note processing module (1013), data forwarding module (1014), application wake module (1015), IP proxy module (1016), heart time module (1017), or, battery cell monitoring module (1018), api interface etc..
In one detailed description of the invention, url management module (1011), may be used between described AOE (101) and permanent online service gateway A OG (20), set up a long-chain to connect, wherein, described at least two applications client is connect by described long-chain and communicates with one or more application server (04,05) respectively;Obtain routing iinformation from subscriber management server (30), and set up described long-chain according to described routing information request and connect.Concrete, the process obtaining routing iinformation includes: send the routing information request comprising terminal identity information to subscriber management server (30), receive the corresponding relation of the subscriber management server (30) terminal identity information according to storage and subscriber identity information and the address of the described AOG of the address return of the AOG of subscriber identity information ownership.In one example, terminal identity information is IMSI information, and subscriber identity information is phone number;In another example, terminal identity information is Terminal Equipment Identifier, and subscriber identity information is user's name or ID.Concrete, said process is referred to the embodiment shown in Fig. 2 b, 3a, 3b.
Optionally, permanent online engine AOE (101) provides api interface, applications client can be in communication with by api interface, so, each applications client is not directly set up long-chain connect with application provider, but sets up long-chain by permanent online engine AOE (101) and connect.
Optionally, AOE (101) includes application management module (2013), function to the management of the applications client in the upper registration of this permanent online engine AOE (101), includes but not limited to the registration of program, cancels registration and program is run, the reporting of state out of service
Optionally, permanent online engine AOE (101), for instance comprise data forwarding module (1014) further, it is possible to for receiving data from different applications client, then pass through aforesaid " long-chain connects " and send;Data can also be obtained from " long-chain connects " simultaneously, and judge that this message packet belongs to the message of which applications client according to the application ID in data, then forward messages to this applications client.Specifically, the upstream message that applications client is sent, it is transmitted to permanent online service gateway 102, in order to relay to one or more application server;And receive the downstream message sent by one or more application server that permanent online service gateway A OG (20) forwards, it is forwarded to applications client.
Another is preferably in embodiment, when applications client has mass data to need mutual with one or more application server, AOE (101), such as IP proxy module (1016), it is provided that independent connection is mutual with one or more application server.Preferably, when the data of transmission reach threshold value, it is necessary to set up IP and act on behalf of passage, this IP act on behalf of passage and transmit these data specially.Preferably, can actively close IP when data transmission terminates and act on behalf of passage.Preferably, IP is not actively closed for applications client or one or more application server and acts on behalf of passage, AOE (101) can set that timeout mechanism, and after no data reaches threshold value (such as 60s) alternately, AOE (101) actively disconnects.
Figure 10 is the structural representation of an embodiment of permanent online gateway A OG (20) in system.It should be noted that as mentioned before, can be arranged as required to be two separate not at the equipment of same physical location, the AOG (20) of AOG (20) that namely terminal (10) belongs to and application server ownership, intercomed mutually the function completing to be correlated with together by them, its structure is similar, but is likely to the position according to its place in application module and comprises different modules.
AOG (20) is positioned at network side, with be arranged in permanent online engine AOE (101) communication connection of terminal (10), this permanent online engine AOE (101) and be arranged at least two applications client communication connection of terminal (10);Communicate to connect with one or more one or more application server (04,05) being positioned at network side.
This AOG (20) generally comprises at least one processor (202) (such as CPU), at least one network interface or other communication interfaces (205), memorizer (206), with at least one communication bus (203), for the connection communication realizing between these devices.Processor (202) is for performing the executable module of storage in memorizer, for instance computer program.This AOG (20) optionally also comprises user interface (904), includes but not limited to display, and keyboard and pointing device (such as, mouse, trace ball (trackball), touch-sensitive plate or touch sensitive display screen.Memorizer (906) is likely to comprise high speed Ram memorizer, it is also possible to also include non-labile memorizer (non-volatilememory), for instance at least one disk memory.The communication connection between this AOG (20) and at least one other computer is realized, it is possible to use the Internet, wide area network, LAN, Metropolitan Area Network (MAN) etc. by least one network interface (can be wired or wireless).
Memorizer (206) optionally can comprise at least one local storage device (such as external connection storage apparatus) being located remotely from aforementioned CPU.In some embodiments, memorizer (206) stores following element, executable module or data structure or their subset or their superset:
Operating system (207), is used for, and comprises various program, is used for realizing various basic business and processing hardware based task;And, one of following module or any combination:
Termination management module (2011), application management module (2012), routing management module (2013), caching management module (2014), note pushing module (2015), IP pushing module (2016), protocol conversion module (2017), or, updating and management module (2018).
In specific embodiment, termination management module (2011), for setting up a long-chain between engine AOE (101) and described AOG (20) online connect permanent, wherein, at least two applications client is connect by described long-chain and communicates with one or multiple application server (04,05) respectively;In setting up the process that described long-chain connects, obtain authentication information from subscriber management server (103).Concrete, termination management module (2011) is used for: send the authentication information request of carried terminal identity information to described subscriber management server (30), receive the described subscriber management server (30) corresponding relation according to terminal identity information and described subscriber identity information, the subscriber identity information of return.In a kind of example, above-mentioned terminal identity information is IMSI information, and subscriber identity information is phone number;In another kind of example, this terminal identity information is Terminal Equipment Identifier, and this subscriber identity information is user's name or ID.
With reference to Fig. 6, preferably in embodiment, optionally, termination management module (2011) in permanent online service gateway A OG (20), can be also used for realizing the management of terminal (10), such as, the information of the AOE (101) that management is registered in system, such as user agent (the UserAgent of IMSI summary, AOE (101), UA) information etc., also include the application message of the upper registration of AOE (101), such as the mark of application being mounted with at present on this AOE (101) or its version.Optionally, AOE (101) identity can also be differentiated by termination management module (2011), and log-on message is registered, and stores in systems.Concrete process is referred to the embodiment shown in 2b, 3a, 3b etc..Preferably, the long-chain that termination management module (2011) can also manage between AOE (101) and AOG connects, for instance sends heartbeat message, safeguards that long-chain connects status information, for instance have built up state, off-state etc..
Optionally, application management module (2012) in permanent online service gateway A OG (20), application can be managed, such as management is linked into all of application message of this AOG (20), including application server (or application provider SP) and the information thereof of application ownership, one or more application server accessed is provided access authentication, uses the functions such as control of authority.Preferably in embodiment, carry out the management of pseudo-code for concrete application, etc..Detailed process is referred to each embodiment shown in Fig. 5 b.
Optionally, the routing management module (2013) in permanent online service gateway A OG (20), it is possible to achieve routing management: for up-downgoing message, what AOG can be correct is routed to the network element of correspondence.
Optionally, caching management module (2014) in permanent online service gateway A OG (20), cache management can be realized, concrete, according to application needs, application is handed down to the data-message of AOE (101), when issuing unsuccessful, message is carried out buffer memory.Concrete, the message after buffer memory should retry, and returns successful state report to application retrying after successfully.
Optionally, the note pushing module (2015) in AOG (20), it is possible to send " waking note up " to AOE (101) under special circumstances, connects for waking not yet foundation or already off long-chain up;AOE (101) is given by the aforementioned long-chain sending and receiving re-established by the downstream message that application server sends.Concrete process is referred to the embodiment shown in Fig. 7.
Optionally, IP pushing module (2016) in AOG (20), the function (IPPUSH) of IP data-pushing can be realized, concrete, when long-chain connects already off, the technical scheme that long-chain connects is waken up compared to aforementioned note, may also take on another one scheme: namely application server is needed to the descending message sent, directly set up an IP data channel, it is issued to permanent online engine AOE (101) by this IP data channel, is sent to applications client by this AOE (101).Preferably, when application server needs the descending message data volume sent relatively big (being greater than the threshold value set), directly set up IP data channel and carry out the propelling movement of downlink data;When application server needs the descending message data volume sent less (such as less than or equal to the threshold value set), it is possible to adopt the mode that note is waken up to wake up after this long-chain connects, by these descending data of this long link push.
Optionally, internal agreement is adopted between permanent online service gateway A OG (20) and permanent online engine AOE (101), when adopting disclosed agreement between AOG (20) and one or more application server, message can be changed by the protocol conversion module (2017) in permanent online service gateway A OG (20) between both agreements.
Optionally, the updating and management module (2018) in AOG (20), it is possible to manage the version of all permanent online engine AOE (101), it is possible to trigger the automatic upgrading and updating of permanent online engine.
Figure 11 is the structural representation of an embodiment of subscriber management server (30) in system.As mentioned before, subscriber management server (30), it is positioned at network side, with described permanent online engine AOE (101) and the communication connection of described permanent online service gateway A OG (20), at least two applications client is connect by described long-chain and communicates with one or multiple application server (04,05) respectively.This subscriber management server (30) generally comprises at least one processor (302) (such as CPU), at least one network interface or other communication interfaces (305), memorizer (306), with at least one communication bus (303), for the connection communication realizing between these devices.Processor (302) is for performing the executable module of storage in memorizer, for instance computer program.Subscriber management server (30) optionally comprises user interface (304), includes but not limited to display, and keyboard and pointing device (such as, mouse, trace ball (trackball), touch-sensitive plate or touch sensitive display screen.Memorizer (306) is likely to comprise high speed Ram memorizer, it is also possible to also include non-labile memorizer (non-volatilememory), for instance at least one disk memory.The communication connection between this subscriber management server (30) and at least one other computer is realized, it is possible to use the Internet, wide area network, LAN, Metropolitan Area Network (MAN) etc. by least one network interface (can be wired or wireless).
Memorizer (306) optionally can comprise at least one local storage device (such as external connection storage apparatus) being located remotely from aforementioned CPU.In some embodiments, memorizer (306) stores following element, executable module or data structure or their subset or their superset:
Operating system (307), is used for, and comprises various program, is used for realizing various basic business and processing hardware based task;And, one of following module or any combination:
Routing iinformation module (3012), authentication information module (3013).
Concrete, routing iinformation module (3012), for providing routing iinformation to described AOE (101), in order to set up described long-chain according to described routing information request and connect;Authentication information module (3013), for setting up in the process that long-chain connects at described AOE (101) and described AOG (20), provides authentication information to described AOG (20).
Preferably, it is possible to farther include registration management module (3011), for obtaining and store the corresponding relation of terminal identity information and subscriber identity information, and the address of the AOG (20) that this subscriber identity information belongs to is stored;This routing iinformation module (3012), specifically for: according to the terminal identity information in this AOE (101) routing information request sent, and the corresponding relation of registration management module this terminal identity information of obtaining and storing and this subscriber identity information, the address of AOG that this subscriber identity information belongs to is provided to this AOE (101);This authentication information module (3013), specifically for: when this AOG (20) sends authentication information request, terminal identity information in asking according to this authentication information, and the corresponding relation of registration management module this terminal identity information of obtaining and storing and this subscriber identity information, provide this subscriber identity information to this AOG (20).In a kind of example, above-mentioned terminal identity information is IMSI information, and subscriber identity information is phone number;In another kind of example, this terminal identity information is Terminal Equipment Identifier, and this subscriber identity information is user's name or ID.
It should be noted that in the respective embodiments described above, especially refer to different modules, enforcement cannot be coordinated if not describing, can be carried out arbitrary combination, to realize more beneficial effect, not by pro forma restriction.Device embodiment described above is merely schematic, the wherein said unit illustrated as separating component can be or may not be physically separate, the parts shown as unit can be or may not be physical location, namely may be located at a place, or can also be distributed on multiple NE.Some or all of module therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.Those of ordinary skill in the art, when not paying performing creative labour, are namely appreciated that and implement.
Through the above description of the embodiments, those skilled in the art is it can be understood that can add the mode of required general hardware platform by software to each embodiment and realize, naturally it is also possible to pass through hardware.Based on such understanding, the part that prior art is contributed by technique scheme substantially in other words can embody with the form of software product, this computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment or embodiment.
Embodiments described above, is not intended that the restriction to this technical scheme protection domain.The amendment made within any spirit at above-mentioned embodiment and principle, equivalent replacement and improvement etc., should be included within the protection domain of this technical scheme.

Claims (29)

1. the system supporting that applications client is forever online, including: permanent online engine AOE (101), it is arranged in terminal (10), communicate to connect with at least two applications client in described terminal (10), be used for and between permanent online service gateway A OG (20), set up a long-chain connecing;
Permanent online service gateway A OG (20), is positioned at network side, is used for setting up this long-chain between described permanent online engine AOE (101) and connects, and initiate heartbeat message, in order to safeguards that this long-chain connects;Wherein, described at least two applications client is connect by this long-chain, via described AOG (20), communicates with one or more application server (04,05).
2. system according to claim 1, described AOG (20) is further used for adjusting eartbeat interval according to network condition, automatically controls heart beating parameter.
3. system according to claim 1,
Described AOE (101) is further used for the judgement according to oneself and disconnects this long-chain on one's own initiative and connect;Or,
Described AOG (20) is further used for the judgement according to oneself and disconnects this long-chain on one's own initiative and connect.
4. system according to claim 3, described AOE (101) is further used for after described long-chain connects disconnection, enters resting state.
5. system according to claim 4, described AOG (20) is further used for: if both not received described AOE (101) disconnection sent request also actively do not send, to described AOE (101), the request of disconnection, then according to heartbeat time interval, rule to described AOE (101) send heartbeat message, in order to keep described long-chain to connect.
6. system according to claim 3,
Wherein said AOE (101) disconnects this long-chain on one's own initiative according to the judgement of oneself and connects and specifically include:
For also not receiving other heartbeat request in time exceeding regular hour threshold value after judging to receive heartbeat request, then actively send, to described AOG (20), the request of disconnection;Or, when all applications client off-duty in regular hour threshold value of its management being detected, then actively initiate to disconnect request to described AOG (20);Or, when the battery electric quantity detected in described terminal (10) is lower than certain threshold value, then actively send, to described AOG (20), the request of disconnection;Described disconnection request is used for disconnecting this long-chain and connects;
Wherein said AOG (20) disconnects this long-chain on one's own initiative according to the judgement of oneself and connects and specifically include:
When judging that exceeding certain time threshold value does not receive from described AOE (101) the data stream sent, then actively initiate to disconnect request;Or, after judging that exceeding certain frequency threshold value sends heartbeat request, but when not obtaining the response of described AOE (101), actively initiate to disconnect request;Described disconnection request is used for disconnecting described long-chain and connects.
7. according to the system that claim 1-6 is arbitrary, described AOG (20) is further used for the AOE (101) that connect by already off described long-chain and is revised as off-line at the whether presence of the upper record of described AOG (20), and constructs the notification message that rolls off the production line and be sent to described application server.
8. system according to claim 7,
Described AOG (20) is further used for sending to AOE (101) waking note up, connects for waking not yet foundation or already off long-chain up;
After described AOE (101) is further used for monitoring and wake note up described in intercepting, described in parsing, wake note up, and trigger and set up long-chain and connect.
9. the communication means supporting that applications client is forever online, permanent set up a long-chain between engine AOE (101) and the permanent online service gateway A OG (20) being positioned at network side what be arranged in terminal (10) online and connect, wherein, the at least two applications client being arranged in terminal (10) is connect by described long-chain, via described AOG (20), communicate with one or more application server (04,05) respectively;The method includes: described permanent online service gateway A OG (20) initiates heartbeat message, in order to safeguard that this long-chain connects.
10. method according to claim 9, farther includes:
Described AOG (20) adjusts eartbeat interval according to network condition, automatically controls heart beating parameter.
11. method according to claim 9, farther include
Described AOE (101) disconnects this long-chain on one's own initiative according to the judgement of oneself and connects;Or,
Described AOG (20) disconnects this long-chain on one's own initiative according to the judgement of oneself and connects.
12. method according to claim 11, farther including, described AOE (101), after described long-chain connects disconnection, enters resting state.
13. method according to claim 11,
Wherein said AOE (101) disconnects this long-chain on one's own initiative according to the judgement of oneself and connects and specifically include:
When described permanent online engine AOE (101) exceedes regular hour threshold value after judging to receive heartbeat request time, also do not receive other heartbeat request, then actively send, to described AOG (20), the request of disconnection;Or, when described permanent online engine AOE (101) detects all applications client off-duty in regular hour threshold value of its management, then actively initiate to disconnect request to described AOG (20);Or, when described permanent online engine AOE (101) detects battery electric quantity in described terminal (10) lower than certain threshold value, then actively send, to described AOG (20), the request of disconnection;Described disconnection request is used for disconnecting described long-chain and connects;
Wherein said AOG (20) disconnects described long-chain on one's own initiative according to the judgement of oneself and connects and include:
Described AOG (20) is further used for when judging that exceeding certain time threshold value does not receive from described AOE (101) the data stream sent, then actively initiate to disconnect request;After judging that exceeding certain frequency threshold value sends heartbeat request, but when not obtaining the response of AOE (101), actively initiate to disconnect request;Described disconnection request is used for disconnecting described long-chain and connects.
14. according to the method that claim 11-13 is arbitrary, farther include: the described AOE (101) that already off described long-chain is connect by described AOG (20) is revised as off-line at the whether presence of the upper record of described AOG (20), and construct the notification message that rolls off the production line and be sent to described application server.
15. method according to claim 14, farther include:
Described AOG (20) sends to described AOE (101) and wakes note up, connects for waking not yet foundation or already off long-chain up;
Described AOE (101) monitor and intercept described in wake note up after, wake note described in parsing up, and trigger and set up long-chain and connect.
16. the terminal (10) supporting that applications client is forever online, including: permanent online engine AOE (101) and at least two applications client;
Described permanent online engine AOE (101), communicate to connect with the described at least two applications client in described terminal (10), for and be positioned at and set up a long-chain between the permanent online service gateway A OG (20) of network side and connect;Receive the heartbeat message that described permanent online service gateway A OG (20) is initiated, in order to safeguard that described long-chain connects;
Described at least two applications client, for being connect by described long-chain, via described AOG (20), is communicated with one or more application server (04,05) of network side.
17. terminal according to claim 16 (10),
Described AOE (101) is further used for the judgement according to oneself and disconnects described long-chain on one's own initiative and connect;Or,
Described AOE (101) includes url management module (1011) and is used for receiving AOG (20) disconnection actively sent request, then disconnect described long-chain and connect.
18. terminal according to claim 17 (10), described AOE (101) is further used for after described long-chain connects disconnection, enters resting state.
19. terminal according to claim 17 (10),
Described permanent online engine AOE (101) specifically includes:
Heart time module (1012), for also not receiving other heartbeat request in time exceeding regular hour threshold value after judging to receive heartbeat request, then actively sends to disconnect to AOG (20) and asks;Or,
Application management module (1012), for when all applications client off-duty in regular hour threshold value of its management being detected, then actively initiating to disconnect request to AOG (20);Or,
Battery cell monitoring module (1014), for when the battery electric quantity detected in terminal (01) is lower than certain threshold value, then actively sending to disconnect to AOG (20) and ask;
Described disconnection request is used for disconnecting described long-chain and connects.
20. according to terminal (10) arbitrary for claim 16-19, described AOE (101) farther includes note processing module (1013) and url management module (1011), described note processing module (1013) is for after monitoring and intercepting and wake note up, wake note described in parsing up, and trigger the described url management module (1011) in described AOE (101) and set up long-chain and connect;Described url management module (1011) connects for setting up long-chain according to triggering situation.
21. the permanent online service gateway A OG (20) supporting that applications client is forever online, including:
Termination management module (2011), for permanent setting up a long-chain between engine AOE (101) and described AOG (20) what be arranged in terminal (10) online and connect, and initiation heartbeat message, in order to safeguard that described long-chain connects;
Wherein, at least two applications client in described terminal (10) is connect by described long-chain, via described AOG (20), communicates with one or more application server (04,05) respectively.
22. AOG according to claim 21 (20), including: adjusting module, for adjusting eartbeat interval according to network condition, automatically control heart beating parameter.
23. AOG according to claim 22 (20), disconnect module, connect for disconnecting this long-chain on one's own initiative according to the judgement of oneself.
24. according to AOG (20) arbitrary for claim 21-23, termination management module (2011) is further used for: if both not received AOE (101) disconnection sent request also actively do not send, to AOE (101), the request of disconnection, then according to heartbeat time interval, rule to AOE (101) send heartbeat message, in order to keep this long-chain to connect.
25. AOG according to claim 23 (20),
Wherein said disconnection module specifically for: when judging that exceeding certain time threshold value does not receive from described AOE (101) the data stream sent, then actively initiate to disconnect request;Or, after judging that exceeding certain frequency threshold value sends heartbeat request, but when not obtaining the response of AOE (101), actively initiate to disconnect request;Described disconnection request is used for disconnecting this long-chain and connects.
26. AOG according to claim 24 (20), described termination management module (2011) is further used for the described AOE (101) that connect by this long-chain already off and is revised as off-line at the whether presence of the upper record of described AOG (20), and constructs the notification message that rolls off the production line and be sent to described application server.
27. AOG according to claim 26 (20), described AOG (20) farther includes note pushing module (2015), wake note up for sending to described AOE (101), connect for waking not yet foundation or already off long-chain up.
28. permanent online service gateway A OG (20) according to claim 21, farther include:
Application management module (2012), for inquiring about the forever online application client client information of the upper registration of described AOE (101), if needing between described applications client and one or more application server to use pseudo-code to interact, then the phone number of described AOE (101) the place terminal of upper for described AOG (20) storage being converted to pseudo-code, described pseudo-code for transmitting as subscriber identity information between AOG (20) and application server.
29. AOG according to claim 28 (20),
Described application management module (2012) including:
First module, for calculating the pseudo-code corresponding with described phone number according to described phone number with nonce count, is sent to described application server by described pseudo-code, or,
Second module, for generating pseudo-code: pseudo-code=HASH (MSISDN, Time, APPID, Random) according to following method, wherein: HASH is hash algorithm, MSISDN is user mobile phone number, and Time is timestamp, and APPID is application identities;Random is random number.
CN201310072940.7A 2011-11-15 2011-11-15 A kind of method, system and device supporting applications client forever online Active CN103312766B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310072940.7A CN103312766B (en) 2011-11-15 2011-11-15 A kind of method, system and device supporting applications client forever online

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310072940.7A CN103312766B (en) 2011-11-15 2011-11-15 A kind of method, system and device supporting applications client forever online

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201110360998.2A Division CN102395119B (en) 2011-11-15 2011-11-15 Method for supporting permanent online of application client, system and apparatus thereof

Publications (2)

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

Family

ID=49137544

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310072940.7A Active CN103312766B (en) 2011-11-15 2011-11-15 A kind of method, system and device supporting applications client forever online

Country Status (1)

Country Link
CN (1) CN103312766B (en)

Cited By (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

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092714B (en) * 2013-09-25 2016-02-17 腾讯科技(深圳)有限公司 The player method of files in stream media and device
CN104753774B (en) * 2013-12-26 2018-07-24 中国移动通信集团公司 A kind of distributed enterprise comprehensive access gate
CN105898844B (en) * 2015-01-26 2020-04-24 中国移动通信集团湖南有限公司 Method and device for controlling terminal link
CN105163339B (en) * 2015-08-28 2019-06-07 上海斐讯数据通信技术有限公司 A kind of asymmetric long connection method and system of network access equipment buffering
CN106102141B (en) * 2016-05-31 2017-10-17 广东欧珀移动通信有限公司 A kind of processing method and processing device based on packet
CN107222371A (en) * 2017-08-04 2017-09-29 北京奇艺世纪科技有限公司 A kind of client heartbeat inspecting method and system
CN109428924B (en) * 2017-08-29 2021-07-13 阿里巴巴集团控股有限公司 Application online state maintenance method, access layer assembly, application system and equipment
CN110855726B (en) * 2018-08-20 2024-02-06 北京京东尚科信息技术有限公司 Communication method, device, gateway, computing device and medium
CN110708283A (en) * 2019-08-29 2020-01-17 中国第一汽车股份有限公司 Method and device for processing abnormal connection between vehicle and terminal, vehicle and storage medium
CN110944063B (en) * 2019-12-10 2021-11-30 航天新长征大道科技有限公司 Programmable logic control device connection method, control system and readable medium
CN113286351B (en) * 2021-05-12 2022-10-11 捷佳润科技集团股份有限公司 Communication method of wireless remote control terminal for intelligent agriculture
CN113242611B (en) * 2021-05-18 2022-09-27 展讯通信(上海)有限公司 Method and device for adjusting PoC heartbeat packet sending interval
CN113448748B (en) * 2021-06-03 2023-09-22 北京致远互联软件股份有限公司 Refreshing method and refreshing system driven by message

Citations (3)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050228848A1 (en) * 2004-03-22 2005-10-13 Thurston Stacy D Method and system for operating a peer network

Patent Citations (3)

* 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
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 (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

Also Published As

Publication number Publication date
CN103312766A (en) 2013-09-18

Similar Documents

Publication Publication Date Title
CN103312766B (en) A kind of method, system and device supporting applications client forever online
CN102395119B (en) Method for supporting permanent online of application client, system and apparatus thereof
KR102216428B1 (en) Keeping UE in awakening state
JP6697570B2 (en) Data transmission method, device and system
US9712632B2 (en) Method for receiving data, method for sending data, mobile terminal, and server
US8503300B2 (en) Efficient messaging over internet protocol
CN105453662B (en) Neighbor discovery for supporting dormant nodes
KR101697080B1 (en) Push service without persistent tcp connection in a mobile network
CN101889424B (en) Mobile access to internet-based application with reduced polling
US20150019723A1 (en) Method and apparatus for processing messages
EP2861000B1 (en) Method and device for transmitting downlink data
US9148778B2 (en) Activating a mobile terminal from mobile network side
WO2011150707A1 (en) Method and system for managing terminal states or terminal events in machine-to-machine or machine-to-man or man-to-machine (m2m) service
KR101573122B1 (en) Method, gateway, proxy and system for implementing mobile internet services
WO2012118610A1 (en) Apparatus and mechanism for dynamic assignment of survivability services to mobile devices
CN103297470B (en) The processing method of always online business, application server, user terminal and system
Ganz et al. A resource mobility scheme for service-continuity in the Internet of Things
WO2015010645A1 (en) Method and apparatus for message transmission
US9001746B2 (en) Network-initiated data transfer in a mobile network
CN102647307A (en) Method and system for reducing heartbeat messages
JP2016511451A (en) System and method for opening network functions and associated network elements
CN110099430B (en) Service equipment switching method and device
CN102395118B (en) Method and device for updating reachability state information of terminal based on adhesion flow
KR20140059494A (en) Method for application hosting by access node and appratus therefor
CN102333294A (en) Method and device for renewing terminal reachable state information based on detaching process

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant