Message processing method and device, computer equipment, readable storage medium and program product

By deploying and connecting virtual function network elements in the target physical server, the problem of low efficiency in existing packet processing methods is solved, and more efficient packet processing and flexible deployment of virtual function network elements is achieved.

CN119520447AActive Publication Date: 2025-02-25CHINA TELECOM CLOUD TECH CO LTD

Patent Information

Application Number
CN202411772079.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-02-25
Estimated Expiration
2044-12-04

AI Technical Summary

Technical Problem

The existing packet processing methods have problems with inefficient efficiency, especially in the deployment of virtual function network elements and network dependencies, resulting in insufficient flexibility and scalability.

Method used

By obtaining network function information of multiple hardware devices, virtual function network elements are generated and deployed in the target physical server, and the virtual function network elements are connected by using an integrated bridge to achieve efficient forwarding of to-processed messages.

Benefits of technology

It improves the deployment flexibility and scalability of virtual function network elements, enhances the packet processing efficiency, and enables multiple virtual function network elements to run efficiently in the same target physical server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520447A_ABST
    Figure CN119520447A_ABST
Patent Text Reader

Abstract

The invention relates to a message processing method and device, computer equipment, a readable storage medium and a program product. The method comprises the following steps: acquiring network function information of a plurality of hardware devices, and generating a virtual function network element corresponding to each piece of network function information; deploying the plurality of virtual function network elements in a target physical server, and respectively connecting the plurality of virtual function network elements with an integrated network bridge in the target physical server; detecting target network segment information corresponding to each first to-be-processed message under the condition that network interface equipment in a target physical server acquires the first to-be-processed message, and screening a target virtual function network element corresponding to each piece of target network segment information from a plurality of virtual function network elements; and respectively sending each first to-be-processed message to a target virtual function network element corresponding to the first to-be-processed message through the integrated network bridge. By adopting the method, the message can be efficiently processed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of cloud computing, and in particular to a message processing method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] With the development of cloud computing technology, the technologies for processing messages are becoming more and more diverse. By performing data transmission processing on messages, messages can be accurately pushed to the required devices, improving the reliability of message transmission.

[0003] Generally, in the process of processing messages, the participation of virtual function network elements is often required, such as virtual routers, virtual load balancing and virtual VPN (Virtual Private Network), and the functions of different virtual function network elements have different network dependencies on physical servers. Therefore, the deployment of virtual function network elements in the message processing process is extremely important. At present, the usual deployment scheme is to deploy each virtual function network element on its own independent physical server according to its function. For different virtual function network elements, the network configuration of the host machine is also different. This deployment method can ensure that there is no functional impact between different types of virtual function network elements. Finally, based on multiple physical servers that have been deployed, the data processing of the message is completed.

[0004] However, the current message processing method is not efficient enough. Summary of the invention

[0005] Based on this, it is necessary to provide an efficient message processing method, apparatus, computer equipment, computer-readable storage medium and computer program product to address the above technical problems.

[0006] In a first aspect, the present application provides a message processing method, comprising:

[0007] Obtain network function information of multiple hardware devices and generate a virtual function network element corresponding to each network function information;

[0008] Deploy multiple virtual function network elements in a target physical server, and respectively connect the multiple virtual function network elements to an integrated bridge in the target physical server;

[0009] In the case where the network interface device in the target physical server obtains the first message to be processed, detecting the target network segment information corresponding to each first message to be processed, and screening the target virtual function network element corresponding to each target network segment information from the plurality of virtual function network elements, wherein the first message to be processed includes a message flowing from the external physical server to the target physical server;

[0010] Each first message to be processed is sent to a target virtual function network element corresponding to the first message to be processed through the integrated bridge.

[0011] In one embodiment, the method further comprises:

[0012] When the integrated bridge receives a second message to be processed sent by the virtual function network element, the preset routing mapping information is obtained, and based on the preset routing mapping information, the first bridge connection port corresponding to the second message to be processed is detected, wherein the second message to be processed is a message flowing from the target physical server to the external physical server;

[0013] The second message to be processed is forwarded from the integrated bridge to the first bridge connection port, and the second message to be processed is sent to the external physical server through the network interface device corresponding to the first bridge connection port.

[0014] In one of the embodiments, before each first to-be-processed message is sent to a target virtual function network element corresponding to the first to-be-processed message through the integrated bridge, the method further includes:

[0015] Obtaining message type information of each first message to be processed;

[0016] In the case where the message type information includes a first message type, sending a first message to be processed to the integrated bridge, wherein the first message to be processed corresponding to the first message type includes a data message having a priority higher than a preset priority threshold;

[0017] In the case where the message type information includes the second message type, for each first message to be processed, sending the first message to be processed to the virtual bridge corresponding to the message type information, wherein the first message to be processed corresponding to the second message type includes a data message with a priority lower than or equal to a preset priority threshold;

[0018] The first message to be processed is sent from the virtual bridge to the integrated bridge via the second bridge connection port corresponding to the virtual bridge.

[0019] In one embodiment, sending the first to-be-processed message to a virtual bridge corresponding to the message type information includes:

[0020] In the case where the second message type includes a data intranet message type, removing the virtual extended local area network encapsulation of the first message to be processed, and sending the decapsulated first message to be processed to a virtual bridge corresponding to the data intranet message type;

[0021] In the case where the second message type includes a data external network message type, the LAN encapsulation of the first message to be processed is removed, and the decapsulated first message to be processed is sent to a virtual bridge corresponding to the data external network message type.

[0022] In one of the embodiments, when the network interface device in the target physical server obtains the first message to be processed, before detecting the target network segment information corresponding to each first message to be processed, the method further includes:

[0023] When the network card bound to the network interface device in the target physical server obtains the first message to be processed, the data platform development kit is used to send the first message to be processed to the network interface device corresponding to the network card.

[0024] In one embodiment, the method further comprises:

[0025] When the network interface device in the target physical server obtains the first message to be processed, deleting the first message type tag in the first message to be processed;

[0026] When the network interface device in the target physical server obtains the second message to be processed, the target message type of the second message to be processed is detected, and a second message type tag corresponding to the target message type is added to the first message to be processed.

[0027] In a second aspect, the present application also provides a message processing device, including:

[0028] A conversion module, used to obtain network function information of multiple hardware devices and generate a virtual function network element corresponding to each network function information;

[0029] A deployment module, used to deploy multiple virtual function network elements in a target physical server, and connect the multiple virtual function network elements to the integrated bridge in the target physical server respectively;

[0030] a detection module, configured to detect target network segment information corresponding to each first message to be processed when a network interface device in a target physical server obtains a first message to be processed, and to select a target virtual function network element corresponding to each target network segment information from a plurality of virtual function network elements, wherein the first message to be processed includes a message flowing from an external physical server into the target physical server;

[0031] The sending module is used to send each first message to be processed to a target virtual function network element corresponding to the first message to be processed through the integrated bridge.

[0032] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0033] Obtain network function information of multiple hardware devices and generate a virtual function network element corresponding to each network function information;

[0034] Deploy multiple virtual function network elements in a target physical server, and respectively connect the multiple virtual function network elements to an integrated bridge in the target physical server;

[0035] In the case where the network interface device in the target physical server obtains the first message to be processed, detecting the target network segment information corresponding to each first message to be processed, and screening the target virtual function network element corresponding to each target network segment information from the plurality of virtual function network elements, wherein the first message to be processed includes a message flowing from the external physical server to the target physical server;

[0036] Each first message to be processed is sent to a target virtual function network element corresponding to the first message to be processed through the integrated bridge.

[0037] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:

[0038] Obtain network function information of multiple hardware devices and generate a virtual function network element corresponding to each network function information;

[0039] Deploy multiple virtual function network elements in a target physical server, and respectively connect the multiple virtual function network elements to an integrated bridge in the target physical server;

[0040] In the case where the network interface device in the target physical server obtains the first message to be processed, detecting the target network segment information corresponding to each first message to be processed, and screening the target virtual function network element corresponding to each target network segment information from the plurality of virtual function network elements, wherein the first message to be processed includes a message flowing from the external physical server to the target physical server;

[0041] Each first message to be processed is sent to a target virtual function network element corresponding to the first message to be processed through the integrated bridge.

[0042] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0043] Obtain network function information of multiple hardware devices and generate a virtual function network element corresponding to each network function information;

[0044] Deploy multiple virtual function network elements in a target physical server, and respectively connect the multiple virtual function network elements to an integrated bridge in the target physical server;

[0045] In the case where the network interface device in the target physical server obtains the first message to be processed, detecting the target network segment information corresponding to each first message to be processed, and screening the target virtual function network element corresponding to each target network segment information from the plurality of virtual function network elements, wherein the first message to be processed includes a message flowing from the external physical server to the target physical server;

[0046] Each first message to be processed is sent to a target virtual function network element corresponding to the first message to be processed through the integrated bridge.

[0047] The above-mentioned message processing method, device, computer equipment, computer-readable storage medium and computer program product, by converting the network function information of multiple hardware devices into virtual function network elements with different network segment information, and controlling multiple virtual function network elements to be connected to the integrated bridge in the target physical server respectively, so as to deploy multiple virtual function network elements in the same target physical server, thereby improving the flexibility and scalability of the deployment of virtual function network elements. Furthermore, when the network interface device in the target physical server obtains the first message to be processed, the target network segment information corresponding to each first message to be processed flowing from the external physical server to the target physical server is detected, and the target virtual function network element corresponding to the target network segment information is screened from multiple virtual function network elements. Finally, each first message to be processed is sent to the target virtual function network element corresponding to the first message to be processed through the integrated bridge. That is to say, when the flexibility and scalability of the deployment of virtual function network elements are improved, the obtained first message to be processed can be input into the target virtual function network element corresponding to the target network segment information through the integrated bridge, so that the message processing efficiency is also greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments of the present application or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying any creative work.

[0049] Figure 1 An application environment diagram of a message processing method in an embodiment;

[0050] Figure 2 A schematic diagram of a flow chart of a message processing method in an embodiment;

[0051] Figure 3 A schematic diagram of a flow chart of a message processing method in another embodiment;

[0052] Figure 4A schematic diagram of data interaction of a target physical server in a detailed application embodiment;

[0053] Figure 5 is a structural block diagram of a message processing device in an embodiment;

[0054] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are used to explain the present application and are not used to limit the present application.

[0056] With the development of cloud computing technology, the technologies for processing messages are becoming more and more diverse. By performing data transmission processing on messages, messages can be accurately pushed to the required devices, improving the reliability of message transmission. Generally, in the process of message processing, the participation of virtual function network elements is often required, such as virtual routers, virtual load balancing, virtual VPN, etc., and the functions of different virtual function network elements have different network dependencies on physical servers. Therefore, the deployment of virtual function network elements in the message processing process is extremely important.

[0057] It should be explained that virtual function network elements are network elements corresponding to network functions. Network functions are usually performed by dedicated hardware devices, which are usually expensive and difficult to maintain. Through NFV (Network Function Virtualization) technology, by using standard servers, storage and network devices, and virtualization technology, network functions can be deployed as software entities, that is, virtual function network elements, thereby improving flexibility, scalability and reducing costs. Among them, NFV is a network architecture and service provision model that decouples traditional network device functions, such as routers, firewalls, load balancers, etc., from dedicated hardware and runs them in the form of software on general-purpose hardware.

[0058] Usually, cloud data centers contain virtual functional network elements with various functions, such as virtual routers, virtual load balancing and virtual VPN, etc. The functions of different virtual functional network elements have different network dependencies on physical servers. For example, virtual routers usually need to be connected to the external network of the data center to enable users to access the Internet, while load balancing network elements and VPN network elements usually only need to implement the intranet forwarding logic, and public network access is implemented by virtual routers. In addition, virtual routers usually need to retain the overlay information identification of the traffic entering the virtual network card, while load balancing and VPN are exclusive to a single customer, and the traffic entering the virtual network card does not need to retain the overlay information representation.

[0059] At present, the deployment plan for virtual function network elements is to deploy each virtual function network element on its own independent physical server according to its function. For different virtual function network elements, the network configuration of the host machine is also different. This deployment method can ensure that there will be no functional impact between virtual function network elements of different types. This method has simple logic and is suitable for small-scale clusters.

[0060] However, this method also has the following problems:

[0061] 1. Poor flexibility. Different types of virtual function network elements depend on the configuration of the underlying physical server. In the event of a host failure, the range of physical servers to which the virtual function network element can be migrated becomes smaller.

[0062] 2. Poor scalability. Different virtual function network elements require different physical resources such as CPU (Central Processing Unit), memory, and network card. Virtual routers that carry the main user traffic usually require large specifications, while virtual function network elements such as LB (Load Balancer) and VPN require small virtual machine specifications unless there are special circumstances. If various virtual function network elements are deployed on different physical servers, when capacity expansion is required, other types of physical servers may have resources (such as load balancing network element servers), but cannot deploy certain network elements (such as virtual router network elements).

[0063] To solve the above two problems, more physical servers are needed to configure, which increases the cost. Furthermore, the efficiency of message processing in an environment where multiple physical servers are configured to implement virtual function network element deployment is also relatively low.

[0064] Therefore, the present application provides a message processing method, which converts the network function information of multiple hardware devices into virtual function network elements with different network segment information, and controls the multiple virtual function network elements to be connected to the integrated bridge in the target physical server respectively, so as to deploy the multiple virtual function network elements in the same target physical server, thereby improving the flexibility and scalability of the deployment of the virtual function network elements. Furthermore, when the network interface device in the target physical server obtains the first message to be processed, the target network segment information corresponding to each first message to be processed flowing from the external physical server to the target physical server is detected, and the target virtual function network elements corresponding to the target network segment information are screened from the multiple virtual function network elements. Finally, each first message to be processed is sent to the target virtual function network element corresponding to the first message to be processed through the integrated bridge. That is to say, when the flexibility and scalability of the deployment of the virtual function network elements are improved, the obtained first message to be processed can be input into the target virtual function network element corresponding to the target network segment information through the integrated bridge, so that the message processing efficiency is also greatly improved.

[0065] The message processing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the external physical server 102 communicates with the target physical server 104 through the network, and both the external physical server 102 and the target physical server 104 communicate with the controller 106, that is, the external physical server 102 and the target physical server 104 are managed by the controller 106. The data storage system can store the data that each server needs to process. The data storage system can be integrated on the corresponding server or placed on the cloud.

[0066] Generally, the controller 106 may be an SDN (Software Defined Network) controller, where SDN is a new type of network architecture that implements programmable network topology. Compared with traditional data center networks, SDN technology relies on traditional underlying networks to achieve a more flexible network model. Currently, SDN technology has become a core technology required by major cloud service providers and is widely used in the construction of major public clouds, private clouds, and hybrid clouds.

[0067] During the message processing process, the controller 106 obtains network function information of multiple hardware devices, and generates a virtual function network element corresponding to each network function information, wherein the network segment information of each virtual function network element is different; deploys multiple virtual function network elements in the target physical server 104, and controls multiple virtual function network elements to be connected to the integrated bridge in the target physical server 104 respectively; when the network interface device in the target physical server 04 obtains the first message to be processed, detects the target network segment information corresponding to each first message to be processed, and selects the target virtual function network element corresponding to the target network segment information from the multiple virtual function network elements, wherein the first message to be processed includes a message flowing into the target physical server 104 from the external physical server 102; and sends each first message to be processed to the target virtual function network element corresponding to the first message to be processed through the integrated bridge.

[0068] The server may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.

[0069] In an exemplary embodiment, Figure 2 As shown, a message processing method is provided, which is applied to Figure 1 The controller 106 in FIG. 1 is used as an example for explanation.

[0070] S200, obtaining network function information of multiple hardware devices, and generating a virtual function network element for each network function information.

[0071] Among them, the network segment information of each virtual function network element is different.

[0072] Specifically, network functions are usually performed by dedicated hardware devices, but such hardware is usually expensive and difficult to maintain. Therefore, in the case of obtaining network function information of multiple hardware devices, the present application can generate virtual function network elements corresponding to each network function information through NFV technology. Among them, NFV is a network architecture process that transfers network functions such as load balancing and encryption from physical hardware to virtual machines. Its goal is to deploy network functions as software entities by using standard servers, storage and network devices, as well as virtualization technology, thereby improving flexibility, scalability and reducing costs.

[0073] In actual applications, the virtual function network element corresponding to each network function information includes but is not limited to: virtual router, virtual load balancing and virtual VPN, etc. Further, the virtual function network element is regarded as a virtual machine, and the field information corresponding to the virtual function network element corresponding to each network function information is also different.

[0074] In an exemplary embodiment, the network segment information is routing information, such as IP (Internet Protocol Address) address information or MAC (Media Access Control Address) address information.

[0075] S400, deploy multiple virtual function network elements in a target physical server, and connect the multiple virtual function network elements to integrated bridges in the target physical server respectively.

[0076] The integrated bridge in the target physical server is a bridge that can be connected to multiple structures, for example, it can be connected to other bridges and multiple virtual function network elements.

[0077] Specifically, in traditional technologies, different virtual function network elements have different network dependencies on physical servers. That is, the usual deployment solution is to deploy each type of virtual function network element on its own independent physical server according to its function, ensuring that there is no functional impact between different types of virtual function network elements.

[0078] In this application, multiple virtual function network elements are deployed in the same target physical server. Even different types of virtual function network elements can be deployed in the same target physical server. Different network element traffic relies on ovs (Open vSwitch, open source multi-layer virtual switch) for isolation. OVS is an open source multi-layer virtual switch for virtualization and software-defined networking. It allows flexible configuration of network connections in a virtualized environment and provides support for SDN, enabling network administrators to better control and manage network traffic.

[0079] Furthermore, in order to deploy multiple virtual function network elements on the same target physical server, the present application designs an integrated bridge in the target physical server. Specifically, by establishing connections between multiple virtual function network elements and the integrated bridge in the target physical server, multiple virtual function network elements are deployed on the same target physical server.

[0080] S600, when the network interface device in the target physical server obtains the first message to be processed, detects the target network segment information corresponding to each first message to be processed, and selects the target virtual function network element corresponding to each target network segment information from multiple virtual function network elements.

[0081] The first message to be processed includes a message flowing from an external physical server to a target physical server.

[0082] Specifically, the target physical server also includes a network interface device, namely bondm.n, such as bond0.x, bond1.y and bond2.z. Network interface devices also have different types, and different network interface devices receive different types of messages. Furthermore, the network interface device can be used to connect an external physical server to the target physical server.

[0083] Therefore, when the message to be processed flows from the external physical server into the target physical server, it first flows into the network interface device in the target physical server. When the network interface device obtains the first message to be processed, the first message to be processed needs to be transmitted from the network interface device to the corresponding virtual function network element.

[0084] Since a plurality of virtual function network elements are deployed in the target physical server, in order to achieve this purpose, it is necessary to screen the target virtual function network element corresponding to each first message to be processed from the plurality of virtual function network elements.

[0085] Considering that the network segment information of each virtual function network element is different, the specific method of screening may include: detecting the target network segment information corresponding to each first message to be processed, and screening the target virtual function network element corresponding to the target network segment information from multiple virtual function network elements.

[0086] S800: Send each first message to be processed to a target virtual function network element corresponding to the first message to be processed through an integrated bridge.

[0087] Specifically, when a target virtual function network element corresponding to each target network segment information is detected, each first message to be processed is sent to the target virtual function network element corresponding to the first message to be processed through the integrated bridge.

[0088] That is, each first message to be processed is sent to the integrated bridge, and each first message to be processed is sent from the integrated bridge to the corresponding target virtual function network element to implement message forwarding processing.

[0089] In the above-mentioned message processing method, by converting the network function information of multiple hardware devices into virtual function network elements with different network segment information, and controlling the multiple virtual function network elements to be connected to the integrated bridge in the target physical server respectively, so as to deploy the multiple virtual function network elements in the same target physical server, the flexibility and scalability of the deployment of the virtual function network elements are improved. Furthermore, when the network interface device in the target physical server obtains the first message to be processed, the target network segment information corresponding to each first message to be processed flowing into the target physical server from the external physical server is detected, and the target virtual function network elements corresponding to the target network segment information are screened from the multiple virtual function network elements. Finally, each first message to be processed is sent to the target virtual function network element corresponding to the first message to be processed through the integrated bridge. That is to say, when the flexibility and scalability of the deployment of the virtual function network elements are improved, the obtained first message to be processed can be input into the target virtual function network element corresponding to the target network segment information through the integrated bridge, so that the message processing efficiency is also greatly improved.

[0090] In an exemplary embodiment, the method further comprises:

[0091] When the integrated bridge receives the second message to be processed sent by the virtual functional network element, it obtains the preset routing mapping information, and based on the preset routing mapping information, detects the first bridge connection port corresponding to the second message to be processed; forwards the second message to be processed from the integrated bridge to the first bridge connection port, and sends the second message to be processed to the external physical server through the network interface device corresponding to the first bridge connection port.

[0092] The second message to be processed is opposite to the flow direction of the first message to be processed, and is a message flowing from the target physical server to the external physical server. In layman's terms, for the target physical server, the second message to be processed is the outgoing flow, and the first message to be processed is the incoming flow.

[0093] Specifically, the present application can not only process messages flowing from an external physical server to a target physical server, but also process messages flowing from a target physical server to an external physical server.

[0094] The second message to be processed is generally generated by a virtual function network element, and needs to be sent to an external physical server. Multiple virtual function network elements are connected to the integrated bridge respectively. Therefore, to send the second message to be processed generated by the virtual function network element to an external physical server, first, the second message to be processed generated by the virtual function network element needs to be sent to the integrated bridge in the target physical server, and then sent to the external physical server through the integrated bridge.

[0095] Furthermore, at least one of the network interface devices in the target physical server needs to determine through which network interface device the message is sent to the external server when the integrated bridge receives the second message to be processed sent by the virtual function network element. The means adopted include: obtaining preset routing mapping information, such as flow table information, and based on the preset routing mapping information, detecting the first bridge connection port corresponding to the second message to be processed, the first bridge connection port is a port connecting the integrated bridge and the network interface device. In detail, that is, based on the preset routing mapping information, the MAC address corresponding to the second message to be processed is detected, and the first bridge connection port corresponding to the MAC address is detected.

[0096] By detecting the first bridge connection port corresponding to the second message to be processed, the network interface device corresponding to the target bridge connection port can be determined. Therefore, when the second message to be processed generated by the virtual function network element is sent to the integrated bridge in the target physical server, the second message to be processed is forwarded from the integrated bridge to the first bridge connection port, and the second message to be processed is sent to the external physical server through the network interface device corresponding to the first bridge connection port.

[0097] In the above embodiment, by designing an integrated bridge and a bridge connection port in the target physical server, the outbound traffic can be processed more efficiently, so that the second message to be processed can be sent to the external physical server more quickly through the integrated bridge and the bridge connection port.

[0098] In an exemplary embodiment, Figure 3 As shown, before S800, the method further includes:

[0099] S720: Obtain message type information of each first message to be processed.

[0100] S740: When the message type information includes the first message type, send the first message to be processed to the integrated bridge.

[0101] S760: When the message type information includes the second message type, for each first message to be processed, send the first message to be processed to a virtual bridge corresponding to the message type information.

[0102] S780: Send the first message to be processed from the virtual bridge to the integrated bridge through the second bridge connection port corresponding to the virtual bridge.

[0103] The first to-be-processed messages corresponding to the first message type include data messages with a priority higher than a preset priority threshold. The first to-be-processed messages corresponding to the second message type include data messages with a priority lower than or equal to a preset priority threshold, that is, the first to-be-processed messages corresponding to all message types except the first message type.

[0104] Specifically, each first to-be-processed message has its own message type information, and the message type information includes a first message type and a second message type, and the first to-be-processed message corresponding to the first message type includes a data message with a priority higher than a preset priority threshold. The first to-be-processed message corresponding to the second message type includes a data message with a priority lower than or equal to a preset priority threshold.

[0105] For example, a data message with a priority higher than a preset priority threshold may be a management-level data message, and a data message with a priority lower than or equal to the preset priority threshold may be a non-management-level message type.

[0106] According to the message type information of all the first messages to be processed, the first messages to be processed are classified to obtain first messages to be processed of the first message type and second messages to be processed of the second message type.

[0107] Further, for the first pending message of the first message type, such as the data message of the management level, the first pending message is directly sent to the integrated bridge. In other words, the network interface device of the first message type is directly connected to the integrated bridge to send the first pending message of the first message type to the integrated bridge. Wherein, the network interface device of the first message type is directly connected to the integrated bridge by the ovs open source multi-layer virtual switch.

[0108] Furthermore, when the network interface device of the first message type is directly connected to the integrated bridge, the firewall is in an open state to filter the first message to be processed, and no other configuration is performed.

[0109] For the second to-be-processed message of the second message type, such as a data message at a non-management level, a virtual bridge is also required. The virtual bridge is a non-integrated bridge, such as a br-ext bridge, a br-pub bridge, etc. A connection relationship is established between the virtual bridge and the integrated bridge.

[0110] When the message type information includes the second message type, for each first message to be processed, first, the first message to be processed is sent to the virtual bridge corresponding to the message type information, and then the first message to be processed is sent from the virtual bridge to the integrated bridge.

[0111] Furthermore, the virtual bridge and the integrated bridge are connected through a bridge connection port. The bridge connection port mentioned above is used to connect the integrated bridge and the network interface device, which is actually used to directly connect the integrated bridge and the virtual bridge, and indirectly connect the integrated bridge and the network interface device through the virtual bridge.

[0112] Therefore, the first message to be processed is sent from the virtual bridge to the integrated bridge through the second bridge connection port corresponding to the virtual bridge, wherein each virtual bridge corresponds to a second bridge connection port.

[0113] Furthermore, the specific method of detecting the second bridge connection port corresponding to the second processing message is consistent with the method of detecting the outgoing flow, and is also detected through the routing mapping relationship.

[0114] In the above embodiment, by obtaining the message type information of each first message to be processed, different sending methods can be adopted to send the first messages to be processed of different message types to the target virtual function network element through the integrated bridge, so that the message processing is more accurate and reliable.

[0115] In an exemplary embodiment, sending the first to-be-processed message to a virtual bridge corresponding to the message type information includes:

[0116] In the case where the second message type includes a data intranet message type, the virtual extended LAN encapsulation of the first message to be processed is removed, and the decapsulated first message to be processed is sent to the virtual bridge corresponding to the data intranet message type; in the case where the second message type includes a data extranet message type, the LAN encapsulation of the first message to be processed is removed, and the decapsulated first message to be processed is sent to the virtual bridge corresponding to the data extranet message type.

[0117] Specifically, the second message type also includes multiple message types, for example, a data intranet message type and a data extranet message type. The data intranet message type refers to a message obtained from the data intranet, and the data extranet message type refers to a message obtained from the data extranet.

[0118] The first to-be-processed message with different message type information is decapsulated, and the decapsulated first to-be-processed message is sent to a virtual bridge corresponding to the data intranet message type.

[0119] Furthermore, for different second message types, the decapsulation method is also different. Specifically, when the second message type includes a data intranet message type, the virtual extended LAN encapsulation of the first message to be processed is removed. When the second message type includes a data extranet message type, the LAN encapsulation of the first message to be processed is removed.

[0120] Therefore, this application also sets a Vtep (VXLAN Tunnel Endpoint) module between the virtual bridge corresponding to the data intranet message type and the network interface device corresponding to the data intranet message type. Among them, Vtep is a key role in VXLAN encapsulation and decapsulation. It is responsible for transmitting VXLAN encapsulated data packets between different hosts in the VXLAN network, thereby realizing communication between virtual machines. In this application, the Vtep module is a module for decapsulating the virtual extended LAN.

[0121] That is to say, the first to-be-processed message of the data intranet message type can be decapsulated from the virtual extended LAN through the Vtep module.

[0122] As for the first message to be processed of the data external network message type, there is no need to set up a special module for decapsulating the virtual extended LAN. Instead, the LAN encapsulation of the first message to be processed is directly decapsulated, and the decapsulated first message to be processed is sent from the network interface device corresponding to the data external network message type to the virtual bridge corresponding to the data external network message type.

[0123] In the above embodiment, the corresponding sending methods for the first to-be-processed messages of different second message types are also different. Specifically, when the second message type includes a data intranet message type, it is necessary to set a Vtep module between the corresponding virtual bridge and the network interface device to remove the virtual extended LAN encapsulation of the first to-be-processed message. When the second message type includes a data extranet message type, the LAN encapsulation of the first to-be-processed message is directly removed without setting a special module. Through such a setting, the protection level of the to-be-processed messages of the data intranet message type can be improved.

[0124] In an exemplary embodiment, when the network interface device in the target physical server obtains the first message to be processed, before detecting the target network segment information corresponding to each first message to be processed, the method further includes:

[0125] When the network card bound to the network interface device in the target physical server obtains the first message to be processed, the data platform development kit is used to send the first message to be processed to the network interface device corresponding to the network card.

[0126] Among them, the network interface device is used to merge multiple physical network interfaces into one logical interface. When multiple physical interfaces (such as eth0, eth1, etc.) are bound to the network interface device, they are regarded as one logical interface and share the same IP address and MAC address.

[0127] Specifically, some network interface devices are bound to network cards, while some network interface devices are not bound to network cards. The network card can obtain data packets sent from an external physical server, and can also send out data packets from the physical server where it is located.

[0128] It should be noted that the network card generally obtains the first to-be-processed message of the second message type, that is, the first to-be-processed message of the first message type is directly sent to the integrated bridge through the corresponding network interface device without being transmitted through the network card.

[0129] When the network card bound to the network interface device in the target physical server obtains the first message to be processed, the first message to be processed can be sent to the network interface device corresponding to the network card using DPDK (Data plane development kit). Through DPDK, the efficiency of message sending can be significantly improved and the time of message transmission can be shortened.

[0130] In the above embodiment, by setting up a network interface device to bind a network card, a first message to be processed of a second message type can be obtained through the network card, and by utilizing a data platform development kit, the first message to be processed can be efficiently sent to the network interface device corresponding to the network card.

[0131] In an exemplary embodiment, the method further comprises:

[0132] When the network interface device in the target physical server obtains the first message to be processed, the first message type label in the first message to be processed is deleted; when the network interface device in the target physical server obtains the second message to be processed, the target message type of the second message to be processed is detected, and a second message type label corresponding to the target message type is added to the first message to be processed.

[0133] Specifically, the message to be processed is a message with a label, and the label generally refers to a message type label. For example, if the message type information of the message to be processed is the first message type, then the message type label is the first message type label. For another example, if the message type information of the message to be processed is the second message type, then the message type label is the second message type label. Further, the message type label can be further subdivided. For example, if the message type information of the message to be processed is a data intranet message type, then the message type label is a data intranet message type label. If the message type information of the message to be processed is a data extranet message type, then the message type label is a data extranet message type label. Among them, the message to be processed includes the first message to be processed and the second message to be processed.

[0134] When the network interface device obtains a message to be processed, it can add or delete labels for the message to be processed, which is divided into the following two situations:

[0135] When the network interface device obtains the first message to be processed, since the first message to be processed is a message flowing from an external physical server to the target physical server, it includes first messages to be processed of multiple message types. Therefore, when the first message to be processed flows into the target physical server, it is necessary to delete the first message type label in the first message to be processed.

[0136] When the network interface device obtains the second message to be processed, since the second message to be processed is a message flowing from the target physical server to the external physical server, it is necessary to add a corresponding second message type label to the second message to be processed that does not carry the message type label. More specifically, when adding the second message type label, since there are many types of message types, it is necessary to first detect the target message type of the second message to be processed, and then add the second message type label corresponding to the target message type to the first message to be processed.

[0137] In the above embodiment, by adding or deleting the message type label in the message to be processed when the network interface device in the target physical server obtains the message to be processed, the message to be processed can be accurately flowed in or out, thereby improving the accuracy of message processing.

[0138] In an exemplary embodiment, the data interaction diagram of the target physical server is as follows: Figure 4 As shown, different types of virtual function network elements are deployed on the same physical server, and different network element traffic relies on OVS for isolation. The message type information of the message to be processed includes the first message type and the second message type. The second message type includes the data intranet message type and the data extranet message type. For example, the first message type of messages to be processed include the management network's messages to be processed, the data intranet message type of messages to be processed include the data intranet's messages to be processed, and the data extranet message type of messages to be processed include the data extranet's messages to be processed. The OVS configuration scheme is as follows:

[0139] 1. The network interface device bond0.x corresponding to the management network of the virtual function network element manage vm is connected to the operating system bridge linux-br, and the firewall iptable is opened without other configuration. When the network interface device bond0.x obtains the first message to be processed in the incoming direction, it directly sends the first message to be processed to the Linux bridge, that is, the integrated bridge br-int. When the network interface device bond0.x obtains the second message to be processed in the outgoing direction, it directly sends the first message to be processed from the integrated bridge br-int to the network interface device bond0.x;

[0140] 2. The integrated bridge br-int is connected to the sdn management network without vxlan encapsulation;

[0141] 3. The network interface device bond1.y corresponding to the virtual bridge br-ext can add or delete VLANs in the data intranet, and no vxlan encapsulation is performed in the process;

[0142] 4. The virtual bridge br-ext is connected to the integrated bridge br-int through the corresponding bridge connection port patch. When the network interface device bond1.y obtains the first message to be processed in the incoming direction, it is necessary to obtain the destination IP of the outer layer of the first message to be processed and detect the virtual function network element corresponding to the destination IP, so as to send the first message to be processed to the integrated bridge br-int and forward it to the virtual function network element corresponding to the destination IP through the integrated bridge br-int, such as the internal network port of the virtual router, that is, Figure 4 The data port in the network interface device bond1.y obtains the second message to be processed in the outgoing direction, and forwards it to the bridge connection port patch corresponding to the virtual bridge br-ext.

[0143] 5. The network interface device bond2.z corresponding to the virtual bridge br-pub can add or delete VLANs on the data external network, and no vxlan encapsulation is performed in the process;

[0144] 6. The virtual bridge br-pub is connected to the integrated bridge br-int through the corresponding bridge connection port patch. The traffic packets in the in direction are matched with the MAC address in the traffic packets through the routing flow table, and based on the MAC address, the traffic packets are forwarded to the virtual network card in the corresponding virtual function network element. The traffic packets in the out direction are uniformly forwarded to the corresponding patch port of the virtual bridge br-pub, and then forwarded to the external physical server.

[0145] 7. The controller manages the scheduling of br-int, but does not manage the scheduling of br-ext and br-pub.

[0146] 8. In the target physical server system, when the integrated bridge transmits traffic messages to the virtual function network element, the communication method adopted is vhost-user communication technology. The vhost-user communication technology adopts a shared memory communication method and is implemented in the user space for communication between two processes in the user space.

[0147] 9. In virtual function network elements such as load balancing / virtual private networks, there are three ports, namely management port mng, data port data, and export ext1. In virtual function network elements such as virtual routers, there are three ports, namely management port mng, data port data, and export ext2. The data port data communicates with the integrated bridge through the vxlan tunnel endpoint module vetp2.

[0148] Based on the deployment architecture of the above target physical server, the corresponding message forwarding methods can be implemented, including:

[0149] 1. Messages for the management network:

[0150] When the network interface device bond0.x obtains the first message to be processed, the first message type label in the first message to be processed is deleted, and the target network segment information corresponding to each first message to be processed is detected, and the target virtual function network element corresponding to each target network segment information is screened from multiple virtual function network elements, and each first message to be processed is directly sent to the integrated bridge, and then sent from the integrated bridge to the target virtual function network element corresponding to the target network segment information of the first message to be processed.

[0151] The first message to be processed includes a message flowing from an external physical server to a target physical server.

[0152] When the integrated bridge obtains the second message to be processed sent from the virtual function network element, the second message to be processed is sent to the network interface device bond0.x that matches the network segment information of the second message to be processed, and the network interface device bond0.x adds a second message type label to the first message to be processed, and the message flows from the network interface device bond0.x to the external physical server.

[0153] The second message to be processed is a message flowing from the target physical server to the external physical server.

[0154] 2. Messages for data intranet:

[0155] When the network cards eth0 and eth1 bound to the network interface device bond1.y obtain the first message to be processed, the data platform development kit dpdk is used to send the first message to be processed to the network interface device bond1.y corresponding to the network card.

[0156] The network interface device bond1.y deletes the first message type tag in the first message to be processed, detects the target network segment information corresponding to each first message to be processed, and selects the target virtual function network element corresponding to each target network segment information from multiple virtual function network elements.

[0157] Furthermore, the network interface device bond1.y sends each first message to be processed to the VXLAN tunnel endpoint vtep1 module respectively, and the VXLAN tunnel endpoint vtep1 module removes the vxlan encapsulation of the first message to be processed, and sends the decapsulated first message to be processed to the virtual bridge br-xet corresponding to the data intranet message type, and the virtual bridge br-xet sends it to the integrated bridge through the bridge connection port, that is, the patch port, and finally, it is sent from the integrated bridge to the target virtual function network element corresponding to the target network segment information of the first message to be processed.

[0158] When the integrated bridge obtains the second message to be processed sent from the virtual functional network element, the second message to be processed is sent to the patch port matched by the virtual bridge br-xet, so as to send the second message to be processed to the virtual bridge br-xet, and then transmitted to the network interface device bond1.y after being processed and encapsulated by the vtep1 module. Finally, it is sent to the network card bound to the network interface device bond1.y through the dpdk technology to realize the sending of the second message to be processed to the external physical server.

[0159] 3. Messages for data extranet:

[0160] When the network cards eth2 and eth3 bound to the network interface device bond2.z obtain the first message to be processed, the data platform development kit dpdk is used to send the first message to be processed to the network interface device bond2.z corresponding to the network card.

[0161] The network interface device bond2.z deletes the first message type tag in the first message to be processed, detects the target network segment information corresponding to each first message to be processed, and selects the target virtual function network element corresponding to each target network segment information from the multiple virtual function network elements.

[0162] Furthermore, the network interface device bond2.z removes the VLAN encapsulation of each first message to be processed, and sends the decapsulated first message to be processed to the virtual bridge br-pub corresponding to the data external network message type, and the virtual bridge br-pub sends it to the integrated bridge through the patch port, and finally, it is sent from the integrated bridge to the target virtual function network element corresponding to the target network segment information of the first message to be processed.

[0163] When the integrated bridge obtains the second message to be processed sent from the virtual functional network element, the second message to be processed is sent to the patch port matched by the virtual bridge br-pub, so as to send the second message to be processed to the virtual bridge br-pub, and then encapsulate it and transmit it to the network interface device bond2.z. Finally, it is sent to the network card bound to the network interface device bond2.z through the dpdk technology to realize sending the second message to be processed to the external physical server.

[0164] Furthermore, the deployment solution based on virtual function network elements proposed in this application can be well applied to scenarios with diversified network service requirements such as cloud computing and edge computing, and can ensure flexible deployment of virtual network elements, good scalability, and reduced costs. At the same time, this application has good practicality and can provide high availability guarantee for various network systems based on SDN, which has positive significance for ensuring network availability and can create considerable value for society and enterprises.

[0165] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0166] Based on the same inventive concept, the embodiment of the present application also provides a message processing device for implementing the message processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more message processing device embodiments provided below can refer to the limitations on the message processing method above, and will not be repeated here.

[0167] In an exemplary embodiment, Figure 5 As shown, a message processing device is provided, including: a conversion module 200, a deployment module 400, a detection module 600 and a sending module 800, wherein:

[0168] The conversion module 200 is used to obtain network function information of multiple hardware devices and generate a virtual function network element corresponding to each network function information;

[0169] A deployment module 400, configured to deploy a plurality of virtual function network elements in a target physical server, and connect the plurality of virtual function network elements to integrated bridges in the target physical server respectively;

[0170] The detection module 600 is used to detect the target network segment information corresponding to each first message to be processed when the network interface device in the target physical server obtains the first message to be processed, and select the target virtual function network element corresponding to each target network segment information from the multiple virtual function network elements, wherein the first message to be processed includes a message flowing from the external physical server to the target physical server;

[0171] The sending module 800 is used to send each first message to be processed to a target virtual function network element corresponding to the first message to be processed through the integrated bridge.

[0172] In one of the embodiments, the message processing device also includes an outflow module, which is used to obtain preset routing mapping information when the integrated bridge receives a second message to be processed sent by the virtual functional network element, and based on the preset routing mapping information, detect the first bridge connection port corresponding to the second message to be processed, wherein the second message to be processed is a message flowing from the target physical server to the external physical server; forward the second message to be processed from the integrated bridge to the first bridge connection port, and send the second message to be processed to the external physical server through the network interface device corresponding to the first bridge connection port.

[0173] In one of the embodiments, the message processing device also includes a classification processing module, which is used to obtain message type information of each first message to be processed; when the message type information includes a first message type, the first message to be processed is sent to an integrated bridge, wherein the first message to be processed corresponding to the first message type includes a data message with a priority higher than a preset priority threshold; when the message type information includes a second message type, for each first message to be processed, the first message to be processed is sent to a virtual bridge corresponding to the message type information, wherein the first message to be processed corresponding to the second message type includes a data message with a priority lower than or equal to the preset priority threshold; and the first message to be processed is sent from the virtual bridge to the integrated bridge through the second bridge connection port corresponding to the virtual bridge.

[0174] In one of the embodiments, the classification processing module is also used to, when the second message type includes a data intranet message type, remove the virtual extended LAN encapsulation of the first message to be processed, and send the decapsulated first message to be processed to the virtual bridge corresponding to the data intranet message type; when the second message type includes a data extranet message type, remove the LAN encapsulation of the first message to be processed, and send the decapsulated first message to be processed to the virtual bridge corresponding to the data extranet message type.

[0175] In one of the embodiments, the message processing device also includes a network card receiving module, which is used to send the first message to be processed to the network interface device corresponding to the network card using the data platform development kit when the network card bound to the network interface device in the target physical server obtains the first message to be processed.

[0176] In one of the embodiments, the message processing device also includes a label processing module, which is used to delete a first message type label in a first message to be processed when a network interface device in a target physical server obtains a first message to be processed; when a network interface device in a target physical server obtains a second message to be processed, detect a target message type of the second message to be processed, and add a second message type label corresponding to the target message type to the first message to be processed.

[0177] Each module in the above-mentioned message processing device can be implemented in whole or in part by software, hardware and a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.

[0178] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 6 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as messages to be processed. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a message processing method is implemented.

[0179] Those skilled in the art will understand that Figure 6 The structure shown in the figure is a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0180] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0181] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0182] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0183] 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 relevant regulations.

[0184] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0185] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0186] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A message processing method, characterized in that: The method comprises: Acquire network function information of multiple hardware devices, and generate a virtual function network element corresponding to each of the network function information; Deploy the plurality of virtual function network elements in a target physical server, and respectively connect the plurality of virtual function network elements to an integrated network bridge in the target physical server; In the case where the network interface device in the target physical server obtains the first message to be processed, the target network segment information corresponding to each of the first messages to be processed is detected, and the target virtual function network element corresponding to each of the target network segment information is screened from the plurality of virtual function network elements, wherein the first message to be processed includes a message flowing from an external physical server into the target physical server; Each of the first to-be-processed messages is sent to a target virtual function network element corresponding to the first to-be-processed message through the integrated bridge.

2. The method according to claim 1, characterized in that The method further comprises: When the integrated bridge receives a second message to be processed sent by the virtual function network element, the preset routing mapping information is obtained, and based on the preset routing mapping information, the first bridge connection port corresponding to the second message to be processed is detected, wherein the second message to be processed is a message flowing from the target physical server to the external physical server; The second message to be processed is forwarded from the integrated bridge to the first bridge connection port, and the second message to be processed is sent to the external physical server through the network interface device corresponding to the first bridge connection port.

3. The method according to claim 1, characterized in that Before sending each of the first to-be-processed messages to the target virtual function network element corresponding to the first to-be-processed message through the integrated bridge, the method further includes: Obtaining message type information of each of the first to-be-processed messages; In the case where the message type information includes a first message type, sending the first message to be processed to the integrated bridge, wherein the first message to be processed corresponding to the first message type includes a data message having a priority higher than a preset priority threshold; In the case where the message type information includes a second message type, for each of the first to-be-processed messages, sending the first to-be-processed message to a virtual bridge corresponding to the message type information, wherein the first to-be-processed message corresponding to the second message type includes a data message having a priority lower than or equal to a preset priority threshold; The first message to be processed is sent from the virtual bridge to the integrated bridge through the second bridge connection port corresponding to the virtual bridge.

4. The method according to claim 3, characterized in that The sending the first to-be-processed message to the virtual bridge corresponding to the message type information includes: In the case where the second message type includes a data intranet message type, removing the virtual extended local area network encapsulation of the first message to be processed, and sending the decapsulated first message to be processed to the virtual bridge corresponding to the data intranet message type; In the case where the second message type includes a data external network message type, the LAN encapsulation of the first message to be processed is removed, and the decapsulated first message to be processed is sent to a virtual bridge corresponding to the data external network message type.

5. The method according to claim 1, characterized in that In the case where the network interface device in the target physical server obtains the first message to be processed, before detecting the target network segment information corresponding to each of the first message to be processed, the method further includes: When the network card bound to the network interface device in the target physical server obtains the first message to be processed, the data platform development kit is used to send the first message to be processed to the network interface device corresponding to the network card.

6. The method according to claim 2, characterized in that The method further comprises: When the network interface device in the target physical server obtains a first message to be processed, deleting a first message type tag in the first message to be processed; When the network interface device in the target physical server obtains the second message to be processed, the target message type of the second message to be processed is detected, and a second message type tag corresponding to the target message type is added to the first message to be processed.

7. A message processing device, characterized in that: The device comprises: A conversion module, used to obtain network function information of multiple hardware devices and generate a virtual function network element corresponding to each of the network function information; A deployment module, used to deploy the plurality of virtual function network elements in a target physical server, and respectively connect the plurality of virtual function network elements to the integrated bridge in the target physical server; a detection module, configured to detect target network segment information corresponding to each first message to be processed when the network interface device in the target physical server obtains the first message to be processed, and screen the target virtual function network element corresponding to each target network segment information from the plurality of virtual function network elements, wherein the first message to be processed includes a message flowing from an external physical server into the target physical server; The sending module is used to send each of the first to-be-processed messages to the target virtual function network element corresponding to the first to-be-processed message through the integrated bridge.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Network message transmission method and equipment

    CN103634228A

  • High-performance load balancing method based on flow control mechanism

    CN112073503A

  • Virtual machine data processing method and system, equipment and medium

    CN112631726A

  • Network priority implementation method based on virtualization platform

    CN116545943A

  • Multi-mode network message processing method, device and equipment and readable storage medium

    CN116668564A

Cited By

  • IO module hot plugging method, device and equipment based on FPGA and storage medium

    CN121326814A