Network flow statistics method and device, electronic equipment and storage medium

A technology of electronic equipment and network traffic, applied in the network field, can solve the problems of lack of cooperation, low cooperation efficiency, solidified processing capacity, etc., and achieve the effect of improving statistical accuracy

Active Publication Date: 2019-11-05
CHINA MOBILE SUZHOU SOFTWARE TECH CO LTD +1
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The present invention provides a network traffic statistics method, device, electronic equipment and storage medium, which are used to solve the problems of solid processing ability between processing steps, low coordination efficiency, and lack of coordination existing in the prior art when performing traffic statistics. question

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
  • Network flow statistics method and device, electronic equipment and storage medium
  • Network flow statistics method and device, electronic equipment and storage medium
  • Network flow statistics method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0064] Due to the fact that in the prior art, when the flow and velocity statistics are performed, due to the solidified processing capabilities between the various steps, the cooperation efficiency between the various processing steps is low, and there is a lack of coordination. The flow is too late to analyze packet loss, or it is waiting to receive while analyzing, resulting in waste of resources.

[0065] Therefore, in order to solve the above technical problem, an embodiment of the present invention provides a method for counting network traffic. It should be noted that the method for counting network traffic provided by the embodiment of the present invention is applied to an electronic device. image 3 It is a flow chart of the statistical method of network traffic provided in the embodiment of the present invention, such as image 3 As shown, the method includes the following steps:

[0066] Step S301: According to the data volume of the Flow flow, a first set number ...

Embodiment 2

[0083] As can be seen from the foregoing embodiments, when increasing or decreasing the number of downlink threads, it is necessary to judge whether the cache queue is full or empty, and if the cache queue length of the cache queue is too small, the processing capacity of the uplink thread and the downlink thread will be affected. However, if the length of the cache queue is too large, it will not play a good role in regulating the processing capacity of the downlink thread. Therefore, the length of the cache queue in the cache queue can determine the processing capacity of the downlink thread to a certain extent. size.

[0084] In order to optimize the effect of dynamically regulating the processing capacity of the thread group and further ensure that the processing capacity of the downlink thread and the uplink thread match, in the embodiment of the present invention, after adding the first number of downlink threads, the method further including: increasing the cache queue ...

Embodiment 3

[0091] Since the starting time of each downlink thread is different, the deletion of the second number of downlink threads includes:

[0092] According to the start time of each downlink thread, determine a second number of target downlink threads whose start time is later, and delete the target downlink threads.

[0093] Wherein, by sorting each downlink thread according to the startup time of each downlink thread, it is convenient to manage downlink threads. Late downstream threads start to delete so as not to clutter up the entire thread group. Similarly, when the first number of downlink threads is added, the latest started downlink thread is used as the downlink thread with a later startup time. Of course, it can be understood that, in the embodiment of the present invention, it is not limited to the above-mentioned management manner.

[0094] That is, in the embodiment of the present invention, according to the startup time of each downlink thread, the sequence of each...

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 flow statistics method and device, electronic equipment and a storage medium, and the method comprises the steps: carrying out the first processing of a Flow flow through employing a first set number of uplink threads according to the data size of the Flow flow, and writing the processed Flow flow into a cache queue; adopting a second set number of downlink threadsto perform second processing on the Flow flow written in the cache queue, each uplink thread having the same processing capability as each downlink thread; if the cache queue is fully written, addinga first number of downlink threads; and if the cache queue is empty, deleting the second number of downlink threads. According to the method and the device, the thread group is adopted to perform synchronous processing on the Flow flows, and the processing capacity of the thread group is dynamically regulated and controlled by judging whether the cache queue is fully written or empty or not and increasing or decreasing the number of the downlink threads, so that the problems of fixed processing capacity and lack of cooperative cooperation among processing steps in the prior art are solved.

Description

technical field [0001] The invention relates to the field of network technology, in particular to a method, device, electronic equipment and storage medium for counting network traffic. Background technique [0002] The NetFlow technology of the switch is a data exchange method. Its working principle is: NetFlow uses the standard exchange mode to process the first IP packet data of the data flow to generate a NetFlow cache, and then the same data is stored in the same data flow based on the cache information. For transmission, it no longer matches relevant access control policies, and the NetFlow cache also contains statistical information of subsequent data flows. Therefore, the NetFlow technology of the switch can realize the collection of high-speed forwarded IP data flow. [0003] source IP Destination IP source port network name agreement type size default 10.12.112.67 10.10.242.24 64421 Others 17 6844200 1 211.241.112.64 10.10.242....

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): H04L12/26G06F9/48
CPCG06F9/4843H04L43/0876
Inventor 何丹
Owner CHINA MOBILE SUZHOU SOFTWARE TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products