Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Heartbeat packet sending method and device

A heartbeat packet, sending to technology, applied in the field of communication, can solve the problem of unreasonable sending of heartbeat packets, and achieve a reasonable effect of sending

Active Publication Date: 2020-06-30
深圳市雅阅科技有限公司
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In order to solve the problem of unreasonable sending of heartbeat packets in the prior art, the embodiment of the present invention provides a method and device for sending heartbeat packets

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 packet sending method and device
  • Heartbeat packet sending method and device
  • Heartbeat packet sending method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0030] The terms "first" and "second" appearing in the embodiments of the present invention are only used for description, and cannot be understood as indicating or implying relative importance or implying the quantity of indicated technical features.

[0031] figure 1 It is a schematic diagram of an implementation environment shown in an exemplary embodiment of the present invention, and the implementation environment includes: a server 110 and a terminal 120 .

[0032] The terminal 120 is a terminal such as a mobile phone, a tablet computer, a laptop computer, and a desktop computer. Several clients are installed in the terminal 120, figure 1 Only one client 130 of the terminals 120 is shown in .

[0033] The server 110 is a backg...

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 present invention discloses a heartbeat packet sending method and device, belonging to the communication field. The method comprises: establishing a long connection with a terminal where a clientis located, determining a heartbeat packet sending interval corresponding to a network running environment where the terminal is located, sending a heartbeat packet sending interval to the client, andsending the heartbeat package according to the heartbeat packet sending interval. The heartbeat packet sending method and device solve the problem that a client always uses the same heartbeat packetsending interval to send a heartbeat packet to generates unnecessary power consumption or causes the disconnection of long connection; and the server determines the heartbeat packet sending interval according to the network running environment where the terminal is located, even if the network running environment where the terminal is located changes, the server can timely regulate the heartbeat packet sending interval, and therefore, it is determined that the obtained heartbeat packet sending interval is matched with the network running environment where the terminal is located, and a heartbeat packet can be reasonably sent in different network running environments.

Description

technical field [0001] The embodiments of the present invention relate to the communication field, and in particular to a method and device for sending a heartbeat packet. Background technique [0002] The server can establish a persistent connection with the terminal, and use the persistent connection to perform data communication with the client in the terminal. [0003] In order to maintain a long connection between the server and the terminal, the client needs to send heartbeat packets to the server at regular intervals. In the prior art, the time interval between every two heartbeat packets sent by the client to the server is the same . [0004] In the process of implementing the embodiments of the present invention, the inventors found that the prior art has at least the following problems: [0005] The network operating environment where the terminal is located is complex and changeable. Therefore, when the client sends heartbeat packets at the same time interval, t...

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
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/08
Inventor 林燕描
Owner 深圳市雅阅科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products