CN104883279B - Heartbeat message processing method, equipment and system - Google Patents

Heartbeat message processing method, equipment and system Download PDF

Info

Publication number
CN104883279B
CN104883279B CN201510174050.6A CN201510174050A CN104883279B CN 104883279 B CN104883279 B CN 104883279B CN 201510174050 A CN201510174050 A CN 201510174050A CN 104883279 B CN104883279 B CN 104883279B
Authority
CN
China
Prior art keywords
equipment
application
heartbeat message
message
server
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
CN201510174050.6A
Other languages
Chinese (zh)
Other versions
CN104883279A (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 CN201510174050.6A priority Critical patent/CN104883279B/en
Publication of CN104883279A publication Critical patent/CN104883279A/en
Application granted granted Critical
Publication of CN104883279B publication Critical patent/CN104883279B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session

Landscapes

  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the present invention provides a kind of heartbeat message processing method, equipment and system, if the line duration applied in the first equipment is more than default threshold value, pseudo- heartbeat message is then sent using corresponding server to this according to the first palmic rate by the second equipment, and it is returned to the first equipment and starts response message, so as to which the first equipment stops sending the first heartbeat message corresponding with the first palmic rate to server according to response message is started, and monitor the online situation of the application.It is achieved thereby that focusing on the heartbeat message of the long application on site in the first equipment by the second equipment, reduce the signaling quantity of direct interaction heartbeat message between the first equipment and server, reduce the possibility of signaling storm.

Description

Heartbeat message processing method, equipment and system
Technical field
The present invention relates to a kind of field of communication technology more particularly to heartbeat message processing method, equipment and systems.
Background technology
User opens many social network services classes according to the needs of itself on terminal side equipment or seeks advice from class Using terminal side equipment can include cell phone apparatus, IPAD equipment, computer equipment etc..To open wechat application on mobile phone Exemplified by illustrate, these applications generally can be online for a long time, but use state may not be at the moment, in order to lead to when not in use Know the presence of server itself, server is avoided to be interrupted with it, it is necessary to should to the wechat of network side according to default frequency Heartbeat message is sent with server, so that application server knows the state of the application, is not interrupted with it.
However, terminal side equipment frequently sends heartbeat message to the server positioned at network side, when information content is larger, It can cause signaling storm.
The content of the invention
The present invention provides a kind of heartbeat message processing method, equipment and system, to solve substantial amounts of in the prior art occupy Internet resources, have seriously affected the use of Internet resources, and the network user is caused to access the technological deficiency of experience difference.
According to the first aspect of the invention, a kind of heartbeat message processing method is provided, including:
The pseudo- heart pattern instruction that at least one first equipment is sent is received, the puppet heart pattern instruction includes:First The first flag information of equipment, the second identifier information of application, with first heartbeat using corresponding first heartbeat message Frequency, wherein, first heartbeat message is that first equipment is sent to server corresponding with the second identifier information Message, it is default that the puppet heart pattern instruction is that first equipment judgement knows that the line duration of the application is more than or equal to Threshold value when send;
Include the pseudo- heartbeat message of the first flag information to server transmission according to first palmic rate, And returned to first equipment and start response message, so that first equipment stops sending first heartbeat message, and Monitor the online situation of the application.
According to the second aspect of the invention, a kind of heartbeat message processing method is provided, including:
The line duration of application is monitored, judges whether the line duration is more than or equal to default threshold value;
If judgement knows that the line duration is more than or equal to the threshold value, send pseudo- heart pattern to the second equipment and refer to Order, the puppet heart pattern instruction include:First flag information, the second identifier of application of the first equipment where the application Information, with first palmic rate using corresponding first heartbeat message, wherein, first heartbeat message is described The message that one equipment is sent to server corresponding with the second identifier information, so that second equipment is according to described first Palmic rate includes the pseudo- heartbeat message of the first flag information to server transmission;
The startup response message that second equipment returns is received, stops sending first heartbeat to the server Message, and monitor the online situation of the application.
According to the third aspect of the invention we, a kind of second equipment is provided, including:
First receiving module, for receiving the pseudo- heart pattern instruction that at least one first equipment is sent, the puppet heartbeat Mode instruction includes:The first flag information of first equipment, the second identifier information of application, first heart corresponding with the application Jump the first palmic rate of message, wherein, first heartbeat message be first equipment to the second identifier information The message that corresponding server is sent, the puppet heart pattern instruction are that the online of the application is known in the first equipment judgement Time is more than or equal to what is sent during default threshold value;
First processing module, for including the first flag to server transmission according to first palmic rate The pseudo- heartbeat message of information, and returned to first equipment and start response message, so that first equipment stops sending institute The first heartbeat message is stated, and monitors the online situation of the application.
According to the fourth aspect of the invention, a kind of first equipment is provided, including:
Monitoring modular for monitoring the line duration of application, judges whether the line duration is more than or equal to default threshold Value;
If sending module for judging to know that the line duration is more than or equal to the threshold value, is sent to the second equipment Pseudo- heart pattern instruction, the puppet heart pattern instruction include:The first flag information of the first equipment where the application is answered Second identifier information, with first palmic rate using corresponding first heartbeat message, wherein, first heartbeat Message is the message that first equipment is sent to server corresponding with the second identifier information, so that second equipment Include the pseudo- heartbeat message of the first flag information to server transmission according to first palmic rate;
Second processing module for receiving the startup response message that second equipment returns, stops to the service Device sends first heartbeat message, and monitors the online situation of the application.
According to the fifth aspect of the invention, a kind of heartbeat message processing system is provided, including:It is server, as described above Second equipment and at least one first equipment.
Heartbeat message processing method provided in an embodiment of the present invention, equipment and system, if that is applied in the first equipment is online Time is more than default threshold value, then pseudo- to being sent with this using corresponding server according to the first palmic rate by the second equipment Heartbeat message, and returned to the first equipment and start response message, so as to which the first equipment stops according to response message is started to service Device sends the first heartbeat message corresponding with the first palmic rate, and monitors the online situation of the application.It is it is achieved thereby that logical The heartbeat message for the long application on site that the second equipment is focused in the first equipment is crossed, is reduced between the first equipment and server The signaling quantity of direct interaction heartbeat message reduces the possibility of signaling storm.
Description of the drawings
It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow diagram of heartbeat message processing method embodiment one of the present invention;
Fig. 2 is the flow diagram of heartbeat message processing method embodiment two of the present invention;
Fig. 3 is the flow diagram of heartbeat message processing method embodiment three of the present invention;
Fig. 4 is the flow diagram of heartbeat message processing method example IV of the present invention;
Fig. 5 is the structure diagram of the second apparatus embodiments one of the invention;
Fig. 6 is the structure diagram of the second apparatus embodiments two of the invention;
Fig. 7 is the structure diagram of the first apparatus embodiments one of the invention;
Fig. 8 is the structure diagram of the first apparatus embodiments two of the invention;
Fig. 9 is the structure diagram of heartbeat message processing system embodiment one of the present invention.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art All other embodiments obtained without creative efforts belong to the scope of protection of the invention.
Fig. 1 be heartbeat message processing method embodiment one of the present invention flow diagram, heartbeat report provided in this embodiment Literary processing method is used in the second equipment, and the second equipment is the gateway device being arranged between access net and internet, either The equipment such as the server in access net or internet are arranged on, as shown in Figure 1, this method includes:
Step 100, the pseudo- heart pattern instruction that at least one first equipment is sent, the puppet heart pattern instruction bag are received It includes:The first flag information of first equipment, the second identifier information of application, with described using the of corresponding first heartbeat message One palmic rate, wherein, first heartbeat message is first equipment to service corresponding with the second identifier information The message that device is sent, the puppet heart pattern instruction are that the first equipment judgement knows that the line duration of the application is more than It is sent when default threshold value;
The first equipment involved in the present embodiment can be cell phone apparatus, IPAD equipment, computer equipment etc..User according to Itself need open the application of many social network services on the first device, such as QQ, wechat instant messaging class should With the application of, the consulting class such as microblogging, news, the characteristics of these applications is to keep presence on the first device for a long time. Application on site avoids server from being interrupted with it, it is necessary to according to pre- to notify the presence of server itself when not in use If frequency send heartbeat message to corresponding application server so that application server knows the state of the application, not with its It interrupts.
Whether the line duration of the first monitoring of equipment application on site judges the line duration of the application more than or equal to default Threshold value, if judging to know that line duration is less than the threshold value, which continues through the first equipment and applies corresponding clothes to this Business device sends heartbeat message, if judging to know that line duration is more than or equal to the threshold value, the first equipment sends puppet to the second equipment Heart pattern instructs, and puppet heart pattern instruction includes:The first flag information of first equipment, the second identifier of application letter Breath, with this using the first palmic rate of corresponding first heartbeat message, wherein, first heartbeat message be the first equipment to This applies the message that corresponding server is sent.
Second equipment carries out parsing to the pseudo- heart pattern instruction that at least one first equipment is sent and obtains the first equipment First flag information, application second identifier information, with this using corresponding first heartbeat message the first palmic rate.
Step 101, the puppet of the first flag information is included to server transmission according to first palmic rate Heartbeat message, and returned to first equipment and start response message, so that first equipment stops sending first heart Message is jumped, and monitors the online situation of the application.
Second equipment sends to server corresponding with the second identifier information of the application according to first palmic rate and wraps The pseudo- heartbeat message of the first flag information is included, first is obtained so as to which the server carries out the pseudo- heartbeat message received parsing Identification information, so as to know that this applies the presence in the first equipment corresponding with the first flag information.
Then the second equipment to the first equipment return start response message, the first equipment receive the startup response message it Afterwards, stop sending the first heartbeat message using corresponding server to this according to the first palmic rate, and monitor the application Online situation.So as to which the first equipment no longer directly directly transmits the first heartbeat message by accessing net to the server of network side, But the online situation of the application is only monitored, while authorize the second equipment of network side that the first device-to-server is replaced to send puppet Heartbeat message so that server knows the presence of the application on the first device.Wherein, the first monitoring of equipment application There are many mode of online situation, can make choice, be illustrated below as needed:Mode one, the first equipment pass through kernel Processor checks that application process judges whether the application is online according to default palmic rate, such as the first palmic rate, mode Two, application process is sent out according to default palmic rate, such as the first palmic rate by signal transmitting module to core processor Heartbeat message is sent, whether the application of notice core processor is online;
It should be noted that the second equipment if the equipment such as server being arranged in access net, can focus on the The heartbeat message of long application on site in one equipment reduces direct interaction heartbeat message between numerous first equipment and server Signaling quantity;Second equipment is if the gateway device being arranged between access net and internet or is provided in internet In the equipment such as server, since the first equipment is located in access net, reduction access net that can be further and interconnection Space interface signaling between net.
Heartbeat message processing method provided in this embodiment, if the line duration applied in the first equipment is more than default threshold Value then sends pseudo- heartbeat message to this according to the first palmic rate by the second equipment using corresponding server, and to the One equipment, which returns, starts response message, so as to which the first equipment stops sending and the first heartbeat to server according to response message is started Corresponding first heartbeat message of frequency, and monitor the online situation of application.It is achieved thereby that pass through the second equipment centralized processing the The heartbeat message of long application on site in one equipment reduces the letter of direct interaction heartbeat message between the first equipment and server Quantity is made, reduces the possibility of signaling storm.
Fig. 2 be heartbeat message processing method embodiment two of the present invention flow diagram, heartbeat report provided in this embodiment Literary processing method is used in the second equipment, the second equipment be arranged on access net and internet between gateway device or Server in network side etc., as shown in Fig. 2, this method includes:
Step 200, the pseudo- heart pattern instruction that at least one first equipment is sent, the puppet heart pattern instruction bag are received It includes:The first flag information of first equipment, the second identifier information of application, with described using the of corresponding first heartbeat message One palmic rate, wherein, first heartbeat message is first equipment to service corresponding with the second identifier information The message that device is sent, the puppet heart pattern instruction are that the first equipment judgement knows that the line duration of the application is more than It is sent when default threshold value;
Step 201, the puppet of the first flag information is included to server transmission according to first palmic rate Heartbeat message, and returned to first equipment and start response message, so that first equipment stops sending first heart Message is jumped, and monitors the online situation of the application;
The specific implementation process of step 200 and step 201 step 100 and step 101 shown in Figure 1, herein no longer It repeats.
Step 202, the second heartbeat message of the first equipment transmission is received according to default second palmic rate, it is described Second palmic rate is less than first palmic rate;
The first monitoring of equipment this using during online situation, according to default second palmic rate to the second equipment The second heartbeat message is sent, wherein, the second palmic rate is less than the first palmic rate.So as to which the second equipment receives the first equipment hair The second heartbeat message sent monitors the presence of the first equipment in real time by the second heartbeat message.
Step 203, if judging to be informed in the default time cycle is not received by second heartbeat message, stop Include the pseudo- heartbeat message of the first flag information to server transmission, and sent to first equipment including described The frightened palpitation mode instruction of second identifier information, so that first equipment continues to send first heartbeat to the server Message.
If the judgement of the second equipment is informed in the second heartbeat that the transmission of the first equipment is not received by the default time cycle Whether message does not know the first equipment then since partial fault cannot send heartbeat signal, still works as machine completely.Thus the Two equipment stop including the pseudo- heartbeat message of first flag information to above-mentioned server transmission, while send and wrap to the first equipment The frightened palpitation mode instruction of the second identifier information of application is included, if the first equipment does not work as machine, when receiving wholehearted hop pattern After instruction, continued directly to send the first heartbeat message to server according to the second identifier information of application.If the first equipment Work as machine, the application is also just offline, does not also just receive the frightened palpitation mode instruction, avoids the second equipment and continue to corresponding clothes Business device sends pseudo- heartbeat message.
Heartbeat message processing method provided in this embodiment is set by the second equipment according to the second heartbeat message monitoring first Standby presence is avoided in the first equipment in the case of machine, and the second equipment continues to send the pseudo- heart to corresponding server Message is jumped, further increases the reliability of heartbeat interaction.
Based on above-described embodiment, further, the method further includes:
The offline message of application that first equipment is sent is received, the offline message of application includes:The first flag Information, the second identifier information, if the offline message of the application is the first equipment judgement when knowing that the application is offline It sends;
Stop the pseudo- heartbeat for including the first flag information to server corresponding with second identifier information transmission Message.
Specifically, the first equipment is during the online situation of the application is monitored, if judging to know this using offline, To the second offline message of equipment sending application, this includes using offline message:The first flag information of first equipment, the of application Two identification informations.
First flag information, the application that parsing the first equipment of acquisition is carried out using offline message that second equipment interconnection receives Second identifier information, then stop including the pseudo- heartbeat of first flag information to server corresponding with second identifier information transmission Message, when server no longer receives the heartbeat message for being identified with first flag information, confirm the application from first flag It is offline in corresponding first equipment of information, it is disconnected with it.
Heartbeat message processing method provided in this embodiment by the first equipment if it is determined that using after offline, notifies second Equipment stops sending pseudo- heartbeat message to corresponding server, avoid application on the first device it is offline in the case of, the Two equipment continue to send pseudo- heartbeat message to corresponding server, further increase the reliability of heartbeat interaction.
Fig. 3 be heartbeat message processing method embodiment three of the present invention flow diagram, heartbeat report provided in this embodiment Literary processing method is used in the first equipment, and the first equipment is located in access net, can be cell phone apparatus, IPAD equipment, calculate Machine equipment etc., as shown in figure 3, this method includes:
Step 300, the line duration of application is monitored, judges whether the line duration is more than or equal to default threshold value;
Step 301, if judging to know that the line duration is more than or equal to the threshold value, pseudo- heartbeat is sent to the second equipment Mode instruction, the puppet heart pattern instruction include:The first flag information of the first equipment where the application, the of application Two identification informations, with first palmic rate using corresponding first heartbeat message, wherein, first heartbeat message is The message that first equipment is sent to server corresponding with the second identifier information, so that second equipment is according to institute Stating the first palmic rate includes the pseudo- heartbeat message of the first flag information to server transmission;
Step 302, the startup response message that second equipment returns is received, is stopped to described in server transmission First heartbeat message, and monitor the online situation of the application.
The specific process flow of each step, may refer to above-mentioned Fig. 1 in heartbeat message processing method provided in this embodiment Shown embodiment of the method, implementing principle and technical effect are similar, and details are not described herein again.
Fig. 4 be heartbeat message processing method example IV of the present invention flow diagram, heartbeat report provided in this embodiment Literary processing method is used in the first equipment, and the first equipment is located in access net, can be cell phone apparatus, IPAD equipment, calculate Machine equipment etc., as shown in figure 4, this method includes:
Step 400, the line duration of application is monitored, judges whether the line duration is more than or equal to default threshold value;
Step 401, if judging to know that the line duration is more than or equal to the threshold value, pseudo- heartbeat is sent to the second equipment Mode instruction, the puppet heart pattern instruction include:The first flag information of the first equipment where the application, the of application Two identification informations, with first palmic rate using corresponding first heartbeat message, wherein, first heartbeat message is The message that first equipment is sent to server corresponding with the second identifier information, so that second equipment is according to institute Stating the first palmic rate includes the pseudo- heartbeat message of the first flag information to server transmission;
Step 402, the startup response message that second equipment returns is received, is stopped to described in server transmission First heartbeat message, and monitor the online situation of the application;
Step 403, according to default second palmic rate to second equipment send the second heartbeat message, described second Palmic rate is less than first palmic rate;
Step 404, if receive second equipment is not received by the second heartbeat report within the default time cycle Text, the frightened palpitation mode instruction sent, the frightened palpitation mode instruction include:The second identifier information, then continue to described Server sends first heartbeat message.
The specific process flow of each step, may refer to above-mentioned Fig. 2 in heartbeat message processing method provided in this embodiment Shown embodiment of the method, implementing principle and technical effect are similar, and details are not described herein again.
Further, based on above-described embodiment, during the online situation of the monitoring application, the method It further includes:
If judgement knows that the application is offline, to the offline message of the second equipment sending application, the application is offline to disappear Breath includes:The first flag information, the second identifier information so that second equipment stop to the second identifier The corresponding server transmission of information includes the pseudo- heartbeat message of the first flag information.
Heartbeat message processing method provided in this embodiment by the first equipment if it is determined that using after offline, notifies second Equipment stops sending pseudo- heartbeat message to corresponding server, avoid application on the first device it is offline in the case of, the Two equipment continue to send pseudo- heartbeat message to corresponding server, further increase the reliability of heartbeat interaction.
Fig. 5 is the structure diagram of the second apparatus embodiments one of the invention, as shown in figure 5, the equipment includes:First receives Module 11 and first processing module 12, the first receiving module 11, for receiving the pseudo- heartbeat mould that at least one first equipment is sent Formula instructs, and the puppet heart pattern instruction includes:The first flag information of first equipment, the second identifier information of application and institute State the first palmic rate using corresponding first heartbeat message, wherein, first heartbeat message be first equipment to The message that server corresponding with the second identifier information is sent, the puppet heart pattern instruction are that first equipment judges Know that the line duration of the application is more than or equal to what is sent during default threshold value;First processing module 12, for according to First palmic rate includes the pseudo- heartbeat message of the first flag information to server transmission, and to first equipment Return and start response message so that first equipment stops sending first heartbeat message, and monitor the application Line situation.
The function and process flow of each module in second equipment provided in this embodiment, may refer to above-mentioned shown in FIG. 1 Embodiment of the method, implementing principle and technical effect are similar, and details are not described herein again.
Fig. 6 is the structure diagram of the second apparatus embodiments two of the invention, and based on embodiment illustrated in fig. 5, the equipment is also Including:Second receiving module 13,
Second receiving module 13, for receiving second heart of the first equipment transmission according to default second palmic rate Message is jumped, second palmic rate is less than first palmic rate;
First processing module 12, if being additionally operable to judge to be informed in the default time cycle to be not received by second heart Message is jumped, then stops including the pseudo- heartbeat message of the first flag information to server transmission, and is set to described first Preparation send the frightened palpitation mode instruction for including the second identifier information, so that first equipment continues to send out to the server Send first heartbeat message.
The function and process flow of each module in second equipment provided in this embodiment, may refer to above-mentioned shown in Fig. 2 Embodiment of the method, implementing principle and technical effect are similar, and details are not described herein again.
Further, based on above-described embodiment,
First receiving module 11 is additionally operable to receive the offline message of application that first equipment is sent, and the application is offline Message includes:The first flag information, the second identifier information, if the offline message of application is that first equipment is sentenced It is disconnected know it is described using it is offline when send;
First processing module 12 is additionally operable to stop sending including described to server corresponding with the second identifier information The pseudo- heartbeat message of first flag information.
Second equipment provided in this embodiment, by the first equipment if it is determined that using after offline, notice stops to corresponding Server sends pseudo- heartbeat message, avoid application on the first device it is offline in the case of, continue to corresponding server Pseudo- heartbeat message is sent, further increases the reliability of heartbeat interaction.
Fig. 7 is the structure diagram of the first apparatus embodiments one of the invention, as shown in fig. 7, the equipment includes:Monitoring modular 21st, sending module 22 and Second processing module 23, wherein, monitoring modular 21, for monitoring the line duration of application, described in judgement Whether line duration is more than or equal to default threshold value;Sending module 22, if for judging to know that the line duration is more than or equal to The threshold value, then send pseudo- heart pattern instruction to the second equipment, and the puppet heart pattern instruction includes:Where the application The first flag information of first equipment, the second identifier information of application, with described using the first of corresponding first heartbeat message Palmic rate, wherein, first heartbeat message is first equipment to server corresponding with the second identifier information The message of transmission, so that second equipment includes first mark according to first palmic rate to server transmission Know the pseudo- heartbeat message of information;Second processing module 23 for receiving the startup response message that second equipment returns, is stopped First heartbeat message only is sent to the server, and monitors the online situation of the application.
The function and process flow of each module in first equipment provided in this embodiment, may refer to above-mentioned shown in FIG. 1 Embodiment of the method, implementing principle and technical effect are similar, and details are not described herein again.
Further, sending module 22 are additionally operable to during the online situation of the application is monitored, according to default Second palmic rate sends the second heartbeat message to second equipment, and second palmic rate is less than first heartbeat frequency Rate;
Second processing module 23, if be additionally operable to reception second equipment is not received by institute within the default time cycle The second heartbeat message, the frightened palpitation mode instruction sent are stated, the frightened palpitation mode instruction includes:The second identifier information, Then continue to send first heartbeat message to the server.
The function and process flow of each module in first equipment provided in this embodiment, may refer to above-mentioned shown in Fig. 2 Embodiment of the method, implementing principle and technical effect are similar, and details are not described herein again.
Fig. 8 is the structure diagram of the first apparatus embodiments two of the invention, as shown in figure 8, embodiment illustrated in fig. 7 is based on, The equipment further includes:Judgment module 24,
Judgment module 24, for during the online situation of the application is monitored, judging whether the application is offline;
Sending module 22, if be additionally operable to judge be informed in it is described application it is offline when, under the second equipment sending application Line message, the offline message of application include:The first flag information, the second identifier information, so that described second sets The standby pseudo- heartbeat message for stopping including the first flag information to server corresponding with second identifier information transmission.
First equipment provided in this embodiment, if according to it is definite application it is offline after, the second equipment is notified to stop to corresponding Server sends pseudo- heartbeat message, avoid application on the first device it is offline in the case of, the second equipment continues to correspondence Server send pseudo- heartbeat message, further increase the reliability of heartbeat interaction.
Fig. 9 is the structure diagram of heartbeat message processing system embodiment one of the present invention, as shown in figure 9, the system includes: Server 1, the second equipment 2 and at least one first equipment 3, wherein, the second equipment 2 and the first equipment 3 may be employed above-mentioned The server involved in above-described embodiment may be employed in the second equipment and the first equipment provided in embodiment, server 1.
The function and process flow of each module in heartbeat message processing system provided in this embodiment, may refer to above-mentioned institute The embodiment of the method shown, implementing principle and technical effect are similar, and details are not described herein again.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through The relevant hardware of program instruction is completed, and foregoing program can be stored in a computer read/write memory medium, the program Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or light The various media that can store program code such as disk.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe is described in detail the present invention with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its according to Can so modify to the technical solution recorded in foregoing embodiments either to which part or all technical characteristic into Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is not made to depart from various embodiments of the present invention technology The scope of scheme.

Claims (9)

1. a kind of heartbeat message processing method, which is characterized in that including:
The pseudo- heart pattern instruction that at least one first equipment is sent is received, the puppet heart pattern instruction includes:First equipment First flag information, application second identifier information, with first palmic rate using corresponding first heartbeat message, Wherein, first heartbeat message is the report that first equipment is sent to server corresponding with the second identifier information Text, the puppet heart pattern instruction are that the first equipment judgement knows that the line duration of the application is more than or equal to default threshold It is sent during value;
Being sent according to first palmic rate to the server includes the pseudo- heartbeat message of the first flag information, and to First equipment, which returns, starts response message, so that first equipment stops sending first heartbeat message, and monitors The online situation of the application;
The second heartbeat message of the first equipment transmission, second palmic rate are received according to default second palmic rate Less than first palmic rate;
If judgement, which was informed in the default time cycle, is not received by second heartbeat message, stop to the server Sending includes the pseudo- heartbeat message of the first flag information, and includes the second identifier information to first equipment transmission Frightened palpitation mode instruction so that first equipment continues to send first heartbeat message to the server.
2. according to the method described in claim 1, it is characterized in that, it is described according to first palmic rate to described first After equipment sends the second heartbeat message, the method further includes:
The offline message of application that first equipment is sent is received, the offline message of application includes:The first flag information, The second identifier information is known and is sent when the application is offline if the offline message of the application is the first equipment judgement 's;
Stop the pseudo- heartbeat message for including the first flag information to server corresponding with second identifier information transmission.
3. a kind of heartbeat message processing method, which is characterized in that including:
The line duration of application is monitored, judges whether the line duration is more than or equal to default threshold value;
If judgement knows that the line duration is more than or equal to the threshold value, pseudo- heart pattern instruction, institute are sent to the second equipment Stating pseudo- heart pattern instruction includes:The first flag information of the first equipment where the application, the second identifier information of application, With first palmic rate using corresponding first heartbeat message, wherein, first heartbeat message is described first to set The standby message sent to server corresponding with the second identifier information, so that second equipment is according to first heartbeat Frequency includes the pseudo- heartbeat message of the first flag information to server transmission;
The startup response message that second equipment returns is received, stops sending the first heartbeat report to the server Text, and monitor the online situation of the application;
The second heartbeat message is sent to second equipment according to default second palmic rate, second palmic rate is less than First palmic rate;
If receive second equipment be not received by within the default time cycle second heartbeat message, send it is true Heart pattern instructs, and the frightened palpitation mode instruction includes:The second identifier information then continues to send institute to the server State the first heartbeat message.
4. the according to the method described in claim 3, it is characterized in that, process of the online situation in the monitoring application In, the method further includes:
If judgement knows that the application is offline, to the offline message of the second equipment sending application, the offline message package of application It includes:The first flag information, the second identifier information so that second equipment stop to the second identifier information Corresponding server transmission includes the pseudo- heartbeat message of the first flag information.
5. a kind of second equipment, which is characterized in that including:
First receiving module, for receiving the pseudo- heart pattern instruction that at least one first equipment is sent, the puppet heart pattern Instruction includes:The first flag information of first equipment, the second identifier information of application, the first heartbeat report corresponding with the application First palmic rate of text, wherein, first heartbeat message is first equipment to corresponding with the second identifier information The message that sends of server, the puppet heart pattern instruction is the line duration that the application is known in first equipment judgement It is sent during more than or equal to default threshold value;
First processing module, for including the first flag information to server transmission according to first palmic rate Pseudo- heartbeat message, and returned to first equipment and start response message, so that first equipment stops sending described the One heartbeat message, and monitor the online situation of the application;
Second receiving module, for receiving the second heartbeat report of the first equipment transmission according to default second palmic rate Text, second palmic rate are less than first palmic rate;
The first processing module, if being additionally operable to judge to be informed in the default time cycle to be not received by second heartbeat Message then stops including the pseudo- heartbeat message of the first flag information to server transmission, and to first equipment Sending includes the frightened palpitation mode instruction of the second identifier information, so that first equipment continues to send to the server First heartbeat message.
6. equipment according to claim 5, which is characterized in that
First receiving module is additionally operable to receive the offline message of application that first equipment is sent, and the application is offline to disappear Breath includes:The first flag information, the second identifier information, if the offline message of application is that first equipment judges Know it is described using it is offline when send;
The first processing module is additionally operable to stop including described the to server corresponding with second identifier information transmission The pseudo- heartbeat message of one identification information.
7. a kind of first equipment, which is characterized in that including:
Monitoring modular for monitoring the line duration of application, judges whether the line duration is more than or equal to default threshold value;
If for judging to know that the line duration is more than or equal to the threshold value, the pseudo- heart is sent to the second equipment for sending module Hop pattern instructs, and the puppet heart pattern instruction includes:The first flag information of the first equipment where the application, application Second identifier information, with first palmic rate using corresponding first heartbeat message, wherein, first heartbeat message The message that first equipment is sent to server corresponding with the second identifier information so that second equipment according to First palmic rate includes the pseudo- heartbeat message of the first flag information to server transmission;
Second processing module for receiving the startup response message that second equipment returns, stops sending out to the server First heartbeat message is sent, and monitors the online situation of the application;
The sending module is additionally operable to during the online situation of the application is monitored, according to default second heartbeat frequency Rate sends the second heartbeat message to second equipment, and second palmic rate is less than first palmic rate;
The Second processing module, if be additionally operable to receive second equipment be not received by within the default time cycle it is described Second heartbeat message, the frightened palpitation mode instruction sent, the frightened palpitation mode instruction include:The second identifier information, then Continue to send first heartbeat message to the server.
8. equipment according to claim 7, which is characterized in that the equipment further includes:
Judgment module, for during the online situation of the application is monitored, judging whether the application is offline;
The sending module, if be additionally operable to judge be informed in it is described application it is offline when, it is offline to the second equipment sending application Message, the offline message of application include:The first flag information, the second identifier information, so that second equipment Stop the pseudo- heartbeat message for including the first flag information to server corresponding with second identifier information transmission.
9. a kind of heartbeat message processing system, which is characterized in that including:Server, the second equipment and at least one first set It is standby, wherein, second equipment is such as the second equipment described in claim 5 or 6, and first equipment is such as claim 7 Or the first equipment described in 8.
CN201510174050.6A 2015-04-13 2015-04-13 Heartbeat message processing method, equipment and system Active CN104883279B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510174050.6A CN104883279B (en) 2015-04-13 2015-04-13 Heartbeat message processing method, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510174050.6A CN104883279B (en) 2015-04-13 2015-04-13 Heartbeat message processing method, equipment and system

Publications (2)

Publication Number Publication Date
CN104883279A CN104883279A (en) 2015-09-02
CN104883279B true CN104883279B (en) 2018-05-18

Family

ID=53950619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510174050.6A Active CN104883279B (en) 2015-04-13 2015-04-13 Heartbeat message processing method, equipment and system

Country Status (1)

Country Link
CN (1) CN104883279B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106936662B (en) 2015-12-31 2020-01-31 杭州华为数字技术有限公司 method, device and system for realizing heartbeat mechanism
CN105916100B (en) * 2016-04-01 2020-04-28 华为技术有限公司 Method, device and communication system for acting heartbeat packet
CN106961615A (en) * 2017-03-22 2017-07-18 北京奇艺世纪科技有限公司 A kind of live broadcasting method and system
CN109451025A (en) * 2018-11-14 2019-03-08 深圳市云歌人工智能技术有限公司 Information push method, device and storage medium
CN109544194B (en) * 2018-12-07 2021-09-17 河南智信锅炉技术创新有限公司 Boiler anti-counterfeiting method and device for intelligent factory
US11258862B2 (en) * 2019-08-12 2022-02-22 Addigy, Inc. Intelligent persistent mobile device management

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631048A (en) * 2008-07-14 2010-01-20 中国移动通信集团河南有限公司 Method, device and system for monitoring managed object
CN102177697A (en) * 2011-04-29 2011-09-07 华为技术有限公司 Method for controlling internet services, and relevant device and system
CN102572939A (en) * 2011-01-04 2012-07-11 中国移动通信有限公司 Heartbeat packet sending method, device thereof and system thereof
CN102790776A (en) * 2012-08-03 2012-11-21 中国联合网络通信集团有限公司 Heartbeat connection normalizing processing method, terminal, server and communication system
CN103152374A (en) * 2011-12-07 2013-06-12 华为终端有限公司 Method and device for learning terminal online state
CN103312528A (en) * 2012-03-08 2013-09-18 中国移动通信集团公司 Heartbeat message sending method and user terminal
CN103916424A (en) * 2012-12-31 2014-07-09 中国移动通信集团广东有限公司 Application program heartbeat packet control method, communication terminal and communication network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631048A (en) * 2008-07-14 2010-01-20 中国移动通信集团河南有限公司 Method, device and system for monitoring managed object
CN102572939A (en) * 2011-01-04 2012-07-11 中国移动通信有限公司 Heartbeat packet sending method, device thereof and system thereof
CN102177697A (en) * 2011-04-29 2011-09-07 华为技术有限公司 Method for controlling internet services, and relevant device and system
CN103152374A (en) * 2011-12-07 2013-06-12 华为终端有限公司 Method and device for learning terminal online state
CN103312528A (en) * 2012-03-08 2013-09-18 中国移动通信集团公司 Heartbeat message sending method and user terminal
CN102790776A (en) * 2012-08-03 2012-11-21 中国联合网络通信集团有限公司 Heartbeat connection normalizing processing method, terminal, server and communication system
CN103916424A (en) * 2012-12-31 2014-07-09 中国移动通信集团广东有限公司 Application program heartbeat packet control method, communication terminal and communication network

Also Published As

Publication number Publication date
CN104883279A (en) 2015-09-02

Similar Documents

Publication Publication Date Title
CN104883279B (en) Heartbeat message processing method, equipment and system
CN106713168B (en) Flow control method and system
CN109428779A (en) A kind of monitoring alarm method and device of distributed service
CN108400904B (en) Health examination method and device based on micro-service architecture
US8577006B2 (en) User-defined system-enforced session termination in a unified telephony environment
US9612886B2 (en) Method and device for monitoring API function scheduling in mobile terminal
CN103516918B (en) Faulty resource restoration methods and device
CN111405635B (en) Method, device and equipment for realizing capability opening and computer readable storage medium
CN104410526A (en) Call control method, Diameter protocol forwarding equipment and system
CN105871651A (en) Device connectivity monitoring method and device
EP3850790B1 (en) Methods, policy node and charging node for enabling spending limit control
CN103051484B (en) Session service processing method, system and Session Border Controll
CN110312245A (en) A kind of business monitoring method and device of transnational roaming terminal
CN104702647A (en) Information request method and information request system
CN107819754B (en) Anti-hijacking method, monitoring server, terminal and system
CN104216739B (en) A kind of download process method and device, terminal
CN103927680A (en) Delivery release sending method and device for products related to network application
CN106330513A (en) Processing method and apparatus for tr069 protocol information
CN104125133B (en) Conversation informing method, Apparatus and system in a kind of instant messaging application
CN108170545A (en) A kind of method for message transmission and device based on message-oriented middleware
CN112153215A (en) Call processing method and device, related equipment and storage medium
CN108880930B (en) Network loop detection method and equipment
CN109947630B (en) Fault notification method, device and storage medium
CN114143903A (en) Method, device, equipment and medium for configuring network slice PDU session
CN108566496B (en) Method and device for monitoring voice line state

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant