CN104243719B - The heart beat cycle of long connection determines mthods, systems and devices in mobile communications network - Google Patents

The heart beat cycle of long connection determines mthods, systems and devices in mobile communications network Download PDF

Info

Publication number
CN104243719B
CN104243719B CN201310228416.4A CN201310228416A CN104243719B CN 104243719 B CN104243719 B CN 104243719B CN 201310228416 A CN201310228416 A CN 201310228416A CN 104243719 B CN104243719 B CN 104243719B
Authority
CN
China
Prior art keywords
heart beat
beat cycle
address
mobile terminal
public network
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.)
Active
Application number
CN201310228416.4A
Other languages
Chinese (zh)
Other versions
CN104243719A (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 Mobile Communications Group Co Ltd
Original Assignee
China Mobile 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 Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201310228416.4A priority Critical patent/CN104243719B/en
Publication of CN104243719A publication Critical patent/CN104243719A/en
Application granted granted Critical
Publication of CN104243719B publication Critical patent/CN104243719B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Mthods, systems and devices are determined the embodiment of the invention discloses a kind of heart beat cycle of long connection in mobile communications network.This method includes:Obtain the public network IP address that the long mobile terminal being connected is set up with server;The corresponding relation of public network IP address and optimal heart beat cycle is inquired about according to the public network IP address of the mobile terminal, wherein, the corresponding relation of the public network IP address and heart beat cycle is stored in heartbeat data storehouse;The optimal heart beat cycle of the mobile terminal is determined according to Query Result.The stability of business can be improved using the embodiment of the present invention, save the flow and electric quantity consumption of terminal.

Description

The heart beat cycle of long connection determines mthods, systems and devices in mobile communications network
Technical field
The application is related to the heart beat cycle determination side of long connection in communication technical field, more particularly to mobile communications network Method, system and device.
Background technology
At present, increasing application needs to set up the length based on TCP/IP to its service server on intelligent mobile terminal Connection, and communicated at any time with service server by length connection.These length connections are usually required through mobile radio communication The access network and core net of network are so as to arrive at positioned at internet(Internet)On server.Due to mobile communications network resource Finiteness, Internet resources unconditional will not distribute to mobile terminal, work as mobile terminal by the core net of mobile communications network When being transmitted using being connected to of being set up more than certain time no data, the core net of mobile communications network can disconnect this company Connect, so as to cause the interruption of business.Therefore, for needing to set up the long data service connected, it usually needs use heartbeat mechanism Realize the keep-alive of length connection.
In the context of mobile communication networks, the parameter configuration of the core net accessed by mobile terminal is different, causes length It is different to connect the cycle of keep-alive.Therefore, if mobile terminal is likely to occur using fixed heart beat cycle and is worked as heart beat cycle During more than the network keep alive cycle, connection can not keep-alive;When heart beat cycle is much smaller than the network keep alive cycle, heartbeat packet excessively frequency Numerous, the consumption of power consumption and Internet resources to mobile terminal is excessive.For mobile terminal, in order to solve this problem, Ying Gen Heart beat cycle is carried out according to the situation of network where mobile terminal to it to optimize and revise.
At present, for each mobile terminal, when its access needs to set up the service server of long connection, mobile communication Network requires its detection for carrying out optimal heart beat cycle, is reached through detection after a while set by the mobile communications network Condition after, then the mobile terminal is required according to obtained result is soundd out to set the heart beat cycle that its is current.
Above-mentioned technical proposal has the disadvantages that:The service server for needing to set up long connection is connected to for each (Referred to as long line server)Mobile terminal, require its carry out current network conditions under optimal heart beat cycle detection, In detection process, when the heart beat cycle of trial is long, it will cause the unstable and traffic affecting of connection to provide, meanwhile, Due to mobile terminal need conversion heart beat cycle repeatedly attempted, therefore, can also be brought extra flow to mobile terminal with Electric quantity consumption.
The content of the invention
In view of this, method, system are determined the invention provides a kind of heart beat cycle of long connection in mobile communications network And device, it is possible to increase the stability of business, the flow and electric quantity consumption for saving terminal.
The heart beat cycle of long connection determines method in a kind of mobile communications network, and this method includes:
Obtain the public network IP address that the long mobile terminal being connected is set up with server;
The corresponding relation of public network IP address and optimal heart beat cycle is inquired about according to the public network IP address of the mobile terminal, its In, the corresponding relation of the public network IP address and heart beat cycle is stored in heartbeat data storehouse;
The optimal heart beat cycle of the mobile terminal is determined according to Query Result.
The heart beat cycle of long connection determines system in a kind of mobile communications network, and the system includes heart beat cycle determining device With heartbeat data storehouse;
The heart beat cycle determining device, the public network IP of the long mobile terminal being connected is set up with server for obtaining Location, the corresponding relation of public network IP address and optimal heart beat cycle is inquired about according to the public network IP address of the mobile terminal, according to looking into Ask the optimal heart beat cycle that result determines the mobile terminal;
The heartbeat data storehouse, the corresponding relation for storing the public network IP address and heart beat cycle.
A kind of heart beat cycle determining device of long connection in mobile communications network, the device includes acquisition module, inquiry mould Block and determining module;
The acquisition module, the public network IP address of the long mobile terminal being connected is set up for obtaining with server;
The enquiry module, for inquiring about public network IP address and optimal heartbeat according to the public network IP address of the mobile terminal The corresponding relation in cycle, wherein, the corresponding relation of the public network IP address and heart beat cycle is stored in heartbeat data storehouse.
The determining module, the optimal heart beat cycle for determining the mobile terminal according to Query Result.
A kind of service server, the server includes communication unit, Service Processing Unit and heartbeat decision unit;
The communication unit, the long connection request for receiving mobile terminal is read described from the long connection request The public network IP address of mobile terminal, new connection processing request is sent to Service Processing Unit, is carried in the new connection processing request There is the public network IP address;
The Service Processing Unit, for reading the public network IP address in the new connection processing request, to the heartbeat Decision unit sends IP address judgement request, and the Query Result returned according to the heartbeat decision unit is generated for determining most The order of excellent heart beat cycle, sends described for determining optimal heart beat cycle by the communication unit to the mobile terminal Order, wherein, carry the public network IP address in the IP address judgement request;
The heartbeat decision unit, for reading the public network IP address in the IP address judgement request, according to the public affairs Net IP address inquiry heartbeat data storehouse, Query Result is returned to the Service Processing Unit.
As seen from the above technical solution, the technical scheme that provides of the present invention is by recognizing the public network IP address of mobile terminal, The corresponding relation of the public network IP address that has stored and heart beat cycle in advance is inquired about according to the public network IP address of mobile terminal, according to looking into The optimal heart beat cycle that result determines mobile terminal, the i.e. embodiment of the present invention is ask to be determined most according to the public network IP address of mobile terminal Excellent heart beat cycle, optimal heart beat cycle will be carried out when being connected to long line server every time without all mobile terminals Detection, and then improve the stability of business, and electricity and the flow consumption of mobile terminal can be saved.
Brief description of the drawings
Fig. 1 is that the heart beat cycle of long connection in mobile communications network provided in an embodiment of the present invention determines method flow diagram.
Fig. 2 is that the heart beat cycle of long connection in mobile communications network provided in an embodiment of the present invention determines system composition signal Figure.
Fig. 3 is the heart beat cycle determining device structural representation of long connection in mobile communications network provided in an embodiment of the present invention Figure.
Fig. 4 is service server structural representation provided in an embodiment of the present invention.
Fig. 5 be heart beat cycle provided in an embodiment of the present invention determine system preferably constitute schematic diagram.
Fig. 6 is the flow chart that long line server determines optimal heart beat cycle in system shown in Figure 5.
Embodiment
The embodiment of the present invention is proposed based on analysis below:Mobile terminal passes through accessed mobile communications network and length When line server sets up the connection of TCP length, a private network IP address is typically undergone to the transfer process of public network IP address, for The mobile communications network environment identical mobile terminal of access, is typically by substantial amounts of mobile terminal in the transfer process Private network IP address is mapped to the public network IP address and different port numbers of minority, for online by these mobile terminals and the length Server set up TCP length connection for, due to these mobile terminals pass through mobile communications network environment be it is consistent, therefore Its optimal keep-alive duration is identical, and in long line server side, it is characterized in its public network IP that the connection of these TCP length, which is showed, Address is identical, and port numbers are different.Therefore, based on above-mentioned analysis, the embodiment of the present invention is proposed, in the optimal of some public network IP address In the case of heart beat cycle is for known to, connected for other TCP length from same public network IP address, without requiring mobile terminal The detection of optimal heart beat cycle is carried out again, can directly specify the mobile terminal to be attached with currently known optimal heart beat cycle Keep-alive.
Fig. 1 is that the heart beat cycle of long connection in mobile communications network provided in an embodiment of the present invention determines method flow diagram.
As shown in figure 1, the flow includes:
Step 101, the public network IP address that the long mobile terminal being connected is set up with server is obtained.
Step 102, pair of public network IP address and optimal heart beat cycle is inquired about according to the public network IP address of the mobile terminal It should be related to.
Wherein, the corresponding relation of the public network IP address and heart beat cycle is stored in heartbeat data storehouse.
Step 103, the optimal heart beat cycle of the mobile terminal is determined according to Query Result.
It can be seen that, by the method shown in Fig. 1, its corresponding optimal heart can be inquired about based on the public network IP address of mobile terminal Hop cycle, therefore, once the corresponding optimal heart beat cycle of a public network IP address, it is known that if for using the public network IP address access Mobile terminal for, it is not necessary to perform heart beat cycle detection process again and just can determine optimal heart beat cycle, in other words, without All mobile terminals will carry out the detection of optimal heart beat cycle when being connected to long line server every time, thus improve industry The stability of business, and electricity and the flow consumption of mobile terminal can be saved.
In the embodiment of the present invention, after the optimal heart beat cycle of mobile terminal is determined according to Query Result, Ke Yigen The order for determining optimal heart beat cycle is generated according to Query Result, by sending described for determining most to the mobile terminal The order of excellent heart beat cycle, to notify optimal heart beat cycle that mobile terminal is currently employed.
Wherein it is possible to according to the difference of Query Result, generate different orders, mobile terminal can receive the order simultaneously The identification order, according to the difference of the order, performs different actions, so that it is determined that optimal heart beat cycle.
Specifically, when the corresponding optimal heart of public network IP address that the mobile terminal is inquired from the heartbeat data storehouse During hop cycle, generate for indicating that the mobile terminal sends the first order of heartbeat according to the optimal heart beat cycle inquired, It is raw when the corresponding optimal heart beat cycle of the public network IP address that the mobile terminal is not inquired from the heartbeat data storehouse Into for indicating that the mobile terminal carries out the second order of optimal heart beat cycle detection.
Mobile terminal receives the order for determining optimal heart beat cycle, when the mobile terminal identifies described be used for really When the order of fixed optimal heart beat cycle is first order, heartbeat is sent according to the optimal heart beat cycle inquired, when The mobile terminal identifies the order for being used to determine optimal heart beat cycle when being second order, performs heart beat cycle Detection process, optimal heart beat cycle is determined according to heart beat cycle detection process.
Wherein, the corresponding relation of public network IP address and optimal heart beat cycle is stored in heartbeat data storehouse, on beats According to the acquisition of corresponding relation described in storehouse, the embodiment of the present invention is proposed, can be determined according to the parameter configuration of mobile communications network The corresponding relation of public network IP address and optimal heart beat cycle, can also be determined according to the optimal heart beat cycle detection process of executed The corresponding relation of public network IP address and optimal heart beat cycle.
Such as, can be by parameter configuration of the network operation attendant according to mobile communications network, it is determined that with identical ginseng Optimal heart beat cycle under the mobile communications network environment of number configuration, and the corresponding public network IP of mobile communications network environment Location scope, so that it is determined that the corresponding optimal heart beat cycle of the public network IP address gone out in the range of this, by the public network IP address determined It is configured to the corresponding relation of optimal heart beat cycle by configuring the modes such as interface in the heartbeat data storehouse.
For another example, it can set up for the detecting server for carrying out optimal heart beat cycle detection and the heartbeat data storehouse Connection, when the detecting server detects a certain public network IP address corresponding optimized detection cycle, by the public network IP address Updated with the corresponding relation in optimized detection cycle into the heartbeat data storehouse.
Fig. 2 is that the heart beat cycle of long connection in mobile communications network provided in an embodiment of the present invention determines system composition signal Figure.
As shown in Fig. 2 the system includes heart beat cycle determining device 201 and heartbeat data storehouse 202.
Heart beat cycle determining device 201, the public network IP address of the long mobile terminal being connected is set up for obtaining with server, The corresponding relation of public network IP address and optimal heart beat cycle is inquired about according to the public network IP address of the mobile terminal, is tied according to inquiry Fruit determines the optimal heart beat cycle of the mobile terminal.
Heartbeat data storehouse 202, the corresponding relation for storing the public network IP address and heart beat cycle.
Wherein, heart beat cycle determining device 201, for generating the life for determining optimal heart beat cycle according to Query Result Order, the order for being used to determine optimal heart beat cycle is sent to the mobile terminal.
Heart beat cycle determining device 201, specifically can be used for described mobile whole when being inquired from the heartbeat data storehouse During the corresponding optimal heart beat cycle of the public network IP address at end, generate for indicating the mobile terminal according to the optimal heart inquired Hop cycle sends the first order of heartbeat, and/or, when the public affairs that the mobile terminal is not inquired from the heartbeat data storehouse During the corresponding optimal heart beat cycle of net IP address, generate for indicating that the mobile terminal carries out the of optimal heart beat cycle detection Two orders.
The system can also include mobile terminal, and the mobile terminal is described for determining optimal heartbeat week for receiving The order of phase, when it is first order to identify the order for being used to determine optimal heart beat cycle, according to the inquiry The optimal heart beat cycle that arrives sends heartbeat, and/or, when identifying that the order for being used to determining optimal heart beat cycle is described the During two orders, heart beat cycle detection process is performed, optimal heart beat cycle is determined according to heart beat cycle detection process.
Heartbeat data storehouse 202, can be used for storage previously according to network parameter configure determine public network IP address with it is optimal The corresponding relation of heart beat cycle, and/or, store the public network IP determined previously according to the optimal heart beat cycle detection process of executed Address and the corresponding relation of optimal heart beat cycle.
Fig. 3 is the heart beat cycle determining device structural representation of long connection in mobile communications network provided in an embodiment of the present invention Figure.
As shown in figure 3, the device includes acquisition module 301, enquiry module 302 and determining module 303.
Acquisition module 301, the public network IP address of the long mobile terminal being connected is set up for obtaining with server.
Enquiry module 302, for inquiring about public network IP address and optimal heartbeat according to the public network IP address of the mobile terminal The corresponding relation in cycle, wherein, the corresponding relation of the public network IP address and heart beat cycle is stored in heartbeat data storehouse.
Determining module 303, the optimal heart beat cycle for determining the mobile terminal according to Query Result.
Wherein it is determined that module 303, it can be used for generating order for determining optimal heart beat cycle according to Query Result, The order for being used to determine optimal heart beat cycle is sent to the mobile terminal.
Determining module 303, specifically can be used for when the enquiry module inquires the shifting from the heartbeat data storehouse During the corresponding optimal heart beat cycle of the public network IP address of dynamic terminal, generate for indicating the mobile terminal according to inquiring most Excellent heart beat cycle sends the first order of heartbeat, and/or, when the enquiry module is not inquired from the heartbeat data storehouse During the corresponding optimal heart beat cycle of the public network IP address of the mobile terminal, generate for indicating that it is optimal that the mobile terminal is carried out Second order of heart beat cycle detection.
In one embodiment, the service server that long connection can be set up based on needs realizes that optimal heart beat cycle determines to fill Put, please specifically participate in Fig. 4.
Fig. 4 is service server structural representation provided in an embodiment of the present invention.
As shown in figure 4, the server includes communication unit 401, Service Processing Unit 402 and heartbeat decision unit 403.
Communication unit 401, the long connection request for receiving mobile terminal, the shifting is read from the long connection request The public network IP address of dynamic terminal, new connection processing request is sent to Service Processing Unit 402, is carried in the new connection processing request There is the public network IP address.
Service Processing Unit 402, for reading the public network IP address in the new connection processing request, sentences to the heartbeat Certainly unit 403 sends IP address judgement request, and the Query Result returned according to the heartbeat decision unit 403 is generated for true The order of fixed optimal heart beat cycle, sends described for determining the optimal heart by the communication unit 401 to the mobile terminal The order of hop cycle, wherein, carry the public network IP address in the IP address judgement request.
Heartbeat decision unit 403, for reading the public network IP address in the IP address judgement request, according to the public network IP address inquiry heartbeat data storehouse, Query Result is returned to the Service Processing Unit 402.
Wherein, heartbeat decision unit 403, for corresponding when inquiring the public network IP address from the heartbeat data storehouse Optimal heart beat cycle when, the optimal heart beat cycle that inquires is returned to the Service Processing Unit 402, otherwise, to the industry Business processing unit 402 returns to the message for not inquiring optimal heart beat cycle.
The Service Processing Unit 402, it is described for indicating for when receiving the optimal heart beat cycle inquired, generating Mobile terminal sends the first order of heartbeat according to the optimal heart beat cycle inquired, and optimal heart beat cycle is not inquired receiving Message when, generate for indicating that the mobile terminal carries out the second order of optimal heart beat cycle detection, to the communication unit Member 401 sends first order or second order;
Communication unit 401, for first order or second order of reception to be issued into the mobile terminal.
In one embodiment, optimal heart beat cycle determining device is realized based on the service server for needing to set up long connection When, it can also be implemented separately heartbeat decision unit 403 is independent from service server.
Below exemplified by realizing optimal heart beat cycle determining device in the service server for needing to set up long connection, to this The optimal heart beat cycle that inventive embodiments are provided determines that system and method are exemplarily introduced, specifically see Fig. 5 and Fig. 6.
Fig. 5 be heart beat cycle provided in an embodiment of the present invention determine system preferably constitute schematic diagram.
As shown in figure 5, the long line server 501 of the system and heartbeat data storehouse 502.
Wherein, terminal 1 and terminal 2 are connected to the long line server 501 positioned at Internet sides by access network, wherein The terminal 1 and terminal 2 are realized at NAT in the private net address of access network to the mapping of Internet public network address, grows and exists Line server 501 is connected with heartbeat data storehouse 502, is with the optimal heart beat cycle for checking and judging the TCP/IP length connection of terminal It is no known.
For current long on-line system, processing is optimized in long line server side in system shown in Figure 5, Heartbeat data storehouse is added simultaneously, two-part is described as follows on this:
Long line server in system shown in Figure 5 at least includes:Communication unit, Service Processing Unit, heartbeat judgement is single Member.Wherein:
Communication unit, the long connection for being responsible for processing terminal initiation, including the connection of monitor terminal are set up request, received The upstream message of terminal, to terminal send the function such as downstream message.
Service Processing Unit, for carrying out processing of the corresponding length of long connection request in line service, such as terminal uplink message Unpacking, the function such as group bag, the business logic processing of the downstream message that are sent to terminal.
Heartbeat decision unit, the TCP length connection for being responsible for setting up terminal checks, according to the public network IP of terminal Whether the optimal heart beat cycle of network is, it is known that if so, then directly can specify the terminal to be currently known most where location judges it Excellent heart beat cycle carries out keep-alive.
Be stored with the optimal heart beat cycle of currently known public network IP address in heartbeat data storehouse 502, for long online clothes Business device 501 is inquired about;Heartbeat data storehouse 502 can also support the record of the optimal heart cycle data for the public network IP address newly known Enter.The information of the inner record in heartbeat data storehouse 502 at least includes:Public network IP address, the public network IP address corresponding optimal heartbeat week Phase.
Fig. 6 is the flow chart that long line server determines optimal heart beat cycle in system shown in Figure 5.
As shown in fig. 6, the flow includes:
Step 1:Terminal is set up to long line server 501 and connected, and communication unit receives connection request.
Step 2:Communication unit reads the public network IP address of the terminal in socket, and is sent newly to Service Processing Unit The request of processing is connected, wherein carrying the public network IP address.
Step 3:Service Processing Unit receives new connection processing request, and sending IP address judgement to heartbeat decision unit please Ask, wherein carrying the public network IP address.
Step 4:Heartbeat decision unit receives IP address judgement request, by condition of the public network IP address to heartbeat data storehouse Inquired about.
Step 5:Heartbeat decision unit finds the optimal heart beat cycle of the public network IP address from heartbeat data storehouse.
Step 6:Heartbeat decision unit returns to the optimal heart beat cycle of the public network IP address to Service Processing Unit.
Step 7:Service Processing Unit generates downlink command according to the optimal heart beat cycle, specifies the terminal according to heartbeat The optimal heart beat cycle that decision unit is returned carries out keep-alive.
Step 8:Communication unit is to sending instructions under the terminal, and terminal is received after instruction, sets the heartbeat keepalive period of itself, Set optimal heart beat cycle.
If the optimal heart cycle data without the public network IP in heartbeat data storehouse, above step carries out as follows from step 6 Adjustment:
Step 6:Heartbeat decision unit returns to the optimal heart beat cycle for not finding the public network IP address to Service Processing Unit.
Step 7:Service Processing Unit generates downlink command, specifies the terminal to carry out optimal heart beat cycle detection.
Step 8:Communication unit is to sending instructions under the terminal, and terminal is received after instruction, carries out optimal heart beat cycle detection, root Optimal heart beat cycle is determined according to result of detection.
It can be seen that, by the embodiment of the present invention, for from the network environment for having verified optimal heart beat cycle(Set up according to terminal The public network IP address of connection makes decisions)The terminal come up is connected, the detection of optimal heart beat cycle is carried out again without terminal, it is to avoid Influenceed caused by the chain breaking problem brought in detection process, optimize the flow electric quantity consumption of terminal.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention God is with principle, and any modification, equivalent substitution and improvements done etc. should be included within the scope of protection of the invention.

Claims (9)

1. the heart beat cycle of long connection determines method in a kind of mobile communications network, it is characterised in that this method includes:
Obtain the public network IP address that the long mobile terminal being connected is set up with server;
The corresponding relation of public network IP address and optimal heart beat cycle is inquired about according to the public network IP address of the mobile terminal, wherein, The corresponding relation of the public network IP address and heart beat cycle is stored in heartbeat data storehouse;
It is raw when the corresponding optimal heart beat cycle of the public network IP address that the mobile terminal is inquired from the heartbeat data storehouse Into for indicating that the mobile terminal sends the first order of heartbeat according to the optimal heart beat cycle inquired;
When the corresponding optimal heart beat cycle of public network IP address that the mobile terminal is not inquired from the heartbeat data storehouse When, generate for indicating that the mobile terminal carries out the second order of optimal heart beat cycle detection;
First order or the second order are sent to the mobile terminal.
2. according to the method described in claim 1, it is characterised in that this method also includes:
The mobile terminal receives the order for being used to determine optimal heart beat cycle;
When it is first order that the mobile terminal, which identifies the order for being used to determine optimal heart beat cycle, according to institute State the optimal heart beat cycle inquired and send heartbeat;
When it is second order that the mobile terminal, which identifies the order for being used to determine optimal heart beat cycle, the heart is performed Hop cycle detection process, optimal heart beat cycle is determined according to heart beat cycle detection process.
3. according to the method described in claim 1, it is characterised in that the public network IP address stored in the heartbeat data storehouse Include with the corresponding relation of heart beat cycle:
The corresponding relation of the public network IP address and optimal heart beat cycle determined is configured previously according to network parameter;
And/or, the public network IP address and optimal heart beat cycle determined previously according to the optimal heart beat cycle detection process of executed Corresponding relation.
4. the heart beat cycle of long connection determines system in a kind of mobile communications network, it is characterised in that the system includes heartbeat week Phase determining device and heartbeat data storehouse;
The heart beat cycle determining device, the public network IP address of the long mobile terminal being connected, root are set up for obtaining with server According to the corresponding relation of the public network IP address inquiry public network IP address and optimal heart beat cycle of the mobile terminal;When from the heartbeat When the corresponding optimal heart beat cycle of public network IP address of the mobile terminal is inquired in database, generate for indicating the shifting Dynamic terminal sends the first order of heartbeat according to the optimal heart beat cycle inquired;Do not inquired about when from the heartbeat data storehouse To the mobile terminal public network IP address corresponding optimal heart beat cycle when, generate for indicating that the mobile terminal is carried out most Second order of excellent heart beat cycle detection;First order or the second order are sent to the mobile terminal;
The heartbeat data storehouse, the corresponding relation for storing the public network IP address and heart beat cycle.
5. system according to claim 4, it is characterised in that the system also includes mobile terminal,
The mobile terminal, it is described for determining when identifying for receiving the order for being used to determine optimal heart beat cycle When the order of optimal heart beat cycle is first order, according to the optimal heart beat cycle transmission heartbeat inquired, and/ Or, when it is second order to identify the order for being used to determine optimal heart beat cycle, performs heart beat cycle and detected Journey, optimal heart beat cycle is determined according to heart beat cycle detection process.
6. system according to claim 4, it is characterised in that
The heartbeat data storehouse, the public network IP address determined and optimal heart beat cycle are configured for storing previously according to network parameter Corresponding relation, and/or, store previously according to executed optimal heart beat cycle detection process determine public network IP address with most The corresponding relation of excellent heart beat cycle.
7. the heart beat cycle determining device of long connection in a kind of mobile communications network, it is characterised in that the device includes obtaining mould Block, enquiry module and determining module;
The acquisition module, the public network IP address of the long mobile terminal being connected is set up for obtaining with server;
The enquiry module, for inquiring about public network IP address and optimal heart beat cycle according to the public network IP address of the mobile terminal Corresponding relation, wherein, the corresponding relation of the public network IP address and heart beat cycle is stored in heartbeat data storehouse;
The determining module, the public network IP address for inquiring the mobile terminal from the heartbeat data storehouse for working as is corresponding During optimal heart beat cycle, generate for indicating that the mobile terminal sends the first of heartbeat according to the optimal heart beat cycle inquired Order;When the corresponding optimal heart beat cycle of public network IP address that the mobile terminal is not inquired from the heartbeat data storehouse When, generate for indicating that the mobile terminal carries out the second order of optimal heart beat cycle detection;Sent to the mobile terminal First order or the second order.
8. a kind of service server, it is characterised in that it is single that the server includes communication unit, Service Processing Unit and heartbeat judgement Member;
The communication unit, the long connection request for receiving mobile terminal, the movement is read from the long connection request The public network IP address of terminal, new connection processing request is sent to Service Processing Unit, is carried in the new connection processing request State public network IP address;The mobile terminal is issued into the first order or the second order of reception;
The Service Processing Unit, for reading the public network IP address in the new connection processing request, is adjudicated to the heartbeat Unit sends IP address judgement request, when receiving the optimal heart beat cycle inquired, generates for indicating the mobile terminal The first order of heartbeat is sent according to the optimal heart beat cycle that inquires, the message that does not inquire optimal heart beat cycle is being received When, generate for indicating that the mobile terminal carries out the second order of optimal heart beat cycle detection, by the communication unit to The mobile terminal sends first order or second order, wherein, carried in the IP address judgement request State public network IP address;
The heartbeat decision unit, for reading the public network IP address in the IP address judgement request, according to the public network IP Address lookup heartbeat data storehouse, when inquiring the corresponding optimal heart beat cycle of the public network IP address from the heartbeat data storehouse When, the optimal heart beat cycle inquired is returned to the Service Processing Unit, otherwise, returns and does not look into the Service Processing Unit Ask the message of optimal heart beat cycle.
9. server according to claim 8, it is characterised in that
The Service Processing Unit, is additionally operable to carry out processing of the corresponding length of the long connection request in line service.
CN201310228416.4A 2013-06-08 2013-06-08 The heart beat cycle of long connection determines mthods, systems and devices in mobile communications network Active CN104243719B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310228416.4A CN104243719B (en) 2013-06-08 2013-06-08 The heart beat cycle of long connection determines mthods, systems and devices in mobile communications network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310228416.4A CN104243719B (en) 2013-06-08 2013-06-08 The heart beat cycle of long connection determines mthods, systems and devices in mobile communications network

Publications (2)

Publication Number Publication Date
CN104243719A CN104243719A (en) 2014-12-24
CN104243719B true CN104243719B (en) 2017-09-01

Family

ID=52231033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310228416.4A Active CN104243719B (en) 2013-06-08 2013-06-08 The heart beat cycle of long connection determines mthods, systems and devices in mobile communications network

Country Status (1)

Country Link
CN (1) CN104243719B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554151B (en) * 2015-12-29 2019-01-15 联想(北京)有限公司 A kind of keep-alive time determines method and electronic equipment
CN107517136B (en) * 2016-06-16 2022-08-16 中兴通讯股份有限公司 Method, device and system for realizing heartbeat keep-alive
CN107819642B (en) * 2017-09-15 2020-02-28 中国科学院计算技术研究所 Self-adaptive heartbeat method and system based on distribution
CN112929457B (en) * 2019-12-05 2022-11-01 中国移动通信集团设计院有限公司 NAT address mapping time-sharing segment keeping method, auxiliary server and equipment
CN111934909B (en) * 2020-07-13 2023-06-13 深圳栅格信息技术有限公司 Main-standby machine IP resource switching method, device, computer equipment and storage medium
CN111917581B (en) * 2020-07-31 2021-09-14 深圳乐播科技有限公司 Communication connection maintenance method, device, equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101471992B (en) * 2007-12-24 2012-05-09 联想(北京)有限公司 Mobile terminal and method for receiving or sending business information, and push-pull server
US8724486B2 (en) * 2008-05-02 2014-05-13 Pine Valley Investments, Inc. System and method for heartbeat signal generation
CN101917437B (en) * 2010-08-20 2013-03-20 迈普通信技术股份有限公司 User off-line detection method based on SIP and SIP user state detection system
CN103209089B (en) * 2012-01-17 2016-06-08 华为技术有限公司 The acquisition methods of heart beat cycle and terminal, server
CN104135460B (en) * 2013-05-03 2017-11-24 华为软件技术有限公司 A kind of push channel keepalive method and push server

Also Published As

Publication number Publication date
CN104243719A (en) 2014-12-24

Similar Documents

Publication Publication Date Title
CN104243719B (en) The heart beat cycle of long connection determines mthods, systems and devices in mobile communications network
US11388265B2 (en) Machine-to-machine protocol indication and negotiation
US8971820B2 (en) Power consumption reduction in a user terminal
US9137623B2 (en) Method and system for realizing concurrent access of multi-kinds of bearer protocols on machine-to-machine (M2M) platform
US20180372507A1 (en) Information sharing method of smart electricity meter, smart electricity meter and acquisition router
CN106790675A (en) Load-balancing method, equipment and system in a kind of cluster
CN102377640B (en) Message processing apparatus, message processing method and preprocessor
WO2019000866A1 (en) Data processing method and internet of things (iot) gateway
CN101360046B (en) Bandwidth resource saving method
WO2013113285A1 (en) Routing generation for implementation of fiber channel over ethernet
JP2014528227A (en) System and method for reduced power wireless communication
CN110249634A (en) Ammeter including power line interface He at least one radio frequency interface
CN114125940A (en) Data message sending method, data message processing method, data message sending device, data message processing device, data message sending equipment and data message
KR20130031847A (en) A method and systems for operating a communications network based on energy status
US8761017B2 (en) Transport cost optimization for enterprise service
CN103457748A (en) Data transmission method, system and device
CN105429885A (en) Adaptive router selection method
CN109495526A (en) A kind of file transmitting method, device, system, electronic equipment and storage medium
CN105515936A (en) Method, server and system for message communication
JP2014143461A (en) Radio base station, radio communication system using the same, and radio communication connection method
CN107925630B (en) Communication policy control in machine-to-machine communication system
CN115190087B (en) Data transmission method, device, equipment and medium based on two-layer intermediate equipment
CN105338195A (en) Terminal power saving method and terminal
CA2786634C (en) System and method for improving service subscription or unsubscription speed for wireless application protocol (wap) roaming users
CN110601892B (en) Main module access method, device and equipment based on object-oriented protocol

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant