CN112929264B - Service flow transmission method, system and network equipment - Google Patents

Service flow transmission method, system and network equipment Download PDF

Info

Publication number
CN112929264B
CN112929264B CN201911239905.3A CN201911239905A CN112929264B CN 112929264 B CN112929264 B CN 112929264B CN 201911239905 A CN201911239905 A CN 201911239905A CN 112929264 B CN112929264 B CN 112929264B
Authority
CN
China
Prior art keywords
virtual
request message
load balancer
target request
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911239905.3A
Other languages
Chinese (zh)
Other versions
CN112929264A (en
Inventor
谢清峰
范少卓
曹志文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Wangsu Co Ltd
Original Assignee
Xiamen Wangsu Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Wangsu Co Ltd filed Critical Xiamen Wangsu Co Ltd
Priority to CN201911239905.3A priority Critical patent/CN112929264B/en
Publication of CN112929264A publication Critical patent/CN112929264A/en
Application granted granted Critical
Publication of CN112929264B publication Critical patent/CN112929264B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/586Association of routers of virtual routers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering

Abstract

The embodiment of the invention provides a service flow transmission method, a service flow transmission system and network equipment, and belongs to the technical field of communication. The method comprises the following steps: the virtual router receives a target request message forwarded by the virtual switch and matches the target request message with a preset service quality rule set; the virtual router sends the target request message to a virtual load balancer according to the matching result; the virtual load balancer selects a service server for the target request message according to a pre-configured load balancing rule; and the virtual load balancer sends the target request message to the virtual switch, so that the virtual switch forwards the target request message to the selected service server for service processing. By adopting the invention, the data processing performance of the whole business service system can be improved.

Description

Service flow transmission method, system and network equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, a system, and a network device for transmitting service traffic.
Background
In order to improve the processing capability of the service Server for the request message and avoid the problem of service interruption caused by single-point failure of the service Server, a plurality of service servers (RS) can be interconnected through a network to form a service Server cluster to provide service services together. At this time, a load balancing node needs to be deployed between the client and the RS cluster. The load balancing node and the service server cluster form a service system to provide service for the outside. Specifically, the load balancing node is configured to receive request messages sent by each client, and distribute the request messages to a plurality of service servers in a service server cluster for service processing. The high-performance load balancing node can be constructed by adopting a DPVS (DPDK-LVS) technology based on a DPDK (Data Plane Development Kit).
However, the DPVS provided by the prior art is not capable of quality of service control for traffic. As Traffic volume increases, the flow control functions provided by DPVS, such as Traffic Shaping (Traffic Shaping), have failed to meet the ever-increasing network quality of service requirements. As shown in fig. 1, in order to ensure the quality of service, a virtual switch and a virtual router may be deployed on a load balancing node to control and manage traffic flow.
The inventor of the present patent application, by studying the processing procedure of the service traffic, finds that the prior art has at least the following problems: as shown in fig. 2, not only data interaction between the load balancing node and the client or the service server needs to be performed through the virtual switch, but also data interaction between the virtual router on the load balancing node and the virtual load balancer needs to be performed through the virtual switch. When large-scale service traffic is processed, the virtual switch has a heavy load, which causes that the transmission efficiency of the service traffic in the load balancing node is not high, and further causes that the data processing performance of the whole service system is low.
Disclosure of Invention
The present application is directed to a method, a system, a network device, and a computer-readable storage medium for transmitting service traffic, so as to solve some or all of the problems in the prior art. The technical scheme is as follows:
in a first aspect, a method for transmitting service traffic is provided, where the method for transmitting service traffic includes:
the virtual router receives a target request message forwarded by the virtual switch, and matches the target request message with a preset service quality rule set;
and the virtual router sends the target request message to a virtual load balancer according to the matching result so that the virtual load balancer performs load balancing processing on the target request message.
In this embodiment, the virtual router sends the received request packet to the virtual load balancer, and compared with the prior art, the request packet is not forwarded by the virtual switch, so that the number of times of forwarding the request packet inside the load balancing node is reduced, the load of the virtual switch is reduced, and the transmission efficiency of the request packet is improved. Compared with the prior art, the method and the device can process more request messages and quicken the service response speed under the same hardware configuration. And the virtual router performs service quality control on the received request message based on the service quality rule set, thereby perfecting the service quality function of the load balancing node aiming at the uplink flow. Therefore, the data processing performance of the whole business service system is improved.
Optionally, before the virtual router sends the target request packet to the virtual load balancer, the service traffic transmission method further includes:
and the virtual router establishes communication connection with the virtual _ user port of the virtual load balancer through the virtio _ user port.
In this embodiment, the virtual _ user port and the ghost _ user port receive and send packets based on the shared memory, so that the data transfer efficiency between the virtual router and the virtual load balancer can be improved.
Further, the sending, by the virtual router, the target request packet to the virtual load balancer according to the matching result specifically includes:
if the service quality rule matched with the target request message does not exist in the preset service quality rule set, the virtual router sends the target request message to the virtual load balancer;
otherwise, the virtual router executes the operation method specified by the matched service quality rule to the target request message, and if necessary, the target request message is sent to the virtual load balancer.
Optionally, the service traffic transmission method further includes:
the virtual router receives a target response message forwarded by the virtual load balancer and matches the target response message with the service quality rule set;
and the virtual router sends the target response message to the virtual switch according to the matching result, so that the virtual switch sends the target response message to a client.
In this embodiment, the virtual router receives the response packet sent by the virtual load balancer, and compared with the prior art, the response packet is not forwarded by the virtual switch, so that the number of times of forwarding the response packet inside the load balancing node is reduced, on one hand, the load of the virtual switch is reduced, and on the other hand, the transmission efficiency of the response packet is improved. It can be understood that, under the same hardware configuration, compared with the prior art, the method and the device can process more response messages and accelerate the service response speed. And the virtual router performs service quality control on the received response message based on the service quality rule set, thereby perfecting the service quality function of the load balancing node for the downlink flow. Therefore, the data processing performance of the whole business service system can be improved.
In a second aspect, a method for transmitting service traffic is provided, where the method for transmitting service traffic includes:
the virtual load balancer receives a target request message forwarded by the virtual router, and selects a service server for the target request message according to a pre-configured load balancing rule;
and the virtual load balancer sends the target request message to a virtual switch, so that the virtual switch forwards the target request message to the selected service server for service processing.
In this embodiment, the virtual load balancer receives the request packet sent by the virtual router, and compared with the prior art, the request packet is not forwarded by the virtual switch, so that the number of times of forwarding the request packet inside the load balancing node is reduced, on one hand, the load of the virtual switch is reduced, and on the other hand, the transmission efficiency of the request packet is improved. Compared with the prior art, the method and the device can process more request messages and improve the data processing performance of the whole business service system.
Optionally, before the virtual load balancer receives the target request packet forwarded by the virtual router, the service traffic transmission method further includes:
and the virtual load balancer establishes communication connection with the virtual _ user port of the virtual router through the vsost _ user port.
In this embodiment, the virtual _ user port and the virtual _ user port receive and send packets based on the shared memory, so that the data transfer efficiency between the virtual router and the virtual load balancer can be improved.
Optionally, the service traffic transmission method further includes:
and the virtual load balancer receives a target response message forwarded by a virtual switch and sends the target response message to the virtual router, so that the virtual router processes the target response message according to the service quality rule set.
In this embodiment, the virtual load balancer performs relevant processing on the received response packet and then sends the response packet to the virtual router for control management. Compared with the prior art, the invention can process more response messages and accelerate the service response speed under the same hardware configuration. Meanwhile, the virtual load balancer does not have a service quality function, and after the load balancing node deploys the virtual router, the virtual router performs service quality control on the received response message based on the service quality rule set, so that the service quality function of the load balancing node for downlink traffic is improved. Therefore, the data processing performance of the whole business service system can be improved.
In a third aspect, a traffic flow transmission system is provided, which comprises a virtual switch, a virtual router and a virtual load balancer,
the virtual router is used for receiving a target request message forwarded by the virtual switch and matching the target request message with a preset service quality rule set;
the virtual router is also used for sending the target request message to the virtual load balancer according to a matching result;
the virtual load balancer is used for selecting a service server for the target request message according to a pre-configured load balancing rule;
the virtual load balancer is further configured to send the target request packet to the virtual switch, so that the virtual switch forwards the target request packet to the selected service server for service processing.
Optionally, the virtual router is further configured to:
and establishing communication connection with the vhost _ user port of the virtual load balancer through the virtio _ user port.
Further, the virtual router is specifically configured to:
if the service quality rule matched with the target request message does not exist in the preset service quality rule set, the target request message is sent to the virtual load balancer;
otherwise, executing the operation method specified by the matched service quality rule on the target request message, and if necessary, sending the target request message to the virtual load balancer.
Optionally, the virtual load balancer is further configured to:
and receiving a target response message forwarded by the virtual switch, and sending the target response message to the virtual router so that the virtual router processes the target response message according to the service quality rule set.
Optionally, the virtual router is further configured to:
receiving a target response message forwarded by the virtual load balancer, and matching the target response message with the service quality rule set;
and sending the target response message to the virtual switch according to the matching result so that the virtual switch sends the target response message to a client.
In a fourth aspect, there is provided a network device, the network device comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by the processor to implement the processing of the virtual routing device in the method according to the first aspect or to implement the processing of the virtual load balancing device in the method according to the second aspect.
In a fifth aspect, there is provided a computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the processing of the virtual routing device in the method according to the first aspect or to implement the processing of the virtual load balancing device in the method according to the second aspect.
In summary, the technical solutions provided by the embodiments of the present invention have the following beneficial effects:
the service flow between the virtual router and the virtual load balancer does not need to be forwarded by a virtual switch, and the virtual router and the virtual load balancer can directly carry out data interaction. The invention reduces the forwarding times of the service data in the load balancing node, thereby lightening the load of the virtual switch and improving the transmission efficiency of the service data. Meanwhile, the virtual load balancer DPVS does not have a service quality function, and after the virtual router is deployed at the load balancing node, the virtual router performs service quality control on received service data based on the service quality rule set, so that the service quality function of the load balancing node is improved. Therefore, the data processing performance of the whole business service system can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a load balancing node provided in the prior art;
fig. 2 is a timing diagram for processing traffic flow provided by the prior art;
fig. 3 is a schematic structural diagram of a load balancing node according to an embodiment of the present invention;
fig. 4 is a timing diagram for processing service traffic according to an embodiment of the present invention;
fig. 5 is a flowchart of a request packet transmission method according to an embodiment of the present invention;
fig. 6 is a flowchart of a response packet transmission method according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The invention provides a service flow transmission method, wherein the service flow comprises a request message initiated by a Client (Client) and a response message replied by a service server (RS). The client is relative to the service system, and the client may be any network device that initiates the request message, for example, a terminal device of a user or a proxy server. The service traffic transmission method may be applied to a service traffic transmission system, and the service traffic transmission system may specifically be a load balancing node as shown in fig. 3. The load balancing node can be constructed by deploying a virtual switch, a virtual router and a virtual load balancer in a single physical server or a distributed computing environment, so that the request message is distributed and processed, and the load balancing of a plurality of service servers is realized. Because the virtual switch can be connected with the virtual router and the virtual load balancer and can also be connected with a communicable network through the physical network card, the load balancing node can be connected to the internet through the virtual switch, performs data interaction with the client and the service server, and can transmit service traffic between the virtual router and the virtual load balancer on the load balancing node through the virtual switch. The present invention will be described in detail by taking an example in which a Virtual switch is an OVS (Open VSwitch), a Virtual Router is a Vroute (Virtual Router), and a Virtual load balancer is a DPVS. The virtual switch may also be a VMware vSphere virtual switch, etc., which is not limited in this respect.
Referring to fig. 4, traffic between the virtual router and the virtual load balancer provided by the present invention does not have to be forwarded through the virtual switch. Therefore, the service flow passing through the virtual switch can be reduced, and the data processing performance of the system is improved. In implementation, the vrote and the DPVS can be modified, so that the vrote and the DPVS can be directly docked to perform data interaction. For example, the DPVS may establish a communication connection with the OVS by creating a virtual _ user port and a communication connection with vrote by creating a vhost _ user port at startup. Vroute can establish communication connections at startup with the OVS and DPVS, respectively, by creating two virtiousersports. The virtual switch OVS can establish communication connections with the DPVS and vrote, respectively, by creating two vhost _ user ports at startup. The party creating the vhost _ user port may specify an FD (File Descriptor) File for each vhost _ user port created by the party creating the vhost _ user port, and the party creating the virtual _ user port may use the FD File corresponding to the vhost _ user port. Therefore, the corresponding relation between the virtual _ user port and the virtual _ user port can be established according to the FD file, so that data interaction can be carried out between the OVS and the Vrate, between the Vrate and the DPVS, and between the DPVS and the OVS through the virtual _ user port and the virtual _ user port which correspond to each other. In addition, the virtio _ user port and the ghost _ user port perform data interaction based on the shared memory, so that the data transmission efficiency can be improved.
For example, the process of establishing a communication connection between Vroute and DPVS is roughly as follows: the DPVS generates an FD file when creating the port of the vsost _ user, and specifies a port name for the port of the vsost _ user, where the port name of the port of the vsost _ user may be vsost _ user2, and generates an FD file corresponding to the vsost _ user2. When the Vroute initiates a connection to the DPVS, a port name of vhost _ user2 is specified, and an FD file corresponding to the vhost _ user2 is used to create a virtual _ user port, where the port name of the virtual _ user port may be virtual _ user2. Therefore, the virtual _ user2 and the virtual _ user2 can be associated through the FD file, and a communication connection can be established between the Vrate and the DPVS through the virtual _ user2 and the virtual _ user2, so that data interaction is performed. Further, as shown in fig. 3, virtio _ user1 is associated with vhost _ user1, and virtio _ user3 is associated with vhost _ user 3. The process of establishing communication connection between Vroute and OVS and the process of establishing communication connection between DPVS and OVS are similar, and the present invention is not described in detail herein.
The process flow shown in fig. 5 will be described in detail below with reference to the specific embodiments, and the contents may be as follows:
step 501, the virtual router receives a target request message forwarded by the virtual switch, and matches the target request message with a preconfigured service quality rule set.
In implementation, the OVS may connect to the internet through a physical network card, and further receive a request message sent by each client from the internet. For convenience of description, any one request message may be referred to as a target request message. After acquiring the target request message, the OVS may forward the target request message to Vroute according to a preconfigured flow table. A quality of service rule set for controlling and managing the traffic is configured in advance on the Vroute. After receiving the target request message, vroute matches the target request message with each qos rule in the qos rule set, and then performs corresponding processing on the target request message according to a matching result. It can be understood that if the target request message satisfies the message matching condition of a certain service quality rule, the target request message matches with the service quality rule; and if the target request message does not meet the message matching condition of a certain service quality rule, the target request message is not matched with the service quality rule.
Optionally, the set of QoS rules set in vrote may include an ACL (Access Control List), a QoS (Quality of Service) policy, and the like. Generally, the packet matching conditions of the ACL and QoS policies may be set according to one or more information of the five tuple information of the packet. The five-tuple information includes a source IP address, a source port number, a destination IP address, a destination port number, and a transport layer protocol type. Of course, the packet matching condition may include other information besides the five-tuple information, such as a service type, which is not limited in the present invention.
Further, one ACL may include a plurality of ACL rules, and different ACL rules may have different message matching conditions. For example, the packet matching condition of one rule in the ACL may be a combination of a source IP address and a destination port number, and the packet matching condition of another rule may be a combination of a source IP address, a source port number, a destination IP address, and a destination port number. And performing corresponding operation on the target request message by the Vrate based on the matched ACL rule. Similarly, one QoS policy may include multiple QoS rules, and different QoS rules may also have different packet matching conditions. And the Vroute executes corresponding operation on the target request message based on the matched QoS rule. For example, the matched QoS rule may be to add a DSCP (Differentiated Services Code Point) value to the target request packet, so that subsequent processing may determine the priority of the target request packet according to the DSCP value.
Step 502, the virtual router sends the target request message to the virtual load balancer according to the matching result.
In implementation, vroute matches the received target request packet with each qos rule in a set of qos rules configured in advance. The matching result may include that the service quality rule matching the target request message exists in the service quality rule set, and the service quality rule matching the target request message does not exist in the service quality rule set.
It should be noted that, because the packet matching conditions of each qos rule in the qos rule set may be the same or different, there may be duplication or contradiction between these qos rules. Therefore, when the target request packet is matched with each qos rule in the qos rule set, the priority of each qos rule may be determined according to a certain matching sequence, and once a certain qos rule is matched, the matching may not be continued.
Further, the specific processing flow of step 502 may be as follows: if the service quality rule matched with the target request message does not exist in the preset service quality rule set, the virtual router sends the target request message to the virtual load balancer; otherwise, the virtual router executes the operation method specified by the matched service quality rule to the target request message, and if necessary, the target request message is sent to the virtual load balancer.
In implementation, if Vroute is that the target request message is matched with any one or more qos rules, vroute executes an operation method specified by the matched qos rule on the target request message, and if necessary, sends the target request message to the DPVS for subsequent processing. On the contrary, if all the service quality rules in the service quality rule set are not matched with the target request message, the Vroute directly sends the target request message to the DPVS for subsequent processing without controlling and managing the target request message.
It should be noted that the operation method specified by the qos rule may include forwarding, discarding, forwarding after changing the priority of the packet, and so on. If the operation method specified by the matched service quality rule is discarding, it can be considered that Vroute is not needed to send the target request message to the DPVS for subsequent processing, and Vroute will actively discard the target request message.
Step 503, the virtual load balancer selects a service server for the target request message according to the preconfigured load balancing rule.
In implementation, in order to enable the load balancing node to uniformly distribute traffic flow to a plurality of service servers at the back end, thereby providing large-scale service, a load balancing rule needs to be configured on the DPVS. After receiving a target request message sent by Vroute, the DPVS selects one service server (which may be referred to as a target service server) from a plurality of service servers at the back end for the target request message according to a pre-configured load balancing rule, and the target service server can independently respond to the target request message. The load balancing rule may be any one of polling (Round-Robin), weighted polling (Weighted Round-Robin), least Connection (Least-Connection), and the like, which is not limited in the present invention.
Of course, in an embodiment, after receiving the target request packet, the DPVS may further perform control management on the target request packet according to a flow control policy supported by the DPVS itself.
Step 504, the virtual load balancer sends the target request packet to the virtual switch, so that the virtual switch forwards the target request packet to the selected service server for service processing.
In implementation, the load balancing node needs to be connected to the internet through the OVS, and then performs data interaction with the target service server based on the internet. Therefore, after the DPVS selects the target service server for the target request packet, the target request packet may be sent to the OVS. And then, the load balancing node sends the target request message to a target service server for service processing through the OVS.
In one embodiment, after the target service server performs service processing on the target request packet, a response packet (which may be referred to as a target response packet) corresponding to the target request packet may be directly sent to the client. For example, when the DPVS adopts a DR (Direct Routing) mode, after the target request packet is processed by the load balancing node, the source IP address is not changed, and the target service server can obtain the IP address of the client initiating the target request packet. Therefore, the target service server can bypass the load balancing node and directly send the target response message to the client. In this case, the method for processing service traffic provided by the present invention will only be directed to request messages (which may be referred to as upstream traffic).
In another embodiment, after the target service server performs service processing on the target request packet, the target response packet may be sent to the load balancing node, and the load balancing node processes the target response packet and sends the target response packet to the client. For example, when the DPVS adopts an NAT (Network Address Translation) mode, the DPVS performs IP Address Translation on the target request packet, and a source IP Address of the target request packet received by the target service server is not an IP Address of the client initiating the target request packet. Therefore, the target service server needs to send the target response packet to the load balancing node for processing, and the load balancing node forwards the target response packet to the client. Referring to fig. 6, in this case, the method for processing service traffic provided by the present invention may further include a relevant process for the response packet (which may be referred to as downlink traffic).
It should be noted that the DPVS may also use other forwarding modes supported by the DPVS, for example, a TUN (ipttunnelling, IP tunneling) mode, a FULL NAT mode, and the like, which is not limited in this embodiment of the invention.
Step 601, the virtual load balancer receives the target response message forwarded by the virtual switch and sends the target response message to the virtual router.
Before step 601, the load balancing node receives a target response message sent by the service server through the OVS. After receiving the target response message sent by the service server, the OVS forwards the target request message to the DPVS. And then, the DPVS forwards the received target response message to the Vreute.
Step 602, the virtual router matches the received target response message with a preconfigured service quality rule set.
In implementation, after receiving a target response packet forwarded by the DPVS, the Vroute may match the target response packet with each qos rule in the qos rule set, and then perform corresponding processing on the target response packet according to a matching result. The matching process of the target response message is similar to that of the target request message, and the details of the matching process of the target response message and the matching process of the target request message are not repeated herein.
Step 603, the virtual router sends the target response message to the virtual switch according to the matching result, so that the virtual switch sends the target response message to the client.
In implementation, if there is no service quality rule matching with the target response message in the preconfigured service quality rule set, vroute sends the target response message to the OVS; otherwise, vroute executes the operation method specified by the matched service quality rule to the target response message, and if necessary, sends the target response message to the OVS. The OVS may be connected to the internet through a physical network card, so that the Vroute needs to return a target response message to the client through the OVS.
It should be noted that the operation method specified by the qos rule may include forwarding, discarding, forwarding after changing the priority of the packet, and so on. If the operation method specified by the service quality rule matched by the target response message is the discard, the Vroute is considered not to be needed to send the target response message to the OVS for subsequent processing, and the Vroute actively discards the target response message.
By adopting the invention, the service flow between the virtual router and the virtual load balancer does not need to be forwarded by the virtual switch, and the virtual router and the virtual load balancer can directly carry out data interaction, thereby reducing the forwarding times of the service data in the load balancing node, further lightening the load of the virtual switch and improving the transmission efficiency of the service data. Meanwhile, the virtual load balancer DPVS does not have a service quality function, and after the virtual router is deployed at the load balancing node, the virtual router performs service quality control on received service data based on the service quality rule set, so that the service quality function of the load balancing node is improved. Therefore, the data processing performance of the whole business service system can be improved.
Based on the same technical concept, the embodiment of the invention also provides a service flow transmission system, which comprises a virtual switch, a virtual router and a virtual load balancer,
the virtual router is used for receiving a target request message forwarded by the virtual switch and matching the target request message with a preset service quality rule set;
the virtual router is also used for sending the target request message to the virtual load balancer according to a matching result;
the virtual load balancer is used for selecting a service server for the target request message according to a preset load balancing rule;
the virtual load balancer is further configured to send the target request packet to the virtual switch, so that the virtual switch forwards the target request packet to the selected service server for service processing.
Optionally, the virtual router is further configured to:
and establishing communication connection with the vhost _ user port of the virtual load balancer through the virtio _ user port.
Further, the virtual router is specifically configured to:
if the service quality rule matched with the target request message does not exist in the preset service quality rule set, the target request message is sent to the virtual load balancer;
otherwise, executing the operation method specified by the matched service quality rule on the target request message, and if necessary, sending the target request message to the virtual load balancer.
Optionally, the virtual load balancer is further configured to:
and receiving a target response message forwarded by the virtual switch, and sending the target response message to the virtual router so that the virtual router processes the target response message according to the service quality rule set.
Optionally, the virtual router is further configured to:
receiving a target response message forwarded by the virtual load balancer, and matching the target response message with the service quality rule set;
and sending the target response message to the virtual switch according to the matching result so that the virtual switch sends the target response message to a client.
The service traffic transmission system of this embodiment may be used to implement the method of the above method embodiment, and the implementation principle and the technical effect to be achieved are discussed above, and are not described herein again.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and can also be implemented by hardware. Based on such understanding, the above technical solutions may be embodied in the form of software products, and the software products for transmitting traffic may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and include several instructions for causing a computer device to execute the methods described in the embodiments or some parts of the embodiments.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and should not be taken as limiting the scope of the present invention, which is intended to cover any modifications, equivalents, improvements, etc. within the spirit and scope of the present invention.

Claims (14)

1. A service traffic transmission method is characterized in that the service traffic transmission method comprises the following steps:
the virtual router receives a target request message forwarded by the virtual switch, and matches the target request message with a preset service quality rule set;
and the virtual router sends the target request message to a virtual load balancer according to the matching result so that the virtual load balancer performs load balancing processing on the target request message.
2. The traffic flow transmission method according to claim 1, wherein before the virtual router sends the target request packet to the virtual load balancer, the traffic flow transmission method further comprises:
and the virtual router establishes communication connection with the vhost _ user port of the virtual load balancer through the virtio _ user port.
3. The method for transmitting service traffic according to claim 1, wherein the virtual router sends the target request packet to the virtual load balancer according to the matching result, specifically comprising:
if the service quality rule matched with the target request message does not exist in the preset service quality rule set, the virtual router sends the target request message to the virtual load balancer;
otherwise, the virtual router executes the operation method specified by the matched service quality rule to the target request message, and if necessary, the target request message is sent to the virtual load balancer.
4. The method of claim 1, wherein the traffic flow transmission method further comprises:
the virtual router receives a target response message forwarded by the virtual load balancer, and matches the target response message with the service quality rule set;
and the virtual router sends the target response message to the virtual switch according to the matching result so that the virtual switch sends the target response message to a client.
5. A service traffic transmission method is characterized in that the service traffic transmission method comprises the following steps:
the virtual load balancer receives a target request message forwarded by the virtual router, and selects a service server for the target request message according to a pre-configured load balancing rule; after the target request message is matched with a service quality rule set pre-configured by the virtual router through the virtual router, the target request message is sent to the virtual load balancer by the virtual router according to a matching result;
and the virtual load balancer sends the target request message to a virtual switch, so that the virtual switch forwards the target request message to the selected service server for service processing.
6. The traffic flow transmission method according to claim 5, wherein before the virtual load balancer receives the target request packet forwarded by the virtual router, the traffic flow transmission method further comprises:
and the virtual load balancer establishes communication connection with the virtual _ user port of the virtual router through the vhost _ user port.
7. The method of claim 5, wherein the traffic flow transmission method further comprises:
and the virtual load balancer receives a target response message forwarded by a virtual switch and sends the target response message to the virtual router, so that the virtual router processes the target response message according to the service quality rule set.
8. A service traffic transmission system comprising a virtual switch, a virtual router and a virtual load balancer, wherein,
the virtual router is used for receiving a target request message forwarded by the virtual switch and matching the target request message with a preset service quality rule set;
the virtual router is further used for sending the target request message to the virtual load balancer according to a matching result;
the virtual load balancer is used for selecting a service server for the target request message according to a preset load balancing rule;
the virtual load balancer is further configured to send the target request packet to the virtual switch, so that the virtual switch forwards the target request packet to the selected service server for service processing.
9. The traffic flow delivery system of claim 8, wherein the virtual router is further configured to:
and establishing communication connection with the vhost _ user port of the virtual load balancer through the virtio _ user port.
10. The traffic flow transmission system according to claim 8, wherein the virtual router is specifically configured to:
if the service quality rule matched with the target request message does not exist in the preset service quality rule set, the target request message is sent to the virtual load balancer;
otherwise, executing the operation method specified by the matched service quality rule on the target request message, and if necessary, sending the target request message to the virtual load balancer.
11. The traffic flow delivery system of claim 8, wherein the virtual load balancer is further configured to:
and receiving a target response message forwarded by the virtual switch, and sending the target response message to the virtual router so that the virtual router processes the target response message according to the service quality rule set.
12. The traffic flow delivery system of claim 8, wherein the virtual router is further configured to:
receiving a target response message forwarded by the virtual load balancer, and matching the target response message with the service quality rule set;
and sending the target response message to the virtual switch according to the matching result so that the virtual switch sends the target response message to a client.
13. A network device comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions, the at least one instruction, the at least one program, set of codes, or set of instructions being loaded and executed by the processor to implement processing by a virtual router in a method according to any of claims 1 to 4, or to implement processing by a virtual load balancer in a method according to any of claims 5 to 7.
14. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement a process of a virtual router in a method according to any one of claims 1 to 4, or to implement a process of a virtual load balancer in a method according to any one of claims 5 to 7.
CN201911239905.3A 2019-12-06 2019-12-06 Service flow transmission method, system and network equipment Active CN112929264B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911239905.3A CN112929264B (en) 2019-12-06 2019-12-06 Service flow transmission method, system and network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911239905.3A CN112929264B (en) 2019-12-06 2019-12-06 Service flow transmission method, system and network equipment

Publications (2)

Publication Number Publication Date
CN112929264A CN112929264A (en) 2021-06-08
CN112929264B true CN112929264B (en) 2022-10-28

Family

ID=76161464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911239905.3A Active CN112929264B (en) 2019-12-06 2019-12-06 Service flow transmission method, system and network equipment

Country Status (1)

Country Link
CN (1) CN112929264B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114285802A (en) * 2021-12-21 2022-04-05 北京字节跳动网络技术有限公司 Network load balancing method, device, electronic equipment, medium and program product
CN114553881B (en) * 2022-01-07 2024-04-02 优刻得科技股份有限公司 Multi-data center flow scheduling method and system
CN115225708B (en) * 2022-07-28 2023-08-08 天翼云科技有限公司 Message forwarding method computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447624A (en) * 2011-11-23 2012-05-09 成都市华为赛门铁克科技有限公司 Load balancing method in server cluster, as well as node server and cluster
CN205566376U (en) * 2016-04-25 2016-09-07 云南电网有限责任公司昆明供电局 Other distributed data center controlling means who hangs load equalizer
CN106506700A (en) * 2016-12-28 2017-03-15 北京优帆科技有限公司 A kind of transparent proxy method of load equalizer and SiteServer LBS
CN106686085A (en) * 2016-12-29 2017-05-17 华为技术有限公司 Load balancing method, apparatus and system
CN107733991A (en) * 2017-09-19 2018-02-23 大唐网络有限公司 One kind provides load balancing service implementation method based on OpenStack frameworks
CN109561027A (en) * 2017-09-26 2019-04-02 中兴通讯股份有限公司 Flow optimization method, load balancer and the storage medium of transparent caching

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040210663A1 (en) * 2003-04-15 2004-10-21 Paul Phillips Object-aware transport-layer network processing engine
US8291108B2 (en) * 2007-03-12 2012-10-16 Citrix Systems, Inc. Systems and methods for load balancing based on user selected metrics
CN101827039B (en) * 2010-06-04 2013-03-20 杭州华三通信技术有限公司 Method and equipment for load sharing
CN107026890B (en) * 2016-02-02 2020-10-09 华为技术有限公司 Message generation method based on server cluster and load balancer
CN107196870B (en) * 2017-07-20 2021-07-20 哈尔滨工业大学 DPDK-based traffic dynamic load balancing method
CN110198226A (en) * 2018-03-28 2019-09-03 腾讯科技(深圳)有限公司 Access request processing method, system and readable medium in a kind of load balancing cluster
CN109547580B (en) * 2019-01-22 2021-05-25 网宿科技股份有限公司 Method and device for processing data message

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447624A (en) * 2011-11-23 2012-05-09 成都市华为赛门铁克科技有限公司 Load balancing method in server cluster, as well as node server and cluster
CN205566376U (en) * 2016-04-25 2016-09-07 云南电网有限责任公司昆明供电局 Other distributed data center controlling means who hangs load equalizer
CN106506700A (en) * 2016-12-28 2017-03-15 北京优帆科技有限公司 A kind of transparent proxy method of load equalizer and SiteServer LBS
CN106686085A (en) * 2016-12-29 2017-05-17 华为技术有限公司 Load balancing method, apparatus and system
CN107733991A (en) * 2017-09-19 2018-02-23 大唐网络有限公司 One kind provides load balancing service implementation method based on OpenStack frameworks
CN109561027A (en) * 2017-09-26 2019-04-02 中兴通讯股份有限公司 Flow optimization method, load balancer and the storage medium of transparent caching

Also Published As

Publication number Publication date
CN112929264A (en) 2021-06-08

Similar Documents

Publication Publication Date Title
US11895154B2 (en) Method and system for virtual machine aware policy management
US10917351B2 (en) Reliable load-balancer using segment routing and real-time application monitoring
CA3106407C (en) Multi-cloud connectivity using srv6 and bgp
EP3225014B1 (en) Source ip address transparency systems and methods
EP3125505B1 (en) Method, apparatus and system for load balancing of service chain
EP3404878B1 (en) Virtual network apparatus, and related method
US8676980B2 (en) Distributed load balancer in a virtual machine environment
US8059562B2 (en) Listener mechanism in a distributed network system
US9032095B1 (en) Routing device having multiple logical routers
US20190121655A1 (en) Network policy implementation with multiple interfaces
EP4024787A1 (en) Sharing routes using an in-memory data store in a distributed network system
CN112929264B (en) Service flow transmission method, system and network equipment
WO2020151030A1 (en) Method and apparatus for processing data message
US10505846B2 (en) Resilient segment routing service hunting with TCP session stickiness
US10693785B2 (en) Method and system for forwarding data, virtual load balancer, and readable storage medium
US11419171B2 (en) Method for establishing subflow of multipath connection, apparatus, and system
WO2014023003A1 (en) Method, apparatus, and system for controlling data transmission
JP2008537421A (en) Method for establishing a connection in a communication system
CN113965521A (en) Data packet transmission method, server and storage medium
CN107483628A (en) Unidirectional proxy method and system based on DPDK
CN112968965A (en) Metadata service method, server and storage medium for NFV network node
CN112217735A (en) Information synchronization method and load balancing system
WO2015074258A1 (en) Method, apparatus and system for controlling forwarding of service data in virtual network
KR101538667B1 (en) Network system and method for controlling network
US20180302373A1 (en) Quarantined communications processing at a network edge

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant