CN102790776B - Heartbeat connection normalizing processing method, terminal, server and communication system - Google Patents

Heartbeat connection normalizing processing method, terminal, server and communication system Download PDF

Info

Publication number
CN102790776B
CN102790776B CN201210275569.XA CN201210275569A CN102790776B CN 102790776 B CN102790776 B CN 102790776B CN 201210275569 A CN201210275569 A CN 201210275569A CN 102790776 B CN102790776 B CN 102790776B
Authority
CN
China
Prior art keywords
heartbeat
heartbeat message
identification information
server
applications client
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
CN201210275569.XA
Other languages
Chinese (zh)
Other versions
CN102790776A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201210275569.XA priority Critical patent/CN102790776B/en
Publication of CN102790776A publication Critical patent/CN102790776A/en
Application granted granted Critical
Publication of CN102790776B publication Critical patent/CN102790776B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a heartbeat connection normalizing processing method, a terminal, a server and a communication system. The heartbeat connection normalizing processing method comprises that heartbeat information carrying with application identifying information sent by at least one application client end is intercepted in a preset time quantum; the intercepted heartbeat information is packed to form a first data packet; and the first data packet is sent to a heartbeat connection normalizing server, and according to the application identifying information, the first data packet is depacketized by the heartbeat connection normalizing server to obtain heartbeat information carrying with same application identifying information and is sent to a corresponding application server by the heartbeat connection normalizing server. With the adoption of the technical scheme provided by the embodiment, occupied network resources during a transmission of heartbeat information can be effectively reduced, use ratio of network resources is further increased, and power consumption is further lowered through the terminal at the same time.

Description

Heartbeat connects normalization method, terminal, server and communication system
Technical field
The present invention relates to communication technical field, particularly relate to a kind of heartbeat and connect normalization method, terminal, server and communication system.
Background technology
Social network services (Social Networking Services, be called for short SNS), instant messaging (Instant Messenger, be called for short IM), the application such as microblogging is the typical apply of current mobile Internet, features of these application are that requirement application remains on line states for a long time.But the environment of wireless network is very complicated, many factors all can cause network interruption, and this just requires that mobile terminal needs continuous Sampling network connection, sends heartbeat message.Even if at network under normal circumstances, these application also can at set intervals, such as 3 ~ 5 minutes, sends a heartbeat message and keep the long-time presence of terminal.
As shown in Figure 1, the applications client A on terminal X sends a heartbeat message a for keeping online needing to resume communication port at set intervals to application server A; In order to keep online, also need to resume another communication port at set intervals sends a heartbeat message b to application server B to applications client B simultaneously.In like manner, the applications client A on terminal Y and applications client B also needs to send a heartbeat message a ' and b ' respectively to application server A and application server B at set intervals.The heartbeat message that each applications client on each user terminal this sends frequently, a large amount of occupies Internet resources, has had a strong impact on the use of Internet resources, causes isdn user to access experience poor, also makes the electric energy loss of terminal aggravate simultaneously.
Summary of the invention
The invention provides a kind of heartbeat and connect normalization method, terminal, server and communication system, to reduce the Internet resources shared by heartbeat message, improve the utilance of Internet resources.
First aspect of the present invention is to provide a kind of heartbeat and connects normalization method, comprising:
The heartbeat message carrying application identification information that at least one applications client sends is tackled in preset time period;
The described heartbeat message intercepted is packaged into the first packet;
Described first Packet Generation is connected normalizing server to heartbeat, to make described heartbeat connect normalizing server according to described application identification information, the heartbeat message carrying same application identification information obtained after process of unpacking to described first packet is sent to corresponding application server.
Second aspect of the present invention is to provide a kind of heartbeat and connects normalization method, comprising:
The first packet that receiving terminal sends, the heartbeat message carrying application identification information that at least one applications client that described first packet is intercepted in preset time period by described terminal sends is packaged into;
Described first packet is unpacked process;
According to the described application identification information that each heartbeat message obtained after process of unpacking carries, the heartbeat message carrying same application identification information is sent to corresponding application server.
3rd aspect of the present invention is to provide a kind of terminal, comprising:
Blocking module, for tackling the heartbeat message carrying application identification information that at least one applications client sends in preset time period;
Package module, for being packaged into the first packet by the described heartbeat message intercepted;
Sending module, for described first Packet Generation is connected normalizing server to heartbeat, to make described heartbeat connect normalizing server according to described application identification information, the heartbeat message carrying same application identification information obtained after process of unpacking to described first packet is sent to corresponding application server.
4th aspect of the present invention is to provide a kind of heartbeat and connects normalizing server, comprising:
Receiver module, for the first packet that receiving terminal sends, the heartbeat message carrying application identification information that at least one applications client that described first packet is intercepted in preset time period by described terminal sends is packaged into;
Processing module, for process of unpacking to described first packet;
Sending module, for the described application identification information of carrying according to each heartbeat message obtained after process of unpacking, is sent to corresponding application server by the heartbeat message carrying same application identification information.
5th aspect of the present invention is to provide a kind of communication system, comprises above-mentioned terminal, and above-mentioned heartbeat connects normalizing server and application server.
As shown from the above technical solution, what the heartbeat message that the embodiment of the present invention is sent by least one applications client terminal intercepted in preset time period was unified is sent to heartbeat connection normalizing server, and the heartbeat message carrying same application identification information in all heartbeat messages that multiple terminal sends is unified is sent to corresponding application server by being received to connect normalizing server by described heartbeat, effectively decrease the Internet resources that heartbeat message takies, further increase the utilance of Internet resources, for terminal, comparatively prior art, terminal decreases the number of times that heartbeat message sends, and then reduce power consumption.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of applications client in prior art in communication system in each terminal and each application server processes heartbeat message;
Fig. 2 is the schematic flow sheet that heartbeat provided by the invention connects normalization embodiment of the method one;
Fig. 3 is the time shaft schematic diagram that applications client A and applications client B send the first instantiation of heartbeat message;
Fig. 4 is the time shaft schematic diagram that applications client A and applications client B send the second instantiation of heartbeat message;
Fig. 5 is the time shaft schematic diagram that applications client A and applications client B send the 3rd instantiation of heartbeat message;
Fig. 6 is the time shaft schematic diagram that applications client A and applications client B send the 4th instantiation of heartbeat message;
Fig. 7 is the schematic flow sheet that heartbeat provided by the invention connects normalization embodiment of the method two;
Fig. 8 is the schematic flow sheet that heartbeat provided by the invention connects normalization embodiment of the method three;
Fig. 9 is the schematic flow sheet that heartbeat provided by the invention connects that in normalization embodiment of the method three, concrete steps realize;
Figure 10 is the schematic flow sheet adopting heartbeat provided by the invention to connect the communication system example of normalization method;
Figure 11 is the structural representation of terminal embodiment one provided by the invention;
Figure 12 is the structural representation of terminal embodiment two provided by the invention;
Figure 13 is the structural representation that heartbeat provided by the invention connects normalizing server example;
Figure 14 is the structural representation that heartbeat provided by the invention connects a concrete module in normalizing server example;
Figure 15 is the structural representation of communications system embodiment provided by the invention.
Embodiment
As shown in Figure 2, heartbeat provided by the invention connects the schematic flow sheet of normalization embodiment of the method one.As shown in the figure, described in the present embodiment, heartbeat connection normalization method comprises:
Step 101, tackle in preset time period at least one applications client send the heartbeat message carrying application identification information.
Particularly, terminal tackles the heartbeat message that in terminal, each applications client sends within each preset time period cycle.Under normal circumstances, in terminal, the moment of each applications client transmission heartbeat message is not identical with interval, described preset time period artificially can set according to the cycle of the transmission heartbeat message of each client reality and heartbeat message delivery time, or by installing corresponding calculation procedure in described terminal, this calculation procedure calculates described time period information automatically according to the time cycle of each applications client transmission heartbeat message and delivery time.Such as, as shown in Figure 3, the heartbeat message of applications client A sends the heartbeat transmission cycle T b=5 minute of cycle T a=2 minute, applications client B.Now described preset time period is chosen as 1 minute, the heartbeat message that namely in terminal every 1 minute interception terminal, each applications client sends.As shown in FIG., when 1 minute, terminal only intercepts the heartbeat message Mb that applications client B sends; When 2 minutes, terminal only intercepts the heartbeat message Ma that applications client A sends; When 3 minutes, terminal does not all intercept heartbeat message Ma and Mb that applications client A and applications client B sends; 4 minutes, terminal intercepted the heartbeat message Ma that applications client A sends; 5 minutes, terminal did not equally all intercept heartbeat message Ma and Mb that applications client A and applications client B sends; When 6 minutes, terminal intercepts heartbeat message Ma and Mb that applications client A and applications client B sends simultaneously; The like, as shown in FIG., at 6 minutes, 16 minutes, 26 minutes ... etc. at interval of 10 minutes, terminal can intercept heartbeat message Ma and Mb that applications client A and applications client B sends simultaneously.Again as shown in Figure 4, the heartbeat message of applications client A sends the heartbeat transmission cycle T b=4 minute of cycle T a=3 minute, applications client B, then now described preset time period must elect 1 minute as.As shown in Figure 4, at 12 minutes, 24 minutes, 36 minutes ... etc. every 12 minutes, terminal can intercept heartbeat message Ma and Mb that applications client A and applications client B sends simultaneously.Again as shown in Figure 5, if the heartbeat message of applications client A sends cycle T a=2 minute, the heartbeat of applications client B sends cycle T b=4 minute, and the heartbeat message delivery time of applications client A differs the multiple of 2 with the heartbeat delivery time of applications client B, then now described preset time period is chosen as 2 minutes.If but as shown in Figure 6, the heartbeat message delivery time of applications client A differs odd-multiple with the heartbeat delivery time of applications client B, then described preset time period can elect 1 minute as.In example shown in Fig. 5, terminal just can intercept heartbeat message Ma and Mb that applications client A and applications client B sends simultaneously every 4 minutes, namely at 4 minutes, 8 minutes, 12 minutes, 16 minutes ... etc..
Step 102, the described heartbeat message intercepted is packaged into the first packet.
Particularly, all heartbeat messages tackled in preset time period are encapsulated as first packet by terminal, take a communication port just send unified for the heartbeat message of at least one applications client intercepted transmission to make terminal.By the example shown in above-mentioned Fig. 3 to Fig. 6, the heartbeat message that an applications client may be only had to send of encapsulation in described first packet, also may have the heartbeat message that two or more applications client sends.
Step 103, described first Packet Generation is connected normalizing server to heartbeat, to make described heartbeat connect normalizing server according to described application identification information, the heartbeat message carrying same application identification information obtained after process of unpacking to described first packet is sent to corresponding application server.
Particularly, the first Packet Generation including the heartbeat message that at least one applications client sends is connected normalizing server to heartbeat by terminal.Described heartbeat connects normalizing server after receiving described first packet that each terminal sends, and to unpack process, draw each heartbeat message to described first packet.Then, described heartbeat connects the application identification information that normalizing server carries according to each heartbeat message, the heartbeat message carrying same application identification information is sent to corresponding application server, generates interdependent response message to make described application server according to described heartbeat message.Here it should be noted that: the example as shown in above-mentioned Fig. 3 to Fig. 6, is the interception heartbeat message that sends less than any one applications client in some moment terminal.Therefore in these moment, terminal can not encapsulate described first packet, therefore also can not connect normalizing server to described heartbeat and send any data message.
In the present embodiment, although terminal only tackles the heartbeat message of 1 applications client transmission in some moment, but from continuous print, for a long time, terminal every n minute, the such as n=10 minute of example shown in Fig. 3, example n=12 minute as shown in Figure 4, the such as n=4 minute of example shown in Fig. 5, just can tackle the heartbeat message of two or the transmission of two methods client simultaneously.In these moment, what the heartbeat message that at least one applications client simultaneously intercepted just can send by terminal was unified is sent to heartbeat connection normalizing server, connects normalizing server be sent to corresponding application server by unified for the heartbeat message carrying same application identification information to make described heartbeat.The technical scheme that the present embodiment provides, the heartbeat message that can simultaneously send intercepted unification is taken a communication port transmit, avoid each heartbeat message transmission in prior art and need to take respectively the problem of Internet resources, effectively decrease the Internet resources taken needed for heartbeat message transmission, further increase the utilance of Internet resources.For terminal, the heartbeat message that two or more applications client sends can be sent simultaneously, comparatively prior art sends respectively, can effectively reduce the power consumption of terminal.
Here it should be noted that: the initial time that each applications client that terminal is loaded sends heartbeat message is indefinite, and this depends primarily on the time that user runs this applications client.The applications client that each moment terminal is being run may change, namely the applications client likely terminal had is out of service, some applications client bring into operation and send the cycle according to own heartbeat and send heartbeat message, or the applications client had out of service after be restarted operation etc. again.Such as, the example shown in above-mentioned Fig. 5 and Fig. 6, applications client B sends heartbeat message according to the time shown in Fig. 5.When applications client B runs again, applications client B there occurs change because of the startup optimization time, the moment that the moment of applications client B transmission heartbeat message and applications client A send heartbeat message there occurs change, within two minutes, become 1 minute from original interval, time as shown in Figure 6 sends heartbeat message particularly.After applications client B sends heartbeat message with the time shown in Fig. 6, terminal all can not intercept the heartbeat message that applications client A and applications client B sends at any time simultaneously.For a terminal, now above-described embodiment provided by the invention may be identical with prior art.But the embodiment of the present invention is adapted in whole communication system, each terminal adopts the heartbeat described in the present embodiment to connect normalization method, always there is at least one terminal at a time can tackle the heartbeat message of two or more applications client transmission simultaneously, comparatively prior art is compared, and also can be reduced to the Internet resources of transmission shared by heartbeat message.In addition, the application identification information that the heartbeat message that synchronization is also received by described heartbeat connection normalizing server by embodiment provided by the invention carries according to heartbeat message, the heartbeat message carrying same application identification information is sent to corresponding application server, compared with prior art for each heartbeat message provides Internet resources, effectively can reduce taking of the transmission channel resource of transmission heartbeat message, further provide the utilance of Internet resources.
Further, as shown in Figure 7, heartbeat provided by the invention connects the schematic flow sheet of normalization embodiment of the method two.The present embodiment two comprises the step 101 described in above-described embodiment one, 102 and 103, and adds following steps before step 101:
Step 104, receive described applications client send registration request.
Particularly, terminal receives the registration request that the applications client in described terminal sends.This registration request applications client can send registration request from trend terminal when terminal installs described applications client, the register interface that also can be provided by terminal by user is triggered, and to terminal sends log-on message after receiving the triggering signal that user sent by register interface to make the applications client be arranged in described terminal.
Step 105, according to described registration request, be described applications client configuration registry identification information.
Particularly, terminal, according to the registration request being received from applications client transmission, for applications client configures corresponding sign-on ID information, only tackles the heartbeat message of the applications client transmission being configured with described sign-on ID information to make terminal.Namely in preset time period, tackle the heartbeat message carrying application identification information that at least one applications client sends in above-described embodiment in step 101, be specially: in preset time period, tackle the heartbeat message carrying application identification information that at least one applications client being configured with described sign-on ID information sends.
By the present embodiment, terminal optionally only connects normalization method to the heartbeat that applications client terminal being configured with sign-on ID information adopts the present embodiment to provide, and improves the use flexibility that heartbeat provided by the invention connects normalization method.
As shown in Figure 8, heartbeat provided by the invention connects the schematic flow sheet of normalization embodiment of the method three.As shown in FIG., described in the present embodiment, heartbeat connection normalization method comprises:
The first packet that step 201, receiving terminal send, the heartbeat message carrying application identification information that at least one applications client intercepted in preset time period sends is packaged into by described terminal by described first packet.
Specifically he, in a communications system, heartbeat message normalizing server synchronization can receive at least one terminal send the first packet.Wherein, the first packet includes the heartbeat message that at least one applications client be arranged in described terminal sends.
Step 202, process that described first packet unpacked.
Particularly, heartbeat message normalizing server, after receiving described first packet, can be unpacked process to described first packet, to obtain each heartbeat message of described first packet encapsulation, to complete subsequent step.
Step 203, the described application identification information of carrying according to each heartbeat message obtained after process of unpacking, be sent to corresponding application server by the heartbeat message carrying same application identification information.
Particularly, the described application identification information that heartbeat message normalizing server carries according to each heartbeat message obtained after process of unpacking, is sent to corresponding application server by the heartbeat message carrying same application identification information.In fact, heartbeat message normalizing server can receive the first packet that multiple terminal sends simultaneously.The heartbeat message that at least one applications client in the terminal sending this first packet sends all is packaged with in each first packet.The applications client of the transmission heartbeat message in each terminal may be different, and possible part is identical, also may be all identical.Such as, the heartbeat message that the first applications client on the first packet encapsulation first terminal of sending of first terminal and second applications client send.The heartbeat message that the second applications client in the first packet encapsulation the second terminal that second terminal sends and the 3rd applications client send.First, after heartbeat message normalizing server receives the first packet of first terminal transmission and the first packet of the second terminal transmission, first packet that can send these two terminals is unpacked process, to obtain the heartbeat message that the first applications client on first terminal and the second applications client send, and the heartbeat message that the second applications client in the second terminal and the 3rd applications client send.Then, the described application identification information that heartbeat message normalizing server carries according to each heartbeat message, is sent to the application server for the treatment of the first applications client by the heartbeat message that the first applications client on first terminal sends; The heartbeat message that the second applications client in the heartbeat message of the second applications client transmission on first terminal and the second terminal sends is sent to the application server for the treatment of the second applications client; The heartbeat message that the 3rd applications client in second terminal sends is sent to the application server for the treatment of the 3rd applications client.
In the present embodiment, heartbeat connects the application identification information of normalizing server by carrying according to each heartbeat message encapsulated in described first packet received, corresponding application server is sent to by unified for the heartbeat message carrying same application identification information, compared with prior art for each heartbeat message provides Internet resources needed for transmission, the present embodiment effectively can reduce the Internet resources taken needed for transmission heartbeat message, further increases the utilance of Internet resources.
Further, the described application identification information that each heartbeat message that in above-described embodiment three, step 203, basis obtain after unpacking and processing carries, the heartbeat message carrying same application identification information is sent to corresponding application server, as shown in Figure 9, specifically can be realized by following steps:
Step 2031, the described application identification information of carrying according to each heartbeat message obtained after process of unpacking, be encapsulated as the second packet by the heartbeat message carrying same application identification information.
Particularly, heartbeat connects the described application identification information that normalizing server carries according to each heartbeat message obtained after process of unpacking, and the heartbeat message carrying same application identification information is encapsulated as the second packet.Wherein, the object that the heartbeat message carrying same application identification information is encapsulated as the second packet by heartbeat connection normalizing server is the application server being sent to correspondence that the heartbeat message in order to carry same application identification information is unified, to reduce the Internet resources sent shared by heartbeat message, improve the utilance of Internet resources further.
Step 2032, by described second Packet Generation to the application server corresponding with the application identification information that each heartbeat message in described second packet carries.
Particularly, heartbeat connects normalizing server by described second Packet Generation to the application server corresponding with the application identification information that each heartbeat message in described second packet carries.Wherein, described second packet encapsulation has heartbeat message, and described heartbeat message carries application identification information.In order to can by the second packaged Packet Generation to corresponding application server, described heartbeat connects normalizing server can carry destination application server in this packet address information when encapsulating described second packet.
Below in conjunction with application example as shown in the figure, normalization method is connected to heartbeat provided by the invention and is further described.Particularly, application example as shown in Figure 10, comprises first terminal and the second terminal, wherein, described first terminal is provided with the first applications client and the second applications client.Described second terminal is also provided with the first applications client and the second applications client.The first applications client on described first terminal and the first applications client in the second terminal have identical application identification information, similarly, the second applications client on described first terminal and the second applications client in the second terminal have identical application identification information.
Step 301, first terminal tackle the heartbeat message of the first applications client and the second applications client transmission be arranged on described first terminal at Preset Time.Similarly, the second terminal tackles the heartbeat message of the first applications client and the second applications client transmission be arranged in described second terminal at Preset Time.Application identification information is carried in described heartbeat message.
Step 302, described first terminal are sent to heartbeat after the heartbeat message that the first applications client and the second applications client send is encapsulated as the first packet and are connected normalizing server 3022, similarly, described second terminal is also sent to heartbeat after the heartbeat message that the first applications client and the second applications client send is encapsulated as the first packet and is connected normalizing server 3022.
Step 303, heartbeat connect normalizing server 3022 and the first packet being received from first terminal and the transmission of the second terminal are carried out process of unpacking, and draw the first applications client that each terminal sends and the heartbeat message that the second applications client sends.Then, the heartbeat message that the first applications client of the first applications client and the second terminal that carry the first terminal of same application identification information sends is sent to the first application server 3031 by the application identification information that heartbeat connection normalizing server 3022 carries according to described heartbeat message; The heartbeat message that second applications client of the second applications client and the second terminal that carry the first terminal of same application identification information sends is sent to the second application server 3032.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that program command is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
As shown in figure 11, the structural representation of terminal embodiment provided by the invention.As shown in FIG., described terminal comprises: blocking module 1, package module 2 and sending module 3.Wherein, described blocking module 1 for tackling the heartbeat message carrying application identification information of at least one applications client transmission in preset time period.Package module 2 is for being packaged into the first packet by the described heartbeat message intercepted.Sending module 3 is for connecting normalizing server by described first Packet Generation to heartbeat, to make described heartbeat connect normalizing server according to described application identification information, the heartbeat message carrying same application identification information obtained after process of unpacking to described first packet is sent to corresponding application server.Terminal described in the present embodiment can realize above-mentioned heartbeat and connect the step described in normalization embodiment of the method one, realizes principle particularly and connects the content described in normalization embodiment of the method one with above-mentioned heartbeat, repeat no more herein.
What the heartbeat message that the present embodiment is sent by least one applications client terminal intercepted in preset time period was unified is sent to heartbeat connection normalizing server, and the heartbeat message carrying same application identification information in all heartbeat messages that multiple terminal sends is unified is sent to corresponding application server by being received to connect normalizing server by described heartbeat, effectively decrease the Internet resources that heartbeat message takies, further increase the utilance of Internet resources.In addition, for terminal, the heartbeat message that two or more applications client sends can be sent simultaneously, comparatively prior art sends respectively, can effectively reduce the power consumption of terminal.
Further, as shown in figure 12, the terminal described in above-described embodiment can also comprise: receiver module 41 and Registering modules 42.Wherein, described receiver module 41 is for receiving the registration request of described applications client transmission.Described Registering modules 42, for according to described registration request, is described applications client configuration registry identification information.Correspondingly, the blocking module 1 described in above-described embodiment one also for tackling the heartbeat message carrying application identification information that at least one applications client being configured with described sign-on ID information sends in preset time period.The registration request that applications client described in the present embodiment sends can send registration request when terminal installs described applications client from trend terminal, sends after the triggering signal that also can send in the register interface receiving user and provided by terminal.By arranging above-mentioned two modules, terminal optionally only adopts heartbeat to connect normalization to the applications client being configured with sign-on ID information, improves the use flexibility of terminal.Receiver module described in this enforcement is connected the content described in normalization embodiment of the method two with the operation principle of described Registering modules with above-mentioned heartbeat, repeats no more herein.
As shown in figure 13, heartbeat provided by the invention connects the structural representation of normalizing server example.As shown in FIG., described heartbeat connection normalizing server comprises: receiver module 5, processing module 6 and sending module 7.Wherein, the first packet that described receiver module 5 sends for receiving terminal, the heartbeat message carrying application identification information that at least one applications client intercepted in preset time period sends is packaged into by described terminal by described first packet.Described processing module 6 is for process of unpacking to described first packet.The heartbeat message carrying same application identification information, for the described application identification information of carrying according to each heartbeat message obtained after process of unpacking, is sent to corresponding application server by described sending module 7.Heartbeat described in the present embodiment connects normalizing server can realize the step described in above-mentioned heartbeat connection normalization embodiment of the method three, realizes principle particularly and connects the content described in normalization embodiment of the method three with above-mentioned heartbeat, repeat no more herein.
In the present embodiment, heartbeat connects the application identification information of normalizing server by carrying according to each heartbeat message encapsulated in described first packet of at least one terminal transmission received, corresponding application server is sent to by unified for the heartbeat message carrying same application identification information, effectively decrease the Internet resources that heartbeat message takies, further increase the utilance of Internet resources.
Further, as shown in figure 14, the sending module 7 described in above-mentioned heartbeat connection normalizing server example comprises: encapsulation unit 701 and transmitting element 702.Wherein, the heartbeat message carrying same application identification information, for the described application identification information of carrying according to each heartbeat message obtained after process of unpacking, is encapsulated as the second packet by described encapsulation unit 701.Described transmitting element 702 for by described second Packet Generation to the application server corresponding with the application identification information that each heartbeat message in described second packet carries.Encapsulation unit described in this enforcement is connected the corresponding contents described in normalization embodiment of the method three with the operation principle of described transmitting element with above-mentioned heartbeat, repeats no more herein.
As shown in Figure 15, the structural representation of communications system embodiment provided by the invention.As shown in FIG., described in the present embodiment, communication system comprises: terminal 8, heartbeat connect normalizing server 9 and application server 10.Wherein, the heartbeat message carrying application identification information that described terminal 8 sends for tackling at least one applications client in preset time period, the described heartbeat message intercepted is packaged into the first packet, and described first Packet Generation is connected normalizing server to heartbeat.Described heartbeat connects the first packet that normalizing server 9 sends for receiving terminal, described first packet is unpacked process, according to the described application identification information that each heartbeat message obtained after process of unpacking carries, the heartbeat message carrying same application identification information is sent to corresponding application server.Described application server 10 for receiving heartbeat message, and exports corresponding response message according to heartbeat message.Particularly, the terminal described in the present embodiment can adopt the terminal described in above-described embodiment, and described heartbeat connects normalizing server and the heartbeat described in above-described embodiment can be adopted to connect normalizing server.Communication system shown in Figure 10 is an embody rule example of the described communication system that the present embodiment provides.
What the heartbeat message that the present embodiment is sent by multiple applications client terminal intercepted in preset time period was unified is sent to heartbeat connection normalizing server, and the heartbeat message carrying same application identification information in all heartbeat messages that multiple terminal sends is unified is sent to corresponding application server by being received to connect normalizing server by described heartbeat, effectively decrease the Internet resources that heartbeat message takies, further increase the utilance of Internet resources.For terminal, the present embodiment can also effectively reduce the power consumption of terminal.
Further, the terminal described in above-described embodiment for receiving the registration request that described applications client sends, is also described applications client configuration registry identification information according to described registration request; The heartbeat message carrying application identification information that at least one applications client being configured with described sign-on ID information sends is tackled in preset time period.Particularly, described terminal can adopt the terminal described in above-described embodiment one, and the detailed principle that realizes connects the content described in normalization embodiment of the method two with above-mentioned heartbeat, repeats no more herein.
Again further, heartbeat described in above-mentioned enforcement connects the described application identification information of normalizing server also for carrying according to each heartbeat message obtained after process of unpacking, the heartbeat message carrying same application identification information is encapsulated as the second packet, by described second Packet Generation to the application server corresponding with the application identification information that each heartbeat message in described second packet carries.Particularly, described heartbeat connects normalizing server and the heartbeat described in above-described embodiment can be adopted to connect normalizing server, and the detailed principle that realizes connects the content described in normalization embodiment of the method three with above-mentioned heartbeat, repeats no more herein.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (5)

1. heartbeat connects a normalization method, it is characterized in that, comprising:
The heartbeat message carrying application identification information that at least one applications client sends is tackled in preset time period;
The described heartbeat message intercepted is packaged into the first packet;
Described first Packet Generation is connected normalizing server to heartbeat, to make described heartbeat connect normalizing server according to described application identification information, the heartbeat message carrying same application identification information obtained after process of unpacking to described first packet is sent to corresponding application server;
Described tackle in preset time period at least one applications client send carry the heartbeat message of application identification information before, also comprise:
Receive the registration request that described applications client sends;
According to described registration request, it is described applications client configuration registry identification information;
Correspondingly, in preset time period, tackle the heartbeat message carrying application identification information that at least one applications client sends, be specially:
The heartbeat message carrying application identification information that at least one applications client being configured with described sign-on ID information sends is tackled in preset time period.
2. heartbeat connects a normalization method, it is characterized in that, comprising:
The first packet that receiving terminal sends, the heartbeat message carrying application identification information that at least one applications client that described first packet is intercepted in preset time period by described terminal sends is packaged into;
Described first packet is unpacked process;
According to the described application identification information that each heartbeat message obtained after process of unpacking carries, the heartbeat message carrying same application identification information is sent to corresponding application server;
The described application identification information that each heartbeat message that described basis obtains after unpacking and processing carries, is sent to corresponding application server, comprises by the heartbeat message carrying same application identification information:
According to the described application identification information that each heartbeat message obtained after process of unpacking carries, the heartbeat message carrying same application identification information is encapsulated as the second packet;
By described second Packet Generation to the application server corresponding with the application identification information that each heartbeat message in described second packet carries.
3. a terminal, is characterized in that, comprising:
Blocking module, for tackling the heartbeat message carrying application identification information that at least one applications client sends in preset time period;
Package module, for being packaged into the first packet by the described heartbeat message intercepted;
Sending module, for described first Packet Generation is connected normalizing server to heartbeat, to make described heartbeat connect normalizing server according to described application identification information, the heartbeat message carrying same application identification information obtained after process of unpacking to described first packet is sent to corresponding application server;
Receiver module, for receiving the registration request that described applications client sends;
Registering modules, for according to described registration request, is described applications client configuration registry identification information;
Correspondingly, described blocking module, also for tackling the heartbeat message carrying application identification information that at least one applications client being configured with described sign-on ID information sends in preset time period.
4. heartbeat connects a normalizing server, it is characterized in that, comprising:
Receiver module, for the first packet that receiving terminal sends, the heartbeat message carrying application identification information that at least one applications client that described first packet is intercepted in preset time period by described terminal sends is packaged into;
Processing module, for process of unpacking to described first packet;
Sending module, for the described application identification information of carrying according to each heartbeat message obtained after process of unpacking, is sent to corresponding application server by the heartbeat message carrying same application identification information;
Described sending module comprises:
Encapsulation unit, for the described application identification information of carrying according to each heartbeat message obtained after process of unpacking, is encapsulated as the second packet by the heartbeat message carrying same application identification information;
Transmitting element, for by described second Packet Generation to the application server corresponding with the application identification information that each heartbeat message in described second packet carries.
5. a communication system, it is characterized in that, comprising: terminal, heartbeat connect normalizing server and application server, wherein, described terminal is the terminal described in the claims 3, and described heartbeat connects normalizing server for the heartbeat connection normalizing server described in the claims 4.
CN201210275569.XA 2012-08-03 2012-08-03 Heartbeat connection normalizing processing method, terminal, server and communication system Active CN102790776B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210275569.XA CN102790776B (en) 2012-08-03 2012-08-03 Heartbeat connection normalizing processing method, terminal, server and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210275569.XA CN102790776B (en) 2012-08-03 2012-08-03 Heartbeat connection normalizing processing method, terminal, server and communication system

Publications (2)

Publication Number Publication Date
CN102790776A CN102790776A (en) 2012-11-21
CN102790776B true CN102790776B (en) 2015-02-04

Family

ID=47156076

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210275569.XA Active CN102790776B (en) 2012-08-03 2012-08-03 Heartbeat connection normalizing processing method, terminal, server and communication system

Country Status (1)

Country Link
CN (1) CN102790776B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916424B (en) * 2012-12-31 2018-05-22 中国移动通信集团广东有限公司 A kind of method, communication terminal and the communication network of management and control application program heartbeat packet
CN103532784A (en) * 2013-10-17 2014-01-22 中国联合网络通信集团有限公司 Method and system for transmitting heartbeat messages, terminal and network equipment
CN103634409B (en) * 2013-12-12 2017-08-04 中国联合网络通信集团有限公司 Realize that mobile Internet applies always online method and system
CN103731910B (en) * 2014-01-16 2017-04-26 中国联合网络通信集团有限公司 Timing reminding method, terminal and server
CN103945455A (en) * 2014-04-25 2014-07-23 中国联合网络通信集团有限公司 Method and device for sending self-adaptive heartbeat data packets
CN105101295B (en) * 2014-05-07 2019-06-25 中国移动通信集团公司 A kind of heartbeat message sending method and device
CN104022922B (en) * 2014-06-27 2017-06-13 北京邮电大学 Mobile terminal, heartbeat forwarding server and heartbeat message sending method and system
CN105307139B (en) * 2014-07-31 2019-02-26 中国电信股份有限公司 A kind of method, mobile terminal and the system of transmission application heartbeat signal
CN104883279B (en) * 2015-04-13 2018-05-18 中国联合网络通信集团有限公司 Heartbeat message processing method, equipment and system
CN105933199B (en) * 2016-04-08 2019-07-09 武汉斗鱼网络科技有限公司 A kind of method and gateway and chat server keeping heartbeat connection
CN107306282B (en) * 2016-04-20 2019-08-30 中国移动通信有限公司研究院 A kind of link keep-alive method and device
CN105978966B (en) * 2016-05-10 2019-03-05 北京奇虎科技有限公司 A kind of data transmission method and device of mobile terminal
WO2019100268A1 (en) * 2017-11-22 2019-05-31 深圳市沃特沃德股份有限公司 Method and apparatus for connecting engine
CN109602413A (en) * 2018-12-06 2019-04-12 Oppo广东移动通信有限公司 Heartbeat detecting method, device, storage medium and server
CN111371639A (en) * 2020-02-21 2020-07-03 腾讯科技(深圳)有限公司 Network delay analysis method and device, storage medium and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002044892A2 (en) * 2000-11-28 2002-06-06 4Thpass Inc. Method and system for maintaining and distributing wireless applications
CN1825812A (en) * 2005-02-25 2006-08-30 华为技术有限公司 System and method for managing network web log information
DE102007060522A1 (en) * 2006-12-13 2008-06-19 Avaya Technology Llc Maintaining communication between network nodes experiencing a packet attack
CN101217512A (en) * 2008-01-11 2008-07-09 腾讯科技(深圳)有限公司 A client-end state maintenance method, system, client-end and application server
CN101753984A (en) * 2008-11-27 2010-06-23 北京中星微电子有限公司 Processing method of video monitoring system journals, system and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002044892A2 (en) * 2000-11-28 2002-06-06 4Thpass Inc. Method and system for maintaining and distributing wireless applications
CN1825812A (en) * 2005-02-25 2006-08-30 华为技术有限公司 System and method for managing network web log information
DE102007060522A1 (en) * 2006-12-13 2008-06-19 Avaya Technology Llc Maintaining communication between network nodes experiencing a packet attack
CN101217512A (en) * 2008-01-11 2008-07-09 腾讯科技(深圳)有限公司 A client-end state maintenance method, system, client-end and application server
CN101753984A (en) * 2008-11-27 2010-06-23 北京中星微电子有限公司 Processing method of video monitoring system journals, system and server

Also Published As

Publication number Publication date
CN102790776A (en) 2012-11-21

Similar Documents

Publication Publication Date Title
CN102790776B (en) Heartbeat connection normalizing processing method, terminal, server and communication system
EP3195566B1 (en) Service layer interworking using mqtt protocol
CN102869125B (en) Data card and its communication means, system
CN108419452B (en) Apparatus and method for managing remote web clients for applications on a mobile device
CN102857505B (en) A kind of Internet of Things data bus middleware system
CN101953139B (en) DHCP in response to Internet connectedness initializes
EP2339792A1 (en) Method for accessing USB device attached to home gateway, home gateway and terminal
WO2019029320A1 (en) Configuration management method, apparatus and device
US20150067066A1 (en) Provisioning Communication Services using Proxy Server in a Cloud
CN103618667A (en) Information transfer method, access gateway and system
KR20180059386A (en) Delegation server for connecting a plurality of lpwa devices to common cloud
EP2913977A2 (en) Resource information acquisition method, system and device for internet of things terminal device
CN107395572B (en) Data processing method and Internet of things gateway
CN107566377B (en) Method for carrying out multi-protocol adaptation on charging device and charging device
CN108810936A (en) A kind of configuration method and device of LoRa terminals
CN106302432B (en) A kind of communication device and control method based on car networking
EP3032801A1 (en) Method and device for generating forwarding information
CN105190530A (en) Transmitting hardware-rendered graphical data
CN102802178B (en) Service application optimized treatment method, device, terminal and communication system
CN104270444A (en) Method capable of being used for configuring mobile phone application menu
CN102480475B (en) Web service safety access control method, apparatus and system thereof
CN108289165A (en) A kind of implementation method, device and terminal device controlling camera based on mobile phone
CN105591723A (en) VNF stacking method and apparatus
Corches et al. Interconnection of Systems with Cloud-Fog-Edge architectures: Concept and Challenges
CN105357445A (en) Internet of things system

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