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

Method, device and system for maintaining long connection and medium

A long connection, random number technology, applied in the field of communication, can solve the problems of heavy load on the client and server, automatic reconstruction of long connections, and high consumption of network traffic, so as to reduce the number of transmissions, reduce the load, and reduce the consumption of electricity. Effect

Inactive Publication Date: 2019-06-04
CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a method, device, system, and medium for maintaining a persistent connection, which are used to solve the problems of high network traffic consumption, heavy client and server loads, and problems in the prior art for maintaining a persistent connection. The problem of high power consumption of the terminal device where the client is located, and solve the problem that when the client runs in the background for a long time, the long connection is automatically cut off by the operating system of the terminal device where the client is located, resulting in unavailable connection and due to the inability of the client The problem that the client cannot automatically rebuild the long connection due to the perceived connection being cut off

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
  • Method, device and system for maintaining long connection and medium
  • Method, device and system for maintaining long connection and medium
  • Method, device and system for maintaining long connection and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0072] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0073] In order to solve the problem of high network traffic consumption in the method of maintaining a long connection in the prior art, the heavy load of the client and the server, and the high power consumption of the terminal device where the client is located, and solve the problem that when the client runs for a long time When in the background, because the long connection is automatically cut off by the operating system of the terminal de...

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 discloses a method, device and system for maintaining long connection and medium. Specifically, the method comprises the following steps: a client generates a random number in a set period, sends a heartbeat data packet carrying the random number to a server and adds the random number into a random number array, if a heartbeat response data packet which is returned by the server andcarries the random number is received, deleting the random number in the random number array. Therefore, the client can select the corresponding setting strategy according to the number of the randomnumbers in the random number array; the period is set according to the selected setting strategy, the heartbeat data packet is sent according to the set period instead of a fixed period, so that thesending number of heartbeat data packets is reduced as much as possible, the loads of the client and the server are reduced, and the power consumption of the terminal equipment where the client is located is reduced.

Description

technical field [0001] The present invention relates to the technical field of communication, and in particular to a method, device, system and medium for maintaining a persistent connection. Background technique [0002] In order to ensure the continuity of communication and the timeliness of data push, it is usually necessary to establish and maintain a long connection between the client and server of the application software. At present, a common way to maintain a long connection between the client and the server is that the client periodically sends a heartbeat packet to the server to ensure that there is always data transmission between the client and the server to prevent the connection from being automatically cut off by the operator. . This method of maintaining a long connection not only increases the network traffic, but also increases the load on the client and the server, and the frequent sending of heartbeat data packets will also lead to excessive power consum...

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): H04L29/08H04L29/06
Inventor 章国琼程宝平李铎
Owner CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD
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