NFV system data processing method based on intelligent network card, medium, program, processor and system
Intelligent network cards and processors work together to process data packets, generate flow tables, and implement hardware forwarding. This solves the problem of overloaded CPU calculations during NFV system upgrades, shortens interruption times, saves CPU resources, and improves user experience.
Patent Information
- Application Number
- CN202410847750.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-15
AI Technical Summary
The NFV system needs to interrupt the data processing business when upgrading, resulting in an overloaded CPU calculation and the inability to perform data processing without involving the CPU, affecting system performance and user experience.
The intelligent network card (DPU) is used to process data packets in cooperation with the processor. The data plane development tool kit component sends control signals to establish an interactive connection with the intelligent network card. It receives and processes the first data packet in the data flow, generates a flow table and sends it to the hardware. layer, which implements hardware forwarding of data packets, avoids the CPU from repeatedly processing subsequent data packets, supports online upgrades and re-establishes interactive connections.
During the NFV system upgrade period, data processing service interruption time is shortened, CPU computing power usage is reduced, user experience is improved, and CPU resources are saved.
Smart Images

Figure CN118779152A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer network technology, and in particular to a method, medium, program, processor and system for processing FV system data of an intelligent network card. Background Art
[0002] NFV (Network Function Virtualization) is network function virtualization. NFV system is a network function virtualization system. NFV system is an architecture that implements network functions through virtualization technology. It virtualizes traditional proprietary hardware network devices (such as routers, firewalls, load balancers, etc.) into software instances and runs them on general standard servers, thereby significantly reducing hardware costs and improving network flexibility and scalability. NFV solutions are applicable to various network solutions, and the most commonly used ones include software-defined wide area network (SD-WAN), network slicing, mobile edge computing, etc. NFV solutions achieve complete decoupling of software functions and hardware devices, bringing many advantages: more flexible services, lower costs, higher resource utilization, and avoiding vendor lock-in.
[0003] NFV systems use virtualization technology to convert traditional network functions into software and run them on general-purpose servers. The core computing resources of these servers are mainly processors (CPUs). In other words, the function realization of NFV systems is highly dependent on CPU computing. As network functions become more and more complex and network bandwidth develops from 10G and 25G to 100G, 200G and even higher bandwidths, it is inevitable that the CPU computing load continues to increase, and the CPU is overwhelmed.
[0004] In actual production environments, NFV systems need to be regularly upgraded to ensure their performance, functionality, security, and compatibility. During the upgrade of the NFV system, whether the relevant data processing services are not interrupted is an important factor in improving user experience.
[0005] In traditional NFV systems, such as Figure 1 As shown in the figure, a standard network card (NIC) is usually used as a network forwarding carrier, and the CPU uses DPDK to achieve performance acceleration. The specific working process is as follows:
[0006] The data packet is forwarded from the network port of the NIC to CPU1. CPU1 receives the data packet through the data packet receiving module using DPDK or other methods. After receiving the data packet, the data packet is sent to the data packet processing module for data processing to obtain a processing packet. CPU1 sends the processing packet to the data packet sending module, and the data packet sending module sends the processing packet to the network port of the NIC.
[0007] If the NFV system needs to be upgraded at this time, all business processes must be interrupted first, CPU1 and NIC must be unbound, and after the update is completed, the business process must be restarted, and CPU1 must re-establish an interactive connection with NIC, and business processing can only be resumed at this time. Therefore, the NFV device software under this scenario can only be upgraded by interrupting all services during the upgrade, and then resuming services after the upgrade is completed to achieve the upgrade of the NFV system.
[0008] As mentioned above, the existing NFV system that uses standard network card NIC as the network forwarding bearer has no hardware programmability and offload capability. Therefore:
[0009] (1) The NFV system cannot process data without the CPU, so the data processing service can only be completely interrupted when the NFV system is upgraded;
[0010] (2) This method may also cause the CPU computing power in the NFV system to be over-occupied, increasing the CPU operating burden. Summary of the invention
[0011] In view of the shortcomings of the prior art mentioned above, the purpose of the present application is to provide a NFV system data processing method, medium, program, processor and system based on a smart network card, which is used to solve the problem that the data processing service can only be completely interrupted when the aforementioned NFV system is upgraded, and the CPU is overloaded due to excessive computing power occupation.
[0012] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present application provides a NFV system data processing method based on a smart network card, which is applied to a processor, and the steps include: calling a data plane development toolkit component to send a control signal to the smart network card to take over the smart network card, and establish an interactive connection with the smart network card; the data packet receiving module on the processor receives the first data packet in several data streams sent by the smart network card, and forwards the first data packet to the data packet processing module on the processor; the data packet processing module performs data processing on each of the first data packets to obtain a flow table and a processing packet corresponding to each data stream; the flow table is sent to the hardware layer of the smart network card, and the processing packet is sent to the data packet sending module on the processor; the data packet sending module sends the processing packet to the network port of the smart network card; after sending an online upgrade control instruction to the smart network card, the NFV system is upgraded and the interactive connection with the smart network card is disconnected; after the NFV system upgrade is completed, a control instruction to complete the upgrade is sent to the smart network card and the interactive connection is re-established.
[0013] In some embodiments of the first aspect of the present application, the steps further include: after the data packet processing module processes each first data packet to obtain a flow table corresponding to each data flow, the flow table is sent to a database.
[0014] In some embodiments of the first aspect of the present application, the steps also include: after sending a control instruction to complete the upgrade to the smart network card, sending a control instruction to the database to obtain the required flow table; receiving the required flow table sent by the database, and forwarding it to the smart network card hardware layer.
[0015] In some embodiments of the first aspect of the present application, the database is a persistent database.
[0016] To achieve the above-mentioned purpose and other related purposes, the second aspect of the present application provides a NFV system data processing method based on an intelligent network card, which is applied to the intelligent network card, and the steps include: receiving a control signal sent by a processor to take over the intelligent network card, and establishing an interactive connection with the processor; receiving several data streams, and forwarding the first data packet in each data stream to the processor; receiving a flow table sent by the processor; receiving a processing packet sent by the processor; after receiving the flow table sent by the processor, directly performing hardware forwarding on subsequent data packets in the data stream corresponding to the flow table, and no longer sending them to the processor for data processing.
[0017] In some embodiments of the second aspect of the present application, the steps also include: after receiving the online upgrade control instruction sent by the processor, adding the existing flow table in the hardware layer to the aging chain; receiving the flow table from the database sent by the processor, and comparing the flow table in the aging chain with the flow table from the database to find out the differences and similarities between the two, and performing the following operations on the flow table in the aging chain: adding the flow table data information from the database to the hardware layer for the differences; adding the flow table data information in the aging chain to the hardware layer for the similarities.
[0018] To achieve the above-mentioned purpose and other related purposes, the third aspect of the present application provides a computer storage medium on which a computer program is stored, and when the computer program is executed by a processor, it implements any one of the aforementioned methods.
[0019] To achieve the above-mentioned purpose and other related purposes, the fourth aspect of the present application provides a computer program product, which includes a computer program code. When the computer program code runs on a computer, the computer implements any one of the methods described in the aforementioned methods.
[0020] To achieve the above-mentioned purpose and other related purposes, the fifth aspect of the present application provides a processor, including a memory unit, a processor unit and a computer program stored on the memory unit, and the processor executes the computer program to implement any one of the above-mentioned methods.
[0021] To achieve the above-mentioned purpose and other related purposes, the sixth aspect of the present application provides a NFV system data processing system based on an intelligent network card, characterized in that it includes a processor and an intelligent network card, and the processor and / or the intelligent network card can implement any one of the methods described in the above methods.
[0022] As described above, the present application provides a NFV system data processing method, medium, program, processor and system based on a smart network card:
[0023] (1) A processor (CPU) and a smart network card (the "smart network card" in this application refers to a "DPU", i.e., Data Processing Unit. It should be understood that, without making creative improvements, replacing the "smart network card / DPU" in this application with other structures that can realize the functions of the "smart network card / DPU" in this application falls within the protection scope of the present invention) are used to jointly process data packets. Specifically, when the DPU receives a data stream, it forwards the first data packet in each data stream to the data packet receiving module of the CPU, and then the data packet receiving module forwards the first data packet to the data packet processing module of the CPU, and the data packet processing module processes the first data packet to obtain a corresponding flow table and processing packet; the data packet processing module sends the flow table to the data packet sending module of the hardware layer CPU of the DPU, and the data packet sending module sends the processing packet to the network port of the DPU, and the DPU forwards the processing packet to the outside of the system. The data transmission, reception, and processing process of the first data packet in a single data stream by the aforementioned NFV system is a learning process of the DPU, which aims to generate and install flow table rules so that the DPU can efficiently process subsequent data packets in the data stream. After learning the first data packet in the data flow received by the NFV system, during the NFV system upgrade, the DPU can directly perform hardware forwarding on subsequent data packets in the data flow corresponding to the received flow table without sending them to the CPU for data processing. Therefore, it can shorten the data processing service interruption duration caused by system upgrades in most application scenarios, improve user experience, and save CPU computing power.
[0024] (2) On the basis of the aforementioned technical means, the present application also utilizes the data packet processing module of the CPU to send the flow table to a local or cloud database for storage. When the upgrade is completed, the CPU sends a control instruction to the database to obtain the required flow table, receives the required flow table, and forwards the required flow table to the DPU. After receiving the flow table from the database, the DPU compares the flow table in the to-be-aged chain with the flow table from the database to find out the differences and similarities between the two, and performs the following operations on the flow table in the to-be-aged chain: for the differences, add the flow table data information from the database to the hardware layer; for the similarities, add the flow table data information in the to-be-aged chain to the hardware layer. This operation can avoid replacing and deleting all the flow tables in the DPU to-be-aged chain, thereby saving the computing power of the DPU. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It shows a flow chart of the structure of the NFV system data processing system and the data processing method in the prior art.
[0026] Figure 2 Shown is a flow chart of the structure of a NFV system data processing system based on a smart network card and a data processing method in one embodiment of the present application.
[0027] Figure 3 Shown is a flow chart of a NFV system data processing method (applied to a processor) based on a smart network card in one embodiment of the present application.
[0028] Figure 4 Shown is a flow chart of a NFV system data processing method based on a smart network card (applied to a smart network card) in one embodiment of the present application.
[0029] Figure 5 Shown is a structural diagram of a NFV system data processing processor based on a smart network card in one embodiment of the present application. DETAILED DESCRIPTION
[0030] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0031] To facilitate understanding of the embodiments of the present application, first Figure 3 Detailed description. Figure 3The flowchart of a method for processing data in a NFV system based on a smart network card of the present invention is shown. The subjects involved include a processor (CPU) 1, a smart network card (DPU) 2 and a database 3. The data processing method in this embodiment is applied to CPU 1. The data processing method specifically includes the following steps:
[0032] Step S301: CPU1 calls the data plane development toolkit component to send a control signal to DPU2 to take over DPU2, and establishes an interactive connection with DPU2.
[0033] It should be understood that the data plane development toolkit (DPDK) component is an open source project for high-speed packet processing. It provides a set of libraries and drivers that enable users to build high-performance network applications on general-purpose CPU1. The main purpose of DPDK is to improve the efficiency of packet processing by bypassing the kernel network stack and realize high-speed packet processing in user space. RTE Flow is a tool in DPDK that provides a general flow table rule management mechanism for handling complex packet classification and processing requirements. Specifically, RTE Flow allows users to define and manage flow table rules in DPDK applications, which describe how to process received packets, including filtering, classification, redirection and other operations. The offloading feature is a key feature of DPDK RTE Flow, which allows users to offload complex flow table rules to network devices that support hardware offloading (such as DPU2 used in the present invention). In the NFV system, the combination of DPDK and DPU2 realizes the decoupling of software and hardware, and DPU2, as the core of the software and hardware decoupling of the NFV system, undertakes the hardware forwarding task of the packet.
[0034] In the NFV system, CPU1 uses DPDK to establish an interactive connection with DPU2, so that DPU2 can perform hardware forwarding on data packets, reducing the computing burden of CPU1 and saving CPU1 computing power.
[0035] Step S302: the data packet receiving module on the CPU1 receives the first data packet of each data stream among the multiple data streams sent by the DPU2.
[0036] It should be understood that in the NFV system, data is transmitted and processed in the form of data streams. A data stream refers to a series of ordered data packets that share the same characteristics (such as source IP address, destination IP address, protocol type, source port, and destination port) and generally represent the same communication session or connection. For example, in an HTTP session, all data packets between a browser and a server can be considered as a data stream. In the following description of this application, the "first data packet" refers to the first data packet in each data stream received by DPU2 from the external network.
[0037] In addition, in the NFV system, CPU1 undertakes key packet processing tasks, which can generally be divided into three main modules: packet receiving module, packet processing module and packet sending module.
[0038] The data packet receiving module is responsible for receiving data packets from DPU2 (or NIC) and passing them to the data packet processing module for further processing. In the present application, the data packet receiving module receives the first data packet in each data stream sent from DPU2. The functions of the data packet receiving module specifically include: receiving data packets, queue management and load sharing. Receiving data packets refers to receiving data packets from a physical network interface or a virtual network interface (in the present application, from the network port of DPU2). Queue management refers to managing the receiving queue to ensure that data packets can be efficiently and orderly passed to the processing module. Load sharing means that in a multi-core system, the receiving module may include a load sharing mechanism to distribute data packets to different processing cores for parallel processing.
[0039] Step S303: forwarding the first data packet to the data packet processing module on the CPU1.
[0040] The data packet processing module is the core of the NFV system and is responsible for performing various processing operations on the received data packets, such as protocol parsing, packet filtering, modification and forwarding decisions. Its functions specifically include protocol parsing, packet filtering, flow table matching, packet modification and policy execution. Protocol parsing refers to parsing the protocol header information of each layer of the data packet and extracting the necessary fields (such as source / destination IP address, port number, protocol type, etc.). Packet filtering refers to filtering unnecessary data packets according to predefined rules. Flow table matching refers to checking whether the data packet complies with the existing flow table rules and making corresponding processing decisions. Packet modification refers to modifying the content of the data packet as needed, such as rewriting the IP address, port number, etc. Policy execution refers to executing network policies, such as QoS (Quality of Service), ACL (Access Control List), etc. It should be understood that the data packet processing module in the present application can implement one or more of the aforementioned functions, and the functions of the aforementioned data packet processing module are only an incomplete enumeration and do not constitute a limitation on the functions performed by the data packet processing module of CPU1 in the present application.
[0041] Step S304: the data packet processing module performs data processing on each of the first data packets to obtain a flow table and a processing packet corresponding to each data flow.
[0042] It should be understood that the processing packet is the product of the data packet processed by the data packet processing module of CPU1. The flow table is a data structure for storing rules and actions about network flows in order to determine how to process and forward data packets. A typical flow table entry includes a matching field, a priority, an action, and a counter. The matching field includes: source IP address and destination IP address, source port and destination port, protocol type (such as TCP, UDP), VLAN tag, and other fields specific to the network protocol. These matching fields define the applicable conditions of the flow table rule, that is, which data packets should match the flow table entry. The priority determines which entry should be applied when multiple entries match the same data packet. The higher the priority, the earlier the rule is applied. The action is the specific operation taken on the matching data packet, which can be forwarding the data packet to a specified port or interface, modifying the data packet header information (such as changing the IP address or port number), discarding the data packet, sending the data packet to the controller for further processing, and / or applying a specific QoS (Quality of Service) strategy. One or more of the counters are used to record the number and byte count of matching data packets, which can be used for network monitoring and statistical analysis.
[0043] Step S305: Send the flow table to the hardware layer of the DPU2.
[0044] It should be understood that the DPU2 is composed of multiple highly integrated modules that work together to provide advanced network functions and processing capabilities. Conventional DPU2 includes a hardware layer, a software layer, and a firmware layer. The hardware layer of DPU2 mainly includes a network port (for connecting network devices), a physical layer chip (for processing and converting network signals), a packet processor (for fast parsing, classification, filtering and forwarding network packets), a packet buffer (for temporarily storing packets in memory), and a hardware accelerator (for fast encryption and decryption operations to protect the security of data during transmission; and for compressing and decompressing compressed data to reduce bandwidth consumption for data transmission). The network port in this application is a physical network interface on the hardware layer for communicating with an external network.
[0045] In the NFV system of the present application, the flow table is forwarded to the hardware layer of DPU2 via the packet processing module of CPU1, so that DPU2 can directly perform hardware forwarding on subsequent data packets (except the first data packet) in the data flow corresponding to the flow table, without sending them to CPU1 for data processing.
[0046] It should be understood that the hardware forwarding refers to the DPU2 directly completing the forwarding of data packets in hardware through its dedicated hardware acceleration module during the network data processing process without relying on the participation of the general CPU1. Specifically, the hardware forwarding process includes data packet reception, data packet parsing, searching for forwarding rules, applying forwarding rules, data packet processing acceleration and data packet forwarding. Data packet reception is to receive subsequent data packets in the data stream that has sent the first data packet to the CPU1 for data processing. Data packet parsing refers to parsing the received data packet to extract key header information, such as source IP address, destination IP address, source port, destination port, etc. The aforementioned information will be used for subsequent forwarding decisions. Searching for forwarding rules means that the built-in forwarding rule table of DPU2 will search for corresponding forwarding rules according to the header information of the data packet. These rules can be pre-configured or dynamically updated. Applying forwarding rules means that once a matching forwarding rule is found, DPU2 will perform corresponding operations according to the rules. Possible operations include: modifying the header information of the data packet (for example, changing the source IP or destination IP address), determining the output interface of the data packet (for example, selecting which network port to forward the data packet through), performing load balancing or path selection, etc. It should be understood that the DPU2 in the present application will perform one or more of the listed operations, and the operations performed by the aforementioned DPU2 are only an incomplete list and do not constitute a limitation on the operations performed by the DPU2 in the present application.
[0047] It should be understood that since DPU2 can only perform hardware forwarding for subsequent data packets (except the remaining data packets of the first data packet) of the data flow that has obtained the corresponding flow table (the corresponding flow table is obtained after the first data packet is processed by CPU1), it is impossible to perform hardware forwarding for subsequent data packets in the data flow that has not obtained the corresponding flow table. Therefore, the data processing method of the NFV system based on the intelligent network card provided in this application is intended to enable the NFV system to shorten the interruption time of data processing services caused by system upgrades in most application scenarios, improve user experience, and save the computing power of CPU1. It cannot be avoided that during the upgrade of the NFV system, if there is a newly arrived data flow, the corresponding hardware forwarding cannot be performed because DPU2 has not learned it. However, this phenomenon can be achieved by preloading flow tables, traffic management priorities, and redundant design. Measures such as ensuring the continuity of services to the greatest extent when the NFV system is upgraded. The technology provided by this application, on the one hand, shortens the interruption time of data processing services caused by system upgrades in most scenarios, and on the other hand, it also provides a guarantee for cooperating with the aforementioned preloading flow table and other technologies to achieve uninterrupted services during NFV system upgrades.
[0048] Step S306: Send the processing packet to the data packet sending module on the CPU1.
[0049] Step S307: The data packet sending module sends the processing packet to the network port of DPU2.
[0050] CPU1 sends the first data packet (processing packet) processed by the data packet processing module to the network port of DPU2. After receiving the processing packet returned by CPU1, DPU2 reads it from the cache and forwards it. This step ensures that the first data packet can be correctly forwarded after processing instead of being discarded.
[0051] The aforementioned process in which CPU1 processes the first data packet of each data stream, generates a flow table and sends it to the hardware layer of DPU2, generates a processing packet and sends it to the network port of DPU2 is a learning process. Specifically, "learning" refers to parsing the first data packet, generating flow table entries and applying these entries to accelerate the processing of subsequent data packets in the same data stream. Parsing the first data packet refers to extracting the five-tuple information of the data packet (source IP, destination IP, source port, destination port, protocol type) and other possible identification information. Generating a flow table entry means that based on the extracted information, CPU1 generates a flow table entry, which contains matching conditions and corresponding processing actions. For example, a flow table entry can indicate how to forward subsequent data packets in the data stream, whether the packet header information needs to be modified, whether a specific QoS policy needs to be applied, etc.
[0052] After learning the first data packet, the flow table entry is stored in the hardware layer of DPU2 (such as TCAM), so that subsequent data packets can be quickly matched and processed at the hardware level, thereby reducing the load on CPU1 and providing technical guarantees for shortening the data processing service interruption duration caused by system upgrades in most scenarios.
[0053] Step S308: Send an online upgrade control instruction to DPU2 and disconnect the interactive connection with DPU2.
[0054] Step S309: Perform NFV system upgrade.
[0055] Step S310: After the NFV system upgrade is completed, a control instruction to complete the upgrade is sent to DPU2 and the interactive connection is re-established.
[0056] In some embodiments of the first aspect of the present application, the steps further include:
[0057] Step S311: After the data packet processing module processes each first data packet to obtain a flow table corresponding to each data flow, the flow table is sent to the database 3. The database 3 is used to store flow table information to restore the relevant data in the DPU 2 after upgrading.
[0058] In some embodiments of the first aspect of the present application, the steps further include:
[0059] Step S312: After sending a control instruction indicating that the upgrade is completed to DPU2, a control instruction for obtaining the required flow table is sent to database 3.
[0060] Step S313: Receive the required flow table sent by database 3.
[0061] Step S314: forward it (the required flow table obtained from database 3) to the DPU2 hardware layer.
[0062] After receiving the required flow table, DPU2 recovers the flow table to avoid complete parsing and processing of each data packet. The process of recovering the flow table will be described in detail below.
[0063] In some embodiments of the first aspect of the present application, the database 3 is a persistent database.
[0064] The persistent database is a database system specially designed for long-term storage and management of data. Its main features are data persistence, security and consistency. Even in the event of a system crash, power outage or other failure, the data can still remain intact and available. Flow tables are key information used by network devices to forward and process data packets. The persistent database can effectively store these flow tables and provide fast access and retrieval functions. After the system is upgraded and restarted, the persistent database can quickly restore the flow tables to ensure the continuity and stability of data packet processing.
[0065] like Figure 4 As shown, in order to achieve the above-mentioned purpose and other related purposes, the second aspect of the present application provides a NFV system data processing method based on DPU2, which is applied to DPU2, and the steps include:
[0066] Step S401: receiving a control signal sent by CPU1 to take over DPU2, and establishing an interactive connection with CPU1.
[0067] Step S402: Receive several data streams.
[0068] Step S403: forward the first data packet in each data flow to CPU1.
[0069] Step S404: Receive the flow table sent by CPU1.
[0070] Step S405: receiving the processing packet sent by CPU1.
[0071] Step S406: After receiving the flow table sent by CPU1, the subsequent data packets in the data flow corresponding to the flow table are directly forwarded by hardware, and are no longer sent to CPU1 for data processing.
[0072] It should be understood that the aforementioned steps executed by DPU2 correspond to steps S101 to S112 executed by CPU1, and the principles of the two are the same, which will not be repeated here.
[0073] In some embodiments of the second aspect of the present application, the steps further include:
[0074] Step S407: After receiving the online upgrade control instruction sent by CPU1.
[0075] Step S408: adding the existing flow table in the hardware layer to the chain to be aged.
[0076] The aging chain is a linked list structure in which each node represents a data item or resource. Its main application purpose is to gradually eliminate inactive data or resources through the aging mechanism. In this application, the aging chain is used to store relevant flow table information to ensure that the flow table data information loaded into DPU2 after the upgrade is consistent with the flow table data information generated by CPU1 based on the first data packet of the data flow.
[0077] Step S409: Receive the flow table from database 3 sent by CPU1.
[0078] Step S410: Compare the flow table in the chain to be aged with the flow table from database 3 to find out the differences and similarities between the two.
[0079] Step S411: perform the following operations on the flow table in the chain to be aged: for the differences, add the flow table data information from the database 3 to the hardware layer; for the similarities, add the flow table data information in the chain to be aged to the hardware layer.
[0080] Steps S410 and S411 compare the flow table in the chain to be aged and the flow table in the database 3, and update the flow table in the chain to be aged, to ensure data consistency and avoid errors or failures caused by inconsistent data. In addition, this method can reduce repeated deletion and writing operations of the flow table in the chain to be aged within DPU2 by comparing the differences and adding the flow table information from the database directly to the hardware layer, saving the computing power of DPU2 and improving the efficiency of system updates.
[0081] Step S412: After the retention and replacement of the flow table data information is completed, the data information of the flow table in the to-be-aged chain is restored to the hardware layer.
[0082] The recovery of flow table data information in the aging chain is to synchronize the data information of the flow table at the hardware layer of DPU2 with the data information of the flow table generated by CPU1 based on the first processed data packet, so as to avoid data loss or error caused by system update in DPU2, thereby improving the stability of system operation and data reliability.
[0083] To achieve the above-mentioned purpose and other related purposes, the third aspect of the present application provides a computer storage medium on which a computer program is stored, and when the computer program is executed by CPU1, any one of the aforementioned methods is implemented.
[0084] To achieve the above-mentioned purpose and other related purposes, the fourth aspect of the present application provides a computer program product, which includes a computer program code. When the computer program code runs on a computer, the computer implements any one of the methods described in the aforementioned methods.
[0085] like Figure 5 As shown, in order to achieve the above-mentioned purpose and other related purposes, the fifth aspect of the present application provides a CPU1, including a memory unit 502, a processor unit 501 and a computer program stored in the memory unit, and the CPU1 executes the computer program to implement any one of the above-mentioned methods. Preferably, the CPU1 also includes at least one network interface 503 and a user interface 505. The various components in the device are coupled together through a bus system 505. It can be understood that the bus system 505 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, in Figure 5 In the specification, various buses are labeled as bus systems.
[0086] The user interface 505 may include a display, a keyboard, a mouse, a trackball, a click gun, keys, buttons, a touch pad or a touch screen.
[0087] It is understood that the memory unit 502 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM). The memory described in the embodiments of the present invention is intended to include but is not limited to these and any other suitable categories of memory.
[0088] The memory unit 502 in the embodiment of the present invention is used to store various categories of data to support the operation of CPU1. Examples of these data include: any executable program for operating on CPU1, such as operating system 5021 and application 5022; operating system 5021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for implementing various basic services and processing hardware-based tasks. Application 5022 can include various applications, such as media player (Media Player), browser (Browser), etc., for implementing various application services. The XX method provided by the embodiment of the present invention can be included in the application 5022.
[0089] The method disclosed in the above embodiment of the present invention can be applied to the processor unit 501, or implemented by the processor unit 501. The processor unit 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor unit 501 or the instruction in the form of software. The above processor unit 501 may be a general processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor unit 501 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present invention. The general processor unit 501 may be a microprocessor or any conventional processor, etc. In combination with the steps of the accessory optimization method provided in the embodiment of the present invention, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in a memory, and the CPU1 reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0090] In an exemplary embodiment, CPU1 may be one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD) to execute the aforementioned method.
[0091] like Figure 2 As shown, in order to achieve the above-mentioned purpose and other related purposes, the sixth aspect of the present application provides a NFV system data processing system based on an intelligent network card, characterized in that it includes CPU1 and DPU2, and the CPU1 and DPU2 can implement any one of the methods described in the above methods.
[0092] The terms "component", "module", "system", etc. used in this specification are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program and / or a computer. By way of illustration, both applications running on a computing device and a computing device can be components. One or more components may reside in a process and / or an execution thread, and a component may be located on a computer and / or distributed between two or more computers. In addition, these components may be executed from various computer-readable media having various data structures stored thereon. Components may, for example, communicate through local and / or remote processes according to signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system and / or a network, such as the Internet interacting with other systems through signals).
[0093] Those of ordinary skill in the art will appreciate that the various illustrative logical blocks and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0094] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0095] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0096] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0097] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0098] In the above embodiments, the functions of each functional unit can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions (programs). When loading and executing computer program instructions (programs) on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. Computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integrations. Available media may be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., high-density digital video discs (DVDs), or semiconductor media (e.g., solid state disks (SSDs), etc.).
[0099] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0100] In the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. For example, the first XX and the second XX are only used to distinguish different XXs, and do not limit their order. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.
[0101] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" represent examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0102] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, ab, ac, bc or abc, where a, b, c can be single or multiple.
[0103] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0104] In summary, the present invention effectively overcomes various shortcomings of the prior art and has high industrial utilization value.
[0105] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A method for processing data in a NFV system based on a smart network card, characterized in that: Applied to a processor, the steps include: Call the data plane development toolkit component to send a control signal to the smart network card to take over the smart network card, and establish an interactive connection with the smart network card; The data packet receiving module on the processor receives the first data packet of each data stream in the plurality of data streams sent by the intelligent network card, and forwards the first data packet to the data packet processing module on the processor; The data packet processing module performs data processing on each of the first data packets to obtain a flow table and a processing packet corresponding to each data flow; sends the flow table to the hardware layer of the smart network card, and sends the processing packet to the data packet sending module on the processor; The data packet sending module sends the processing packet to the network port of the smart network card; After sending an online upgrade control instruction to the smart network card, the NFV system is upgraded and the interactive connection with the smart network card is disconnected; after the NFV system upgrade is completed, a control instruction to complete the upgrade is sent to the smart network card and the interactive connection is re-established.
2. The method for processing data in a NFV system based on a smart network card according to claim 1, characterized in that: The steps also include: after the data packet processing module processes each first data packet to obtain a flow table corresponding to each data flow, the flow table is sent to a database.
3. The method for processing data in a NFV system based on a smart network card according to claim 2, characterized in that: The steps also include: after sending a control instruction indicating the end of the upgrade to the smart network card, sending a control instruction to obtain a required flow table to the database; receiving the required flow table sent by the database, and forwarding it to the smart network card hardware layer.
4. The method for processing data in a NFV system based on a smart network card according to claim 1, characterized in that: The database is a persistent database.
5. A method for processing data in a NFV system based on a smart network card, characterized in that: Applied to the smart network card, the steps include: Receive a control signal sent by the processor to take over the smart network card, and establish an interactive connection with the processor; receiving a plurality of data streams and forwarding a first packet in each data stream to a processor; Receive the flow table sent by the processor; receiving a processing packet sent by a processor; After receiving the flow table sent by the processor, subsequent data packets in the data flow corresponding to the flow table are directly forwarded by hardware and are no longer sent to the processor for data processing.
6. The method for processing data in a NFV system based on a smart network card according to claim 5, characterized in that: The steps also include: After receiving the online upgrade control instruction sent by the processor, the existing flow table in the hardware layer is added to the to-be-aged linked list; The flow table from the database sent by the receiving processor is compared with the flow table in the chain to be aged to find out the differences and similarities between the two, and the following operations are performed: In view of the differences, the flow table data information from the database is added to the hardware layer; In view of the similarities, the flow table data information in the chain to be aged is added to the hardware layer.
7. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method described in any one of claims 1 to 4 is implemented, or the method described in any one of claims 5 to 6 is implemented.
8. A computer program product, characterized in that The computer program product includes a computer program code, and when the computer program code is run on a computer, the computer is enabled to implement the method as described in any one of claims 1 to 4, or to implement the method as described in any one of claims 5 to 6.
9. A processor comprising a memory unit, a processor unit and a computer program stored in the memory unit, characterized in that: The processor executes the computer program to implement the method according to any one of claims 1 to 4, or implements the method according to any one of claims 5 to 6.
10. A NFV system data processing system based on a smart network card, characterized in that: The method comprises a processor and an intelligent network card, wherein the processor and / or the intelligent network card can implement the method according to any one of claims 1 to 4, or implement the method according to any one of claims 5 to 6.
Citation Information
Cited By
Method, device and equipment for copying multicast message by hardware and medium
CN119383172A
