Dynamic Heartbeat Signal Control for Push Connection Stability
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing push connection stability is compromised due to inadequate heartbeat signal intervals, leading to potential disconnection and increased power consumption and network traffic, as current methods either disconnect due to long intervals or excessively drain battery and traffic with short intervals.
Innovation Solution
A method and apparatus that dynamically adjust the heartbeat signal control time based on the number of target applications, using the shortest acceptable delay for multiple applications and adjusting further based on sending failure rates to maintain connection stability while minimizing power consumption and network traffic.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Use of energy by moving object
If the heartbeat signal is sent at a long time interval, then power consumption and network traffic are reduced, but the connection may be disconnected due to network interference or firewalls
Solution Approach 1:
The patent implements dynamic adjustment of heartbeat signal sending intervals based on network conditions and application requirements. The system transitions from a static fixed interval to a dynamic adaptive interval, modifying the heartbeat frequency according to actual network quality and push message priorities to maintain connection stability while optimizing power consumption.
Solution Approach 2:
The patent changes the time interval parameter of heartbeat signals based on network conditions and application-specific requirements. By adjusting this critical parameter dynamically, the system optimizes the balance between connection reliability and power consumption, allowing longer intervals when network is stable and shorter intervals when network quality degrades.
2Reliability
If the heartbeat signal is sent at a short time interval, then connection stability is maintained, but power consumption and network traffic increase
Solution Approach 1:
The system dynamically adjusts heartbeat intervals rather than using a fixed short interval, allowing the mobile device to extend the interval when network conditions permit, thereby reducing power consumption and network traffic while maintaining connection stability only when necessary.
Solution Approach 2:
The patent applies partial action by sending heartbeat signals only when necessary to maintain connection stability, rather than continuously at fixed short intervals. The system determines the minimum required heartbeat frequency based on network conditions and application priorities, avoiding excessive heartbeat transmissions that would waste power and network resources.
3Productivity
If multiple applications have different push delay requirements, then each application's timeliness is optimized, but determining a unified heartbeat interval becomes complex
Solution Approach 1:
The patent applies local quality by assigning different push delay tolerances to different applications based on their specific requirements. Critical applications receive shorter delays and higher priority, while non-critical applications can tolerate longer delays. This allows the system to optimize heartbeat intervals for each application's local needs while using a unified control mechanism.
Solution Approach 2:
The patent implements a universal heartbeat control mechanism that manages multiple applications with different requirements through a single unified process. The push client consolidates heartbeat control for all applications, determining a unified interval that satisfies the most stringent requirements while allowing less critical applications to operate within acceptable parameters, thereby simplifying the overall control logic.
Data Source
Figure 1
Figure 2~3
Figure 4
AI summary
Embodiments of the present invention provide a method and an apparatus for controlling sending of a heartbeat signal. The method includes: acquiring a target push delay corresponding to all target applications; sending the target push delay to a push server; receiving a first heartbeat signal control time sent by the push server and corresponding to the target push delay; and sending a heartbeat signal to the push server at an interval of the first heartbeat signal control time. According to the embodiments of the present invention, a corresponding heartbeat signal control time may be determined according to an acquired target push delay corresponding to all target applications, and the heartbeat signal control time may be specifically adjusted according to a target application, so that a push client can send a heartbeat signal to a push server at an interval of a first heartbeat signal control time, to maintain a Push connection, thereby ensuring stability of the Push connection, improving timeliness of push information pushing, and effectively reducing power consumption and network data traffic.