WO2022105691A1 - Method for preventing ipfix message loss, application thereof, and asic chip - Google Patents

Method for preventing ipfix message loss, application thereof, and asic chip Download PDF

Info

Publication number
WO2022105691A1
WO2022105691A1 PCT/CN2021/130419 CN2021130419W WO2022105691A1 WO 2022105691 A1 WO2022105691 A1 WO 2022105691A1 CN 2021130419 W CN2021130419 W CN 2021130419W WO 2022105691 A1 WO2022105691 A1 WO 2022105691A1
Authority
WO
WIPO (PCT)
Prior art keywords
ipfix
flow table
reporting
reason
preventing
Prior art date
Application number
PCT/CN2021/130419
Other languages
French (fr)
Chinese (zh)
Inventor
朱涛
赵茂聪
Original Assignee
苏州盛科通信股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 苏州盛科通信股份有限公司 filed Critical 苏州盛科通信股份有限公司
Publication of WO2022105691A1 publication Critical patent/WO2022105691A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/29Flow control; Congestion control using a combination of thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/50Overload detection or protection within a single switching element
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9084Reactions to storage capacity overflow
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Definitions

  • the invention relates to the technical field of network equipment, in particular to a method for preventing IPFIX message loss, an application thereof, and an ASIC chip.
  • the IPFIX (IP Flow Information Export, IP data flow information output) network mainly includes three devices: the reporting device Export, the collection device Collector, and the analysis device Analyzer, as shown in Figure 7.
  • Export is set to analyze and process the network flow (Flow), extract the flow statistics that meet the conditions, and output the statistical information to the Collector;
  • the Collector is responsible for parsing the data packets (IPFIX) of the Export, and collects the statistical data into the database. It can be analyzed by Analyser (analyzing device); Analyser extracts statistical data from Collector (collecting device), performs subsequent processing, provides basis for various services, and displays it in the form of a graphical interface.
  • IPFIX is based on the concept of "flow".
  • a flow refers to: from the same sub-interface, with the same source and destination IP (Internet Protocol, Internet Protocol) addresses, protocol types, the same source and destination protocol port numbers, and the same ToS (Type of Service, service type) message, usually a seven-tuple. IPFIX will record the statistics of this flow, including: timestamp, number of packets, total number of bytes, etc.
  • IPFIX processing flow of the Export device when the message passes through the ASIC (Application Specific Integrated Circuit) chip, the IPFIX flow table will be generated in the IPFIX engine, and the DMA (Direct Memory Access, direct memory access) will The information is reported to the CPU (Central Processing Unit, central processing unit). After receiving the IPFIX flow table information, the CPU reorganizes the data and sends packets in standard IPFIX format to the Collector device.
  • ASIC Application Specific Integrated Circuit
  • the DMA queue In the DMA processing flow, there is a DMA queue between the ASIC chip and the CPU chip.
  • the queue adopts the first-in, first-out principle.
  • the ASIC chip When the ASIC chip has a DMA message, it writes a message to the DMA queue, and the CPU chip continuously reads from the DMA queue. information.
  • the read message rate of the CPU chip When the read message rate of the CPU chip is lower than the write message rate of the ASIC chip, it will cause the DMA queue messages to accumulate or even overflow. Once overflowed, the ASIC chip cannot continue to write messages temporarily.
  • the IPFIX flow table consists of two parts: flow table feature information (KEY) and flow table record information (RD (Record, record)). All packets with the same KEY will be automatically identified as the same Flow (flow).
  • KEY flow table feature information
  • RD Record, record
  • All packets with the same KEY will be automatically identified as the same Flow (flow).
  • the IPFIX engine in the ASIC chip when it processes a message, it will first update the RD information, and then judge whether a certain reporting condition is met according to the new RD information, and if so, send the event message to the CPU through DMA. .
  • the DMA messages of IPFIX events sent by the ASIC chip to the CPU are becoming more and more frequent, and the ability of the CPU to process these DMA messages gradually become a bottleneck.
  • IPFIX events occur intensively within a certain period of time, the DMA queue will accumulate. Once the DMA queue overflows, new DMA messages will be discarded in the ASIC chip, and there is no subsequent reissue mechanism. The loss of these messages will greatly affect the business functions of IPFIX, such as inaccurate traffic billing and failure to detect network attacks in time.
  • the purpose of the embodiments of the present invention is to provide a method for preventing the loss of an IPFIX message, an application thereof, and an ASIC chip.
  • a method for preventing IPFIX message loss comprising:
  • the IPFIX flow table is traversed based on the set reporting scan period, and according to the current DMA queue situation, it is determined whether to report the flow table record information corresponding to the reserved reporting reason.
  • the method further includes:
  • the method further includes:
  • the report reason with the highest priority in the flow table record information is determined as the reserved report reason.
  • the method also includes:
  • the set reporting scan period is 1/N of the IPFIX flow table aging scan period, where N is a positive integer; and/or,
  • the aging scan timer By multiplexing the aging scan timer, it can traverse the IPFIX flow table according to the set reporting scan cycle.
  • the application also provides an ASIC chip, the ASIC chip includes:
  • the IPFIX engine is set to retain the reporting reason in the record information of the flow table to be reported in the IPFIX flow table when the direct memory read-write DMA queue is full;
  • the IPFIX timer is set to traverse the IPFIX flow table based on the set reporting scan period, and determines whether to report the flow table record information corresponding to the reserved reporting reason according to the current DMA queue situation.
  • the reporting scan period of the IPFIX timer is 1/N of the aging scan period, where N is a positive integer; and/or,
  • the IPFIX timer is a multiplexed aging scan timer.
  • the present application also provides a network switch chip, the network switch chip includes: a kernel and a RAM (Random Access Memory, random access memory), and the kernel is configured to implement the above-mentioned method for preventing IPFIX message loss.
  • the network switch chip includes: a kernel and a RAM (Random Access Memory, random access memory), and the kernel is configured to implement the above-mentioned method for preventing IPFIX message loss.
  • the present application further provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are configured to execute the above-mentioned method for preventing the loss of an IPFIX message.
  • the technical solution of the present application is to retain the reporting reason in the record information of the to-be-reported flow table in the IPFIX flow table when the report of the record information of the to-be-reported flow table in the IPFIX flow table fails, and when traversing the IPFIX flow table according to the reporting scan cycle,
  • the DMA information is reported to the flow table record information of the IPFIX flow table that needs to be supplemented and reported. In this way, the DMA information that fails to be reported can be processed when the CPU chip is idle, to ensure that IPFIX messages will not be lost, and to improve the IPFIX function.
  • FIG. 1 is a flowchart of a method for preventing IPFIX message loss according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of processing IPFIX by a reporting device applying a method for preventing IPFIX message loss according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an ASIC chip reporting DMA information using a method for preventing IPFIX message loss according to an embodiment of the present invention
  • FIG. 4 is a functional schematic diagram of an IPFIX timer in an ASIC chip applying a method for preventing IPFIX message loss according to an embodiment of the present invention
  • FIG. 5 is a block diagram of an ASIC chip applying a method for preventing IPFIX message loss according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of a hardware structure of a network switching chip in an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of the network structure of the prior art IPFIX.
  • Traffic Profiling (traffic overview)
  • Traffic Engineering (traffic engineering)
  • IPFIX Collector can output very rich traffic record information in various chart forms, which is the concept of Traffic Profiling. However, it is only a record of information, and the powerful functions of IPFIX cannot be utilized.
  • IETF also introduced the concept of Traffic Engineering: in the actual operation network, load balancing and redundant backup are often planned, but various protocols are generally planned according to the network. It can be adjusted according to the predetermined route or the principle of the agreement.
  • IPFIX is used to monitor the traffic in the network, and it is found that some data flows are large in a certain period of time, it can be reported to the network administrator for traffic adjustment, so as to allocate and adjust more network bandwidth for related application services and reduce uneven load. situation occurs.
  • setting rules such as routing adjustment, bandwidth allocation, and security policy can be directly bound to the operations on the IPFIX Collector, and network traffic adjustment can be automatically completed.
  • Attack/Intrusion Detection Attack/Intrusion Detection
  • IPFIX can detect network attacks (such as typical IP scans, port scans, DDOS (Distributed denial of service, distributed denial of service) attacks) based on traffic characteristics.
  • network attacks such as typical IP scans, port scans, DDOS (Distributed denial of service, distributed denial of service) attacks
  • DDOS Distributed denial of service, distributed denial of service
  • the method includes:
  • the Export device when it receives a data packet, it will go through the IPFIX engine of the ASIC chip. When a packet passes through the IPFIX engine, it first determines whether the IPFIX feature is enabled. If it is not enabled, the IPFIX engine processing is skipped; if the IPFIX feature is enabled, it enters the IPFIX engine. The engine will extract the flow table feature information of the packet, and find out whether there is a flow (Flow) with the same flow table feature information according to the flow table feature information.
  • Flow flow
  • the Flow already exists, update the corresponding flow table record information; if the Flow does not exist, generate a new Flow, fill in the flow table feature information of the Flow with the flow table feature information of the packet, and update the corresponding flow table record information, For example, packet count, timestamp, etc.
  • the seven-tuple flow table feature information is generally used:
  • TCP Transmission Control Protocol
  • UDP User Datagram Protocol, User Datagram Protocol
  • the IPFIX engine will determine whether the flow table record information of the Flow satisfies the reporting condition, and if so, fill in the reporting reason in the flow table record information of the Flow as the corresponding reporting condition. At this time, it is necessary to report the flow information in time, so that Analyzer can perform network monitoring, traffic accounting, network attack detection and other functions in a timely manner.
  • common reporting conditions include:
  • the IPFIX engine will report the flow table record information to be reported in the IPFIX flow table based on the reporting reason. And because the IPFIX engine sends information to the CPU through DMA during the reporting process, the flow table record information successfully reported here is referred to as "DMA information" in this application.
  • the IPFIX engine will query whether the DMA queue is full. If it is not full, it will report the DMA information according to the reporting reason in the flow table record information to be reported. That is, the DMA information to be reported is put into the DMA queue, and the reporting reasons in the corresponding flow table record information are cleared to complete the normal reporting.
  • the DMA queue is full, indicating that the reading processing speed of the current CPU chip cannot keep up with the writing speed of the IPFIX engine. At this time, retaining the reporting reason in the record information of the flow table to be reported in the IPFIX flow table can prevent the record information of the IPFIX flow table from being discarded after a reporting failure.
  • the scanning of the IPFIX flow table can be completed by the IPFIX timer. Specifically, it can scan all the IPFIX flow tables in turn according to the Flow ID (Flow Identity, data flow identity), and determine the IPFIX corresponding to the Flow ID. Whether the flow table is valid, if invalid, skip to scan the next IPFIX flow table.
  • Flow ID Flow Identity, data flow identity
  • IPFIX flow table corresponding to the Flow ID is valid, it is determined whether the current scan corresponds to the aging scan period of the IPFIX flow table. If yes, when the currently scanned IPFIX flow table meets the aging condition, write the aging event in the report reason in the flow table record information.
  • judging whether an IPFIX flow table satisfies the aging condition may be judging whether a new packet hits the IPFIX flow table within an aging scan period, and if not, then judging that the IPFIX flow table needs to be aged out, and Clear the IPFIX flow table.
  • the reporting reasons in the flow table record information to be reported to IPFIX are: flow table aging deletion/packet jitter too large/packet TTL change, and the priority of these reporting reasons is configured as packet jitter too much Large > flow table aging and deletion > packet TTL changes, when the packet jitter is too large, the flow table record information of the IPFIX flow table will be reported. If the priority is configured as flow table aging deletion > packet jitter is too large > packet TTL changes, the flow table record information of the IPFIX flow table will be reported with the flow table aging deletion during reporting, and after the report is successful Delete the corresponding IPFIX flow table.
  • the DMA information to be reported is generated according to the reserved reporting reason and put into the DMA queue; and if the DMA is full, the reporting reason is kept.
  • the reporting cause in the flow table record information of the IPFIX flow table is not empty, the aging deletion operation of the IPFIX flow table is not performed. In this way, even if the reason for the report in the flow table record information is that the flow table is deleted due to aging, the aging deletion operation of the IPFIX flow table will not be performed until the corresponding flow table record information is successfully reported, preventing the loss of IPFIX messages.
  • the set reporting scan period may be 1/N of the aging scan period of the IPFIX flow table, where N is a positive integer.
  • N is a positive integer.
  • the timer traverses the IPFIX flow table according to the set reporting scan cycle, saving timer resources.
  • the relationship between the set reporting scan period and the aging scan period may not need to be a multiple of N, and an additionally set timer may be used to specifically perform the reporting scan operation.
  • the present application further provides a specific implementation manner of an ASIC chip.
  • the ASIC chip includes an IPFIX engine and an IPFIX timer.
  • the IPFIX engine is set to retain the reporting reason in the record information of the flow table to be reported in the IPFIX flow table when the direct memory read and write DMA queue is full;
  • the IPFIX timer is set to traverse the IPFIX flow table based on the set reporting scan period, and determine whether to report the flow table record information corresponding to the reserved reporting reason according to the current DMA queue situation.
  • the reporting scan period of the IPFIX timer is 1/N of the aging scan period, where N is a positive integer.
  • the IPFIX timer may reuse the original aging scan timer to save timer resources.
  • the relationship between the set reporting scan period and the aging scan period may not need to have a multiple of N relationship, and an additionally set timer is used to specifically perform the reporting scan operation.
  • ASIC chip device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects to the method embodiment.
  • technical details not disclosed in the device embodiments of the present application please refer to the descriptions of the method embodiments of the present application for understanding.
  • the ASIC chip here is integrated with the PHY chip, the MAC chip and the CPU chip, so that many external components can be removed, so that each chip can achieve a good match, and at the same time, it can also reduce the lead The number of pins, reduce the chip area.
  • the above data reading and writing method is implemented in the form of a software function module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
  • the technical solutions of the embodiments of the present application essentially or the parts that make contributions to the prior art not only exist in the chip implementation, but can also be embodied in the form of software products, and the computer software products are stored in a
  • the storage medium includes several instructions for causing a switch chip to execute all or part of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk (USB (Universal Serial Bus, Universal Serial Bus) flash disk), mobile hard disk, read only memory (Read Only Memory, ROM), magnetic disk or optical disk and other programs that can store program codes medium.
  • U disk USB (Universal Serial Bus, Universal Serial Bus) flash disk
  • mobile hard disk mobile hard disk
  • read only memory Read Only Memory, ROM
  • magnetic disk or optical disk and other programs that can store program codes medium.
  • the embodiments of the present application are not limited to any specific combination of hardware and software.
  • an embodiment of the present application provides a network switch chip, including a memory, a kernel, and a RAM, where the memory stores a computer program that can be run through the kernel, and the kernel implements the above embodiments when the computer program is executed Provided steps in a method for preventing IPFIX message loss, the method comprising:
  • the IPFIX flow table is traversed based on the set reporting scan period, and according to the current DMA queue situation, it is determined whether to report the flow table record information corresponding to the reserved reporting reason.
  • the core of the network switching chip may also be configured to implement the steps in the method for preventing the loss of an IPFIX message provided by the foregoing embodiment, which will not be repeated here.
  • the embodiments of the present application provide a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are configured to execute the methods for preventing IPFIX message loss provided by the above embodiments.
  • Fig. 6 is a schematic diagram of a hardware entity of a network switching chip in the embodiment of the application, and as shown in Fig. 6, the hardware entity of this switching chip includes: a kernel, a communication interface and a memory, wherein:
  • the kernel usually controls the overall operation of the network switch chip.
  • the communication interface enables the network switch chip to communicate with other terminals or servers through the network.
  • the memory is configured to store instructions and applications executable by the kernel, and can also cache data (for example, image data, audio data, voice communication data and video communication data) to be processed or processed by each module in the kernel and the network switch chip, It can be implemented by random access memory (Random Access Memory, RAM).
  • RAM Random Access Memory
  • the technical solution of the present application is to retain the reporting reason in the record information of the to-be-reported flow table in the IPFIX flow table when the report of the record information of the to-be-reported flow table in the IPFIX flow table fails, and when traversing the IPFIX flow table according to the reporting scan cycle,
  • the DMA information is reported to the flow table record information of the IPFIX flow table that needs to be supplemented and reported. In this way, the DMA information that fails to be reported can be processed when the CPU chip is idle, to ensure that IPFIX messages will not be lost, and to improve the IPFIX function.
  • embodiments of one or more of the embodiments of this specification may be provided as a method, system or computer program product. Accordingly, one or more embodiments of this specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of this specification may employ one or more computer-usable storage media (including, but not limited to, magnetic disk storage, CD-ROM (Compact Disc Read Only Memory, compact disc read only memory) having computer usable program code embodied therein. ), optical storage, etc.) in the form of a computer program product.
  • computer-usable storage media including, but not limited to, magnetic disk storage, CD-ROM (Compact Disc Read Only Memory, compact disc read only memory) having computer usable program code embodied therein. ), optical storage, etc.
  • One or more embodiments of this specification may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer.
  • program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types.
  • One or more embodiments of this specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network.
  • program modules may be located in both local and remote computer storage media including storage devices.

Abstract

The embodiments of the present invention provide a method for preventing IPFIX message loss, an application thereof, and an ASIC chip. The method comprises: querying whether a direct memory access (DMA) queue is full; if so, reserving a reporting reason in flow table recording information to be reported in an IPFIX flow table; and traversing the IPFIX flow table on the basis of a set reporting and scanning period, and determining, according to the current DMA queue situation, whether to report the flow table recording information corresponding to the reserved reporting reason. When the reporting of a flow table recording information to be reported in the IPFIX flow table fails, the reporting reason in the flow table recording information to be reported in the IPFIX flow table is reserved, and when the IPFIX flow table is traversed according to the reporting and scanning period, DMA information is reported for the flow table recording information of the IPFIX flow table needing to be reported supplementarily, so that the DMA information, the reporting of which failed can be processed when a CPU chip is idle, thereby ensuring that no IPFIX message is lost, and improving the IPFIX function.

Description

防止IPFIX消息丢失的方法及其应用、ASIC芯片Method for preventing IPFIX message loss and its application, ASIC chip
本申请要求于2020年11月23日提交中国专利局、申请号为202011321734.1、发明名称“防止IPFIX消息丢失的方法及其应用、ASIC芯片”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on November 23, 2020 with the application number 202011321734.1 and the invention title "Method for Preventing IPFIX Message Loss and Its Application, ASIC Chip", the entire contents of which are incorporated by reference in this application.
技术领域technical field
本发明涉及网络设备技术领域,具体涉及一种防止IPFIX消息丢失的方法及其应用、ASIC芯片。The invention relates to the technical field of network equipment, in particular to a method for preventing IPFIX message loss, an application thereof, and an ASIC chip.
背景技术Background technique
IPFIX(IP Flow Information Export,IP数据流信息输出)组网中主要包括三个设备:上报设备Export、收集设备Collector、分析设备Analyzer,如图7所示。Export被设置为对网络流(Flow)进行分析处理,提取符合条件的流统计信息,并将统计信息输出给Collector;Collector负责解析Export的数据报文(IPFIX),把统计数据收集到数据库中,可供Analyser(分析设备)进行解析;Analyser从Collector(收集设备)中提取统计数据,进行后续处理,为各种业务提供依据,并以图形界面的形式显示出来。The IPFIX (IP Flow Information Export, IP data flow information output) network mainly includes three devices: the reporting device Export, the collection device Collector, and the analysis device Analyzer, as shown in Figure 7. Export is set to analyze and process the network flow (Flow), extract the flow statistics that meet the conditions, and output the statistical information to the Collector; the Collector is responsible for parsing the data packets (IPFIX) of the Export, and collects the statistical data into the database. It can be analyzed by Analyser (analyzing device); Analyser extracts statistical data from Collector (collecting device), performs subsequent processing, provides basis for various services, and displays it in the form of a graphical interface.
IPFIX是基于“流”的概念,一个流是指:来自相同的子接口,有相同的源和目的IP(Internet Protocol,互联网协议)地址、协议类型,相同的源和目的协议端口号,以及相同ToS(Type of Service,服务类型)的报文,通常为七元组。IPFIX会记录这个流的统计信息,包括:时间戳,报文数,总的字节数等。IPFIX is based on the concept of "flow". A flow refers to: from the same sub-interface, with the same source and destination IP (Internet Protocol, Internet Protocol) addresses, protocol types, the same source and destination protocol port numbers, and the same ToS (Type of Service, service type) message, usually a seven-tuple. IPFIX will record the statistics of this flow, including: timestamp, number of packets, total number of bytes, etc.
在Export设备IPFIX处理流程中,当报文经过ASIC(Application Specific Integrated Circuit,特殊应用集成电路)芯片时,在IPFIX引擎中会生成IPFIX流表,并通过DMA(Direct Memory Access,直接存储器访问)将该信息上报给CPU(Central Processing Unit,中央处理器)。CPU收到 IPFIX流表信息后,重新组织数据,发送标准IPFIX格式的报文给Collector设备。In the IPFIX processing flow of the Export device, when the message passes through the ASIC (Application Specific Integrated Circuit) chip, the IPFIX flow table will be generated in the IPFIX engine, and the DMA (Direct Memory Access, direct memory access) will The information is reported to the CPU (Central Processing Unit, central processing unit). After receiving the IPFIX flow table information, the CPU reorganizes the data and sends packets in standard IPFIX format to the Collector device.
在DMA处理流程中,ASIC芯片和CPU芯片之间存在DMA队列,该队列采取先入先出原则,ASIC芯片有DMA消息时,就往该DMA队列中写消息,CPU芯片则不断从DMA队列中读消息。当CPU芯片的读消息速率低于ASIC芯片的写消息速率时,就会导致DMA队列消息堆积甚至溢出,一旦溢出,ASIC芯片就暂时无法继续写消息了。In the DMA processing flow, there is a DMA queue between the ASIC chip and the CPU chip. The queue adopts the first-in, first-out principle. When the ASIC chip has a DMA message, it writes a message to the DMA queue, and the CPU chip continuously reads from the DMA queue. information. When the read message rate of the CPU chip is lower than the write message rate of the ASIC chip, it will cause the DMA queue messages to accumulate or even overflow. Once overflowed, the ASIC chip cannot continue to write messages temporarily.
IPFIX流表由流表特征信息(KEY)和流表记录信息(RD(Record,记录))两部分组成,所有KEY相同的报文会被自动识别成同一条Flow(流)。现有技术中,当ASIC芯片中的IPFIX引擎处理一个报文时,会先更新RD信息,然后根据新的RD信息判断是否满足某个上报条件,如果满足,就通过DMA向CPU发送该事件消息。随着ASIC芯片处理报文的速度越来越快,支持的IPFIX流表规格越来越多,导致ASIC芯片向CPU发送的IPFIX事件的DMA消息也越来越频繁,CPU处理这些DMA消息的能力渐渐成为一个瓶颈。当某段时间内密集发生IPFIX事件时,就会导致DMA队列堆积,一旦DMA队列溢出,新的DMA消息在ASIC芯片中会被丢弃,后续也没有补发机制。这些消息丢失,会大大影响IPFIX的业务功能,例如导致流量计费不准、没有及时检测出网络攻击等。The IPFIX flow table consists of two parts: flow table feature information (KEY) and flow table record information (RD (Record, record)). All packets with the same KEY will be automatically identified as the same Flow (flow). In the prior art, when the IPFIX engine in the ASIC chip processes a message, it will first update the RD information, and then judge whether a certain reporting condition is met according to the new RD information, and if so, send the event message to the CPU through DMA. . As the ASIC chip processes packets faster and more and more IPFIX flow table specifications are supported, the DMA messages of IPFIX events sent by the ASIC chip to the CPU are becoming more and more frequent, and the ability of the CPU to process these DMA messages gradually become a bottleneck. When IPFIX events occur intensively within a certain period of time, the DMA queue will accumulate. Once the DMA queue overflows, new DMA messages will be discarded in the ASIC chip, and there is no subsequent reissue mechanism. The loss of these messages will greatly affect the business functions of IPFIX, such as inaccurate traffic billing and failure to detect network attacks in time.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明实施例的目的在于提供一种防止IPFIX消息丢失的方法及其应用、ASIC芯片。In view of this, the purpose of the embodiments of the present invention is to provide a method for preventing the loss of an IPFIX message, an application thereof, and an ASIC chip.
为了实现上述目的,本发明一实施例提供的技术方案如下:In order to achieve the above purpose, the technical solution provided by an embodiment of the present invention is as follows:
一种防止IPFIX消息丢失的方法,所述方法包括:A method for preventing IPFIX message loss, the method comprising:
查询直接内存读写DMA队列是否已满;若是,Query whether the direct memory read and write DMA queue is full; if so,
保留IPFIX流表中待上报流表记录信息中的上报原因;Retain the reason for reporting in the record information of the flow table to be reported in the IPFIX flow table;
基于设定的上报扫描周期遍历IPFIX流表,并根据当前DMA队列情况,确定是否将所述保留的上报原因对应的流表记录信息进行上报。The IPFIX flow table is traversed based on the set reporting scan period, and according to the current DMA queue situation, it is determined whether to report the flow table record information corresponding to the reserved reporting reason.
一实施例中,所述方法还包括:In one embodiment, the method further includes:
判断当前扫描是否对应IPFIX流表老化扫描周期;若是,Determine whether the current scan corresponds to the IPFIX flow table aging scan cycle; if so,
则在当前扫描的IPFIX流表满足老化条件时,在其流表记录信息的上报原因中写入老化事件。Then, when the currently scanned IPFIX flow table meets the aging condition, the aging event is written in the report reason of the flow table record information.
一实施例中,所述方法还包括:In one embodiment, the method further includes:
在遍历IPFIX流表时,将流表记录信息中优先级最高的上报原因确定为所述保留的上报原因。When traversing the IPFIX flow table, the report reason with the highest priority in the flow table record information is determined as the reserved report reason.
一实施例中,所述方法还包括:In one embodiment, the method also includes:
在IPFIX流表的流表记录信息中的上报原因不为空时,不执行对该IPFIX流表的老化删除操作。When the report reason in the flow table record information of the IPFIX flow table is not empty, the aging deletion operation of the IPFIX flow table is not performed.
一实施例中,所述设定的上报扫描周期为IPFIX流表老化扫描周期的1/N,其中N为正整数;和/或,In one embodiment, the set reporting scan period is 1/N of the IPFIX flow table aging scan period, where N is a positive integer; and/or,
基于设定的上报扫描周期遍历IPFIX流表,具体包括:Traverse the IPFIX flow table based on the set reporting scan cycle, including:
通过复用老化扫描定时器以根据设定的上报扫描周期遍历IPFIX流表。By multiplexing the aging scan timer, it can traverse the IPFIX flow table according to the set reporting scan cycle.
一实施例中,基于设定的上报扫描周期遍历IPFIX流表,并根据当前DMA队列情况,确定是否将所述保留的上报原因对应的流表记录信息进行上报,具体包括:In one embodiment, traverse the IPFIX flow table based on the set reporting scan period, and determine whether to report the flow table record information corresponding to the reserved reporting reason according to the current DMA queue situation, specifically including:
在DMA队列未满时,根据所述保留的上报原因生成待上报的DMA信息,并放入所述DMA队列中;When the DMA queue is not full, generate the DMA information to be reported according to the reserved reporting reason, and put it into the DMA queue;
在DMA队列已满时,继续保留所述上报原因。When the DMA queue is full, the reporting reason continues to be retained.
本申请还提供一种ASIC芯片,所述ASIC芯片包括:The application also provides an ASIC chip, the ASIC chip includes:
IPFIX引擎,被设置为在直接内存读写DMA队列已满时,保留IPFIX流表中待上报流表记录信息中的上报原因;The IPFIX engine is set to retain the reporting reason in the record information of the flow table to be reported in the IPFIX flow table when the direct memory read-write DMA queue is full;
IPFIX定时器,被设置为基于设定的上报扫描周期遍历IPFIX流表,并根据当前DMA队列情况,确定是否将所述保留的上报原因对应的流表记录信息进行上报。The IPFIX timer is set to traverse the IPFIX flow table based on the set reporting scan period, and determines whether to report the flow table record information corresponding to the reserved reporting reason according to the current DMA queue situation.
一实施例中,所述IPFIX定时器的上报扫描周期为老化扫描周期的1/N,其中N为正整数;和/或,In an embodiment, the reporting scan period of the IPFIX timer is 1/N of the aging scan period, where N is a positive integer; and/or,
所述IPFIX定时器为复用的老化扫描定时器。The IPFIX timer is a multiplexed aging scan timer.
本申请还提供一种网络交换芯片,所述网络交换芯片包括:内核和RAM(Random Access Memory,随机存取存储器),所述内核被设置为实现上述提供的防止IPFIX消息丢失的方法。The present application also provides a network switch chip, the network switch chip includes: a kernel and a RAM (Random Access Memory, random access memory), and the kernel is configured to implement the above-mentioned method for preventing IPFIX message loss.
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,该计算机可执行指令配置为执行上述提供的防止IPFIX消息丢失的方法。The present application further provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are configured to execute the above-mentioned method for preventing the loss of an IPFIX message.
本申请的技术方案通过在IPFIX流表中的待上报流表记录信息上报失败时,保留IPFIX流表中待上报流表记录信息中的上报原因,并在按照上报扫描周期遍历IPFIX流表时,对需要补充上报的IPFIX流表的流表记录信息上报DMA信息,这样,可以在CPU芯片空闲时处理上报失败的DMA信息,确保IPFIX消息不会丢失,改善IPFIX功能。The technical solution of the present application is to retain the reporting reason in the record information of the to-be-reported flow table in the IPFIX flow table when the report of the record information of the to-be-reported flow table in the IPFIX flow table fails, and when traversing the IPFIX flow table according to the reporting scan cycle, The DMA information is reported to the flow table record information of the IPFIX flow table that needs to be supplemented and reported. In this way, the DMA information that fails to be reported can be processed when the CPU chip is idle, to ensure that IPFIX messages will not be lost, and to improve the IPFIX function.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根 据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments described in the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为本发明一实施例防止IPFIX消息丢失的方法的流程图;1 is a flowchart of a method for preventing IPFIX message loss according to an embodiment of the present invention;
图2为本发明一实施例应用防止IPFIX消息丢失的方法的上报设备处理IPFIX的示意图;2 is a schematic diagram of processing IPFIX by a reporting device applying a method for preventing IPFIX message loss according to an embodiment of the present invention;
图3为本发明一实施例应用防止IPFIX消息丢失的方法的ASIC芯片上报DMA信息的示意图;3 is a schematic diagram of an ASIC chip reporting DMA information using a method for preventing IPFIX message loss according to an embodiment of the present invention;
图4为本发明一实施例应用防止IPFIX消息丢失的方法的ASIC芯片中,IPFIX定时器的功能示意图;4 is a functional schematic diagram of an IPFIX timer in an ASIC chip applying a method for preventing IPFIX message loss according to an embodiment of the present invention;
图5为本发明一实施例应用防止IPFIX消息丢失的方法的ASIC芯片的模块图;5 is a block diagram of an ASIC chip applying a method for preventing IPFIX message loss according to an embodiment of the present invention;
图6为本发明一实施例中网络交换芯片的硬件结构示意图;6 is a schematic diagram of a hardware structure of a network switching chip in an embodiment of the present invention;
图7为现有技术IPFIX的组网构成示意图。FIG. 7 is a schematic diagram of the network structure of the prior art IPFIX.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明实施例中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the technical solutions in the embodiments of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. The described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
在介绍本申请防止IPFIX消息丢失的方法之前,首先介绍几个典型的IPFIX应用场景。Before introducing the method for preventing the loss of IPFIX messages in this application, several typical IPFIX application scenarios are first introduced.
1、Usage-based Accounting(基于使用流量的计费)1. Usage-based Accounting (billing based on usage traffic)
以往在网络运营商中的流量计费一般只是简单的基于用户的上传、下 载流量。由于IPFIX可以精确到目的IP、协议端口等字段,因此流量计费就可以基于应用服务的特点来分段收费。In the past, the traffic billing in network operators was generally simply based on the user's upload and download traffic. Since IPFIX can be accurate to fields such as destination IP, protocol port, etc., traffic charging can be charged in sections based on the characteristics of application services.
2、Traffic Profiling(流量概图)、Traffic Engineering:(流量工程)2. Traffic Profiling (traffic overview), Traffic Engineering: (traffic engineering)
通过IPFIX Exporter的记录输出,IPFIX Collector可以以各种图表形式输出非常丰富的流量记录信息,这就是Traffic Profiling的概念。然而,只是信息的记录,还无法利用IPFIX的强大功能,IETF同时推出了Traffic Engineering的概念:在实际运营网络中,经常规划了负载均衡和冗余备份,但各种协议一般都是按网络规划时预定的路线、或协议原理进行调整。而如果采用IPFIX监控网络中的流量,发现某段时间某些数据流较大,可以汇报给网络管理员进行流量调整,以分配、调整更多的网络带宽供给相关应用服务使用,减少负载不均的情况发生。甚至于,可以更智能把路由调整、带宽分配、安全策略等设置规则直接绑定到IPFIX Collector上的操作上,自动完成网络流量调整。Through the record output of IPFIX Exporter, IPFIX Collector can output very rich traffic record information in various chart forms, which is the concept of Traffic Profiling. However, it is only a record of information, and the powerful functions of IPFIX cannot be utilized. IETF also introduced the concept of Traffic Engineering: in the actual operation network, load balancing and redundant backup are often planned, but various protocols are generally planned according to the network. It can be adjusted according to the predetermined route or the principle of the agreement. However, if IPFIX is used to monitor the traffic in the network, and it is found that some data flows are large in a certain period of time, it can be reported to the network administrator for traffic adjustment, so as to allocate and adjust more network bandwidth for related application services and reduce uneven load. situation occurs. Even more intelligently, setting rules such as routing adjustment, bandwidth allocation, and security policy can be directly bound to the operations on the IPFIX Collector, and network traffic adjustment can be automatically completed.
3、Attack/Intrusion Detection:攻击/入侵检测3. Attack/Intrusion Detection: Attack/Intrusion Detection
从上述第二个应用场景的描述,可以得知IPFIX可以根据流量特点,进行网络攻击的检测(比如典型的IP扫描、端口扫描、DDOS(Distributed denial of service,分布式拒绝服务)攻击)。而采用标准的IPFIX协议,还可以像一般主机端病毒防护一样,采用“特征库”升级来阻止最新的网络攻击。From the description of the second application scenario above, it can be known that IPFIX can detect network attacks (such as typical IP scans, port scans, DDOS (Distributed denial of service, distributed denial of service) attacks) based on traffic characteristics. Using the standard IPFIX protocol, you can also use the "signature library" upgrade to prevent the latest network attacks like the general host-side virus protection.
参图1,介绍本申请防止IPFIX消息丢失的方法的一具体实施方式。在本实施方式中,该方法包括:Referring to FIG. 1, a specific implementation manner of the method for preventing the loss of an IPFIX message according to the present application is introduced. In this embodiment, the method includes:
S11、查询直接内存读写DMA队列是否已满。S11. Query whether the direct memory read/write DMA queue is full.
配合参图2和图3,当Export设备收到一个数据报文时,会经过ASIC芯片的IPFIX引擎。报文在经过IPFIX引擎时,首先判断是否使能了IPFIX特性,如果没有使能,跳过IPFIX引擎处理;如果已经使能了IPFIX特性,则进入IPFIX引擎。在引擎中会提取该报文的流表特征信息,并根据该流 表特征信息去查找是否存在相同流表特征信息的流(Flow)。如果Flow已经存在,则更新对应的流表记录信息;如果Flow不存在,则生成新的Flow,用报文的流表特征信息填写Flow的流表特征信息,并更新对应的流表记录信息,例如报文计数、时间戳等。With reference to Figure 2 and Figure 3, when the Export device receives a data packet, it will go through the IPFIX engine of the ASIC chip. When a packet passes through the IPFIX engine, it first determines whether the IPFIX feature is enabled. If it is not enabled, the IPFIX engine processing is skipped; if the IPFIX feature is enabled, it enters the IPFIX engine. The engine will extract the flow table feature information of the packet, and find out whether there is a flow (Flow) with the same flow table feature information according to the flow table feature information. If the Flow already exists, update the corresponding flow table record information; if the Flow does not exist, generate a new Flow, fill in the flow table feature information of the Flow with the flow table feature information of the packet, and update the corresponding flow table record information, For example, packet count, timestamp, etc.
示意性地,对于IPFIX流表而言,一般使用七元组流表特征信息:Illustratively, for the IPFIX flow table, the seven-tuple flow table feature information is generally used:
1、源IP地址1. Source IP address
2、目的IP地址2. Destination IP address
3、TCP(Transmission Control Protocol,传输控制协议)/UDP(UDP,User Datagram Protocol,用户数据包协议)源端口3. TCP (Transmission Control Protocol, Transmission Control Protocol)/UDP (UDP, User Datagram Protocol, User Datagram Protocol) source port
4、TCP/UDP目的端口4. TCP/UDP destination port
5、三层协议类型5. Layer 3 protocol type
6、服务类型(Type-of-service)字节6. Type-of-service bytes
7、输入逻辑接口7. Input logic interface
接着,IPFIX引擎会判断Flow的流表记录信息是否满足上报条件,如果满足,则将Flow的流表记录信息中的上报原因填写为对应的上报条件。此时,就需要及时上报该Flow信息,方便Analyser及时进行网络监控、流量计费、网络攻击检测等功能。示意性地,常见的上报条件包括:Next, the IPFIX engine will determine whether the flow table record information of the Flow satisfies the reporting condition, and if so, fill in the reporting reason in the flow table record information of the Flow as the corresponding reporting condition. At this time, it is necessary to report the flow information in time, so that Analyzer can perform network monitoring, traffic accounting, network attack detection and other functions in a timely manner. Illustratively, common reporting conditions include:
1、新流产生1. New flow generation
2、流表老化删除2. Flow table aging deletion
3、报文总计数超过设定的阈值3. The total number of packets exceeds the set threshold
4、报文总字节数超过设定的阈值4. The total number of bytes of the message exceeds the set threshold
5、报文时间戳超过设定的阈值5. The packet timestamp exceeds the set threshold
6、TCP(Transmission Control Protocol,传输控制协议)连接断开6. The TCP (Transmission Control Protocol) connection is disconnected
7、报文抖动过大7. Packet jitter is too large
8、报文延迟过大8. The message delay is too large
9、报文TTL(Time To Live,生存时间值)发生变化9. Packet TTL (Time To Live, time-to-live value) changes
10、报文丢弃原因改变10. The reason for discarding packets is changed
11、丢弃报文计数超过设定的阈值11. The count of discarded packets exceeds the set threshold
12、报文目的地信息发生改变12. The message destination information has changed
通常地,IPFIX引擎会基于上报原因将IPFIX流表中待上报的流表记录信息进行上报。又因为在上报过程中,IPFIX引擎是通过DMA向CPU发送信息,故本申请中将这里上报成功的流表记录信息称之为“DMA信息”。Generally, the IPFIX engine will report the flow table record information to be reported in the IPFIX flow table based on the reporting reason. And because the IPFIX engine sends information to the CPU through DMA during the reporting process, the flow table record information successfully reported here is referred to as "DMA information" in this application.
此时,IPFIX引擎会查询DMA队列是否已满,如果未满,则根据待上报流表记录信息中的上报原因上报DMA信息。也即将待上报的DMA信息放入DMA队列中,并清空相应流表记录信息中的上报原因,完成正常上报。At this time, the IPFIX engine will query whether the DMA queue is full. If it is not full, it will report the DMA information according to the reporting reason in the flow table record information to be reported. That is, the DMA information to be reported is put into the DMA queue, and the reporting reasons in the corresponding flow table record information are cleared to complete the normal reporting.
S12、若DMA队列已满,保留IPFIX流表中待上报流表记录信息中的上报原因。S12. If the DMA queue is full, keep the reporting reason in the record information of the flow table to be reported in the IPFIX flow table.
DMA队列已满,说明当前CPU芯片的读取处理速度跟不上IPFIX引擎的写入速度。此时保留IPFIX流表中待上报流表记录信息中的上报原因可以避免IPFIX流表记录信息在一次上报失败后会被丢弃。The DMA queue is full, indicating that the reading processing speed of the current CPU chip cannot keep up with the writing speed of the IPFIX engine. At this time, retaining the reporting reason in the record information of the flow table to be reported in the IPFIX flow table can prevent the record information of the IPFIX flow table from being discarded after a reporting failure.
S13、基于设定的上报扫描周期遍历IPFIX流表,并根据当前DMA队列情况,确定是否将所述保留的上报原因对应的流表记录信息进行上报。S13, traverse the IPFIX flow table based on the set reporting scan period, and determine whether to report the flow table record information corresponding to the reserved reporting reason according to the current DMA queue situation.
配合参图4,IPFIX流表的扫描可以通过IPFIX定时器完成,具体地,可以是根据Flow ID(Flow Identity,数据流身份标识)依次扫描所有的IPFIX流表,并判断该Flow ID对应的IPFIX流表是否有效,如果无效, 则跳转扫描下一条IPFIX流表。With reference to Figure 4, the scanning of the IPFIX flow table can be completed by the IPFIX timer. Specifically, it can scan all the IPFIX flow tables in turn according to the Flow ID (Flow Identity, data flow identity), and determine the IPFIX corresponding to the Flow ID. Whether the flow table is valid, if invalid, skip to scan the next IPFIX flow table.
如果Flow ID对应的IPFIX流表有效,则判断当前扫描是否对应IPFIX流表老化扫描周期。如果是,则在当前扫描的IPFIX流表满足老化条件时,在其流表记录信息中的上报原因中写入老化事件。示意性地,判断一个IPFIX流表是否满足老化条件可以是判断其在一个老化扫描周期内是否有新的报文命中该IPFIX流表,如果没有,则判断该IPFIX流表需要被老化掉,并清空该IPFIX流表。If the IPFIX flow table corresponding to the Flow ID is valid, it is determined whether the current scan corresponds to the aging scan period of the IPFIX flow table. If yes, when the currently scanned IPFIX flow table meets the aging condition, write the aging event in the report reason in the flow table record information. Illustratively, judging whether an IPFIX flow table satisfies the aging condition may be judging whether a new packet hits the IPFIX flow table within an aging scan period, and if not, then judging that the IPFIX flow table needs to be aged out, and Clear the IPFIX flow table.
由于可能不断地会有报文经过ASIC芯片的IPFIX引擎,因此对于IPFIX流表而言,可能会不断地有新的上报条件被写入流表记录信息的上报原因中。而在IPFIX定时器遍历IPFIX流表时,会将流表记录信息中优先级最高的上报原因确定为上述保留的上报原因。Since packets may constantly pass through the IPFIX engine of the ASIC chip, for the IPFIX flow table, new reporting conditions may be continuously written into the reporting reason of the flow table record information. When the IPFIX timer traverses the IPFIX flow table, the report reason with the highest priority in the flow table record information is determined as the above reserved report reason.
例如,一个待上报IPFIX的流表记录信息中的上报原因有:流表老化删除/报文抖动过大/报文TTL发生变化,而对这几个上报原因的优先级配置为报文抖动过大>流表老化删除>报文TTL发生变化,则在上报时会以报文抖动过大将IPFIX流表的流表记录信息进行上报。而如果优先级配置为流表老化删除>报文抖动过大>报文TTL发生变化,则在上报时会以流表老化删除将IPFIX流表的流表记录信息进行上报,并在上报成功后删除对应的IPFIX流表。For example, the reporting reasons in the flow table record information to be reported to IPFIX are: flow table aging deletion/packet jitter too large/packet TTL change, and the priority of these reporting reasons is configured as packet jitter too much Large > flow table aging and deletion > packet TTL changes, when the packet jitter is too large, the flow table record information of the IPFIX flow table will be reported. If the priority is configured as flow table aging deletion > packet jitter is too large > packet TTL changes, the flow table record information of the IPFIX flow table will be reported with the flow table aging deletion during reporting, and after the report is successful Delete the corresponding IPFIX flow table.
上报过程中,在DMA队列未满时,根据保留的上报原因生成待上报的DMA信息,并放入DMA队列中;而若DMA已满时,继续保留上报原因。并且,在IPFIX流表的流表记录信息中的上报原因不为空时,不执行对该IPFIX流表的老化删除操作。这样,即使是在流表记录信息中上报原因有流表老化删除时,也会在将对应的流表记录信息上报成功后才会执行IPFIX流表的老化删除操作,防止IPFIX消息丢失。During the reporting process, when the DMA queue is not full, the DMA information to be reported is generated according to the reserved reporting reason and put into the DMA queue; and if the DMA is full, the reporting reason is kept. Moreover, when the reporting cause in the flow table record information of the IPFIX flow table is not empty, the aging deletion operation of the IPFIX flow table is not performed. In this way, even if the reason for the report in the flow table record information is that the flow table is deleted due to aging, the aging deletion operation of the IPFIX flow table will not be performed until the corresponding flow table record information is successfully reported, preventing the loss of IPFIX messages.
本申请的实施例中,设定的上报扫描周期可以为IPFIX流表老化扫描周期的1/N,其中N为正整数。这样,对于IPFIX定时器而言,其在执行 按照上报扫描周期遍历扫描IPFIX流表时,也不会影响老化扫描的进行;并且,在这样的实施例中,可以通过复用原有的老化扫描定时器以根据设定的上报扫描周期遍历IPFIX流表,节省定时器资源。当然,在其它的实施例中,该设定的上报扫描周期和老化扫描周期之间也可以不需要具有N倍数的关系,并且可以通过额外设置的定时器来专门进行上报扫描操作。In the embodiment of the present application, the set reporting scan period may be 1/N of the aging scan period of the IPFIX flow table, where N is a positive integer. In this way, for the IPFIX timer, when it performs traversal scanning of the IPFIX flow table according to the reporting scan period, it will not affect the progress of the aging scan; and, in such an embodiment, the original aging scan can be reused by multiplexing. The timer traverses the IPFIX flow table according to the set reporting scan cycle, saving timer resources. Of course, in other embodiments, the relationship between the set reporting scan period and the aging scan period may not need to be a multiple of N, and an additionally set timer may be used to specifically perform the reporting scan operation.
参图5,本申请还提供一种ASIC芯片的具体实施方式。在本实施方式中,该ASIC芯片包括IPFIX引擎和IPFIX定时器。Referring to FIG. 5 , the present application further provides a specific implementation manner of an ASIC chip. In this embodiment, the ASIC chip includes an IPFIX engine and an IPFIX timer.
IPFIX引擎被设置为在直接内存读写DMA队列已满时,保留IPFIX流表中待上报流表记录信息中的上报原因;The IPFIX engine is set to retain the reporting reason in the record information of the flow table to be reported in the IPFIX flow table when the direct memory read and write DMA queue is full;
IPFIX定时器被设置为基于设定的上报扫描周期遍历IPFIX流表,并根据当前DMA队列情况,确定是否将所述保留的上报原因对应的流表记录信息进行上报。The IPFIX timer is set to traverse the IPFIX flow table based on the set reporting scan period, and determine whether to report the flow table record information corresponding to the reserved reporting reason according to the current DMA queue situation.
一实施例中,IPFIX定时器的上报扫描周期为老化扫描周期的1/N,其中N为正整数。类似地,该IPFIX定时器可以是复用原有的老化扫描定时器,以节省定时器资源。并且,在其它的实施例中,该设定的上报扫描周期和老化扫描周期之间也可以不需要具有N倍数的关系,并通过额外设置的定时器来专门进行上报扫描操作。In one embodiment, the reporting scan period of the IPFIX timer is 1/N of the aging scan period, where N is a positive integer. Similarly, the IPFIX timer may reuse the original aging scan timer to save timer resources. Moreover, in other embodiments, the relationship between the set reporting scan period and the aging scan period may not need to have a multiple of N relationship, and an additionally set timer is used to specifically perform the reporting scan operation.
以上ASIC芯片装置实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请装置实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。The above description of the ASIC chip device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects to the method embodiment. For technical details not disclosed in the device embodiments of the present application, please refer to the descriptions of the method embodiments of the present application for understanding.
在一个典型的Export设备中,这里的ASIC芯片与PHY芯片、MAC芯片以及CPU芯片被共同整合,这样能去掉许多外接元器件,使得各芯片之间实现很好的匹配,同时还可减小引脚数、缩小芯片面积。In a typical export device, the ASIC chip here is integrated with the PHY chip, the MAC chip and the CPU chip, so that many external components can be removed, so that each chip can achieve a good match, and at the same time, it can also reduce the lead The number of pins, reduce the chip area.
需要说明的是,本申请实施例中,如果以软件功能模块的形式实现上述数据读写方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案 本质上或者说对现有技术做出贡献的部分不仅仅存在于芯片实现中,也可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一个交换芯片执行本申请各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘(USB(Universal Serial Bus,通用串行总线)闪存盘)、移动硬盘、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本申请实施例不限制于任何特定的硬件和软件结合。It should be noted that, in the embodiments of the present application, if the above data reading and writing method is implemented in the form of a software function module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application essentially or the parts that make contributions to the prior art not only exist in the chip implementation, but can also be embodied in the form of software products, and the computer software products are stored in a The storage medium includes several instructions for causing a switch chip to execute all or part of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk (USB (Universal Serial Bus, Universal Serial Bus) flash disk), mobile hard disk, read only memory (Read Only Memory, ROM), magnetic disk or optical disk and other programs that can store program codes medium. As such, the embodiments of the present application are not limited to any specific combination of hardware and software.
对应地,本申请实施例提供一种网络交换芯片,包括存储器、内核和RAM,所述存储器存储有可以通过所述内核运行的计算机程序,所述内核在运行所述计算机程序时实现上述实施例提供的防止IPFIX消息丢失方法中的步骤,该方法包括:Correspondingly, an embodiment of the present application provides a network switch chip, including a memory, a kernel, and a RAM, where the memory stores a computer program that can be run through the kernel, and the kernel implements the above embodiments when the computer program is executed Provided steps in a method for preventing IPFIX message loss, the method comprising:
查询直接内存读写DMA队列是否已满;若是,Query whether the direct memory read and write DMA queue is full; if so,
保留IPFIX流表中待上报流表记录信息中的上报原因;Retain the reason for reporting in the record information of the flow table to be reported in the IPFIX flow table;
基于设定的上报扫描周期遍历IPFIX流表,并根据当前DMA队列情况,确定是否将所述保留的上报原因对应的流表记录信息进行上报。The IPFIX flow table is traversed based on the set reporting scan period, and according to the current DMA queue situation, it is determined whether to report the flow table record information corresponding to the reserved reporting reason.
对应地,所述网络交换芯片的内核还可以被设置为实现上述实施例提供的防止IPFIX消息丢失方法中的步骤,此处不再赘述。Correspondingly, the core of the network switching chip may also be configured to implement the steps in the method for preventing the loss of an IPFIX message provided by the foregoing embodiment, which will not be repeated here.
对应地,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,该计算机可执行指令配置为执行上述实施例提供的防止IPFIX消息丢失方法中的步骤。Correspondingly, the embodiments of the present application provide a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are configured to execute the methods for preventing IPFIX message loss provided by the above embodiments. A step of.
这里需要指出的是:以上存储介质和设备实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请存储介质和设备实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。It should be pointed out here that the descriptions of the above storage medium and device embodiments are similar to the descriptions of the above method embodiments, and have similar beneficial effects to the method embodiments. For technical details not disclosed in the embodiments of the storage medium and device of the present application, please refer to the description of the method embodiments of the present application to understand.
需要说明的是,图6为本申请实施例中网络交换芯片的一种硬件实体 示意图,如图6所示,该交换芯片的硬件实体包括:内核、通信接口和存储器,其中:It should be noted that Fig. 6 is a schematic diagram of a hardware entity of a network switching chip in the embodiment of the application, and as shown in Fig. 6, the hardware entity of this switching chip includes: a kernel, a communication interface and a memory, wherein:
内核通常控制网络交换芯片的总体操作。The kernel usually controls the overall operation of the network switch chip.
通信接口可以使网络交换芯片通过网络与其他终端或服务器通信。The communication interface enables the network switch chip to communicate with other terminals or servers through the network.
存储器配置为存储由内核可执行的指令和应用,还可以缓存待内核以及网络交换芯片中各模块待处理或已经处理的数据(例如,图像数据、音频数据、语音通信数据和视频通信数据),可以通过随机访问存储器(Random Access Memory,RAM)实现。The memory is configured to store instructions and applications executable by the kernel, and can also cache data (for example, image data, audio data, voice communication data and video communication data) to be processed or processed by each module in the kernel and the network switch chip, It can be implemented by random access memory (Random Access Memory, RAM).
本申请的技术方案通过在IPFIX流表中的待上报流表记录信息上报失败时,保留IPFIX流表中待上报流表记录信息中的上报原因,并在按照上报扫描周期遍历IPFIX流表时,对需要补充上报的IPFIX流表的流表记录信息上报DMA信息,这样,可以在CPU芯片空闲时处理上报失败的DMA信息,确保IPFIX消息不会丢失,改善IPFIX功能。The technical solution of the present application is to retain the reporting reason in the record information of the to-be-reported flow table in the IPFIX flow table when the report of the record information of the to-be-reported flow table in the IPFIX flow table fails, and when traversing the IPFIX flow table according to the reporting scan cycle, The DMA information is reported to the flow table record information of the IPFIX flow table that needs to be supplemented and reported. In this way, the DMA information that fails to be reported can be processed when the CPU chip is idle, to ensure that IPFIX messages will not be lost, and to improve the IPFIX function.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。The systems, devices, modules or units described in the above embodiments may be specifically implemented by computer chips or entities, or by products with certain functions.
为了描述的方便,描述以上装置时以功能分为各种模块分别描述。当然,在实施本说明书一个或多个实施例时可以把各模块的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above device, the functions are divided into various modules and described respectively. Of course, when implementing one or more embodiments of this specification, the functions of each module may be implemented in one or more software and/or hardware.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device comprising a series of elements includes not only those elements, but also Other elements not expressly listed, or inherent to such a process, method, article of manufacture or apparatus are also included. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article of manufacture, or device that includes the element.
本领域技术人员应明白,本说明书一个或多个实施例的实施例可提供 为方法、系统或计算机程序产品。因此,本说明书一个或多个实施例可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本说明书一个或多个实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM(Compact Disc Read Only Memory,只读光盘)、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of one or more of the embodiments of this specification may be provided as a method, system or computer program product. Accordingly, one or more embodiments of this specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of this specification may employ one or more computer-usable storage media (including, but not limited to, magnetic disk storage, CD-ROM (Compact Disc Read Only Memory, compact disc read only memory) having computer usable program code embodied therein. ), optical storage, etc.) in the form of a computer program product.
本说明书一个或多个实施例可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本说明书一个或多个实施例,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。One or more embodiments of this specification may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of this specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.
对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化囊括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。It will be apparent to those skilled in the art that the present invention is not limited to the details of the above-described exemplary embodiments, but that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Therefore, the embodiments are to be regarded in all respects as illustrative and not restrictive, and the scope of the invention is to be defined by the appended claims rather than the foregoing description, which are therefore intended to fall within the scope of the claims. All changes within the meaning and scope of the equivalents of , are included in the present invention. Any reference signs in the claims shall not be construed as limiting the involved claim.
此外,应当理解,虽然本说明书按照实施方式加以描述,但并非每个实施方式仅包含一个独立的技术方案,说明书的这种叙述方式仅仅是为清楚起见,本领域技术人员应当将说明书作为一个整体,各实施例中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。In addition, it should be understood that although this specification is described in terms of embodiments, not each embodiment only includes an independent technical solution, and this description in the specification is only for the sake of clarity, and those skilled in the art should take the specification as a whole , the technical solutions in each embodiment can also be appropriately combined to form other implementations that can be understood by those skilled in the art.

Claims (10)

  1. 一种防止IPFIX消息丢失的方法,所述方法包括:A method for preventing IPFIX message loss, the method comprising:
    查询直接内存读写DMA队列是否已满;若是,Query whether the direct memory read and write DMA queue is full; if so,
    保留IPFIX流表中待上报流表记录信息中的上报原因;Retain the reason for reporting in the record information of the flow table to be reported in the IPFIX flow table;
    基于设定的上报扫描周期遍历IPFIX流表,并根据当前DMA队列情况,确定是否将所述保留的上报原因对应的流表记录信息进行上报。The IPFIX flow table is traversed based on the set reporting scan period, and according to the current DMA queue situation, it is determined whether to report the flow table record information corresponding to the reserved reporting reason.
  2. 根据权利要求1所述的防止IPFIX消息丢失的方法,其中,所述方法还包括:The method for preventing IPFIX message loss according to claim 1, wherein the method further comprises:
    判断当前扫描是否对应IPFIX流表老化扫描周期;若是,Determine whether the current scan corresponds to the IPFIX flow table aging scan cycle; if so,
    则在当前扫描的IPFIX流表满足老化条件时,在其流表记录信息的上报原因中写入老化事件。Then, when the currently scanned IPFIX flow table meets the aging condition, the aging event is written in the report reason of the flow table record information.
  3. 根据权利要求2所述的防止IPFIX消息丢失的方法,其中,所述方法还包括:The method for preventing IPFIX message loss according to claim 2, wherein the method further comprises:
    在遍历IPFIX流表时,将流表记录信息中优先级最高的上报原因确定为所述保留的上报原因。When traversing the IPFIX flow table, the report reason with the highest priority in the flow table record information is determined as the reserved report reason.
  4. 根据权利要求2所述的防止IPFIX消息丢失的方法,其中,所述方法还包括:The method for preventing IPFIX message loss according to claim 2, wherein, the method further comprises:
    在IPFIX流表的流表记录信息中的上报原因不为空时,不执行对该IPFIX流表的老化删除操作。When the report reason in the flow table record information of the IPFIX flow table is not empty, the aging deletion operation of the IPFIX flow table is not performed.
  5. 根据权利要求1所述的防止IPFIX消息丢失的方法,其中,所述设定的上报扫描周期为IPFIX流表老化扫描周期的1/N,其中N为正整数;和/或,The method for preventing IPFIX message loss according to claim 1, wherein the set reporting scan period is 1/N of the IPFIX flow table aging scan period, wherein N is a positive integer; and/or,
    基于设定的上报扫描周期遍历IPFIX流表,具体包括:Traverse the IPFIX flow table based on the set reporting scan cycle, including:
    通过复用老化扫描定时器以根据设定的上报扫描周期遍历IPFIX流表。By multiplexing the aging scan timer, it can traverse the IPFIX flow table according to the set reporting scan cycle.
  6. 根据权利要求1所述的防止IPFIX消息丢失的方法,其中,基于设定的上报扫描周期遍历IPFIX流表,并根据当前DMA队列情况,确定是否将所述保留的上报原因对应的流表记录信息进行上报,具体包括:The method for preventing IPFIX message loss according to claim 1, wherein the IPFIX flow table is traversed based on a set reporting scan period, and according to the current DMA queue situation, it is determined whether to record information on the flow table corresponding to the reserved reporting reason Reporting, including:
    在DMA队列未满时,根据所述保留的上报原因生成待上报的DMA信息,并放入所述DMA队列中;When the DMA queue is not full, generate DMA information to be reported according to the reserved reporting reason, and put it into the DMA queue;
    在DMA队列已满时,继续保留所述上报原因。When the DMA queue is full, the reporting reason continues to be retained.
  7. 一种ASIC芯片,所述ASIC芯片包括:An ASIC chip, the ASIC chip includes:
    IPFIX引擎,被设置为在直接内存读写DMA队列已满时,保留IPFIX流表中待上报流表记录信息中的上报原因;The IPFIX engine is set to retain the reporting reason in the record information of the flow table to be reported in the IPFIX flow table when the direct memory read-write DMA queue is full;
    IPFIX定时器,被设置为基于设定的上报扫描周期遍历IPFIX流表,并根据当前DMA队列情况,确定是否将所述保留的上报原因对应的流表记录信息进行上报。The IPFIX timer is set to traverse the IPFIX flow table based on the set reporting scan period, and determine whether to report the flow table record information corresponding to the reserved reporting reason according to the current DMA queue situation.
  8. 根据权利要求7所述的ASIC芯片,其中,所述IPFIX定时器的上报扫描周期为老化扫描周期的1/N,其中N为正整数;和/或,The ASIC chip according to claim 7, wherein the reporting scan period of the IPFIX timer is 1/N of the aging scan period, wherein N is a positive integer; and/or,
    所述IPFIX定时器为复用的老化扫描定时器。The IPFIX timer is a multiplexed aging scan timer.
  9. 一种网络交换芯片,所述网络交换芯片包括:内核和RAM,所述内核被设置为实现上述权利要求1至6任一项提供的防止IPFIX消息丢失的方法。:A network switch chip, the network switch chip comprising: a kernel and a RAM, the kernel is configured to implement the method for preventing the loss of an IPFIX message provided by any one of the above claims 1 to 6. :
  10. 一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,该计算机可执行指令配置为执行上述权利要求1至6任一项提供的防止IPFIX消息丢失的方法。A computer-readable storage medium storing computer-executable instructions, the computer-executable instructions being configured to execute the method for preventing the loss of an IPFIX message provided by any one of claims 1 to 6 above.
PCT/CN2021/130419 2020-11-23 2021-11-12 Method for preventing ipfix message loss, application thereof, and asic chip WO2022105691A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011321734.1A CN112543149B (en) 2020-11-23 2020-11-23 Method for preventing IPFIX message from being lost, application thereof and ASIC chip
CN202011321734.1 2020-11-23

Publications (1)

Publication Number Publication Date
WO2022105691A1 true WO2022105691A1 (en) 2022-05-27

Family

ID=75014743

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/130419 WO2022105691A1 (en) 2020-11-23 2021-11-12 Method for preventing ipfix message loss, application thereof, and asic chip

Country Status (2)

Country Link
CN (1) CN112543149B (en)
WO (1) WO2022105691A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112543149B (en) * 2020-11-23 2022-08-26 苏州盛科通信股份有限公司 Method for preventing IPFIX message from being lost, application thereof and ASIC chip
CN116032721A (en) * 2021-10-25 2023-04-28 苏州盛科通信股份有限公司 Event monitoring method, device, chip and computer storage medium
CN114328319A (en) * 2021-12-30 2022-04-12 苏州盛科科技有限公司 Method, device and storage medium for filtering invalid event report message

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130179505A1 (en) * 2012-01-11 2013-07-11 International Business Machines Corporation Managing message transmission and reception
CN103399856A (en) * 2013-07-01 2013-11-20 北京科东电力控制系统有限责任公司 Explosive type data caching and processing system for SCADA system and method thereof
CN110008262A (en) * 2019-02-02 2019-07-12 阿里巴巴集团控股有限公司 A kind of data export method and device
CN110912826A (en) * 2019-11-13 2020-03-24 盛科网络(苏州)有限公司 Method and device for expanding IPFIX table items by using ACL
CN112543149A (en) * 2020-11-23 2021-03-23 盛科网络(苏州)有限公司 Method for preventing IPFIX message from being lost, application thereof and ASIC chip

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855574B (en) * 2019-10-22 2022-08-12 苏州盛科科技有限公司 Statistical method and device for realizing data stream discarding type based on hardware

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130179505A1 (en) * 2012-01-11 2013-07-11 International Business Machines Corporation Managing message transmission and reception
CN103399856A (en) * 2013-07-01 2013-11-20 北京科东电力控制系统有限责任公司 Explosive type data caching and processing system for SCADA system and method thereof
CN110008262A (en) * 2019-02-02 2019-07-12 阿里巴巴集团控股有限公司 A kind of data export method and device
CN110912826A (en) * 2019-11-13 2020-03-24 盛科网络(苏州)有限公司 Method and device for expanding IPFIX table items by using ACL
CN112543149A (en) * 2020-11-23 2021-03-23 盛科网络(苏州)有限公司 Method for preventing IPFIX message from being lost, application thereof and ASIC chip

Also Published As

Publication number Publication date
CN112543149A (en) 2021-03-23
CN112543149B (en) 2022-08-26

Similar Documents

Publication Publication Date Title
WO2022105691A1 (en) Method for preventing ipfix message loss, application thereof, and asic chip
US8989002B2 (en) System and method for controlling threshold testing within a network
JP4392294B2 (en) Communication statistics collection device
US8059532B2 (en) Data and control plane architecture including server-side triggered flow policy mechanism
US7555548B2 (en) Method and apparatus for efficient data collection
EP2240854B1 (en) Method of resolving network address to host names in network flows for network device
US20080239956A1 (en) Data and Control Plane Architecture for Network Application Traffic Management Device
EP3547627A1 (en) Flow control method and switching device
US20070237079A1 (en) Binned duration flow tracking
WO2022100581A1 (en) Method for processing ipfix message, storage medium, network switching chip and asic chip
CN109379390B (en) Network security baseline generation method based on full flow
US8619589B2 (en) System and method for removing test packets
CN106921665B (en) Message processing method and network equipment
Kučera et al. Enabling event-triggered data plane monitoring
EP3791543B1 (en) Packet programmable flow telemetry profiling and analytics
CN112260899B (en) Network monitoring method and device based on MMU (memory management unit)
EP4245020A1 (en) In-band edge-to-edge round-trip time measurement
WO2023125380A1 (en) Data management method and corresponding apparatus
JP2010034708A (en) Relay device
Lukashin et al. Distributed packet trace processing method for information security analysis
CN114095383B (en) Network flow sampling method and system and electronic equipment
WO2018177003A1 (en) Charging method, and related device and system
US11146468B1 (en) Intelligent export of network information
Molina et al. Design principles and algorithms for effective high-speed IP flow monitoring
WO2023191162A1 (en) Data processing device and method capable of analyzing container-based network live stream

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 26.10.2023)