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

Method and apparatus for realizing flow statistics of network chip efficiently

A traffic statistics and network chip technology, applied in the field of traffic statistics, can solve the problems of high CPU impact and low efficiency, and achieve the effect of reducing the occupancy rate

Active Publication Date: 2015-12-09
SUZHOU CENTEC COMM CO LTD
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Since the stats entry occupies ram resources, it is impossible to set too much bit width. Calculated according to the traffic of 100G, the packet statistics in 1s need to occupy 34 bits of ram resources, and the interruption needs to be at least once every 1s to be effective. In this case, the impact on the cpu is very large, and the efficiency is very 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
  • Method and apparatus for realizing flow statistics of network chip efficiently
  • Method and apparatus for realizing flow statistics of network chip efficiently

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the present invention.

[0024] The invention utilizes the characteristics of direct memory access (DMA) and CPU sharing memory, and the DMA controller of the chip automatically realizes flow statistics. Such as figure 1 As shown, a device for efficiently realizing traffic statistics of a network chip disclosed by an embodiment of the present invention includes a chip, a CPU, and a DMA memory, and the chip includes an ACL flow table, flow statistics, RAM memory, and a DMA controller.

[0025] figure 2 It is a schematic flow diagram of the method for efficiently realizing network chip traffic statistics in the present invention, combined with figure 1 and figure 2 As shown, after the message enters the chip, search the ACL flow table in the chip according to the five-tuple information such as the carried ...

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 discloses a method and apparatus for realizing flow statistics of a network chip efficiently. The method comprises: an ACL flow table in a chip is searched based on a message, a matched flow table is found out and a flow statistics behavior is associated; according to the associated flow statistics behavior, information in an RAM internal memory is updated; and a DMA controller carried out the following steps periodically: statistic data in the RAM internal memory are read regularly and the data in a DAM internal memory are read simultaneously, the read statistic data in the RAM internal memory and the read data in the DMA internal memory are accumulated and then are written back in the DMA internal memory. The DMA internal memory is a CPU internal memory of a designated address allocated for the chip DMA by the CPU. According to the invention, statistics synchronization and accumulation to the CPU internal memory are realized completely by the chip DMA and software participation during the whole process is not required; the CPU occupancy rate is substantially reduced; and the flow stats function can be completed efficiently.

Description

technical field [0001] The invention relates to a flow statistics technology, in particular to a method and device for efficiently realizing network chip flow statistics. Background technique [0002] Flowstats (traffic statistics) is a technology that relies on ACL (Access Control List) to realize traffic statistics, and is widely used in traffic analysis and problem location. Identify specific flows based on the ACL and associate them with stats entries, and collect statistics on the identified flows into the stats entries. Stats entries are implemented using physical memory in the chip, and the specifications of the entries are limited. In order to prevent statistical inversion caused by overflow, most of the existing chips set the threshold, and when the threshold is reached, an interrupt will be triggered. At this time, the cpu (central processing unit) takes over the interrupt and reads the stats in the chip ram (random access memory). Statistics, and cleared to 0. T...

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/24H04L29/06
Inventor 李磊赵茂聪贾复山
Owner SUZHOU CENTEC COMM 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