Flexible message forwarding control method and system of cloud platform virtual server

By modifying the DSCP field in the virtual server of the cloud platform and using the network card of the physical server to divide the traffic, the problem of difficulty in segmenting traffic in the virtual server is solved, avoiding virtual machine network congestion and improving network efficiency.

CN118945120APending Publication Date: 2024-11-12AVIC GOLD NETWORK (BEIJING) TECHNOLOGY CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410931348.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The prior art cannot segment different traffic in virtual servers, resulting in the problem of congestion in virtual machines.

Method used

By modifying the differential service code point (DSCP) field of the packet in the virtual server of the cloud platform, and using the physical server to match and send messages of different DSCP fields according to preset rules, different physical network cards are used to divide traffic.

Benefits of technology

The division of different traffic in the virtual server is realized, which avoids network congestion of virtual machines and improves network efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945120A_ABST
    Figure CN118945120A_ABST
Patent Text Reader

Abstract

The invention discloses a flexible message forwarding control method and system for a cloud platform virtual server. The method comprises the steps that a physical server receives a target message sent by a virtual server, the virtual server is deployed on a cloud platform, and the virtual server is used for modifying differential service code point (DSCP) fields of different types of messages according to a preset rule; the physical server matches messages of different DSCP fields in the target message according to a preset rule; and the physical server sends messages of different DSCP fields through different physical network cards. According to the method and the device, the technical problem of network congestion of the virtual machine caused by the fact that different flows in the virtual server cannot be divided in the virtual server in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of message transmission control, and in particular to a flexible message forwarding control method and system for a cloud platform virtual server. Background Art

[0002] The traffic area of ​​the physical machine network card that a virtual machine (VM) or virtual server uses is determined by the rules on the physical machine. For example, the target Internet Protocol (IP) address accessed by the VM is used to determine which network card to use based on the physical machine routing table, or the use of the physical network card is adjusted by adjusting the virtual Ethernet card of the VM to hang on different bridges or using different virtual eXtensible LAN tunnel endpoints on the physical machine.

[0003] In summary, the configuration based on the physical machine is based on the VM as the reference point. The relevant technology can only adjust the traffic of the entire VM through the physical machine, and cannot subdivide the different traffic of a VM.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a flexible message forwarding control method and system for a cloud platform virtual server, so as to at least solve the technical problem of network congestion of virtual machines caused by the inability of related technologies to divide different traffic in the virtual server in the virtual server.

[0006] According to one aspect of an embodiment of the present application, a flexible message forwarding control method for a cloud platform virtual server is provided, including: a physical server receives a target message sent by a virtual server, wherein the virtual server is deployed on the cloud platform, and the virtual server is used to modify the Differentiated Services Code Point (DSCP) field of different types of messages according to preset rules; the physical server matches messages with different DSCP fields in the target message according to the preset rules; and the physical server sends messages with different DSCP fields through different physical network cards.

[0007] Optionally, the physical server receives the target message sent by the virtual server, including: the target virtual network card of the virtual server in the physical server receives the target message sent by the virtual server, and the virtual server is used to modify the DSCP field of the first type of message used to transmit network service traffic data to the first field, modify the DSCP field of the second type of message used to transmit download traffic data to the second field, and modify the DSCP field of the third type of message used to transmit database traffic data to the third field according to a preset rule.

[0008] Optionally, the physical server matches messages with different DSCP fields in the target message according to preset rules, including: the target virtual network card of the virtual server in the physical server matches messages with the DSCP field as the first field, messages with the DSCP field as the second field, and messages with the DSCP field as the third field in the target message according to preset rules.

[0009] Optionally, the preset rules are rules based on the firewall command line tool; the physical server matches messages with different DSCP fields in the target message according to the preset rules, including: using the DSCP option in the firewall command line tool to match messages with different DSCP fields in the target message, or using the preset mask in the firewall command line tool to match messages with different DSCP fields in the target message, or using multiple comma-separated preset lists in the firewall command line tool to match messages with different DSCP fields in the target message.

[0010] Optionally, the physical server sends messages with different DSCP fields through different physical network cards, including: copying the message of the first field to obtain a first target message, sending the first target message from the target virtual network card to the first bridge, the first bridge is used to send the first target message to the first network card, and the first network card is used to send the first target message to a receiving end other than the physical server; copying the message of the second field to obtain a second target message, sending the second target message from the target virtual network card to the second bridge, the second bridge is used to send the second target message to the second network card, and the second network card is used to send the second target message to a receiving end other than the physical server; copying the message of the third field to obtain a third target message, sending the third target message from the target virtual network card to the third bridge, the third bridge is used to send the third target message to the third network card, and the third network card is used to send the third target message to a receiving end other than the physical server.

[0011] Optionally, after copying the message of the first field to obtain the first target message, the method also includes: deleting the message of the first field; after copying the message of the second field to obtain the second target message, the method also includes: deleting the message of the second field; after copying the message of the third field to obtain the third target message, the method also includes: deleting the message of the third field.

[0012] According to another aspect of the embodiment of the present application, a flexible message forwarding control method for a cloud platform virtual server is also provided, including: the virtual server modifies the Differentiated Service Code Point (DSCP) field of different types of messages according to preset rules, wherein the virtual server is deployed on the cloud platform; the virtual server sends the modified target message to a physical server, wherein the physical server is used to receive the target message sent by the virtual server, and according to preset rules, matches messages with different DSCP fields in the target message, and is also used to send messages with different DSCP fields through different physical network cards.

[0013] According to another aspect of the embodiment of the present application, a flexible message forwarding control system for a cloud platform virtual server is also provided, including: a virtual server is communicatively connected with a physical server, the virtual server is deployed on the cloud platform, and is used to modify the Differentiated Service Code Point (DSCP) field of different types of messages according to preset rules, and send the modified target message to the physical server; the physical server is used to receive the target message sent by the virtual server, and according to preset rules, matches messages with different DSCP fields in the target message, and is also used to send messages with different DSCP fields through different physical network cards.

[0014] According to another aspect of the embodiment of the present application, a non-volatile storage medium is also provided, the storage medium includes a stored program, wherein when the program runs, the device where the storage medium is located is controlled to execute the above-mentioned flexible message forwarding control method for the cloud platform virtual server.

[0015] According to another aspect of the embodiments of the present application, an electronic device is also provided, including: a memory and a processor, the processor being used to run a program stored in the memory, wherein the above-mentioned flexible message forwarding control method for the cloud platform virtual server is executed when the program is running.

[0016] According to another aspect of the embodiments of the present application, a computer program is further provided, wherein when the computer program is executed by a processor, the above-mentioned flexible message forwarding control method for the cloud platform virtual server is implemented.

[0017] According to another aspect of the embodiment of the present application, a computer program product is also provided, which includes a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned flexible message forwarding control method for the cloud platform virtual server is implemented.

[0018] In an embodiment of the present application, a physical server is used to receive a target message sent by a virtual server, wherein the virtual server is deployed on a cloud platform, and the virtual server is used to modify the Differentiated Service Code Point (DSCP) field of different types of messages according to preset rules; the physical server matches messages with different DSCP fields in the target message according to preset rules; the physical server sends messages with different DSCP fields through different physical network cards, thereby achieving the purpose of dividing different traffic in the virtual server on the virtual server side, thereby achieving the technical effect of avoiding network congestion of the virtual machine, and further solving the technical problem of network congestion of the virtual machine caused by the inability of related technologies to divide different traffic in the virtual server on the virtual server. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] 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:

[0020] Figure 1 It is a flow chart of a flexible message forwarding control method of a cloud platform virtual server according to an embodiment of the present application;

[0021] Figure 2 It is a flowchart of another flexible message forwarding control method of a cloud platform virtual server according to an embodiment of the present application;

[0022] Figure 3 It is an architectural diagram of a flexible message forwarding control method for a cloud platform virtual server according to an embodiment of the present application;

[0023] Figure 4 It is a structural diagram of a flexible message forwarding control system of a cloud platform virtual server according to an embodiment of the present application;

[0024] Figure 5 It is a hardware structure block diagram of a computer terminal according to a flexible message forwarding control method of a cloud platform virtual server according to an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. 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 creative work should fall within the scope of protection of the present application.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] According to an embodiment of the present application, a method embodiment of a flexible message forwarding control method for a cloud platform virtual server is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0028] Figure 1 is a flow chart of a flexible message forwarding control method for a cloud platform virtual server according to an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:

[0029] In step S102, the physical server receives the target message sent by the virtual server, wherein the virtual server is deployed on the cloud platform, and the virtual server is used to modify the DSCP field of different types of messages according to preset rules. Physical servers and virtual servers are two different types of servers, which differ in architecture, performance, cost and purpose, wherein the physical server is an independent hardware device with its own central processing unit, memory, hard disk and other hardware resources. Virtual servers are multiple virtual machines (VMs) created on a physical server through virtualization technology, each of which has an independent operating system and application. Performance may be limited by the resource allocation of the physical server. Because multiple virtual servers can share the resources of the same physical server. Virtualization technology allows more efficient use of the resources of the physical server, reducing costs and improving resource utilization by running multiple virtual servers on a single physical server.

[0030] Virtual servers deployed on cloud platforms are a computing method in which enterprises or individuals can outsource resource management and computing tasks to cloud service providers. A virtual server is a server implemented based on virtualization technology. It can run multiple operating system instances on a single physical server, and each instance can have independent CPU, memory, storage and network resources. The following are some key points about the deployment of virtual servers on cloud platforms: 1. Cloud service providers: Cloud service providers such as Amazon Web Services (AWS), Microsoft Azure, Google Cloud Platform (GCP), etc. provide a wealth of virtual server services. 2. Resource flexibility: Cloud platforms allow users to quickly adjust the resource allocation of virtual servers, such as CPU, memory and storage, according to demand. 3. Scalability: Virtual servers on cloud platforms can be easily expanded to adapt to business growth or cope with traffic peaks. 4. Cost-effectiveness: Compared with traditional physical servers, the pay-as-you-go model of cloud platforms can reduce operating costs. 5. Easy to manage: Cloud service providers usually provide a management console that enables users to remotely manage virtual servers. 6. Security: Cloud service providers usually provide a variety of security measures, such as firewalls, intrusion detection systems and data encryption, to protect the security of virtual servers. 7. High availability and disaster recovery: Cloud platforms usually provide high availability solutions and disaster recovery services to ensure business continuity. 8. Multi-tenant environment: Virtual servers share physical hardware with other users' servers, but each virtual server has an independent operating system and applications. 9. Instant deployment: Cloud platforms allow users to quickly deploy new virtual servers without waiting for the purchase and configuration of physical hardware. 10. Environment customization: Users can customize the operating system, applications, and configuration of virtual servers as needed.

[0031] Different types of messages include, for example, messages used to transmit network service traffic data, messages used to transmit download traffic data, and messages used to transmit database traffic data.

[0032] Among them, the messages used to transmit network service traffic data include: Web services, API calls, email services, etc. Such messages usually require lower latency and higher reliability. When the priority is represented by the DSCP value, the DSCP value of such messages can be set to a lower value (such as CS0 or CS1) to ensure basic service quality, but not the highest priority.

[0033] Messages used to transmit download traffic data are related to large file transfers, video streaming, software updates, etc. Such messages may have high bandwidth requirements but low sensitivity to delays. When the priority is expressed by the DSCP value, the DSCP value of such messages can be set to a higher value (such as AF31, AF32, etc.) to ensure sufficient bandwidth, but a certain degree of delay may be allowed.

[0034] Messages used to transmit database traffic data usually include queries, transaction processing, and data synchronization. Such messages are very sensitive to latency because database operations usually require a quick response. When the priority is represented by the DSCP value, the DSCP value of such messages can be set to a higher priority (such as EF, i.e. Expedited Forwarding) to ensure the fast execution of database operations.

[0035] For example, in step S102, the virtual server modifies the DSCP field of the message used to transmit network service traffic data to 10, modifies the DSCP field of the message used to transmit download traffic data to 20, and modifies the DSCP field of the message used to transmit database traffic data to 30 according to the preset rules.

[0036] Step S104: The physical server matches messages with different DSCP fields in the target message according to a preset rule.

[0037] For example, search for packets whose DSCP field is 10, packets whose DSCP field is 20, and packets whose DSCP field is 30 in the target packets.

[0038] Step S106: The physical server sends messages with different DSCP fields through different physical network cards.

[0039] For example, a physical server includes three network cards with different rates and different bandwidths. Among them, the first rate of the first network card is within the first preset rate interval, and the first bandwidth of the first network card is within the first preset bandwidth interval; the second rate of the second network card is within the second preset rate interval, and the second bandwidth of the second network card is within the second preset bandwidth interval; the third rate of the third network card is within the third preset rate interval, and the third bandwidth of the third network card is within the third preset bandwidth interval. In short, the first network card is a low-rate, low-bandwidth network card; the second network card is a medium-rate, medium-bandwidth network card; and the third network card is a high-rate, high-bandwidth network card.

[0040] Furthermore, the physical server sends a message for transmitting network service traffic data (a message with a DSCP field of 10) through the first network card, sends a message for transmitting download traffic data (a message with a DSCP field of 20) through the second network card, and sends a message for transmitting database traffic data (a message with a DSCP field of 30) through the third network card.

[0041] According to the above steps, a physical server is used to receive a target message sent by a virtual server, wherein the virtual server is deployed on a cloud platform, and the virtual server is used to modify the Differentiated Service Code Point (DSCP) field of different types of messages according to preset rules; the physical server matches messages with different DSCP fields in the target message according to preset rules; the physical server sends messages with different DSCP fields through different physical network cards, thereby achieving the purpose of dividing different traffic in the virtual server on the virtual server side, thereby achieving the technical effect of avoiding network congestion of virtual machines.

[0042] According to some optional embodiments of the present application, the physical server receives the target message sent by the virtual server, which can be implemented by the following method:

[0043] The target virtual network card of the virtual server in the physical server receives the target message sent by the virtual server. The virtual server is used to modify the DSCP field of the first type of message used to transmit network service traffic data to the first field, modify the DSCP field of the second type of message used to transmit download traffic data to the second field, and modify the DSCP field of the third type of message used to transmit database traffic data to the third field according to preset rules.

[0044] The target virtual network card of the virtual server in the physical server is, for example, a TAP network card of the virtual server in the physical server. Among them, the TAP network card used by the virtual server in the physical server is a special virtual network device, which is mainly used to provide network connection in the virtualized environment. The following is a detailed introduction to the TAP network card in the virtual server: TAP network card, the full name of which is "Tunneling Traffic Access Point", is a virtual network card technology used on the Linux system. TAP network card provides a way for the virtualized environment to enable virtual machines to communicate in the network like physical machines. TAP network card is designed specifically for virtualized environments and can be used with virtualization software (such as KVM, Xen, VirtualBox, etc.) to provide network connection for virtual machines. TAP network card works at the data link layer (layer 2) and can only process Ethernet data frames at layer 2. Corresponding to the Ethernet protocol, TAP network card is also called "virtual Ethernet device". TAP network card is very similar to physical network card in function and implementation. It can be configured with IP address and is uniformly managed by the Linux network device management module. The TAP network card can provide secure network connections for applications because it can simulate a real network environment and provide an isolated and secure network space for virtual machines.

[0045] In a virtualized environment, virtual machines need to communicate with other virtual machines or physical machines through the network. As the network interface of the virtual machine, the TAP network card can be connected to the switch or router of the physical network to achieve network communication of the virtual machine. The TAP network card can be used in conjunction with other virtual network devices (such as virtual switches, virtual routers, etc.) to build a complex virtual network environment. These virtual network environments can be used in a variety of scenarios such as testing, development, and deployment. In addition, through the TAP network card, an independent and isolated network environment can be provided for the virtual machine. This isolated environment can be used to protect sensitive data, prevent network attacks, and other scenarios.

[0046] For example, the virtual server modifies the DSCP field of the first type of message to 10, modifies the DSCP field of the second type of message to 20, and modifies the DSCP field of the third type of message to 30 according to the preset rule.

[0047] Furthermore, the physical server matches messages with different DSCP fields in the target message according to preset rules, including: the target virtual network card of the virtual server in the physical server matches messages with the DSCP field as the first field, messages with the DSCP field as the second field, and messages with the DSCP field as the third field in the target message according to preset rules.

[0048] For example, search for packets whose DSCP field is 10, packets whose DSCP field is 20, and packets whose DSCP field is 30 in the target packets.

[0049] According to some other optional embodiments of the present application, the preset rule is a rule based on the firewall command line tool. Further, the physical server matches the messages with different DSCP fields in the target message according to the preset rule, which can be achieved by the following method:

[0050] Use the DSCP option in the firewall command line tool to match packets with different DSCP fields in the target packet.

[0051] Use the DSCP option to specify a specific DSCP value or range of values.

[0052] For example, this can be achieved by expressing:

[0053] #Match packets with a DSCP value of 0x0A

[0054] iptables-t mangle-A PREROUTING-p tcp--dscp 0x0A-j MARK--set-mark 10

[0055] Alternatively, use the preset mask in the firewall command line tool to match packets with different DSCP fields in the target packet.

[0056] For example, this can be achieved by expressing:

[0057] #Match the packets whose first two digits of the DSCP value are 11 (i.e. 0xAx)

[0058] iptables -t mangle-APREROUTING -p tcp -m dscp --dscp 0b11000000 / 0b11000000-jMARK --set-mark 30

[0059] Alternatively, use multiple comma-separated preset lists in the firewall command line tool to match packets with different DSCP fields in the target packet.

[0060] On the other hand, the physical server can match packets with different DSCP fields in the target packet according to the preset rules in iptables. iptables is a powerful firewall and network rule tool in the Linux operating system that allows administrators to define complex rules to process IP packets passing through the network interface. Use the iptables command to add rules to match specific DSCP values. After the rules are applied, all packets passing through the physical server will be processed according to the defined rules. The following is a simple iptables command example that demonstrates how to set rules to match packets with specific DSCP values:

[0061] #Allow packets with DSCP value CS0 (0x00) to pass

[0062] iptables-t mangle-A PREROUTING-p tcp--dscp 0x00-j ACCEPT

[0063] #Mark packets with DSCP value CS1 (0x08)

[0064] iptables-t mangle-A PREROUTING-p tcp--dscp 0x08-j MARK--set-mark 1

[0065] #Discard packets with DSCP value CS2 (0x10)

[0066] iptables-t mangle-A PREROUTING-p tcp--dscp 0x10-j DROP

[0067] In the above example: The first rule allows all TCP packets with a DSCP value of CS0 to pass without any modification. The second rule marks all TCP packets with a DSCP value of CS1 as 1. The third rule discards all TCP packets with a DSCP value of CS2.

[0068] In some optional embodiments of the present application, the physical server sends packets with different DSCP fields through different physical network cards, which can be implemented by the following method:

[0069] Copy the message of the first field to obtain the first target message, and send the first target message from the target virtual network card to the first bridge. The first bridge is used to send the first target message to the first network card, and the first network card is used to send the first target message to a receiving end other than the physical server.

[0070] Preferably, after copying the message of the first field to obtain the first target message, the following step may be performed: deleting the message of the first field.

[0071] Copy the message of the second field to obtain a second target message, and send the second target message from the target virtual network card to the second bridge. The second bridge is used to send the second target message to the second network card, and the second network card is used to send the second target message to a receiving end other than the physical server.

[0072] Preferably, after copying the message of the second field to obtain the second target message, the following steps may also be performed: deleting the message of the second field;

[0073] Copy the message of the third field to obtain the third target message, and send the third target message from the target virtual network card to the third bridge. The third bridge is used to send the third target message to the third network card, and the third network card is used to send the third target message to the receiving end other than the physical server.

[0074] Preferably, after copying the message of the third field to obtain the third target message, the following step may be performed: deleting the message of the third field.

[0075] In summary, in the method provided by this application, the virtual server can freely configure the rules for DSCP modification, and network service traffic, download traffic, and database traffic can go out of the network through different physical network cards. In addition, the physical machine only needs to maintain an iptables rule that matches different DSCPs and copies different bridges, and bind the corresponding rule to the TAP virtual network card to which the VM belongs.

[0076] Figure 2 is a flow chart of another flexible message forwarding control method for a cloud platform virtual server according to an embodiment of the present application, such as Figure 2 As shown, the method comprises the following steps:

[0077] In step S202, the virtual server modifies the Differentiated Services Code Point (DSCP) field of different types of messages according to a preset rule, wherein the virtual server is deployed on a cloud platform.

[0078] Different types of messages include, for example, messages used to transmit network service traffic data, messages used to transmit download traffic data, and messages used to transmit database traffic data.

[0079] Among them, the messages used to transmit network service traffic data include: Web services, API calls, email services, etc. Such messages usually require lower latency and higher reliability. When the priority is represented by the DSCP value, the DSCP value of such messages can be set to a lower value (such as CS0 or CS1) to ensure basic service quality, but not the highest priority.

[0080] Messages used to transmit download traffic data are related to large file transfers, video streaming, software updates, etc. Such messages may have high bandwidth requirements but low sensitivity to delays. When the priority is expressed by the DSCP value, the DSCP value of such messages can be set to a higher value (such as AF31, AF32, etc.) to ensure sufficient bandwidth, but a certain degree of delay may be allowed.

[0081] Messages used to transmit database traffic data usually include queries, transaction processing, and data synchronization. Such messages are very sensitive to latency because database operations usually require a quick response. When the priority is represented by the DSCP value, the DSCP value of such messages can be set to a higher priority (such as EF, i.e. Expedited Forwarding) to ensure the fast execution of database operations.

[0082] For example, in step S202, the virtual server modifies the DSCP field of the message used to transmit network service traffic data to 10, modifies the DSCP field of the message used to transmit download traffic data to 20, and modifies the DSCP field of the message used to transmit database traffic data to 30 according to the preset rules.

[0083] In step S204, the virtual server sends the modified target message to the physical server, wherein the physical server is used to receive the target message sent by the virtual server, and according to preset rules, matches messages with different DSCP fields in the target message, and is also used to send messages with different DSCP fields through different physical network cards.

[0084] For example, a physical server includes three network cards with different rates and different bandwidths. Among them, the first rate of the first network card is within the first preset rate interval, and the first bandwidth of the first network card is within the first preset bandwidth interval; the second rate of the second network card is within the second preset rate interval, and the second bandwidth of the second network card is within the second preset bandwidth interval; the third rate of the third network card is within the third preset rate interval, and the third bandwidth of the third network card is within the third preset bandwidth interval. In short, the first network card is a low-rate, low-bandwidth network card; the second network card is a medium-rate, medium-bandwidth network card; and the third network card is a high-rate, high-bandwidth network card.

[0085] The physical server searches for a message whose DSCP field is 10, a message whose DSCP field is 20, and a message whose DSCP field is 30 in the target message.

[0086] Furthermore, the physical server sends a message with a DSCP field of 10 through the first network card, sends a message with a DSCP field of 20 through the second network card, and sends a message with a DSCP field of 30 through the third network card.

[0087] Figure 3 This is an architectural diagram of a flexible message forwarding control method for a cloud platform virtual server according to an embodiment of the present application, wherein the configuration in the virtual server is as follows: according to the rules such as the message target port / target IP / protocol, use iptables to modify the DSCP field of the message. The configuration in the physical server is as follows: 1. The corresponding bridges are based on the number of physical network cards that can be used. 2. Configure iptables rules to match the DSCP field in the message, copy the matching message to the corresponding bridge, and discard the original message. 3. Bind the created rules to the tap virtual network card corresponding to the VM.

[0088] Furthermore, the virtual server modifies the Differentiated Services Code Point (DSCP) field of different types of messages according to preset rules; the virtual server sends the modified target message to the physical server.

[0089] The physical server receives the target message sent by the virtual server, and matches messages with different DSCP fields in the target message according to preset rules, and is also used to send messages with different DSCP fields through different physical network cards.

[0090] Figure 4 is a structural diagram of a flexible message forwarding control system of a cloud platform virtual server according to an embodiment of the present application, such as Figure 4 As shown, the system includes: a virtual server 41 and a physical server 42, wherein:

[0091] The virtual server 41 is in communication connection with the physical server 42, and the virtual server is deployed on the cloud platform, and is used to modify the differential service code point DSCP field of different types of messages according to preset rules, and send the modified target message to the physical server 42;

[0092] The physical server 42 is used to receive the target message sent by the virtual server 41, and match messages with different DSCP fields in the target message according to preset rules, and is also used to send messages with different DSCP fields through different physical network cards.

[0093] Different types of messages include, for example, messages used to transmit network service traffic data, messages used to transmit download traffic data, and messages used to transmit database traffic data.

[0094] For example, according to preset rules, virtual server 41 modifies the DSCP field of the message used to transmit network service traffic data to 10, modifies the DSCP field of the message used to transmit download traffic data to 20, and modifies the DSCP field of the message used to transmit database traffic data to 30.

[0095] Assume that the physical server 42 includes three network cards with different rates and different bandwidths. Among them, the first rate of the first network card is within the first preset rate interval, and the first bandwidth of the first network card is within the first preset bandwidth interval; the second rate of the second network card is within the second preset rate interval, and the second bandwidth of the second network card is within the second preset bandwidth interval; the third rate of the third network card is within the third preset rate interval, and the third bandwidth of the third network card is within the third preset bandwidth interval. In short, the first network card is a low-rate, low-bandwidth network card; the second network card is a medium-rate, medium-bandwidth network card; and the third network card is a high-rate, high-bandwidth network card.

[0096] Furthermore, the physical server 42 searches for a message whose DSCP field is 10, a message whose DSCP field is 20, and a message whose DSCP field is 30 in the target message.

[0097] Figure 5 The hardware structure block diagram of a computer terminal for implementing a flexible message forwarding control method for a cloud platform virtual server is shown. Figure 5 As shown, the computer terminal 50 may include one or more (502a, 502b, ..., 502n are used to illustrate) processors 502 (the processor 502 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 504 for storing data, and a transmission module 506 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 5 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 5 More or fewer components as shown, or with Figure 5 Different configurations are shown.

[0098] It should be noted that the one or more processors 502 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 50. As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0099] The memory 504 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the flexible message forwarding control method of the cloud platform virtual server in the embodiment of the present application. The processor 502 executes various functional applications and data processing by running the software programs and modules stored in the memory 504, that is, the flexible message forwarding control method of the cloud platform virtual server described above is realized. The memory 504 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 504 may further include a memory remotely arranged relative to the processor 502, and these remote memories may be connected to the computer terminal 50 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0100] The transmission module 506 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 50. In one example, the transmission module 506 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission module 506 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0101] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 50 .

[0102] It should be noted that, in some optional embodiments, the above Figure 5 The computer terminal shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of hardware elements and software elements. It should be noted that Figure 5 This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the computer terminal described above.

[0103] It should be noted that Figure 5 The computer terminal shown is used to execute Figure 1 The flexible message forwarding control method of the cloud platform virtual server shown, therefore the relevant explanations and instructions in the execution method of the above command are also applicable to the electronic device and will not be repeated here.

[0104] An embodiment of the present application further provides a non-volatile storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the above-mentioned flexible message forwarding control method for the cloud platform virtual server.

[0105] The non-volatile storage medium performs the following functions: a physical server receives a target message sent by a virtual server, wherein the virtual server is deployed on a cloud platform, and the virtual server is used to modify the Differentiated Service Code Point (DSCP) field of different types of messages according to preset rules; the physical server matches messages with different DSCP fields in the target message according to the preset rules; the physical server sends messages with different DSCP fields through different physical network cards.

[0106] An embodiment of the present application also provides an electronic device, including: a memory and a processor, the processor being used to run a program stored in the memory, wherein the above-mentioned flexible message forwarding control method for a cloud platform virtual server is executed when the program is running.

[0107] The processor is used to run a program that performs the following functions: a physical server receives a target message sent by a virtual server, wherein the virtual server is deployed on a cloud platform, and the virtual server is used to modify the Differentiated Service Code Point (DSCP) field of different types of messages according to preset rules; the physical server matches messages with different DSCP fields in the target message according to the preset rules; the physical server sends messages with different DSCP fields through different physical network cards.

[0108] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0109] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0110] In the above-mentioned embodiments of the present application, the collected information is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary protection measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0111] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0112] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0113] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0114] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.

[0115] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A flexible message forwarding control method for a cloud platform virtual server, characterized in that: include: The physical server receives a target message sent by a virtual server, wherein the virtual server is deployed on a cloud platform, and the virtual server is used to modify the Differentiated Services Code Point (DSCP) field of different types of messages according to a preset rule; The physical server matches the messages of different DSCP fields in the target message according to the preset rule; The physical server sends the messages with different DSCP fields through different physical network cards.

2. The method according to claim 1, characterized in that The physical server receives the target message sent by the virtual server, including: The target virtual network card of the virtual server in the physical server receives the target message sent by the virtual server. The virtual server is used to modify the DSCP field of the first type of message used to transmit network service traffic data to the first field, modify the DSCP field of the second type of message used to transmit download traffic data to the second field, and modify the DSCP field of the third type of message used to transmit database traffic data to the third field according to the preset rule.

3. The method according to claim 2, characterized in that The physical server matches the messages of different DSCP fields in the target message according to the preset rule, including: The target virtual network card of the virtual server in the physical server matches the message whose DSCP field is the first field, the message whose DSCP field is the second field, and the message whose DSCP field is the third field in the target message according to the preset rule.

4. The method according to claim 1 or 3, characterized in that: The preset rules are rules based on the firewall command line tool; The physical server matches the messages of different DSCP fields in the target message according to the preset rule, including: Using the DSCP option in the firewall command line tool, the messages with different DSCP fields are matched in the target message, or using the preset mask in the firewall command line tool, the messages with different DSCP fields are matched in the target message, or using multiple comma-separated preset lists in the firewall command line tool, the messages with different DSCP fields are matched in the target message.

5. The method according to claim 3, characterized in that: The physical server sends the messages with different DSCP fields through different physical network cards, including: Copying the message of the first field to obtain a first target message, sending the first target message from the target virtual network card to the first network bridge, the first network bridge is used to send the first target message to the first network card, and the first network card is used to send the first target message to a receiving end other than the physical server; Copy the message of the second field to obtain a second target message, send the second target message from the target virtual network card to the second network bridge, the second network bridge is used to send the second target message to the second network card, and the second network card is used to send the second target message to a receiving end other than the physical server; Copy the message of the third field to obtain a third target message, and send the third target message from the target virtual network card to a third network bridge. The third network bridge is used to send the third target message to a third network card, and the third network card is used to send the third target message to a receiving end other than the physical server.

6. The method according to claim 5, characterized in that After copying the message of the first field to obtain the first target message, the method further includes: deleting the message of the first field; After copying the message of the second field to obtain the second target message, the method further includes: deleting the message of the second field; After copying the message of the third field to obtain the third target message, the method further includes: deleting the message of the third field.

7. A flexible message forwarding control method for a cloud platform virtual server, characterized in that: include: The virtual server modifies the Differentiated Service Code Point (DSCP) field of different types of messages according to preset rules, wherein the virtual server is deployed on a cloud platform; The virtual server sends the modified target message to the physical server, wherein the physical server is used to receive the target message sent by the virtual server, and according to the preset rule, matches the message with different DSCP fields in the target message, and is also used to send the message with different DSCP fields through different physical network cards.

8. A flexible message forwarding control system for a cloud platform virtual server, characterized in that: include: Virtual servers and physical servers, where The virtual server is in communication connection with the physical server, and the virtual server is deployed on a cloud platform, and is used to modify the Differentiated Services Code Point (DSCP) field of different types of messages according to preset rules, and send the modified target message to the physical server; The physical server is used to receive the target message sent by the virtual server, and according to the preset rule, matches the message with different DSCP fields in the target message, and is also used to send the message with different DSCP fields through different physical network cards.

9. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored program, wherein, when the program is running, the device where the non-volatile storage medium is located is controlled to execute the flexible message forwarding control method for the cloud platform virtual server described in any one of claims 1 to 6 or the flexible message forwarding control method for the cloud platform virtual server described in claim 7.

10. An electronic device, characterized in that: include: A memory and a processor, the processor being used to run a program stored in the memory, wherein when the program is run, the flexible message forwarding control method for a cloud platform virtual server as described in any one of claims 1 to 6 or the flexible message forwarding control method for a cloud platform virtual server as described in claim 7 is executed.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the flexible message forwarding control method for a cloud platform virtual server described in any one of claims 1 to 6 or the flexible message forwarding control method for a cloud platform virtual server described in claim 7 is implemented.

Citation Information

Cited By

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

    CN119520447A

  • Data hierarchical transmission method and device, equipment, storage medium and product

    CN119561908A

  • Data hierarchical transmission method, device, equipment, storage medium and product

    CN119561908B