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

A data statistics method and device

A technology for data statistics and statistical values, applied in the field of network communication, can solve problems such as low efficiency, and achieve the effect of improving data statistics efficiency and query efficiency

Active Publication Date: 2021-01-26
HANGZHOU DPTECH TECH
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in the solutions of the prior art, a traversal query needs to be performed every time a message is received, and the efficiency 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
  • A data statistics method and device
  • A data statistics method and device
  • A data statistics method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order for those skilled in the art to better understand the technical solutions in the embodiments of this specification, the technical solutions in the embodiments of this specification will be described in detail below in conjunction with the drawings in the embodiments of this specification. Obviously, the described implementation Examples are only some of the embodiments in this specification, not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this specification shall fall within the scope of protection.

[0031] In the network device, an external cache (such as SRAM, DRAM, etc.) can be used to store data statistics results, for example, the flow size and the number of bytes of the statistics packets.

[0032] When performing statistics, after the internal cache receives the data, it first needs to read the previous statistical results, that is, it needs to read the old statistical value from the ex...

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

Disclosed are a data statistics method and device. A data statistics method, characterized in that the method is applied to an internal cache of a network device, and the method includes: receiving a target message, and extracting a target feature value for which the target message needs to be counted; according to a preset encoding rule, determine the target code corresponding to the target feature value, and check whether the target code has been stored in the code table; if it has been stored, add the target message to the message corresponding to the target code Set; in the case of not storing, create a new corresponding relationship between the target code and the message set in the code table; send a statistical value reading command to the external cache; after receiving the original statistical value returned by the external cache, according to the code Each feature value of each message in the table and the original statistical value are calculated to obtain a new statistical value; a statistical value write command is sent to the external cache, and the command carries the calculated new statistical value.

Description

technical field [0001] The embodiments of this specification relate to the field of network communication technologies, and in particular, to a data statistics method and device. Background technique [0002] When a network device performs data statistics, such as statistics on the traffic and byte count of received packets, it usually needs to use an external cache with a larger storage space for storage. However, during data statistics, the internal cache first needs to read the external cache, read the old statistical value, calculate the new statistical value based on the newly received data and the old statistical value, and then write the communication mechanism into the external cache. Therefore, the frequent access of the internal cache to the external cache will consume more computing resources, and there will be a large delay. [0003] In the prior art, it is generally used to preprocess the statistical data to be processed in the internal cache when the internal ...

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/26H04L12/861
CPCH04L43/026H04L43/08H04L43/0876H04L49/90
Inventor 刘彦静
Owner HANGZHOU DPTECH TECH