A sampling method and a network chip

A network chip and sampling ratio technology, applied in the field of communication, can solve the problems of large access bandwidth of network chips and counters, affecting the forwarding performance of network chips, time-consuming and other problems

Active Publication Date: 2016-12-14
ZTE CORP
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the prior art solution, the operation of the network chip on the counter is generally an RMW (Read+Modify+Write, read+update+write) operation, which is time-consuming and greatly affects the forwarding performance of the network chip.
Due to the coexistence of multiple sampling services at present, such as port sampling, sampling of various types of packets under the port, and stream sampling, these types of sampling are superimposed together, resulting in excessive access bandwidth between the network chip and the counter, reducing the network bandwidth. Chip forwarding performance

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 sampling method and a network chip
  • A sampling method and a network chip
  • A sampling method and a network chip

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0088] Figure 8 Shown is a schematic diagram of the port representation in the embodiment of the present invention, and figure 2 Compared with , a field is added, which stores the preset sampling step value X. Exemplarily, if the sampling ratio is configured as N:1, X needs to be calculated in advance, assuming that the counting bit width of the counter is M, then when the count is accumulated to 2 M Flip after -1, set 2 M / N is written to the port table as the step value X. For example, when M is 10 and N=32, X=2 M / N=32. It is worth mentioning that when 2 M When / N is not an integer, in some cases where the sampling ratio N is not strictly required, X can be a pair of 2 M / N Round up.

[0089] Figure 9 It is a schematic structural diagram of the information returned by the counter in the embodiment of the present invention. Compared with the traditional counter, an overflow flag (Overflow Flag, OF) needs to be added to the information returned by the counter 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 discloses a sampling method and a network chip. When the network chip determines that sampling is needed, the network chip performs X adding operation to a counter index after receiving a message, and reads a value returned by a counter, and the returned value includes a value of an overflow mark and the counter index having been subjected to the X-adding operation, wherein X is a preset value, and the value of the overflow mark comprises a first preset value or a second preset value; the first preset value indicates counter overflow after the X-adding operation and the second preset value indicates that counter overflow does not occur after the X operation; the network chip judges whether the value of the overflow mark is the first preset value or not; and if the value of the overflow mark is the first preset value, the network chip carries out sampling.

Description

technical field [0001] The invention relates to communication technology, in particular to a sampling method and a network chip. Background technique [0002] Netflow technology is a statistical and publishing technology based on network flow information. Through the Netflow protocol, the communication traffic of Internet Protocol (Internet Protocol, IP) / Multi-Protocol Label Switching (Multi-Protocol Label Switching, MPLS) network can be analyzed in detail. Analytics and metering, and provides detailed statistics on network operations. The flow information counted by Netflow technology can bring the following applications: network traffic analysis and capacity planning - after a long period of data collection, you can understand the overall network traffic and the occupancy status and change trend of important application bandwidth, user usage Mode and other information to provide decision-making reference for future network planning and upgrades; traffic billing—based on N...

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): H04L12/933
CPCH04L49/109
Inventor姜海明王治春孔玲丽
OwnerZTE CORP