Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for network traffic statistics

A technology of network traffic and statistical methods, which is applied in the field of network traffic statistical methods and devices, and can solve the problems of consuming traffic, unable to bear traffic, and merging APP subdivision data into original data, not Android system, etc.

Active Publication Date: 2019-04-23
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] This method is not an official support method of the Android system. The traffic query method provided by the Android system cannot merge the segmented data recorded by the traffic-bearing APP into the original data. When the third-party application queries, the traffic-bearing APP consumes all the data.

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
  • Method and device for network traffic statistics
  • Method and device for network traffic statistics
  • Method and device for network traffic statistics

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0062] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0063]In the Android operating system, each application program APP has a user identification UID or shares a user identity identification UID with other application programs. The Android operating system uses UID as a mark to record traffic. When the APP is running, the APP process will carry its own UID information. When all processes generate network requests, they need to create ...

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 provides a network traffic statistical method and device. The method comprises the following steps: when a first application program accesses a network through a second application program, acquiring all socket file descriptors created by the second application program in a network access process; acquiring first user identity identification information corresponding to the first application program; marking all socket file descriptors by using the first user identity identification information; and determining the traffic used by the first application program in the network access process according to the marked all socket file descriptors. By means of the network traffic statistical method and device provided by the invention, the traffic used by the first application program in the network access process can be determined to prevent all traffics used in the network access process from being counted for the second application program, and thus the traffic statistics are more precise and accurate.

Description

technical field [0001] The present disclosure relates to the technical field of flow statistics, in particular to a method and device for network flow statistics. Background technique [0002] In the Android system, there will be many cases where a single application APP provides network services for other applications, such as system download programs, PUSH channels, and so on. In this case, the network traffic generated will be counted on the APP where the network traffic actually occurs. As a result, this type of APP will accumulate a lot of traffic, and it is impossible to accurately distinguish the respective traffic consumption of the requester. [0003] In order to solve the above technical problems, the existing technical solution is that the APP that generates the network request records the information of the requesting APP, and records the traffic consumed by each APP separately. Then provide it to each module to query which APPs consume the traffic generated by...

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
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/26
CPCH04L43/08H04L43/0876
Inventor 王乐刘鸣刘健全
Owner BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products