CN105337783A - Method of monitoring abnormal flow consumption of communication equipment and apparatus - Google Patents

Method of monitoring abnormal flow consumption of communication equipment and apparatus Download PDF

Info

Publication number
CN105337783A
CN105337783A CN201410332545.2A CN201410332545A CN105337783A CN 105337783 A CN105337783 A CN 105337783A CN 201410332545 A CN201410332545 A CN 201410332545A CN 105337783 A CN105337783 A CN 105337783A
Authority
CN
China
Prior art keywords
application program
application
flow
normal consumption
list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410332545.2A
Other languages
Chinese (zh)
Other versions
CN105337783B (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410332545.2A priority Critical patent/CN105337783B/en
Publication of CN105337783A publication Critical patent/CN105337783A/en
Application granted granted Critical
Publication of CN105337783B publication Critical patent/CN105337783B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method of monitoring abnormal flow consumption of communication equipment and an apparatus. The method comprises the following steps of reading an application program list used for recording and starting an application program in a communication equipment operation system; acquiring a same application program in the current read application program list and an application program list read in the last time; according to current flow consumption and the flow consumption of the last time of the same application program, calculating abnormal flow consumption of the same application program; if the abnormal flow consumption of the same application program exceeds a preset flow monitoring threshold, carrying out processing according to a preset processing strategy. By using the method and the apparatus, accuracy of flow monitoring and monitoring efficiency can be effectively increased.

Description

The method of monitoring communication equipment non-normal consumption flow and device
Technical field
The present invention relates to flow detection technology, be specifically related to a kind of method and device of monitoring communication equipment non-normal consumption flow.
Background technology
Along with the development of information science, the Internet and the communication technology, communication equipment, such as, the use of mobile phone, personal digital assistant, fixing intelligent terminal etc. is also more and more general.Because communication equipment can compatible a large amount of application program, and the individual demand of different user can be met, and along with the continuous expansion of customer service demand, the application program that user installs on a communications device also gets more and more.Wherein, the most of application programs in communication equipment need by the access to netwoks webserver, to obtain corresponding information on services from the webserver, thus, need the surfing flow consuming user.
In the application program of consumed flow, some application program is not started by user, but resides in communication equipment backstage, automatically loads and be connected to network when communication device initiated, thus consumed flow, and user does not use or seldom use this application program automatically loaded.Such as, some application programs are installed in the operating system of communication equipment, by checking whether other application program of installing in operating system or operating system has version updating on communication equipment backstage, if detect and the webserver issued corresponding renewal version, then the automatic installation kit from webserver down loading updating version, upgrades corresponding operating system or application program.Again such as, the global positioning system application program of installing in communication equipment or some application programs for collecting user profile, also can start after powering automatically, and by residing in backstage interconnection network, consumer positioning position or upload user information.And the flow that these application programs residing in backstage consume, wherein most flow is not the flow that user wishes to consume, i.e. non-normal consumption flow.The non-normal consumption flow that communication equipment is too much, may cause the not enough or flow of the flow of user to exceed the quata, thus the use cost of adding users.
In prior art, in order to reduce the network traffics of background application unnecessary consumption, namely user does not wish the flow (non-normal consumption flow) of consumption, reduce customer using cost, propose the method that communication device traffic is monitored, and determine whether that user does not wish the flow consumed according to the flow of monitoring, and user is not wished the closing application program that the flow of consumption is corresponding.Specifically, by reading the application list (RunningTask) run stored in communication equipment operating system according to the monitoring periods pre-set, and the application program of obtaining communication equipment display interface display, as foreground application, thus background application is distinguished from the application list run, the flow of background application consumption is non-normal consumption flow.Then, from the flow list of communication equipment operating system record, inquiry obtains the flow that background application consumes, if in this monitoring periods, the background application consumption obtained flow exceed the background traffic threshold value pre-set, determine that user does not wish the flow consumed, close corresponding background application.
But this flow monitoring method, after reading the application list run, application program according to the display of communication equipment display interface is distinguished the foreground application in the application list run and background application, but some have the application program of download function, after user sets downloading task, this application program can be closed, make it to proceed to backstage to execute the task download, and the flow that this application program downloads consumption is larger, but according to existing flow monitoring method, the pent probability of this application program is large, easily cause erroneous judgement, make flow monitoring accuracy rate lower, efficiency is not high, and the regular traffic affecting user is experienced, further, automatically load when communication device initiated and be connected to the background application of network, also the flow of not all background application consumption is all non-normal consumption flow, such as, the background update function that 360 mobile phone HELPER APPLICATIONs provide, the flow that this application program consumes during background update belongs to the normal consumption flow of customer acceptance, thus, by judge record background application consumption flow exceed the background traffic threshold value pre-set, close the method for corresponding background application, granularity is lacked to the monitoring of non-normal consumption flow, also make to carry out the accuracy of respective handling according to the non-normal consumption flow of monitoring and reliability lower.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of overcoming the problems referred to above or the method for monitoring communication equipment non-normal consumption flow solved the problem at least in part and device.
According to one aspect of the present invention, provide the method for monitoring communication equipment non-normal consumption flow, the method comprises:
Read communication equipment operating system for recording the application list starting application program;
Obtain application program identical in the application list of current reading and the application list of last reading; According to described identical application program respectively current and on consumed flow once, calculate the non-normal consumption flow of described identical application program;
If the non-normal consumption of described identical application program flows exceed the monitoring flow threshold pre-set, process according to the processing policy pre-set.
Preferably, after obtaining identical application program, before calculating the non-normal consumption flow of described identical application program, described method comprises further:
Generate pending the application list, from described pending the application list, read an application program.
Preferably, described from described pending the application list, read an application program after, before calculating the non-normal consumption flow of described identical application program, described method comprises further:
Determine that the application program of described reading exceedes the time threshold pre-set running time;
Described non-normal consumption flow is the consumed flow of application program after described time threshold of described reading.
Preferably, described reading communication equipment operating system for record start application program the application list before, described method comprises further:
Monitor communication device initiated, for the startup of communication equipment allocation identification this startup started identifies.
Preferably, the startup mark of described allocation identification this startup comprises:
Monitor communication device initiated, the application rs traffic record sheet of reading pre-stored, obtain startup mark maximum in described application rs traffic record sheet;
The maximum startup mark that the startup arranging the communication equipment of this startup is designated acquisition adds 1.
Preferably, described application rs traffic record sheet includes but not limited to: time field, application program foreground normal consumption flow field, application program backstage normal consumption flow field and application program backstage non-normal consumption flow field that application program identification field, the identification field that starts, application program the last time are run, wherein, application program foreground normal consumption flow and application program backstage normal consumption flow are the normal consumption flow of application program.
Preferably, the non-normal consumption flow of the described identical application program of described calculating comprises:
Inquiring about the flow information that described user consumes in the application program that current monitoring periods uses, according to inquiring about the flow information and current startup mark that obtain, upgrading the application rs traffic record sheet pre-set;
Inquire about the flow information that pending application program consumes, according to the download time threshold value of inquiring about the flow information obtained, current startup mark and pre-set, upgrade the application rs traffic record sheet pre-set;
The application program foreground flow that in the application rs traffic record sheet of statistical updating, application program is corresponding and application program backstage normal consumption flow sum, as the normal consumption flow of this application program, the application program backstage non-normal consumption flow that in the application rs traffic record sheet of statistical updating, application program is corresponding, as the non-normal consumption flow of this application program.
Preferably, described method comprises further:
The application list that the application list that more current monitoring periods is corresponding is corresponding with last monitoring periods, determines the application program that user uses at current monitoring periods and pending application program.
Preferably, the application list that the application list that described more current monitoring periods is corresponding is corresponding with last monitoring periods, determine that the application program that user uses at current monitoring periods and pending application program comprise:
B11, the pointer arranged in the application list corresponding to current monitoring periods and the application list corresponding to last monitoring periods points to top respectively;
B12, reads the application program that the application list pointer corresponding to current monitoring periods points to, and traversal obtains the application program that the application list pointer corresponding to a upper monitoring periods points to, and sequentially compares;
B13, judges that whether the application program read is identical, if identical, performs step B14, otherwise, perform step B15;
B14, is placed in the application program that the application list pointer corresponding for current monitoring periods points to the pending the application list pre-set, and by the application list pointer line down corresponding for current monitoring periods, returns and perform step B12;
B15, is placed in the application program that the application list pointer corresponding for current monitoring periods points to the foreground application list pre-set, and by described pointer line down, returns and performs step B12.
Preferably, described method comprises further:
Delete the application program that the application list pointer corresponding to a upper monitoring periods points to.
Preferably, the flow information that the application program that the described user of described inquiry uses at current monitoring periods consumes, according to inquiring about the flow information and current startup mark that obtain, upgrading the application rs traffic record sheet pre-set and comprising:
C11, takes out an application program from the application list of foreground;
C12, obtains the flow of all application programs consumption of recording in the application list corresponding to current monitoring periods, is recorded in application flow scale;
C13, from application flow scale, inquiry obtains the flow information of the application program of taking out;
C14, inquiry application discharge record table, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program foreground flow field in application rs traffic record sheet.
C15, judges whether to take out all application programs from the application list of foreground, if so, and process ends, otherwise, from the application list of foreground, take out the application program be not read, return and perform step C13.
Preferably, the flow information that the pending application program of described inquiry consumes, according to the download time threshold value of inquiring about the flow information obtained, current startup mark and pre-set, upgrades the application rs traffic record sheet pre-set and comprises:
D11, takes out an application program from pending the application list;
D12, obtains the flow of all application programs consumption of recording in the application list corresponding to current monitoring periods, is recorded in application flow scale;
D13, from application flow scale, inquiry obtains the flow information of this application program of taking out;
D14, inquiry application discharge record table, judges whether the record of the application program that there is this taking-up, if there is no, performs step D15, if existed, performs step D16;
D15, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program backstage non-normal consumption flow field of inquiring about the record correspondence obtained in application rs traffic record sheet, performs step D21;
D16, inquire about startup mark corresponding to described record whether with current starts identify identical, if not identical, execution step D17, if identical, execution step D18;
D17, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program backstage non-normal consumption flow field in application rs traffic record sheet, performs step D21;
D18, calculates current time and described difference record the corresponding application program the last time run, if difference is in the download time pre-set in threshold value, and execution step D19, otherwise, execution step D20;
D19, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program backstage normal consumption flow field in application rs traffic record sheet;
D20, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program backstage non-normal consumption flow field in application rs traffic record sheet;
D21, judges whether all application programs of taking out in pending the application list, if so, and process ends, otherwise, read the application program be not read in pending the application list, return and perform step D13.
Preferably, at inquiry application discharge record table, after judging there is not the record of the application program of this taking-up, described method comprises further:
This application program is placed in the application program blacklist pre-set.
Preferably, described monitoring flow threshold calculations formula is:
δ av = ξ * δ t D
In formula,
δ avfor monitoring flow threshold;
ξ is correction factor;
δ tfor moon set meal total amount or the flow that uses last month, if user does not customize flow package, then carry out alternative moon set meal total amount with the flow that last month uses;
D is the number of days comprised by the current moon.
Preferably, the described processing policy according to pre-setting carries out process and comprises:
Unloading non-normal consumption flows exceed the application program of the monitoring flow threshold pre-set.
Preferably, the described processing policy according to pre-setting carries out process and comprises:
Share the application program that non-normal consumption flows exceed the monitoring flow threshold pre-set.
Preferably, by SNS application carry out described in share.
Preferably, the described processing policy according to pre-setting carries out process and comprises:
Networking non-normal consumption in restriction backstage flows exceed the application program of the monitoring flow threshold pre-set; Or restriction non-normal consumption flows exceed the authority of the application program of the monitoring flow threshold pre-set.
Provide a kind of device of monitoring communication equipment non-normal consumption flow according to another aspect of the present invention, this device comprises: the application list read module, non-normal consumption flow determination module and application program processing module, wherein,
Nearest use the application list read module, for reading communication equipment operating system for recording the application list starting application program;
Non-normal consumption flow determination module, application program identical in the application list that the application list and last time for obtaining current reading read, calculates the non-normal consumption flow of described identical application program;
Application program processing module, for determining that the non-normal consumption of application program flows exceed the monitoring flow threshold pre-set, processes according to the processing policy pre-set.
Preferably, described non-normal consumption flow determination module is further used for: after obtaining identical application program, generate pending the application list, and an application program is read from described pending the application list, perform the flow process of the non-normal consumption flow calculating described identical application program.
Preferably, described non-normal consumption flow determination module is further used for:
Determine that the application program of described reading exceedes the time threshold pre-set running time, the described non-normal consumption flow of calculating is the consumed flow of application program after described time threshold of described reading.
Preferably, comprise further:
Start mark distribution module, for monitor communication device initiated after, be start this startup of communication equipment allocation identification startup mark.
Preferably, described startup mark distribution module comprises: start mark acquiring unit and start mark allocation units, wherein,
Start mark acquiring unit, for monitor communication device initiated after, the application rs traffic record sheet of reading pre-stored, obtains maximum in described application rs traffic record sheet startup mark;
Start mark allocation units, the maximum startup mark that the startup for the communication equipment arranging this startup is designated acquisition adds 1.
Preferably, described application rs traffic record sheet includes but not limited to: time field, application program foreground normal consumption flow field, application program backstage normal consumption flow field and application program backstage non-normal consumption flow field that application program identification field, the identification field that starts, application program the last time are run, wherein, application program foreground normal consumption flow and application program backstage normal consumption flow are the normal consumption flow of application program, and application program backstage non-normal consumption flow is the non-normal consumption flow of application program.
Preferably, described non-normal consumption flow determination module is further used for after the non-normal consumption flow obtaining application program, corresponding acquisition normal consumption flow.
Preferably, described non-normal consumption flow determination module comprises: comparing unit, the first inquiry and updating block, the second inquiry and updating block and flow determining unit, wherein,
Comparing unit, for the application list that the application list that more current monitoring periods is corresponding is corresponding with last monitoring periods, determines the application program that user uses at current monitoring periods and pending application program;
First inquiry and updating block, for inquiring about the flow information that described user consumes in the application program that current monitoring periods uses, according to inquiring about the flow information and current startup mark that obtain, upgrades the application rs traffic record sheet pre-set;
Second inquiry and updating block, for inquiring about the flow information that pending application program consumes, according to the download time threshold value of inquiring about the flow information obtained, current startup mark and pre-set, upgrades the application rs traffic record sheet pre-set;
Flow determining unit, the application program foreground flow corresponding for application program in the application rs traffic record sheet of statistical updating and application program backstage normal consumption flow sum, as the normal consumption flow of this application program, the application program backstage non-normal consumption flow that in the application rs traffic record sheet of statistical updating, application program is corresponding, as the non-normal consumption flow of this application program.
Preferably, described comparing unit comprises: pointer subelement, traversal subelement, judgment sub-unit, pointer first processes subelement and pointer second processes subelement, wherein,
Pointer subelement, points to top respectively for the pointer arranged in the application list corresponding to current monitoring periods and the application list corresponding to last monitoring periods;
Traversal subelement, for reading the application program that the application list pointer corresponding to current monitoring periods points to, traversal obtains the application program that the application list pointer corresponding to a upper monitoring periods points to, and sequentially compares;
Judgment sub-unit, whether identical for judging the application program read, if identical, notice pointer first processes subelement, otherwise notice pointer first processes subelement;
Pointer first processes subelement, for reception notification, the application program that the application list pointer corresponding for current monitoring periods points to is placed in the pending the application list pre-set, and by the application list pointer line down corresponding for current monitoring periods, notice traversal subelement;
Pointer second processes subelement, for reception notification, the application program that the application list pointer corresponding for current monitoring periods points to is placed in the foreground application list pre-set, by described pointer line down, and notice traversal subelement.
Preferably, described comparing unit comprises further:
Application program delete subelement, for monitor pointer first process subelement notice traversal subelement after, deletes a upper monitoring periods corresponding the application list pointer sensing application program.
Preferably, described first inquiry and updating block comprise: read subelement, application flow scale subelement, inquiry subelement, upgrade subelement and judgment sub-unit, wherein,
Read subelement, for taking out an application program from the application list of foreground;
Application flow scale subelement, for obtaining the flow of all application programs consumption of recording in the application list corresponding to current monitoring periods, is recorded in application flow scale;
Inquiry subelement, obtains the flow information of the application program of taking out for inquiry from application flow scale;
Upgrade subelement, for inquiry application discharge record table, the flow information assignment of inquiring about this application program obtained also is upgraded startup identification field to the application program foreground flow field in application rs traffic record sheet;
Judgment sub-unit, takes out all application programs for judging whether from the application list of foreground, if so, and process ends, otherwise, from the application list of foreground, take out the application program be not read, notice inquiry subelement.
Preferably, described second inquiry and updating block comprise: take out subelement, application flow scale subelement, the first inquiry subelement, process subelement, the second inquiry subelement, the 3rd inquiry subelement, the first assignment subelement, computation subunit, the second assignment subelement, the 3rd assignment subelement and Ergodic judgement unit, wherein
Take out subelement, for taking out an application program from pending the application list;
Application flow scale subelement, for obtaining the flow of all application programs consumption of recording in the application list corresponding to current monitoring periods, is recorded in application flow scale;
First inquiry subelement, obtains the flow information of this application program of taking out for inquiry from application flow scale;
Process subelement, for inquiry application discharge record table, judges whether the record of the application program that there is this taking-up, if there is no, notifies the second inquiry subelement, if existed, notifies the 3rd inquiry subelement;
Second inquiry subelement, for reception notification, the flow information assignment of inquiring about this application program obtained also is upgraded startup identification field to the application program backstage non-normal consumption flow field of inquiring about the record correspondence obtained in application rs traffic record sheet, notice Ergodic judgement unit;
Whether the 3rd inquiry subelement, identifying identical with current startup for inquiring about startup mark corresponding to described record, if not identical, notifying the first assignment subelement, if identical, notifying computation subunit;
First assignment subelement, for reception notification, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program backstage non-normal consumption flow field in application rs traffic record sheet, notice Ergodic judgement unit;
Computation subunit, for reception notification, calculates current time and the described difference recording the time that corresponding application program the last time is run, if difference is in the download time pre-set in threshold value, notify the second assignment subelement, otherwise, notify the 3rd assignment subelement;
Second assignment subelement, for reception notification, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program backstage normal consumption flow field in application rs traffic record sheet;
3rd assignment subelement, for reception notification, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program backstage non-normal consumption flow field in application rs traffic record sheet;
Ergodic judgement unit, for reception notification, judges whether all application programs of taking out in pending the application list, if so, and process ends, otherwise, read the application program be not read in pending the application list, notifier processes subelement.
Preferably, described second inquiry and updating block comprise further:
Application program blacklist subelement, for startup mark corresponding to the described record of the 3rd inquiry subelement inquiry whether with current start identify not identical after, this application program is placed in the application program blacklist pre-set.
32, device as claimed in claim 19, described monitoring flow threshold calculations formula is:
δ av = ξ * δ t D
In formula,
δ avfor monitoring flow threshold;
ξ is correction factor;
δ tfor moon set meal total amount or the flow that uses last month, if user does not customize flow package, then carry out alternative moon set meal total amount with the flow that last month uses;
D is the number of days comprised by the current moon.
According to method and the device of monitoring communication equipment non-normal consumption flow of the present invention, by reading communication equipment operating system for recording the application list starting application program; Obtain application program identical in the application list of current reading and the application list of last reading, calculate the non-normal consumption flow of described identical application program; ; Determine that the non-normal consumption of application program flows exceed the monitoring flow threshold pre-set, process according to the processing policy pre-set.Solve the technical problem that flow monitoring accuracy rate is lower thus, achieve the monitoring granularity of refinement to non-normal consumption flow, effectively promote the accuracy rate of flow monitoring and the beneficial effect of monitoring efficiency.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of specification, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 is the method overall procedure schematic diagram of embodiment of the present invention monitoring communication equipment non-normal consumption flow;
Fig. 2 is the method idiographic flow schematic diagram of embodiment of the present invention monitoring communication equipment non-normal consumption flow; And,
Fig. 3 is the apparatus structure schematic diagram of embodiment of the present invention monitoring communication equipment non-normal consumption flow.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Existing flow monitoring method, after reading the application list, application program according to the display of communication equipment display interface is distinguished the foreground application in the application list run and background application, by judging whether the flow of the background application consumption of recording exceedes the background traffic threshold value pre-set, to determine whether to close corresponding background application, thus save user network flow.But the method easily causes erroneous judgement, such that flow monitoring accuracy rate is lower, efficiency is not high, the regular traffic affecting user is experienced; Further, do not consider the network behavior of user, granularity lacked to the monitoring of non-normal consumption flow, make to carry out the accuracy of respective handling according to the non-normal consumption flow of monitoring and reliability lower.
In the embodiment of the present invention, normal consumption flow refers to and specifically comprises the flow that the flow of foreground application normal consumption and the background application of customer acceptance (mandate) consume:
During user initiatively uses application program, namely open application program to exiting the flow produced application program from user;
The background application of subscriber authorisation, such as, user selects to exit set downloading task in the 360 mobile phone HELPER APPLICATIONs on foreground after, and this 360 mobile phone HELPER APPLICATION proceeds task by resident backstage and downloads the flow consumed; And,
Communication equipment run duration, backstage is a small amount of flow keeping normal operation function to consume.Such as, Tengxun's news application program of installation constantly can be networked on backstage, when there being grave news event, pushes the grave news event of acquisition to notify user in time to user.
Non-normal consumption flow refers to the flow that the background application without customer acceptance (mandate) consumes, and the flow of namely escaping, comprising:
Application program, from after communication device initiated, automatically load and interconnection network, and user never used this application program, the flow that this application program consumes; And,
The application program that user uses is selected to exit user, exceedes download time of pre-setting after threshold value, and the flow flowing exceed the monitoring flow threshold pre-set consumed.
In the embodiment of the present invention, consider the network behavior of user, the network behavior of user is analyzed, in conjunction with the statistics of each application program in foreground and backstage consumed flow, flow is monitored, thus accurately distinguishes the non-normal consumption flow of background application, and determine whether to need to close application program according to monitoring result, avoid user to lose telephone expenses because flow exceeds the quata, promote accuracy rate and the monitoring efficiency of flow monitoring, and refinement is to the monitoring granularity of non-normal consumption flow.
Fig. 1 is the method overall procedure schematic diagram of embodiment of the present invention monitoring communication equipment non-normal consumption flow.See Fig. 1, this flow process comprises:
Step 01, reads communication equipment operating system for recording the application list starting application program;
In this step, communication equipment is after starting up each time, communication equipment operating system all can record the application program of startup in the application list pre-set, and the application program of startup can be that user starts, and also can be self-starting after communication equipment start.
As embodiment, can in real time, not timing or read the application list according to the monitoring periods pre-set.
Step 02, obtains application program identical in the application list of current reading and the application list of last reading;
In this step, if the arbitrary application program in the application list that the application program in the application list of current reading and last time read is not identical, then think the application program that user starts in the twi-read time before and after this, its flow consumed is normal consumption flow.
As embodiment, the method comprises further:
Identical application program according to obtaining generates pending the application list.
Step 03, calculates the non-normal consumption flow of described identical application program;
In this step, as embodiment, an application program can be read from pending the application list, and after determining that the application program of described reading exceedes the time threshold pre-set running time, calculate the non-normal consumption flow of described identical application program after described time threshold.Namely described from described pending the application list, read an application program after, before calculating the non-normal consumption flow of described identical application program, described method comprises further:
Determine that the application program of described reading exceedes the time threshold pre-set running time;
Described non-normal consumption flow is the consumed flow of application program after described time threshold of described reading.
In the embodiment of the present invention, for the application program being not determined as user and starting in current slot, such as, the application program of the application program that user started before current slot and the rear self-starting of communication equipment start, these application programs being set and in the time period threshold value pre-set, running the flow of consumption as normal consumption flow, running the flow of consumption as non-normal consumption flow using exceeding the time period threshold value pre-set.
As embodiment, can start by arranging for communication equipment the running time that mark determines application program.Like this, determine that the application program of described reading exceedes the time threshold pre-set and comprise running time:
A1 10, monitor communication device initiated, for the startup of communication equipment allocation identification this startup started identifies (BootID);
In this step, the startup correspondence each time of communication equipment uniquely starts mark.
A1 11, judge that whether corresponding with the application program of this reading stored the startup of startup mark corresponding to the application program that reads identify identical, if not identical, execution steps A 1 12, otherwise, perform steps A 1 13;
A1 12, the temporal information that the application program of this reading utilizing time information renovation corresponding to application program read to store is corresponding;
In this step, if whether corresponding with the application program of this reading stored the startup of startup mark corresponding to the application program read identify not identical, show that this application program does not also record its start-up time, using the initial calculation time point of current time as time period threshold value after startup.
A1 13, calculate the difference of temporal information corresponding to application program that the read temporal information corresponding with the application program of this reading of storage, judge whether difference is greater than the time period threshold value pre-set, if be not more than, does not deal with, otherwise, execution steps A 1 14;
In this step, if difference is not more than the time period threshold value pre-set, do not do any process, the temporal information making the application program of this reading stored corresponding is still the temporal information of first time renewal.
A1 14, the temporal information that the application program of this reading utilizing time information renovation corresponding to application program read to store is corresponding, the flow information that the application program upgrading this reading consumes, and non-normal consumption mark is set for the flow information upgraded.
In this step, the above-mentioned information of application rs traffic table record comprising application program identification field, start identification field, temporal information field and flow information field can be adopted.About application flow scale construction, to be follow-uply described in detail again.
In subsequent applications, by reading the non-normal consumption mark of the flow information setting stored, calculate the difference of the flow information of flow information corresponding to the application program of current reading and storage, thus using the application program non-normal consumption flow described time threshold after of this difference as current reading.
Step 04, if the non-normal consumption of described identical application program flows exceed the monitoring flow threshold pre-set, processes according to the processing policy pre-set.
Fig. 2 is the method idiographic flow schematic diagram of embodiment of the present invention monitoring communication equipment non-normal consumption flow.See Fig. 2, this flow process comprises:
Step 101, monitors communication device initiated, for the startup of communication equipment allocation identification this startup started identifies (BootID);
In this step, after communication equipment starting up, generate unique startup mark (BootID) for identifying this startup.In practical application, can distribute BootID by the mode increased progressively, that is, communication equipment often starts once, and the corresponding BootID of distribution adds 1.For follow-up, normal consumed flow and non-normal consumption flow are distinguished.
In the embodiment of the present invention, by when each communication equipment starting up, for communication equipment generates a unique ID value (BootID), and ensure each start, this BootID can not be identical.Wherein, BootID is used for follow-uply judging that whether application program is the foundation of the non-normal consumption flow of self-starting.
As embodiment, for the startup mark of communication equipment allocation identification this startup comprises:
A01, monitors communication device initiated, the application rs traffic record sheet of reading pre-stored, obtains startup mark maximum in described application rs traffic record sheet;
In this step, monitor communication device initiated, the application rs traffic record sheet (AppTrafficRecordList table) of reading pre-stored, obtain BootId value maximum in AppTrafficRecordList table.About AppTrafficRecordList table, to be follow-uply described in detail again.
A02, the maximum startup mark that the startup arranging the communication equipment of this startup is designated acquisition adds 1.
In the embodiment of the present invention, this communication equipment start (startups) BootId be store AppTrafficRecordList table in, maximum BootId and 1 with.Such as, when communication device initiated, if in the AppTrafficRecordList table stored, maximum BootId is 2, be then the BootId=3 that the communication equipment of this startup distributes.
Step 102, according to the monitoring periods pre-set, reads communication equipment operating system for recording the nearest use the application list starting application program;
In this step, monitoring periods can be determined according to actual needs, such as, can be set to 10 seconds, certainly, in practical application, also can be set to 30 seconds or 60 seconds or 2 minutes etc.
In the embodiment of the present invention, as embodiment, the application list can for use the application list (RecentTask) recently, application program in nearest use the application list can be the application program that user starts, and also can be the application program of self-starting after communication equipment start.Each monitoring periods reads a RecentTask table, by comparing nearest use the application list difference of front and back twi-read, thus can judge the application program that user uses between twice monitoring periods, realizing distinguishing the intelligence of foreground application.
Institute it should be noted that in the embodiment of the present invention, twice, front and back and current with the last time both can be when previous and with when the previous adjacent last time, also can be when previous and with current time before N time, wherein, N be greater than 1 integer, the embodiment of the present invention is not restricted this.
In the embodiment of the present invention, use the application list recently by arranging in communication equipment operating system, and make operating system use in the application list recently by user's most recently used application records.About arranging for recording the nearest use the application list starting application program in communication equipment operating system, similar with existing the application list run arranged in communication equipment operating system for recording the application program run, unlike, nearest use application program also comprises to be run but the current application program do not run recently, omitted detailed description at this.
For the communication equipment of Android (Android) operating system, after user starts application program in the communication equipment started, this application program will be recorded in the nearest use the application list pre-set by Android operation system.
In the embodiment of the present invention, in RecentTask table, record is the nearest used application program of user.As embodiment, can sort to the nearest used application program of user in chronological order, the application program in RecentTask table is current foreground application.As embodiment, use recently and be expressed as the communication device initiated time period to closing, the correspondence one that breaks each time of communication equipment uses the application list recently, as embodiment, uses the application list to identify to start mark recently.Certainly, in practical application, also can not identify to start mark.Such as, RecentTask table is as shown in table 1.
Table 1
Micro-letter
QQ
Extremely excellent
Note
In table 1, according to time sequencing, to the nearest used application program of user, after the application program that namely user starts sorts, be sequentially: micro-letter application program, QQ application program, excellent cruel application program and short message application program.
Step 103, utilize the startup of this startup to identify, the application rs traffic record sheet of nearest use the application list that nearest use the application list that current monitoring periods is corresponding, last monitoring periods are corresponding and storage, obtain normal consumption flow and the non-normal consumption flow of application program;
In this step, the step obtaining the normal consumption flow of application program is optional step.
The situation using the application list is recently represented for start mark, nearest use the application list that nearest use the application list that current monitoring periods (when previous) is corresponding is corresponding with last monitoring periods (last time), can be identical, also can be different.
In the embodiment of the present invention, in communication equipment operating system, build application rs traffic record sheet (AppTrafficRecordList) in advance, for storing the flow information of each application program at each monitoring periods internal consumption.
As embodiment, application rs traffic record sheet includes but not limited to: time field, application program foreground normal consumption flow field, application program backstage normal consumption flow field and application program backstage non-normal consumption flow field that application program identification field, the identification field that starts, application program the last time are run, wherein, application program foreground normal consumption flow and application program backstage normal consumption flow are the normal consumption flow of application program, as embodiment, application rs traffic record sheet structure is as shown in table 2.
Table 2
Uid BootId LastUseTime FgTraffic BgVTraffic BgITraffic
In table 2,
Uid is application program identification field, i.e. the unique identification of application program in communication equipment operating system;
BootId is startup mark (field) of communication equipment, the startup mark of communication equipment when namely application program the last time is run;
LastUseTime is the time field run application program the last time, and namely application program the last time runs the temporal information field of (comprising self-starting and user's startup);
FgTraffic is application program foreground normal consumption flow field, i.e. the flow that produces when front stage operation of application program;
BgVTraffic is application program backstage normal consumption flow field, the flow that the download time that namely application program pre-sets on backstage produces in threshold value, about download time threshold value, to be follow-uply described in detail again;
BgITraffic is application program backstage non-normal consumption flow field, i.e. the flow of the time period generation of application program outside the download time threshold value of backstage.
As embodiment, utilize the startup of this startup to identify, the application rs traffic record sheet of nearest use the application list that nearest use the application list that current monitoring periods is corresponding, last monitoring periods are corresponding and storage, the normal consumption flow and the non-normal consumption flow that obtain application program comprise:
A11', nearest use the application list that nearest use the application list that more current monitoring periods is corresponding is corresponding with last monitoring periods, determines the application program that user uses at current monitoring periods and pending application program;
In this step, the RecentTask table read by twice, contrast front and back monitoring periods correspondence, can be searched and determine user is in current monitoring periods, employs for which application program, be i.e. the application program of user's initiatively startup in current monitoring periods.
As embodiment, this step specifically comprises:
B11, the pointer arranged in nearest use the application list corresponding to current monitoring periods and nearest use the application list corresponding to last monitoring periods points to top respectively;
In this step, the RecentTask table arranging last monitoring periods corresponding is oldList, the RecentTask table that current monitoring periods is corresponding is newList, the application records follow-up user that determines used, in foreground application list (newLaunchAppList), will fail to determine that application records that whether user uses is in pending the application list.And setting the top that newList pointer (newIndex) points to newList, oldList pointer (oldIndex) points to the top of oldList.
B12, reads the application program that nearest use the application list pointer corresponding to current monitoring periods points to, and traversal obtains the application program that nearest use the application list pointer corresponding to a upper monitoring periods points to, and sequentially compares;
In this step, take out corresponding application program newApp and oldApp from newIndex and oldIndex.If newIndex has arrived bottom, namely in newList, there is no application program, exited this flow process.
B13, judges that whether the application program read is identical, if identical, performs step B14, otherwise, perform step B15;
In this step, judge that whether the newApp read from newList is identical with the oldApp read from oldIndex, namely judge that whether the newApp read from newList is identical with oldApp arbitrary in oldIndex.
B14, the application program that nearest use the application list pointer corresponding for current monitoring periods points to is placed in the pending the application list pre-set, and by nearest use the application list pointer line down corresponding for current monitoring periods, return and perform step B12;
In this step, if newApp and oldApp is identical, newApp is placed in pending the application list, terminates in the traversing operation of nearest use the application list pointer corresponding to a monitoring periods, and newIndex is moved down a line, return and perform step B12.
As embodiment, in order to effectively reduce the whether identical workload of postorder traversal inquiry application, reduce the time needed for inquiry, after the application program judging to read is identical, the method comprises further:
Delete the application program that nearest use the application list pointer corresponding to a upper monitoring periods points to.
B15, is placed in the application program that nearest use the application list pointer corresponding for current monitoring periods points to the foreground application list pre-set, and by described pointer line down, returns and performs step B12.
In this step, if newApp and oldApp is not identical, in foreground application list (newLaunchAppList table), adds newApp, and newIndex is moved down a line, return and perform step B12.
In the embodiment of the present invention, in newList existence not in the application that oldlist exists, add newLaunchAppList, for the application program that user in this current polling cycle uses, in the application program that newList exists and exists at oldlist, can not determine this application program application program that to be user use at a upper monitoring periods or the application program automatically loaded when communication device initiated, by this application records in pending the application list, with for further analysis in follow-up flow process, thus the differentiation realized the flow that this application program consumes.
A12, inquires about the flow information that described user consumes in the application program that current monitoring periods uses, and according to inquiring about the flow information and current startup mark that obtain, upgrades the application rs traffic record sheet pre-set;
In this step, in AppTrafficRecordList table, increase the flow information of the current application program started in newLaunchAppList table corresponding to mark.Comprise: upgrade according to foreground application list application programs discharge record table, namely the flow information that described user consumes in the application program that current monitoring periods uses is inquired about, according to inquiring about the flow information and current startup mark that obtain, upgrade the application rs traffic record sheet pre-set, and, upgrade according to pending the application list application programs discharge record table.Wherein,
Inquire about the flow information that described user consumes in the application program that current monitoring periods uses, according to inquiring about the flow information and current startup mark that obtain, upgrading the application rs traffic record sheet pre-set and being specially:
C11, takes out an application program from the application list of foreground;
In this step, random reading one application program from newLaunchAppList table.
C12, obtains the flow of all application programs consumption of recording in nearest use the application list corresponding to current monitoring periods, is recorded in application flow scale;
In this step, the flow obtaining application program consumption is known technology, such as, can read operation system/proc/uid_stat file be passed through, or obtain the flow of application program consumption by calling INetworkStatsService function, as embodiment, communication equipment operating system is to break the flow into periodic recording application program consumes each time, after communication equipment cuts out, the flow information of record is reset, no longer describes at this.
In the embodiment of the present invention, the consumed flow information of each application program in the nearest use the application list obtained from operating system is recorded in application flow scale (UidTrafficSet table).As embodiment, UidTrafficSet list structure is as shown in table 3.
Table 3
Uid Traffic
10020 589
10027 4096
C13, from application flow scale, inquiry obtains the flow information of the application program of taking out;
In this step, from UidTrafficSet table, inquiry obtains the flow information of this application program of taking out, and is designated as appTraffic.
C14, inquiry application discharge record table, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program foreground flow field in application rs traffic record sheet.
In this step, inquiry AppTrafficRecordList table, finds the record of this application program from AppTrafficRecordList table, by the flow value assignment of appTraffic to the FgTraffic field in AppTrafficRecordList table.
As embodiment, can also upgrade the BootId field in AppTrafficRecordList table and LastUseTime field, such as, using current time as LastUseTime, and empty BgVTraffic and BgITraffic field.
In the embodiment of the present invention, if do not find the record of this application program from AppTrafficRecordList table, in AppTrafficRecordList table, then increase the record of this application program newly, and by the flow value assignment of appTraffic to the FgTraffic field in AppTrafficRecordList table, BootId field in AppTrafficRecordList table and LastUseTime field are upgraded, and empties BgVTraffic and BgITraffic field.
C15, judges whether to take out all application programs from the application list of foreground, if so, and process ends, otherwise, from the application list of foreground, take out the application program be not read, return and perform step C13.
In this step, judge whether to take out all application programs in newLaunchAppList table, if so, process ends, otherwise, read the application program be not read in newLaunchAppList table, return and perform step C13.
In the embodiment of the present invention, in application rs traffic record sheet, be the used application program of each user, generate a discharge record, such as, as shown in table 4.
Table 4
Uid BootId LastUseTime FgTraffic BgVTraffic BgITraffic
10020 1 2014/5/1516:12:37 350 360 0
10021 1 2014/5/1516:55:32 0 0 0
10022 2 2014/5/1516:56:31 100 0 0
In table 4, the running time of 1 correspondence is designated in section in the startup of communication equipment, user starts and employs two methods program, corresponding application program identification is respectively 10020 and 10021, be designated the running time of 2 correspondences in section in the startup of communication equipment, user starts and employs an application program, and corresponding application program identification is 10022, wherein
Application program identification is the application program of 10020, the last temporal information run is 2014/5/1516:12:37, the flow produced during front stage operation is 350, and the flow produced in the download time threshold value of backstage is 360, and the flow that the time period outside the download time threshold value of backstage produces is 0;
Application program identification is the application program of 10021, the last temporal information run is 2014/5/1516:55:32, the flow produced during front stage operation is 0, and the flow produced in the download time threshold value of backstage is 0, and the flow that the time period outside the download time threshold value of backstage produces is 0;
Application program identification is the application program of 10022, the last temporal information run is 2014/5/1516:56:31, the flow produced during front stage operation is 100, and the flow produced in the download time threshold value of backstage is 0, and the flow that the time period outside the download time threshold value of backstage produces is 0.
In practical application, in the time interval (monitoring periods, such as, within 1 second and 1 second) that also can be shorter, ceaselessly check current foreground application, such as, shown by the RecentTask of operating system, first is current foreground application; Or shown by the RunningAppProcess of extract operation system, the importance attribute in utilization table judges foreground application etc.Because the time interval checked is very short, user interiorly at this moment can not use multiple application program, and therefore, this scheme can realize the foreground application that counting user uses.
A13, inquires about the flow information that pending application program consumes, and according to the download time threshold value of inquiring about the flow information obtained, current startup mark and pre-set, upgrades the application rs traffic record sheet pre-set;
This step specifically comprises:
D11, takes out an application program from pending the application list;
Whether in this step, from pending the application list, reading an application program with the flow consumed this application program is that normal consumption flow is distinguished.
D12, obtains the flow of all application programs consumption of recording in nearest use the application list corresponding to current monitoring periods, is recorded in application flow scale;
This step is identical with step C12.
D13, from application flow scale, inquiry obtains the flow information of this application program of taking out;
In this step, from UidTrafficSet table, inquiry obtains the flow information of this application program of taking out, and is designated as appTraffic.
As embodiment, pending application program consumed flow table can be built, for recording the consumed flow of each pending application program.Preferably, in the pending application program consumed flow table built, the consumed flow of records application program by date, as table 5.
Table 5
Uid Date Traffic
In table 5,
Uid is application program identification field;
Date is the time field of records application program consumed flow;
Traffic is the consumed flow field of application program in the time field of record.
For example, the pending application program consumed flow table of physical record is as described in Table 6.
Table 6
Uid Date Traffic
10020 2014-5-15 58
10020 2014-5-16 458
10025 2014-5-15 600
In table 4, application program identification is the application program of 10020, and at 2014-5-15, consumed flow is 58, and at 2014-5-16, consumed flow is 458; Application program identification is the application program of 10025, and at 2014-5-15, consumed flow is 600.
D14, inquiry application discharge record table, judges whether the record of the application program that there is this taking-up, if there is no, performs step D15, if existed, performs step D16;
In this step, in AppTrafficRecordList table, search the record of the application program of taking out from pending the application list, be designated as appTrafficRecord.
The step D13 that it should be noted that and D14 does not have dividing of sequencing.
D15, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program backstage non-normal consumption flow field of inquiring about the record correspondence obtained in application rs traffic record sheet, performs step D21;
In this step, if do not find the record of this application program in AppTrafficRecordList table, show that user never used this application program, thus, the flow of this application program consumption is likely escapes.Record the traffic behavior of escaping of this application, the flow of consumption all regards as flow of escaping.
Further, this application program can also be placed in the application program blacklist pre-set.In subsequent applications, after obtaining pending the application list, described pending the application list is mated with application program blacklist, judge that whether the application program in pending the application list is identical with the application program in the application program blacklist that user sets, if, can process according to the processing policy pre-set, otherwise, then perform step D11.
D16, inquire about startup mark corresponding to described record whether with current starts identify identical, if not identical, execution step D17, if identical, execution step D18;
In this step, whether whether the BootID field comparing appTrafficRecord in AppTrafficRecordList table identical with the BootID that current communication devices starts.
D17, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program backstage non-normal consumption flow field in application rs traffic record sheet, performs step D21;
In this step, if BootID is different, show that user had never used this application program since start, namely this application program is self-starting, and its flow consumed also may be escaped.Record the behavior of escaping of this application program, its flow consumed all regards as the flow of escaping.
D18, calculates current time and described difference record the corresponding application program the last time run, if difference is in the download time pre-set in threshold value, and execution step D19, otherwise, execution step D20;
In this step, LastUseTime field relatively in appTrafficRecord and current time, if current time is in this application program backstage normal operation period (download time threshold value), then the discharge record in being shown by appTraffic is to BgVTraffic field.The flow consumed during this belongs to the flow that backstage normal operation period consumes.
In the embodiment of the present invention, download time threshold value and running time of background application of user's license, application program is run download time in this threshold value, and the flow of consumption is normal consumption flow.
D19, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program backstage normal consumption flow field in application rs traffic record sheet;
In this step, LastUseTime field is not upgraded.
D20, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program backstage non-normal consumption flow field in application rs traffic record sheet;
In this step, LastUseTime field is not upgraded.
It should be noted that, for the LastUseTime field in appTrafficRecordList table, only when first time determines that the flow of application program consumption is application program backstage normal consumption flow, upgrade LastUseTime field, and follow-up determine that the flow of this application program consumption is application program backstage normal consumption flow or application program backstage non-normal consumption flow after, all without the need to upgrading LastUseTime field.If determine that the flow of application program consumption is application program foreground flow, can upgrade LastUseTime field.
In the embodiment of the present invention, if current time has exceeded this application backstage normal operation period, by the discharge record in appTraffic to BgITraffic field.Record the traffic behavior of escaping of this application, this part flow consumed is considered as flow of escaping.
D21, judges whether all application programs of taking out in pending the application list, if so, and process ends, otherwise, read the application program be not read in pending the application list, return and perform step D13.
In this step, judge whether to take out all application programs in UidTrafficSet table, if so, process ends, otherwise, read the application program be not read in UidTrafficSet table, return and perform step D12.
A14, the application program foreground flow that in the application rs traffic record sheet of statistical updating, application program is corresponding and application program backstage normal consumption flow sum, as the normal consumption flow of this application program, the application program backstage non-normal consumption flow that in the application rs traffic record sheet of statistical updating, application program is corresponding, as the non-normal consumption flow of this application program.
Like this, whether the flow achieving application programs is that the fine granularity of normal consumption flow and non-normal consumption flow is distinguished.
Step 104, determines that the non-normal consumption of application program flows exceed the monitoring flow threshold pre-set, processes according to the processing policy pre-set.
In this step, judge whether the non-normal consumption flow of application program exceedes the monitoring flow threshold pre-set, if so, then process according to the processing policy pre-set.
The threshold value of monitoring flow threshold and traffic consumes, for judging whether the flow that application program backstage consumes is non-normal consumption flow.Wherein,
Download time threshold value (running time of background application of user's license) can be determined according to actual needs, and such as, 2 hours is background application normal running time.That is, after application program forwards running background to, the running times of 2 hours in section, the flow consumed is normal consumption flow, and this application program runs the flow produced after 2 hours, if exceed monitoring flow threshold, be then recorded as non-normal consumption flow.
In the embodiment of the present invention, can judge whether the flow of application program consumption is non-normal consumption flow according to the network behavior of user:
If application program (exits this application program) and consumes between user's operating period flow from user launches application to user is normal consumption flow;
User use application program user select exit, pre-set download time threshold value or time threshold in, the flow of consumption is normal consumption flow; Such as, Online Video or mobile phone assistant etc. are possessed to the application program of download function, such as, in a period of time after exiting, in one hour after exiting, owing to performing downloading task, the flow of consumption belongs to normal consumption flow.
The application program that user uses is selected to exit user, and in the download time pre-set after threshold value, the flow of consumption is non-normal consumption flow;
After communication equipment start, user is from original application program, and such as, the flow of the background application consumption of communication device initiated rear automatic operation is non-normal consumption flow.For non-normal consumption flow, need call user's attention.
As embodiment, monitoring flow threshold is determined by following method:
In the embodiment of the present invention, for being custom made with a moon user for set meal total amount, generally wish that the flow consumed the same day is no more than per day consumed flow.Thus, as embodiment, can according to user the moon set meal total amount and last month use flow calculate background traffic consume threshold value (monitoring flow threshold), computing formula is as follows:
δ av = ξ * δ t D
In formula,
δ avfor monitoring flow threshold;
ξ is correction factor, can arrange according to actual needs, such as, can according to arrange monitoring periods and download time threshold value arrange;
δ tfor moon set meal total amount or the flow that uses last month, if user does not customize flow package, then carry out alternative moon set meal total amount with the flow that last month uses.
D is the number of days comprised by the current moon.
Like this, the threshold value of background traffic consumption can change according to the change of the flow of the set meal total amount of user, use and the number of days monthly comprised.
Through previous step, counted the flow that each application program is escaped on backstage, but this part flow is user a bit can tolerate, such as some application program irregularly can check whether version updating on backstage, the flow consumed is little, can be recorded as flow of escaping by this programme.Therefore, according to the flow threshold of escaping determined, the flow of only escaping (non-normal consumption flow) exceeds the application program of this monitoring flow threshold, just can will show user, show the flow that these application programs are escaped by date.
As embodiment, carry out processing according to the processing policy pre-set and comprise one in following mode or its combination in any:
Unloading non-normal consumption flows exceed the application program of the monitoring flow threshold pre-set;
In this step, after user selects unloading application program, the unloading application module of calling communication device operating system, unloads this application program after user confirms.
Share the application program that non-normal consumption flows exceed the monitoring flow threshold pre-set;
In this step, this application program can the be escaped information of flow of user is shared with oneself good friend by SNS application (as micro-letter, QQ, microblogging etc.), reminds good friend to note this application program.
Networking non-normal consumption in restriction backstage flows exceed the application program of the monitoring flow threshold pre-set;
In this step, after user selects, when this application program enters backstage, and current when be data network, forbid its authority of networking.
The application program that non-normal consumption flows exceed the monitoring flow threshold pre-set is closed during backstage;
In this step, after user selects, when this application program enters backstage, then by this closing application program.
Check that non-normal consumption flows exceed the application program details of the monitoring flow threshold pre-set.
In this step, user enters the detail information that operating system arranges this application program after selecting, and user can select positive closing or unloading etc. in the detail information arranged.
Like this, in the embodiment of the present invention, consider the network behavior of user, by determining the threshold value that normal running background time and background traffic consume, the network behavior of user is analyzed, with the time interval of specifying (such as 20 seconds) for polling cycle, continue usage behavior and the AM/BAM traffic consumes of counting user, in conjunction with the statistics of each application program in foreground and backstage consumed flow, flow is monitored, thus accurately distinguish the non-normal consumption flow of background application, and determine whether to need to close application program according to monitoring result, solve the traffic consumes that application program in communication equipment is unnecessary, can find to escape the application program of flow in backstage, user can do further process (as unloading to these application programs, close), avoid flow waste, save the expense caused because flow exceeds the quata.Further, by comparing nearest use the application list corresponding to front and back monitoring periods, the application program that user initiatively starts can be distinguished, by recording unique startup mark of each start, the automatically actuated application program in backstage can be distinguished, whether the flow that can judge application program consumption is more accurately non-normal consumption flow, realizes monitoring the fine granularity of flow.
Fig. 3 is the apparatus structure schematic diagram of embodiment of the present invention monitoring communication equipment non-normal consumption flow.See Fig. 3, this device comprises: start mark distribution module, the application list read module, non-normal consumption flow determination module and application program processing module, wherein,
Start mark distribution module, for monitor communication device initiated after, be start this startup of communication equipment allocation identification startup mark;
In the embodiment of the present invention, starting mark distribution module is optional module.
As embodiment, start mark distribution module and comprise: start mark acquiring unit and start mark allocation units (not shown), wherein,
Start mark acquiring unit, for monitor communication device initiated after, the application rs traffic record sheet of reading pre-stored, obtains maximum in described application rs traffic record sheet startup mark;
Start mark allocation units, the maximum startup mark that the startup for the communication equipment arranging this startup is designated acquisition adds 1.
The application list read module, for reading communication equipment operating system for recording the application list starting application program;
In the embodiment of the present invention, the application list read module also according to the monitoring periods pre-set, can read communication equipment operating system for recording the application list starting application program.As embodiment, the application list is for use the application list recently.
In the embodiment of the present invention, in the application list read module, build application rs traffic record sheet in advance, for storing the flow information of each application program at each monitoring periods internal consumption.
As embodiment, application rs traffic record sheet includes but not limited to: time field, application program foreground normal consumption flow field, application program backstage normal consumption flow field and application program backstage non-normal consumption flow field that application program identification field, the identification field that starts, application program the last time are run, wherein, application program foreground normal consumption flow and application program backstage normal consumption flow are the normal consumption flow of application program, and application program backstage non-normal consumption flow is the non-normal consumption flow of application program.
Preferably, the application list carries out mark to start mark and sorts to the application program that user crosses in chronological order.
Non-normal consumption flow determination module, application program identical in the application list that the application list and last time for obtaining current reading read, calculates the non-normal consumption flow of described identical application program;
In the embodiment of the present invention, nearest use the application list that non-normal consumption flow determination module utilizes the startup of this startup to identify, nearest use the application list that current monitoring periods is corresponding, last monitoring periods are corresponding and the application rs traffic record sheet of storage, obtain the non-normal consumption flow of application program.
In the embodiment of the present invention, as embodiment, non-normal consumption flow determination module is further used for after the non-normal consumption flow obtaining application program, corresponding acquisition normal consumption flow.
As another embodiment, described non-normal consumption flow determination module is further used for: after obtaining identical application program, generate pending the application list, and an application program is read from described pending the application list, perform the flow process of the non-normal consumption flow calculating described identical application program.
As an embodiment again, described non-normal consumption flow determination module is further used for:
Determine that the application program of described reading exceedes the time threshold pre-set running time, the described non-normal consumption flow of calculating is the consumed flow of application program after described time threshold of described reading.
Non-normal consumption flow determination module comprises: comparing unit, the first inquiry and updating block, the second inquiry and updating block and flow determining unit (not shown), wherein,
Comparing unit, for nearest use the application list that nearest use the application list that more current monitoring periods is corresponding is corresponding with last monitoring periods, determines the application program that user uses at current monitoring periods and pending application program;
In the embodiment of the present invention, as an embodiment, comparing unit comprises: pointer subelement, traversal subelement, judgment sub-unit, pointer first processes subelement and pointer second processes subelement, wherein,
Pointer subelement, points to top respectively for the pointer arranged in nearest use the application list corresponding to current monitoring periods and nearest use the application list corresponding to last monitoring periods;
Traversal subelement, for reading the application program that nearest use the application list pointer corresponding to current monitoring periods points to, traversal obtains the application program that nearest use the application list pointer corresponding to a upper monitoring periods points to, and sequentially compares;
Judgment sub-unit, whether identical for judging the application program read, if identical, notice pointer first processes subelement, otherwise notice pointer first processes subelement;
Pointer first processes subelement, for reception notification, the application program that nearest use the application list pointer corresponding for current monitoring periods points to is placed in the pending the application list pre-set, and by nearest use the application list pointer line down corresponding for current monitoring periods, notice traversal subelement;
Pointer second processes subelement, for reception notification, the application program that nearest use the application list pointer corresponding for current monitoring periods points to is placed in the foreground application list pre-set, by described pointer line down, notice traversal subelement.
As another embodiment, comparing unit comprises further:
Application program deletes subelement, for monitoring after pointer first processes subelement notice traversal subelement, deletes the application program of nearest use the application list pointer sensing corresponding to a upper monitoring periods.
First inquiry and updating block, for inquiring about the flow information that described user consumes in the application program that current monitoring periods uses, according to inquiring about the flow information and current startup mark that obtain, upgrades the application rs traffic record sheet pre-set;
In the embodiment of the present invention, as embodiment, the first inquiry and updating block comprise: read subelement, application flow scale subelement, inquiry subelement, upgrade subelement and judgment sub-unit, wherein,
Read subelement, for taking out an application program from the application list of foreground;
Application flow scale subelement, for obtaining the flow of all application programs consumption of recording in nearest use the application list corresponding to current monitoring periods, is recorded in application flow scale;
Inquiry subelement, obtains the flow information of the application program of taking out for inquiry from application flow scale;
Upgrade subelement, for inquiry application discharge record table, the flow information assignment of inquiring about this application program obtained also is upgraded startup identification field to the application program foreground flow field in application rs traffic record sheet;
Judgment sub-unit, takes out all application programs for judging whether from the application list of foreground, if so, and process ends, otherwise, from the application list of foreground, take out the application program be not read, notice inquiry subelement.
Second inquiry and updating block, for inquiring about the flow information that pending application program consumes, according to the download time threshold value of inquiring about the flow information obtained, current startup mark and pre-set, upgrades the application rs traffic record sheet pre-set;
In the embodiment of the present invention, as embodiment, second inquiry and updating block comprise: take out subelement, application flow scale subelement, the first inquiry subelement, process subelement, the second inquiry subelement, the 3rd inquiry subelement, the first assignment subelement, computation subunit, the second assignment subelement, the 3rd assignment subelement and Ergodic judgement unit, wherein
Take out subelement, for taking out an application program from pending the application list;
Application flow scale subelement, for obtaining the flow of all application programs consumption of recording in nearest use the application list corresponding to current monitoring periods, is recorded in application flow scale;
First inquiry subelement, obtains the flow information of this application program of taking out for inquiry from application flow scale;
Process subelement, for inquiry application discharge record table, judges whether the record of the application program that there is this taking-up, if there is no, notifies the second inquiry subelement, if existed, notifies the 3rd inquiry subelement;
Second inquiry subelement, for reception notification, the flow information assignment of inquiring about this application program obtained also is upgraded startup identification field to the application program backstage non-normal consumption flow field of inquiring about the record correspondence obtained in application rs traffic record sheet, notice Ergodic judgement unit;
Whether the 3rd inquiry subelement, identifying identical with current startup for inquiring about startup mark corresponding to described record, if not identical, notifying the first assignment subelement, if identical, notifying computation subunit;
First assignment subelement, for reception notification, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program backstage non-normal consumption flow field in application rs traffic record sheet, notice Ergodic judgement unit;
Computation subunit, for reception notification, calculates current time and the described difference recording the time that corresponding application program the last time is run, if difference is in the download time pre-set in threshold value, notify the second assignment subelement, otherwise, notify the 3rd assignment subelement;
Second assignment subelement, for reception notification, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program backstage normal consumption flow field in application rs traffic record sheet;
3rd assignment subelement, for reception notification, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program backstage non-normal consumption flow field in application rs traffic record sheet;
Ergodic judgement unit, for reception notification, judges whether all application programs of taking out in pending the application list, if so, and process ends, otherwise, read the application program be not read in pending the application list, notifier processes subelement.
As another embodiment, the second inquiry and updating block comprise further:
Application program blacklist subelement, for startup mark corresponding to the described record of the 3rd inquiry subelement inquiry whether with current start identify not identical after, this application program is placed in the application program blacklist pre-set.In subsequent applications, after obtaining pending the application list, described pending the application list is mated with application program blacklist, judge that whether the application program in pending the application list is identical with the application program in the application program blacklist that user sets, if so, can process according to the processing policy pre-set.
Flow determining unit, the application program foreground flow corresponding for application program in the application rs traffic record sheet of statistical updating and application program backstage normal consumption flow sum, as the normal consumption flow of this application program, the application program backstage non-normal consumption flow that in the application rs traffic record sheet of statistical updating, application program is corresponding, as the non-normal consumption flow of this application program.
Application program processing module, for determining that the non-normal consumption of application program flows exceed the monitoring flow threshold pre-set, processes according to the processing policy pre-set.
In the embodiment of the present invention, as embodiment, monitoring flow threshold calculations formula is:
δ av = ξ * δ t D
In formula,
δ avfor monitoring flow threshold;
ξ is correction factor, can arrange according to actual needs, such as, can according to arrange monitoring periods and download time threshold value arrange;
δ tfor moon set meal total amount or the flow that uses last month, if user does not customize flow package, then carry out alternative moon set meal total amount with the flow that last month uses.
D is the number of days comprised by the current moon.
As embodiment, carry out processing according to the processing policy pre-set and comprise one in following mode or its combination in any:
Unloading non-normal consumption flows exceed the application program of the monitoring flow threshold pre-set;
Share the application program that non-normal consumption flows exceed the monitoring flow threshold pre-set;
Networking non-normal consumption in restriction backstage flows exceed the application program of the monitoring flow threshold pre-set;
The application program that non-normal consumption flows exceed the monitoring flow threshold pre-set is closed during backstage;
Check that non-normal consumption flows exceed the application program details of the monitoring flow threshold pre-set.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In specification provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary compound mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the device of the monitoring communication equipment non-normal consumption flow of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from Internet site server and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
The invention discloses A1, a kind of method of monitoring communication equipment non-normal consumption flow, comprising:
Read communication equipment operating system for recording the application list starting application program;
Obtain application program identical in the application list of current reading and the application list of last reading; According to described identical application program respectively current and on consumed flow once, calculate the non-normal consumption flow of described identical application program;
If the non-normal consumption of described identical application program flows exceed the monitoring flow threshold pre-set, process according to the processing policy pre-set.
A2. the method according to A1, after obtaining identical application program, before calculating the non-normal consumption flow of described identical application program, described method comprises further:
Generate pending the application list, from described pending the application list, read an application program.
A3. the method according to A2, described from described pending the application list, read an application program after, before calculating the non-normal consumption flow of described identical application program, described method comprises further:
Determine that the application program of described reading exceedes the time threshold pre-set running time;
Described non-normal consumption flow is the consumed flow of application program after described time threshold of described reading.
A4. the method according to A1, described reading communication equipment operating system for record start application program the application list before, described method comprises further:
Monitor communication device initiated, for the startup of communication equipment allocation identification this startup started identifies.
A5. the method according to A4, the startup mark of described allocation identification this startup comprises:
Monitor communication device initiated, the application rs traffic record sheet of reading pre-stored, obtain startup mark maximum in described application rs traffic record sheet;
The maximum startup mark that the startup arranging the communication equipment of this startup is designated acquisition adds 1.
A6. the method according to A5, described application rs traffic record sheet includes but not limited to: time field, application program foreground normal consumption flow field, application program backstage normal consumption flow field and application program backstage non-normal consumption flow field that application program identification field, the identification field that starts, application program the last time are run, wherein, application program foreground normal consumption flow and application program backstage normal consumption flow are the normal consumption flow of application program.
A7. the method according to A5, the non-normal consumption flow of the described identical application program of described calculating comprises:
Inquiring about the flow information that described user consumes in the application program that current monitoring periods uses, according to inquiring about the flow information and current startup mark that obtain, upgrading the application rs traffic record sheet pre-set;
Inquire about the flow information that pending application program consumes, according to the download time threshold value of inquiring about the flow information obtained, current startup mark and pre-set, upgrade the application rs traffic record sheet pre-set;
The application program foreground flow that in the application rs traffic record sheet of statistical updating, application program is corresponding and application program backstage normal consumption flow sum, as the normal consumption flow of this application program, the application program backstage non-normal consumption flow that in the application rs traffic record sheet of statistical updating, application program is corresponding, as the non-normal consumption flow of this application program.
A8. the method according to A7, described method comprises further:
The application list that the application list that more current monitoring periods is corresponding is corresponding with last monitoring periods, determines the application program that user uses at current monitoring periods and pending application program.
A9. the method according to A8, the application list that the application list that described more current monitoring periods is corresponding is corresponding with last monitoring periods, determine that the application program that user uses at current monitoring periods and pending application program comprise:
B11, the pointer arranged in the application list corresponding to current monitoring periods and the application list corresponding to last monitoring periods points to top respectively;
B12, reads the application program that the application list pointer corresponding to current monitoring periods points to, and traversal obtains the application program that the application list pointer corresponding to a upper monitoring periods points to, and sequentially compares;
B13, judges that whether the application program read is identical, if identical, performs step B14, otherwise, perform step B15;
B14, is placed in the application program that the application list pointer corresponding for current monitoring periods points to the pending the application list pre-set, and by the application list pointer line down corresponding for current monitoring periods, returns and perform step B12;
B15, is placed in the application program that the application list pointer corresponding for current monitoring periods points to the foreground application list pre-set, and by described pointer line down, returns and performs step B12.
A10. the method according to A9, described method comprises further:
Delete the application program that the application list pointer corresponding to a upper monitoring periods points to.
A11. the method according to A9, the flow information that the application program that the described user of described inquiry uses at current monitoring periods consumes, according to inquiring about the flow information and current startup mark that obtain, upgrading the application rs traffic record sheet pre-set and comprising:
C11, takes out an application program from the application list of foreground;
C12, obtains the flow of all application programs consumption of recording in the application list corresponding to current monitoring periods, is recorded in application flow scale;
C13, from application flow scale, inquiry obtains the flow information of the application program of taking out;
C14, inquiry application discharge record table, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program foreground flow field in application rs traffic record sheet.
C15, judges whether to take out all application programs from the application list of foreground, if so, and process ends, otherwise, from the application list of foreground, take out the application program be not read, return and perform step C13.
A12. the method according to A9, the flow information that the pending application program of described inquiry consumes, according to the download time threshold value of inquiring about the flow information obtained, current startup mark and pre-set, upgrade the application rs traffic record sheet pre-set and comprise:
D11, takes out an application program from pending the application list;
D12, obtains the flow of all application programs consumption of recording in the application list corresponding to current monitoring periods, is recorded in application flow scale;
D13, from application flow scale, inquiry obtains the flow information of this application program of taking out;
D14, inquiry application discharge record table, judges whether the record of the application program that there is this taking-up, if there is no, performs step D15, if existed, performs step D16;
D15, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program backstage non-normal consumption flow field of inquiring about the record correspondence obtained in application rs traffic record sheet, performs step D21;
D16, inquire about startup mark corresponding to described record whether with current starts identify identical, if not identical, execution step D17, if identical, execution step D18;
D17, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program backstage non-normal consumption flow field in application rs traffic record sheet, performs step D21;
D18, calculates current time and described difference record the corresponding application program the last time run, if difference is in the download time pre-set in threshold value, and execution step D19, otherwise, execution step D20;
D19, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program backstage normal consumption flow field in application rs traffic record sheet;
D20, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program backstage non-normal consumption flow field in application rs traffic record sheet;
D21, judges whether all application programs of taking out in pending the application list, if so, and process ends, otherwise, read the application program be not read in pending the application list, return and perform step D13.
A13. the method according to A12, at inquiry application discharge record table, after judging there is not the record of the application program of this taking-up, described method comprises further:
This application program is placed in the application program blacklist pre-set.
A14. the method according to A1, described monitoring flow threshold calculations formula is:
δ av = ξ * δ t D
In formula,
δ avfor monitoring flow threshold;
ξ is correction factor;
δ tfor moon set meal total amount or the flow that uses last month, if user does not customize flow package, then carry out alternative moon set meal total amount with the flow that last month uses;
D is the number of days comprised by the current moon.
A15. the method according to A1, the described processing policy according to pre-setting carries out process and comprises:
Unloading non-normal consumption flows exceed the application program of the monitoring flow threshold pre-set.
A16. the method according to A1, the described processing policy according to pre-setting carries out process and comprises:
Share the application program that non-normal consumption flows exceed the monitoring flow threshold pre-set.
A17. the method according to A16, is shared described in being undertaken by SNS application.
A18. the method according to A1, the described processing policy according to pre-setting carries out process and comprises:
Networking non-normal consumption in restriction backstage flows exceed the application program of the monitoring flow threshold pre-set; Or restriction non-normal consumption flows exceed the authority of the application program of the monitoring flow threshold pre-set.
A19. monitor a device for communication equipment non-normal consumption flow, this device comprises: the application list read module, non-normal consumption flow determination module and application program processing module, wherein,
Nearest use the application list read module, for reading communication equipment operating system for recording the application list starting application program;
Non-normal consumption flow determination module, application program identical in the application list that the application list and last time for obtaining current reading read, calculates the non-normal consumption flow of described identical application program;
Application program processing module, for determining that the non-normal consumption of application program flows exceed the monitoring flow threshold pre-set, processes according to the processing policy pre-set.
A20. the device according to A19, described non-normal consumption flow determination module is further used for: after obtaining identical application program, generate pending the application list, and an application program is read from described pending the application list, perform the flow process of the non-normal consumption flow calculating described identical application program.
A21. the device according to A20, described non-normal consumption flow determination module is further used for:
Determine that the application program of described reading exceedes the time threshold pre-set running time, the described non-normal consumption flow of calculating is the consumed flow of application program after described time threshold of described reading.
A22. the device according to A19, comprises further:
Start mark distribution module, for monitor communication device initiated after, be start this startup of communication equipment allocation identification startup mark.
A23. the device according to A22, described startup mark distribution module comprises: start mark acquiring unit and start mark allocation units, wherein,
Start mark acquiring unit, for monitor communication device initiated after, the application rs traffic record sheet of reading pre-stored, obtains maximum in described application rs traffic record sheet startup mark;
Start mark allocation units, the maximum startup mark that the startup for the communication equipment arranging this startup is designated acquisition adds 1.
A24. the device according to A23, described application rs traffic record sheet includes but not limited to: application program identification field, start identification field, the time field that application program the last time is run, application program foreground normal consumption flow field, application program backstage normal consumption flow field and application program backstage non-normal consumption flow field, wherein, application program foreground normal consumption flow and application program backstage normal consumption flow are the normal consumption flow of application program, application program backstage non-normal consumption flow is the non-normal consumption flow of application program.
A25. the device according to A19, described non-normal consumption flow determination module is further used for after the non-normal consumption flow obtaining application program, corresponding acquisition normal consumption flow.
A26. the device according to A25, described non-normal consumption flow determination module comprises: comparing unit, the first inquiry and updating block, the second inquiry and updating block and flow determining unit, wherein,
Comparing unit, for the application list that the application list that more current monitoring periods is corresponding is corresponding with last monitoring periods, determines the application program that user uses at current monitoring periods and pending application program;
First inquiry and updating block, for inquiring about the flow information that described user consumes in the application program that current monitoring periods uses, according to inquiring about the flow information and current startup mark that obtain, upgrades the application rs traffic record sheet pre-set;
Second inquiry and updating block, for inquiring about the flow information that pending application program consumes, according to the download time threshold value of inquiring about the flow information obtained, current startup mark and pre-set, upgrades the application rs traffic record sheet pre-set;
Flow determining unit, the application program foreground flow corresponding for application program in the application rs traffic record sheet of statistical updating and application program backstage normal consumption flow sum, as the normal consumption flow of this application program, the application program backstage non-normal consumption flow that in the application rs traffic record sheet of statistical updating, application program is corresponding, as the non-normal consumption flow of this application program.
A27. the device according to A26, described comparing unit comprises: pointer subelement, traversal subelement, judgment sub-unit, pointer first processes subelement and pointer second processes subelement, wherein,
Pointer subelement, points to top respectively for the pointer arranged in the application list corresponding to current monitoring periods and the application list corresponding to last monitoring periods;
Traversal subelement, for reading the application program that the application list pointer corresponding to current monitoring periods points to, traversal obtains the application program that the application list pointer corresponding to a upper monitoring periods points to, and sequentially compares;
Judgment sub-unit, whether identical for judging the application program read, if identical, notice pointer first processes subelement, otherwise notice pointer first processes subelement;
Pointer first processes subelement, for reception notification, the application program that the application list pointer corresponding for current monitoring periods points to is placed in the pending the application list pre-set, and by the application list pointer line down corresponding for current monitoring periods, notice traversal subelement;
Pointer second processes subelement, for reception notification, the application program that the application list pointer corresponding for current monitoring periods points to is placed in the foreground application list pre-set, by described pointer line down, and notice traversal subelement.
A28. the device according to A27, described comparing unit comprises further:
Application program delete subelement, for monitor pointer first process subelement notice traversal subelement after, deletes a upper monitoring periods corresponding the application list pointer sensing application program.
A29. the device according to A26, described first inquiry and updating block comprise: read subelement, application flow scale subelement, inquiry subelement, upgrade subelement and judgment sub-unit, wherein,
Read subelement, for taking out an application program from the application list of foreground;
Application flow scale subelement, for obtaining the flow of all application programs consumption of recording in the application list corresponding to current monitoring periods, is recorded in application flow scale;
Inquiry subelement, obtains the flow information of the application program of taking out for inquiry from application flow scale;
Upgrade subelement, for inquiry application discharge record table, the flow information assignment of inquiring about this application program obtained also is upgraded startup identification field to the application program foreground flow field in application rs traffic record sheet;
Judgment sub-unit, takes out all application programs for judging whether from the application list of foreground, if so, and process ends, otherwise, from the application list of foreground, take out the application program be not read, notice inquiry subelement.
A30. the device according to A26, described second inquiry and updating block comprise: take out subelement, application flow scale subelement, the first inquiry subelement, process subelement, the second inquiry subelement, the 3rd inquiry subelement, the first assignment subelement, computation subunit, the second assignment subelement, the 3rd assignment subelement and Ergodic judgement unit, wherein
Take out subelement, for taking out an application program from pending the application list;
Application flow scale subelement, for obtaining the flow of all application programs consumption of recording in the application list corresponding to current monitoring periods, is recorded in application flow scale;
First inquiry subelement, obtains the flow information of this application program of taking out for inquiry from application flow scale;
Process subelement, for inquiry application discharge record table, judges whether the record of the application program that there is this taking-up, if there is no, notifies the second inquiry subelement, if existed, notifies the 3rd inquiry subelement;
Second inquiry subelement, for reception notification, the flow information assignment of inquiring about this application program obtained also is upgraded startup identification field to the application program backstage non-normal consumption flow field of inquiring about the record correspondence obtained in application rs traffic record sheet, notice Ergodic judgement unit;
Whether the 3rd inquiry subelement, identifying identical with current startup for inquiring about startup mark corresponding to described record, if not identical, notifying the first assignment subelement, if identical, notifying computation subunit;
First assignment subelement, for reception notification, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program backstage non-normal consumption flow field in application rs traffic record sheet, notice Ergodic judgement unit;
Computation subunit, for reception notification, calculates current time and the described difference recording the time that corresponding application program the last time is run, if difference is in the download time pre-set in threshold value, notify the second assignment subelement, otherwise, notify the 3rd assignment subelement;
Second assignment subelement, for reception notification, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program backstage normal consumption flow field in application rs traffic record sheet;
3rd assignment subelement, for reception notification, also upgrades startup identification field by the flow information assignment of inquiring about this application program obtained to the application program backstage non-normal consumption flow field in application rs traffic record sheet;
Ergodic judgement unit, for reception notification, judges whether all application programs of taking out in pending the application list, if so, and process ends, otherwise, read the application program be not read in pending the application list, notifier processes subelement.
A31. the device according to A30, described second inquiry and updating block comprise further:
Application program blacklist subelement, for startup mark corresponding to the described record of the 3rd inquiry subelement inquiry whether with current start identify not identical after, this application program is placed in the application program blacklist pre-set.
A32. the device according to A19, described monitoring flow threshold calculations formula is:
δ av = ξ * δ t D
In formula,
δ avfor monitoring flow threshold;
ξ is correction factor;
δ tfor moon set meal total amount or the flow that uses last month, if user does not customize flow package, then carry out alternative moon set meal total amount with the flow that last month uses;
D is the number of days comprised by the current moon.

Claims (10)

1. monitor a method for communication equipment non-normal consumption flow, comprising:
Read communication equipment operating system for recording the application list starting application program;
Obtain application program identical in the application list of current reading and the application list of last reading; According to described identical application program respectively current and on consumed flow once, calculate the non-normal consumption flow of described identical application program;
If the non-normal consumption of described identical application program flows exceed the monitoring flow threshold pre-set, process according to the processing policy pre-set.
2. the method for claim 1, after obtaining identical application program, before calculating the non-normal consumption flow of described identical application program, described method comprises further:
Generate pending the application list, from described pending the application list, read an application program.
3. method as claimed in claim 2, described from described pending the application list, read an application program after, before calculating the non-normal consumption flow of described identical application program, described method comprises further:
Determine that the application program of described reading exceedes the time threshold pre-set running time;
Described non-normal consumption flow is the consumed flow of application program after described time threshold of described reading.
4. the method for claim 1, described reading communication equipment operating system for record start application program the application list before, described method comprises further:
Monitor communication device initiated, for the startup of communication equipment allocation identification this startup started identifies.
5. method as claimed in claim 4, the startup mark of described allocation identification this startup comprises:
Monitor communication device initiated, the application rs traffic record sheet of reading pre-stored, obtain startup mark maximum in described application rs traffic record sheet;
The maximum startup mark that the startup arranging the communication equipment of this startup is designated acquisition adds 1.
6. method as claimed in claim 5, described application rs traffic record sheet includes but not limited to: time field, application program foreground normal consumption flow field, application program backstage normal consumption flow field and application program backstage non-normal consumption flow field that application program identification field, the identification field that starts, application program the last time are run, wherein, application program foreground normal consumption flow and application program backstage normal consumption flow are the normal consumption flow of application program.
7. method as claimed in claim 5, the non-normal consumption flow of the described identical application program of described calculating comprises:
Inquiring about the flow information that described user consumes in the application program that current monitoring periods uses, according to inquiring about the flow information and current startup mark that obtain, upgrading the application rs traffic record sheet pre-set;
Inquire about the flow information that pending application program consumes, according to the download time threshold value of inquiring about the flow information obtained, current startup mark and pre-set, upgrade the application rs traffic record sheet pre-set;
The application program foreground flow that in the application rs traffic record sheet of statistical updating, application program is corresponding and application program backstage normal consumption flow sum, as the normal consumption flow of this application program, the application program backstage non-normal consumption flow that in the application rs traffic record sheet of statistical updating, application program is corresponding, as the non-normal consumption flow of this application program.
8. method as claimed in claim 7, described method comprises further:
The application list that the application list that more current monitoring periods is corresponding is corresponding with last monitoring periods, determines the application program that user uses at current monitoring periods and pending application program.
9. monitor a device for communication equipment non-normal consumption flow, this device comprises: the application list read module, non-normal consumption flow determination module and application program processing module, wherein,
Nearest use the application list read module, for reading communication equipment operating system for recording the application list starting application program;
Non-normal consumption flow determination module, application program identical in the application list that the application list and last time for obtaining current reading read, calculates the non-normal consumption flow of described identical application program;
Application program processing module, for determining that the non-normal consumption of application program flows exceed the monitoring flow threshold pre-set, processes according to the processing policy pre-set.
10. device as claimed in claim 9, described non-normal consumption flow determination module is further used for: after obtaining identical application program, generate pending the application list, and an application program is read from described pending the application list, perform the flow process of the non-normal consumption flow calculating described identical application program.
CN201410332545.2A 2014-07-14 2014-07-14 Monitor the method and device of communication equipment non-normal consumption flow Active CN105337783B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410332545.2A CN105337783B (en) 2014-07-14 2014-07-14 Monitor the method and device of communication equipment non-normal consumption flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410332545.2A CN105337783B (en) 2014-07-14 2014-07-14 Monitor the method and device of communication equipment non-normal consumption flow

Publications (2)

Publication Number Publication Date
CN105337783A true CN105337783A (en) 2016-02-17
CN105337783B CN105337783B (en) 2018-09-04

Family

ID=55288096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410332545.2A Active CN105337783B (en) 2014-07-14 2014-07-14 Monitor the method and device of communication equipment non-normal consumption flow

Country Status (1)

Country Link
CN (1) CN105337783B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107770092A (en) * 2017-11-06 2018-03-06 珠海市魅族科技有限公司 A kind of data transmission method, device, mobile terminal and storage medium
CN108243271A (en) * 2016-12-23 2018-07-03 北京安云世纪科技有限公司 A kind of method, apparatus for carrying out flow control and mobile equipment
CN108322354A (en) * 2017-01-18 2018-07-24 中国移动通信集团河南有限公司 One kind is escaped the recognition methods of flow account and device
WO2018145236A1 (en) * 2017-02-07 2018-08-16 廖建强 Flow control method and device
CN109743755A (en) * 2018-12-19 2019-05-10 Oppo广东移动通信有限公司 Link aggregation right management method and Related product
CN112732356A (en) * 2021-01-11 2021-04-30 江西中瑞防雷技术有限公司 Data monitoring management system of intelligent platform system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120005602A1 (en) * 2010-07-02 2012-01-05 Nokia Corporation Methods and apparatuses for facilitating task switching
CN102521041A (en) * 2011-12-14 2012-06-27 华为终端有限公司 Method for processing application program and wireless handheld device
CN103209439A (en) * 2013-03-14 2013-07-17 北京小米科技有限责任公司 Method, apparatus and device for monitoring data traffic
CN103885803A (en) * 2014-03-17 2014-06-25 可牛网络技术(北京)有限公司 Method and device for managing procedures in mobile terminal and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120005602A1 (en) * 2010-07-02 2012-01-05 Nokia Corporation Methods and apparatuses for facilitating task switching
CN102521041A (en) * 2011-12-14 2012-06-27 华为终端有限公司 Method for processing application program and wireless handheld device
CN103209439A (en) * 2013-03-14 2013-07-17 北京小米科技有限责任公司 Method, apparatus and device for monitoring data traffic
CN103885803A (en) * 2014-03-17 2014-06-25 可牛网络技术(北京)有限公司 Method and device for managing procedures in mobile terminal and mobile terminal

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108243271A (en) * 2016-12-23 2018-07-03 北京安云世纪科技有限公司 A kind of method, apparatus for carrying out flow control and mobile equipment
CN108322354A (en) * 2017-01-18 2018-07-24 中国移动通信集团河南有限公司 One kind is escaped the recognition methods of flow account and device
CN108322354B (en) * 2017-01-18 2020-10-23 中国移动通信集团河南有限公司 Method and device for identifying running-stealing flow account
WO2018145236A1 (en) * 2017-02-07 2018-08-16 廖建强 Flow control method and device
CN107770092A (en) * 2017-11-06 2018-03-06 珠海市魅族科技有限公司 A kind of data transmission method, device, mobile terminal and storage medium
CN109743755A (en) * 2018-12-19 2019-05-10 Oppo广东移动通信有限公司 Link aggregation right management method and Related product
CN112732356A (en) * 2021-01-11 2021-04-30 江西中瑞防雷技术有限公司 Data monitoring management system of intelligent platform system

Also Published As

Publication number Publication date
CN105337783B (en) 2018-09-04

Similar Documents

Publication Publication Date Title
EP1872606B1 (en) Method and system for centralized memory management in wireless terminal devices
CN105337783A (en) Method of monitoring abnormal flow consumption of communication equipment and apparatus
CN105227626B (en) Content pushing method and device and terminal
US10523580B2 (en) Automatic cloud provisioning based on related internet news and social network trends
EP1872230B1 (en) Centralized memory management in wireless terminal devices
CN108243032B (en) Method, device and equipment for acquiring service level information
CN111427628A (en) Software function module configuration method, device, software product and storage medium
CN105204981A (en) Application performance test method and device
CN105553770A (en) Data acquisition control method and device
CN112328289B (en) Firmware upgrading method, device, equipment and storage medium
CN103838609A (en) Method and system for automatically monitoring software updating
CN112527543A (en) Client starting exception handling method and device, electronic equipment and storage medium
CN110347546B (en) Dynamic adjustment method, device, medium and electronic equipment for monitoring task
CN106817383B (en) Access cycle management method and device based on data statistics reporting
CN113703993A (en) Service message processing method, device and equipment
CN107203551B (en) Data processing method and device
CN110046055B (en) Application flash backing processing method and device, terminal and computer readable storage medium
CN111274230B (en) Data migration management method, device, equipment and storage medium
CN112328661B (en) Method, system and electronic equipment for monitoring ticket processing performance
CN116846779A (en) Capacity prediction method, device and storage medium
CN114024875A (en) Flow statistical method, device, equipment and medium
CN113760315A (en) Method and device for testing system
KR20140074658A (en) Method and server for managing storage of database
CN114416280A (en) Demand resource prediction method, device, equipment and storage medium
CN115563173A (en) Data processing method, device, equipment and medium

Legal Events

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

Effective date of registration: 20220727

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.