Traffic statistics method, device and system and storage medium

A technology of flow statistics and storage media, which is applied in the field of flow control, and can solve problems such as flow data jitter, incapability of real-time and accurate flow statistics, and sudden increase in flow

Pending Publication Date: 2020-06-19
LENOVO (BEIJING) CO LTD
View PDF2 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in a statistical cycle, the counter may clear the cache, but no data is received during the clearing process, and the data generated during the clearing process may be accumulated during the re-counting, resulting in a sudden increase in traffic. But this sudden increase is due to data squeeze, not a sudden increase in real traffic
These various

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
  • Traffic statistics method, device and system and storage medium
  • Traffic statistics method, device and system and storage medium
  • Traffic statistics method, device and system and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0040] According to an embodiment of the present invention, the method further includes: initializing a ring queue storage structure.

[0041] Here, the initialization of the ring queue storage structure usually only needs to be initialized once when the program is started, instead of being repeated at the beginning of each statistical period. When initializing the ring queue storage structure, it is usually necessary to estimate an approximate queue capacity, that is, the number of queue elements in the ring queue. For example, if the traffic data is collected regularly, the number of queue elements in the ring queue is the number of collections obtained by dividing the time of a statistical cycle by the regular interval; if the traffic data is collected non-scheduled, it can be estimated based on historical experience The number of queue elements that satisfies most of the requirements. When initializing the ring queue, also specify the initial pointer and the end pointer. ...

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 discloses a flow statistics method, device and system and a storage medium. According to the method, an annular queue storage structure is used for recording flow data;sequentially storing the collected data traffic in a queue element in a circular queue in a circular queue storage structure every time; due to the fact that the queue is the annular queue, the starting pointer and the ending pointer are further arranged to indicate the queue head and the queue tail where the data flow of the current statistical period is stored, and when the current statisticalperiod is finished, the total flow of the current statistical period can be obtained by accumulating the data flow recorded by all queue elements between the queue head and the queue tail. According to the embodiment of the invention, the flow statistics method is used, the problem of counter zero clearing does not exist, jittering of sudden data volume expansion does not occur easily, and the data flow in a certain statistics period can be recorded more completely and accurately. In addition, the annular queue does not need to be initialized for multiple times, can be repeatedly used and is very high in utilization rate.

Description

technical field [0001] The invention relates to the field of flow control, in particular to a flow statistics method, device, system and storage medium. Background technique [0002] In a distributed system, in order to make reasonable use of the IO resources of the entire system, IO flow control is performed in many scenarios, so current limiting technology has become a key technology for distributed system resource management. The smoothness, real-time performance of current limiting, and read and write performance after current limiting are key indicators for measuring current limiting technology. Among them, flow statistics are the data foundation and decision-making basis of current limiting technology. How to record flow data accurately and in real time to complete flow statistics has also become an important factor affecting the effect of current limiting technology. [0003] At present, in order to perform more accurate current limiting, a flow counter method is usu...

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): G06F16/22G06F16/2458G06F16/27
CPCG06F16/221G06F16/2462G06F16/27
Inventor 娄婷
Owner LENOVO (BEIJING) 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