The invention belongs to the technical field of network flow measurement, and particularly relates to a multi-
core network flow measurement method based on sampling and Sketch fusion,
electronic equipment and a medium, and the method comprises the following steps: through an intelligent sampling mechanism, a working device does not store a counter structure of Sketch and is only responsible for generating vector messages related to counter values, so that about 67% of data
packet processing amount is reduced; and the
system throughput is greatly improved. An innovative
message aggregation algorithm is adopted, and the
measurement precision is equivalent to or even better than that of an existing scheme. According to the Sketch counter row updating method, the Sketch counter row updating operation is adopted, or sampling of a data packet is converted into sampling of the Sketch counter row updating operation, each working device only needs to maintain one
hash function and one counter array, and therefore high
throughput is maintained, and meanwhile good measuring precision is kept. According to the invention, network flow measurement with high performance and high
resource utilization rate is realized, and meanwhile, the
measurement precision is kept at a level equivalent to that of an existing mainstream scheme, so that the requirements of high efficiency, economical efficiency and reliability of flow measurement in a modern high-speed network environment are met.