Message forwarding and network information management method, related equipment and storage medium

By splitting the virtual switch function, the operation and maintenance management module and the first network forwarding module are run on the hardware acceleration device, and the second network forwarding module is run on the physical machine, which solves the problem of limited resources of the intelligent network card and improves virtualization Network performance and deployment density of instances.

CN119094478APending Publication Date: 2024-12-06ALIBABA CLOUD COMPUTING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310666893.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-06
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The existing virtualization architecture has limited resources and cannot be dynamically expanded, which limits the network performance and deployment density of virtual machines.

Method used

By splitting the virtual switch function, the operation and maintenance management module and the first network forwarding module run on the hardware acceleration device, and the second network forwarding module runs on the physical machine to realize a mixed form of virtualization architecture and expand the processing of using the physical machine and memory to improve network virtualization functions.

Benefits of technology

While keeping the hardware architecture unchanged, the number of virtual network cards and network performance and deployment density of virtualized instances are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094478A_ABST
    Figure CN119094478A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a message forwarding and network information management method, related equipment and a storage medium. In the embodiment of the invention, function splitting is carried out on the virtual switch, an operation and maintenance management module is responsible for providing network management and operation and maintenance services for the virtual network cards, and a first network forwarding module and a second network forwarding module are responsible for providing data forwarding services for different virtual network cards respectively. The operation and maintenance management module and the first network forwarding module are operated on the hardware acceleration equipment, the second network forwarding module is deployed on a physical machine, a virtual architecture in a mixed form is achieved, and under the condition that the hardware architecture and the management and control architecture of the hardware acceleration equipment are kept unchanged, the operation and maintenance management module can be used for forwarding the hardware acceleration equipment. A processor and a memory of a physical machine can be expanded and used for a network virtualization function, the network virtualization capability is improved, and then the number of virtual network cards capable of being served by a virtual switch and the network performance and deployment density of virtualization examples (such as VMs) are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of cloud computing technology, and in particular to a message forwarding and network information management method, related equipment and storage medium. Background Art

[0002] Cloud computing is a distributed computing method based on the Internet. It allows users to access resources on the "cloud" at any time and use them on demand. The basis of cloud computing is virtualization technology. Based on virtualization technology, multiple virtual machines can run on one physical machine, and different applications can be installed and run in different virtual machines.

[0003] In the traditional virtualization architecture, various virtualization functions are implemented on the host and share the host's processor (CPU) and memory and other resources with the virtual machines. This architecture does not have the ability to offload hardware. Various virtualization functions run on the host, occupying more host resources and causing performance interference to the virtual machines.

[0004] Therefore, cloud vendors began to adopt hardware acceleration solutions to offload some virtualization functions to smart network cards. The most typical example is to offload the virtual switch (vswitch) to the smart network card, thereby reducing the host resource usage of network virtualization functions and reducing the performance interference caused to virtual machines.

[0005] However, since the resources on the smart NIC are limited and cannot be dynamically expanded, the vswitch capabilities provided by the smart NIC are limited, which will to a certain extent limit the network performance of the virtual machine and the deployment density of the virtual machine. Summary of the invention

[0006] Multiple aspects of the present application provide a message forwarding and network information management method, related equipment and storage medium, which are used to provide a hybrid virtualization architecture, expand the use of physical machine processors and memory for network virtualization functions, improve the network virtualization functions, and thereby improve the network performance and deployment density of virtualized instances.

[0007] An embodiment of the present application provides a physical server, including: a physical machine and a hardware acceleration device, a virtualization instance is deployed on the physical machine, the virtualization instance has a virtual network card, and the virtual network card forwards data through a virtual switch; wherein the virtual switch includes an operation and maintenance management module, a first network forwarding module, and a second network forwarding module; the operation and maintenance management module and the first network forwarding module run on the hardware acceleration device, and the second network forwarding module runs on the physical machine; the operation and maintenance management module is responsible for providing network management and operation and maintenance services for the virtual network card; the first network forwarding module and the second network forwarding module are respectively responsible for providing data forwarding services for different virtual network cards.

[0008] An embodiment of the present application also provides a message forwarding method, including: receiving a message; when there is no flow table corresponding to the message locally, determining a target network forwarding module from a first network forwarding module and a second network forwarding module included in a virtual switch; requesting the flow table corresponding to the message from the target network forwarding module, and when receiving the flow table issued by the target network forwarding module, forwarding the message according to the flow table; wherein the first network forwarding module and the second network forwarding module respectively run on a hardware acceleration device and a physical machine included in a physical server to which the virtual switch belongs.

[0009] An embodiment of the present application also provides a message forwarding method, comprising: receiving a message; determining a target network forwarding module from a first network forwarding module and a second network forwarding module included in a virtual switch according to a maintained forwarding index table; sending the message to the target network forwarding module so that the target network forwarding module forwards the message; wherein the forwarding index table stores a correspondence between a virtual network card and / or a tenant network to which the virtual network card belongs and a network forwarding module, and the first network forwarding module and the second network forwarding module respectively run on a hardware acceleration device and a physical machine included in a physical server to which the virtual switch belongs.

[0010] An embodiment of the present application also provides a message forwarding method, which is applied to a first network forwarding module or a second network forwarding module in a virtual switch, wherein the first network forwarding module and the second network forwarding module respectively run on a hardware acceleration device and a physical machine contained in a physical server to which the virtual switch belongs, and the method comprises: receiving a message, the message coming from a virtual network card or a tenant network to which the corresponding virtual network card belongs; determining whether there is forwarding permission for the message according to a maintained forwarding index table, wherein the forwarding index table stores a correspondence between the virtual network card and / or the tenant network to which the virtual network card belongs and the network forwarding module; if the determination is yes, forwarding the message according to a flow table corresponding to the message.

[0011] An embodiment of the present application also provides a network information configuration method, which is applied to an operation and maintenance management module in a virtual switch in a physical server, the method comprising: in response to a network management request, determining an object to be managed, the object to be managed being a virtual network card in the physical server and / or a tenant network to which the virtual network card belongs, the virtual network card forwarding data through the virtual switch; determining a first target network forwarding module adapted to the object to be managed from a first network forwarding module and a second network forwarding module included in the virtual switch, the first network forwarding module and the second network forwarding module respectively running on a hardware acceleration device and a physical machine included in the physical server; and performing network management on the object to be managed through the first target network forwarding module.

[0012] An embodiment of the present application also provides a physical machine, on which a virtualization instance is deployed, the virtualization instance has a virtual network card, and the virtual network card forwards data through a virtual switch; wherein the virtual switch includes an operation and maintenance management module, a first network forwarding module, and a second network forwarding module; the operation and maintenance management module and the first network forwarding module run on a hardware acceleration device corresponding to the physical machine, and the second network forwarding module runs on the physical machine, and the second network forwarding module is responsible for providing data forwarding services for some virtual network cards.

[0013] An embodiment of the present application also provides a hardware acceleration device, including: a memory and a processor; the memory is used to store program codes corresponding to the operation and maintenance management module and the first network forwarding module deployed in the virtual switch; the processor is coupled to the memory, and is used to execute the program code corresponding to the operation and maintenance management module to provide network management and operation and maintenance services for the virtual network card, and run the program code corresponding to the first network forwarding module to provide data forwarding services for some virtual network cards; wherein the virtual switch also includes a second network forwarding module, and the second network forwarding module runs on a physical machine in the physical server to which the virtual switch belongs; the virtual network card is a virtual network card of a virtualized instance deployed on the physical machine.

[0014] The embodiment of the present application also provides a physical server, including: a physical machine and a hardware acceleration device, a virtual machine is deployed on the physical machine, the virtual machine has a virtual network card, and the virtual network card forwards data through a virtual switch; wherein the virtual switch includes an operation and maintenance management module and a network forwarding module; the operation and maintenance management module runs on the hardware acceleration device, and the network forwarding module runs on the physical machine; the operation and maintenance management module is responsible for providing network management and operation and maintenance services for the virtual network card; the network forwarding module is responsible for providing data forwarding services for the virtual network card.

[0015] The embodiments of the present application also provide a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor is enabled to implement the steps in the various message forwarding methods or network information configuration methods provided in the embodiments of the present application.

[0016] In an embodiment of the present application, the functions of the virtual switch are split, and the operation and maintenance management module in the virtual switch is responsible for providing network management and operation and maintenance services for the virtual network card, and the first network forwarding module and the second network forwarding module in the virtual switch are responsible for providing data forwarding services for different virtual network cards respectively. In terms of deployment, the operation and maintenance management module and the first network forwarding module are run on the hardware acceleration device, and the second network forwarding module is deployed on the physical machine to realize a hybrid virtualization architecture. While keeping the hardware architecture and control architecture of the hardware acceleration device unchanged, the processor and memory of the physical machine can be used for the network virtualization function expansion, thereby improving the network virtualization capability, thereby increasing the number of virtual network cards that the virtual switch can serve, and improving the network performance and deployment density of the virtualization instance. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0018] Figure 1 A schematic diagram of the structure of a physical server provided for an exemplary embodiment of the present application;

[0019] Figure 2a A schematic diagram of the structure of another physical server provided for an exemplary embodiment of the present application;

[0020] Figure 2b A structural diagram of another physical server provided for an exemplary embodiment of the present application;

[0021] Figure 3 A structural diagram of another physical server provided for an exemplary embodiment of the present application;

[0022] Figure 4a A flowchart of a message forwarding method provided for an exemplary embodiment of the present application;

[0023] Figure 4b A flowchart of another message forwarding method provided for an exemplary embodiment of the present application;

[0024] Figure 4c A flowchart of another message forwarding method provided for an exemplary embodiment of the present application;

[0025] Figure 5 A flowchart of a network information configuration method provided for an exemplary embodiment of the present application;

[0026] Figure 6 A schematic diagram of the structure of a hardware acceleration device provided for an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0028] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0029] The resources on the smart network card in the existing virtualization architecture are limited and cannot be dynamically expanded. The vswitch capabilities provided by the smart network card are limited, which will limit the network performance of the virtual machine and the deployment density of the virtual machine to a certain extent. In response to this technical problem, in the embodiment of the present application, the virtual switch is functionally split, and the operation and maintenance management module in the virtual switch is responsible for providing network management and operation and maintenance services for the virtual network card, and the first network forwarding module and the second network forwarding module in the virtual switch are responsible for providing data forwarding services for different virtual network cards respectively. In terms of deployment, the operation and maintenance management module and the first network forwarding module are run on the hardware acceleration device, and the second network forwarding module is deployed on the physical machine to realize a hybrid virtualization architecture. While keeping the hardware architecture and control architecture of the hardware acceleration device unchanged, the processor and memory of the physical machine can be used for network virtualization function expansion, the network virtualization capability is improved, the number of virtual network cards that can be served by the virtual switch is increased, and the network performance and deployment density of the virtualized instance are improved.

[0030] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0031] Figure 1 A schematic diagram of the structure of a physical server provided by an exemplary embodiment of the present application. Figure 1 As shown, the physical server includes: a physical machine 101 and a hardware acceleration device 102 .

[0032] Among them, the hardware acceleration device 102 can be implemented as a physical network card of the physical machine 101, which is responsible for forwarding network traffic on the physical machine 101. However, the hardware acceleration device 102 is no longer simply responsible for forwarding network traffic on the physical machine 101, but can also support hardware offload of various software functions, and can be implemented as a smart network card (SmartNiC). For example, some operations that need to be performed by the CPU on the physical machine 101, such as packet encapsulation / decapsulation, network address translation (Network Address Translation, NAT), rate limiting, and Really Simple Syndication (RSS) can be offloaded to the hardware acceleration device 102 and implemented in hardware.

[0033] The hardware acceleration device 102 is a hardware network card implemented based on programmable hardware. For example, the programmable hardware can be an application specific integrated circuit (ASIC), a system on chip (SOC), a field programmable gate array (FPGA) or a complex programmable logic device (CPLD). In addition, the hardware acceleration device 102 in the embodiment of the present application can be implemented as a pluggable structure and plugged into the physical machine 101. The pluggable method has the advantages of flexible use and strong scalability, but is not limited to this. For example, the hardware acceleration device 102 can also be directly integrated into the physical machine 101. Relative to the hardware acceleration device 102, the physical machine 101 can also be called a host.

[0034] Among them, a virtualization instance 103 is deployed on the physical machine 101. The virtualization instance refers to an application instance implemented based on virtualization technology. For example, the virtualization instance can be a virtual machine, a container instance, etc. The virtualization instance 103 has a virtual network card (Virtual NIC, vNIC) 104. The virtual network card 104 is a network card simulated by the virtualization instance 103 to which it belongs in software or hardware through virtualization technology. The virtual network card 104 forwards data through a virtual switch 105. The virtual switch 105 is responsible for providing data forwarding services for the virtualization instance on the physical machine 101, that is, the virtual network card 104 of the virtualization instance 103 forwards data through the virtual switch 105.

[0035] In this embodiment, the virtual switch 105 is functionally split, such as Figure 1As shown, the virtual switch 105 includes: an operation and maintenance management module 105a, a first network forwarding module 105b, and a second network forwarding module 105c. The operation and maintenance management module 105a, the first network forwarding module 105b, and the second network forwarding module 105c can be implemented based on software. In terms of deployment and implementation, the operation and maintenance management module 105a and the first network forwarding module 105b are deployed and run on the hardware acceleration device 102, specifically on the processor of the hardware acceleration device 102, and the processor of the hardware acceleration device 102 can be a cloud infrastructure processing unit (Cloud Infrastructure Processing Units, CPIU); the second network forwarding module 105c is deployed and runs on the physical machine 101, specifically on the processor of the physical machine 101.

[0036] The operation and maintenance management module 105 a is responsible for providing network management and operation and maintenance services for the virtual network card 104 ; the first network forwarding module 105 b and the second network forwarding module 105 c are responsible for providing data forwarding services for different virtual network cards 104 , respectively.

[0037] In an embodiment of the present application, by splitting the functions of the virtual switch, the operation and maintenance management module is responsible for providing network management and operation and maintenance services for the virtual network card, and the first network forwarding module and the second network forwarding module are respectively responsible for providing data forwarding services for different virtual network cards. In terms of deployment, the operation and maintenance management module and the first network forwarding module are run on the hardware acceleration device, and the second network forwarding module is deployed on the physical machine to realize a hybrid virtualization architecture, wherein the second network forwarding module is deployed and runs on the physical machine, and resources such as the CPU and memory on the physical machine can be used through resource division. While keeping the hardware architecture and management architecture of the hardware acceleration device unchanged, the processor and memory of the physical machine can be used for the network virtualization function expansion, thereby improving the network virtualization capability, and increasing the number of virtual network cards that the virtual switch can serve, thereby improving the network performance and deployment density of the virtualization instance.

[0038] In an optional embodiment, the resources on the physical machine can also be sold to the outside. For example, the tenant can deploy his own relatively independent network environment on one or more physical machines, referred to as the tenant network, and different tenant networks are relatively isolated. The embodiment of the present application does not limit the implementation form of the tenant network. For example, the tenant network can be but not limited to a private cloud (Virtual Private Cloud, VPC). The tenant can deploy multiple virtualization instances in the VPC network, such as VMs or containers, and these virtualization instances provide corresponding services to the tenants. Each virtualization instance in the VPC network corresponds to a virtual network card. The tenant can initiate a network management request to the operation and maintenance management module for the virtual network card or PVC, and perform network management and operation and maintenance services for the VPC network or the virtual network card in the VPC network. Alternatively, the operation and maintenance personnel can also initiate a network management request for the tenant's VPC network or the virtual network card in the VPC network through the operation and maintenance management module, and perform network management and operation and maintenance services for the VPC network or the virtual network card in the VPC network. The network management request in the embodiment of the present application is used to configure relevant network information for the virtual network card or VPC, such as configuring the available bandwidth, IP address, routing information, etc. of the virtual network card, and configuring the available bandwidth, IP address segment, etc. of the VPC.

[0039] Accordingly, the operation and maintenance management module can respond to the network management request and determine the object to be managed. The network management request carries the identification information of the object to be managed and the content of network management of the object to be managed, such as setting the bandwidth or route of the object to be managed. Among them, whether the object initiating the network management request is the tenant or the operation and maintenance personnel, the object to be managed can be a specific virtual network card or a tenant network, such as a VPC network. For example: when the tenant needs to configure the available bandwidth and IP address segment for the entire VPC network, the network management request can be initiated through the operation and maintenance management module. At this time, the object to be managed can be the tenant network (such as the VPC network). After the operation and maintenance management module completes the configuration for the VPC network, the available bandwidth and IP address segment will take effect on the VPC network, and the IP address used by the virtual network card in the VPC network is located in the IP address segment. It is particularly noted here that for the VPC network, in order to improve the efficiency of data transmission and achieve data concealment and security, tunnel encapsulation technology can be used. Further, the tenant can also configure tunnel-related information, such as the IP address and port number of the tunnel. For another example, when the operation and maintenance personnel need to limit the available bandwidth of a specific virtual network card, they can initiate a network management request to the operation and maintenance management module. At this time, the object to be managed is the virtual network card. After the operation and maintenance management module completes the configuration for the specific virtual network card, the available bandwidth will take effect on the virtual network card.

[0040] Further, in an embodiment of the present application, the operation and maintenance management module can uniformly manage the first network forwarding module and the second network forwarding module. For example, a socket connection can be established with the first network forwarding module and the second network forwarding module respectively, and the first network forwarding module and the second network forwarding module can be uniformly managed based on the local network. Further, on the basis that the first network forwarding module and the second network forwarding module can provide data forwarding services for the virtual network card, the operation and maintenance management module can perform management operations on the object to be managed through a certain network forwarding module. Specifically, the operation and maintenance management module can determine the network forwarding module adapted to the object to be managed from the first network forwarding module and the second network forwarding module. For the convenience of description and distinction, the network forwarding module adapted to the object to be managed determined here is referred to as the first target network forwarding module; the first target network forwarding module can be the first network forwarding module or the second network forwarding module, depending on the object to be managed; then, network management of the object to be managed is performed through the first target network forwarding module. Among them, the operation and maintenance management module can provide the content required for network management of the managed object to the first target network forwarding module in the form of configuration commands or messages. After receiving the configuration commands or messages, the first target network forwarding module configures the relevant content for the managed object to complete the network management operation of the managed object.

[0041] The implementation method of determining the first target network forwarding module adapted to the object to be managed from the first network forwarding module and the second network forwarding module is not limited.

[0042] Example A1: In this example, it can be assumed that the first network forwarding module is responsible for cooperating with the operation and maintenance management module to perform network management operations from the virtual network card dimension, and the second network forwarding module is responsible for cooperating with the operation and maintenance management module to perform network management operations from the tenant network dimension. Based on this, when the object to be managed is implemented as a virtual network card, the first target network forwarding module is implemented as the first network forwarding module, and when the object to be managed is implemented as a tenant network, the first target network forwarding module is implemented as the second network forwarding module.

[0043] Example A2:In this example, the operation and maintenance management module maintains a management index table, which maintains the correspondence between the virtual network card and / or the tenant network and the network forwarding module (i.e., the first network forwarding module and the second network forwarding module). For ease of description and distinction, the correspondence maintained in the management index table is referred to as the first correspondence, and the first correspondence is used for the operation and maintenance management module to determine the corresponding network forwarding module when performing operation and maintenance management on the virtual network card or the tenant network. In an application scenario, it may only be necessary to operate and manage the virtual network card, then the management index table records the first correspondence between the virtual network card and the network forwarding module, where the first correspondence can reflect whether a certain virtual network card corresponds to the first network forwarding module or the second network forwarding module, and the operation and maintenance management module can perform network management operations on the virtual network card through the network forwarding module corresponding to the virtual network card. In another application scenario, it may be necessary to only operate and manage the tenant network, then the management index table records the first correspondence between the tenant network and the network forwarding module, where the first correspondence can reflect whether a certain tenant network corresponds to the first network forwarding module or the second network forwarding module, and the operation and maintenance management module can perform network management operations on the tenant network through the network forwarding module corresponding to the tenant network. In another application scenario, it may be necessary to operate and manage the virtual network card and the tenant network at the same time, then the management index table records the first correspondence between the virtual network card, the tenant network and the network forwarding module, where the first correspondence can reflect whether a certain virtual network card corresponds to the first network forwarding module or the second network forwarding module, and whether a certain tenant network corresponds to the first network forwarding module or the second network forwarding module, and the operation and maintenance management module can perform network management operations on the virtual network card through the network forwarding module corresponding to the virtual network card, and can perform network management operations on the tenant network through the network forwarding module corresponding to the tenant network. Among them, the network forwarding module in the above-mentioned first correspondence includes the first network forwarding module and the second network forwarding module.

[0044] Among them, when determining the first target network forwarding module, the operation and maintenance management module is specifically used to: query the management index table according to the identification information of the object to be managed, so as to determine the first target network forwarding module adapted to the object to be managed from the first network forwarding module and the second network forwarding module.

[0045] The management index table of this embodiment can be implemented as one index table or multiple index tables, and any index table structure that can record the above-mentioned first correspondence relationship is applicable to the embodiment of this application. In an optional embodiment, the management index table of this embodiment includes: a first management index table and a second management index table, the first management index table records the first correspondence relationship between the virtual network card and the network forwarding module, and the second management index table records the first correspondence relationship between the tenant network and the network forwarding module.

[0046] Among them, the first management index table includes: the first correspondence between the identification information of the virtual network card (vNIC ID) and the identification information of the network forwarding module. In the embodiment of the present application, whether it is the first network forwarding module or the second network forwarding module, its main function is to be responsible for forwarding relevant data (such as messages from the outside, messages from the virtual network card, and configuration commands or messages from the operation and maintenance management module). Relatively speaking, the operation and maintenance management module can be called the control plane, and it is vSwitchD, and the first or second network forwarding module can be called the data plane (dataplane). More specifically, the first network forwarding module is recorded as dataplane-1, and the second network forwarding module is recorded as dataplane-2. Based on this, the first management index table can be implemented as the following management index table T1. In the management index table T1, two virtual network cards are taken as an example, and the identification information of the two virtual network cards is recorded as vnic-1 and vnic-2, and dataplane-1 and dataplane-2 are used to represent the two network forwarding modules for illustration, but it is not limited to this. Furthermore, the first correspondence recorded in the management index table T1 also includes: identification information of the tenant network. Optionally, the tenant network can be represented by its corresponding tunnel identifier (Tunnel ID). For example, in the management index table T1, two virtual network cards belonging to two different tenant networks are used as an example, and the identification information of the two tenant networks is represented as vpc1 and vpc2.

[0047] Among them, the second management index table includes: a first correspondence between the identification information of the tenant network (such as Tunnel ID) and the identification information of the network forwarding module (DP ID). The second management index table can be implemented as the following management index table T2. In the management index table T2, the tenant network includes vpc1 and vpc2, and the network forwarding module includes data planes dataplane-1 and dataplane-2. For example, it is illustrated, but not limited to this.

[0048] In the management index table T1 and the management index table T2, dataplane-1 may represent a first network forwarding module, and dataplane-2 may represent a second network forwarding module.

[0049] Management index table T1

[0050] Virtual Network Interface Card (vNIC ID) Tenant network (Tunnel ID) Network forwarding module (DP ID) Management Channel vnic-1 vpc-1 dataplane-1 socket-1 vnic-2 vpc-2 dataplane-2 socket-2

[0051] Manage index table T2

[0052] Tenant network (Tunnel ID) Network forwarding module (DP ID) Management Channel vpc-1 Data plane (dataplane-1) socket-1 vpc-2 Data plane (dataplane-2) socket-2

[0053] Based on the above-mentioned first management index table and second management index table, when the operation and maintenance management module determines that the object to be managed is a virtual network card, it queries the first management index table to determine the first target network forwarding module from the first network forwarding module and the second network forwarding module. For example, if the identification information of the object to be managed is implemented as a virtual network card vnic-1, then according to the management index table T1, it can be determined that the virtual network card vnic-1 corresponds to the data plane dataplane-1, that is, the first network forwarding module, and the first network forwarding module is used as the first target network forwarding module, and then the network management of the virtual network card vnic-1 is performed with the help of the first network forwarding module.

[0054] When the operation and maintenance management module determines that the object to be managed is a tenant network, it queries the second management index table to determine the first target network forwarding module from the first network forwarding module and the second network forwarding module. For example, if the identification information of the object to be managed is implemented as tenant network vpc-2, then according to the management index table T2, it can be determined that the tenant network vpc-2 corresponds to data plane dataplane-2, that is, the second network forwarding module, and the second network forwarding module is used as the first target network forwarding module, and then the tenant network vpc-2 is managed with the help of the second network forwarding module.

[0055] Further optionally, the operation and maintenance management module establishes a connection with the first network forwarding module or the second network forwarding module respectively through different local socket connections, and the first management index table and the second management index table also record the socket connections between each network forwarding module and the operation and maintenance management module, and different socket connections correspond to different network forwarding modules, indicating the management channels between the operation and maintenance management module and different network forwarding modules. For example, the corresponding relationship between the management channel and the network forwarding module is maintained in the management index table T1 and the management index table T2, and the management channel includes: socket 1 (socket-1) and socket 2 (socket-2), wherein socket-1 corresponds to dataplane-1, i.e., it indicates the management channel between the operation and maintenance management module and the first network forwarding module, and socket-2 corresponds to dataplane-2, i.e., it indicates the management channel between the operation and maintenance management module and the second network forwarding module.

[0056] Accordingly, when the operation and maintenance management module performs network management on the object to be managed through the first target network forwarding module, the socket connection between the operation and maintenance management module and the first target network forwarding module can be determined from the first management index table or the second management index table. For example, when it is determined that the object to be managed is a virtual network card, the socket connection between the operation and maintenance management module and the first target network forwarding module is determined from the first management index table; when it is determined that the object to be managed is a tenant network, the socket connection between the operation and maintenance management module and the first target network forwarding module is determined from the second management index table; and a management instruction is sent to the first target network forwarding module based on the socket connection to instruct the first target network forwarding module to perform network management on the object to be managed.

[0057] In this embodiment, the first network forwarding module and the second network forwarding module are responsible for providing data forwarding services for different virtual network cards respectively, and the implementation method is not limited.

[0058] Example B1: like Figure 2a As shown, the hardware acceleration device 102 includes programmable hardware in addition to a processor, and a forwarding acceleration module 106 is implemented on the programmable hardware. The programmable hardware includes FPGA, CPLD, ASIC or SOC, etc. The forwarding acceleration module 106 implemented based on the above programmable hardware is a hardware acceleration of the first network forwarding module and the second network forwarding module.

[0059] Among them, some flow tables can be stored on the forwarding acceleration module 106, which is responsible for receiving messages, for example, receiving messages from outside the hardware acceleration device 102, or receiving messages sent by the virtualization instance through the virtual network card; when the forwarding acceleration module receives the message, it will first match the flow table for the received message locally, and the flow table records the processing operations on the message, such as discarding, forwarding, etc. When there is no flow table corresponding to the message locally, the forwarding acceleration module 106 is responsible for determining the second target network forwarding module from the first network forwarding module and the second network forwarding module. The second target network forwarding module is the network forwarding module responsible for providing the flow table corresponding to the message. The second target network forwarding module may be the first network forwarding module or the second network forwarding module, depending on the specific information related to the message; the forwarding acceleration module 106 requests the second target network forwarding module for the flow table corresponding to the received message, and the second target network forwarding module returns the flow table of the message to the forwarding acceleration module 106 according to the request. When the forwarding acceleration module 106 receives the flow table sent by the second target network forwarding module, it forwards the message according to the received flow table. In this embodiment, the forwarding acceleration module 106 is implemented based on programmable hardware, and the message is forwarded and processed preferentially in hardware, which is beneficial to improving the message forwarding processing efficiency, reducing the processing burden on the first network forwarding module or the second network forwarding module, and saving consumed CPU resources.

[0060] The implementation method of the forwarding acceleration module determining the second target network forwarding module from the first network forwarding module and the second network forwarding module is not limited.

[0061] In an optional embodiment, the messages processed by the first network forwarding module and the second network forwarding module are set in advance. If the received message is provided by the virtual network card, it is determined that the flow table of the message is provided by the second network forwarding module; if the received message is from outside the hardware acceleration device, it is determined that the flow table of the message is provided by the first network forwarding module.

[0062] In another optional embodiment, the forwarding acceleration module maintains a forwarding index table, which records the second correspondence between the virtual network card and / or the tenant network and the network forwarding module (i.e., the first network forwarding module and the second network forwarding module). The second correspondence is used for the forwarding acceleration module to determine the corresponding network forwarding module when it needs to request a flow table for the received message. Depending on the application scenario, the second correspondence can be a correspondence between the virtual network card and the network forwarding module, or a correspondence between the tenant network to which the virtual network card belongs and the network forwarding module, or a correspondence between the virtual network card, the tenant network and the network forwarding module.

[0063] Among them, when the forwarding acceleration module determines the second target network forwarding module from the first network forwarding module and the second network forwarding module, it can query the forwarding index table according to the relevant information of the message, such as the virtual network card or tenant network corresponding to the message, so as to determine the second target network forwarding module from the first network forwarding module and the second network forwarding module. For example, in the case of receiving a message, it can be identified whether the message comes from the virtual network card according to the relevant fields carried in the message or the physical interface of the received message; if the message comes from the virtual network card, it is considered that the message corresponds to the virtual network card, and the forwarding index table with the second corresponding relationship between the virtual network card and the network forwarding module is queried; on the contrary, if the message does not come from the virtual network card, it can be determined that the message comes from the physical network card of the physical server, that is, the message received by the physical network card from the outside; if the message comes from the physical network card, it can be determined according to the physical interface of the received message to which tenant the message belongs, and it is considered that the message corresponds to the tenant network, and the message needs to be provided to the virtualized instance in the tenant network, and the forwarding index table with the second corresponding relationship between the tenant network and the network forwarding module is queried.

[0064] Optionally, the forwarding index table of this embodiment can be implemented as one index table or multiple index tables, and any index table structure that can record the above-mentioned second correspondence relationship is applicable to the embodiment of this application. In an optional embodiment, the forwarding index table of this embodiment includes a first forwarding index table and a second forwarding index table, and the first forwarding index table records the second correspondence relationship between the virtual network card and the network forwarding module, and the second forwarding index table records the second correspondence relationship between the tenant network and the network forwarding module.

[0065] For example, the first forwarding index table includes a second correspondence between identification information of a virtual network card (vNIC ID) and identification information of a network forwarding module (DP ID), and the first forwarding index table is implemented as a forwarding index table T3, in which the identification information of the virtual network card includes vnic-1 and vnic-2, and the network forwarding module includes dataplane-1 and dataplane-2 as an example for illustration, but is not limited thereto. Further, the second correspondence recorded in the forwarding index table T3 also includes: identification information of a tenant network (Tunnel ID), for example, the identification information of a tenant network includes vpc1 and vpc2.

[0066] For example, the second forwarding index table includes: a second correspondence between the identification information (Tunnel ID) of the tenant network and the identification information (DP ID) of the network forwarding module. The second forwarding index table can be implemented as the following forwarding index table T4. In the forwarding index table T4, the tenant network includes vpc1 and vpc2, and the network forwarding module includes data planes dataplane-1 and dataplane-2. For example, it is illustrated, but not limited to this.

[0067] In the forwarding index table T3 and the forwarding index table T4, dataplane-1 may represent a first network forwarding module, and dataplane-2 may represent a second network forwarding module.

[0068] Management index table T3

[0069] Virtual Network Interface Card (vNIC ID) Tenant network (Tunnel ID) Network forwarding module (DP ID) Physical Channel vnic-1 vpc-1 dataplane-1 PCIE-1 vnic-2 vpc-2 dataplane-2 PCIE-2

[0070] Management index table T4

[0071] Tenant network (Tunnel ID) Network forwarding module (DP ID) Physical Channel vpc-1 Data plane (dataplane-1) PCIE-1 vpc-2 Data plane (dataplane-2) PCIE-2

[0072] Among them, the forwarding acceleration module can determine the flow direction of the message according to the receiving port of the message; wherein, the receiving port is the physical port of the forwarding acceleration module, and the receiving port mainly has two, one is used to connect to the physical machine, and is used to send and receive messages with the virtual network card of the virtualization instance, and the other is used to connect to the physical network card of the physical server to realize external communication; the flow direction of the message is related to the receiving port, and is further related to the destination field of the message. If the message comes from the interface of the physical network card, it can be considered that the message comes from the outside, and the destination field of the message indicates that it needs to be provided to the virtualization instance in the tenant network, then the flow direction of the message is considered to be the receiving direction; if the message comes from the virtual network card corresponding to the virtualization instance, the destination field of the message indicates that the message needs to be provided to the physical network card to realize communication with the outside, then the flow direction of the message is considered to be the sending direction. Simply put, in the embodiment of the present application, for the received message, if it needs to be sent to a certain virtualization instance, then the flow direction of the message is considered to be the receiving direction, otherwise, if it needs to be sent to the physical network card or the outside, then the flow direction of the message is considered to be the sending direction. However, if the message comes from the virtual network card corresponding to virtualization instance A, and the destination field of the message indicates that the message needs to be provided to the virtual network card of other virtualization instance B on the physical machine, then from the perspective of virtualization instance A, the flow direction of the message is considered to be the sending direction. Among them, the first forwarding index table corresponds to the flow sending direction, and the second forwarding index table corresponds to the flow receiving direction.

[0073] Correspondingly, when the traffic direction is the sending direction, indicating that the message is sent to the virtual network card of the virtualization instance, the forwarding acceleration module queries the first forwarding index table to determine the second target network forwarding module from the first network forwarding module and the second network forwarding module. For example, from the forwarding index table T3, it is determined that the virtual network card corresponding to the message is vnic-1, and the network forwarding module corresponding to the virtual network card vnic-1 is dataplane-1, then dataplane-1 is used as the second target network forwarding module, and then the flow table corresponding to the message can be requested from dataplane-1; when the traffic direction is the receiving direction, indicating that the message is sent to the virtual network card in a tenant network, the second forwarding index table is queried to determine the second target network forwarding module from the first network forwarding module and the second network forwarding module. For example, from the forwarding index table T4, it is determined that the tenant network corresponding to the message is vpc-2, and the network forwarding module corresponding to the tenant network vpc-2 is dataplane-2, then dataplane-2 is used as the second target network forwarding module, and then the flow table corresponding to the message can be requested from dataplane-2.

[0074] Furthermore, there is a physical channel between the forwarding acceleration module and the hardware structure where the network forwarding module is located (for example, the processor of the hardware acceleration device where the first network forwarding module is located, and the processor of the physical machine where the second network forwarding module is located), which is referred to as the physical channel between the first network forwarding module and the second network forwarding module and the forwarding acceleration module, respectively. The physical channel can be implemented as a high-speed serial bus, and the high-speed serial bus includes but is not limited to: Peripheral Component Interconnect (PCI) bus, Peripheral Component Interconnect Express (PCIE) bus or two-wire serial (Inter-Integrated Circuit, I2C) bus. Among them, there are physical channels between the first network forwarding module and the second network forwarding module and the forwarding acceleration module, respectively. In the forwarding index table T3 and the forwarding index table T4, the physical channel between the first network forwarding module and the forwarding acceleration module is implemented as pcie-1, and the physical channel between the second network forwarding module and the forwarding acceleration module is implemented as pcie-2. The forwarding index table T3 and the forwarding index table T4 are only exemplary and not limited to this.

[0075] Based on this, when the accelerated forwarding module requests the flow table corresponding to the message from the second target network forwarding module, it can also determine the physical channel between the accelerated forwarding module and the second target network forwarding module from the first forwarding index table or the second forwarding index table, and send a flow table request to the second target network forwarding module based on the physical channel to request the flow table corresponding to the message. For example, if the second target network forwarding module is implemented as the first network forwarding module, such as dataplane-1 in the forwarding index table T3, the accelerated forwarding module can determine from the forwarding index table T3 that the physical channel corresponding to the network forwarding module dataplane-1 is pcie-1, and request the flow table corresponding to the message from the network forwarding module dataplane-1 through the physical channel pcie-1; if the second target network forwarding module is implemented as the second network forwarding module, such as dataplane-2 in the forwarding index table T4, the accelerated forwarding module can determine from the forwarding index table T4 that the physical channel corresponding to the network forwarding module dataplane-2 is pcie-2, and request the flow table corresponding to the message from the network forwarding module dataplane-2 through the physical channel pcie-2.

[0076] Example B2: If the forwarding acceleration module mentioned above is not implemented on the hardware acceleration device, then the first network forwarding module and the second network forwarding module are respectively responsible for providing data forwarding services for different virtual network cards in another implementation mode: both the messages that the virtual network card needs to send outward and the external messages received by the physical network card are sent to the first network forwarding module and the second network forwarding module at the same time; the first network forwarding module and the second network forwarding module are responsible for receiving the messages sent by each virtual network card and the physical network card, that is, the first network forwarding module and the second network forwarding module, the received messages can be provided by the virtual network card or the physical network card, no matter who provides the message, before providing the message, the message is copied into two copies and sent to the first network forwarding module and the second network forwarding module respectively, so that the first network forwarding module and the second network forwarding module both receive the message, and then one of the first network forwarding module and the second network forwarding module forwards the message.

[0077] The first network forwarding module and the second network forwarding module each maintain a forwarding index table, which stores the correspondence between the virtual network card and the network forwarding module, or the correspondence between the tenant network to which the virtual network card belongs and the network forwarding module, or the correspondence between the virtual network card, the tenant network to which the virtual network card belongs, and the network forwarding module; the first network forwarding module or the second network forwarding module determines whether each has the forwarding authority for the message based on the correspondence in the maintained forwarding index table. The first network forwarding module or the second network forwarding module has the forwarding authority for the message corresponding to the virtual network card and / or tenant network with which it has a corresponding relationship and which is recorded in the forwarding index table.

[0078] Optionally, the forwarding index table maintained by the first network forwarding module or the second network forwarding module includes a first forwarding index table and a second forwarding index table, wherein the first forwarding index table records the correspondence between the virtual network card and the network forwarding module, and the second forwarding index table records the correspondence between the tenant network and the network forwarding module. For a detailed description of the two forwarding index tables, please refer to the aforementioned embodiment, which will not be repeated here. The first network forwarding module or the second network forwarding module can determine the flow direction of the message according to the receiving port of the message. The detailed implementation method can be found in the above. When the flow direction is the sending direction, the first forwarding index table is queried to determine whether it has forwarding authority for the message. For example, from the forwarding index table T3, it is determined that the virtual network card corresponding to the message is vnic-1, and the network forwarding module corresponding to the virtual network card vnic-1 is dataplane-1. It is considered that the first network forwarding module corresponding to dataplane-1 has forwarding authority for the message, and the first network forwarding module does not have forwarding authority for the message. When the flow direction is the receiving direction, the second forwarding index table is queried to determine whether it has forwarding authority for the message. For example, from the forwarding index table T4, it is determined that the tenant network corresponding to the message is vpc-2, and the network forwarding module corresponding to the tenant network vpc-2 is dataplane-2. It is considered that the second network forwarding module corresponding to dataplane-2 has forwarding authority for the message, and the first network forwarding module does not have forwarding authority for the first message.

[0079] Example B3: Another implementation method in which the first network forwarding module and the second network forwarding module are respectively responsible for providing data forwarding services for different virtual network cards: Figure 2b As shown, the hardware acceleration device 102 further includes a programmable hardware device, on which a diversion module 107 is implemented. The diversion module 107 is used to receive messages and divert the received messages to the first network forwarding module and the second network forwarding module.

[0080] Specifically, the diversion module maintains a forwarding index table, which stores the correspondence between the virtual network card and the network forwarding module, or the correspondence between the tenant network to which the virtual network card belongs and the network forwarding module, or the correspondence between the virtual network card, the tenant network to which the virtual network card belongs, and the network forwarding module; according to the maintained forwarding index table, the third target network forwarding module is determined from the first network forwarding module and the second network forwarding module, and the message is sent to the third target network forwarding module so that the third target network forwarding module can forward the message.

[0081] Optionally, the forwarding index table includes a first forwarding index table and a second forwarding index table, wherein the first forwarding index table records the correspondence between the virtual network card and the network forwarding module, and the second forwarding index table records the correspondence between the tenant network and the network forwarding module. For a detailed description of the two forwarding index tables, please refer to the aforementioned embodiment, which will not be repeated here.

[0082] The diversion module is specifically used for: determining the flow direction of the third message according to the receiving port of the message. For details, please refer to the above-mentioned embodiment and will not be repeated here; when the flow direction is the sending direction, querying the first forwarding index table to determine the third target network forwarding module from the first network forwarding module and the second network forwarding module; when the flow direction is the receiving direction, querying the second forwarding index table to determine the third target network forwarding module from the first network forwarding module and the second network forwarding module.

[0083] For example, when the traffic direction is the sending direction, the message corresponds to the virtual network card, and the first forwarding index table is queried, such as the forwarding index table T3. The virtual network card corresponding to the message is vnic-1, and the network forwarding module corresponding to the virtual network card vnic-1 is dataplane-1. Dataplane-1 is used as the third target network forwarding module; when the traffic direction is the receiving direction, the message corresponds to the tenant network, and the second forwarding index table is queried, such as the forwarding index table T4. The tenant network corresponding to the message is vpc-2, and the network forwarding module corresponding to the tenant network vpc-2 is dataplane-2. Dataplane-2 is used as the third target network forwarding module.

[0084] It should be noted that for the above examples B1-B3, the forwarding index table pre-maintained in the separation module, the forwarding acceleration module, the first network forwarding module, and the second network forwarding module can be pre-configured manually, or can be sent and pre-configured through the operation and maintenance management module or other modules, and there is no limitation on this. Furthermore, the forwarding index table pre-maintained in the separation module and the forwarding acceleration module can also be sent and pre-configured by the operation and maintenance management module through a certain network forwarding module.

[0085] Figure 3 A schematic diagram of the structure of a physical server provided by an exemplary embodiment of the present application. Figure 3 As shown, the physical server includes: a physical machine 301 and a hardware acceleration device 302. A virtualization instance 303 is deployed on the physical machine 301. Figure 3 The virtual machine is used as an example for illustration, but the invention is not limited thereto. The virtualization instance 303 has a virtual network card 304 , and the virtual network card 304 forwards data through a virtual switch 305 .

[0086] Among them, the virtual switch 305 includes an operation and maintenance management module 305a and a network forwarding module 305d; the operation and maintenance management module 305a runs on the hardware acceleration device, specifically on the processor of the hardware acceleration device; the network forwarding module 305d runs on the physical machine, specifically on the processor of the physical machine; the operation and maintenance management module 305a is responsible for providing network management and operation and maintenance services for the virtual network card; the network forwarding module 305d is responsible for providing data forwarding services for the virtual network card.

[0087] In an optional embodiment, the operation and maintenance management module is specifically used to: respond to network management requests and determine the object to be managed; perform network management on the object to be managed through the network forwarding module, and the object to be managed is a virtual network card or a tenant network to which the virtual network card belongs, or includes both the virtual network card and the tenant network to which the virtual network card belongs. The difference between the operation and maintenance management module in this embodiment and the operation and maintenance management module in the aforementioned embodiment is mainly that the operation and maintenance management module in this embodiment does not need to select a network forwarding module, nor does it need to maintain the management index table required for selecting a network forwarding module, and other functional descriptions related to operation and maintenance management can be found in the aforementioned embodiment, which will not be repeated here.

[0088] The implementation method of the network forwarding module 305d providing data forwarding services for the virtual network card is not limited, and the following example is provided:

[0089] In an optional embodiment, data forwarding service can be implemented by hardware acceleration based on the network forwarding module 305d. Specifically, the hardware acceleration device also includes: a forwarding acceleration module implemented based on programmable hardware; a forwarding acceleration module for receiving a message, and requesting the network forwarding module for the flow table corresponding to the message when the flow table corresponding to the message does not exist locally, and forwarding the message according to the flow table when receiving the flow table sent by the network forwarding module. The difference between the forwarding acceleration module in this embodiment and the forwarding acceleration module in the aforementioned embodiment is mainly that the forwarding acceleration module in this embodiment does not need to select a network forwarding module, nor does it need to maintain the forwarding index table required for selecting a network forwarding module, and other functional descriptions on message reception and forwarding can be found in the aforementioned embodiment, which will not be repeated here.

[0090] In another optional embodiment, the network forwarding module 305d directly implements data forwarding services based on software. The network forwarding module 305d is used to receive messages and forward the messages according to the maintained flow table. Whether it is a message that the virtual network card needs to send out or an external message received by the physical network card, it is directly sent to the network forwarding module, and the network forwarding module forwards the message based on the maintained flow table.

[0091] The detailed implementation methods and beneficial effects of each step in the physical server of this embodiment have been described in detail in the aforementioned embodiments and will not be elaborated here.

[0092] The embodiment of the present application also provides a message forwarding method, which corresponds to the forwarding acceleration module, such as Figure 4a As shown, the method includes:

[0093] 401a, receiving a message;

[0094] 402a. When there is no flow table corresponding to the message locally, determine a target network forwarding module from a first network forwarding module and a second network forwarding module included in the virtual switch;

[0095] 403a. Request the target network forwarding module for the flow table corresponding to the message, and when receiving the flow table sent by the target network forwarding module, forward the message according to the flow table, wherein the first network forwarding module and the second network forwarding module respectively run on the hardware acceleration device and the physical machine contained in the physical server to which the virtual switch belongs.

[0096] In an optional embodiment, determining a target network forwarding module from a first network forwarding module and a second network forwarding module included in the virtual switch includes: querying a maintained forwarding index table according to a virtual network card or a tenant network corresponding to the message to determine the target network forwarding module from the first network forwarding module and the second network forwarding module; wherein the forwarding index table records the correspondence between the virtual network card and / or the tenant network to which the virtual network card belongs and the network forwarding module.

[0097] Optionally, the forwarding index table includes a first forwarding index table and a second forwarding index table, the first forwarding index table records the correspondence between the virtual network card and the network forwarding module, and the second forwarding index table records the correspondence between the tenant network and the network forwarding module;

[0098] Among them, according to the virtual network card or tenant network corresponding to the message, the maintained forwarding index table is queried to determine the target network forwarding module from the first network forwarding module and the second network forwarding module, including: determining the flow direction of the message according to the receiving port of the message; when the flow direction is the sending direction, querying the first forwarding index table to determine the target network forwarding module from the first network forwarding module and the second network forwarding module; when the flow direction is the receiving direction, querying the second forwarding index table to determine the target network forwarding module from the first network forwarding module and the second network forwarding module.

[0099] Further optionally, the first forwarding index table and the second forwarding index table also record the physical channels corresponding to the network forwarding modules; requesting the flow table corresponding to the message from the target network forwarding module includes: determining the physical channel between the target network forwarding modules from the first or second forwarding index table; and sending a flow table download request to the target network forwarding module based on the physical channel to request the flow table corresponding to the message.

[0100] The present application also provides a message forwarding method, which corresponds to Figure 3 The forwarding acceleration module in the illustrated embodiment, the method includes: receiving a message, and when a flow table corresponding to the message does not exist locally, requesting a flow table corresponding to the message from a network forwarding module, and upon receiving the flow table sent by the network forwarding module, forwarding the message according to the flow table.

[0101] The embodiment of the present application also provides another message forwarding method, which corresponds to the diversion module, such as Figure 4b As shown, the method includes:

[0102] 401b, receiving a message;

[0103] 402b. Determine a target network forwarding module from a first network forwarding module and a second network forwarding module included in the virtual switch according to the maintained forwarding index table;

[0104] 403b. Send the message to the target network forwarding module so that the target network forwarding module forwards the message, wherein the forwarding index table stores the correspondence between the virtual network card and / or the tenant network to which the virtual network card belongs and the network forwarding module, and the first network forwarding module and the second network forwarding module respectively run on the hardware acceleration device and the physical machine contained in the physical server to which the virtual switch belongs.

[0105] The embodiment of the present application also provides another message forwarding method, which is applied to a first network forwarding module or a second network forwarding module in a virtual switch, wherein the first network forwarding module and the second network forwarding module are respectively run on a hardware acceleration device and a physical machine included in a physical server to which the virtual switch belongs, such as Figure 4c As shown, the method includes:

[0106] 401c. Receive a message, where the message comes from a virtual network card or a tenant network to which the corresponding virtual network card belongs;

[0107] 402c. Determine whether the packet has forwarding authority according to the maintained forwarding index table, wherein the forwarding index table stores a correspondence between the virtual network card and / or the tenant network to which the virtual network card belongs and the network forwarding module;

[0108] 403c: If the answer is yes, forward the message according to the flow table corresponding to the message.

[0109] The embodiment of the present application also provides a network information configuration method, which is applied to the operation and maintenance management module in the virtual switch in the physical server, such as Figure 5 As shown, the method includes:

[0110] 501. In response to a network management request, determine an object to be managed, where the object to be managed is a virtual network card in a physical server and / or a tenant network to which the virtual network card belongs, and the virtual network card forwards data through a virtual switch;

[0111] 502. Determine a first target network forwarding module adapted to the object to be managed from a first network forwarding module and a second network forwarding module included in the virtual switch, wherein the first network forwarding module and the second network forwarding module respectively run on a hardware acceleration device and a physical machine included in a physical server;

[0112] 503. Perform network management on the managed object through the first target network forwarding module.

[0113] In an optional embodiment, a first target network forwarding module adapted to the object to be managed is determined from the first network forwarding module and the second network forwarding module included in the virtual switch, including: querying the maintained management index table according to the identification information of the object to be managed to determine the first target network forwarding module from the first network forwarding module and the second network forwarding module; wherein the management index table records the correspondence between the virtual network card and / or the tenant network and the network forwarding module.

[0114] Optionally, the management index table includes: a first management index table and a second management index table, the first management index table recording the correspondence between the virtual network card and the network forwarding module, and the second management index table recording the correspondence between the tenant network and the network forwarding module; according to the identification information of the object to be managed, querying the maintained management index table to determine the first target network forwarding module from the first network forwarding module and the second network forwarding module, including: when it is determined that the object to be managed is the virtual network card, querying the first management index table to determine the first target network forwarding module from the first network forwarding module and the second network forwarding module; when it is determined that the object to be managed is the tenant network, querying the second management index table to determine the first target network forwarding module from the first network forwarding module and the second network forwarding module.

[0115] Further optionally, the first management index table and the second management index table also record corresponding socket connections between each network forwarding module and the operation and maintenance management module; network management of the managed object is performed through the first target network forwarding module, including: determining the socket connection between it and the first target network forwarding module from the first or second management index table; and sending a management instruction to the first target network forwarding module based on the socket connection to instruct the first target network forwarding module to perform network management on the managed object.

[0116] Regarding the above embodiment Figure 4a-4c and Figure 5 The detailed implementation and beneficial effects of each step in the method have been described in detail in the aforementioned embodiments and will not be elaborated here.

[0117] It should be noted that the execution subject of each step of the method provided in the above embodiment can be the same device, or the method can be executed by different devices. For example, the execution subject of steps 401a to 403a can be device A; for another example, the execution subject of steps 401a and 402a can be device A, and the execution subject of step 403a can be device B; and so on.

[0118] In addition, in some of the processes described in the above embodiments and the accompanying drawings, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel, and the sequence numbers of the operations, such as 401a, 402a, etc., are only used to distinguish between different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.

[0119] The exemplary embodiment of the present application also provides a physical machine, as shown in the accompanying drawings. Figure 1 A virtualization instance is deployed on the physical machine. The virtualization instance has a virtual network card, and the virtual network card forwards data through a virtual switch; wherein the virtual switch includes an operation and maintenance management module, a first network forwarding module, and a second network forwarding module; the operation and maintenance management module and the first network forwarding module run on a hardware acceleration device corresponding to the physical machine, and the second network forwarding module runs on the physical machine, and the second network forwarding module is responsible for providing data forwarding services for some virtual network cards.

[0120] The physical machine includes: a memory and a processor; the memory is used to store a program code corresponding to the second network forwarding module;

[0121] The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0122] Optionally, the processor is coupled to the memory and is used to execute the program code corresponding to the second network forwarding module, so as to: receive a message, the message comes from the virtual network card or the tenant network to which the corresponding virtual network card belongs; determine whether the message has forwarding authority according to the maintained forwarding index table, the forwarding index table stores the correspondence between the virtual network card and / or the tenant network to which the virtual network card belongs and the network forwarding module; if it is determined to be yes, forward the message according to the flow table corresponding to the message. The detailed content and effect description can be found in the above, which will not be repeated here.

[0123] The exemplary embodiment of the present application also provides a hardware acceleration device, such as Figure 6 As shown, the hardware acceleration device includes: a memory 64 and a processor 65.

[0124] The memory 64 is used to store program codes corresponding to the operation and maintenance management module and the first network forwarding module deployed in the virtual switch;

[0125] The memory 64 can be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0126] The processor 65 is coupled to the memory 64, and is used to execute the program code corresponding to the operation and maintenance management module to provide network management and operation and maintenance services for the virtual network card, and to run the program code corresponding to the first network forwarding module to provide data forwarding services for some virtual network cards; wherein the virtual switch also includes a second network forwarding module, and the second network forwarding module runs on a physical machine in the physical server to which the virtual switch belongs; the virtual network card is a virtual network card of a virtualized instance deployed on a physical machine.

[0127] In an optional embodiment, the hardware acceleration device also includes: a forwarding acceleration module implemented based on programmable hardware; a forwarding acceleration module, which is used to receive a message and, when a flow table corresponding to the message does not exist locally, determine a second target network forwarding module from the first network forwarding module and the second network forwarding module, request the flow table corresponding to the message from the second target network forwarding module, and forward the message according to the flow table when receiving the flow table sent by the second target network forwarding module.

[0128] Optionally, when the forwarding acceleration module determines the second target network forwarding module from the first network forwarding module and the second network forwarding module, it is specifically used to: query the maintained forwarding index table according to the virtual network card or tenant network corresponding to the message, so as to determine the second target network forwarding module from the first network forwarding module and the second network forwarding module; wherein, the forwarding index table records the correspondence between the virtual network card and / or the tenant network to which the virtual network card belongs and the network forwarding module.

[0129] Further optionally, the forwarding index table includes a first forwarding index table and a second forwarding index table, the first forwarding index table records the correspondence between the virtual network card and the network forwarding module, and the second forwarding index table records the correspondence between the tenant network and the network forwarding module; when the forwarding acceleration module queries the maintained forwarding index table according to the virtual network card or tenant network corresponding to the message to determine the second target network forwarding module from the first network forwarding module and the second network forwarding module, it is specifically used to: determine the flow direction of the message according to the receiving port of the message; when the flow direction is the sending direction, query the first forwarding index table to determine the second target network forwarding module from the first network forwarding module and the second network forwarding module; when the flow direction is the receiving direction, query the second forwarding index table to determine the second target network forwarding module from the first network forwarding module and the second network forwarding module.

[0130] Further optionally, the first forwarding index table and the second forwarding index table also record the physical channels corresponding to the network forwarding modules; when the forwarding acceleration module requests the flow table corresponding to the message from the second target network forwarding module, it is specifically used to: determine the physical channel between the second target network forwarding modules from the first or second forwarding index table; send a flow table download request to the second target network forwarding module based on the physical channel to request the flow table corresponding to the message.

[0131] In an optional embodiment, the hardware acceleration device also includes: a diversion module implemented based on programmable hardware; the diversion module is used to receive a message, determine a third target network forwarding module from the first network forwarding module and the second network forwarding module according to the maintained forwarding index table, and send the message to the third target network forwarding module so that the third target network forwarding module forwards the message; wherein the forwarding index table stores the correspondence between the virtual network card and / or the tenant network to which the virtual network card belongs and the network forwarding module.

[0132] In an optional embodiment, the processor 65 is also used to receive a message, which comes from a virtual network card or a tenant network to which the corresponding virtual network card belongs; determine whether it has forwarding permission for the message based on the maintained forwarding index table, and the forwarding index table stores the correspondence between the virtual network card and / or the tenant network to which the virtual network card belongs and the network forwarding module; if it is determined to be yes, forward the message according to the flow table corresponding to the message.

[0133] In an optional embodiment, the processor 65 is also used to respond to a network management request, determine the object to be managed, the object to be managed is the virtual network card in the physical server and / or the tenant network to which the virtual network card belongs, and the virtual network card forwards data through a virtual switch; determine a first target network forwarding module adapted to the object to be managed from the first network forwarding module and the second network forwarding module included in the virtual switch, the first network forwarding module and the second network forwarding module respectively running on the hardware acceleration device and the physical machine included in the physical server; perform network management on the object to be managed through the first target network forwarding module.

[0134] Optionally, when the processor 65 determines the first target network forwarding module adapted to the object to be managed from the first network forwarding module and the second network forwarding module included in the virtual switch, it is specifically used to: query the maintained management index table according to the identification information of the object to be managed, so as to determine the first target network forwarding module from the first network forwarding module and the second network forwarding module; wherein the management index table records the correspondence between the virtual network card and / or the tenant network and the network forwarding module.

[0135] Further optionally, the management index table includes: a first management index table and a second management index table, the first management index table recording the correspondence between the virtual network card and the network forwarding module, and the second management index table recording the correspondence between the tenant network and the network forwarding module; when the processor 65 queries the maintained management index table according to the identification information of the object to be managed to determine the first target network forwarding module from the first network forwarding module and the second network forwarding module, it is specifically used for: when it is determined that the object to be managed is a virtual network card, querying the first management index table to determine the first target network forwarding module from the first network forwarding module and the second network forwarding module; when it is determined that the object to be managed is a tenant network, querying the second management index table to determine the first target network forwarding module from the first network forwarding module and the second network forwarding module.

[0136] Further optionally, the first management index table and the second management index table also record the socket connections between each network forwarding module and the operation and maintenance management module accordingly; when the processor 65 performs network management on the managed object through the first target network forwarding module, it is specifically used to: determine the socket connection between it and the first target network forwarding module from the first or second management index table; send a management instruction to the first target network forwarding module based on the socket connection to instruct the first target network forwarding module to perform network management on the managed object.

[0137] Regarding the above embodiment Figure 6 The detailed implementation and beneficial effects of each step in the illustrated device have been described in detail in the aforementioned embodiments and will not be elaborated on here.

[0138] Further, if Figure 6 As shown, the hardware acceleration device also includes: a communication component 66, a power supply component 68 and other components. Figure 6 Only some components are shown schematically, which does not mean that the hardware acceleration device only includes Figure 6 Among them, the operation and maintenance management module, network forwarding module, forwarding acceleration module and diversion module are not Figure 6 Shown in.

[0139] Accordingly, the embodiment of the present application further provides a computer-readable storage medium storing a computer program, which can implement the above 4a-4c and Figure 5 The steps in the method embodiment are shown.

[0140] The above-mentioned memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable programmable read only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0141] The above-mentioned communication component is configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G / LTE, 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

[0142] The above-mentioned display includes a screen, and the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

[0143] The power supply assembly provides power to various components of the device where the power supply assembly is located. The power supply assembly may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device where the power supply assembly is located.

[0144] The above-mentioned audio component can be configured to output and / or input audio signals. For example, the audio component includes a microphone (Microphone, MIC), and when the device where the audio component is located is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in a memory or sent via a communication component. In some embodiments, the audio component also includes a speaker for outputting an audio signal.

[0145] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-readable storage media (including but not limited to disk storage, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical storage, etc.) containing computer-usable program code.

[0146] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0147] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0148] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0149] In a typical configuration, a computing device includes one or more processors (Central Processing Unit, CPU), input / output interface, network interface and memory.

[0150] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0151] Computer readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase-change random access memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0152] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0153] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A physical server, characterized in that: include: A physical machine and a hardware acceleration device, wherein a virtualization instance is deployed on the physical machine, the virtualization instance has a virtual network card, and the virtual network card forwards data through a virtual switch; The virtual switch includes an operation and maintenance management module, a first network forwarding module, and a second network forwarding module; the operation and maintenance management module and the first network forwarding module run on the hardware acceleration device, and the second network forwarding module runs on the physical machine; The operation and maintenance management module is responsible for providing network management and operation and maintenance services for the virtual network card; the first network forwarding module and the second network forwarding module are respectively responsible for providing data forwarding services for different virtual network cards.

2. The physical server according to claim 1, characterized in that: The operation and maintenance management module is specifically used for: In response to the network management request, determine the object to be managed; determine a first target network forwarding module adapted to the object to be managed from the first network forwarding module and the second network forwarding module; The first target network forwarding module performs network management on the object to be managed, and the object to be managed is a virtual network card and / or a tenant network to which the virtual network card belongs.

3. The physical server according to claim 2, characterized in that: The operation and maintenance management module maintains a management index table, and the management index table records the correspondence between the virtual network card and / or the tenant network and the network forwarding module; When determining the first target network forwarding module, the operation and maintenance management module is specifically used to: query the management index table according to the identification information of the object to be managed, so as to determine the first target network forwarding module from the first network forwarding module and the second network forwarding module.

4. The physical server according to any one of claims 1 to 3, characterized in that: The hardware acceleration device also includes: a forwarding acceleration module implemented based on programmable hardware; The forwarding acceleration module is used to receive a message, and when a flow table corresponding to the message does not exist locally, determine the second target network forwarding module from the first network forwarding module and the second network forwarding module, request the flow table corresponding to the message from the second target network forwarding module, and when receiving the flow table sent by the second target network forwarding module, forward the message according to the flow table.

5. The physical server according to claim 4, characterized in that: The forwarding acceleration module maintains a forwarding index table, in which the corresponding relationship between the virtual network card and / or the tenant network to which the virtual network card belongs and the network forwarding module is recorded; When determining the second target network forwarding module, the forwarding acceleration module is specifically used to: query the forwarding index table according to the virtual network card or tenant network corresponding to the message to determine the second target network forwarding module from the first network forwarding module and the second network forwarding module.

6. The physical server according to any one of claims 1 to 3, characterized in that: The first or second network forwarding module is specifically used to: receive a message, determine whether the message has forwarding authority according to the maintained forwarding index table, and if it is determined to be yes, forward the message according to the flow table corresponding to the message; The forwarding index table stores the correspondence between the virtual network card and / or the tenant network to which the virtual network card belongs and the network forwarding module.

7. The physical server according to any one of claims 1 to 3, characterized in that: The hardware acceleration device further includes: a shunt module implemented based on programmable hardware; The traffic distribution module is used to receive the message, determine the third target network forwarding module from the first network forwarding module and the second network forwarding module according to the maintained forwarding index table, and send the message to the third target network forwarding module so that the third target network forwarding module forwards the message; The forwarding index table stores the correspondence between the virtual network card and / or the tenant network to which the virtual network card belongs and the network forwarding module.

8. A message forwarding method, characterized in that: include: Receive messages; In the case that the flow table corresponding to the message does not exist locally, determining the target network forwarding module from the first network forwarding module and the second network forwarding module included in the virtual switch; Requesting the target network forwarding module for the flow table corresponding to the message, and upon receiving the flow table sent by the target network forwarding module, forwarding the message according to the flow table; The first network forwarding module and the second network forwarding module respectively run on a hardware acceleration device and a physical machine included in a physical server to which the virtual switch belongs.

9. The method according to claim 8, characterized in that Determining a target network forwarding module from a first network forwarding module and a second network forwarding module included in the virtual switch includes: According to the virtual network card or tenant network corresponding to the message, query the maintained forwarding index table to determine the target network forwarding module from the first network forwarding module and the second network forwarding module; The forwarding index table records the correspondence between the virtual network card and / or the tenant network to which the virtual network card belongs and the network forwarding module.

10. The method according to claim 9, characterized in that The forwarding index table includes a first forwarding index table and a second forwarding index table, wherein the first forwarding index table records the correspondence between the virtual network card and the network forwarding module, and the second forwarding index table records the correspondence between the tenant network and the network forwarding module; According to the virtual network card or tenant network corresponding to the message, querying the maintained forwarding index table to determine the target network forwarding module from the first network forwarding module and the second network forwarding module, including: Determining the flow direction of the message according to the receiving port of the message; When the traffic direction is a sending direction, querying the first forwarding index table to determine the target network forwarding module from the first network forwarding module and the second network forwarding module; When the traffic direction is a receiving direction, the second forwarding index table is queried to determine the target network forwarding module from the first network forwarding module and the second network forwarding module.

11. A message forwarding method, characterized in that: include: Receive messages; Determine a target network forwarding module from a first network forwarding module and a second network forwarding module included in the virtual switch according to the maintained forwarding index table; Sending the message to the target network forwarding module so that the target network forwarding module forwards the message; Among them, the forwarding index table stores the correspondence between the virtual network card and / or the tenant network to which the virtual network card belongs and the network forwarding module, and the first network forwarding module and the second network forwarding module respectively run on the hardware acceleration device and physical machine contained in the physical server to which the virtual switch belongs.

12. A message forwarding method, characterized in that: A first network forwarding module or a second network forwarding module applied to a virtual switch, wherein the first network forwarding module and the second network forwarding module are respectively run on a hardware acceleration device and a physical machine included in a physical server to which the virtual switch belongs, and the method comprises: Receive a message, where the message comes from a virtual network card or a tenant network to which the corresponding virtual network card belongs; Determine whether the message has forwarding authority according to the maintained forwarding index table, wherein the forwarding index table stores the correspondence between the virtual network card and / or the tenant network to which the virtual network card belongs and the network forwarding module; If the answer is yes, the message is forwarded according to the flow table corresponding to the message.

13. A network information configuration method, characterized in that: The operation and maintenance management module applied to the virtual switch in the physical server comprises: In response to the network management request, determining an object to be managed, wherein the object to be managed is a virtual network card in the physical server and / or a tenant network to which the virtual network card belongs, and the virtual network card forwards data through the virtual switch; Determine a first target network forwarding module adapted to the object to be managed from a first network forwarding module and a second network forwarding module included in the virtual switch, wherein the first network forwarding module and the second network forwarding module are respectively run on a hardware acceleration device and a physical machine included in the physical server; The object to be managed is managed through the first target network forwarding module.

14. The method according to claim 13, characterized in that Determining a first target network forwarding module adapted to the object to be managed from the first network forwarding module and the second network forwarding module included in the virtual switch includes: According to the identification information of the object to be managed, query the maintained management index table to determine the first target network forwarding module from the first network forwarding module and the second network forwarding module; The management index table records the correspondence between the virtual network card and / or tenant network and the network forwarding module.

15. The method according to claim 14, characterized in that The management index table includes: a first management index table and a second management index table, wherein the first management index table records the correspondence between the virtual network card and the network forwarding module, and the second management index table records the correspondence between the tenant network and the network forwarding module; According to the identification information of the object to be managed, querying the maintained management index table to determine the first target network forwarding module from the first network forwarding module and the second network forwarding module, including: When it is determined that the object to be managed is a virtual network card, querying the first management index table to determine the first target network forwarding module from the first network forwarding module and the second network forwarding module; When it is determined that the object to be managed is a tenant network, the second management index table is queried to determine the first target network forwarding module from the first network forwarding module and the second network forwarding module.

16. A hardware acceleration device, characterized in that: include: Memory and processor; The memory is used to store program codes corresponding to the operation and maintenance management module and the first network forwarding module deployed in the virtual switch; The processor is coupled to the memory and is used to execute the program code corresponding to the operation and maintenance management module to provide network management and operation and maintenance services for the virtual network card, and to run the program code corresponding to the first network forwarding module to provide data forwarding services for some virtual network cards; The virtual switch further includes a second network forwarding module, which runs on a physical machine in the physical server to which the virtual switch belongs; and the virtual network card is a virtual network card of a virtualized instance deployed on the physical machine.

17. The hardware acceleration device according to claim 16, characterized in that: Also includes: Forwarding acceleration module based on programmable hardware; The forwarding acceleration module is used to receive a message, and when there is no flow table corresponding to the message locally, determine a second target network forwarding module from the first network forwarding module and the second network forwarding module, request the flow table corresponding to the message from the second target network forwarding module, and when receiving the flow table sent by the second target network forwarding module, forward the message according to the flow table; or; A diversion module implemented based on programmable hardware; the diversion module is used to receive a message, determine a third target network forwarding module from the first network forwarding module and the second network forwarding module according to the maintained forwarding index table, and send the message to the third target network forwarding module so that the third target network forwarding module forwards the message; wherein the forwarding index table stores the correspondence between the virtual network card and / or the tenant network to which the virtual network card belongs and the network forwarding module.

18. A physical server, characterized in that: include: A physical machine and a hardware acceleration device, wherein a virtualization instance is deployed on the physical machine, the virtualization instance has a virtual network card, and the virtual network card forwards data through a virtual switch; The virtual switch includes an operation and maintenance management module and a network forwarding module; the operation and maintenance management module runs on the hardware acceleration device, and the network forwarding module runs on the physical machine; The operation and maintenance management module is responsible for providing network management and operation and maintenance services for the virtual network card; the network forwarding module is responsible for providing data forwarding services for the virtual network card.

19. The physical server according to claim 18, characterized in that: The hardware acceleration device also includes: a forwarding acceleration module implemented based on programmable hardware; The forwarding acceleration module is used to receive a message and, if the flow table corresponding to the message does not exist locally, request the network forwarding module for the flow table corresponding to the message, and upon receiving the flow table sent by the network forwarding module, forward the message according to the flow table.

20. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the processor is enabled to implement the steps of the method according to any one of claims 8 to 15.