CN104579813B - Detection method and terminal - Google Patents

Detection method and terminal Download PDF

Info

Publication number
CN104579813B
CN104579813B CN201310522405.7A CN201310522405A CN104579813B CN 104579813 B CN104579813 B CN 104579813B CN 201310522405 A CN201310522405 A CN 201310522405A CN 104579813 B CN104579813 B CN 104579813B
Authority
CN
China
Prior art keywords
application
data packet
terminal
message
site
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
CN201310522405.7A
Other languages
Chinese (zh)
Other versions
CN104579813A (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.)
Huawei Device Co Ltd
Original Assignee
Huawei Device Dongguan 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 Huawei Device Dongguan Co Ltd filed Critical Huawei Device Dongguan Co Ltd
Priority to CN201310522405.7A priority Critical patent/CN104579813B/en
Publication of CN104579813A publication Critical patent/CN104579813A/en
Application granted granted Critical
Publication of CN104579813B publication Critical patent/CN104579813B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention relates to a kind of detection method and terminal, the method includes:Terminal, which determines, has the first application for not determining application type in the application being currently running in the terminal, the application type includes:Permanent application on site and non-permanent application on site;The terminal detects described first and applies the data packet sent when no user inputs;At least one in the data packet detected described in the terminal determination is heartbeat message;At least one in the data packet that the terminal is detected according to is that heartbeat message determines that the application type of first application is permanent application on site;The terminal provides application message report, and the application type comprising first application in the application message report is the information of permanent application on site.The present invention can in time, dynamically by the information reporting of permanent application on site to network, the information of new application also in time, can be reported dynamically to network.

Description

Detection method and terminal
Technical field
The present invention relates to network communication technology field more particularly to a kind of detection methods and terminal.
Background technology
Operate in the permanent application on site in terminal(Full name in English:Always-online applications), such as MSN, QQ, Facebook etc., it is desirable that the applications client in terminal(Full name in English:application client)It is taken to application Business device(Full name in English:application server)Send heartbeat message(Full name in English:Keep-alive message, Claim keep-alive message), to keep the communication connection between application server and applications client.Heartbeat message intervals are generally several Second, tens seconds to a few minutes;In order to send heartbeat message, terminal needs to carry out Signalling exchange with communication network, to establish and release Put communication connection.In this way, the heartbeat message of the permanent application on site of great amount of terminals generates a large amount of signalings, brought to carrier network Prodigious signaling traffic load, i.e. " signaling storm(Full name in English:signalling storm)", cause network congestion even to paralyse.
If network can know the information of permanent application on site in terminal, it will be able to preferably carry out Internet resources tune Degree, to which the generation of above-mentioned " signaling storm " be reduced or avoided.The existing method for providing permanent application on site information is:At end A list for needing to report the permanent application on site of application message is pre-configured on end, terminal, which can periodically inquire in terminal, is The no one or more permanent application on site having in the list are being run, if any then being reported to communication network corresponding permanent online The information of application.
However, the list of application of application message that needs to report being pre-configured in terminal is a kind of static mode, that is, need It is configured when terminal is dispatched from the factory and/or by operator's periodically (such as every half a year, 1 year) update configuration.And length new in terminal at present Long application on site continues to bring out, if new permanent application on site not in the list of pre-configuration, terminal cannot to network and When report the information of the permanent application on site, i.e.,:The mode for relying on static allocation list can not be by the letter of new permanent application on site Breath is timely, dynamically reports to network.
Invention content
The object of the present invention is to provide a kind of detection method and terminal, can in time, dynamically by permanent application on site Information reporting also can in time, dynamically report the information of new application to network to network.
To achieve the above object, first aspect present invention provides a kind of detection method, the method includes:
Terminal determines there is the first application for not determining application type in the application being currently running in the terminal, described to answer Include with type:Permanent application on site and non-permanent application on site;
The terminal detects described first and applies the data packet sent when no user inputs;
At least one in the data packet detected described in the terminal determination is heartbeat message;
It is at least one in the data packet that the terminal is detected according to determine first application for heartbeat message Application type is permanent application on site;
The terminal provides application message report, and the application type of first application is included in the application message report For the information of permanent application on site.
With reference to first aspect, in the first embodiment of first aspect, the terminal determine described in the number that detects According in packet it is at least one be heartbeat message, including:
The characteristic value of the data packet detected described in the terminal acquisition, the characteristic value include at least following one kind:Number According to packet length, sending time or header data;
All or part of data packet is having the same in the data packet that the terminal is detected according to is no more than in advance If the data packet length of threshold value, at least one in the data packet detected described in determination is heartbeat message;
And/or
All or part of data packet header data having the same in the data packet that the terminal is detected according to, At least one in the data packet detected described in determination is heartbeat message;
And/or
All or part of data packet sending time having the same in the data packet that the terminal is detected according to It is spaced, at least one in the data packet detected described in determination is heartbeat message.
With reference to first aspect or the first embodiment of first aspect, in second of embodiment of first aspect, Before or after the terminal provides application message report, the method further includes:
The application type that the terminal is applied described first is labeled as permanent application on site.
With reference to first aspect or the first embodiment or second of embodiment of first aspect, the of first aspect In three kinds of embodiments, after the terminal provides application message report, the method further includes:
Whether the terminal receives first message, comprising requiring the terminal to continue to provide described the in the first message The instruction of the information of one application;
According to the first message, it is determined whether provide the information of first application.
Second aspect, the present invention also provides a kind of terminal, the terminal includes:First determination unit, detection unit, Two determination units, third determination unit and report provide unit;
First determination unit is used to determine for existing in the application that is currently running in terminal and not determining application type One application, the application type include:Permanent application on site and non-permanent application on site;
The detection unit is used to detect first determination unit determines described first and applies when no user inputs The data packet of transmission.
Second determination unit is used to determine at least one in data packet that the detection unit detects to disappear for heartbeat Breath.
It is at least one in the data packet that the third determination unit is used to detect according to determine institute for heartbeat message The application type for stating the first application is permanent application on site.
The report provides unit for providing application message report, is answered comprising described first in the application message report Application type is the information of permanent application on site.
In conjunction with second aspect, in the first possible embodiment of second aspect, second determination unit obtains The characteristic value of the data packet detected, the characteristic value include at least following one kind:Data packet length, sending time or head Portion's data;
All or part of data packet is having the same in the data packet that second determination unit is detected according to No more than the data packet length of predetermined threshold value, at least one in the data packet detected described in determination is heartbeat message;
And/or
All or part of data packet is having the same in the data packet that second determination unit is detected according to Header data, determine described in it is at least one in the data packet that detects be heartbeat message;
And/or
All or part of data packet is having the same in the data packet that second determination unit is detected according to Transmission time interval, determine described in it is at least one in the data packet that detects be heartbeat message.
In conjunction with the possible embodiment of the first of second aspect or second aspect, second in second aspect is possible In embodiment, described device further includes:Marking unit, the application type for being applied described first is labeled as permanent online Using.
In conjunction with the possible embodiment of the first of second aspect or second aspect or second of possible embodiment, In the third possible embodiment of second aspect, the terminal further includes:
Whether receiving unit includes to require the terminal to continue to provide in the first message for receiving first message The instruction of the information of first application;
4th determination unit, the first message for being received according to the receiving unit, it is determined whether institute is provided State the information of the first application.
The third aspect, the present invention also provides a kind of terminal, the terminal includes:Processor and transceiver, the processing Device and transceiver couples;
The processor does not determine the first of application type for determining to exist in the application being currently running in the terminal Using the application type includes:Permanent application on site and non-permanent application on site;Detect described first apply it is defeated in no user The data packet of fashionable transmission;Whether at least one in the data packet detected described in determination is heartbeat message, according to the detection To data packet in it is at least one be heartbeat message determine it is described first application application type be permanent application on site;
The transceiver is for providing application message report, answering comprising first application in the application message report With the information that type is permanent application on site.
In conjunction with the third aspect, in the first possible embodiment of the third aspect, the processor determines the inspection At least one in the data packet measured is heartbeat message, including:
The characteristic value of the data packet detected described in the processor acquisition, the characteristic value include at least following one kind: Data packet length, sending time or header data;
All or part of data packet is having the same in the data packet that the processor is detected according to is no more than The data packet length of predetermined threshold value, determine described in it is at least one in the data packet that detects be heartbeat message.
In conjunction with the possible embodiment of the first of the third aspect or the third aspect, second in the third aspect is possible In embodiment, at least one in the data packet detected described in the processor determination is heartbeat message, including:
The characteristic value of the data packet detected described in the processor acquisition, the characteristic value include at least following one kind: Data packet length, sending time or header data;
All or part of data packet head number having the same in the data packet that the processor is detected according to According at least one in the data packet detected described in determination is heartbeat message.
In conjunction with the possible embodiment of the first of the third aspect or the third aspect, the third in the third aspect is possible In embodiment, at least one in the data packet detected described in the processor determination is heartbeat message, including:
The characteristic value of the data packet detected described in the processor acquisition, the characteristic value include at least following one kind: Data packet length, sending time or header data;
In the data packet that the processor is detected according to when the transmission having the same of all or part of data packet Between be spaced, determine described in it is at least one in the data packet that detects be heartbeat message.
In conjunction with the first or second or the third possible embodiment of the third aspect or the third aspect, in third party In the 4th kind of possible embodiment in face, the processor is additionally operable to, before the transceiver provides application message report Or later, the application type described first applied is labeled as permanent application on site.
In conjunction with the first of the third aspect or the third aspect to the 4th kind of possible embodiment, the 5th of the third aspect the In the possible embodiment of kind, the transceiver is additionally operable to receive first message, includes whether to require institute in the first message Terminal is stated to continue to provide the instruction of the information of first application;
The processor is additionally operable to the first message received according to the transceiver, it is determined whether provides described the The information of one application.
Detection method and terminal provided by the invention need not be pre-configured with list of application in terminal or can be used as pre- List of application mode is set to be combined, can in time, dynamically by the information reporting of permanent application on site to network, new is answered Information also in time, can be reported dynamically to network, can preferably implement network management/scheduling of resource, reduce or keep away Signaling storm caused by exempting from the permanent application on site of terminal.
Description of the drawings
Fig. 1 is the detection method flow chart that the embodiment of the present invention one provides;
Fig. 2 is a kind of terminal schematic diagram provided by Embodiment 2 of the present invention;
Fig. 3 is the structural schematic diagram for another terminal that the embodiment of the present invention three provides;
Fig. 4 is the composed structure schematic diagram for another terminal that the embodiment of the present invention four provides.
Specific implementation mode
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Detection method provided in an embodiment of the present invention, suitable for being equipped with permanent application on site(Such as MSN, QQ, Facebook etc.)Terminal, can also apply need detect heartbeat message terminal.
Embodiment one
Fig. 1 is detection method flow chart provided in this embodiment, as shown in Figure 1, the detection method of the present invention includes:
S101, terminal, which determine, has the first application for not determining application type in the application being currently running in the terminal.
The application type includes:Permanent application on site and non-permanent application on site.
S102, the terminal detect described first and apply the data packet sent when no user inputs.
The terminal is detecting user to no user in the first time threshold after the incoming event of first application When either the terminal enters no user input in the first time threshold after screen lock state when input or described first answers With into when no user input, which determines that first application is in the first time threshold after background operation state No user input state.
The terminal is determining first application in no user input state, and the terminal is in subsequent second time threshold It is interior or detect next time user input before, detection it is described first application send at least one data packet.
Usually, the terminal detect user to it is described first application incoming event or the terminal enter lock When screen state or the application enter background operation state, which starts or resets the first timing of first application Device.When first timer reaches or is more than first time threshold, determine that no user inputs in the first time threshold, the end At least one data packet that detection first application in end is sent.First time threshold is preset time threshold, such as 2 Minute or 5 minutes.
Obtain the characteristic value of multiple data packets in second time threshold.Second time threshold is that the startup of preset terminal is sentenced The disconnected time is determined, such as 1,2,4 or 8 hour etc. by terminal realization.When time interval not yet reaches second time threshold, Terminal repeats to detect the data packet that first application is sent.In the data packet detected described in S103, terminal determination at least One is heartbeat message.
Specifically, the characteristic value of the data packet detected described in terminal acquisition, the characteristic value include at least following one Kind:Data packet length, sending time or header data.
All or part of data packet is having the same no more than default in the data packet that the terminal is detected according to The data packet length (such as 2000 bytes) of threshold value, determine described in it is at least one in the data packet that detects be heartbeat message;With/ Or,
All or part of data packet header data having the same in the data packet that the terminal is detected according to, really At least one in the fixed data packet detected is heartbeat message;And/or
In the data packet that the terminal is detected according between all or part of data packet sending time having the same Every at least one in the data packet detected described in determination is heartbeat message.
It is at least one in the data packet that S104, the terminal are detected according to determine first application for heartbeat message Application type be permanent application on site.
In this way, in the absence of user input, the first application sends the data packet of first application, by one section The data packet sent to first application within time carries out packet detection, obtains the corresponding characteristic value of multiple data packets, The characteristic value of multiple data packets in a period of time is judged, in the data packet which detects according to extremely Few one is that heartbeat message determines that the application type of first application is permanent application on site.
S105, the terminal provide application message report, and the application of first application is included in the application message report Type is the information of permanent application on site.
Application identities of the application message report comprising first application or Apply Names, heartbeat message send interval With the information such as heartbeat message packet size, application type.Wherein, application type is permanent application on site.
It, can be in application message report if saving the list of application for needing to report application message in the terminal Include the instruction of request " increasing by first application into permanent application on site list ".
After network receives the application message report of terminal transmission, foundation carrier policy (such as whether operator wishes Hope network optimize control/management using application message report), network is to testing result (such as the net of first application Network carries out deep-packet detection to the data packet of first application received, judges the feature of first application) etc., decide whether It is required that SS later continues to report the information of first application.
Optionally, before or after the terminal provides application message report, further include:The terminal is answered described first Application type is labeled as permanent application on site.
Optionally, after the terminal provides application message report, the method further includes:
Whether the terminal receives first message, include to require the terminal to continue to provide described first in the first message The instruction of the information of application.
The terminal is according to the first message, it is determined whether provides the information of first application.
Network sends first message to the terminal.Whether can be required comprising network in the first message SS later after The continuous instruction that first application message is provided.If the network requirement SS later continues to provide the information of first application, should In first message include relevant parameter, such as report cycle and/or triggering report event, application parameter(Such as heartbeat message Send interval and/or heartbeat message packet size)Deng.
Whether the terminal receives the first message of network transmission, according to the first message, determine described in subsequently providing The information of first application.
If the first message indicates that the network requirement SS later continues to provide the information of first application, terminal It according to the relevant parameter in the first message, will subsequently continue to report first information applied to network.
If the first message indicates that network does not require SS later to continue to provide first application message, after terminal It is continuous to continue to provide first application message to network.SS later no longer carries out carrying out the heartbeat message of first application Detection.
If the first message does not include network requirement, the SS later continues to be provided with or without first application message Instruction, then the terminal can also determine the follow-up letter for whether being provided with or without to network first application according to being locally configured Breath.
If containing terminal request in application message report " to increase this into permanent application on site list first to answer With " instruction, can also include network in the first message to whether " increasing into permanent application on site list this first to answer With " confirmation.Usually, if the first message indicates that network requirement SS later continues to report first application message, Then network is confirmed as "Yes" to " increasing by first application into permanent application on site list ";If the first message indicates Network does not require SS later to continue to report first application message, then network is to " increasing into permanent application on site list should "No" is confirmed as in first application ";Vice versa.Therefore, if containing network to whether " to for a long time online in first message Increase by first application in list of application " confirmation, then whether can be required not comprising network SS later continue to provide this The instruction of one application message.
If in application message report not comprising terminal request " increase into permanent application on site list this first Using " instruction, can include network request " increasing by first application into permanent application on site list " in the first message Request.In this way, when the terminal receives the first message, which increases into existing permanent application on site list should First application or terminal, which create permanent application on site list and created to this, to be increased this and first answers in permanent application on site list With.
If the first message indicates that network requirement SS later continues to provide first application message, when arrival reports When the period, or when detecting the particular event that triggering reports, which reports the information of first application to network, this first is answered Information includes the application identities of first application or the application parameter that Apply Names, requirement report(Such as heartbeat message hair Send interval and/or heartbeat message packet size)Deng.The terminal can determine the parameter of first application.Network can be to the terminal The application message report subsequently sent sends first message, to acknowledge receipt of application message report.
Detection method provided in an embodiment of the present invention, it may not be necessary to terminal be pre-configured with permanent application on site list or Person can be combined as preset permanent application on site list mode, can in time, dynamically by the information of permanent application on site It is reported to network, the information of new application also in time, can be reported dynamically to network.
It is the detailed description carried out to detection method provided by the present invention above, detection provided by the invention is filled below It sets and terminal is described in detail.
Embodiment two
Fig. 2 is a kind of schematic diagram of terminal provided in this embodiment, as shown in Fig. 2, the terminal includes:First determines list Member 201, detection unit 202, the second determination unit 203, third determination unit 204 and report provide unit 205.
First determination unit 201, which is used to determine to exist in the application being currently running in terminal, does not determine application type First application.
The application type includes:Permanent application on site and non-permanent application on site.
The detection unit 202 is used to detect first determination unit 201 determines described first and applies in no user The data packet sent when input.
The detection unit 202 is detecting user to the first time threshold after the incoming event of first application When either the terminal enters no user input in the first time threshold after screen lock state when the input of interior no user or When first application is inputted into no user in the first time threshold after background operation state, the detection unit 202 Determine that first application is in no user input state.
The detection unit 202 is determining first application in no user input state, in the second subsequent time In threshold value or before detecting user's input next time, at least one data packet of detection the first application transmission.
Usually, the detection unit 202 is detecting incoming event or the end of the user to first application When end enters background operation state into screen lock state or the application, first for starting or resetting first application is fixed When device.When first timer reaches or is more than first time threshold, determine that no user inputs in the first time threshold, institute It states detection unit 202 and detects at least one data packet that first application is sent.When first time threshold is preset Between threshold value, such as 2 minutes or 5 minutes.
The detection unit 202 obtains the characteristic value of multiple data packets in second time threshold.Second time threshold is Preset terminal starts the time judged, is determined by terminal realization, such as 1,2,4 or 8 hour etc..It is not yet reached in time interval When second time threshold, the detection unit 202 repeats to detect the data packet that first application is sent.
Second determination unit 203, which is used to determine, at least one in data packet that the detection unit 202 detects is Heartbeat message.
Second determination unit 203 obtains the characteristic value of the data packet detected, and the characteristic value includes at least Following one kind:Data packet length, sending time or header data.
Second determination unit 203 has identical according to all or part of data packet in the data packet detected The data packet length (such as 2000 bytes) no more than predetermined threshold value, determine described at least one in the data packet that detects be Heartbeat message;And/or second determination unit 203 is according to all or part of data packet in the data packet detected Header data having the same, determine described in it is at least one in the data packet that detects be heartbeat message;And/or described second Determination unit 203 according to all or part of data packet transmission time interval having the same in the data packet detected, At least one in the data packet detected described in determination is heartbeat message.
The third determination unit 204 is used for according to the data detected described in second determination unit 203 determination At least one in packet is that heartbeat message determines that the application type of first application is permanent application on site.
The report provides unit 205 for providing application message report, and described the is included in the application message report The application type of one application is the information of permanent application on site.
Application identities of the application message report comprising first application or Apply Names, heartbeat message send interval With the information such as heartbeat message packet size, application type.Wherein, application type is permanent application on site.
It, can be in application message report if saving the list of application for needing to report application message in the terminal Include the instruction of request " increasing by first application into permanent application on site list ".
In this way, in the absence of user input, which sends the data packet of first application, by one The data packet sent to first application within the section time carries out packet detection, obtains the corresponding feature of multiple data packets Value, judges the characteristic value of multiple data packets in a period of time, the data packet which detects according to In it is at least one be heartbeat message determine it is described first application application type be permanent application on site.
After network receives the application message report of terminal transmission, foundation carrier policy (such as whether operator wishes Hope network optimize control/management using application message report), network is to testing result (such as the net of first application Network carries out deep-packet detection to the data packet of first application received, judges the feature of first application) etc., decide whether It is required that SS later continues to report the information of first application.
Optionally, the terminal can also include:Marking unit, receiving unit and the 4th determination unit.
The application type that the marking unit is used to apply described first before or after providing application message report Labeled as permanent application on site.
Whether the receiving unit includes to require the terminal to continue to carry in the first message for receiving first message For the instruction of the information of first application.
The first message that 4th determination unit is used to be received according to the receiving unit, it is determined whether institute is provided State the information of the first application.
Network sends first message to the terminal.Whether can be required comprising network in the first message SS later after The continuous instruction that first application message is provided.If the network requirement SS later continues to provide the information of first application, should In first message include relevant parameter, such as report cycle and/or triggering report event, application parameter(Such as heartbeat message Send interval and/or heartbeat message packet size)Deng.
The receiving unit receives the first message of network transmission, and the 4th determination unit disappears according to described first Breath determines the information for subsequently whether providing first application.
If the first message indicates that the network requirement SS later continues to provide the information of first application, the end End according to the relevant parameter in the first message, will subsequently continue to report first information applied to network.
If the first message indicates that network does not require SS later to continue to provide first application message, after terminal It is continuous to continue to provide first application message to network.SS later no longer carries out carrying out the heartbeat message of first application Detection.
If the first message does not include network requirement, the SS later continues to be provided with or without first application message Instruction, then the terminal can also determine the follow-up letter for whether being provided with or without to network first application according to being locally configured Breath.
If containing terminal request in application message report " to increase this into permanent application on site list first to answer With " instruction, can also include network in the first message to whether " increasing into permanent application on site list this first to answer With " confirmation.Usually, if the first message indicates that network requirement SS later continues to report first application message, Then network is confirmed as "Yes" to " increasing by first application into permanent application on site list ";If the first message indicates Network does not require SS later to continue to report first application message, then network is to " increasing into permanent application on site list should "No" is confirmed as in first application ";Vice versa.Therefore, if containing network to whether " to for a long time online in first message Increase by first application in list of application " confirmation, then whether can be required not comprising network SS later continue to provide this The instruction of one application message.
If in application message report not comprising terminal request " increase into permanent application on site list this first Using " instruction, can include network request " increasing by first application into permanent application on site list " in the first message Request.In this way, when the terminal receives the first message, which increases into existing permanent application on site list should First application or terminal, which create permanent application on site list and created to this, to be increased this and first answers in permanent application on site list With.
If the first message indicates that network requirement SS later continues to provide first application message, when arrival reports When the period, or when detecting the particular event that triggering reports, which reports the information of first application to network, this first is answered Information includes the application identities of first application or the application parameter that Apply Names, requirement report(Such as heartbeat message hair Send interval and/or heartbeat message packet size)Deng.The terminal can determine the parameter of first application.Network can be to the terminal The application message report subsequently sent sends first message, to acknowledge receipt of application message report.
Embodiment three
Fig. 3 is the structural schematic diagram of terminal provided in this embodiment, as shown in figure 3, the terminal includes:Processor 301 With transceiver 302.Processor 301 is coupled with transceiver 302.
Processor 301, which is used to determine in the application being currently running in the terminal to exist, does not determine that the first of application type answers With the application type includes:Permanent application on site and non-permanent application on site;Described first is detected to apply in no user input When the data packet that sends;Whether at least one in the data packet detected described in determination is heartbeat message, is detected according to described Data packet in it is at least one be heartbeat message determine it is described first application application type be permanent application on site.
Transceiver 302 is for providing application message report, answering comprising first application in the application message report With the information that type is permanent application on site.
Processor 301 is detecting user to useless in the first time threshold after the incoming event of first application When either the terminal enters no user input in the first time threshold after screen lock state when family inputs or described the One application is into when no user input, processor 301 determines described first in the first time threshold after background operation state Using in no user input state.Processor 301 is in subsequent second time threshold or is detecting that user is defeated next time Before entering, at least one data packet of detection the first application transmission.
Usually, processor 301 can detect incoming event or the terminal of the user to first application When entering background operation state into screen lock state or the application, processor 301 starts or resets first application First timer.When first timer reaches or is more than first time threshold, the no user in the first time threshold is determined It inputs, then processor 301 detects at least one data packet that first application is sent.First time threshold is preset Time threshold, such as 2 minutes or 5 minutes.
Processor 301 obtains the characteristic value of multiple data packets in second time threshold.Second time threshold is preset Terminal starts the time judged, is determined by terminal realization, such as 1,2,4 or 8 hour etc..When time interval not yet reaches second Between threshold value when, terminal repeat detect it is described first application send data packet.
At least one in the data packet detected described in the determination of processor 301 is heartbeat message, including:
Processor 301 obtains the characteristic value of the data packet detected, and the characteristic value includes at least following one kind:Number According to packet length, sending time or header data.
Processor 301 is no more than in advance according to all or part of data packet in the data packet detected is having the same If the data packet length (such as 2000 bytes) of threshold value, at least one in the data packet detected described in determination is heartbeat message.
Alternatively, processor 301 is according to all or part of data packet head having the same in the data packet detected Portion's data, determine described in it is at least one in the data packet that detects be heartbeat message.
Alternatively, processor 301 is according to all or part of data packet hair having the same in the data packet detected Send time interval, determine described in it is at least one in the data packet that detects be heartbeat message.
Processor 301 is additionally operable to that before or after transceiver 302 provides application message report, described first is applied Application type is labeled as permanent application on site.
Whether transceiver 302 is additionally operable to receive first message, include to require the terminal to continue to carry in the first message For the instruction of the information of first application.
Processor 301 is additionally operable to the first message received according to transceiver 302, it is determined whether provides described first The information of application.
The application message report that transceiver 302 is sent includes application identities or Apply Names, the heartbeat of the application Message sends the information such as interval and heartbeat message packet size, application type.Wherein, application type is permanent application on site.
It, can be in application message report if saving the list of application for needing to report application message in the terminal Include the instruction of request " increasing by first application into permanent application on site list ".
In this way, in the absence of user input, the first application sends the data packet of first application, by one section The data packet sent to first application within time carries out packet detection, obtains the corresponding characteristic value of multiple data packets, The characteristic value of multiple data packets in a period of time is judged, in the data packet which detects according to extremely Few one is that heartbeat message determines that the application type of first application is permanent application on site.
After network receives the application message report of terminal transmission, foundation carrier policy (such as whether operator wishes Hope network optimize control/management using application message report), network is to testing result (such as the net of first application Network carries out deep-packet detection to the data packet of first application received, judges the feature of first application) etc., decide whether It is required that SS later continues to report the information of first application.
Example IV
Fig. 4 is the composed structure schematic diagram of terminal provided in this embodiment, as shown in figure 4, the terminal of the present invention includes:Place Manage device 401, communication interface 402 and memory 403.
Communication interface 402 with the other equipment in network for interacting.
Application program of the physical store in memory 403, the application program include that can be used for making the processor 401 The instruction of following procedure is executed with the terminal:
Determine there is the first application for not determining application type in the application being currently running in the terminal, it is described to apply class Type includes:Permanent application on site and non-permanent application on site;
It detects described first and applies the data packet sent when no user inputs;
At least one in the data packet detected described in determination is heartbeat message;
According at least one application type for determining first application for heartbeat message in the data packet detected For permanent application on site;
Application message report is provided, the application type comprising first application in the application message report is to exist for a long time The information of line application.
Specifically, terminal executes the detection method shown in above-mentioned Fig. 1 and in embodiment one also according to described instruction, specifically exists This is repeated no more.
Detection method and terminal provided by the invention need not be pre-configured with list of application in terminal or can be used as pre- List of application mode is set to be combined, can in time, dynamically by the information reporting of permanent application on site to network, new is answered Information also in time, can be reported dynamically to network, can preferably implement network management/scheduling of resource, reduce or keep away Signaling storm caused by exempting from the permanent application on site of terminal.
Professional should further appreciate that, described in conjunction with the examples disclosed in the embodiments of the present disclosure Unit and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, hard in order to clearly demonstrate The interchangeability of part and software generally describes each exemplary composition and step according to function in the above description. These functions are implemented in hardware or software actually, depend on the specific application and design constraint of technical solution. Professional technician can use different methods to achieve the described function each specific application, but this realization It should not be considered as beyond the scope of the present invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can use hardware, processor to execute The combination of software module or the two is implemented.Software module can be placed in random access memory(RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field In any other form of storage medium well known to interior.
Above-described specific implementation mode has carried out further the purpose of the present invention, technical solution and advantageous effect It is described in detail, it should be understood that the foregoing is merely the specific implementation mode of the present invention, is not intended to limit the present invention Protection domain, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all include Within protection scope of the present invention.

Claims (6)

1. a kind of detection method, which is characterized in that the method includes:
Terminal determines there is the first application for not determining application type in the application being currently running in the terminal, described to apply class Type includes:Permanent application on site and non-permanent application on site;
The terminal detects described first and applies the data packet sent when no user inputs;
At least one in the data packet detected described in the terminal determination is heartbeat message;
At least one application that first application is determined for heartbeat message in the data packet that the terminal is detected according to Type is permanent application on site;
The terminal provides application message report, and the application type comprising first application in the application message report is length The information of long application on site;At least one in the data packet detected described in the terminal determination is heartbeat message, including:
The characteristic value of the data packet detected described in the terminal acquisition, the characteristic value include at least following one kind:Data packet Length, sending time or header data;
All or part of data packet is having the same in the data packet that the terminal is detected according to is no more than default threshold The data packet length of value, determine described in it is at least one in the data packet that detects be heartbeat message;
And/or
All or part of data packet header data having the same in the data packet that the terminal is detected according to determines At least one in the data packet detected is heartbeat message;
And/or
All or part of data packet transmission time interval having the same in the data packet that the terminal is detected according to, At least one in the data packet detected described in determination is heartbeat message.
2. according to the method described in claim 1, it is characterized in that, the terminal provide application message report before or it Afterwards, the method further includes:
The application type that the terminal is applied described first is labeled as permanent application on site.
3. according to claim 1 to 2 any one of them method, which is characterized in that provide application message report in the terminal Later, the method further includes:
Whether the terminal receives first message, comprising requiring the terminal to continue to provide described first and answer in the first message The instruction of information;
According to the first message, it is determined whether provide the information of first application.
4. a kind of terminal, which is characterized in that the terminal includes:Processor and transceiver, the processor and transceiver couples;
The processor does not determine that the first of application type answers for determining in the application being currently running in the terminal to exist With the application type includes:Permanent application on site and non-permanent application on site;Described first is detected to apply in no user input When the data packet that sends;Whether at least one in the data packet detected described in determination is heartbeat message, is detected according to described Data packet in it is at least one be heartbeat message determine it is described first application application type be permanent application on site;
The transceiver includes the application class of first application for providing application message report in the application message report Type is the information of permanent application on site;At least one in the data packet detected described in the processor determination is heartbeat message, Including:
The characteristic value of the data packet detected described in the processor acquisition, the characteristic value include at least following one kind:Data Packet length, sending time or header data;
All or part of data packet is having the same no more than default in the data packet that the processor is detected according to The data packet length of threshold value, determine described in it is at least one in the data packet that detects be heartbeat message;
And/or
All or part of data packet header data having the same in the data packet that the processor is detected according to, really At least one in the fixed data packet detected is heartbeat message;
And/or
In the data packet that the processor is detected according between all or part of data packet sending time having the same Every at least one in the data packet detected described in determination is heartbeat message.
5. terminal according to claim 4, which is characterized in that the processor is additionally operable to, and is answered in transceiver offer Before or after being reported with information, the application type that described first is applied is labeled as permanent application on site.
6. according to claim 4 to 5 any one of them terminal, which is characterized in that
Whether the transceiver is additionally operable to receive first message, include that the terminal is required to continue to provide institute in the first message State the instruction of the information of the first application;
The processor is additionally operable to the first message received according to the transceiver, it is determined whether provides described first and answers Information.
CN201310522405.7A 2013-10-29 2013-10-29 Detection method and terminal Active CN104579813B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310522405.7A CN104579813B (en) 2013-10-29 2013-10-29 Detection method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310522405.7A CN104579813B (en) 2013-10-29 2013-10-29 Detection method and terminal

Publications (2)

Publication Number Publication Date
CN104579813A CN104579813A (en) 2015-04-29
CN104579813B true CN104579813B (en) 2018-09-07

Family

ID=53095078

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310522405.7A Active CN104579813B (en) 2013-10-29 2013-10-29 Detection method and terminal

Country Status (1)

Country Link
CN (1) CN104579813B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103079285A (en) * 2013-01-14 2013-05-01 东莞宇龙通信科技有限公司 Mobile terminal and point-to-point connection retention method
CN103095831A (en) * 2013-01-15 2013-05-08 中国联合网络通信集团有限公司 Method of maintaining heartbeat mechanism, wireless local area network (WLAN) client terminal and procedure server
CN103152374A (en) * 2011-12-07 2013-06-12 华为终端有限公司 Method and device for learning terminal online state
CN103188653A (en) * 2011-12-27 2013-07-03 华为终端有限公司 Method of data receiving, method of data sending, mobile terminal and server
CN103312528A (en) * 2012-03-08 2013-09-18 中国移动通信集团公司 Heartbeat message sending method and user terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009070748A1 (en) * 2007-11-27 2009-06-04 Umber Systems System for collecting and analyzing data on application-level activity on a mobile data network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152374A (en) * 2011-12-07 2013-06-12 华为终端有限公司 Method and device for learning terminal online state
CN103188653A (en) * 2011-12-27 2013-07-03 华为终端有限公司 Method of data receiving, method of data sending, mobile terminal and server
CN103312528A (en) * 2012-03-08 2013-09-18 中国移动通信集团公司 Heartbeat message sending method and user terminal
CN103079285A (en) * 2013-01-14 2013-05-01 东莞宇龙通信科技有限公司 Mobile terminal and point-to-point connection retention method
CN103095831A (en) * 2013-01-15 2013-05-08 中国联合网络通信集团有限公司 Method of maintaining heartbeat mechanism, wireless local area network (WLAN) client terminal and procedure server

Also Published As

Publication number Publication date
CN104579813A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN103430483B (en) For determining the technology of the correlating event in communication system
CN102932920B (en) Radio resource scheduling request (SR) configuration method and device
US11003516B2 (en) Geographical redundancy and dynamic scaling for virtual network functions
EP3197098B1 (en) Heartbeat cycle setting method and terminal
CN108390881A (en) A kind of distribution high concurrent real-time messages method for pushing and system
WO2011043322A1 (en) Mobile station
WO2012058970A1 (en) Method, terminal, and system for controlling terminal access
CN107544837B (en) Cloud service equipment performance data acquisition system, method and device
US11711395B2 (en) User-determined network traffic filtering
EP2141860A1 (en) Method for monitoring events in a communication network
CN103825868B (en) A kind of method, local gateway and the system of local voice escape
US20130097317A1 (en) Method and apparatus for remote trust management for machine to machine communications in a network
US9866434B2 (en) Method, system and devices for managing user registration of a service in an IMS network
CN103812958B (en) Processing method, NAT device and the BNG equipment of NAT technology
US20080104233A1 (en) Network communication method and apparatus
WO2011113383A2 (en) Method and server for processing service
CN103874140A (en) Information processing method, access point and site
CN107770754A (en) A kind of notice sending method, device and system
CN113965904A (en) Device registration method, device and storage medium
Gelenbe et al. Detection and mitigation of signaling storms in mobile networks
CN104579813B (en) Detection method and terminal
CN104427598A (en) Heartbeat-free method and device for long-term online service
CN100512531C (en) Method and system for policy control in associated response system
CN102594611B (en) Trap session chain table updating method for webmaster agent
WO2016202025A1 (en) Trap message processing method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20171027

Address after: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Applicant after: HUAWEI terminal (Dongguan) Co., Ltd.

Address before: 518129 Longgang District, Guangdong, Bantian HUAWEI base B District, building 2, building No.

Applicant before: Huawei Device Co., Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: Huawei Device Co., Ltd.

Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee before: HUAWEI terminal (Dongguan) Co., Ltd.

CP01 Change in the name or title of a patent holder