CN103581950A - Electronic device and heartbeat message transmitting method and system - Google Patents

Electronic device and heartbeat message transmitting method and system Download PDF

Info

Publication number
CN103581950A
CN103581950A CN201310575233.XA CN201310575233A CN103581950A CN 103581950 A CN103581950 A CN 103581950A CN 201310575233 A CN201310575233 A CN 201310575233A CN 103581950 A CN103581950 A CN 103581950A
Authority
CN
China
Prior art keywords
heartbeat message
communication network
electronic equipment
application program
monitoring
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.)
Granted
Application number
CN201310575233.XA
Other languages
Chinese (zh)
Other versions
CN103581950B (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 CN201310575233.XA priority Critical patent/CN103581950B/en
Publication of CN103581950A publication Critical patent/CN103581950A/en
Application granted granted Critical
Publication of CN103581950B publication Critical patent/CN103581950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses an electronic device and a heartbeat message transmitting method and system. The defect that at present, signalling resources can not be sufficiently saved due to the fact that a heartbeat period for notifying a server of an IP address of an application program is selected by terminal application at will is overcome. The heartbeat message transmitting method includes the steps of monitoring a communication network which the electronic device has access to, when it is monitored that the electronic device switches the communication network, adjusting the transmitting period of the application program for maintaining a long-connection heartbeat message, and notifying the application program to transmit the heartbeat message according to the adjusted transmitting period. According to the embodiment of the electronic device and the heartbeat message transmitting method and system, the transmitting period of the application program for notifying the server to maintain the long-connection heartbeat message can be flexibly adjusted according to the different communication networks which the electronic device has access to, and the use ratio of the signalling resources is improved.

Description

The sending method of electronic equipment, heartbeat message and system
Technical field
The present invention relates to a kind of communication technology, relate in particular to sending method and the system of a kind of electronic equipment, heartbeat message.
Background technology
The application program of installing on electronic equipment is by sending heartbeat message to server side, is existing application keep being everlasting line and conventional solution.In view of current rare IP address resource, the mode of the general Adoption Network address transition of current network operator (NAT) is converted to public network address by private net address, saves public network IP address in short supply.Therefore, electronic equipment can not distribute the IP address being permanently fixed at present.
The application program of installing on electronic equipment is for by the IP address notification server side of oneself, general way is to send the heartbeat message of the IP address of carrying electronic equipment side to server side at present, maintain long connection the from application program to server side, thereby made the smooth realization of the business such as propelling movement of server side initiation.If client does not send heartbeat message, long connection will be interrupted, thereby makes server side cannot find client, causes cannot realizing of the business such as propelling movement.
Current terminal applies view network is pipeline, also rather random choosing of the heart beat cycle to server notification application program IP address, does not consider the factors such as the current residing network environment of electronic equipment.Generally, the rule that telecom operators arrange is, if at the net environment of 2G, application program did not have data to send in 5 minutes, just interrupted long connection, if at the net environment of 3G, application program did not send data in 28 minutes, just interrupted long connection.Terminal applies is arbitrarily chosen to the heart beat cycle of server notification application program IP address, just not fully saving signaling resource with effective utilization of guarantee signal resource.
Summary of the invention
Technical problem to be solved by this invention is to overcome current terminal applies arbitrarily choose to the heart beat cycle of server notification application program IP address and fail the deficiency of saving signaling resource fully.
In order to solve the problems of the technologies described above, first the application's embodiment provides a kind of sending method of heartbeat message, and the application program that is applied to be arranged on electronic equipment sends described heartbeat message, and the method comprises:
The communication network that this electronic equipment is accessed is monitored;
When monitoring this electronic equipment switching communication network, adjust the transmission cycle that this application program maintains the long heartbeat message connecting;
Notify this application program to send described heartbeat message according to the transmission cycle after adjusting.
Preferably, when monitoring this electronic equipment switching communication network, adjust the transmission cycle that this application program maintains the long heartbeat message connecting, comprising:
When monitoring this electronic equipment and be switched to access second communication network by the first communication network, the period 1 that this application program is sent in this first communication network to this heartbeat message is adjusted into a second round that sends this heartbeat message in this second communication network.
Preferably, the method comprises:
This electronic equipment access IP address in this communication network is monitored;
When monitoring this electronic equipment access IP address in this communication network and change, this application program of resetting sends the timer in the transmission cycle of this heartbeat message in this communication network.
The application's embodiment also provides a kind of transmitting system of heartbeat message, and the application program that is applied to be arranged on electronic equipment sends described heartbeat message, and this system comprises:
Monitoring modular, the communication network that this electronic equipment is accessed is monitored;
Adjusting module, when described monitoring module monitors is switched communication network to this electronic equipment, adjusts the transmission cycle that this application program maintains the long heartbeat message connecting;
Notification module, adjusts transmission week after date of described heartbeat message at described adjusting module, send described heartbeat message according to the transmission cycle after adjusting.
Preferably, described adjusting module is when monitoring this electronic equipment and be switched to access second communication network by the first communication network, and the period 1 that this application program is sent in this first communication network to this heartbeat message is adjusted into a second round that sends this heartbeat message in this second communication network.
Preferably, this system comprises:
Replacement module, when described monitoring module monitors changes to this electronic equipment access IP address in this communication network, this application program of resetting sends the timer in the transmission cycle of this heartbeat message in this communication network;
Wherein, described monitoring modular is monitored this electronic equipment access IP address in this communication network.
The application's embodiment also provides a kind of electronic equipment, and application program is installed, and comprises the transmitting system of heartbeat message as above.
Compared with prior art, the difference of the communication network that the application's embodiment can access according to electronic equipment, adjusts neatly application program and to server notification, maintains the transmission cycle of the long heartbeat message connecting, and has improved the utilance of signal resource.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, or understand by implementing the present invention.Object of the present invention and other advantages can be realized and be obtained by specifically noted structure in specification, claims and accompanying drawing.
Accompanying drawing explanation
Accompanying drawing is used to provide the further understanding to technical solution of the present invention, and forms a part for specification, is used from explanation technical scheme of the present invention with the application's embodiment mono-, does not form the restriction to technical solution of the present invention.
Fig. 1 is the schematic flow sheet of sending method of the heartbeat message of the embodiment of the present application.
Fig. 2 is the organigram of transmitting system of the heartbeat message of the embodiment of the present application.
Embodiment
Below with reference to drawings and Examples, describe embodiments of the present invention in detail, to the present invention, how application technology means solve technical problem whereby, and the implementation procedure of reaching technique effect can fully understand and implement according to this.Each feature in the embodiment of the present application and embodiment is the mutually combining under prerequisite of not conflicting mutually, all within protection scope of the present invention.
In addition, in the step shown in the flow chart of accompanying drawing, can in the computer system such as one group of computer executable instructions, carry out.And, although there is shown logical order in flow process, in some cases, can carry out shown or described step with the order being different from herein.
The sending method of the heartbeat message of the embodiment of the present application, the application program that is applied to be arranged on electronic equipment sends heartbeat message.As shown in Figure 1, the method mainly comprises following content:
Step S110, the current residing network environment of monitoring electronic equipment.For a plurality of application programs, can independently monitor for each application program, after also can unifying to monitor, monitoring result is distributed to each application program.
Step S120, when monitoring this electronic equipment switching communication network, adjusts the transmission cycle that this application program maintains the long heartbeat message connecting.
In the application's embodiment, when monitoring this electronic equipment and be switched to second communication network by the first communication network, adjust the transmission cycle that this application program maintains the long heartbeat message connecting, the period 1 that this application program is sent to this heartbeat message at this first communication network is adjusted into the second round that sends this heartbeat message at this second communication network.This period 1 and second round, by the operator of the first communication network and the set rule of operator of second communication network of correspondence, determined respectively.
In the application's embodiment, communication network mainly includes 2G internet and 3G network.When electronic equipment access is in 2G network, application program maintains the long heartbeat message connecting such as being 5 minutes or other durations; When electronic equipment access is in 3G network, application program maintains the long heartbeat message connecting such as being 28 minutes or other durations.When monitoring electronic equipment and be switched to 3G network by 2G network, the transmission cycle that application program of installing on this electronic equipment can be maintained to the long heartbeat message connecting was adjusted into 28 minutes by 5 minutes.And for example, when monitoring electronic equipment and be switched to 2G network by 3G network, the transmission cycle that application program of installing on this electronic equipment can be maintained to the long heartbeat message connecting was adjusted into 5 minutes by 28 minutes.
Step S130, notifies this application program to send and maintain the long heartbeat message connecting to server according to the transmission cycle after adjusting.
By above operation, in the situation that electronic equipment IP address (being arranged on the IP address of the application program on electronic equipment) do not become yet, when electronic equipment is in different network environments, application program can extend the heart beat cycle of oneself according to concrete network environment as far as possible, to reduce the impact to network, improve the utilance of Radio Resource.
Such as the period 1 this application program is sent to this heartbeat message at this first communication network is adjusted at this second communication network and sends after the second round of this heartbeat message, this application program is according to this second round that is adapted to second communication network, interval is the time of length as far as possible, to server, send heartbeat message, reduce the number of times that sends heartbeat message as far as possible, improve the utilance of signal resource.
In the application's embodiment, can also monitor the IP address in same communication network electronic equipment access, during with IP address change at electronic equipment, application program can promptly be notified to server.Particularly, when monitoring the electronic equipment access IP address in same communication network and change, the timer that replacement is carried out timing to the above-mentioned heartbeat message transmission cycle, to restart heartbeat message computation of Period, guarantees the server side very first time understanding up-to-date IP address of mobile device.
The transmitting system of the heartbeat message of the embodiment of the present application, the application program that is applied to be arranged on electronic equipment sends heartbeat message.As shown in Figure 2, this system comprises monitoring modular 210, adjusting module 220 and notification module 230, wherein:
Monitoring modular 210, the communication network that this electronic equipment is accessed is monitored;
Adjusting module 220, is connected with monitoring modular 210, when monitoring modular 210 monitors this electronic equipment switching communication network, adjusts the transmission cycle that this application program maintains the long heartbeat message connecting;
Notification module 230, is connected with adjusting module 220, adjusts the transmission week after date of heartbeat message at adjusting module 220, notifies this application program to send heartbeat message according to the transmission cycle after adjusting.
In the application's embodiment, adjusting module 220 is when monitoring this electronic equipment and be switched to access second communication network by the first communication network, and the period 1 that this application program is sent in this first communication network to this heartbeat message is adjusted into a second round that sends this heartbeat message in this second communication network.
As shown in Figure 2, the transmitting system of the heartbeat message of the embodiment of the present application, can also comprise:
Replacement module 240, is connected with monitoring modular 210, and when monitoring modular 210 monitors this electronic equipment access IP address in this communication network and changes, this application program of resetting sends the timer in the transmission cycle of this heartbeat message in this communication network.Wherein, monitor the IP address of 210 pairs of this electronic equipment accesses of monitoring modular in this communication network.
The electronic equipment of the embodiment of the present application, application program is installed, it comprises the transmitting system of heartbeat message as above, this system is when monitoring this electronic equipment switching communication network, adjust the transmission cycle that this application program maintains the long heartbeat message connecting, so that application program can extend the heart beat cycle of oneself according to concrete network environment as far as possible, to reduce the impact to network, improve the utilance of Radio Resource.About the electronic equipment of the embodiment of the present application, the content that also please refer to the sending method of aforementioned heartbeat message and the transmitting system of heartbeat message is understood.
The application's embodiment is by adjusting the transmission cycle of heartbeat message, make the difference of the communication network that heartbeat message can access according to electronic equipment adjust neatly the transmission cycle, reduce electronic equipment and sent the frequency of utilization of the long heartbeat message connecting of application program to interface-free resources for this reason, reduce the probability that signaling storm occurs, improved the utilance of wireless network resource.
Those skilled in the art should be understood that, each part of the device that above-mentioned the embodiment of the present application provides and/or system, and each step in method, they can concentrate on single calculation element, or are distributed on the network that a plurality of calculation elements form.Alternatively, they can be realized with the executable program code of calculation element.Thereby, they can be stored in storage device and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or a plurality of modules in them or step are made into single integrated circuit module realize.Like this, the present invention is not restricted to any specific hardware and software combination.
Although the disclosed execution mode of the present invention as above, the execution mode that described content only adopts for ease of understanding the present invention, not in order to limit the present invention.Those of skill in the art under any the present invention; do not departing under the prerequisite of the disclosed spirit and scope of the present invention; can in the form of implementing and details, carry out any modification and variation; but scope of patent protection of the present invention, still must be as the criterion with the scope that appending claims was defined.

Claims (7)

1. a sending method for heartbeat message, the application program that is applied to be arranged on electronic equipment sends described heartbeat message, and the method comprises:
The communication network that this electronic equipment is accessed is monitored;
When monitoring this electronic equipment switching communication network, adjust the transmission cycle that this application program maintains the long heartbeat message connecting;
Notify this application program to send described heartbeat message according to the transmission cycle after adjusting.
2. method according to claim 1, wherein, when monitoring this electronic equipment switching communication network, adjusts the transmission cycle that this application program maintains the long heartbeat message connecting, and comprising:
When monitoring this electronic equipment and be switched to access second communication network by the first communication network, the period 1 that this application program is sent in this first communication network to this heartbeat message is adjusted into a second round that sends this heartbeat message in this second communication network.
3. method according to claim 1, wherein, the method comprises:
This electronic equipment access IP address in this communication network is monitored;
When monitoring this electronic equipment access IP address in this communication network and change, this application program of resetting sends the timer in the transmission cycle of this heartbeat message in this communication network.
4. a transmitting system for heartbeat message, the application program that is applied to be arranged on electronic equipment sends described heartbeat message, and this system comprises:
Monitoring modular, the communication network that this electronic equipment is accessed is monitored;
Adjusting module, when described monitoring module monitors is switched communication network to this electronic equipment, adjusts the transmission cycle that this application program maintains the long heartbeat message connecting;
Notification module, adjusts transmission week after date of described heartbeat message at described adjusting module, send described heartbeat message according to the transmission cycle after adjusting.
5. system according to claim 4, wherein:
Described adjusting module is when monitoring this electronic equipment and be switched to access second communication network by the first communication network, and the period 1 that this application program is sent in this first communication network to this heartbeat message is adjusted into a second round that sends this heartbeat message in this second communication network.
6. system according to claim 4, wherein, this system comprises:
Replacement module, when described monitoring module monitors changes to this electronic equipment access IP address in this communication network, this application program of resetting sends the timer in the transmission cycle of this heartbeat message in this communication network;
Wherein, described monitoring modular is monitored this electronic equipment access IP address in this communication network.
7. an electronic equipment, is provided with application program, comprises the transmitting system of the heartbeat message as described in any one in claim 4 to 6.
CN201310575233.XA 2013-11-15 2013-11-15 Electronic device and heartbeat message transmitting method and system Active CN103581950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310575233.XA CN103581950B (en) 2013-11-15 2013-11-15 Electronic device and heartbeat message transmitting method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310575233.XA CN103581950B (en) 2013-11-15 2013-11-15 Electronic device and heartbeat message transmitting method and system

Publications (2)

Publication Number Publication Date
CN103581950A true CN103581950A (en) 2014-02-12
CN103581950B CN103581950B (en) 2017-02-01

Family

ID=50052665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310575233.XA Active CN103581950B (en) 2013-11-15 2013-11-15 Electronic device and heartbeat message transmitting method and system

Country Status (1)

Country Link
CN (1) CN103581950B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049477A (en) * 2015-05-26 2015-11-11 腾讯科技(深圳)有限公司 Method and device for maintaining long connection
CN105577507A (en) * 2014-11-10 2016-05-11 中国移动通信集团广东有限公司 Heartbeat packet transmission interval adjustment method, device and server
CN106452977A (en) * 2016-11-24 2017-02-22 武汉斗鱼网络科技有限公司 Dynamic adaptive heartbeat sending method and system
CN106803833A (en) * 2015-11-26 2017-06-06 北京百度网讯科技有限公司 Processing method, the apparatus and system of heartbeat in connection long
WO2017215614A1 (en) * 2016-06-16 2017-12-21 中兴通讯股份有限公司 Method, device and system for realising heart beat keepalive
CN107645529A (en) * 2016-07-21 2018-01-30 腾讯科技(深圳)有限公司 Heartbeat packet transmission method and device
CN111328445A (en) * 2017-09-26 2020-06-23 诺基亚技术有限公司 Method, apparatus, computer program product and computer program
CN112202626A (en) * 2020-08-04 2021-01-08 长春创世麒麟科技有限公司 Real-time data communication heartbeat packet pushing method
CN113612624A (en) * 2021-06-29 2021-11-05 济南浪潮数据技术有限公司 Method and device for processing heartbeat between nodes
CN114126014A (en) * 2021-11-04 2022-03-01 维沃移动通信有限公司 Heartbeat proxy method and device
CN114390453A (en) * 2022-02-09 2022-04-22 福建天泉教育科技有限公司 Message pushing optimization method and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115313A (en) * 2007-08-23 2008-01-30 中兴通讯股份有限公司 Soft heartbeat detecting method and system
CN102291276A (en) * 2011-08-01 2011-12-21 浪潮(北京)电子信息产业有限公司 Heartbeat information regulation method and system for network system
CN102843250A (en) * 2011-06-21 2012-12-26 中兴通讯股份有限公司 Adaptive method and adaptive device of heartbeat cycle
CN103139303A (en) * 2013-02-07 2013-06-05 网易(杭州)网络有限公司 Method, device and system used for maintaining connected heartbeat

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115313A (en) * 2007-08-23 2008-01-30 中兴通讯股份有限公司 Soft heartbeat detecting method and system
CN102843250A (en) * 2011-06-21 2012-12-26 中兴通讯股份有限公司 Adaptive method and adaptive device of heartbeat cycle
CN102291276A (en) * 2011-08-01 2011-12-21 浪潮(北京)电子信息产业有限公司 Heartbeat information regulation method and system for network system
CN103139303A (en) * 2013-02-07 2013-06-05 网易(杭州)网络有限公司 Method, device and system used for maintaining connected heartbeat

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577507A (en) * 2014-11-10 2016-05-11 中国移动通信集团广东有限公司 Heartbeat packet transmission interval adjustment method, device and server
CN105049477A (en) * 2015-05-26 2015-11-11 腾讯科技(深圳)有限公司 Method and device for maintaining long connection
CN106803833A (en) * 2015-11-26 2017-06-06 北京百度网讯科技有限公司 Processing method, the apparatus and system of heartbeat in connection long
CN107517136B (en) * 2016-06-16 2022-08-16 中兴通讯股份有限公司 Method, device and system for realizing heartbeat keep-alive
WO2017215614A1 (en) * 2016-06-16 2017-12-21 中兴通讯股份有限公司 Method, device and system for realising heart beat keepalive
CN107517136A (en) * 2016-06-16 2017-12-26 中兴通讯股份有限公司 The implementation method of heartbeat keep-alive, apparatus and system
CN107645529A (en) * 2016-07-21 2018-01-30 腾讯科技(深圳)有限公司 Heartbeat packet transmission method and device
CN106452977A (en) * 2016-11-24 2017-02-22 武汉斗鱼网络科技有限公司 Dynamic adaptive heartbeat sending method and system
CN111328445A (en) * 2017-09-26 2020-06-23 诺基亚技术有限公司 Method, apparatus, computer program product and computer program
CN112202626A (en) * 2020-08-04 2021-01-08 长春创世麒麟科技有限公司 Real-time data communication heartbeat packet pushing method
CN113612624A (en) * 2021-06-29 2021-11-05 济南浪潮数据技术有限公司 Method and device for processing heartbeat between nodes
CN114126014A (en) * 2021-11-04 2022-03-01 维沃移动通信有限公司 Heartbeat proxy method and device
CN114390453A (en) * 2022-02-09 2022-04-22 福建天泉教育科技有限公司 Message pushing optimization method and terminal
CN114390453B (en) * 2022-02-09 2023-09-08 福建天泉教育科技有限公司 Message pushing optimization method and terminal

Also Published As

Publication number Publication date
CN103581950B (en) 2017-02-01

Similar Documents

Publication Publication Date Title
CN103581950A (en) Electronic device and heartbeat message transmitting method and system
CN107645529B (en) Heartbeat packet sending method and device
US20130215736A1 (en) Method, terminal and network device for configuring measurement gap
KR20140026376A (en) Method for configuring parameters, base station and user equipment
EP2537366A1 (en) Method and apparatus for managing communications in a wireless communication system
US10986537B2 (en) Method of selecting user plane gateway and device of selecting user plane gateway
CN110535808B (en) Equipment monitoring and de-registration method and device
WO2015154462A1 (en) Method and device for managing instant communication application program, and mobile terminal thereof
CN102957623B (en) A kind of maintaining method of neighborhood of border gate protocol and equipment
CN105282803A (en) Communication interface and information transfer method and system based on the same
CN108616985B (en) Resource allocation method and device
CN110692216B (en) Method for coordinating management and mobile network service operation plane using context awareness
CN105281919A (en) Remote wakening method, server and client terminal
CN104469902A (en) Method and device for controlling RRC (radio resource control) connection status between UE (user equipment) and network side
JP2019501596A (en) System information transmission method, system information update method, and device
CN109151910A (en) A kind of radio resource management method and device
CN105592485A (en) Method for collecting and processing messages in real time based on SNMP
CN103634821B (en) A kind of multiple wireless dynamic monitor processing method of network communication equipment link
US20190036793A1 (en) Network service implementation method, service controller, and communications system
US10749744B2 (en) Enhanced performance of a telecommunications network comprising at least one group of pooled mobility management entities
CN106572481B (en) Method and device for generating and configuring mobility management parameters, SCOP and MME
CN111436119A (en) DRX (discontinuous reception) transmission method and related equipment
AU2018407192A1 (en) Resource configuration method and device, and computer storage medium
CN106230729A (en) The method and apparatus that a kind of network appliance address is noticed
CN102594481B (en) Clock oscillation generating method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant