Heartbeat interval adjusting method, server, client terminal and communication system

A heartbeat interval and adjustment method technology, applied in the field of communication, can solve problems such as unusable links, large power consumption of mobile terminals, large consumption of mobile terminal resources, etc., and achieve the effect of reducing system resources

Inactive Publication Date: 2011-10-19
同一(北京)科技有限公司
View PDF3 Cites 42 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the server does not receive the heartbeat packet within the set time, it indicates that the link is unavailable
[0003] However, when such a method is implemented in a mobile terminal, because the network environment of the mobile t

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Heartbeat interval adjusting method, server, client terminal and communication system
  • Heartbeat interval adjusting method, server, client terminal and communication system
  • Heartbeat interval adjusting method, server, client terminal and communication system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.

[0044] refer to figure 1 , the heartbeat interval adjustment method of the embodiment of the present invention, comprises the following steps:

[0045] Step 101: After the current connection between the server and the client is established, the client sends a heartbeat negotiation message to the server;

[0046] Wherein, the heartbeat negotiation message carries a cause value used to represent the reason for disconnection of the last connection and the last heartbeat interval value used by the client in the last connection. In this embodiment, the unit of the heartbeat interval value is second.

[0047]In specific implementation, when this connection is the first connection, the cause value carried in the heartbeat negotiation message is "null", a...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a heartbeat interval adjusting method, a server, a client terminal and a communication system, wherein the heartbeat interval adjusting method comprises the following steps: after the current connection between the server and the client terminal is established successfully, the server receives the heartbeat negotiation message sent by the client terminal; the heartbeat negotiation message carries a factor value used for characterizing the factor of the previous disconnection and the heartbeat interval value finally used in the previous connection; when the server determines that the previous connection is disconnected owning to link impasse or network unusualness according to the factor value, the heartbeat interval value is gradually reduced and is sent to the client terminal by the negotiation response message; and when the server determines that the previous connection is disconnected owning to phone calling, application halting or application shifting according to the factor values, the heartbeat interval value is gradually increased and is sent to the client terminal by the negotiation response message. The invention has the advantages of effectively reducing the electric energy consumption of the client terminal.

Description

technical field [0001] The invention relates to the communication field, in particular to a method for adjusting a heartbeat interval, a server, a client and a communication system. Background technique [0002] When the client communicates with the server, in order to ensure that the message can be delivered in time, the current main solution is IP push (push) technology, that is, a long connection is maintained between the client and the server, so that the server can receive the message when it receives the message. , the message can be pushed to the client immediately. In order to ensure that the long connection is in a healthy state, the client usually sends a data packet (heartbeat packet) to the server periodically to indicate that the link of this long connection is available. If the server does not receive the heartbeat packet within the set time, it indicates that the link is unavailable. [0003] However, when such a method is implemented in a mobile terminal, b...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L12/24H04L29/06
Inventor 赵亮丁瑞彭
Owner 同一(北京)科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products