Nothing Special   »   [go: up one dir, main page]

CN114079636B - Flow processing method, switch, soft load device and storage medium - Google Patents

Flow processing method, switch, soft load device and storage medium Download PDF

Info

Publication number
CN114079636B
CN114079636B CN202111242995.9A CN202111242995A CN114079636B CN 114079636 B CN114079636 B CN 114079636B CN 202111242995 A CN202111242995 A CN 202111242995A CN 114079636 B CN114079636 B CN 114079636B
Authority
CN
China
Prior art keywords
soft load
soft
address information
traffic
load balancer
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
CN202111242995.9A
Other languages
Chinese (zh)
Other versions
CN114079636A (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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN202111242995.9A priority Critical patent/CN114079636B/en
Publication of CN114079636A publication Critical patent/CN114079636A/en
Application granted granted Critical
Publication of CN114079636B publication Critical patent/CN114079636B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application discloses a flow processing method, a switch, soft load equipment and a storage medium, wherein the flow processing method is applied to the soft load equipment and comprises the steps of determining a second soft load equalizer with backup address information corresponding to address information in a first soft load equalizer under the condition that the first soft load equalizer in a plurality of soft load equalizers fails; and receiving the traffic by using the second soft load equalizer to replace the first soft load equalizer, and forwarding the traffic to the corresponding service server. The application can improve the speed of carrying out load balancing on the flow and ensure that the service is continuous and uninterrupted.

Description

Flow processing method, switch, soft load device and storage medium
Technical Field
The present application relates to the field of load balancing technologies, and in particular, to a traffic processing method, a switch, a soft load device, and a storage medium.
Background
With the development of internet technology, many service information is distributed through the internet, and in the case of a large amount of service information, the number of servers is generally increased, and the problems of slow service information access and congestion in access are solved by using multiple servers, where a tool capable of distributing service information, i.e., load balancing, is required when multiple servers work simultaneously. The load balancing comprises soft load and hard load, and compared with the hard load, the soft load is deployed in a software mode and can be embedded into a cloud environment, so that the application of the soft load is wider.
In the prior art, when a soft load receives a service flow, the soft load sends the service flow to a server corresponding to the soft load so as to balance the service flow by using the server, and when the soft load fails, other soft loads need to be started first, and after the other soft loads are started, the service flow is forwarded to the server by using the other soft loads, so that the speed of balancing the service flow is reduced, and the service persistence is affected.
Disclosure of Invention
In order to solve the technical problems, the embodiment of the application is expected to provide a flow processing method, a switch, soft load equipment and a storage medium, which can improve the speed of carrying out load balancing on flows and ensure continuous and uninterrupted service.
The soft-load device described in the present application refers to a device for carrying and running a soft-load cluster, which may be a server or a network device, for example. The soft load cluster refers to a collective concept including a plurality of soft load balancers, and the soft load cluster can be used to jointly implement the load bearing of the user traffic service. The soft load balancer refers to a software load balancer for implementing load balancing of traffic to a traffic server.
The technical scheme of the application is realized as follows:
the embodiment of the application provides a flow processing method, which is applied to soft load equipment, wherein the soft load equipment comprises a plurality of soft load balancers, each soft load balancers is provided with corresponding address information, the address information in any soft load balancer has backup address information in at least one other soft load balancers of the plurality of soft load balancers, and the method comprises the following steps:
Determining that a second soft load balancer corresponding to the address information in the first soft load balancer exists under the condition that a first soft load balancer in the plurality of soft load balancers fails;
And receiving the traffic by using the second soft load equalizer to take over the first soft load equalizer, and forwarding the traffic to a corresponding service server.
The second soft load balancer is used to take over the traffic received by the first soft load balancer, which means that if the first soft load balancer fails, the first soft load balancer receives traffic of address information sent by the switch to the first soft load balancer, and at this time, the backup address information in the second soft load balancer is not enabled. When the first soft load balancer fails, the backup address information in the second soft load balancer is started, and because the address information and the backup address information have the same content, the flow sent by the switch to the address information is actually received by the second soft load balancer, which is equivalent to the second soft load balancer bearing the original flow receiving function of the first soft load balancer.
In the scheme, the address information comprises a floating IP address, or the address information comprises a floating IP address and a virtual MAC address, or the address information comprises a MAC address. It can be seen that the embodiment of the application realizes sharing and backup of address information by configuring the floating IP address and the virtual MAC address of a certain soft load balancer in another soft load balancer. When the first soft load equalizer fails, the address information serving as backup in the second soft load equalizer is immediately started, and at the moment, the traffic can be seamlessly switched to the second soft load equalizer, so that the rapid switching of the traffic is realized, and the continuous and uninterrupted service can be ensured.
In the above solution, before determining that there is the second soft load balancer of the backup address information corresponding to the address information in the first soft load balancer in the case of the failure of the first soft load balancer, the method further includes:
And sending route notification information corresponding to each soft load equalizer to the switch, wherein the route notification information comprises a floating IP address and a virtual service IP address corresponding to each soft load equalizer.
Therefore, the subsequent flow issuing of the soft load cluster based on the route notification information can be conveniently realized by the switch, and the soft load equalizer with the backup address information corresponding to the address information in the soft load equalizer does not need to additionally upload the route notification information even if the switch does not sense the switching of the soft load equalizer when a certain soft load equalizer in the soft load cluster fails.
In the above solution, the receiving, by the second soft load balancer, the traffic received by the first soft load balancer includes:
And receiving the traffic issued by the switch based on the equal cost multi-path routing strategy and the route announcement information by using the second soft load equalizer.
In the above scheme, the method further comprises:
and receiving a plurality of groups of traffic which is issued by the switch based on the equal cost multi-path routing strategy and the routing notification information by utilizing the plurality of soft load balancers.
In the above scheme, the traffic is at least one set of traffic in a plurality of sets of traffic transmitted by the switch to the plurality of soft load balancers, the number of the plurality of soft load balancers is determined according to the total traffic received by the switch and/or the memory occupied by the soft load cluster, and the total traffic is the sum of the plurality of sets of traffic.
The embodiment of the application provides a flow processing method which is applied to a switch, wherein the switch comprises address information of each soft load equalizer in soft load equipment, the address information in any soft load equalizer in the soft load equipment has backup address information in at least one other soft load equalizer of a soft load cluster, and the method comprises the following steps:
under the condition that a first soft load equalizer in the soft load cluster fails, determining that a second soft load equalizer corresponding to backup address information of address information in the first soft load equalizer exists;
And sending the traffic originally belonging to the first soft load balancer to the second soft load balancer so as to forward the traffic to a corresponding service server by using the second soft load balancer.
The means that the first soft load balancer receives the traffic of the address information configured in the first soft load balancer sent by the switch if the first soft load balancer fails, and the backup address information in the second soft load balancer is not enabled. When the first soft load balancer fails, the backup address information in the second soft load balancer is started, and because the address information and the backup address information have the same content, the traffic sent by the switch to the address information is actually received by the second soft load balancer, which is equivalent to the second soft load balancer bearing the original traffic receiving function of the first soft load balancer, and the switch sends the traffic to the second soft load balancer.
In the above scheme, the address information as a backup includes a floating IP address and a virtual MAC address, or the address information as a backup includes a floating IP address, or the address information as a backup includes a MAC address.
In the above solution, before determining that there is the second soft load balancer corresponding to the backup address information of the address information in the first soft load balancer when the first soft load balancer of the plurality of soft load balancers fails, the method further includes:
And receiving route notification information corresponding to each soft load equalizer sent by the soft load equipment, wherein the route notification information comprises a floating IP address and a virtual service IP address corresponding to each soft load equalizer.
In the above solution, the sending, to the second soft load balancer, the traffic originally belonging to the first soft load balancer includes:
And issuing the traffic to the second soft load equalizer based on the equal cost multi-path routing strategy and the route announcement information.
In the above scheme, the method further comprises:
and issuing the multiple groups of traffic to the plurality of soft load balancers based on the equal cost multi-path routing strategy and the routing announcement information.
Based on the same inventive concept, the embodiment of the application provides a method for configuring soft load equipment, which comprises the following steps:
Acquiring a plurality of groups of address information to be configured, wherein each group of address information comprises a floating IP address and/or a virtual MAC address;
And configuring a plurality of soft load balancers deployed in the soft load equipment based on the plurality of sets of address information, so that the address information owned by any soft load balancer has backup address information in at least one other soft load balancer of the plurality of soft load balancers.
In the above scheme, the backup address information indicates that the soft load balancer where the backup address information is located takes over the soft load balancer to receive traffic when the soft load balancer with the corresponding address information fails.
In the above scheme, the plurality of soft load balancers include a first soft load balancer and a second soft load balancer having backup address information corresponding to address information in the first soft load balancer, where the second soft load balancer is configured to take over the first soft load balancer to receive traffic in case of failure of the first soft load balancer.
In the above solution, the configuring the plurality of soft load balancers deployed in the soft load device based on the plurality of sets of address information, so that address information owned by any one soft load balancer has backup address information in at least one other soft load balancer of the plurality of soft load balancers, includes:
distributing the multiple groups of address information to each soft load equalizer, wherein each group of address information is distributed to at least two soft load equalizers;
Performing main and standby elections on soft load balancers with the same address information to obtain a main and standby state result;
And updating the main and standby state results to the soft load balancers with the same address information, so that the address information owned by any soft load balancer has backup address information in at least one other soft load balancers of the plurality of soft load balancers.
The embodiment of the application provides soft load equipment, which is arranged to comprise a plurality of soft load balancers, wherein each soft load balancer is provided with corresponding address information, and the address information in any soft load balancer has backup address information in at least one other soft load balancer of the plurality of soft load balancers, and comprises the following steps:
A first determining unit, configured to determine, in a case where a first soft load balancer of the plurality of soft load balancers fails, that a second soft load balancer that has backup address information corresponding to address information in the first soft load balancer exists;
a first receiving unit, configured to take over the first soft load balancer for receiving traffic by using the second soft load balancer;
And the forwarding unit is used for forwarding the traffic to the corresponding service server.
The embodiment of the application provides a switch, which comprises address information of each soft load balancer in soft load equipment, wherein the address information in any soft load balancer in a plurality of soft load balancers in the soft load equipment has backup address information in at least one other soft load balancer in the plurality of soft load balancers, and the switch comprises:
A second determining unit, configured to determine, when a first soft load balancer in the plurality of soft load balancers fails, that a second soft load balancer corresponding to backup address information of address information in the first soft load balancer exists;
and the first sending unit is used for sending the traffic originally belonging to the first soft load balancer to the second soft load balancer so as to forward the traffic to a corresponding service server by using the second soft load balancer.
The embodiment of the application provides soft load equipment, which comprises:
The system comprises a first memory, a first processor and a first communication bus, wherein the first memory is communicated with the first processor through the first communication bus, the first memory stores a flow processing program executable by the first processor, and when the flow processing program is executed by a soft load device, the method applied to the soft load device is executed by the first processor.
An embodiment of the present application provides a switch, including:
The second memory is in communication with the second processor through the second communication bus, the second memory stores a program of flow processing executable by the second processor, and when the program of flow processing is executed by the switch, the method applied to the switch is executed by the second processor.
An embodiment of the application provides a storage medium on which a computer program is stored for application in a soft-load device, characterized in that the computer program, when executed by a first processor, implements a method as described above for application in a soft-load device, or for application in a switch, characterized in that the computer program, when executed by a second processor, implements a method as described above for application in a switch.
The embodiment of the application provides a flow processing method, a switch, soft load equipment and a storage medium, wherein the flow processing method is applied to the soft load equipment, the soft load equipment is provided with a plurality of soft load balancers, corresponding address information is arranged in each soft load balancer, the address information in any soft load balancer is provided with backup address information in at least one other soft load balancer of the plurality of soft load balancers, the flow processing method comprises the steps of determining a second soft load balancer with the backup address information corresponding to the address information in the first soft load balancers under the condition that the first soft load balancers in the plurality of soft load balancers fail, taking over the first soft load balancers to receive flow by utilizing the second soft load balancers, and forwarding the flow to a corresponding service server. By adopting the implementation scheme of the method, under the condition that a first soft load equalizer in soft load equipment fails, the second soft load equalizer with the backup address information corresponding to the address information in the first soft load equalizer is determined, so that the second soft load equalizer is utilized to receive the traffic belonging to the first soft load equalizer, the second soft load equalizer is utilized to forward the traffic to a corresponding service server, so that the process of balancing the traffic load is realized, thus realizing seamless switching of a traffic load main body (from one soft load to another soft load) during failure, improving the speed of balancing the traffic load, ensuring that a switch does not sense the switching process, and ensuring continuous uninterrupted service.
Drawings
FIG. 1 is a block diagram of an exemplary flow process provided by an embodiment of the present application;
FIG. 2 is a flowchart of a flow processing method according to an embodiment of the present application;
FIGS. 3 (a) -3 (i) are exemplary diagrams of various specific application scenarios provided in embodiments of the present application;
FIG. 4 is a flow chart II of a flow processing method according to an embodiment of the present application;
FIG. 5 is a flow chart of an exemplary flow process provided by an embodiment of the present application;
FIG. 6 is a flowchart of a configuration method according to an embodiment of the present application;
FIG. 7 is a flowchart of an exemplary configuration method provided by an embodiment of the present application;
fig. 8 is a schematic diagram of a composition structure of a soft load device according to an embodiment of the present application;
Fig. 9 is a schematic diagram of a composition structure of a soft load device according to an embodiment of the present application;
fig. 10 is a schematic diagram of a composition structure of a switch according to an embodiment of the present application;
Fig. 11 is a schematic diagram of a composition structure of a switch according to an embodiment of the present application;
Fig. 12 is an exemplary diagram of one possible implementation of address information provided by an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
Illustratively, as shown in FIG. 1, the traffic handling method may be performed cooperatively by a switch, a plurality of soft-load devices, and a traffic server. The soft load device includes a traffic Group (Flow Group) consisting of a virtual MAC address and a float IP (Floating IP), and the traffic Group is used for traffic division and traffic migration between soft load clusters. Any one of the plurality of soft load devices is used to load balance traffic in any one of the soft load devices into the traffic server.
Example 1
The embodiment of the application provides a flow processing method, which is applied to soft load equipment, the soft load equipment is configured to include a plurality of soft load balancers, each soft load balancers is provided with corresponding address information, wherein the address information in any soft load balancer has backup address information in at least one other soft load balancer of the plurality of soft load balancers, and fig. 2 is a flow chart of the flow processing method provided by the embodiment of the application, and as shown in fig. 2, the flow processing method can comprise:
s101, determining a second soft load balancer with backup address information corresponding to address information in a first soft load balancer when the first soft load balancer fails.
The flow processing method provided by the embodiment of the application is suitable for the scene that the soft load equipment carries out load balancing on the server.
In embodiments of the application, the soft-load device may be implemented in various forms. For example, the soft-load device described in the present application may include a server running a soft load, and the soft-load device may also be one server in a server cluster, where each server in the server cluster is provided with a soft load.
In the embodiment of the application, the soft load equipment is provided with a soft load cluster, the soft load cluster comprises a plurality of soft load balancers, and any soft load balancer is any soft load balancer in the plurality of soft load balancers.
In the embodiment of the application, each of the plurality of soft load balancers is provided with corresponding address information, namely the plurality of soft load balancers are in one-to-one correspondence with the plurality of address information, and in particular, one soft load balancer corresponds to one address information.
In the embodiment of the application, the plurality of address information corresponds to a plurality of backup address information, and specifically, one address information corresponds to one backup address information.
It should be noted that, the address information in any one of the soft load balancers has backup address information in at least one other soft load balancers in the soft load cluster. That is, the backup address information is set in at least one of the plurality of soft load balancers except any one of the soft load balancers.
It should be noted that the number of backup address information is the same as the number of at least one soft load balancer. The number of the backup soft load may be one, the number of the corresponding at least one soft load equalizer may be two, the number of the backup soft load may be a plurality of, the number of the corresponding at least one soft load equalizer may be a plurality of, the specific number of the backup soft load or the number of the at least one soft load equalizer may be determined according to the actual situation, which is not limited by the embodiment of the present application.
In the embodiment of the present application, the first soft load balancer may be any one of a plurality of soft load balancers. Specifically, the first soft load balancer may fail when the first soft load balancer does not work, the first soft load balancer may fail when the first soft load balancer is slow in load balancing speed, the first soft load balancer may fail when the first soft load balancer fails to balance traffic, and the specific first soft load balancer may fail according to an actual situation.
In the embodiment of the application, the first soft load balancer is provided with the backup address information corresponding to the first soft load balancer, and the soft load equipment can determine the second soft load balancer for processing the traffic of the first soft load balancer according to the backup address so as to load balance the traffic to the corresponding service server by using the second soft load balancer.
In an embodiment of the application, the address information includes a floating IP address and/or a virtual MAC address. The plurality of address information includes a plurality of floating IP addresses and/or a plurality of virtual MAC addresses.
It should be noted that the plurality of floating IP addresses may be floating internet protocol addresses (floating IP). The plurality of Virtual MAC addresses may be Virtual address medium access control addresses (Virtual MAC).
It can be understood that the plurality of floating IP addresses can be transferred between different network ports, and the plurality of virtual MAC addresses are not bound with a specific network port, so that traffic can be not limited by physical devices, and can be migrated along with migration of a traffic group, so that a soft load device can transmit traffic belonging to a first soft load equalizer to a second soft load equalizer according to the plurality of floating IP addresses and the plurality of virtual MAC addresses, so that the second soft load equalizer is utilized to forward the traffic to a corresponding service server, and speed when traffic load balancing is rapidly realized.
In the embodiment of the application, before determining that the second soft load balancer corresponding to the address information in the first soft load balancer exists in the first soft load balancer under the condition that the first soft load balancer fails, the soft load equipment also sends route notification information corresponding to each soft load balancer to the switch.
It should be noted that, the route advertisement information includes a floating IP address and a virtual service IP address corresponding to each soft load balancer, that is, the plurality of route advertisement information includes a plurality of floating IP addresses and a plurality of virtual service IP addresses corresponding to the plurality of soft load balancers.
It should be further noted that the plurality of Virtual service IP addresses may be a plurality of Virtual service internet protocol addresses (Virtual SERIVCE IP, VIP) corresponding to the plurality of soft load balancers.
In the embodiment of the application, a plurality of soft load balancers are in one-to-one correspondence with a plurality of route notification information, and in particular, one soft load balancer is corresponding to one route notification information.
It can be understood that the soft load device sends route notification information including a floating IP address and a virtual service IP address corresponding to each soft load balancer to the switch, and the switch can obtain a traffic next-hop address and a traffic destination address corresponding to the soft load balancer through the route notification information, so as to implement a load balancing process using the soft load balancer and multiple groups of service servers according to the traffic next-hop address and the traffic destination address, thereby improving availability of the soft load device and performance of the soft load device.
In the embodiment of the application, the mode of the soft load device sending the route notification information corresponding to the soft load equalizer to the switch can be that the soft load device sends the route notification information corresponding to the soft load equalizer to the switch in a wireless communication mode, or the soft load device sends the route notification information corresponding to the soft load equalizer to the switch in a wired communication mode, and the specific mode of the soft load device sending the route notification information to the switch can be determined according to practical conditions.
In the embodiment of the present application, if the soft load device sends the plurality of route notification information corresponding to the plurality of soft load balancers to the switch in a wireless communication manner, the wireless communication manner includes a wireless local area network (Wireless Local Area Network, WLAN), ultra Wide Band (UWB), or radio frequency identification (Radio Frequency Identification, RFID), etc., and the specific wireless communication manner may be determined according to the actual situation, which is not limited in the embodiment of the present application.
In the embodiment of the present application, if the soft load device sends the route notification information corresponding to the soft load balancers to the switch in a wired communication manner, the wired communication manner includes an optical fiber, a coaxial cable, etc., and the specific wired communication manner may be determined according to the actual situation, which is not limited in the embodiment of the present application.
In the embodiment of the application, the number of the plurality of soft load balancers is determined according to the total flow received by the switch and/or the memory occupied by the soft load cluster.
In the embodiment of the application, the soft load equipment acquires a plurality of pieces of route notification information corresponding to a plurality of soft load equalizers and notifies the switch of the plurality of pieces of route notification information.
It should be noted that, the memory occupied by the soft load cluster is specifically a plurality of remaining memories corresponding to a plurality of soft load balancers.
In the embodiment of the application, the soft load device also determines a plurality of residual memories corresponding to the soft load clusters, and then adjusts the number of the soft load clusters according to the plurality of residual memories, the total flow and a preset memory threshold value, so as to realize load balancing by utilizing the adjusted soft load clusters.
It should be noted that, the soft load device may adjust the number of soft load clusters before sending the plurality of route notification information corresponding to the plurality of soft load balancers to the switch, the soft load device may adjust the number of soft load clusters after sending the plurality of route notification information corresponding to the plurality of soft load balancers to the switch, and the soft load device may also adjust the number of soft load clusters once at intervals of a preset time period, which may be specifically determined according to the actual situation.
In the embodiment of the present application, the manner in which the soft load device adjusts the number of multiple soft loads includes reducing the number of soft loads in the soft load cluster or increasing the number of soft loads in the soft load cluster, which may be specifically determined according to the actual situation, and the embodiment of the present application is not limited to this.
The method includes the steps that when a soft load device determines that a plurality of residual memories corresponding to the soft load cluster are smaller than a preset memory threshold, the soft load device adjusts to increase the number of soft loads in the soft load cluster, and when the soft load device determines that the plurality of residual memories corresponding to the soft load cluster are larger than or equal to the preset memory threshold, the soft load device adjusts to decrease the number of soft loads in the soft load cluster.
In the embodiment of the present application, the soft load device may further determine operation information of a plurality of central processing units (Central Processing Unit, CPUs) of a plurality of soft loads, and adjust the number of the plurality of soft loads according to the operation information of the plurality of CPUs, and specifically may be determined according to actual situations, which is not limited by the embodiment of the present application.
In the embodiment of the application, the preset memory threshold value comprises a preset memory lower limit threshold value and a preset memory upper limit threshold value; the process of the soft load device for adjusting the number of soft load clusters according to the total memory and the preset memory threshold comprises the steps that the soft load device deletes part of soft loads from the soft load clusters to obtain a plurality of soft loads when the total memory is larger than or equal to the preset memory upper limit threshold, and increases the number of the plurality of soft loads when the total memory is smaller than or equal to the preset memory lower limit threshold.
It should be noted that, the partial soft load is a soft load with the largest residual memory selected from the plurality of residual memory information, or the partial soft load is a soft load determined randomly.
It can be understood that when the total memory is smaller than or equal to the preset memory lower limit threshold, the number of the plurality of soft loads is increased, so that when the soft loads encounter the bottleneck, the performance of the plurality of soft loads can be improved by increasing the number of the soft loads, the performance of the soft load cluster can be expanded, meanwhile, the network is not changed, or the network is not deployed again, and the operation and maintenance difficulty is reduced. And under the condition that the total memory is greater than or equal to a preset memory upper limit threshold value, the switch deletes part of soft load from the soft load cluster, so that when redundancy occurs to the soft load, the redundant soft load can be released by deleting part of soft load, and the occupation of resources in the switch is reduced.
It can be understood that the soft load device determines the number of the plurality of soft load balancers in the soft load cluster by using the total traffic received by the switch and/or the memory occupied by the soft load cluster, so that the number of the plurality of soft load balancers in the soft load cluster can be increased under the condition that the performance of the soft load cluster is bottleneck, and the number of the plurality of soft load balancers in the soft load cluster can be reduced under the condition that the performance of the soft load cluster is redundant, thereby realizing the elastic expansion of the performance of the soft load cluster and further improving the performance of the soft load device during the load balancing.
S102, the second soft load equalizer is utilized to take over the first soft load equalizer to receive the traffic, and the traffic is forwarded to the corresponding service server.
In the embodiment of the application, after the soft load device determines that the second soft load equalizer corresponding to the address information in the first soft load equalizer exists under the condition that the first soft load equalizer in the plurality of soft load equalizers fails, the soft load device uses the second soft load equalizer to replace the first soft load equalizer to receive the traffic, and forwards the traffic to the corresponding service server.
The traffic is at least one of the plurality of sets of traffic transmitted by the switch to the plurality of soft load balancers.
In the embodiment of the application, a plurality of backup address information is also introduced on the basis of a plurality of address information. I.e. a plurality of address information and a plurality of backup address information are present in pairs.
It should be noted that, a synchronous connection is established between the plurality of address information corresponding to the plurality of backup address information.
In the embodiment of the application, the process that the soft load equipment receives the traffic by using the second soft load equalizer to replace the first soft load equalizer comprises the step that the soft load equipment receives the traffic issued by a switch based on the equal cost multi-path routing strategy and the route notification information by using the second soft load equalizer. Specifically, the soft load device receives the traffic issued by the switch based on the equal cost multipath routing strategy and the route notification information corresponding to the second soft load equalizer by using the second soft load equalizer.
It should be noted that, the plurality of route advertisement information includes route advertisement information corresponding to the second soft load balancer.
In the embodiment of the application, the number of the plurality of soft load balancers is determined according to the total flow received by the switch and/or the memory occupied by the soft load cluster.
The total flow is the sum of the multiple groups of flows.
In the embodiment of the application, the soft load equipment receives a plurality of groups of traffic which are issued by the switch based on the equal cost multi-path routing strategy and the route notification information by utilizing a plurality of soft load balancers.
It can be understood that by setting up a plurality of backup address information and establishing synchronous connection between the plurality of backup address information corresponding to the plurality of address information, the traffic belonging to the first soft load balancer can be received by using the second soft load balancer under the condition that the first soft load balancer in the soft load cluster fails, and the traffic is forwarded to the corresponding service server by using the second soft load balancer, namely, the traffic is balanced by using the second soft load balancer, and the traffic carried by the fine granularity to one backup address information is highly available, so that the high availability of the soft load cluster is considered.
In the embodiment of the application, the soft load equipment receives a plurality of groups of traffic sent by the switch based on the equivalent multipath routing strategy and the routing notification information by utilizing a plurality of soft load balancers, and distributes the plurality of groups of traffic to a plurality of groups of service servers by utilizing the plurality of soft load balancers respectively.
It should be noted that, the multiple sets of traffic and the multiple sets of service servers are in one-to-one correspondence, and specifically, one set of traffic corresponds to one set of service server.
It should be noted that, the plurality of service servers includes a service server corresponding to the first soft load balancer.
It can be understood that the second soft load balancer receives the traffic sent by the switch through the equal-cost multipath routing policy and the route notification information corresponding to the second soft load balancer, so that the second soft load balancer is the same as the traffic values corresponding to the traffic received by other soft load balancers except the second soft load balancer in the soft load cluster, and the balance during traffic distribution is improved.
The soft load cluster comprises a soft load balancer A, a soft load balancer B and a soft load balancer C, wherein the soft load balancer A comprises address information 1 and address information 2, the address information 1 comprises connection channels 1 and vmac1 (Virtual Mac 1), vmac2 (Virtual Mac 2), float IP1 (float IP 1), float 1 (float IP 2) and backup address information (backup IP 1), the address information 2 comprises connection channels 2 and vmac3 (Virtual Mac 3), vmac (Virtual Mac 4), float IP3 (float IP 3) and float IP 4) and address information (backup IP 2), the soft load balancer B is provided with backup address information corresponding to the soft load balancer A and comprises connection channels 1 and backup addresses, the soft load balancer C is provided with the backup address information corresponding to the soft load balancer A, the soft load balancer C comprises connection channels 2 and backup channels 2, and the soft load information corresponding to the service equipment can be received by the soft load balancer C, and the load equipment can be determined by the aid of the soft load balancer B, and the flow equipment can be received by the aid of the soft load balancer B, and the service equipment corresponding to the address information corresponding to the service equipment corresponding to the address information of the soft load balancer A receives the soft load information corresponding to the service address information from the service equipment.
As shown in fig. 3 (B), the backup address information 1 corresponding to the address information 1 in the soft load balancer a is backup address information 1 in the soft load balancer B, the backup address information 1 (backup ip-B) is set in the address information 1, the address points to the position of the backup address information 1 in the soft load balancer B, the backup address information 2 corresponding to the address information 2 in the soft load balancer B is backup address information 2 in the soft load balancer C, and the backup address information 2 (backup ip-C) is set in the address information 2, the address points to the position of the backup address information 2 in the soft load balancer C. Under the condition that the soft load balancer A does not have faults (namely normal operation), the address information 1 in the soft load balancer A is effective, the backup address information 1 in the soft load balancer B is not effective, and the soft load balancer A can be utilized to receive the traffic transmitted to the soft load balancer A by the switch so as to load balance the traffic to the service server corresponding to the soft load balancer A. In the case that the soft load balancer B has no fault (i.e. works normally), the address information 2 in the soft load balancer B is in effect, the backup address information 2 in the soft load balancer C is not in effect, and the soft load balancer B can be utilized to receive the traffic transmitted to the soft load balancer B by the switch, so as to load balance the traffic to the service server corresponding to the soft load balancer B.
For example, as shown in fig. 3 (c), in the case that the soft load balancer a fails (hangs up), the pre-backup address information 1 in the soft load balancer B is validated to be the address information 1 (i.e., the address information 1 in the soft load balancer a is invalid), the soft load balancer B may receive the traffic belonging to the soft load balancer a through the address information 1, and load balance the traffic to the service server corresponding to the soft load balancer a by using the soft load balancer B. After the address information 1 in the soft load balancer B takes effect, the backup address information corresponding to the address information 1 in the soft load balancer B is the backup address information 1 in the soft load balancer D, the backup address information 1 (backup ip-D) is set in the address information 1 in the soft load balancer B, and the backup address information 1 points to the backup address information 1 in the soft load balancer D. Under the condition that the soft load balancer B works normally, the address information 2 in the soft load balancer B is effective, the backup address information 2 in the soft load balancer C is not effective, and the traffic transmitted to the soft load balancer B by the switch can be received by the soft load balancer B according to the address information 2 so as to load balance the traffic to the service server corresponding to the soft load balancer B. The backup address information corresponding to the address information 2 in the soft load balancer B is backup address information 2 in the soft load balancer C, and backup address information 2 (backup ip-C) is set in the address information 2, and the address points to the backup address information 2 in the soft load balancer C.
In the embodiment of the present application, in order to better understand the scheme of the present application, a mechanism for implementing fast switching of the traffic bearer body (i.e. implementing traffic succession) according to three modes, namely, mode one, mode two and mode three will be described below.
The first mode is that a control surface module (also called a configuration management module) is arranged in the soft load equipment, and the configuration, health status monitoring and flow group active-standby status election of each soft load equalizer in the soft load cluster are realized through the control surface module.
Illustratively, as shown in fig. 3 (d), the control plane module implements a process of configuring the soft load cluster, including that the control plane module may generate different traffic group configuration information according to user configuration, where each traffic group configuration information includes address information (i.e., address information in the embodiment of the present application, including floatIP, vmac, etc.), a traffic backup purpose (backup ip), and so on. Then, the control plane module may configure each soft load balancer according to a policy, including a correspondence between each soft load balancer and the flow group configuration information, to form a flow group information table and a soft load device state information table, where the flow group information table (the flow group 1 information table, the flow group 2 information table and the flow group 3 information table) is used to indicate a primary standby state of each flow group (the soft load balancer a (soft load a) in the flow group 1 information table is in a primary state, the soft load balancer B (soft load B) is in a standby state, the soft load B in the flow group 2 information table is in a primary state, the soft load C in the flow group 1 information table is in a standby state, that is, on which soft load balancers are to be configured by the flow group, and the soft load device state information table (the device state information table) is used to indicate that the states of each soft load balancer are healthy or abnormal (the states of the soft load a, the soft load B and the soft load C are healthy), as in fig. 3 (d) exemplarily shows that the control plane maintains the soft load information of the control plane module and the soft load device. The control plane module may direct configuration updates for each soft load balancer based on the two tables.
The control plane module monitors the health status of the soft load cluster, as shown in fig. 3 (e) and fig. 3 (f), and includes maintaining a heartbeat mechanism between the control plane module and each soft load balancer, each soft load balancer periodically notifies the control plane module of the health status of the control plane module and the current main and standby status of the flow group (soft load balancer a (soft load a)) of the control panel, wherein the notification information includes a soft load name of the soft load a, the status is healthy, the flow group information includes a flow group 1-standby, a flow group 2-standby and a flow group 3-standby, the notification information of the soft load balancer B (soft load B) of the control panel includes a soft load name of the soft load B, the flow group information includes a flow group 1-standby, a flow group 2-standby and a flow group 3-standby, the information of the soft load balancer C (soft load C) of the control panel includes a soft load name of the soft load C, the status is healthy, the flow group information includes a flow group 1-standby, a flow group 2-standby and a soft load 3-standby), and the control plane can be further configured in accordance with the health status of the soft load balancer of the main and standby status of the control panel, and the soft load balancer is further configured in the main and standby status of the soft load balancer (main and the main and standby status of the soft load balancer is further configured in accordance with the main and the status of the main and standby status of the soft equalizer (main and the main equalizer 3). For example, fig. 3 (e) illustrates a scenario in which each soft load balancer announces its own health status and active/standby information of a traffic group to a control plane module in the initial period, fig. 3 (f) illustrates a scenario in which the control plane module issues updated active/standby information of the traffic group based on policies (the information announced by the control plane module to the soft load a includes that the soft load name is soft load a, the traffic group information includes that the traffic group 1 is active, the traffic backup purpose is soft load B, the traffic group 2 is active, and the traffic group 3 is active, the information announced by the control plane module to the soft load B includes that the soft load name is soft load B, the traffic group information includes that the traffic group 1 is active, the traffic group 2 is active, the traffic group 3 is active, the traffic backup purpose is soft load C, the traffic group information includes that the traffic group 1 is active, the traffic group 2 is active, the traffic backup purpose is soft load a), and the traffic group status of each soft load balancer is corrected. It can be seen that, by policy processing and correction of the control plane module, determination and configuration of the active/standby state of the traffic group of each soft load balancer can be implemented, for example, by the processes of fig. 3 (e) and fig. 3 (f), the address information of the traffic group 1 is implemented to be active in the soft load balancer a and be standby in the soft load balancer B, the address information of the traffic group 2 is implemented to be active in the soft load balancer B and be standby in the soft load balancer C, and the address information of the traffic group 3 is implemented to be active in the soft load balancer C and be standby in the soft load balancer a.
Under the condition that at least one soft load equalizer is abnormal, if the soft load equalizer A cannot perform heartbeat communication with the control plane module due to a fault or the health state notified to the control plane module by the soft load equalizer A is abnormal, the control plane module can acquire the abnormality of the soft load equalizer A based on the abnormality, reconfigure the state of the relevant soft load equalizer based on a strategy, and enable the main and standby states of the soft load to be switched, so that flow succession is rapidly realized.
As illustrated in fig. 3 (g), exemplary "traffic group 1" is configured as a master in a soft load balancer a (soft load a), which normally carries traffic from the switch, and "traffic group 1" is a backup in a load balancer B (soft load B). When the soft load balancer A fails, the control plane module automatically updates a flow group information table and a soft load equipment state information table maintained by the control plane module based on a strategy and sends updated flow group information to the soft load balancer B and the soft load balancer C (the information notified by the control plane module to the soft load balancer B comprises a soft load name of the soft load B, the flow group information comprises a main flow group 1, a main flow backup purpose of the soft load C, a main flow group 2, a main flow group of the soft load C and a backup flow group 3, when the soft load balancer A is abnormal, the control plane module automatically updates the flow group information table and the soft load equipment state information table based on the strategy, wherein the information notified by the control plane module to the soft load balancer B and the soft load balancer C comprises a main flow group 1, a main flow group 2 and a soft load A, so that the soft load balancer B and the soft load balancer C are synchronously updated, namely the soft load balancer B is updated from the soft load balancer B in a soft load backup mode of which the flow group 1 is more than the main flow group C is the main flow balancer C, and the flow backup purpose of the soft balancer C is the soft load balancer B is updated from the main flow balancer C. At this time, the soft load equalizer B is equivalent to the function of activating the traffic carrying the "traffic group 1", and the address information originally used as backup is activated and started, so that the traffic sent by the switch to the address information receives the soft load equalizer B, and the soft load equalizer B bears the original traffic receiving function of the soft load equalizer a, thus realizing the fast switching of the primary and secondary traffic between the soft load equalizers and completing the traffic succession.
In the second mode, no control plane module exists in the soft load device, and each soft load equalizer in the soft load cluster can determine the main and standby states of the flow groups of each soft load equalizer in a self-election mode.
Specifically, after each soft load equalizer in the soft load cluster completes initial configuration, heartbeat signals can be propagated among the soft load equalizers in a multicast mode, so that the transmission of flow group information and health state among each other on a data surface is realized. Thus, each soft load balancer in the cluster can know the flow group configuration condition and state of other soft load balancers. Each soft load balancer in the soft load cluster is configured with a priority election algorithm for the traffic group. Each soft load equalizer can calculate the master and slave roles of the own flow group by adopting a priority election algorithm according to the configuration condition and the current health state of each soft load equalizer in the cluster, and then automatically self-corrects the master and slave states of the own flow group based on the calculation result.
As shown in fig. 3 (h), each soft load equalizer is assumed to have a traffic group 1, a traffic group 2, and a traffic group 3 at the initial configuration, and the initial state is "standby". After the flow set information is transferred between the two, a soft load equalizer A (soft load A) receives notification information transmitted by a soft load equalizer B (soft load B) and a soft load equalizer C (soft load C), the soft load B receives notification information transmitted by the soft load A and the soft load C, the soft load C receives notification information transmitted by the soft load A and the soft load B, each soft load equalizer autonomously performs state update (after the soft load A updates the preparation state, the flow set 1 is the main one, the flow backup purpose is the soft load B, the flow set 2 is the backup one, the flow set 3 is the backup one, after the soft load B updates the preparation state, the flow set 1 is the backup one, the flow backup purpose is the soft load C, the flow set 3 is the backup one, the soft load C updates the preparation state to be the soft load A based on calculation, the flow set 1 is the main one, the flow backup purpose is the soft load equalizer B, the rest of the flow set is the backup one, the soft load equalizer is the main one, the rest of the flow set is the flow backup equalizer based on the calculation, the rest of the flow set is the main one, the flow set is the rest of the soft equalizer based on the calculation, the flow set is the main one, the rest of the flow set is the flow backup equalizer, the rest is the flow set is the main one, the flow equalizer is calculated based on the main one, and the rest of the flow set is the main one, the flow set is the main one, and the rest is the flow equalizer is the main one, and the main one is based on the main one.
Under the condition that at least one soft load balancer is abnormal, if the soft load balancer A cannot perform heartbeat multicast communication with other soft load balancers due to faults, or the health state notified by the soft load balancer A to the other soft load balancers is abnormal, the other soft load balancers (such as the soft load balancers B and C) can learn the abnormality of the soft load balancer A based on the health state. Then, further, the soft load equalizer B and the soft load equalizer C can update the active and standby roles of the own flow group by adopting a priority election algorithm according to the configuration condition and the current health state of each soft load equalizer in the cluster, so that the active and standby states of the soft load are switched, and the flow succession is realized rapidly.
For example, as shown in fig. 3 (i), in the case that the soft load balancer a (soft load a) fails, neither the soft load balancer B (soft load B) nor the soft load balancer C (soft load C) receives the heartbeat signal of the soft load balancer a within a preset time, and then the soft load balancer B and the soft load balancer C respectively calculate the states of each flow group based on an algorithm and automatically update, for example, the flow group 1 in the soft load balancer B is updated from "standby" to "main", the flow backup is for the soft load balancer C, the flow group 2 in the soft load balancer B is unchanged, the flow group 2 is still main, the flow backup is for the soft load balancer C, the flow group 3 in the soft load balancer B is unchanged, and the flow group 3 is still standby. The flow group 1 in the soft load balancer C is unchanged, the flow group 1 is still standby, the flow group 2 in the soft load balancer C is unchanged, the flow group 2 is still standby, and the flow group 3 in the soft load balancer C is still main, but the flow backup purpose is updated from the soft load balancer A to the soft load balancer B. At this time, the soft load equalizer B is equivalent to the function of activating the traffic carrying the "traffic group 1", and the address information originally used as a backup is activated and started, so that the traffic sent by the switch to the address information receives the soft load equalizer B, and the soft load equalizer B bears the original traffic receiving function of the soft load equalizer a, thus realizing the fast switching of the primary and secondary traffic between the soft load equalizers and completing the traffic succession.
The third mode can combine the first mode and the second mode, and further improves the stability and reliability of the flow switching mechanism while ensuring that the scheme can be realized. The matching of the first mode and the second mode can be that a control surface module is arranged in the soft load equipment, and the configuration, health status monitoring and flow group active/standby status election of each soft load equalizer in the soft load cluster are realized through the control surface module. A priority election algorithm for the traffic group is configured in each soft load balancer in the soft load cluster. When the control plane module works normally, the soft load device is configured and switched according to the first mode. When the control surface module fails, the soft load device performs configuration and flow switching according to the second mode.
It can be understood that under the condition that a first soft load balancer in the soft load device fails, by determining a second soft load balancer with backup address information corresponding to address information in the first soft load balancer, the second soft load balancer is used to receive traffic belonging to the first soft load balancer, so that the second soft load balancer is used to forward the traffic to a corresponding service server, and a process of balancing traffic load is realized, so that a fast switching of a traffic load main body (from one soft load to another soft load) during failure is realized, and a speed of balancing traffic load is improved. And the switch does not sense the switching process, so that the continuity of the service is ensured without interruption.
Example two
The embodiment of the application provides a flow processing method which is applied to a switch, wherein the switch comprises address information of each soft load equalizer of a plurality of soft load equalizers in soft load equipment, and the address information in any soft load equalizer in the soft load equipment has backup address information in at least one other soft load equalizer of the plurality of soft load equalizers:
s201, determining that a second soft load balancer corresponding to the backup address information of the address information in the first soft load balancer exists under the condition that the first soft load balancer in the plurality of soft load balancers fails.
The flow processing method provided by the embodiment of the application is suitable for the scene that the switch performs load balancing on a plurality of soft load balancers in soft load equipment.
In embodiments of the application, the switch may be implemented in various forms. For example, the switch described in the present application may include a device having a switch function such as a server.
In an embodiment of the application, the soft-load device comprises a soft-load cluster comprising a plurality of soft-load balancers. The number of soft load balancers in the soft load cluster may be two or more, and the number of specific soft load balancers in the soft load cluster may be determined according to the actual situation, which is not limited in the embodiment of the present application.
In the embodiment of the application, when the switch receives the total traffic transmitted by the client, the switch groups the total traffic to obtain a plurality of groups of traffic, the specific switch groups the total traffic to obtain a plurality of groups of traffic, the switch can group the total traffic according to the quantity of a plurality of route notification information corresponding to a plurality of soft load balancers sent by the soft load equipment to obtain a plurality of groups of traffic, the switch can group the total traffic according to a preset traffic distribution threshold to obtain a plurality of groups of traffic, the switch can group the total traffic according to other modes to obtain a plurality of groups of traffic, and the specific switch groups the total traffic to obtain a plurality of groups of traffic can be determined according to the actual situation.
The process of grouping the total traffic by the switch according to the number of the plurality of route notification information corresponding to the plurality of soft load balancers sent by the soft load device to obtain a plurality of groups of traffic can be performed by the switch according to the number of the plurality of route notification information sent by the soft load device through an equivalent multipath routing policy to obtain a plurality of groups of traffic.
In the embodiment of the application, the total traffic can be the total traffic transmitted by the client at one time.
In the embodiment of the application, the total flow can be any information when the client accesses the server, for example, the total flow can be access information of the client accessing a certain enterprise, can be download information of the client downloading software on a certain platform, can also be other information, and the specific total flow can be determined according to actual conditions.
S202, the traffic originally belonging to the first soft load equalizer is sent to the second soft load equalizer, so that the traffic is forwarded to the corresponding service server by the second soft load equalizer.
In the embodiment of the application, after determining that a second soft load balancer corresponding to backup address information of address information in a first soft load balancer exists under the condition that a first soft load balancer in a plurality of soft load balancers fails, the switch sends traffic originally belonging to the first soft load balancer to the second soft load balancer so as to forward the traffic to a corresponding service server by using the second soft load balancer.
It should be noted that the plurality of soft load balancers includes a second soft load balancer, and the plurality of sets of traffic includes traffic.
In an embodiment of the application, the address information includes a floating IP address and/or a virtual MAC address.
It should be noted that the address information of each soft load balancer is a plurality of address information, where the plurality of address information includes a floating IP address and/or a plurality of virtual MAC addresses.
It can be understood that the plurality of floating IP addresses can be transferred between different network ports, and the plurality of virtual MAC addresses are not bound with a specific network port, so that traffic can be not limited by physical devices, and can be migrated along with migration of a traffic group, so that a soft load device can transmit traffic belonging to a first soft load equalizer to a second soft load equalizer according to the plurality of floating IP addresses and the plurality of virtual MAC addresses, so that the second soft load equalizer is utilized to forward the traffic to a corresponding service server, and speed when traffic load balancing is rapidly realized.
In the embodiment of the application, the process of sending the traffic originally belonging to the first soft load equalizer to the second soft load equalizer by the switch comprises the step that the switch issues the traffic to the second soft load equalizer based on the equal-cost multi-path routing strategy and the route notification information.
In the embodiment of the application, the switch transmits a plurality of groups of traffic to a plurality of soft load equalizers based on the equivalent multipath routing strategy and the routing notification information.
In the embodiment of the present application, the equivalent multipath routing policy may specifically be Equal-cost multi-path routing (ECMP).
In the embodiment of the application, the switch is also provided with ECMP equipment, and when the switch receives a plurality of route notices corresponding to a plurality of soft load equalizers sent by the soft load equipment, the switch can start the ECMP equipment, and the ECMP equipment is utilized to carry out route learning on the plurality of route notices according to an equivalent multi-path route strategy so as to obtain a plurality of route notice information. And under the condition that the switch receives the total traffic sent by the client, the switch can group the total traffic to obtain a plurality of groups of traffic, so that the plurality of groups of traffic are distributed to a plurality of groups of service servers by utilizing a plurality of soft load balancers.
In the embodiment of the application, a plurality of route advertisements are in one-to-one correspondence with a plurality of route advertisement information, and in particular, one route advertisement corresponds to one route advertisement information.
In the embodiment of the present application, the plurality of route advertisements may be a plurality of route information corresponding to a plurality of soft load balancing devices in the soft load group, and the plurality of route information includes a plurality of virtual service IP addresses of the plurality of soft load balancers.
It can be understood that the switch issues multiple groups of traffic to the multiple soft load balancers through the equal-cost multipath routing policy and the multiple routing notification information, so as to averagely issue the total traffic to the multiple soft load balancers, so that the traffic values of the multiple groups of traffic which can be obtained by the multiple soft load balancers are the same, and the balance during traffic distribution is improved.
In the embodiment of the application, before determining that the second soft load equalizer corresponding to the backup address information of the address information in the first soft load equalizer exists under the condition that the first soft load equalizer in the plurality of soft load equalizers fails, the switch also receives the route notification information corresponding to each soft load equalizer sent by the soft load equipment.
It should be noted that, the route advertisement information includes a floating IP address and a virtual service IP address corresponding to each soft load balancer.
It should be noted that, the route advertisement information corresponding to each soft load balancer is a plurality of route advertisement information. The plurality of route advertisement information includes a plurality of floating IP addresses and a plurality of virtual service IP addresses corresponding to the plurality of soft load balancers.
It can be understood that, by receiving multiple route notification information including multiple floating IP addresses and multiple virtual service IP addresses corresponding to multiple soft load balancers sent by the soft load device, the switch can obtain a next-hop address of traffic and a destination address of traffic corresponding to multiple soft load balancers through the multiple route notification information, so as to implement a load balancing process using the soft load balancers and multiple groups of service servers according to the next-hop address of traffic and the destination address of traffic, thereby improving availability of the soft load device and performance of the soft load device.
An exemplary information processing method flow chart is shown in fig. 5:
1. the soft load device transmits a plurality of route advertisements corresponding to the plurality of soft load balancers to the switch.
2. And under the condition that the switch receives a plurality of route advertisements sent by the soft load equipment, the switch performs route learning on the plurality of route advertisements according to the equal cost multi-path routing strategy to obtain a plurality of route advertisement information.
3. And the switch receives the total traffic sent by the client.
4. And the switch groups the total traffic to obtain a plurality of groups of traffic.
5. And the soft load equipment distributes the multiple groups of traffic to the multiple groups of service servers respectively by utilizing the multiple soft load balancers under the condition that the multiple groups of traffic which is transmitted by the switch based on the equivalent multipath routing strategy and the multiple routing notification information are received by utilizing the multiple soft load balancers.
It can be understood that, in the traffic processing method in the embodiment of the present application, the switch supporting ECMP is used to load a plurality of soft loads, and then the plurality of soft loads are used to load a plurality of service servers, so that load balancing in the present application is double-layer load balancing (i.e., the first layer loads a plurality of soft loads by ECMP and the second layer loads a plurality of servers by a plurality of soft loads), so as to transmit the total traffic to a plurality of service servers, thereby improving availability and soft load performance when load balancing by soft loads.
It can be understood that when the switch determines that the first soft load balancer in the soft load cluster fails, the switch determines that the second soft load balancer corresponding to the backup address information of the address information in the first soft load balancer exists, and sends the traffic to the second soft load balancer, and the second soft load balancer is used to implement load balancing on the traffic, so that seamless switching of the traffic bearing main body (from one soft load to another soft load) during failure is implemented, and the speed of carrying out load balancing on the traffic is improved. And the switch does not sense the switching process, so that the continuity of the service is ensured without interruption.
Example III
The embodiment of the application provides a configuration method for soft load equipment, which is applied to the soft load equipment, wherein the soft load equipment comprises a control surface module (or a configuration management module), the control surface module is used for realizing the configuration of soft load clusters in the soft load equipment, and fig. 6 is a flow chart of the configuration method for the soft load equipment, and as shown in fig. 6, the configuration method for the soft load equipment comprises the following steps:
S301, acquiring a plurality of groups of address information to be configured, wherein each group of address information comprises a floating IP address and/or a virtual MAC address.
In the embodiment of the present application, the configuration method for the soft load device further generates a plurality of sets of traffic group configuration information to be configured, and it can be understood that each set of traffic group configuration information includes address information, and each set of address information includes a floating IP address and a virtual MAC address.
S302, configuring a plurality of soft load balancers deployed in the soft load device based on a plurality of groups of address information, so that the address information owned by any soft load balancers has backup address information in at least one other soft load balancers of the plurality of soft load balancers.
In the embodiment of the application, the soft load balancer with backup address information takes over the soft load balancer to receive the traffic when the soft load balancer with corresponding address information fails.
It should be noted that the backup address information indicates that the soft load balancer where the backup address information is located takes over the soft load balancer to receive traffic when the soft load balancer having the corresponding address information fails.
In the embodiment of the application, the plurality of soft load balancers comprise a first soft load balancer and a second soft load balancer with backup address information corresponding to address information in the first soft load balancer, and the second soft load balancer is used for taking over the first soft load balancer to receive traffic under the condition that the first soft load balancer fails.
In the embodiment of the application, a plurality of soft load balancers deployed in soft load equipment are configured based on a plurality of groups of address information, so that the address information possessed by any soft load balancer has a process of backing up the address information in at least one other soft load balancer of the plurality of soft load balancers, and the process comprises the steps that a control plane module distributes the plurality of groups of address information to each soft load balancer; the control plane module updates the main and standby state results to the soft load balancers with the same address information so that the address information owned by any soft load balancers has backup address information in at least one other soft load balancers of the plurality of soft load balancers.
In the embodiment of the application, the specific real-time process of the configuration flow is shown in fig. 7:
S1, generating flow group configuration information according to user configuration.
It should be noted that, the control plane module generates multiple sets of flow group configuration information corresponding to each flow group according to the user configuration information, where each set of flow group configuration information includes address information, and the address information includes a floating IP address and a virtual MAC address.
S2, the flow group configuration information is issued.
It should be noted that, the control plane module forms a corresponding relationship between each flow group and the soft load equalizer based on the policy, and distributes the configuration information of multiple groups of flow groups of each flow group to each soft load equalizer of the cluster, and the specific distribution mode is not limited in the application. Thus, a soft load balancer will have one or more traffic groups, and each traffic group exists in at least two soft load balancers. It should be noted that, at this time, for a soft load equalizer having the same traffic group (i.e., having the same address information), the active/standby states of the traffic groups have not been determined finally, and may be default states (e.g., default to be all the standby traffic groups).
S3, selecting the master and the slave for the flow group respectively.
It should be noted that, the control plane module may elect the primary and secondary states of the same traffic groups in each soft load equalizer according to the health status of the soft load equalizer of each cluster and a specific algorithm to obtain a primary and secondary state result, where the result indicates that one of the traffic groups is a primary traffic group, address information in the primary traffic group is primary address information (or directly referred to herein as address information), and the rest is a secondary traffic group (or referred to herein as backup traffic group), where address information in the secondary traffic group is backup address information.
S4, updating the main and standby states of the flow group in the soft load.
It should be noted that, the control plane module issues the primary and secondary status results to each soft load equalizer, so that the soft load equalizer updates the primary and secondary status of the traffic group, which is illustrated in the traffic group information table described in fig. 3 (d), and is not repeated herein. It should be noted that, the address information owned by any one of the soft load balancers has backup address information in at least one other soft load balancers of the plurality of soft load balancers.
S5, periodically reporting the main and standby information of the flow group and the equipment state information.
Each soft load equalizer can periodically feed back the flow group information, the equipment state information and the like to the control plane module, so that when some soft load equalizers are abnormal, the soft load equalizer can reselect the main and standby states of the flow group and update the soft load equalizer. The details are as in fig. 3 (e) -3 (g), and are not described here again.
Example IV
Based on the same inventive concept as the second embodiment, the embodiment of the present application provides a soft load device 1, wherein the soft load device 1 includes a plurality of soft load balancers, each soft load balancers is provided with corresponding address information, wherein the address information in any soft load balancer has backup address information in at least one other soft load balancer of the plurality of soft load balancers, and corresponds to a flow processing method applied to the soft load device, fig. 8 is a schematic diagram of a composition structure of the soft load device provided by the embodiment of the present application, and the soft load device 1 may include:
A first determining unit 11, configured to determine, in a case where a first soft load balancer of the plurality of soft load balancers fails, that a second soft load balancer having backup address information corresponding to address information in the first soft load balancer exists;
A first receiving unit 12, configured to take over the first soft load balancer for receiving traffic by using the second soft load balancer;
and the forwarding unit 13 is used for forwarding the traffic to a corresponding service server.
In some embodiments of the application, the address information includes a floating IP address and/or a virtual MAC address.
In some embodiments of the application, the apparatus further comprises a second transmitting unit;
And the second sending unit is configured to send route notification information corresponding to each soft load balancer to the switch, where the route notification information includes a floating IP address and a virtual service IP address corresponding to each soft load balancer.
In some embodiments of the present application, the first receiving unit 12 is configured to receive, with the second soft load balancer, the traffic issued by the switch based on an equal cost multi-path routing policy and the route advertisement information.
In some embodiments of the present application, the first receiving unit 12 is configured to receive, with the plurality of soft load balancers, a plurality of sets of traffic that are issued by the switch based on the equal cost multipath routing policy and the route advertisement information.
In some embodiments of the present application, the traffic is at least one of a plurality of groups of traffic transmitted by the switch to the plurality of soft load balancers, where the number of the plurality of soft load balancers is determined according to a total traffic received by the switch and/or a memory occupied by a soft load cluster, and the total traffic is a sum of the plurality of groups of traffic.
It should be noted that, in practical applications, the first determining unit 11, the first receiving unit 12, and the forwarding unit 13 may be implemented by a processor 14 on the soft-load device 1, specifically, a CPU (Central Processing Unit, a central Processing unit), an MPU (Microprocessor Unit, a microprocessor), a DSP (DIGITAL SIGNAL Processing unit), or a field programmable gate array (FPGA, field Programmable GATE ARRAY), etc., and the data storage may be implemented by a memory 15 on the soft-load device 1.
The embodiment of the application also provides the soft-load device 1, as shown in fig. 9, the soft-load device 1 comprises a processor 14, a memory 15 and a communication bus 16, the memory 15 communicates with the processor 13 through the communication bus 16, the memory 15 stores a program executable by the processor 14, and when the program is executed, the flow processing method is executed by the processor 14.
In practical applications, the Memory 15 may be a volatile Memory (RAM), such as a Random-Access Memory (RAM), or a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a hard disk (HARD DISK DRIVE, HDD) or a Solid state disk (Solid-state-STATE DRIVE, SSD), or a combination of the above types of memories, and provides instructions and data to the processor 14.
Embodiments of the present application provide a computer readable storage medium having a computer program thereon, which when executed by the processor 14 implements a flow processing method as described above.
It can be understood that under the condition that a first soft load balancer in the soft load device fails, by determining a second soft load balancer with backup address information corresponding to address information in the first soft load balancer, the second soft load balancer is used to receive traffic belonging to the first soft load balancer, so that the second soft load balancer is used to forward the traffic to a corresponding service server, and a process of balancing traffic load is realized, so that seamless switching of a traffic load main body (from one soft load to another soft load) during failure is realized, the speed of balancing traffic load is improved, and the switch does not sense the switching process, so that continuous uninterrupted service is ensured.
Example five
Based on the inventive concept, the embodiment of the present application provides a switch 2, which includes address information of each soft load balancer in a soft load device, address information in any one soft load balancer of a plurality of soft load balancers in the soft load device has backup address information in at least one other soft load balancer of the plurality of soft load balancers, corresponding to a traffic processing method applied in the switch, fig. 10 is a schematic diagram of a composition structure of a switch provided in the embodiment of the present application, and the switch 2 may include:
a second determining unit 21, configured to determine that, in a case where a first soft load balancer of the plurality of soft load balancers fails, there is a second soft load balancer corresponding to backup address information of address information in the first soft load balancer;
And a first sending unit 22, configured to send, to the second soft load balancer, traffic originally belonging to the first soft load balancer, so that the traffic is forwarded to a corresponding service server by using the second soft load balancer.
In some embodiments of the application, the address information includes a floating IP address and/or a virtual MAC address.
In some embodiments of the application, the switch further comprises a second receiving unit;
The second receiving unit is configured to receive route notification information corresponding to each soft load balancer sent by the soft load device, where the route notification information includes a floating IP address and a virtual service IP address corresponding to each soft load balancer.
In some embodiments of the present application, the first sending unit 22 is configured to send the traffic to the second soft load balancer based on an equal cost multipath routing policy and the route advertisement information.
In some embodiments of the present application, the first sending unit 22 is configured to issue the plurality of sets of traffic to the plurality of soft load balancers based on an equal cost multipath routing policy and route advertisement information.
It should be noted that, in practical applications, the second determining unit 21 and the first transmitting unit 22 may be implemented by a processor 23 on the switch 2, specifically, a CPU (Central Processing Unit, a central Processing unit), an MPU (Microprocessor Unit, a microprocessor), a DSP (DIGITAL SIGNAL Processing unit), a field programmable gate array (FPGA, field Programmable GATE ARRAY), or the like, and the data storage may be implemented by a memory 24 on the switch 2.
The embodiment of the application also provides a switch 2, as shown in fig. 11, the switch 2 comprises a processor 23, a memory 24 and a communication bus 25, the memory 24 communicates with the processor 23 through the communication bus 25, the memory 24 stores a program executable by the processor 23, and when the program is executed, the processor 24 executes the flow processing method as described above.
In practical applications, the Memory 24 may be a volatile Memory (RAM), such as a Random-Access Memory (RAM), or a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a hard disk (HARD DISK DRIVE, HDD) or a Solid state disk (Solid-state-STATE DRIVE, SSD), or a combination of the above types of memories, and provides instructions and data to the processor 23.
An embodiment of the present application provides a computer-readable storage medium having thereon a computer program which, when executed by the processor 23, implements a flow processing method as described above.
It can be understood that when the switch determines that the first soft load balancer in the soft load cluster fails, the switch determines that the second soft load balancer corresponding to the backup address information of the address information in the first soft load balancer exists, and sends the traffic to the second soft load balancer, and the second soft load balancer is used to implement load balancing on the traffic, so that seamless switching of the traffic bearing main body (from one soft load to another soft load) during failure is implemented, and the speed of carrying out load balancing on the traffic is improved. And the switch does not sense the switching process, so that the continuity of the service is ensured without interruption.
It should be noted that, in order to better understand the solution of the present application, the embodiments herein mainly discuss a manner in which the address information used as a backup includes both a backup of the floating IP and a backup of the virtual MAC address, that is, in this manner, both the floating IP and the virtual MAC address are flexibly changeable, but this is not the only implementation manner of the embodiment of the present application. In the specific implementation, those skilled in the art may also make appropriate modifications, changes and adjustments based on the design idea of the present application, and these modifications, changes and adjustments should be understood as falling within the protection scope of the present application. The following is a brief description.
By way of example, as shown in fig. 12, in one possible variation, the address information as a backup may be designed to include only a backup of floating IP. And the virtual MAC address is not backed up. The backup traffic group in the embodiment will include only floating IP and not virtual MAC addresses, i.e. floating IP is flexible and virtual MAC addresses are fixed. Illustratively, taking the example that a soft load balancer a (soft load a) and a soft load balancer B (soft load B) are included in the cluster, after the initial configuration of the cluster is completed, the main traffic group 1 configured by the soft load a includes floating IP (float IP 1), and the virtual MAC address of the soft load a is vmac1. In the soft load B, a standby flow group 1 corresponding to the main flow group 1 exists, the standby flow group 1 comprises float ip1, and the virtual MAC address of the soft load B is vmac2. In addition, the main traffic group 2 configured by itself in the soft load B includes another floating IP (float IP 2). Then, it can be understood that, after the route notification, the address information table maintained by the switch itself includes the correspondence between float ip1 and vmac1, and the correspondence between float ip2 and vmac2. I.e. traffic to soft load a takes "float ip1, vmac1" as the next hop address and traffic to soft load B takes "float ip2, vmac2" as the next hop address. In this way, the switch can forward the relevant traffic to soft load a and soft load B, respectively. When the soft load a fails, the backup traffic group in the soft load B is started, and at this time, in order to enable the traffic of the switch to be normally issued to the soft load B, the soft load B needs to notify the switch of the correspondence between float ip1 and vmac so as to enable the switch to update the maintained address information. Thus, the original flow flowing to the soft load a takes the "float ip1, vmac2" as the next hop address, namely flows to the soft load B, so that the soft load B takes over the flow of the soft load a when the soft load a fails.
In the embodiment of the present application, the process that the soft load B notifies the switch of the correspondence between the float ip1 and vmac generally includes two modes:
One way is that when the soft load a fails and the backup traffic group in the soft load B is enabled, the soft load B will broadcast ARP (Address Resolution Protocol ) notification to the outside, so as to inform the switch fabric ip 1 that the corresponding mac address is vmac (i.e. the physical address of the soft load B), so that the switch can update the address information table, thereby implementing traffic switching.
Alternatively, if the soft load B receives an ARP request (e.g., a periodic ARP request from a switch) for flaot ip when the soft load a fails and the backup traffic group in the soft load B is enabled, the soft load B resumes the ARP reply and tells the requester that the mac address corresponding to float ip 1 is vmac. Thus, the switch can update the address information table so as to realize flow switching.
It should be noted that, in other possible designs of the present application, the backup address information may also include only the backup of the virtual MAC address. And will not be described in detail here.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the present application.

Claims (16)

1. The traffic processing method is applied to soft load equipment, and is characterized in that the soft load equipment is used for deploying a soft load cluster comprising a plurality of soft load balancers, each soft load balancers is provided with corresponding address information, wherein the plurality of soft load balancers at least comprise three soft load balancers, the address information comprises a floating IP address and/or a virtual MAC address, address information in any soft load balancer is provided with backup address information in at least one other soft load balancer of the plurality of soft load balancers, and the method comprises the following steps:
sending route notification information corresponding to each soft load equalizer to a switch;
Determining that a second soft load balancer corresponding to the address information in the first soft load balancer exists under the condition that a first soft load balancer in the plurality of soft load balancers fails;
Receiving the traffic by using the second soft load equalizer to take over the first soft load equalizer, and forwarding the traffic to a corresponding service server;
The method further comprises the step of utilizing the plurality of soft load balancers to receive a plurality of groups of traffic issued by the switch based on an equal cost multi-path routing strategy and the route advertisement information.
2. The method of claim 1, wherein the route advertisement information includes a floating IP address and a virtual service IP address corresponding to each soft load balancer.
3. The method of claim 2, wherein said taking over said first soft load balancer for receiving traffic with said second soft load balancer comprises:
And receiving the traffic issued by the switch based on the equal cost multi-path routing strategy and the route announcement information by using the second soft load equalizer.
4. A method according to any one of claims 1-3, wherein the traffic is at least one of a plurality of groups of traffic transmitted by the switch to the plurality of soft load balancers, the number of the plurality of soft load balancers being determined according to a total traffic received by the switch and/or a memory occupied by the soft load cluster, the total traffic being a sum of the plurality of groups of traffic.
5. The traffic processing method is applied to a switch, the switch comprises address information of each of a plurality of soft load balancers in a soft load device, the plurality of soft load balancers form a soft load cluster, wherein the plurality of soft load balancers at least comprise three soft load balancers, the address information comprises a floating IP address and/or a virtual MAC address, the address information in any one of the soft load balancers has backup address information in at least one other soft load balancer of the plurality of soft load balancers, and the method comprises:
Receiving route notification information corresponding to each soft load equalizer sent by the soft load equipment;
Determining that a second soft load balancer corresponding to the backup address information of the address information in the first soft load balancer exists under the condition that a first soft load balancer in the plurality of soft load balancers fails;
transmitting the traffic originally belonging to the first soft load balancer to the second soft load balancer so as to forward the traffic to a corresponding service server by using the second soft load balancer;
the method further includes issuing a plurality of groups of traffic to the plurality of soft load balancers based on an equal cost multipath routing policy and the route advertisement information.
6. The method of claim 5, wherein the route advertisement information includes a floating IP address and a virtual service IP address corresponding to each soft load balancer.
7. The method of claim 6, wherein said sending traffic to the second soft load balancer that is originally owned by the first soft load balancer comprises:
And issuing the traffic to the second soft load equalizer based on the equal cost multi-path routing strategy and the route announcement information.
8. A method of configuring a soft-load device, the method comprising:
Acquiring a plurality of groups of address information to be configured, wherein each group of address information comprises a floating IP address and/or a virtual MAC address;
configuring a soft load cluster which is deployed in the soft load equipment and comprises a plurality of soft load balancers based on the plurality of sets of address information, so that the address information possessed by any soft load balancer has backup address information in at least one other soft load balancer of the plurality of soft load balancers;
The soft load device is used for sending route notification information corresponding to each soft load equalizer to the switch, determining a second soft load equalizer with backup address information corresponding to address information in a first soft load equalizer under the condition that the first soft load equalizer in the plurality of soft load equalizers fails, taking over the first soft load equalizer by the second soft load equalizer to receive traffic, and forwarding the traffic to a corresponding service server;
the soft load device is further configured to receive, by using the plurality of soft load balancers, a plurality of groups of traffic that are issued by the switch based on the equal cost multi-path routing policy and the route advertisement information.
9. The method of claim 8, wherein the backup address information indicates that the soft load balancer in which the backup address information is located takes over for the soft load balancer to receive traffic when the soft load balancer having the corresponding address information fails.
10. The method of claim 9, wherein the plurality of soft load balancers comprises a first soft load balancer and a second soft load balancer having backup address information corresponding to address information in the first soft load balancer, the second soft load balancer to take over traffic received by the first soft load balancer in the event of a failure of the first soft load balancer.
11. The method according to any one of claims 8-10, wherein configuring a soft load cluster including a plurality of soft load balancers deployed in a soft load device based on the plurality of sets of address information such that address information owned by any one soft load balancer has backup address information in at least one other soft load balancer of the plurality of soft load balancers includes:
distributing the multiple groups of address information to each soft load equalizer, wherein each group of address information is distributed to at least two soft load equalizers;
Performing main and standby elections on soft load balancers with the same address information to obtain a main and standby state result;
And updating the main and standby state results to the soft load balancers with the same address information, so that the address information owned by any soft load balancer has backup address information in at least one other soft load balancers of the plurality of soft load balancers.
12. The soft load device is characterized in that a soft load cluster comprising a plurality of soft load balancers is deployed in the soft load device, each soft load balancer is provided with corresponding address information, wherein the plurality of soft load balancers at least comprises three soft load balancers, the address information comprises a floating IP address and/or a virtual MAC address, and the address information in any soft load balancer has backup address information in at least one other soft load balancer of the plurality of soft load balancers, and the soft load device comprises:
A second sending unit, configured to send route notification information corresponding to each soft load balancer to a switch;
A first determining unit, configured to determine, in a case where a first soft load balancer of the plurality of soft load balancers fails, that a second soft load balancer that has backup address information corresponding to address information in the first soft load balancer exists;
The first receiving unit is used for receiving the traffic by using the second soft load equalizer to replace the first soft load equalizer, and is also used for receiving a plurality of groups of traffic which are issued by the switch based on an equivalent multi-path routing strategy and the route notification information by using the plurality of soft load equalizers;
And the forwarding unit is used for forwarding the traffic to the corresponding service server.
13. A switch comprising address information for each of a plurality of soft load balancers in a soft load device, the plurality of soft load balancers comprising a soft load cluster, wherein the plurality of soft load balancers comprises at least three soft load balancers, the address information comprises a floating IP address and/or a virtual MAC address, the address information in any one of the plurality of soft load balancers in the soft load device has backup address information in at least one other of the plurality of soft load balancers, comprising:
The second receiving unit is used for receiving the route notification information corresponding to each soft load equalizer sent by the soft load equipment;
A second determining unit, configured to determine, when a first soft load balancer in the plurality of soft load balancers fails, that a second soft load balancer corresponding to backup address information of address information in the first soft load balancer exists;
The first sending unit is used for sending the traffic originally belonging to the first soft load equalizer to the second soft load equalizer so as to forward the traffic to a corresponding service server by utilizing the second soft load equalizer, and is also used for sending a plurality of groups of traffic to the plurality of soft load equalizers based on an equivalent multi-path routing strategy and routing notification information.
14. A soft-load device, the soft-load device comprising:
a first memory, a first processor and a first communication bus, the first memory in communication with the first processor through the first communication bus, the first memory storing a program of flow processing executable by the first processor, the program of flow processing, when executed by a soft-load device, performing the method of any of claims 1-4 by the first processor.
15. A switch, the switch comprising:
A second memory, a second processor, and a second communication bus, the second memory in communication with the second processor through the second communication bus, the second memory storing a program of traffic processing executable by the second processor, the program of traffic processing, when executed by the switch, performing the method of any of claims 5 to 7 through the second processor.
16. A storage medium having stored thereon a computer program for use in a soft-load device, characterized in that the computer program when executed by a first processor implements the method of any of claims 1 to 4, or for use in a switch, characterized in that the computer program when executed by a second processor implements the method of any of claims 5 to 7.
CN202111242995.9A 2021-10-25 2021-10-25 Flow processing method, switch, soft load device and storage medium Active CN114079636B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111242995.9A CN114079636B (en) 2021-10-25 2021-10-25 Flow processing method, switch, soft load device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111242995.9A CN114079636B (en) 2021-10-25 2021-10-25 Flow processing method, switch, soft load device and storage medium

Publications (2)

Publication Number Publication Date
CN114079636A CN114079636A (en) 2022-02-22
CN114079636B true CN114079636B (en) 2024-11-29

Family

ID=80283847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111242995.9A Active CN114079636B (en) 2021-10-25 2021-10-25 Flow processing method, switch, soft load device and storage medium

Country Status (1)

Country Link
CN (1) CN114079636B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115514767B (en) * 2022-09-27 2024-09-17 上汽通用五菱汽车股份有限公司 Switching method of data transmission, terminal equipment and computer readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103560907A (en) * 2013-10-23 2014-02-05 曙光信息产业(北京)有限公司 Management method and device for double machine load balancing devices

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7647427B1 (en) * 2002-10-18 2010-01-12 Foundry Networks, Inc. Redundancy support for network address translation (NAT)
KR100703488B1 (en) * 2004-06-01 2007-04-03 삼성전자주식회사 State Transition Method and Device of Backup Router in Router Redundancy System
CN102035864B (en) * 2009-09-30 2013-07-03 阿里巴巴集团控股有限公司 Method and system for realizing open services
CN102171995B (en) * 2011-04-19 2013-09-11 华为技术有限公司 Method for processing packet when server fails and router thereof
US20130159487A1 (en) * 2011-12-14 2013-06-20 Microsoft Corporation Migration of Virtual IP Addresses in a Failover Cluster
CN103259740B (en) * 2013-04-27 2017-03-15 杭州华三通信技术有限公司 A kind of load balance process method and device
CN103346903B (en) * 2013-06-20 2017-02-15 北京捷成世纪科技股份有限公司 Dual-machine backup method and device
CN105847143B (en) * 2016-06-06 2022-06-07 北京博维亚讯技术有限公司 Load balancing method and system based on VRRP
CN107995123B (en) * 2016-10-27 2020-05-01 贵州白山云科技股份有限公司 Load balancing system and method based on switch
CN111866064B (en) * 2016-12-29 2021-12-28 华为技术有限公司 A method, device and system for load balancing
CN107454155B (en) * 2017-07-25 2021-01-22 北京三快在线科技有限公司 Fault processing method, device and system based on load balancing cluster
CN112311907B (en) * 2020-11-18 2023-05-12 深信服科技股份有限公司 ARP request response method, load balancing equipment and related device
CN112995054B (en) * 2021-03-03 2023-01-20 北京奇艺世纪科技有限公司 Flow distribution method and device, electronic equipment and computer readable medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103560907A (en) * 2013-10-23 2014-02-05 曙光信息产业(北京)有限公司 Management method and device for double machine load balancing devices

Also Published As

Publication number Publication date
CN114079636A (en) 2022-02-22

Similar Documents

Publication Publication Date Title
TWI724106B (en) Business flow control method, device and system between data centers
CN107995123B (en) Load balancing system and method based on switch
CN102821044B (en) Method and device for configuring server cluster
CN102158386B (en) Distributed load balance for system management program
EP1652354B1 (en) Distributing and balancing traffic flow in a virtual gateway
JP4680919B2 (en) Redundant routing capabilities for network node clusters
US20100290472A1 (en) Achieving about an equal number of active links across chassis in a virtual port-channel environment
US20050080923A1 (en) System and method for load balancing and fail over
JP5024195B2 (en) Load balancing server, network load balancing method, and congestion avoidance method
CN102333027B (en) Traffic load sharing realization method based on virtual router redundancy protocol extend (VRRPE) backup group and realization apparatus thereof
WO2012000234A1 (en) Method, apparatus and system for fast switching between links
CN103259740B (en) A kind of load balance process method and device
US12200047B2 (en) Service unit switching method, system, and device for disaster tolerance switching and capacity dispatching
WO2010098969A2 (en) Load balancing in a multiple server system hosting an array of services
CN101316236A (en) VRRP backup group load sharing method and router
CN105721328B (en) VRRP load balancing method, device and router
CN114079636B (en) Flow processing method, switch, soft load device and storage medium
CN102970388B (en) Method and system for managing outer net access
CN102404339B (en) Fire wall system and data processing method based on fire wall system
US9015518B1 (en) Method for hierarchical cluster voting in a cluster spreading more than one site
CN104780097A (en) Method for hot standby under non-fully-connected network topology condition and first router equipment
KR20080070152A (en) Board redundancy device and method in distributed system
EP3804278B1 (en) Load distribution across superclusters
CN113098788A (en) Method and device for releasing route
JP2008182411A (en) Information distribution program, information distribution apparatus, and information distribution method

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