CN104125596B - A kind of data flow statistic method and device - Google Patents
A kind of data flow statistic method and device Download PDFInfo
- Publication number
- CN104125596B CN104125596B CN201410320815.8A CN201410320815A CN104125596B CN 104125596 B CN104125596 B CN 104125596B CN 201410320815 A CN201410320815 A CN 201410320815A CN 104125596 B CN104125596 B CN 104125596B
- Authority
- CN
- China
- Prior art keywords
- data traffic
- application program
- mobile terminal
- network formats
- network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 68
- 238000012544 monitoring process Methods 0.000 claims abstract description 74
- 230000005540 biological transmission Effects 0.000 claims description 9
- 230000004907 flux Effects 0.000 claims description 9
- 238000004364 calculation method Methods 0.000 claims description 4
- 108010001267 Protein Subunits Proteins 0.000 claims description 3
- 239000002699 waste material Substances 0.000 abstract description 10
- 230000006870 function Effects 0.000 description 11
- 238000005516 engineering process Methods 0.000 description 10
- 230000006855 networking Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 230000008859 change Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- GOLXNESZZPUPJE-UHFFFAOYSA-N spiromesifen Chemical compound CC1=CC(C)=CC(C)=C1C(C(O1)=O)=C(OC(=O)CC(C)(C)C)C11CCCC1 GOLXNESZZPUPJE-UHFFFAOYSA-N 0.000 description 6
- 238000010295 mobile communication Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 230000003068 static effect Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000000605 extraction Methods 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000002265 prevention Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The invention discloses a kind of data flow statistic method and devices.The method includes:The network formats that monitoring mobile terminal is connected, and in the system log of mobile terminal, read the data traffic that application program consumes in total under different network formats;Corresponding network formats, the data traffic that statistics application program consumes respectively under various network formats when according to the data traffic and reading data flow amount repeatedly read;The data traffic consumed respectively under various network formats to the application program of statistics is shown.The present invention realizes the data traffic consumed to each application program and is monitored respectively, data traffic to save mobile terminal provides foundation, it is deducted fees by closing or flow escapes application program to avoid the waste of data traffic, have also obtained the data traffic that same application is consumed under networks with different systems simultaneously, on this basis, it can be deducted fees or flow application program of escaping wastes data traffic by preventing application program from connecting at least one network formats to control.
Description
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of data flow statistic method and a kind of data traffic
Statistic device.
Background technology
Nowadays most mobile terminal all has function of surfing the Net, especially with the universal of smart mobile phone, by people with
Enter cybertimes, and a large amount of application program that mobile terminal is generally fitted with, network is accessed by application program to obtain
It wins the confidence breath, while the data traffic of the mobile terminal can be consumed.
In practical practicality, the application journey for consumed flow that mobile terminal may deduct fees in the presence of some or flow is escaped
Sequence, even if the application program is not used in user, it is big which still in running background, can be such that the flow of mobile terminal consumes
It is big to increase, total data traffic that mobile terminal is consumed can only be monitored using general traffic monitoring software, it can not be to each
The flow of application program is counted respectively.
On the other hand, partial movement terminal can be compatible with different network formats, for example, WIFI (Wireless
Fidelity, Wireless Fidelity) wireless network, 2G (2rd-genneration, Generation Mobile Telecommunication System technology), 3G (3rd-
Genneration, 3rd generation mobile communication technology) etc., and can handover access different systems in use network, because
This, the flow consumed under networks with different systems to same application is distinguished and is necessary.
Invention content
In view of the above problems, it is proposed that the present invention overcoming the above problem in order to provide one kind or solves at least partly
State the data flow statistic method of problem and corresponding data flux statistics device.
One side according to the present invention provides a kind of data flow statistic method, including:
The network formats that monitoring mobile terminal is connected, and in the system log of the mobile terminal, read and apply journey
The data traffic that sequence consumes in total under different network formats;
Corresponding network formats when according to the data traffic that repeatedly reads and reading the data traffic are answered described in statistics
The data traffic consumed respectively under various network formats with program;
The data traffic consumed respectively under various network formats to the application program of statistics is shown.
Optionally, described in the system log of the mobile terminal, application program is read under different network formats
The data traffic consumed in total includes:
The unique identifier of the application program is obtained by call function;
Interface is obtained by the flow status of the mobile terminal, the application program for reading the unique identifier instruction exists
The data traffic consumed in total under different network formats.
Optionally, the network formats that are connected of monitoring mobile terminal include:The network connection for monitoring mobile terminal exists
Handover event between different network formats.
Optionally, handover event of the network connection for monitoring mobile terminal between different network formats includes:
It is sent to the broadcast registration interface of the mobile terminal and monitors asking for the handover event between different network formats
It asks;
The mobile terminal is received when network connection changes, the network connection of transmission switches the logical of event
Know.
Optionally, corresponding network formats when the basis is repeatedly read data traffic and reading are answered described in statistics
The data traffic consumed respectively under various network formats with program includes:
When the mobile terminal is switched to another network formats from a network formats, the data currently read are obtained
Flow, and, the preceding data traffic once read currently read;
The difference for calculating the data traffic and the preceding data traffic once read that currently read, obtains the application program and exists
The data traffic consumed under the network formats before switching.
Optionally, the data traffic and read corresponding network system when the data traffic that the basis is repeatedly read
Formula, counting the data traffic that the application program consumes respectively under various network formats includes:
To the data traffic read every time, the label of corresponding network formats when the data traffic is read in addition;
The data traffic of the label of every one kind network formats is extracted respectively, each network formats is obtained and corresponds to
Multiple data traffics;
It is switched to another net by the first data traffic read when being switched to the network formats and from the network formats
The second data traffic read when network standard makes the difference, and obtains the data that the application program consumes respectively under various network formats
Flow.
Optionally, while the network formats that the monitoring mobile terminal is connected, the method further includes:
If the network connection of the mobile terminal is switched to different network formats, in the first preset time period, prison
The network connection state of the mobile terminal is controlled, and determines that the network connection state is connection.
Optionally, described in the first preset time period, the network connection state of the mobile terminal is monitored, and determine institute
It is that connection includes to state network connection state:
In the first preset time period, judge that the network connection state of the mobile terminal is gone back for connection according to predeterminated frequency
It is not connected;
If the network connection state of the mobile terminal is connection, and in the second preset time period, the mobile terminal
Network connection state be connection, it is determined that the network connection state be connection.
Optionally, the method further includes:
The application program that user selects in mobile terminal is obtained, the application program of selection is prevented to connect at least one network system
Formula.
Optionally, the application program for obtaining user and being selected in mobile terminal, prevents the application program of selection from being connected to
A kind of network formats include less:
Obtain the application program that user selects in mobile terminal, the application program of turning-off mobile terminal selection;
Or, obtaining the application program that user selects in mobile terminal, judge the application program of selection in various network formats
Whether the lower data traffic consumed respectively meets preset range, and the application program of selection is prevented to connect the number for meeting preset range
According to the corresponding network formats of flow.
Optionally, whether the data traffic that the application program for judging selection consumes respectively under various network formats accords with
Preset range is closed, and the corresponding network formats of data traffic for preventing the application program connection of selection from meeting preset range include:
Judge whether the data traffic that the application program consumes under various network formats meets preset range respectively;
If meeting, using the corresponding network formats of the data traffic for meeting preset range as target network standard, pass through
Fire wall is set and changes the permission that the application program connects the target network standard, and/or, it is described mobile whole by closing
The port at end forbids sending the request that the application program connects the target network standard, to prevent the application program from connecting
Connect the target network standard.
Optionally, before the network formats that the monitoring mobile terminal is connected, the method further includes:Described in determination
The screen of mobile terminal is in screen lock state;
The data traffic that the application program counted at described Dui consumes respectively under various network formats is shown
Before, the method further includes:
Determine that the screen of the mobile terminal releases screen locking
Optionally, the data traffic that the application program of described pair of statistics consumes respectively under various network formats carries out
Displaying includes:
The data traffic that the application program of statistics is consumed respectively under various network formats according to numerical value from greatly to
It is small to be ranked up, and be shown on the interface of the mobile terminal according to sequence;
And/or the date selected in the mobile terminal is obtained, show each application program difference in the mobile terminal
In the data traffic that the date of selection consumes in total;
And/or the data traffic that all application programs consume in total daily is calculated, and drawn according to the date and indicate data flow
The curve graph of amount consumption tendency;
And/or the application program selected in the mobile terminal is obtained, and show that the application program of selection is default in third
The daily data traffic consumed respectively of period and the data traffic consumed in total.
Other side according to the present invention provides a kind of data flux statistics device, including:
Network formats monitoring module, the network formats connected for monitoring mobile terminal;
Flow read module, in the system log of the mobile terminal, reading application program in different networks
The data traffic consumed in total under standard;
Flow statistical module, corresponding net when for according to the data traffic and the reading data traffic repeatedly read
Network standard counts the data traffic that the application program consumes respectively under various network formats;
Display module, the data traffic consumed respectively under various network formats for the application program to statistics into
Row displaying.
Optionally, the flow read module includes:
Identifier acquisition submodule, the unique identifier for obtaining the application program by call function;
Interface reading submodule reads unique mark for obtaining interface by the flow status of the mobile terminal
Know the data traffic that the application program of symbol instruction consumes in total under different network formats.
Optionally, the network formats monitoring module is specifically used for monitoring the network connection of mobile terminal in heterogeneous networks
Handover event between standard.
Optionally, the network formats monitoring module includes:
Request-to-send submodule is monitored for being sent to the broadcast registration interface of the mobile terminal in different network formats
Between handover event request;
Notify receiving submodule, for receiving the mobile terminal when network connection changes, the network of transmission connects
The notice of handover event is given birth in sending and receiving.
Optionally, the flow statistical module includes:
Flow acquisition submodule is switched to another network formats for working as the mobile terminal from a network formats
When, the data traffic currently read is obtained, and, the preceding data traffic once read currently read;
Flow rate calculation submodule, the difference for calculating the data traffic currently read and the preceding data traffic once read
Value, obtains the data traffic consumed under the network formats of the application program before the handover.
Optionally, the flow statistical module includes:
Label adds submodule, and for the data traffic to reading every time, addition is read corresponding when the data traffic
The label of network formats;
Classification submodule is obtained for being extracted respectively to the data traffic of the label of every one kind network formats
The corresponding multiple data traffics of each network formats;
Submodule is made the difference, the first data traffic for being read when for the network formats will to be switched to and from the network system
Formula is switched to the second data traffic read when another network formats and makes the difference, and obtains the application program under various network formats
The data traffic consumed respectively.
Optionally, described device further includes:
Determining module is connected, the network formats for being connected in network formats monitoring module monitoring mobile terminal
Meanwhile if the network connection of the mobile terminal is switched to different network formats, in the first preset time period, institute is monitored
The network connection state of mobile terminal is stated, and determines that the network connection state is connection.
Optionally, the connection determining module includes:
First connection judgment submodule, in the first preset time period, judging according to predeterminated frequency described mobile whole
The network connection state at end is connection or is not connected with;
Second connection judgment submodule, if the network connection state for the mobile terminal is connection, and it is pre- second
If in the period, the network connection state of the mobile terminal is connection, it is determined that the network connection state is connection.
Optionally, described device further includes:
Connection prevents module, the application program selected in mobile terminal for obtaining user from preventing the application program of selection
At least one network formats of connection.
Optionally, the connection prevention module includes:
Closing application program submodule, the application program selected in mobile terminal for obtaining user, turning-off mobile terminal
The application program of selection;
Or, network formats connect submodule, the application program selected in mobile terminal for obtaining user judges selection
Whether the data traffic that application program consumes respectively under various network formats meets preset range, and prevents the application journey of selection
Sequence connects the corresponding network formats of data traffic for meeting preset range.
Optionally, the network formats connection submodule includes:Range judgment sub-unit, for judging the application respectively
Whether the data traffic that program consumes under various network formats meets preset range, if meeting, will meet preset range
The corresponding network formats of data traffic execute fire wall setting submodule and/or port shutdown as target network standard
Module;
Subelement is arranged in fire wall, and changing the application program for fire wall to be arranged connects the target network standard
Permission, to prevent the application program from connecting the target network standard;
Port shutdown subelement is forbidden sending the application program company for the port by closing the mobile terminal
The request for connecing the target network standard, to prevent the application program from connecting the target network standard.
Optionally, described device further includes:
Screen locking determining module, for the network formats that are connected of network formats monitoring module monitoring mobile terminal it
Before, determine that the screen of the mobile terminal is in screen lock state;
Screen locking determining module is released, for counting the application program in various network formats in the flow statistical module
After the lower data traffic consumed respectively, determine that the screen of the mobile terminal releases screen locking.
Optionally, the display module includes:
First displaying submodule, the data consumed respectively under various network formats for the application program to statistics
Flow is ranked up from big to small according to numerical value, and is shown on the interface of the mobile terminal according to sequence;
And/or the second displaying submodule, for obtaining date select in the mobile terminal, the displaying movement is whole
The data traffic that each application program consumes on the date of selection in total respectively in end;
And/or third shows submodule, the data traffic consumed in total daily for calculating all application programs, and press
The curve graph for indicating that data traffic consumes tendency is drawn according to the date;
And/or the 4th displaying submodule, for obtaining the application program selected in the mobile terminal, and show selection
Application program in the daily data traffic consumed respectively of third preset time period and the data traffic consumed in total.
Embodiment according to the present invention, the network formats connected by monitoring mobile terminal, while reading application program and existing
The data traffic consumed in total under different network formats, and then according to each reading data flow amount when corresponding network formats, can
To count the data traffic consumed respectively under various network formats, the data traffic point consumed to each application program is realized
It is not monitored, the data traffic to save mobile terminal provides foundation, is deducted fees by closing or flow is escaped using journey
Sequence avoids the waste of data traffic, while having also obtained the data flow that same application is consumed under networks with different systems
Amount can be deducted fees or flow is escaped by preventing application program from connecting at least one network formats to control on this basis
Application program wastes data traffic.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technical means of the present invention,
And can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, below the special specific implementation mode for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field
Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow chart of data flow statistic method according to an embodiment of the invention;
Fig. 2 a-2b show the signal that the data traffic that the embodiment of the present invention 1 consumes each application program is shown
Figure;
Fig. 3 shows the flow chart of data flow statistic method in accordance with another embodiment of the present invention;
Fig. 4 a-4c show the signal that the data traffic that the embodiment of the present invention 2 consumes each application program is shown
Figure;
Fig. 5 shows the structure diagram of data flux statistics device according to an embodiment of the invention;
Fig. 6 shows the structure diagram of data flux statistics device in accordance with another embodiment of the present invention.
Specific implementation mode
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Completely it is communicated to those skilled in the art.
Embodiment 1
With reference to figure 1, the flow chart of data flow statistic method according to an embodiment of the invention, this method tool are shown
Body may comprise steps of:
The network formats that step 101, monitoring mobile terminal are connected, and in the system log of the mobile terminal, read
The data traffic for taking application program to be consumed in total under different network formats.
Mobile terminal (mobile phone, PAD etc.) can be compatible with multiple network standard, and network formats described herein are divided into mobile logical
Communication network and wireless network.
Mobile communications network develops to 4G networks from common 2G, 3G network.2G (2rd-generation), i.e., second
Third-generation mobile communication technology includes several standards such as GSM, CDMA;3G (4rd-generation), i.e. 3rd generation mobile communication technology
Several standards such as including CDMA2000, WCDMA, TD-SCDMA, WiMAX;LTE is exactly 4G (4rd-generation), i.e., and the 4th
Third-generation mobile communication technology can unite according to standard and be divided into two kinds of TDD and FDD, may further be divided into the evolution of certain standard of 3G,
Such as the evolution LTE technologies TD-LTE of TD-SCDMA.Wireless network WIFI is that one kind can be wirelessly mutual by mobile terminal
The technology being connected, it is therefore an objective to improve the intercommunity between the Wi-Fi product based on IEEE802.11 standards.
User can any switching laws between multiple network standard according to actual needs, for example, being switched to from WIFI network
3G network is switched to 2G networks from 3G network.Reading data flow amount while network formats by monitoring mobile terminal, can be with
Know that the increase with data traffic, the situation of change for the network formats that mobile terminal is connected are further used for calculating various
Data traffic under network formats.
Specifically, the network of mobile terminal can be obtained by monitoring the handover event of the network formats of mobile terminal connection
Standard, can also be by reading the attribute of network connection in systems, or reads the network state of Application Monitoring and obtain
The network formats of mobile terminal, or any other achievable scheme appropriate, the present invention is used not to be limited this.
The data traffic and read corresponding network formats when the data traffic, system that step 102, basis are repeatedly read
Count the data traffic that the application program consumes respectively under various network formats.
By the current corresponding network formats of the data traffic and reading that repeatedly read, application program can be distinguished and existed
Corresponding data traffic under different network formats.For a kind of network formats, remember according in the stage for using the network formats
Each data traffic of record, the data traffic that can be used under the network formats with statistics application program.
Step 103, the data traffic consumed respectively under various network formats to the application program of statistics are opened up
Show.
It, can after obtaining the data traffic that application program consumes under various network formats by the method for above-described embodiment
Further to be shown to data traffic, so that mobile terminal user is can see application program and used under various network formats
The concrete condition of data traffic.
On the one hand embodiment according to the present invention realizes the data traffic consumed to each application program and supervises respectively
Control, the data traffic to save mobile terminal provide foundation, so by close deduct fees or flow escape application program come
Avoid the waste of data traffic.On the other hand, the data flow that same application is consumed under networks with different systems is obtained
Amount.
Specifically, the current network formats of the mobile terminal of system record can be read, or by monitoring network connection
Handover event determine the network formats of mobile terminal, the current of the mobile terminal recorded by third party software can also be read
Network formats, any other achievable scheme appropriate can also be used, the present invention not be limited this.
In the embodiment of the present invention, it is preferred that the network formats that are connected of monitoring mobile terminal may include:It monitors and moves
Handover event of the network connection of dynamic terminal between different network formats.
The network formats that current network is connected can be determined by the handover event, for example, mobile terminal has connected
3G network, when listening to the handover event for being switched to WIFI from 3G, it may be determined that mobile terminal currently connects WIFI network.
Can be by registration mobile terminal broadcast registration interface intercepting switch events, or global static variable is set,
Accordingly change the static variable when the network formats of connection change, can be obtained current net by reading static variable
Network standard can also use any other achievable scheme appropriate, the present invention not to be limited this.
In the embodiment of the present invention, it is preferable that the network connection for monitoring mobile terminal is between different network formats
Handover event includes:
Sub-step S11, it is sent to the broadcast registration interface of the mobile terminal and monitors cutting between different network formats
Change the request of event.
Sub-step S12, the mobile terminal is received when network connection changes, the network connection of transmission switches
The notice of event.
The function that mobile terminal itself has monitoring network change can be wide to operating system by taking Andriod systems as an example
It broadcasts registration interface (RegisterReceiver) and sends request, it is desirable that send and cut when the handover event of network connection occurs
The notice of event is changed, Andriod systems are monitored network state by ConnectivityManager interfaces and changed, connect for the first time
It will receive a Broadcast broadcast notice when connecing network, it is follow-up to carry out also receiving corresponding notice, example when network switching
Such as, from GPRS to WIFI, program at least will receive 3 Broadcast, and first Broadcast is attached to WIFI, second
Broadcast is to disconnect GPRS, and third Broadcast is attached to WIFI, it can thus be appreciated that mobile terminal currently connects WIFI
Network.
It, can be described mobile whole while monitoring the network formats that mobile terminal is connected in the embodiment of the present invention
In the system log at end, the data traffic that application program consumes in total under different network formats is read, realization is answered each
The data traffic consumed with program is monitored respectively.The data traffic for obtaining application program can be to save mobile terminal
Data traffic provides foundation, if finding, some application program is deducted fees or flow is escaped consumed flow, can be deducted fees by closing
Or flow escapes application program to avoid the waste of data traffic, can be also used for further according to the flow that repeatedly obtains and
Corresponding network formats analyze the data traffic under various network formats.
Specifically, data traffic can be obtained by the application program for traffic monitoring, system record can also be read
Data traffic, any other achievable scheme appropriate can also be used, the present invention not be limited this.
In the embodiment of the present invention, it is preferable that it is described in the system log of the mobile terminal, application program is read not
With network formats under the data traffic that consumes in total may include:
Sub-step S21, the unique identifier that the application program is obtained by call function.
Sub-step S22, interface is obtained by the flow status of the mobile terminal, reads the unique identifier instruction
The data traffic that application program consumes in total under different network formats.
In the embodiment of the present invention, the data traffic of each application program consumption of mobile terminal records, for a certain application
Program, the data traffic recorded herein are the data traffic that the application program consumes in total under various network formats.
Each application sequence has corresponding unique identifier, the corresponding application program of unique mark is used for, by unique
Identifier can distinguish an application program and other application programs.By taking android system as an example, due to
Android is single user system, multi-user need not be supported to log in, thus traditional terminal iidentification system just lose it is original
The developer of meaning, Android has modified the meaning of terminal iidentification, uses it for the mark of application program, using UID to application
Program is managed, and each application program corresponds to a UID as unique identifier.
The data traffic of application program is marked with the unique identifier of the application program, according to unique identifier, is passed through
The flow status of the mobile terminal obtains interface (android.net.TrafficStats), which provides a variety of static state
Method can directly invoke and obtain the corresponding data traffic of the application program.
Before extracting data traffic, the unique identifier of application program is obtained first, and unique identifier is stored in movement
Terminal can be obtained by pre-set call function, by taking Andriod systems as an example, by ActivityManager we
Activities, including process (Process) that can be currently running in acquisition system etc., application program/packet, service
(Service), task (Task) information (is obtained and is being transported using the getRunningAppProces of ActivityManager
Capable progress information) method acquisition RunningAppProcessInfo (progress information being currently running),
Unique identifier UID is had inside RunningAppProcessInfo.
Specifically, the mode of data flow quantity statistical can there are many, in a kind of preferable example of the embodiment of the present invention, institute
Stating step 102 may include:
Sub-step S31, when the mobile terminal is switched to another network formats from a network formats, obtain current
The data traffic of reading, and, the preceding data traffic once read currently read.
The difference for the data traffic and the preceding data traffic once read that sub-step S32, calculating are currently read obtains described
The data traffic consumed under the network formats of application program before the handover.
When mobile terminal is switched to another network formats B from a network formats A, the data traffic a currently read is
Under the all-network standard connected before network formats A and network formats A, all data traffics spent by mobile terminal, if
The data traffic c consumed under network formats A is obtained, can extract what the when of being switched to network formats B from network formats A obtained
Data traffic a, with the data traffic b obtained when rigid access network formats A, i.e., the preceding data flow once read currently read
It measures, the difference that data traffic a and data traffic b subtracts each other, the data traffic c consumed under as network formats A.
For example, when mobile terminal is from 2G network switchings to 3G network, the data traffic of record is 15G, then is cut from 3G network
WIFI network is changed to, the data traffic of record, which is 20G, can be 20G and 15G in the data traffic under calculating 3G network
Difference, it is 5G to obtain the data traffic under 3G network.
In another preferable example of the embodiment of the present invention, the step 102 may include:
Corresponding network formats when the data traffic are read in sub-step S41, the data traffic to reading every time, addition
Label.
Sub-step S42, the data traffic of the label of every one kind network formats is extracted respectively, obtains each net
The corresponding multiple data traffics of network standard.
Sub-step S43, it is cut by the first data traffic read when being switched to the network formats and from the network formats
It changes to the second data traffic read when another network formats to make the difference, obtains the application program and distinguish under various network formats
The data traffic of consumption.
In this example, corresponding label is set for various network formats, multiple repairing weld can be carried out to data traffic, and
Current connected network formats are determined simultaneously, by the label of the upper corresponding network formats of each data traffic addition of acquisition.
Then classify to multiple data traffics according to label, i.e., the data traffic of the non-other network formats label to every one kind carries out
Extraction, one kind is classified as by the data traffic for the label for carrying same network formats.
All data traffics before having accumulated current time due to the data traffic of reading, data traffic it is big
Small related with the time of data traffic is obtained, and closer to current time, data traffic is bigger.For each network formats,
Extraction is switched to the first data traffic read when the network formats, and, extraction is switched to another from the network formats
The second data traffic read when network formats, the two make the difference and can obtain the application program and disappear respectively under the network formats
The data traffic of consumption.
The first data traffic read when it is understood that being switched to the network formats is in the network formats
Minimum data traffic in corresponding all data traffics, read when being switched to another network formats from the network formats
Two data traffics are that maximum data traffic therefore can be by such in the corresponding all data traffics of the network formats
In all data traffics be compared, extract maximum data traffic and minimum data traffic, by maximum data traffic with
Minimum data traffic makes the difference, and what is obtained is the data traffic that application program consumes under such network formats.
For example, 100 data traffics of acquisition, the network formats that connection is monitored when acquiring preceding 20 data traffics are 2G,
When acquiring the 21st data traffic, network connection has been switched to 3G, and from the corresponding network of the 21-100 data traffic
Standard is 3G.It is the 1st data traffic to be switched to the first data traffic read when 2G, that is to say number minimum under 2G standards
According to flow, the second data traffic read when being switched to 3G from 2G is the 20th data traffic, be that is to say maximum under 2G standards
Data traffic, therefore, it is that the 20th data traffic subtracts the 1st data traffic to count the data traffic under 2G network formats.It cuts
It is the 21st data traffic to change to the first data traffic read when 3G, data traffic minimum under 3G standards is that is to say, from 3G
It is the 100th data traffic to be switched to the second data traffic read when 2G, that is to say maximum data traffic under 3G standards, because
This, it is that the 100th data traffic subtracts the 21st data traffic to count the data traffic under 3G network standard.
In concrete implementation, other achievable modes can also be taken to count the application program in various network systems
The data traffic consumed respectively under formula, the present invention are not limited this.
In practical applications, may there is a situation where that of short duration network is not connected during network switching, at this time without
Reading data flow amount is needed, therefore, while the network formats that the monitoring mobile terminal is connected, the method can also wrap
It includes:
If the network connection of the mobile terminal is switched to different network formats, in the first preset time period, prison
The network connection state of the mobile terminal is controlled, and determines that the network connection state is connection.
It can pre-set according to the experience of practical application and be used as window phase for a period of time, i.e. the first preset time period,
Mobile terminal is being attempted to connect new network and in not connected state, can only monitor network in first preset time period
Connection status does not execute the operation for obtaining data traffic, when it is connection to determine network connection state, executes and obtains data flow
The operation of amount.
Specifically, whether mobile terminal can be arranged in network connection state according to actual demand, for example, can supervise
When controlling mobile terminal and being connect with some network formats, that is, determine that mobile terminal is in network connection state, can also monitor
When being connect to mobile terminal with some network formats and being in stable connection whithin a period of time, determine that mobile terminal is in
Network connection state.
In the embodiment of the present invention, it is preferable that described in the first preset time period, the network for monitoring the mobile terminal connects
State is connect, and determines that the network connection state is that connection may include:
Sub-step S51, in the first preset time period, the network connection shape of the mobile terminal is judged according to predeterminated frequency
State is connection or is not connected with;
If the network connection state of sub-step S52, the mobile terminal is connection, and in the second preset time period, institute
The network connection state for stating mobile terminal is connection, it is determined that the network connection state is connection.
The network connection state that mobile terminal is repeatedly judged in the first preset time period, if connection, this connection can
It can be only of short duration connection, will soon disconnect, be not necessarily to obtain data traffic in this case, therefore, can further sentence
Break and whether is said in connection status if being still within network connection state whithin a period of time in the second preset time period
Bright network connection is more stable, can execute the operation for obtaining data traffic.
The mode that the data traffic of acquisition is shown can there are many, for example, show afterwards in magnitude order, or
It shows that the flow within a period of time consumes trend, or calculates the data traffic of each application program consumption and progress in the odd-numbered day
Displaying etc., the present invention is not limited this.
In the embodiment of the present invention, it is preferred that the application program of described pair of statistics disappears respectively under various network formats
The data traffic of consumption be shown including:
Sub-step S61, the data traffic that the application program of statistics is consumed respectively under various network formats according to
Numerical value is ranked up from big to small, and is shown on the interface of the mobile terminal according to sequence.
And/or the date that sub-step S62, acquisition are selected in the mobile terminal, show each in the mobile terminal answer
The data traffic consumed in total on the date of selection respectively with program.
And/or the data traffic that sub-step S63, all application programs of calculating consume in total daily, and drawn according to the date
Indicate the curve graph of data traffic consumption tendency.
And/or the application program that sub-step S64, acquisition are selected in the mobile terminal, and show the application program of selection
In the daily data traffic consumed respectively of third preset time period and the data traffic consumed in total.
It, can be into being about to various network systems after the data traffic that statistics application program consumes respectively under various network formats
Data traffic under formula is ranked up according to the priority of numerical value from big to small, can be shown according to sequence, so as to clear
The comparison result of the data traffic consumed look under each standard;The date that can also be selected according to user, statistics application program exist
The data traffic of odd-numbered day consumption, and the data traffic of the odd-numbered day wastage in bulk or weight of multiple application programs is shown, to relatively more each
The data traffic of a application program consumption;The data traffic of all application program consumption under multiple odd-numbered days can also be calculated separately
Summation, using the date in odd-numbered day and odd-numbered day corresponding data traffic as transverse and longitudinal coordinate, the tendency curves of drawing data flow;May be used also
To show data traffic and multiple total data flows that some application program consumes respectively in multiple odd-numbered days, to observe in multiple lists
The comparison of the data traffic of daily consumption.
The data traffic of statistics is shown, any one or more side in the above sub-step S61-S64 may be used
Formula.
With reference to figure 2a-2b, show that data traffic that the embodiment of the present invention 1 consumes each application program is shown
Schematic diagram.Wherein, Fig. 2 a illustrate the data traffic of each software consumption for allowing networking, for example, QQ consumes 1.87M, wechat
Consume 466.1K.Progress bar ratio shows the ratio of the data traffic and consumable data traffic that currently consume, consumption stream
It is 100% to measure maximum ratio.To forbid button on the right side of the data traffic of each software, click on can forbid it is corresponding soft
The operation of part.
It is the tendency chart of the data traffic of wastage in bulk or weight at the top of the interface, traffic trends figure acquiescence shows 5 days data traffics,
The data traffic of same day consumption is shown in the interface rightmost side, and the data traffic of the wastage in bulk or weight on the same day is corresponded at the top of daily trend,
Tendency toward sliding figure slidably checks the data traffic of this month on other dates consumption.
After being switched to today, tendency chart is the consumption trend of on 24 hours another day each hour, and the click odd-numbered day enters corresponding stream
Amount consumption details odd-numbered day page, clicks this month, is switched to flow consumption details this month page, clicks that enter this after a certain software icon soft
Corresponding " the software consumption details " interface of part.
It is as shown in Figure 2 b the displaying interface of the data traffic of 1 odd-numbered day of embodiment of the present invention statistics, gives May 15 altogether
The flow 20M of consumption also lists each software respectively in the data traffic of 15 daily consumption in May.
It should be noted that Fig. 2 a-2b be only state interface of mobile terminal displaying schematic diagram can in concrete implementation
By according to actual demand to displaying in a manner of be adjusted, the present invention is not limited this.
Embodiment 2
With reference to figure 3, the flow chart of data flow statistic method in accordance with another embodiment of the present invention, this method are shown
It can specifically include following steps:
Step 201 determines that the screen of mobile terminal is in screen lock state.
In specific application, mobile terminal may be in screen lock state, and user, which is not carried out, under screen lock state appoints
What is operated, and should not generate any data traffic, and is deducted fees or flow application program of escaping will continue to run during screen locking, because
This, data flow statistic method of the invention can be used for monitoring under mobile terminal screen locking state, the data of each application program
Flow.Therefore, under this application scenarios, the method for the embodiment of the present invention can be in screen lock state in the screen of mobile terminal
Shi Zhihang.
The network formats that step 202, the monitoring mobile terminal are connected, and in the system log of the mobile terminal
In, read the data traffic that application program consumes in total under different network formats.
The data traffic and read corresponding network formats when the data traffic, system that step 203, basis are repeatedly read
Count the data traffic that the application program consumes respectively under various network formats.
Step 204, after the screen of the mobile terminal releases screen locking, to the application program of statistics in various networks
The data traffic consumed respectively under standard is shown.
The flow of each application program consumption and each application program are under different network formats under statistics screen lock state
After the flow of consumption, the case where screen locking shows user, abnormal consumption flow is checked whether so as to user can be released in screen.
In the case where having counted screen lock state after the data traffic of each application program consumption, it can further be shown, join
Fig. 4 a-4c are examined, show the schematic diagram that the data traffic that the embodiment of the present invention 2 consumes each application program is shown.
Fig. 4 a illustrate the data traffic of each software backstage consumption, that is to say and are consumed under mobile terminal screen locking state
Data traffic, the tendency chart of the data traffic comprising backstage wastage in bulk or weight in interface, after being switched to today, tendency chart is that another day 24 is small
When each hour consumption trend, clicking the odd-numbered day enters corresponding flow consumption details odd-numbered day page, clicks this month, is switched to flow and disappears
Details this month page is consumed, enters corresponding " the software consumption details " interface of the software after clicking a certain software icon.
Wherein it is possible to prevent all application programs from connecting network by " all forbidding " button.
The data traffic of application program consumption can be checked by further clicking on the icon of some application program in Fig. 4 a
Details shows that application program corresponds to " software consumption details " interface, gives the data flow of backstage consumption with reference to figure 4b
Amount, application program " Baidu mobile phone bodyguard " are 3.4M in the data traffic of backstage consumption, account for and have used the 25% of flow, and provide
In May 13 and May 14 two days respectively in the data traffic on foreground and backstage consumption, it should be noted that herein, foreground and after
The data traffic that the sum of data traffic of platform consumption consumes in total for the application program, can by the method statistic of embodiment 1,
The data traffic of backstage consumption is the data traffic consumed under screen lock state, can pass through the method statistic of embodiment 2.
In Fig. 4 b further include networking master switch button and the button that networks from the background, networking master switch button can be controlled
Software connection is a kind of or all-network standard, backstage networking button can control the software and not transported on backstage during screen locking
Row is not connected to a kind of or all-network standard during screen locking.Backstage networking switch is automatically closed in networking master switch when closing,
Networking switch in backstage is automatically opened when opening again, backstage networking switch does not influence master switch of networking.
The click odd-numbered day enters corresponding flow consumption details odd-numbered day page, and displaying circle of odd-numbered day background traffic is shown with reference to figure 4c
Face can pass through " all forbidding " May 15 there is shown all softwares in the data traffic consumed in total from the background
Button forbids all software connections a kind of or all-network standard.
It should be noted that Fig. 4 a-4c be only state interface of mobile terminal displaying schematic diagram can in concrete implementation
By according to actual demand to displaying in a manner of be adjusted, the present invention is not limited this.
Step 205 obtains the application program that user selects in mobile terminal, and the application program of selection is prevented to connect at least one
Kind network formats.
Obtain data traffic of the mobile terminal under various network formats and after mobile terminal display data flow, user
The case where being consumed according to data traffic can select some application program, further by preventing application program from connecting network system
Formula is deducted fees or flow application program of escaping wastes data traffic to control, to save a large amount of data traffic for user.
In concrete implementation, the application program can be closed, or by setting network firewall, or pass through closing
The port of mobile terminal can also use any other achievable side appropriate to prevent some network formats of application program
Case, the present invention are not limited this.
In the embodiment of the present invention, it is preferable that the step 205 may include:
Sub-step S71, the application program that user selects in mobile terminal, the application journey of turning-off mobile terminal selection are obtained
Sequence;
Or, the application program that sub-step S72, acquisition user are selected in mobile terminal, judges the application program of selection each
Whether the data traffic consumed respectively under kind network formats meets preset range, and it is pre- to prevent the application program connection of selection from meeting
If the corresponding network formats of the data traffic of range.
Application program consumption data flow under all-network standard can be prevented by closing application program.Due to statistics
Data traffic is the data traffic consumed respectively under multiple network standard, accordingly, it is possible to which there are consume number under certain network formats
Less according to flow, more situation under certain network formats can only prevent application program connection from consuming more network formats.
For deduct fees or flow escape waste data traffic application program can be arranged preset range be more than some
Pre-set threshold value or meet some numerical intervals, for example, setting preset range be more than 10M or belong to 10M~1G range it
Between, by data flow quantity statistical, the data traffic that the program that is applied consumes under 3G network is more than 10M or belongs to 10M~1G
Range, it is determined that the application program be deduct fees either flow escape consumption data flow deduct fees or flow is escaped program,
Can prevent the application program connect 3G network, so as to control deduct fees or flow escape application program waste data flow
Amount can be that user saves a large amount of data traffic.
Preferably, whether the data traffic that the application program for judging selection consumes respectively under various network formats accords with
Preset range is closed, and the corresponding network formats of data traffic for preventing the application program connection of selection from meeting preset range can wrap
It includes:
Sub-step S71, judge whether the data traffic that the application program consumes under various network formats meets respectively
Preset range, if meeting, using the corresponding network formats of the data traffic for meeting preset range as target network standard.
Sub-step S72, the permission that the application program connects the target network standard is changed by the way that fire wall is arranged,
And/or the port by closing the mobile terminal, forbid sending the application program connecting asking for the target network standard
It asks, to prevent the application program from connecting the target network standard.
User determines that the flow that some application program consumes under some network formats is deposited when abnormal, can further prohibit
It includes a variety of that only the application program, which uses the network, the method forbidden, can be arranged according to actual application environment and demand, this hair
In bright embodiment, the application program can be changed by setting fire wall and connect the permission of the network formats, and/or passed through
The port of turning-off mobile terminal forbids sending request of the application program connection using standard, described using journey to forbid
Sequence connects the network formats.
Specifically, network firewall is the software being located between computer and network that it is connected, the calculating
The all-network communication of machine inflow and outflow is intended to by this fire wall.Network firewall can close the port not used, moreover it is possible to
The outgoing communication for forbidding particular port prevents the institute from unknown invader so as to forbid the access from special website
There is communication.In the embodiment of the present invention, when application program connects network, from some port, transmission connects some network formats and asks
It asks, forbids the outgoing communication of particular port by network firewall, do not send the connection request of network formats, to forbid applying
Program connects the network formats.
The connection that application program uses network formats is closed by the way that fire wall is arranged, fire wall icon can be clicked, selected
" system setting " is further arranged the access rule of each application program, or opens and carry fire wall, each program first
System can all pop up the prompting frame how inquiry is handled when secondary access network, may further select to prevent to connect.May be used also
Fire wall is configured with the application program installed by mobile terminal, for example, having application program has networking fire wall
Function, be freely arranged in client end interface and whether network to other each application programs.In practical applications, it can select to set
Fire wall and any one of the port two ways by turning-off mobile terminal, or selection two ways are set, to prevent to answer
With program linking objective network formats.
Embodiment according to the present invention, the network formats connected by monitoring mobile terminal, while reading application program and existing
The data traffic consumed in total under different network formats, and then according to each reading data flow amount when corresponding network formats, can
To count the data traffic consumed respectively under various network formats, the data traffic point consumed to each application program is realized
It is not monitored, the data traffic to save mobile terminal provides foundation, is deducted fees by closing or flow is escaped using journey
Sequence avoids the waste of data traffic, while having also obtained the data flow that same application is consumed under networks with different systems
Amount can be deducted fees or flow application program of escaping connects corresponding network on this basis by closing, deduct fees controlling or
Person's flow escape application program waste data traffic.
With reference to figure 5, it illustrates the structure diagrams of data flux statistics device according to an embodiment of the invention, specifically
May include with lower module:
Network formats monitoring module 301, the network formats connected for monitoring mobile terminal.
Flow read module 302, in the system log of the mobile terminal, reading application program in different nets
The data traffic consumed in total under network standard.
Flow statistical module 303 corresponds to when for according to the data traffic and the reading data traffic repeatedly read
Network formats, count the data traffic that the application program consumes respectively under various network formats.
Display module 304, the data flow consumed respectively under various network formats for the application program to statistics
Amount is shown.
In the embodiment of the present invention, it is preferable that the flow read module includes:
Identifier acquisition submodule, the unique identifier for obtaining the application program by call function;
Interface reading submodule reads unique mark for obtaining interface by the flow status of the mobile terminal
Know the data traffic that the application program of symbol instruction consumes in total under different network formats.
In the embodiment of the present invention, it is preferable that the network formats monitoring module is specifically used for monitoring the network of mobile terminal
The handover event being connected between different network formats.
In the embodiment of the present invention, it is preferable that the network formats monitoring module includes:
Request-to-send submodule is monitored for being sent to the broadcast registration interface of the mobile terminal in different network formats
Between handover event request;
Notify receiving submodule, for receiving the mobile terminal when network connection changes, the network of transmission connects
The notice of handover event is given birth in sending and receiving.
In a kind of preferable example of the embodiment of the present invention, the flow statistical module includes:
Flow acquisition submodule is switched to another network formats for working as the mobile terminal from a network formats
When, the data traffic currently read is obtained, and, the preceding data traffic once read currently read;
Flow rate calculation submodule, the difference for calculating the data traffic currently read and the preceding data traffic once read
Value, obtains the data traffic consumed under the network formats of the application program before the handover.
In another preferable example of the embodiment of the present invention, the flow statistical module includes:
Label adds submodule, and for the data traffic to reading every time, addition is read corresponding when the data traffic
The label of network formats;
Classification submodule is obtained for being extracted respectively to the data traffic of the label of every one kind network formats
The corresponding multiple data traffics of each network formats;
Submodule is made the difference, the first data traffic for being read when for the network formats will to be switched to and from the network system
Formula is switched to the second data traffic read when another network formats and makes the difference, and obtains the application program under various network formats
The data traffic consumed respectively.
In the embodiment of the present invention, it is preferable that described device further includes:
Determining module is connected, the network formats for being connected in network formats monitoring module monitoring mobile terminal
Meanwhile if the network connection of the mobile terminal is switched to different network formats, in the first preset time period, institute is monitored
The network connection state of mobile terminal is stated, and determines that the network connection state is connection.
In the embodiment of the present invention, it is preferable that the connection determining module includes:
First connection judgment submodule, in the first preset time period, judging according to predeterminated frequency described mobile whole
The network connection state at end is connection or is not connected with;
Second connection judgment submodule, if the network connection state for the mobile terminal is connection, and it is pre- second
If in the period, the network connection state of the mobile terminal is connection, it is determined that the network connection state is connection.
In the embodiment of the present invention, it is preferable that the display module includes:
First displaying submodule, the data consumed respectively under various network formats for the application program to statistics
Flow is ranked up from big to small according to numerical value, and is shown on the interface of the mobile terminal according to sequence;
And/or the second displaying submodule, for obtaining date select in the mobile terminal, the displaying movement is whole
The data traffic that each application program consumes on the date of selection in total respectively in end;
And/or third shows submodule, the data traffic consumed in total daily for calculating all application programs, and press
The curve graph for indicating that data traffic consumes tendency is drawn according to the date;
And/or the 4th displaying submodule, for obtaining the application program selected in the mobile terminal, and show selection
Application program in the daily data traffic consumed respectively of third preset time period and the data traffic consumed in total.
Embodiment according to the present invention, the network formats connected by monitoring mobile terminal, while reading application program and existing
The data traffic consumed in total under different network formats, and then according to each reading data flow amount when corresponding network formats, can
To count the data traffic consumed respectively under various network formats, the data traffic point consumed to each application program is realized
It is not monitored, the data traffic to save mobile terminal provides foundation, is deducted fees by closing or flow is escaped using journey
Sequence avoids the waste of data traffic, while having also obtained the data flow that same application is consumed under networks with different systems
Amount.
With reference to figure 6, it illustrates the structure diagram of data flux statistics device in accordance with another embodiment of the present invention, tools
Body may include with lower module:
Screen locking determining module 401, for the network formats that are connected of network formats monitoring module monitoring mobile terminal it
Before, determine that the screen of the mobile terminal is in screen lock state.
Network formats monitoring module 402, the network formats connected for monitoring mobile terminal.
Flow read module 403, in the system log of the mobile terminal, reading application program in different nets
The data traffic consumed in total under network standard.
Flow statistical module 404 corresponds to when for according to the data traffic and the reading data traffic repeatedly read
Network formats, count the data traffic that the application program consumes respectively under various network formats.
Screen locking determining module 405 is released, for counting the application program in various networks in the flow statistical module
After the data traffic consumed respectively under standard, determine that the screen of the mobile terminal releases screen locking
Display module 406, the data flow consumed respectively under various network formats for the application program to statistics
Amount is shown.
Connection prevents module 407, the application program selected in mobile terminal for obtaining user from preventing the application journey of selection
At least one network formats of sequence connection.It is further preferred that the connection prevention module 406 includes:
Closing application program submodule, the application program selected in mobile terminal for obtaining user, turning-off mobile terminal
The application program of selection;
Or, network formats connect submodule, the application program selected in mobile terminal for obtaining user judges selection
Whether the data traffic that application program consumes respectively under various network formats meets preset range, and prevents the application journey of selection
Sequence connects the corresponding network formats of data traffic for meeting preset range.
It is further preferred that the network formats connection submodule includes:
Range judgment sub-unit, the data traffic consumed under various network formats for judging the application program respectively
Whether preset range is met, if meeting, using the corresponding network formats of the data traffic for meeting preset range as target network
Standard, and execute fire wall setting submodule and/or port shutdown submodule;
Subelement is arranged in fire wall, and changing the application program for fire wall to be arranged connects the target network standard
Permission, to prevent the application program from connecting the target network standard;
Port shutdown subelement is forbidden sending the application program company for the port by closing the mobile terminal
The request for connecing the target network standard, to prevent the application program from connecting the target network standard.
Embodiment according to the present invention, the network formats connected by monitoring mobile terminal, while reading application program and existing
The data traffic consumed in total under different network formats, and then according to each reading data flow amount when corresponding network formats, can
To count the data traffic consumed respectively under various network formats, the data traffic point consumed to each application program is realized
It is not monitored, the data traffic to save mobile terminal provides foundation, is deducted fees by closing or flow is escaped using journey
Sequence avoids the waste of data traffic, while having also obtained the data flow that same application is consumed under networks with different systems
Amount can be deducted fees or flow is escaped by preventing application program from connecting at least one network formats to control on this basis
Application program wastes data traffic.
Since described device embodiment essentially corresponds to earlier figures 1 and embodiment of the method shown in Fig. 2, therefore the present embodiment
Not detailed place, may refer to the related description in previous embodiment, does not just repeat herein in description.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with teaching based on this.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that can utilize various
Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect
Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific implementation mode are expressly incorporated in the specific implementation mode, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment
Change and they are arranged in the one or more equipment different from the embodiment.It can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any
Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit requires, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization, or to run on one or more processors
Software module realize, or realized with combination thereof.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor (DSP) realize one in data flux statistics equipment according to the ... of the embodiment of the present invention
The some or all functions of a little or whole components.The present invention is also implemented as executing method as described herein
Some or all equipment or program of device (for example, computer program and computer program product).Such realization
The program of the present invention can may be stored on the computer-readable medium, or can be with the form of one or more signal.This
The signal of sample can be downloaded from internet website and be obtained, and either provided on carrier signal or carried in any other forms
For.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be by the same hardware branch
To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and be run after fame
Claim.
The invention discloses A1, a kind of data flow statistic methods, including:
The network formats that monitoring mobile terminal is connected, and in the system log of the mobile terminal, read and apply journey
The data traffic that sequence consumes in total under different network formats;
Corresponding network formats when according to the data traffic that repeatedly reads and reading the data traffic are answered described in statistics
The data traffic consumed respectively under various network formats with program;
The data traffic consumed respectively under various network formats to the application program of statistics is shown.
A2, the method as described in A1, wherein it is described in the system log of the mobile terminal, it reads application program and exists
The data traffic consumed in total under different network formats includes:
The unique identifier of the application program is obtained by call function;
Interface is obtained by the flow status of the mobile terminal, the application program for reading the unique identifier instruction exists
The data traffic consumed in total under different network formats.
A3, the method as described in A1, wherein the network formats that are connected of monitoring mobile terminal include:Monitor movement
Handover event of the network connection of terminal between different network formats.
A4, the method as described in A3, wherein the network connection for monitoring mobile terminal is between different network formats
Handover event includes:
It is sent to the broadcast registration interface of the mobile terminal and monitors asking for the handover event between different network formats
It asks;
The mobile terminal is received when network connection changes, the network connection of transmission switches the logical of event
Know.
A5, the method as described in A3, wherein
Corresponding network formats, count the application program and exist when data traffic that the basis is repeatedly read and reading
The data traffic consumed respectively under various network formats includes:
When the mobile terminal is switched to another network formats from a network formats, the data currently read are obtained
Flow, and, the preceding data traffic once read currently read;
The difference for calculating the data traffic and the preceding data traffic once read that currently read, obtains the application program and exists
The data traffic consumed under the network formats before switching.
A6, the method as described in A1, wherein the data traffic and read the data traffic that the basis is repeatedly read
When corresponding network formats, counting the data traffic that the application program consumes respectively under various network formats includes:
To the data traffic read every time, the label of corresponding network formats when the data traffic is read in addition;
The data traffic of the label of every one kind network formats is extracted respectively, each network formats is obtained and corresponds to
Multiple data traffics;
It is switched to another net by the first data traffic read when being switched to the network formats and from the network formats
The second data traffic read when network standard makes the difference, and obtains the data that the application program consumes respectively under various network formats
Flow.
A7, the method as described in A1, wherein described while the network formats that the monitoring mobile terminal is connected
Method further includes:
If the network connection of the mobile terminal is switched to different network formats, in the first preset time period, prison
The network connection state of the mobile terminal is controlled, and determines that the network connection state is connection.
A8, the method as described in A7, wherein it is described in the first preset time period, monitor the network of the mobile terminal
Connection status, and determine that the network connection state is that connection includes:
In the first preset time period, judge that the network connection state of the mobile terminal is gone back for connection according to predeterminated frequency
It is not connected;
If the network connection state of the mobile terminal is connection, and in the second preset time period, the mobile terminal
Network connection state be connection, it is determined that the network connection state be connection.
A9, the method as described in A1, wherein the method further includes:
The application program that user selects in mobile terminal is obtained, the application program of selection is prevented to connect at least one network system
Formula.
A10, the method as described in A9, wherein the application program for obtaining user and being selected in mobile terminal prevents selection
At least one network formats of application program connection include:
Obtain the application program that user selects in mobile terminal, the application program of turning-off mobile terminal selection;
Or, obtaining the application program that user selects in mobile terminal, judge the application program of selection in various network formats
Whether the lower data traffic consumed respectively meets preset range, and the application program of selection is prevented to connect the number for meeting preset range
According to the corresponding network formats of flow.
A11, the method as described in A10, wherein the application program for judging selection disappears respectively under various network formats
Whether the data traffic of consumption meets preset range, and the application program of selection is prevented to connect the data traffic pair for meeting preset range
The network formats answered include:
Judge whether the data traffic that the application program consumes under various network formats meets preset range respectively;
If meeting, using the corresponding network formats of the data traffic for meeting preset range as target network standard, pass through
Fire wall is set and changes the permission that the application program connects the target network standard, and/or, it is described mobile whole by closing
The port at end forbids sending the request that the application program connects the target network standard, to prevent the application program from connecting
Connect the target network standard.
A12, the method as described in A1, wherein
Before the network formats that the monitoring mobile terminal is connected, the method further includes:It determines described mobile whole
The screen at end is in screen lock state;
The data traffic that the application program counted at described Dui consumes respectively under various network formats is shown
Before, the method further includes:
Determine that the screen of the mobile terminal releases screen locking.
A13, the method as described in A1, wherein the application program of described pair of statistics is distinguished under various network formats
The data traffic of consumption be shown including:
The data traffic that the application program of statistics is consumed respectively under various network formats according to numerical value from greatly to
It is small to be ranked up, and be shown on the interface of the mobile terminal according to sequence;
And/or the date selected in the mobile terminal is obtained, show each application program difference in the mobile terminal
In the data traffic that the date of selection consumes in total;
And/or the data traffic that all application programs consume in total daily is calculated, and drawn according to the date and indicate data flow
The curve graph of amount consumption tendency;
And/or the application program selected in the mobile terminal is obtained, and show that the application program of selection is default in third
The daily data traffic consumed respectively of period and the data traffic consumed in total.
The invention also discloses B14, a kind of data flux statistics devices, including:
Network formats monitoring module, the network formats connected for monitoring mobile terminal;
Flow read module, in the system log of the mobile terminal, reading application program in different networks
The data traffic consumed in total under standard;
Flow statistical module, corresponding net when for according to the data traffic and the reading data traffic repeatedly read
Network standard counts the data traffic that the application program consumes respectively under various network formats;
Display module, the data traffic consumed respectively under various network formats for the application program to statistics into
Row displaying.
B15, the device as described in B14, wherein the flow read module includes:
Identifier acquisition submodule, the unique identifier for obtaining the application program by call function;
Interface reading submodule reads unique mark for obtaining interface by the flow status of the mobile terminal
Know the data traffic that the application program of symbol instruction consumes in total under different network formats.
B16, the device as described in B14, wherein the network formats monitoring module is specifically used for monitoring mobile terminal
Handover event of the network connection between different network formats.
B17, the device as described in B16, wherein the network formats monitoring module includes:
Request-to-send submodule is monitored for being sent to the broadcast registration interface of the mobile terminal in different network formats
Between handover event request;
Notify receiving submodule, for receiving the mobile terminal when network connection changes, the network of transmission connects
The notice of handover event is given birth in sending and receiving.
B18, the device as described in B16, wherein the flow statistical module includes:
Flow acquisition submodule is switched to another network formats for working as the mobile terminal from a network formats
When, the data traffic currently read is obtained, and, the preceding data traffic once read currently read;
Flow rate calculation submodule, the difference for calculating the data traffic currently read and the preceding data traffic once read
Value, obtains the data traffic consumed under the network formats of the application program before the handover.
B19, the device as described in B14, wherein the flow statistical module includes:
Label adds submodule, and for the data traffic to reading every time, addition is read corresponding when the data traffic
The label of network formats;
Classification submodule is obtained for being extracted respectively to the data traffic of the label of every one kind network formats
The corresponding multiple data traffics of each network formats;
Submodule is made the difference, the first data traffic for being read when for the network formats will to be switched to and from the network system
Formula is switched to the second data traffic read when another network formats and makes the difference, and obtains the application program under various network formats
The data traffic consumed respectively.
B20, the device as described in B14, wherein described device further includes:
Determining module is connected, the network formats for being connected in network formats monitoring module monitoring mobile terminal
Meanwhile if the network connection of the mobile terminal is switched to different network formats, in the first preset time period, institute is monitored
The network connection state of mobile terminal is stated, and determines that the network connection state is connection.
B21, the device as described in B20, wherein the connection determining module includes:
First connection judgment submodule, in the first preset time period, judging according to predeterminated frequency described mobile whole
The network connection state at end is connection or is not connected with;
Second connection judgment submodule, if the network connection state for the mobile terminal is connection, and it is pre- second
If in the period, the network connection state of the mobile terminal is connection, it is determined that the network connection state is connection.
B22, the device as described in B14, wherein described device further includes:
Connection prevents module, the application program selected in mobile terminal for obtaining user from preventing the application program of selection
At least one network formats of connection.
B23, the device as described in B22, wherein the connection prevents the module from including:
Closing application program submodule, the application program selected in mobile terminal for obtaining user, turning-off mobile terminal
The application program of selection;
Or, network formats connect submodule, the application program selected in mobile terminal for obtaining user judges selection
Whether the data traffic that application program consumes respectively under various network formats meets preset range, and prevents the application journey of selection
Sequence connects the corresponding network formats of data traffic for meeting preset range.
B24, the device as described in B23, wherein the network formats connect submodule and include:Range judgment sub-unit is used
In judging whether the data traffic that the application program consumes under various network formats meets preset range respectively, if meeting,
Then using the corresponding network formats of the data traffic for meeting preset range as target network standard, and execute fire wall setting submodule
Block and/or port shutdown submodule;
Subelement is arranged in fire wall, and changing the application program for fire wall to be arranged connects the target network standard
Permission, to prevent the application program from connecting the target network standard;
Port shutdown subelement is forbidden sending the application program company for the port by closing the mobile terminal
The request for connecing the target network standard, to prevent the application program from connecting the target network standard.
B25, the device as described in B14, wherein described device further includes:
Screen locking determining module, for the network formats that are connected of network formats monitoring module monitoring mobile terminal it
Before, determine that the screen of the mobile terminal is in screen lock state;
Screen locking determining module is released, for counting the application program in various network formats in the flow statistical module
After the lower data traffic consumed respectively, determine that the screen of the mobile terminal releases screen locking.
B26, the device as described in B14, wherein the display module includes:
First displaying submodule, the data consumed respectively under various network formats for the application program to statistics
Flow is ranked up from big to small according to numerical value, and is shown on the interface of the mobile terminal according to sequence;
And/or the second displaying submodule, for obtaining date select in the mobile terminal, the displaying movement is whole
The data traffic that each application program consumes on the date of selection in total respectively in end;
And/or third shows submodule, the data traffic consumed in total daily for calculating all application programs, and press
The curve graph for indicating that data traffic consumes tendency is drawn according to the date;
And/or the 4th displaying submodule, for obtaining the application program selected in the mobile terminal, and show selection
Application program in the daily data traffic consumed respectively of third preset time period and the data traffic consumed in total.
Claims (22)
1. a kind of data flow statistic method, including:
The network formats that monitoring mobile terminal is connected, and in the system log of the mobile terminal, read and individually apply journey
The data traffic that sequence consumes in total under different network formats;
Corresponding network formats when according to the data traffic repeatedly read and reading the data traffic, statistics is described to apply journey
The data traffic that sequence consumes respectively under various network formats;
The data traffic consumed respectively under various network formats to the application program of statistics is shown;
Wherein, the network formats that are connected of monitoring mobile terminal include:The network connection of mobile terminal is monitored in different nets
Handover event between network standard;
Corresponding network formats, count the application program various when data traffic that the basis is repeatedly read and reading
The data traffic consumed respectively under network formats includes:When the mobile terminal is switched to another network from a network formats
When standard, the data traffic currently read is obtained, and, the preceding data traffic once read currently read;Calculate current read
The difference of the data traffic and the preceding data traffic once read that take obtains the network system of the application program before the handover
The data traffic consumed under formula.
2. it is the method for claim 1, wherein described in the system log of the mobile terminal, read single application
The data traffic that program consumes in total under different network formats includes:
The unique identifier of the application program is obtained by call function;
Interface is obtained by the flow status of the mobile terminal, reads the application program of the unique identifier instruction in difference
Network formats under the data traffic that consumes in total.
3. the method for claim 1, wherein the network connection for monitoring mobile terminal is between different network formats
Handover event include:
The request for monitoring the handover event between different network formats is sent to the broadcast registration interface of the mobile terminal;
The mobile terminal is received when network connection changes, the network connection of transmission switches the notice of event.
4. data traffic and read the data flow that the method for claim 1, wherein the basis is repeatedly read
Corresponding network formats when amount, counting the data traffic that the application program consumes respectively under various network formats includes:
To the data traffic read every time, the label of corresponding network formats when the data traffic is read in addition;
The data traffic of the label of every one kind network formats is extracted respectively, it is corresponding more to obtain each network formats
A data traffic;
It is switched to another network system by the first data traffic read when being switched to the network formats and from the network formats
The second data traffic read when formula makes the difference, and obtains the data flow that the application program consumes respectively under various network formats
Amount.
5. the method for claim 1, wherein while the network formats that the monitoring mobile terminal is connected, institute
The method of stating further includes:
If the network connection of the mobile terminal is switched to different network formats, in the first preset time period, institute is monitored
The network connection state of mobile terminal is stated, and determines that the network connection state is connection.
6. method as claimed in claim 5, wherein it is described in the first preset time period, monitor the net of the mobile terminal
Network connection status, and determine that the network connection state is that connection includes:
In the first preset time period, the network connection state of the mobile terminal is judged according to predeterminated frequency to connect still not
Connection;
If the network connection state of the mobile terminal is connection, and in the second preset time period, the net of the mobile terminal
Network connection status is connection, it is determined that the network connection state is connection.
7. the method for claim 1, wherein the method further includes:
The application program that user selects in mobile terminal is obtained, the application program of selection is prevented to connect at least one network formats.
8. the method for claim 7, wherein the application program for obtaining user and being selected in mobile terminal prevents choosing
The application program selected connects at least one network formats:
Obtain the application program that user selects in mobile terminal, the application program of turning-off mobile terminal selection;
Or, obtaining the application program that user selects in mobile terminal, judge that the application program of selection is divided under various network formats
Whether the data traffic not consumed meets preset range, and the application program of selection is prevented to connect the data flow for meeting preset range
Measure corresponding network formats.
9. method as claimed in claim 8, wherein the application program for judging selection disappears respectively under various network formats
Whether the data traffic of consumption meets preset range, and the application program of selection is prevented to connect the data traffic pair for meeting preset range
The network formats answered include:
Judge whether the data traffic that the application program consumes under various network formats meets preset range respectively;
If meeting, using the corresponding network formats of the data traffic for meeting preset range as target network standard, pass through setting
Fire wall changes the permission that the application program connects the target network standard, and/or, by closing the mobile terminal
Port forbids sending the request that the application program connects the target network standard, to prevent the application program from connecting institute
State target network standard.
10. the method for claim 1, wherein
Before the network formats that the monitoring mobile terminal is connected, the method further includes:Determine the mobile terminal
Screen is in screen lock state;
Before the data traffic that the application program counted at described Dui consumes respectively under various network formats is shown,
The method further includes:
Determine that the screen of the mobile terminal releases screen locking.
11. the method for claim 1, wherein the application program of described pair of statistics is divided under various network formats
The data traffic not consumed be shown including:
The data traffic that the application program of statistics is consumed respectively under various network formats according to numerical value from big to small into
Row sequence, and be shown on the interface of the mobile terminal according to sequence;
And/or the date selected in the mobile terminal is obtained, show that each application program is being selected respectively in the mobile terminal
The data traffic that the date selected consumes in total;
And/or the data traffic that all application programs consume in total daily is calculated, and drawn according to the date and indicate that data traffic disappears
Consume the curve graph of tendency;
And/or the application program selected in the mobile terminal is obtained, and show the application program of selection in third preset time
The daily data traffic consumed respectively of section and the data traffic consumed in total.
12. a kind of data flux statistics device, including:
Network formats monitoring module, the network formats connected for monitoring mobile terminal;
Flow read module, in the system log of the mobile terminal, reading single application program in different networks
The data traffic consumed in total under standard;
Flow statistical module, corresponding network system when for according to the data traffic and the reading data traffic repeatedly read
Formula counts the data traffic that the application program consumes respectively under various network formats;
Display module, the data traffic consumed respectively under various network formats for the application program to statistics are opened up
Show;
Wherein, the network formats monitoring module, be specifically used for monitor mobile terminal network connection different network formats it
Between handover event;
The flow statistical module includes:Flow acquisition submodule, for switching from a network formats when the mobile terminal
When to another network formats, the data traffic currently read is obtained, and, the preceding data flow once read currently read
Amount;Flow rate calculation submodule, the difference for calculating the data traffic currently read and the preceding data traffic once read, obtains
The data traffic consumed under the network formats of the application program before the handover.
13. device as claimed in claim 12, wherein the flow read module includes:
Identifier acquisition submodule, the unique identifier for obtaining the application program by call function;
Interface reading submodule reads the unique identifier for obtaining interface by the flow status of the mobile terminal
The data traffic that the application program of instruction consumes in total under different network formats.
14. device as claimed in claim 12, wherein the network formats monitoring module includes:
Request-to-send submodule is monitored for being sent to the broadcast registration interface of the mobile terminal between different network formats
Handover event request;
Notify receiving submodule, for receiving the mobile terminal when network connection changes, the network connection of transmission is sent out
The notice of raw handover event.
15. device as claimed in claim 12, wherein the flow statistical module includes:
Label adds submodule, and for the data traffic to reading every time, corresponding network when the data traffic is read in addition
The label of standard;
Classification submodule obtains each for being extracted respectively to the data traffic of the label of every one kind network formats
The corresponding multiple data traffics of network formats;
Submodule is made the difference, the first data traffic for being read when for the network formats will to be switched to and is cut from the network formats
It changes to the second data traffic read when another network formats to make the difference, obtains the application program and distinguish under various network formats
The data traffic of consumption.
16. device as claimed in claim 12, wherein described device further includes:
Determining module is connected, for monitoring the same of the network formats that mobile terminal is connected in the network formats monitoring module
When, if the network connection of the mobile terminal is switched to different network formats, in the first preset time period, described in monitoring
The network connection state of mobile terminal, and determine that the network connection state is connection.
17. device as claimed in claim 16, wherein the connection determining module includes:
First connection judgment submodule, in the first preset time period, judging the mobile terminal according to predeterminated frequency
Network connection state is connection or is not connected with;
Second connection judgment submodule, if the network connection state for the mobile terminal is connection, and when second is default
Between in section, the network connection state of the mobile terminal is connection, it is determined that the network connection state is connection.
18. device as claimed in claim 12, wherein described device further includes:
Connection prevents module, the application program selected in mobile terminal for obtaining user that the application program of selection is prevented to connect
At least one network formats.
19. device as claimed in claim 18, wherein the connection prevents the module from including:
Closing application program submodule, the application program selected in mobile terminal for obtaining user, turning-off mobile terminal selection
Application program;
Or, network formats connect submodule, the application program selected in mobile terminal for obtaining user judges the application of selection
Whether the data traffic that program consumes respectively under various network formats meets preset range, and the application program of selection is prevented to connect
Connect the corresponding network formats of data traffic for meeting preset range.
20. device as claimed in claim 19, wherein the network formats connect submodule and include:Range judgment sub-unit,
For judging whether the data traffic that the application program consumes under various network formats meets preset range respectively, if symbol
It closes, then using the corresponding network formats of the data traffic for meeting preset range as target network standard, and executes fire wall setting
Submodule and/or port shutdown submodule;
Subelement is arranged in fire wall, and the power that the application program connects the target network standard is changed for fire wall to be arranged
Limit, to prevent the application program from connecting the target network standard;
Port shutdown subelement is forbidden sending application program connection institute for the port by closing the mobile terminal
The request for stating target network standard, to prevent the application program from connecting the target network standard.
21. device as claimed in claim 12, wherein described device further includes:
Screen locking determining module, for before the network formats that are connected of network formats monitoring module monitoring mobile terminal,
Determine that the screen of the mobile terminal is in screen lock state;
Screen locking determining module is released, for dividing under various network formats in the flow statistical module statistics application program
After the data traffic not consumed, determine that the screen of the mobile terminal releases screen locking.
22. device as claimed in claim 12, wherein the display module includes:
First displaying submodule, the data traffic consumed respectively under various network formats for the application program to statistics
It is ranked up according to numerical value, and is shown on the interface of the mobile terminal according to sequence from big to small;
And/or second displaying submodule show in the mobile terminal for obtaining the date selected in the mobile terminal
The data traffic that each application program consumes on the date of selection in total respectively;
And/or third displaying submodule, the data traffic consumed in total daily for calculating all application programs, and according to day
Phase draws the curve graph for indicating data traffic consumption tendency;
And/or the 4th displaying submodule, for obtaining the application program selected in the mobile terminal, and show answering for selection
With program in the daily data traffic consumed respectively of third preset time period and the data traffic consumed in total.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410320815.8A CN104125596B (en) | 2014-07-07 | 2014-07-07 | A kind of data flow statistic method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410320815.8A CN104125596B (en) | 2014-07-07 | 2014-07-07 | A kind of data flow statistic method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104125596A CN104125596A (en) | 2014-10-29 |
CN104125596B true CN104125596B (en) | 2018-07-27 |
Family
ID=51770828
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410320815.8A Active CN104125596B (en) | 2014-07-07 | 2014-07-07 | A kind of data flow statistic method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104125596B (en) |
Families Citing this family (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104486138A (en) * | 2014-11-25 | 2015-04-01 | 北京奇虎科技有限公司 | Flow monitoring method and device and monitoring server |
CN104572177A (en) * | 2014-12-19 | 2015-04-29 | 龙凤娇 | Mobile traffic management method and mobile traffic management device |
CN105813143B (en) * | 2014-12-29 | 2019-11-29 | 北京新媒传信科技有限公司 | A kind of method and apparatus for supporting application program network switching |
CN104717368B (en) * | 2015-04-08 | 2017-09-08 | 宇龙计算机通信科技(深圳)有限公司 | Data on flows update method, data on flows more new system and terminal |
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 |
CN105516026A (en) * | 2015-11-20 | 2016-04-20 | 小米科技有限责任公司 | Hot spot networking control method and device |
CN107979561B (en) * | 2016-10-21 | 2020-07-03 | 中国电信股份有限公司 | Method, device and system for controlling malicious traffic |
CN106547575A (en) * | 2016-12-12 | 2017-03-29 | 北京奇虎科技有限公司 | The management method and device of application attribute |
CN106792878B (en) * | 2016-12-27 | 2020-07-28 | 南京速迈智能科技有限公司 | Data traffic monitoring method and device |
WO2018191867A1 (en) | 2017-04-18 | 2018-10-25 | 华为技术有限公司 | Synchronization method, apparatus, and system for terminal monitoring information |
CN107743080B (en) * | 2017-09-30 | 2019-10-25 | Oppo广东移动通信有限公司 | Flow statistical method and device, computer equipment, computer readable storage medium |
CN107908675B (en) * | 2017-10-27 | 2021-12-17 | 努比亚技术有限公司 | Data display method, terminal and computer readable storage medium |
CN108306790B (en) * | 2018-01-31 | 2020-07-24 | 世纪龙信息网络有限责任公司 | Application flow monitoring method and device and Android equipment |
CN109144222A (en) * | 2018-08-23 | 2019-01-04 | 北京小米移动软件有限公司 | Flow information acquisition methods and device |
CN110381555B (en) * | 2019-08-12 | 2021-05-28 | 江苏传艺科技股份有限公司 | Data transmission switch management system for 5G terminal |
CN111954247A (en) * | 2020-06-30 | 2020-11-17 | 联想(北京)有限公司 | Information processing method, terminal and storage medium |
CN112333040B (en) * | 2020-10-12 | 2023-05-02 | 联通智网科技股份有限公司 | Flow separation method and device, storage medium and computer equipment |
CN112732356A (en) * | 2021-01-11 | 2021-04-30 | 江西中瑞防雷技术有限公司 | Data monitoring management system of intelligent platform system |
CN116319679A (en) * | 2022-12-27 | 2023-06-23 | 中国电子产业工程有限公司 | Network connection monitoring method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1492625A (en) * | 2002-10-25 | 2004-04-28 | 华为技术有限公司 | Display method for all link service flow statistics on network |
CN101800792A (en) * | 2010-01-12 | 2010-08-11 | 华为终端有限公司 | Mobile phone internet traffic counting and displaying method and device, and mobile phone |
CN102186190A (en) * | 2011-04-29 | 2011-09-14 | 深圳市五巨科技有限公司 | Mobile terminal network traffic counting method and device |
CN102625331A (en) * | 2011-06-14 | 2012-08-01 | 北京小米科技有限责任公司 | Monitor method of data flow of mobile terminal and apparatus |
CN102629909A (en) * | 2012-03-30 | 2012-08-08 | 奇智软件(北京)有限公司 | Traffic counting method and system based on processes |
CN103235915A (en) * | 2013-04-16 | 2013-08-07 | 广东欧珀移动通信有限公司 | Network application program processing method and mobile terminal thereof |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6501950B1 (en) * | 1996-03-14 | 2002-12-31 | Bellsouth Intellectual Property Corporation | Systems and methods for monitoring data signals on a communications network |
CN101247238B (en) * | 2007-02-14 | 2011-10-05 | 华为技术有限公司 | Method and system for data flux statistics |
CN102256295B (en) * | 2010-05-18 | 2015-08-12 | 中兴通讯股份有限公司 | The method and apparatus of counting residence time length ratio of double-mode one-standby terminal user in double networks |
CN103188647A (en) * | 2011-12-29 | 2013-07-03 | 北京网秦天下科技有限公司 | Method and system for statistically analyzing and warning Internet surfing flow of mobile terminal |
CN103209449B (en) * | 2012-01-17 | 2016-06-29 | 上海贝尔股份有限公司 | A kind of by the method and apparatus that ANDSF is user's switching and network access |
CN102612084A (en) * | 2012-02-24 | 2012-07-25 | 中兴通讯股份有限公司 | Method and device for controlling data traffic |
CN103281687A (en) * | 2013-05-30 | 2013-09-04 | 北京小米科技有限责任公司 | Network flow management method and device of double-card terminal |
CN103491519B (en) * | 2013-09-25 | 2017-01-04 | 大唐移动通信设备有限公司 | Charging method under a kind of mixed networking and device |
CN103813356A (en) * | 2014-02-28 | 2014-05-21 | 宇龙计算机通信科技(深圳)有限公司 | Flow management device and flow management method thereof |
-
2014
- 2014-07-07 CN CN201410320815.8A patent/CN104125596B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1492625A (en) * | 2002-10-25 | 2004-04-28 | 华为技术有限公司 | Display method for all link service flow statistics on network |
CN101800792A (en) * | 2010-01-12 | 2010-08-11 | 华为终端有限公司 | Mobile phone internet traffic counting and displaying method and device, and mobile phone |
CN102186190A (en) * | 2011-04-29 | 2011-09-14 | 深圳市五巨科技有限公司 | Mobile terminal network traffic counting method and device |
CN102625331A (en) * | 2011-06-14 | 2012-08-01 | 北京小米科技有限责任公司 | Monitor method of data flow of mobile terminal and apparatus |
CN102629909A (en) * | 2012-03-30 | 2012-08-08 | 奇智软件(北京)有限公司 | Traffic counting method and system based on processes |
CN103235915A (en) * | 2013-04-16 | 2013-08-07 | 广东欧珀移动通信有限公司 | Network application program processing method and mobile terminal thereof |
Also Published As
Publication number | Publication date |
---|---|
CN104125596A (en) | 2014-10-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104125596B (en) | A kind of data flow statistic method and device | |
CN105704066B (en) | Networking control method and device, system, security gateway, mobile terminal | |
CN103019719B (en) | A kind of pop-up blocking apparatus and method | |
CN103906112B (en) | The analysis method and system of COMMUNICATION NETWORK PERFORMANCES | |
EP3923140A2 (en) | Fault prediction method, apparatus, electronic device and storage medium | |
CN104219377B (en) | The control method and mobile terminal of the antenna of mobile terminal | |
CN104780185B (en) | information sharing control method and device | |
US20160164732A1 (en) | System and method for rule creation and parameter adaptation by data mining in a self-organizing network | |
CN103781122B (en) | Flow management device and flow managing method | |
CN105095749B (en) | The adapting method and device of status bar notice | |
EP2932340B2 (en) | Analyzing noise in a household appliance | |
CN105101138A (en) | Method and system for controlling traffic, and terminal | |
CN104965778A (en) | Method and device for game test | |
CN106911675B (en) | A kind of mobile phone Malware method for early warning and device | |
CN107733834A (en) | A kind of leakage prevention method and device | |
CN107766103A (en) | A kind of terminal control method and device, terminal and readable storage medium storing program for executing | |
CN107197489A (en) | Method for switching network, mobile terminal and computer-readable recording medium | |
CN106792618A (en) | Flux monitoring method and device and terminal | |
CN103607303B (en) | Signaling flow analysis system and signaling flow analysis method | |
CN105912372A (en) | Application program disable method | |
CN109309942A (en) | Method for switching network and device | |
CN102841980B (en) | A kind of threshold information visualization method and device | |
CN101510915A (en) | Fast switching method for mobile phone software window | |
CN105447384B (en) | A kind of anti-method monitored, system and mobile terminal | |
WO2015184857A1 (en) | Multi-time-segment setting method and device, and storage 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 |
Effective date of registration: 20220726 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. |
|
TR01 | Transfer of patent right |