Unlock instant, AI-driven research and patent intelligence for your innovation.

Data flow counting method and terminal

A technology of data traffic and statistical methods, applied in electrical components, wireless communication, etc., can solve problems such as inability to distinguish the generation and use of data traffic

Active Publication Date: 2012-10-03
HUAWEI DEVICE CO LTD
View PDF4 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of the above problems, the purpose of the present invention is to provide a data traffic statistics method, aiming to solve the technical problem in the prior art that the generation and use of data traffic cannot be distinguished according to different single applications

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data flow counting method and terminal
  • Data flow counting method and terminal
  • Data flow counting method and terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0021] figure 1 A flow of a method for counting data traffic provided by an embodiment of the present invention is shown, and only parts related to the embodiment of the present invention are shown for ease of description.

[0022] In step S101, when a network connection is generated, a single application that is currently connected to the network is obtained and a data traffic value is calculated.

[0023] Among them, each single application has a unique application package name. In this step, the network connection needs to be monitored. When a network connection occurs, the package name of the single application that is currently connected to the network is obtained according to the connection request of the network port, and according to the The package name identifies the single application currently making the network connection. After obtaining the single application that is currently connected to the network, start to calculate the data traffic value.

[0024] In ste...

Embodiment 2

[0030] figure 2 A flow of a method for counting data traffic provided by the second embodiment of the present invention is shown, and only parts related to the embodiment of the present invention are shown for convenience of description.

[0031] In step S201, a flow database is established, and a total value of data flow is established for each single application with network connection authority.

[0032] In this step, it is first necessary to analyze which of the installed single applications have network connection permissions, and establish a traffic database, and establish the total data traffic values ​​for these single applications. In this step, the total value of data flow is stored by establishing a database, which is convenient for unified management and calling of flow data.

[0033] In step S202, when a network connection is generated, a single application currently generating data traffic is obtained and data traffic value is calculated.

[0034] In this step...

Embodiment 3

[0052] image 3 A structural block diagram of a terminal provided by the third embodiment of the present invention is shown, and only parts related to the embodiment of the present invention are shown for convenience of description.

[0053] In the illustration, the device includes:

[0054] The network connection single application obtaining unit 301 is configured to obtain a current network connection single application and start to calculate the data traffic value when a network connection is generated.

[0055] Wherein, each single application has a unique application package name, and the network connection single application acquisition unit needs to monitor the network connection, and when a network connection is generated, obtain the package name of the current network connection single application according to the connection request of the network port , and determine the single application that is currently connected to the network according to the package name. Af...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention is applicable to the field of mobile communication and provides a data flow counting method and a terminal. The data flow counting method comprises the following steps of: when network connection is generated, obtaining single application which carries out network connection at present and starting to calculate a data flow value; when the single application stops using the network connection, obtaining the data flow value generated in the network connection of current time; and counting the data flow value generated in the network connection of current time into a data flow total value of the single application. According to the invention, by obtaining each single application for generating the network connection, when the single application for generating the network connection is changed, the data flow value of the existing single application is counted so that the total data flow value of each single application can be finally accounted under the condition that a plurality of the single applications belong to the same UID (user identifier).

Description

technical field [0001] The invention belongs to the field of mobile communication, and in particular relates to a data traffic statistics method and a terminal. Background technique [0002] Nowadays, most of the smart terminals have the function of surfing the Internet, especially with the popularization of smart phones, people have been brought into the Internet age. Usually, smart terminals are installed with a large number of application software, but there may be some fee-inducing software secretly consuming traffic in the background, so that users will consume a lot of traffic even when they are not using the network connection, but it is difficult for users to find out which application software is in the network. The background secretly consumes traffic and deletes the app correspondingly, so it is a headache. [0003] Although some traffic statistics software has appeared on smart terminals, these software can count the traffic generated by the UID (UserID, user nu...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04W24/00
Inventor 赵吉昌
Owner HUAWEI DEVICE CO LTD