Check patentability & draft patents in minutes with Patsnap Eureka AI!

Flow detection method and device, equipment and medium

A flow detection and flow technology, applied in the computer field, can solve the problems of the difference between the real-time network speed and the average network speed, and the low accuracy rate of flow statistics, so as to achieve the effect of improving accuracy, reducing investment, and reducing the risk of kernel space

Pending Publication Date: 2022-01-04
MEIZU TECH CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in the above-mentioned method of counting traffic consumption based on the product of the running time of the application and the average network speed, since multiple applications may be using network resources at the same time, and the real-time network speed of the application is different from the average network speed, therefore, resulting in The accuracy of traffic statistics is low

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
  • Flow detection method and device, equipment and medium
  • Flow detection method and device, equipment and medium
  • Flow detection method and device, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] In order to understand the above objects, features, and advantages of the present disclosure, the disclosure will be further described below. It should be noted that the features of the present disclosure may be combined with each other in the case of an unable conflict.

[0049] A lot of specific details are set forth in the following description to fully understand the present disclosure, but the present disclosure can also employ other different from the embodiments described herein; Not all embodiments.

[0050] figure 1 Schematic flowchart disclosed embodiments A flow detection method provided, the method may be performed by the flow rate detecting means, wherein the apparatus may be in software and / or hardware implementations, and can be integrated in an electronic device, such as a figure 1 , The flow rate detection method of the present embodiment include:

[0051] Step 101, in response to a call request to the kernel space preset traffic statistics function to g...

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 embodiment of the invention relates to a flow detection method and device, equipment and a medium, and the method comprises the steps: obtaining a first process identifier for calling a flow statistical function and a corresponding current consumed flow in response to a calling request for the preset flow statistical function in a kernel space; calling a preset network data packet to filter a query interface of an eBPF module, and querying whether the first process identifier is included according to a preset corresponding relation in a preset virtual file system; if the first process identifier is included, querying and obtaining historical total consumed flow corresponding to the first process identifier in the corresponding relationship through the query interface; and calculating the sum of the historical total consumption flow and the current consumption flow to obtain the current total consumption flow, and calling a write-in interface of the eBPF module to write the historical total consumption flow of the corresponding relationship into the current total consumption flow. In the method of the invention, the current total consumed flow can be counted by taking the process as the granularity, so that the accuracy of flow statistics can be improved.

Description

Technical field [0001] The present disclosure relates to computer technology, and in particular, to a method for detecting the flow rate, means, devices and media. Background technique [0002] With the development of computer technology, increasingly diverse types of applications, in order to facilitate the application management, application traffic consumption statistics and other more common. [0003] In the related art, each application is acquired long run, and the average length of the corresponding network speed operation, the consumption flow is determined for each application based on the average speed and long running product. [0004] However, the above statistics consumption flow-based product applications running duration and average speed, since the same time multiple applications may have differences in the use of network resources, and applications in real-time speed and average speed, therefore, lead to lower traffic statistics accuracy. Inventive content [00...

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 Applications(China)
IPC IPC(8): G06F16/14G06F16/188G06F16/23
CPCG06F16/144G06F16/188G06F16/2358
Inventor 黄超华
Owner MEIZU TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More