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.