CN104009892A - Monitoring method and device for traffic of mobile terminal and client side - Google Patents

Monitoring method and device for traffic of mobile terminal and client side Download PDF

Info

Publication number
CN104009892A
CN104009892A CN201410261921.3A CN201410261921A CN104009892A CN 104009892 A CN104009892 A CN 104009892A CN 201410261921 A CN201410261921 A CN 201410261921A CN 104009892 A CN104009892 A CN 104009892A
Authority
CN
China
Prior art keywords
flow
application
described
mobile terminal
traffic
Prior art date
Application number
CN201410261921.3A
Other languages
Chinese (zh)
Inventor
杨可
Original Assignee
北京奇虎科技有限公司
奇智软件(北京)有限公司
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
Family has litigation
Application filed by 北京奇虎科技有限公司, 奇智软件(北京)有限公司 filed Critical 北京奇虎科技有限公司
Priority to CN201410261921.3A priority Critical patent/CN104009892A/en
Publication of CN104009892A publication Critical patent/CN104009892A/en
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=51370388&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=CN104009892(A) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.

Links

Abstract

The embodiment of the invention provides a monitoring method and device for traffic of a mobile terminal and a client side. The method comprises the steps: according to identifiers of applications, obtaining messages of traffic consumed by at least one application of the mobile terminal in the networking status, wherein the messages of the traffic comprise the traffic consumed by the applications in the status of a wireless local area network or a 2G/3G/4G network, and the foreground traffic and the background traffic of the applications; according to the set statistical cycle, accumulating the messages of the traffic of the applications, and correspondingly storing the messages of the traffic and the identifiers of the applications into a database; according to a traffic inquire request, returning to the message of the traffic within the statistical cycle designed by the inquiry request and displaying the message of the traffic. According to the monitoring method and device, the traffic consumed by each application of the mobile terminal is accurately monitored, a user can clearly know the traffic consumption situation of each application in the whole mobile terminal, and the helpful reference is provided for the user, so that the user more efficiently uses traffic plans, and unnecessary traffic expenses are avoided.

Description

A kind of method for supervising of mobile terminal flow, device and client

Technical field

The present invention relates to technical field of mobile terminals, relate in particular to a kind of method for supervising, device and client of mobile terminal flow.

Background technology

Fast development along with information dissemination technology, mobile terminal is intelligent mobile terminal and mobile Internet universal especially, user can use mobile terminal browsing page whenever and wherever possible, watch audio frequency and video etc., user uses the frequency of mobile terminal, time is also in continuous increase, meanwhile, the flow that the mobile terminal Internet access that user uses consumes also constantly increases, user uses the mode of customization flow set meal to enjoy service on net conventionally, the flow that general operator occurs for excess flow set meal, charge will be higher than the expense occurring in set meal, therefore, for user, how timely, understand reliably current mobile terminal flow service condition, to control the flow of the whole online of mobile terminal, to save the expense of online, become a kind of urgent demand.

At present, user can be by login operator website, input handset number or personal information etc. are carried out the inquiry of the details of network traffics, or the customer service phone of dialing operator is known user's flow service condition, even, when the flow that operator also can be used user reaches certain threshold value, by push the mode of customization note to user, notice user network flow service condition, but these modes, on the one hand, it is convenient not that inquiry is got up, another aspect, often can only inquire about for the whole flow situation of mobile terminal, the situation that accurately inner each application traffic of reflect mobile terminal consumes, also just can not provide the reference that surfing flow is controlled targetedly for user.

Summary of the invention

In view of the above problems, the present invention has been proposed to a kind of method for supervising, device and client of a kind of mobile terminal flow that overcomes the problems referred to above or address the above problem are at least in part provided.

Based on the problems referred to above, the method for supervising of a kind of mobile terminal flow that the embodiment of the present invention provides, comprising:

According to the sign of application, obtain mobile terminal at least one application consumed flow information under networking state; Flow information comprises: described in be applied in the flow consuming under WLAN (wireless local area network) or 2G/3G/4G network state; The described flow that is applied in foreground or backstage generation;

According to the measurement period of setting, to the flow information of described at least one application add up respectively and with the sign corresponding stored of described application in database;

According to flow inquiry request, return to the flow information in the measurement period of described inquiry request appointment and show.

The supervising device of a kind of mobile terminal flow that the embodiment of the present invention provides, comprising:

Acquisition module, for according to the sign of application, obtains mobile terminal at least one application consumed flow information under networking state; Flow information comprises: described in be applied in the flow consuming under WLAN (wireless local area network) or 2G/3G/4G network state; The described flow that is applied in foreground or backstage generation;

Statistical module, the measurement period for according to setting, adds up respectively the flow information of described at least one application, and with the sign corresponding stored of described application in database;

Query processing module, for according to flow inquiry request, returns to the flow information in the measurement period of described inquiry request appointment and shows.

A kind of client that the embodiment of the present invention provides, is arranged in mobile terminal, comprises the supervising device of the above-mentioned mobile terminal flow that the embodiment of the present invention provides.

The beneficial effect of the embodiment of the present invention comprises:

Method for supervising, device and the client of the mobile terminal flow that the embodiment of the present invention provides, first according to the sign of each application, obtain mobile terminal at least one application consumed flow information under networking state; Flow information comprises: described in be applied in the flow consuming under WLAN (wireless local area network) or 2G/3G/4G network state; Be applied in the flow that foreground or backstage occur; Measurement period according to setting, add up the flow information of at least one application, and carries out corresponding stored in database with the sign of application, according to flow inquiry request, returns to flow information demonstration in the measurement period of inquiry request appointment.In embodiments of the present invention, can monitor accurately for each application consumed flow of mobile terminal, make user can be well understood to the situation of the flow of each application actual consumption in whole mobile terminal, for accurately controlling flow, user provides useful reference, thereby can, so that user more effectively uses its flow set meal, avoid unnecessary flow expense.

Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to better understand technological means of the present invention, and can be implemented according to the content of specification, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.

Accompanying drawing explanation

By reading below detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skills.Accompanying drawing is only for the object of preferred implementation is shown, and do not think limitation of the present invention.And in whole accompanying drawing, by identical reference symbol, represent identical parts.In the accompanying drawings:

The flow chart of the method for supervising of the mobile terminal flow that Fig. 1 provides for the embodiment of the present invention;

One of interface schematic diagram of the traffic monitoring that Fig. 2 provides for the embodiment of the present invention;

Two of the interface schematic diagram of the traffic monitoring that Fig. 3 provides for the embodiment of the present invention;

Three of the interface schematic diagram of the traffic monitoring that Fig. 4 provides for the embodiment of the present invention;

Four of the interface schematic diagram of the traffic monitoring that Fig. 5 provides for the embodiment of the present invention;

The structural representation of the mobile terminal flow-monitoring device that Fig. 6 provides for the embodiment of the present invention.

Embodiment

Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in accompanying drawing, yet should be appreciated that and can realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order more thoroughly to understand the disclosure that these embodiment are provided, and can by the scope of the present disclosure complete convey to those skilled in the art.

Below in conjunction with Figure of description, the embodiment of method for supervising, device and the client of a kind of mobile terminal flow that the embodiment of the present invention is provided describes.

The method for supervising of a kind of mobile terminal flow that the embodiment of the present invention provides, as shown in Figure 1, specifically comprises the following steps:

S101, according to the sign of application, obtain mobile terminal at least one application consumed flow information under networking state; Flow information comprises: be applied in the flow consuming under WLAN (wireless local area network) or 2G/3G/4G network state; Be applied in the flow that foreground or backstage occur;

S102, according to the measurement period of setting, to the flow information of described at least one application add up respectively and with the sign corresponding stored of described application in database;

S103, according to flow inquiry request, return to the flow information in the measurement period of inquiry request appointment and show.

Respectively above steps is described in detail below.

In above-mentioned steps S101, in above-mentioned steps S101, according to the sign of each application, obtain mobile terminal under networking state, the flow information that each application consumes, in the specific implementation, for the above system of mobile terminal And roid4.0, can pass through Android IDL (Android Interface de finition language, AIDL) mechanism is called specific Interface realization, for example, by calling INetwor kStatsService.aidl interface, the parameter of the NetworkStats getDataLayerSnapshotForUid method in this interface is for obtaining the process name of each application of flow information, with this, obtain each application consumed flow information.Specifically, be exactly first in code, to create android.net bag, from system source code, find out NetworkStats.aidl, NetworkStats.java and INetworkStatsService.aidl file add in android.net bag.Then, a reservation method Networ kStats getDataLayerSnapshotForUid (int uid) in INetworkStatsService.aidl, wherein, parameter " uid " is for obtaining the process name of the application of networking flow, like this, when calling this interface, utilize the process name of each application, just can know the details of the flow that each application consumes, utilize the method for getDataLayerSnapshotForUid can obtain from this each application consumed flow of having networked of starting shooting, when its value is NetworkStats.UI D_ALL, can obtain the flow that all working application consume.

In addition, use this interface need to obtain ACCESS_NETWORK_STATE authority, the process that obtains authority can add following code to obtain System Privileges in AndroidManifest.xml:

<uses-permission?android:name="android.permission.ACCESS_NETWORK_STATE"/>;

In the time of packing and issuing, this interface needs obfuscated codes, because the code of system is not obscured, for example, for guaranteeing that specific interface can normally be used, and need to obscure configuration to android.net, code: kee p class android.net.**{*; .

The embodiment of the present invention is used getDataLayerSnapshotForUid (int uid) method, can accurately obtain from the bottom of system the situation of the flow of each application actual consumption, why adopt in this way, because inventor finds, with respect to use/proc/uid_stat file, obtain the method for the flow of single application, this method is more accurate, because/proc/uid_stat file only records application TCP, connect the byte number consuming, and do not comprise UDP connection and UDP and Transmission Control Protocol self byte number.Although for the above system of Android4.0, / proc/net/xt_qtaguid/stats file can carry out more accurate record, but because this file is virtual file, only for Android system, carrying traffic statistics instrument reads, for other, need to obtain the main body (for example certain traffic statistics application) of accurate flow, reading this/during proc/net/xt_qtaguid/stats file, only can return to the flow of this main body autophage, and cannot obtain the flow that other application consume, and, adopt getDataLayerSnapshotForUid (int uid) method to obtain the flow that in mobile terminal, each application consumes, also can avoid continually file being carried out to I/O operation and the processing power consumption bringing and the problem that affects mobile terminal serviceability.

Further, in above-mentioned S102, need to be according to setting each measurement period, for example one day or one month etc., add up the flow information of each application, and flow information be recorded in database, impact for fear of the shutdown of mobile terminal on statistics, this operation that flow information is carried out adding up is periodically each application to be carried out to poll realization, and is stored in time in database, to avoid the impact of the shutdown of mobile terminal on statistics.

Further, in embodiments of the present invention, the flow that can set in measurement period being respectively applied in mobile terminal under the heterogeneous networks state of (such as a day, month etc.) is monitored, and also can set the flow that in measurement period, foreground and backstage occur to being respectively applied in mobile terminal and monitor.

Preferably, in database, can be by flow information corresponding storage of sign with application.

Further, when flow information is when being respectively applied in the flow under the network state of WLAN (wireless local area network) and being respectively applied in the flow under 2G/3G/4G network state, in above-mentioned S101, obtain mobile terminal each application consumed flow information under networking state, specifically comprise several steps below:

1, monitor the network state of mobile terminal;

2, when mobile terminal is set up 2G/3G/4G network or set up WLAN (wireless local area network) connection, the flow of current consumption respectively applied in record;

3, when mobile terminal disconnects 2G/3G/4G network or the connection of disconnection of wireless local area network (LAN), the flow of current consumption respectively applied in record;

4,, for each application, the flow of record when the flow of record deducts this and is applied in network and connects when respectively this being applied in to network and disconnecting, obtains being respectively applied in 2G/3G/4G network or at the flow of wireless local consumption off the net.

In the specific implementation, the embodiment of the present invention is in order to improve further traffic statistics efficiency, can also be in advance according to the setting in mobile terminal, know that those application allow to use under 2G/3G/4G network, which application allows for example, is used in WLAN (wireless local area network) (WIFI), like this, when 2G/3G/4G network (or WIFI) connects or disconnect, when carrying out traffic statistics, only consider to allow the application of use in current network environment, and need not consider not allow the application of use in current network environment.

Correspondingly, when the flow inquiry request of sending as user is the inquiry request of 2G/3G/4G surfing flow and WIFI surfing flow, in above-mentioned S103, the 2G/3G/4G surfing flow sending according to user and the inquiry request of WIFI surfing flow are inquired about in the mobile terminal that this user uses the network traffics in each measurement period that is applied in this flow inquiry request appointment in database; This measurement period comprises: the same day or this month; Network traffics comprise: the flow that occurs of 2G/3G/4G net environment application and the flow occurring in the application of WIFI net environment;

To in mobile terminal, respectively be applied in the network traffics of the inherent 2G/3G/4G net environment generation of described measurement period and generate list and return to user in WIFI net environment network traffics.

Preferably, by being respectively applied in the flow that flow that foreground in measurement period occurs and backstage occur, according to size, sort, generate list.

Further, when described flow information is during for the flow that is respectively applied in foreground and occurs and the flow occurring on backstage, in above-mentioned S101, obtain mobile terminal each application consumed flow information under networking state, comprising:

According to the sign of each application, monitor respectively the flow of this application foreground upload and download and the flow of backstage upload and download;

The flow that the flow sum of the foreground upload and download of each application monitoring is occurred as this application foreground, the flow that the flow sum of the backstage upload and download of each application monitoring is occurred as this application backstage.

Correspondingly, the flow inquiry request of sending as user is while inquiring about the flow that is respectively applied in the flow of foreground generation and occurs on backstage, in above-mentioned S103, each application traffic details inquiry request of sending according to user is inquired about in the mobile terminal that this user uses the network traffics in each measurement period that is applied in this flow inquiry request appointment in database; Measurement period comprises: the same day or this month; Network traffics comprise: be applied in the flow of foreground generation and the flow that backstage occurs;

The flow that the flow that the foreground being respectively applied in mobile terminal in measurement period is occurred and backstage occur generates list and returns to user.

Preferably, by being respectively applied in the flow that flow that foreground in measurement period occurs and backstage occur, according to size, sort, generate list.

For a simple example explanation, building database table for example, in this database table, take the same day is high-order apart from the number of days on January 1st, 2005, the uid of application is that low level forms a long shaping numeral as major key, field comprises and is applied in 2G/3G/4G network and uploading, downloading in WIFI network, and the flow information that upload on foreground, download on foreground, upload on backstage and download on backstage.When being responsible for the traffic monitoring service of statistic flow and starting, the consumption figures that takes out the flow of today from this database table is mapped in internal memory (prevent the service that shutdown etc. causes extremely from restarting), the difference of cumulative network change, and be updated in database.

The interface of traffic monitoring as shown in Figure 2 for example, it is " today " or " this month " that user can select measurement period by measurement period option, then the service of software traffic management is processed accordingly to being respectively applied in the traffic statistics data in the same day or this month in database, when being chosen as " today " user, the aggregate-value of the flow that each application in the same day is consumed (aggregate-value of the flow that can produce for foreground/backstage, or the aggregate-value of WIFI/2G/3G/4G network traffics) sort, and generate list of application and return to user as Query Result, when being chosen as " this month " user, the aggregate-value of the flow that each application consumes within this month (from the first day of this month to the same day of inquiring about) is as Query Result and return to user, the sign that comprises each application in list, icon and corresponding flow information.

In order to account for the ratio of wastage in bulk or weight flow for user provides the flow that is applied in foreground and occurs, the flow of backstage generation better, further, when described flow inquiry request is while respectively applying foreground/background traffic details inquiry request in today or this middle of the month, in above-mentioned S103, can also further process the flow information in database, that is:

Calculate respectively in measurement period (a day or month etc.), the summation of the flow that the summation of the flow that all application foreground occurs and backstage occur accounts for the ratio of all application consumed flow summations;

By all summations that are applied in the flow that foreground occurs of mobile terminal, each self-corresponding ratio value of summation of the flow that backstage occurs feeds back to user.

Take the traffic monitoring interface shown in Fig. 3 is example, the summation of the flow wherein consuming first same day on date is 6.54K, wherein foreground consumes 4.1K, backstage consumes 2.44K, and the summation of second flow consuming the same day on date is 2.62K, and wherein prerequisite consumes 1.96K, backstage consumes 676B, and the pie chart that provides a backstage to escape flow, this pie chart can be embodied in the measurement period of this month, and the flow of escaping in backstage accounts for mobile terminal and has used 25% of flow.

Further, because some application relatively consumes flow, especially some application can be in the unwitting situation of user, the backstage flow of escaping, therefore, when each application foreground/background traffic is monitored, when list can also be shown to user, for providing each, user applies the corresponding option of forbidding;

When receiving user when forbidding quiescing that option is made, forbid applying backstage networking operation.

In embodiments of the present invention, except providing to user the statistics of respectively applying foreground, background traffic, for further, for user provides useful flow control reference, except the uninterrupted of application is sorted, give accordingly the option of forbidding/allowing, like this, user can pass through this option, according to the demand of oneself, closes some and not too necessaryly relatively consumes again the application of flow, when meeting consumers' demand, also saved user's flow.

Example example as shown in Figure 4, when each application background traffic is sorted, there is an option on each application side, and user can be by slip option, select whether to forbid these application, also can select to forbid all application networking operations by the button of all forbidding.

Preferably, for the service of traffic monitoring is provided for the user of use traffic set meal better, in the method for supervising of the mobile terminal flow providing in the embodiment of the present invention, can also comprise the steps: to receive the flow set meal setting of user's input, the setting of described flow set meal comprises: monthly set meal amount, set meal Settlement Date monthly;

Like this, can take one month as measurement period according to this Settlement Date, each application flow information within this month in mobile terminal is added up respectively and is stored in database with the sign of application;

When receiving the flow inquiry request that user sends, according to the monthly set meal amount of user's input, and all application flow sum within this month in mobile terminal, determine that this month used the ratio of flow and set meal amount;

Flow information and this month that each is applied within this month, return to user with flow and the ratio of set meal amount.

Take the interface shown in Fig. 5 describes as example, in this interface, shows the ratio that flow that this mobile terminal this month used accounts for set meal amount, and each application this month the flow that consumes details.

Based on same inventive concept, the embodiment of the present invention also provides a kind of supervising device and client of mobile terminal flow, because the method for supervising of these devices and the client principle of dealing with problems and aforementioned mobile terminal flow is similar, therefore the enforcement of this device and client can, referring to the enforcement of preceding method, repeat part and repeat no more.

The supervising device of the flow that the embodiment of the present invention provides, as shown in Figure 6, comprising:

Acquisition module 601, for according to the sign of application, obtains mobile terminal at least one application consumed flow information under networking state; Flow information comprises: described in be applied in the flow consuming under WLAN (wireless local area network) or 2G/3G/4G network state; The described flow that is applied in foreground or backstage generation;

Statistical module 602, the measurement period for according to setting, add up respectively the flow information of described at least one application, and with the sign corresponding stored of applying in database;

Query processing module 603, for according to flow inquiry request, returns to the flow information in the measurement period of inquiry request appointment and shows.

Further, the above-mentioned acquisition module 601 that the embodiment of the present invention provides, specifically for monitoring the network state of mobile terminal; When mobile terminal is set up 2G/3G/4G network or set up WLAN (wireless local area network) connection, record the flow that at least one applies current consumption; When mobile terminal disconnects 2G/3G/4G network or the connection of disconnection of wireless local area network (LAN), record the flow that at least one applies current consumption; For each application at least one application, the flow of record when the flow of record deducts this and is applied in network and connects when respectively this being applied in to network and disconnecting, obtains being respectively applied in 2G/3G/4G network or at the flow of wireless local consumption off the net.

Further, the above-mentioned acquisition module 601 that the embodiment of the present invention provides, specifically for according to the sign of each application, monitors respectively the flow of this application foreground upload and download and the flow of backstage upload and download; The flow that the flow sum of the foreground upload and download of each application monitoring is occurred as this application foreground, the flow that the flow sum of the backstage upload and download of each application monitoring is occurred as this application backstage.

Further, the above-mentioned acquisition module 601 that the embodiment of the present invention provides, specifically for by calling INetworkStatsService.aidl interface, the parameter of the NetworkStats getDataLayerSnapshotForUid method in this interface, for obtaining the process name of each application of flow information, is obtained each application consumed flow information.

Further, above-mentioned query processing module 603, specifically for the 2G/3G/4G surfing flow that sends according to user and the inquiry request of WIFI surfing flow, in database, inquire about in the mobile terminal that this user uses the network traffics in each measurement period that is applied in this flow inquiry request appointment; Described measurement period comprises: the same day or this month; Described network traffics comprise: the flow that occurs of 2G/3G/4G net environment application and the flow occurring in the application of WIFI net environment; By being respectively applied in the network traffics of the inherent 2G/3G/4G net environment generation of described measurement period in described mobile terminal and generating list in WIFI net environment network traffics, return to user.

Further, above-mentioned query processing module 603, specifically for each application traffic details inquiry request of sending according to user, in database, inquire about in the mobile terminal that this user uses the network traffics in each measurement period that is applied in this flow inquiry request appointment; Described measurement period comprises: the same day or this month; Described network traffics comprise: be applied in the flow of foreground generation and the flow that backstage occurs; The flow that the flow that the foreground being respectively applied in described mobile terminal in described measurement period is occurred and backstage occur generates list and returns to user.

Further, above-mentioned query processing module 603, when when flow inquiry request being foreground/background traffic details inquiry request, add up respectively in the measurement period of this request appointment all summation of flow and the summations of the flow that backstage occurs that are applied in foreground generation of this mobile terminal; Calculate respectively in this measurement period, the summation of the flow that the summation of the flow that foreground occurs and backstage occur accounts for the ratio of all application consumed flow summations; By all summations that are applied in the flow that foreground occurs of mobile terminal, each self-corresponding ratio value of summation of the flow that backstage occurs feeds back to user.

Further, above-mentioned query processing module 603, provides the corresponding option of forbidding specifically for each application in list; When receiving user when forbidding quiescing that option is made, forbid this application networking operation.

Further, as shown in Figure 6, also comprise: module 604 is set, and for receiving the flow set meal setting of user input, the setting of described flow set meal comprises: monthly set meal amount, set meal Settlement Date monthly;

Above-mentioned statistical module 602, also, for according to described Settlement Date, take one month as measurement period, and each application flow information within this month in mobile terminal is added up respectively and is stored in database with the sign of described application;

Above-mentioned query processing module 603, also for when receiving the flow inquiry request that user sends, according to the monthly set meal amount of user's input, and all application flow sum within this month in mobile terminal, determines that this month used the ratio of flow and set meal amount; Flow information and this month that each is applied within this month, return to user with flow and the ratio of set meal amount.

The embodiment of the present invention also provides a kind of client, and this client is arranged in mobile terminal, the supervising device that comprises the above-mentioned mobile terminal flow that the embodiment of the present invention provides.

Further, the above-mentioned client that the embodiment of the present invention provides, can adopt software for being installed in mobile terminal, or the implementation of software and hardware combination, and the embodiment of the present invention does not limit this.

Method for supervising, device and the client of the mobile terminal flow that the embodiment of the present invention provides, first according to the sign of each application, obtain mobile terminal at least one application consumed flow information under networking state; Flow information comprises: described in be applied in the flow consuming under WLAN (wireless local area network) or 2G/3G/4G network state; Be applied in the flow that foreground or backstage occur; According to the measurement period of setting, flow information at least one application adds up, and carry out corresponding stored in database with the sign of application, flow information at least one application adds up, and carry out corresponding stored in database with the sign of application, the flow inquiry request of sending according to user, returns to user by the flow information in the measurement period of inquiry request appointment.In embodiments of the present invention, can monitor accurately for each application consumed flow of mobile terminal, make user can be well understood to the situation of the flow of each application actual consumption in whole mobile terminal, for accurately controlling flow, user provides useful reference, thereby can, so that user more effectively uses its flow set meal, avoid unnecessary flow expense.

The algorithm providing at this is intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with demonstration.Various general-purpose systems also can with based on using together with this teaching.According to description above, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.It should be understood that and can utilize various programming languages to realize content of the present invention described here, and the description of above language-specific being done is in order to disclose preferred forms of the present invention.

In the specification that provided herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can not put into practice in the situation that there is no 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 one or more in each inventive aspect, in the above in the description of exemplary embodiment of the present invention, each feature of the present invention is grouped together into single embodiment, figure or sometimes in its description.Yet, the method for the disclosure should be construed to the following intention of reflection: the present invention for required protection requires than the more feature of feature of clearly recording in each claim.Or rather, as reflected in claims below, inventive aspect is to be less than all features of disclosed single embodiment above.Therefore, claims of 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 can the module in the equipment in embodiment are adaptively changed 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 can put them into a plurality of submodules or subelement or sub-component in addition.At least some in such feature and/or process or unit are mutually repelling, and can adopt any combination to combine all processes or the unit of disclosed all features in this specification (comprising claim, summary and the accompanying drawing followed) and disclosed any method like this or equipment.Unless clearly statement in addition, in this specification (comprising claim, summary and the accompanying drawing followed) disclosed each feature can be by providing identical, be equal to or the alternative features of similar object replaces.

In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included in other embodiment, the combination of the feature of different embodiment means within scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with compound mode arbitrarily.

All parts embodiment of the present invention can realize with hardware, or realizes with the software module moved on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that and can use in practice microprocessor or digital signal processor (DSP) to realize the some or all functions according to the some or all parts in the supervising device of flow in the embodiment of the present invention and client.The present invention for example can also be embodied as, for carrying out part or all equipment or device program (, computer program and computer program) of method as described herein.Realizing program of the present invention and can be stored on computer-readable medium like this, or can there is the form of one or more signal.Such signal can be downloaded and obtain from internet website, or provides on carrier signal, or provides with any other form.

It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment in the situation that do not depart 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 is not listed as element or step in the claims.Being positioned at word " " before element or " one " does not get rid of and has a plurality of such elements.The present invention can be by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to carry out imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title by these word explanations.

Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (10)

1. a method for supervising for mobile terminal flow, is characterized in that, comprising:
According to the sign of application, obtain mobile terminal at least one application consumed flow information under networking state; Flow information comprises: described in be applied in the flow consuming under WLAN (wireless local area network) or 2G/3G/4G network state; The described flow that is applied in foreground or backstage generation;
According to the measurement period of setting, to the flow information of described at least one application add up respectively and with the sign corresponding stored of described application in database;
According to flow inquiry request, return to the flow information in the measurement period of described inquiry request appointment and show.
2. the method for claim 1, it is characterized in that, when described flow information is when being respectively applied in the flow under the network state of WLAN (wireless local area network) and being respectively applied in the flow under 2G/3G/4G network state, described mobile terminal each the application consumed flow information under networking state that obtains, comprising:
Monitor the network state of mobile terminal;
When mobile terminal is set up 2G/3G/4G network or set up WLAN (wireless local area network) connection, described in recording, at least one applies the flow of current consumption;
When mobile terminal disconnects 2G/3G/4G network or the connection of disconnection of wireless local area network (LAN), described in recording, at least one applies the flow of current consumption;
For each application in described at least one application, the flow of record when the flow of record deducts this and is applied in network and connects when respectively this being applied in to network and disconnecting, obtains being respectively applied in 2G/3G/4G network or at the flow of wireless local consumption off the net.
3. the method for claim 1, is characterized in that, when described flow information is during for the flow that is respectively applied in foreground and occurs and the flow occurring on backstage, described in obtain mobile terminal each application consumed flow information under networking state, comprising:
According to the sign of each application, monitor respectively the flow of this application foreground upload and download and the flow of backstage upload and download;
The flow that the flow sum of the foreground upload and download of each application monitoring is occurred as this application foreground, the flow that the flow sum of the backstage upload and download of each application monitoring is occurred as this application backstage.
4. the method as described in claim 1-3 any one, is characterized in that, according to the sign of each application, obtains mobile terminal each application consumed flow information under networking state, comprising:
By calling INetworkStatsService.aidl interface, the parameter of the NetworkStats getDataLayerSnapshotForUid method in this interface, for obtaining the process name of each application of flow information, is obtained each application consumed flow information.
5. method as claimed in claim 2, is characterized in that, according to flow inquiry request, returns to the flow information in the measurement period of described inquiry request appointment, comprising:
According to the inquiry request of 2G/3G/4G surfing flow and WIFI surfing flow, in database, in enquiry mobile terminal, each is applied in the network traffics in the measurement period of this flow inquiry request appointment; Described measurement period comprises: the same day or this month; Described network traffics comprise: the flow occurring in the application of 2G/3G/4G net environment and the flow occurring in the application of WIFI net environment;
To in described mobile terminal, respectively be applied in the network traffics of the inherent 2G/3G/4G net environment generation of described measurement period and generate list and return in WIFI net environment network traffics.
6. method as claimed in claim 3, is characterized in that, according to flow inquiry request, returns to the flow information in the measurement period of described inquiry request appointment, comprising:
According to flow details inquiry request, in database, in enquiry mobile terminal, each is applied in the network traffics in the measurement period of this flow inquiry request appointment; Described measurement period comprises: the same day or this month; Described network traffics comprise: be applied in the flow of foreground generation and the flow that backstage occurs;
The flow that the network traffics that the foreground being respectively applied in described mobile terminal in described measurement period is occurred and backstage occur generates list and returns.
7. the method as described in claim 5 or 6, is characterized in that, the flow that the network traffics that the foreground being respectively applied in described mobile terminal in described measurement period is occurred and backstage occur generates list and returns, and comprising:
For each application in list provides the corresponding option of forbidding;
When forbidding the quiescing that option is made described in receiving basis, forbid the networking operation of described application.
8. a supervising device for mobile terminal flow, is characterized in that, comprising:
Acquisition module, for according to the sign of application, obtains mobile terminal at least one application consumed flow information under networking state; Flow information comprises: described in be applied in the flow consuming under WLAN (wireless local area network) or 2G/3G/4G network state; The described flow that is applied in foreground or backstage generation;
Statistical module, the measurement period for according to setting, adds up respectively the flow information of described at least one application, and with the sign corresponding stored of described application in database;
Query processing module, for according to flow inquiry request, returns to the flow information in the measurement period of described inquiry request appointment and shows.
9. device as claimed in claim 8, it is characterized in that, described acquisition module, specifically for by calling INetworkStatsService.aidl interface, the parameter of the NetworkStats getDataLayerSnapshotForUid method in this interface, for obtaining the process name of each application of flow information, is obtained each application consumed flow information.
10. a client, is characterized in that, described client is arranged in mobile terminal, comprises the supervising device of the mobile terminal flow as described in claim 8 or 9 any one.
CN201410261921.3A 2014-06-12 2014-06-12 Monitoring method and device for traffic of mobile terminal and client side CN104009892A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410261921.3A CN104009892A (en) 2014-06-12 2014-06-12 Monitoring method and device for traffic of mobile terminal and client side

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410261921.3A CN104009892A (en) 2014-06-12 2014-06-12 Monitoring method and device for traffic of mobile terminal and client side

Publications (1)

Publication Number Publication Date
CN104009892A true CN104009892A (en) 2014-08-27

Family

ID=51370388

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410261921.3A CN104009892A (en) 2014-06-12 2014-06-12 Monitoring method and device for traffic of mobile terminal and client side

Country Status (1)

Country Link
CN (1) CN104009892A (en)

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202773A (en) * 2014-09-01 2014-12-10 深圳市中兴移动通信有限公司 Method and device for controlling smart card based on network traffic
CN104253722A (en) * 2014-09-24 2014-12-31 百度在线网络技术(北京)有限公司 Dataflow monitoring method and dataflow monitoring device for remote mobile phone management
CN104349365A (en) * 2014-10-30 2015-02-11 北京奇虎科技有限公司 Data flow monitoring method and system for mobile terminal
CN104484259A (en) * 2014-11-25 2015-04-01 北京奇虎科技有限公司 Application program traffic monitoring method and device, and mobile terminal
CN104486138A (en) * 2014-11-25 2015-04-01 北京奇虎科技有限公司 Flow monitoring method and device and monitoring server
CN104869595A (en) * 2015-05-04 2015-08-26 小米科技有限责任公司 Method and device for controlling data traffic
CN105429792A (en) * 2015-11-04 2016-03-23 北京网康科技有限公司 User behavior flow obtaining method and device and user behavior analysis method and system
CN105553772A (en) * 2015-12-18 2016-05-04 小米科技有限责任公司 Flow monitoring method and device
CN105577459A (en) * 2014-10-08 2016-05-11 腾讯科技(深圳)有限公司 Traffic monitoring method, traffic monitoring system, cloud server and client
CN105607979A (en) * 2015-12-18 2016-05-25 小米科技有限责任公司 Network interconnection control method and device
WO2016131348A1 (en) * 2015-09-17 2016-08-25 中兴通讯股份有限公司 Method for achieving traffic control and terminal
CN106060868A (en) * 2016-08-22 2016-10-26 安徽瑞宏信息科技有限公司 Network traffic monitoring method, device and terminal
CN106302023A (en) * 2016-08-22 2017-01-04 安徽瑞宏信息科技有限公司 The network flow monitoring method of mobile terminal
CN106341286A (en) * 2015-07-13 2017-01-18 腾讯科技(深圳)有限公司 Flow rate display processing method and device
CN106375978A (en) * 2015-07-20 2017-02-01 中兴通讯股份有限公司 Flow monitoring method and terminal
CN106445375A (en) * 2016-08-30 2017-02-22 宇龙计算机通信科技(深圳)有限公司 Application freezing and unfreezing operation method and apparatus
CN106559546A (en) * 2015-09-28 2017-04-05 腾讯科技(深圳)有限公司 Method and apparatus of the control software using network internet
CN106817281A (en) * 2017-02-04 2017-06-09 品骏控股有限公司 A kind of all-in-one flux monitoring method and device
WO2017152792A1 (en) * 2016-03-07 2017-09-14 北京金山安全软件有限公司 Method and device for acquiring network file resource and electronic device
CN107231651A (en) * 2017-07-28 2017-10-03 惠州Tcl移动通信有限公司 Traffic monitoring alarm method, storage device and the mobile terminal of a kind of mobile terminal
CN107276853A (en) * 2017-07-25 2017-10-20 联想(北京)有限公司 Flow processing method and electronic equipment, computer system
CN107484201A (en) * 2017-09-30 2017-12-15 广东欧珀移动通信有限公司 Flow statistical method and device, terminal, computer-readable recording medium
CN107682910A (en) * 2017-09-30 2018-02-09 广东欧珀移动通信有限公司 Floating resources sharing method, device, mobile terminal and storage medium
CN107682833A (en) * 2017-09-30 2018-02-09 广东欧珀移动通信有限公司 Method, apparatus, mobile terminal and the storage medium that control flow uses
CN107708147A (en) * 2017-09-30 2018-02-16 广东欧珀移动通信有限公司 Information processing method, device, mobile terminal and computer-readable recording medium
CN107948454A (en) * 2017-11-15 2018-04-20 维沃移动通信有限公司 Flow statistical method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188647A (en) * 2011-12-29 2013-07-03 北京网秦天下科技有限公司 Method and system for statistically analyzing and warning Internet surfing flow of mobile terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188647A (en) * 2011-12-29 2013-07-03 北京网秦天下科技有限公司 Method and system for statistically analyzing and warning Internet surfing flow of mobile terminal

Cited By (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202773B (en) * 2014-09-01 2018-07-13 努比亚技术有限公司 Smart card control method and device based on network flow
CN104202773A (en) * 2014-09-01 2014-12-10 深圳市中兴移动通信有限公司 Method and device for controlling smart card based on network traffic
CN104253722A (en) * 2014-09-24 2014-12-31 百度在线网络技术(北京)有限公司 Dataflow monitoring method and dataflow monitoring device for remote mobile phone management
CN105577459A (en) * 2014-10-08 2016-05-11 腾讯科技(深圳)有限公司 Traffic monitoring method, traffic monitoring system, cloud server and client
CN105577459B (en) * 2014-10-08 2020-05-05 腾讯科技(深圳)有限公司 Flow monitoring method and system, cloud server and client
CN104349365A (en) * 2014-10-30 2015-02-11 北京奇虎科技有限公司 Data flow monitoring method and system for mobile terminal
CN104349365B (en) * 2014-10-30 2018-06-29 北京奇虎科技有限公司 The data traffic monitoring method and system of mobile terminal
CN104484259A (en) * 2014-11-25 2015-04-01 北京奇虎科技有限公司 Application program traffic monitoring method and device, and mobile terminal
CN104486138A (en) * 2014-11-25 2015-04-01 北京奇虎科技有限公司 Flow monitoring method and device and monitoring server
CN104869595A (en) * 2015-05-04 2015-08-26 小米科技有限责任公司 Method and device for controlling data traffic
CN106341286A (en) * 2015-07-13 2017-01-18 腾讯科技(深圳)有限公司 Flow rate display processing method and device
CN106375978A (en) * 2015-07-20 2017-02-01 中兴通讯股份有限公司 Flow monitoring method and terminal
WO2016131348A1 (en) * 2015-09-17 2016-08-25 中兴通讯股份有限公司 Method for achieving traffic control and terminal
CN106550404A (en) * 2015-09-17 2017-03-29 中兴通讯股份有限公司 A kind of method and terminal for realizing flow-control
CN106559546A (en) * 2015-09-28 2017-04-05 腾讯科技(深圳)有限公司 Method and apparatus of the control software using network internet
CN105429792B (en) * 2015-11-04 2019-01-25 北京网康科技有限公司 User behavior flow acquisition methods and device, user behavior analysis method and system
CN105429792A (en) * 2015-11-04 2016-03-23 北京网康科技有限公司 User behavior flow obtaining method and device and user behavior analysis method and system
CN105553772A (en) * 2015-12-18 2016-05-04 小米科技有限责任公司 Flow monitoring method and device
CN105553772B (en) * 2015-12-18 2020-03-17 小米科技有限责任公司 Flow monitoring method and device
CN105607979A (en) * 2015-12-18 2016-05-25 小米科技有限责任公司 Network interconnection control method and device
CN105607979B (en) * 2015-12-18 2018-05-08 小米科技有限责任公司 Networking control method and device
WO2017152792A1 (en) * 2016-03-07 2017-09-14 北京金山安全软件有限公司 Method and device for acquiring network file resource and electronic device
CN106302023A (en) * 2016-08-22 2017-01-04 安徽瑞宏信息科技有限公司 The network flow monitoring method of mobile terminal
CN106060868A (en) * 2016-08-22 2016-10-26 安徽瑞宏信息科技有限公司 Network traffic monitoring method, device and terminal
CN106445375B (en) * 2016-08-30 2019-08-02 宇龙计算机通信科技(深圳)有限公司 The operating method freezed and thawed and device of application program
CN106445375A (en) * 2016-08-30 2017-02-22 宇龙计算机通信科技(深圳)有限公司 Application freezing and unfreezing operation method and apparatus
CN106817281A (en) * 2017-02-04 2017-06-09 品骏控股有限公司 A kind of all-in-one flux monitoring method and device
CN107276853A (en) * 2017-07-25 2017-10-20 联想(北京)有限公司 Flow processing method and electronic equipment, computer system
CN107231651A (en) * 2017-07-28 2017-10-03 惠州Tcl移动通信有限公司 Traffic monitoring alarm method, storage device and the mobile terminal of a kind of mobile terminal
CN107708147A (en) * 2017-09-30 2018-02-16 广东欧珀移动通信有限公司 Information processing method, device, mobile terminal and computer-readable recording medium
CN107682910A (en) * 2017-09-30 2018-02-09 广东欧珀移动通信有限公司 Floating resources sharing method, device, mobile terminal and storage medium
CN107484201A (en) * 2017-09-30 2017-12-15 广东欧珀移动通信有限公司 Flow statistical method and device, terminal, computer-readable recording medium
CN107682833A (en) * 2017-09-30 2018-02-09 广东欧珀移动通信有限公司 Method, apparatus, mobile terminal and the storage medium that control flow uses
CN107948454A (en) * 2017-11-15 2018-04-20 维沃移动通信有限公司 Flow statistical method and device

Similar Documents

Publication Publication Date Title
EP2892251B1 (en) System and method for machine-to-machine communication
US9571526B2 (en) Methods and devices for analyzing user privacy based on a user&#39;s online presence
CN105659633B (en) Internet of things event management system and method
US9935847B2 (en) Dynamic grouping of managed devices
US10057152B2 (en) Providing an unseen message count across devices
JP4828105B2 (en) Method and system for managing configuration settings of mobile devices with OMA DM
TWI569213B (en) Flexible policy based network decisionmaking
US9842039B2 (en) Predictive load scaling for services
JP5749814B2 (en) Dynamic device configuration using predicates
JP2012155728A (en) Method of supplying content to device
US20160112240A1 (en) Flexible rules engine for managing connected consumer devices
US7472247B2 (en) Method and system for centralized memory management in wireless terminal devices
JP4317217B2 (en) Method by which a wireless information device can automatically change its own behavior
US8204870B2 (en) Unwired enterprise platform
US8565080B2 (en) Method and apparatus for managing communications in a wireless communication system
CN104253741B (en) A kind of method for sending information, relevant apparatus and system
US20120271472A1 (en) System and methods for sustainable energy management, monitoring, and control of electronic devices
KR101037233B1 (en) Method for Providing Sync Notification to Client Device
US20120065802A1 (en) System and methods for automatic power management of remote electronic devices using a mobile device
CN102136933B (en) Equipment management method, middleware and machine communication platform, equipment and system
KR20050025926A (en) System and method for automatic conversion from wap client provisioning xml represented objects to oma dm tree structure represented objects
US20120005578A1 (en) Method and device for editing workspace data objects
CN104484259A (en) Application program traffic monitoring method and device, and mobile terminal
CN106462389A (en) Context-aware dynamic policy selection for messaging behavior
CN101204039B (en) System and method of device-to-server registration

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140827

RJ01 Rejection of invention patent application after publication