CN114079636A - Flow processing method, switch, soft load equipment and storage medium - Google Patents

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

Info

Publication number
CN114079636A
CN114079636A CN202111242995.9A CN202111242995A CN114079636A CN 114079636 A CN114079636 A CN 114079636A CN 202111242995 A CN202111242995 A CN 202111242995A CN 114079636 A CN114079636 A CN 114079636A
Authority
CN
China
Prior art keywords
soft load
load balancer
soft
address information
traffic
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.)
Pending
Application number
CN202111242995.9A
Other languages
Chinese (zh)
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/CN114079636A/en
Publication of CN114079636A publication Critical patent/CN114079636A/en
Pending legal-status Critical Current

Links

Images

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 traffic processing method, a switch, soft load equipment and a storage medium, wherein the traffic processing method is applied to the soft load equipment and comprises the following steps: under the condition that a first soft load balancer in a plurality of soft load balancers fails, determining a second soft load balancer with backup address information corresponding to the address information in the first soft load balancer; receiving the traffic by the second soft load balancer instead of the first soft load balancer; and forwards the traffic to the corresponding service server. By implementing the method and the device, the speed of load balancing of the flow can be increased, and continuous and uninterrupted service is ensured.

Description

Flow processing method, switch, soft load equipment 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 when the amount of service information is large, the number of servers is usually increased, and a plurality of servers are used to solve the problems of slow access and congestion of service information, and when a plurality of servers work simultaneously, a tool capable of distributing service information, namely load balancing, is required. The load balancing comprises soft load and hard load, and compared with 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 traffic, the soft load sends the service traffic to a server corresponding to the soft load, so as to perform load balancing on the service traffic by using the server, and when the soft load fails, other soft loads need to be started first, and then the service traffic is forwarded to the server by using other soft loads after the other soft loads are started, so that the speed of load balancing on the service traffic is reduced, and the continuity of the service is affected.
Disclosure of Invention
In order to solve the foregoing technical problems, embodiments of the present application are expected to provide a traffic processing method, a switch, a soft load device, and a storage medium, which can improve the speed of load balancing for traffic and ensure that a service is continuous and uninterrupted.
The soft load device described in the present application refers to a device for carrying and operating a soft load cluster, and the device may be a server or a network device, for example. Soft load clustering refers to a collective concept comprising a plurality of soft load balancers, which can be used to jointly implement the bearer for user traffic. The soft load balancer is a software load balancer and is used for realizing load balancing of traffic to the service server.
The technical scheme of the application is realized as follows:
an embodiment of the present application provides a traffic processing method, which is applied to a soft load device, where the soft load device is deployed with a plurality of soft load balancers, and each soft load balancer is provided with corresponding address information, where 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 method includes:
under the condition that a first soft load balancer in the plurality of soft load balancers fails, determining a second soft load balancer with backup address information corresponding to the address information in the first soft load balancer;
receiving traffic with the second soft load balancer in lieu of the first soft load balancer; and forwarding the traffic to a corresponding service server.
The reason why the second soft load balancer is used to take over the reception of the traffic of the first soft load balancer is that if the first soft load balancer does not fail, the first soft load balancer originally receives the traffic of the address information configured in the first soft load balancer, and the backup address information in the second soft load balancer is not enabled. When the first soft load balancer is in failure, the backup address information in the second soft load balancer is enabled, and the content of the address information is the same as that of the backup address information, so that the traffic sent to the address information by the switch is actually received by the second soft load balancer, which is equivalent to that the second soft load balancer takes on the original traffic receiving function of the first soft load balancer.
In the above scheme, the address information includes a floating IP address; or, the address information includes a floating IP address and a virtual MAC address at the same time; alternatively, the address information includes a MAC address. It can be seen that, in the embodiment of the present application, the floating IP address and the virtual MAC address of a certain soft load balancer are configured in another soft load balancer, so that address information is shared and backed up. That is, before the first soft load balancer fails, the address information in the first soft load balancer is in an enabled state, and the address information in the second soft load balancer as a backup is not enabled; when the first soft load balancer breaks down, the address information as backup in the second soft load balancer is started immediately, and the flow can be switched to the second soft load balancer seamlessly at the moment, so that the fast switching of the flow is realized, and the continuous and uninterrupted service can be ensured.
In the foregoing solution, when the first soft load balancer fails, before determining that there is a second soft load balancer having backup address information corresponding to address information in the first soft load balancer, the method further includes:
and sending route advertisement information corresponding to each soft load balancer to the switch, wherein the route advertisement information comprises a floating IP address and a virtual service IP address corresponding to each soft load balancer.
Therefore, the switch can conveniently realize the flow distribution of the soft load cluster based on the route notification information, and when a soft load balancer in the soft load cluster fails, the soft load balancer with the backup address information corresponding to the address information in the soft load balancer does not need to additionally upload the route notification information, even if the switch does not sense the switching of the soft load balancer.
In the foregoing solution, the replacing, by the second soft load balancer, the first soft load balancer to receive traffic includes:
and receiving the flow issued by the switch based on the equal-cost multi-path routing strategy and the routing advertisement information by utilizing the second soft load balancer.
In the above aspect, the method further includes:
and receiving a plurality of groups of flows issued by the switch based on the equal-cost multi-path routing strategy and the routing notification information by utilizing the soft load balancers.
In the above scheme, the traffic is at least one of a plurality of sets of traffic transmitted by the switch to the plurality of soft load balancers, and the number of the plurality of soft load balancers is determined according to total traffic received by the switch and/or a memory occupied by a soft load cluster; the total flow is the sum of the multiple groups of flows.
The embodiment of the application provides a traffic processing method, which is applied to a switch, wherein the switch comprises address information of each soft load balancer in soft load equipment, and the address information in any soft load balancer in the soft load equipment has backup address information in at least one other soft load balancer of a soft load cluster; the method comprises the following steps:
determining a second soft load balancer corresponding to backup address information of address information in a first soft load balancer when the first soft load balancer in the soft load cluster fails;
and sending the traffic originally belonging to the first soft load balancer to the second soft load balancer, so that the second soft load balancer is utilized to forward the traffic to a corresponding service server.
Sending the traffic originally belonging to the first soft load balancer to the second soft load balancer means that if the first soft load balancer does not have a fault, the traffic originally sent by the switch to the address information configured in the first soft load balancer is received by 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 is in failure, the backup address information in the second soft load balancer is enabled, and because the address information and the backup address information have the same content, the traffic sent to the address information by the switch is actually received by the second soft load balancer, which is equivalent to that the second soft load balancer takes 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 backup includes a floating IP address; alternatively, the address information as a backup includes a MAC address.
In the foregoing solution, when a first soft load balancer of the plurality of soft load balancers fails, before determining that there exists a second soft load balancer corresponding to backup address information of address information in the first soft load balancer, the method further includes:
and receiving route advertisement information corresponding to each soft load balancer sent by the soft load equipment, wherein the route advertisement information comprises a floating IP address and a virtual service IP address corresponding to each soft load balancer.
In the foregoing scheme, the sending traffic originally belonging to the first soft load balancer to the second soft load balancer includes:
and issuing the flow to the second soft load balancer based on an equivalent multipath routing strategy and the route notification information.
In the above aspect, the method further includes:
and issuing the plurality of groups of traffic to the plurality of soft load balancers based on the equal-cost multi-path routing strategy and the routing advertisement information.
Based on the same inventive concept, the embodiment of the application provides a configuration method for a soft load device, and the method comprises the following steps:
acquiring a plurality of groups of address information to be configured; 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 groups of address information, so that the address information owned by any soft load balancer has backup address information in other at least one 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 having 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, and the second soft load balancer is configured to take over traffic received by the first soft load balancer when the first soft load balancer fails.
In the foregoing solution, the configuring, based on the multiple sets of address information, the multiple soft load balancers deployed in the soft load device, 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 multiple soft load balancers includes:
distributing the multiple groups of address information to each soft load balancer; wherein, each group of address information is at least distributed to two soft load balancers;
carrying out master-slave election on the soft load balancer with the same address information to obtain a master-slave state result;
and updating the main/standby state result to the soft load balancers with the same address information, so that the address information of any soft load balancer has backup address information in at least one other soft load balancer of the soft load balancers.
An embodiment of the present application provides a soft load device, where the soft load device is deployed and includes a plurality of soft load balancers, and each soft load balancer is provided with corresponding address information, where 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, including:
a first determining unit, configured to determine, when a first soft load balancer of the multiple soft load balancers fails, a second soft load balancer in which backup address information corresponding to address information in the first soft load balancer exists;
a first receiving unit, configured to receive traffic by using the second soft load balancer to take over the first soft load balancer;
and the forwarding unit is used for forwarding the flow to the corresponding service server.
An embodiment of the present application provides a switch, where the switch includes address information of each soft load balancer in soft load devices, where address information in any one of a plurality of soft load balancers in a soft load device has backup address information in at least one other soft load balancer of the plurality of soft load balancers, and the method includes:
a second determining unit, configured to determine, when a first soft load balancer of the multiple soft load balancers fails, a second soft load balancer corresponding to backup address information of address information in the first soft load balancer;
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 the corresponding service server by using the second soft load balancer.
An embodiment of the present application provides a soft load device, where the soft load device includes:
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 through the first processor.
An embodiment of the present application provides a switch, the switch includes:
the system comprises a second memory, a second processor and a second communication bus, wherein the second memory is communicated with the second processor through the second communication bus, the second memory stores a flow processing program executable by the second processor, and when the flow processing program is executed by a switch, the method applied to the switch is executed through the second processor.
The embodiment of the application provides a storage medium, on which a computer program is stored, and the computer program is applied to a soft load device, and is characterized in that when being executed by a first processor, the computer program realizes the method applied to the soft load device; or to a switch, characterized in that the computer program realizes the method applied in the switch when executed by the second processor.
The embodiment of the application provides a traffic processing method, a switch, soft load equipment and a storage medium, wherein the traffic processing method is applied to the soft load equipment, the soft load equipment is provided with a plurality of soft load balancers, each soft load balancer 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 balancer of the soft load balancers, and the traffic processing method comprises the following steps: under the condition that a first soft load balancer in a plurality of soft load balancers fails, determining a second soft load balancer with backup address information corresponding to the address information in the first soft load balancer; receiving the traffic by the second soft load balancer instead of the first soft load balancer; and forwards the traffic to the corresponding service server. By adopting the method implementation scheme, under the condition that a first soft load balancer in soft load equipment fails, a second soft load balancer with backup address information corresponding to address information in the first soft load balancer is determined, so that the second soft load balancer is used for receiving the flow belonging to the first soft load balancer, and the second soft load balancer is used for forwarding the flow to a corresponding service server, so that the flow load balancing process is realized, seamless switching of a flow bearing main body (from one soft load to another soft load) during the failure is realized, the speed of load balancing the flow is improved, and a switch does not sense the switching process, so that continuous and uninterrupted service is ensured.
Drawings
Fig. 1 is a block diagram of an exemplary traffic processing provided in an embodiment of the present application;
fig. 2 is a first flowchart of a traffic processing method according to an embodiment of the present disclosure;
3(a) -3 (i) are exemplary diagrams of various specific application scenarios provided by embodiments of the present application;
fig. 4 is a flow chart of a traffic processing method according to an embodiment of the present application;
fig. 5 is a flow chart of an exemplary traffic processing provided by an embodiment of the present application;
FIG. 6 is a flow chart of a configuration method provided by 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 structural diagram of a soft load device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a soft load device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a switch according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a switch according to an embodiment of the present application;
fig. 12 is an exemplary diagram of one possible implementation manner of address information according to 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 drawings in the embodiments of the present application. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Illustratively, as shown in FIG. 1: the traffic processing method can be cooperatively executed by the switch, the plurality of soft load devices and the service server. The soft load device includes a Flow Group (Flow Group) composed of a virtual MAC address and a floating ip (floating ip), and the Flow Group is used for Flow division and Flow migration between soft load clusters. Any soft load device in the plurality of soft load devices is used for balancing the traffic load in any soft load device to the service server.
Example one
An embodiment of the present application provides a traffic processing method, which is applied to a soft load device, where the soft load device is deployed with a plurality of soft load balancers, and each soft load balancer is provided with corresponding address information, where 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 traffic processing method provided in the embodiment of the present application, and as shown in fig. 2, the traffic processing method may include:
s101, under the condition that a first soft load balancer in a plurality of soft load balancers fails, determining a second soft load balancer with backup address information corresponding to the address information in the first soft load balancer.
The traffic processing method provided by the embodiment of the application is suitable for a scene that the soft load device performs load balancing on the server.
In the embodiments of the present application, the soft load device may be implemented in various forms. For example, the soft load device described in this application may include a server running a soft load, and the soft load device may also be a certain server in a server cluster, where each server in the server cluster is provided with a soft load.
In this embodiment of the present application, a soft load cluster is disposed in the soft load device, where the soft load cluster includes a plurality of soft load equalizers, and any one of the soft load equalizers is any one of the plurality of soft load equalizers.
In the embodiment of the present application, each of the plurality of soft load balancers is provided with corresponding address information, that is, the plurality of soft load balancers correspond to the plurality of address information one to one, specifically, one soft load balancer corresponds to one address information.
In the embodiment of the present 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 soft load balancer has backup address information in at least one other soft load balancer in the soft load cluster. That is, the backup address information is set in at least one soft load balancer except any one of the plurality of 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 loads can be one, and the number of the corresponding at least one soft load balancer is also one; the number of the backup soft loads can be two, and the number of the corresponding at least one soft load balancer is also two; the number of the backup soft loads can be multiple, and the number of the corresponding at least one soft load balancer is also multiple; the number of the specific backup soft loads or the number of the at least one soft load balancer may be determined according to actual situations, which is not limited in the embodiment of the present application.
In the embodiment of the present application, the first soft load balancer may also be any one of a plurality of soft load balancers. Specifically, the first soft load balancer failure condition may be a condition that the first soft load balancer does not work; the failure condition of the first soft load balancer can also be the condition that the load balancing speed of the first soft load balancer is slow, and the failure condition of the first soft load balancer can also be the condition that other traffic cannot be subjected to load balancing; the specific failure condition of the first soft load balancer can be determined according to an actual condition, which is not limited in the embodiment of the present application.
In this embodiment of the present application, backup address information corresponding to the first soft load balancer is set in the first soft load balancer, and the soft load device may determine, according to the backup address, a second soft load balancer used for processing traffic of the first soft load balancer, so as to perform load balancing on the traffic to a corresponding service server by using the second soft load balancer.
In an embodiment of the application, the address information comprises 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 media access control addresses (Virtual MAC).
It can be understood that a plurality of floating IP addresses can be transferred between different network ports, and a plurality of virtual MAC addresses are not bound to a specific network port, so that traffic can be migrated without being limited by a physical device, 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 balancer to a second soft load balancer according to the plurality of floating IP addresses and the plurality of virtual MAC addresses, so as to forward the traffic to a corresponding service server by using the second soft load balancer, thereby quickly achieving speed in traffic load balancing.
In this embodiment of the present application, when a first soft load balancer fails, before determining that there is a second soft load balancer with backup address information corresponding to address information in the first soft load balancer, the soft load device further sends route advertisement 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 a plurality of soft load balancers.
It should be further noted that the multiple Virtual service IP addresses may be multiple Virtual service internet protocol addresses (VIPs) corresponding to the multiple soft load balancers.
In the embodiment of the present application, a plurality of soft load balancers correspond to a plurality of route advertisement information one to one, and specifically, one soft load balancer corresponds to one route advertisement information.
It can be understood that the soft load device sends the route advertisement information including the floating IP address and the virtual service IP address corresponding to each soft load balancer to the switch, and the switch can obtain the traffic next hop address and the traffic destination address corresponding to the soft load balancer through the route advertisement information, so as to implement the load balancing process using the soft load balancer and the multiple groups of service servers according to the traffic next hop address and the traffic destination address, thereby improving the availability of the soft load device and the performance of the soft load device.
In this embodiment of the present application, the manner in which the soft load device sends the multiple pieces of route advertisement information corresponding to the multiple soft load balancers to the switch may be: the soft load equipment sends a plurality of route announcement information corresponding to a plurality of soft load balancers to the switch in a wireless communication mode; the soft load equipment can also send a plurality of route notification messages corresponding to a plurality of soft load balancers to the switch in a wired communication mode; the specific manner in which the soft load device sends the multiple pieces of route advertisement information to the switch may be determined according to actual conditions, which is not limited in this embodiment of the present application.
In this embodiment of the present application, if the soft load device sends a plurality of route advertisement messages corresponding to a plurality of soft load balancers to the switch in a wireless communication manner, the wireless communication manner includes: a Wireless Local Area Network (WLAN), an Ultra Wide Band (UWB), or Radio Frequency Identification (RFID), and the specific Wireless communication mode may be determined according to an actual situation, which is not limited in the embodiments of the present application.
In this embodiment of the present application, if the soft load device sends a plurality of route advertisement messages corresponding to a plurality of soft load balancers to the switch in a wired communication manner, the wired communication manner includes: the specific wired communication mode may be determined according to actual situations, and is not limited in this embodiment of the present application.
In this embodiment, 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.
In this embodiment of the present application, a soft load device obtains a plurality of pieces of route advertisement information corresponding to a plurality of soft load balancers, and advertises the plurality of pieces of route advertisement information to a switch.
It should be noted that the memory occupied by the soft load cluster is specifically a plurality of remaining memories corresponding to the plurality of soft load balancers.
In this embodiment of the present application, the soft load device may further determine a plurality of remaining memories corresponding to the soft load cluster, and then the soft load device adjusts the number of the soft load cluster according to the plurality of remaining memories, the total flow rate, and a preset memory threshold, so as to implement load balancing by using the adjusted soft load cluster.
It should be noted that the soft load device may adjust the number of soft load clusters before sending the multiple route advertisement messages corresponding to the multiple soft load balancers to the switch; after the soft load device sends a plurality of route advertisement messages corresponding to a plurality of soft load balancers to the switch, the soft load device adjusts the number of soft load clusters; the number of the soft load clusters at a time may also be adjusted at intervals of a preset time period, which may be specifically determined according to an actual situation, and this is not limited in the embodiment of the present application.
In this embodiment of the present application, the manner in which the soft load device adjusts the number of the plurality of 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 determined specifically according to an actual situation, and this is not limited in this embodiment of the present application.
Illustratively, when the soft load device determines that a plurality of remaining 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 under the condition that the soft load equipment determines that a plurality of residual memories corresponding to the soft load cluster are greater than or equal to a preset memory threshold value, the soft load equipment adjusts to reduce the number of soft loads in the soft load cluster.
In this embodiment of the present application, the soft load device may further determine operation information of multiple Central Processing Units (CPUs) of multiple soft loads, and adjust the number of the multiple soft loads according to the operation information of the multiple CPUs, which may be specifically determined according to an actual situation, and this is not limited in this embodiment of the present application.
In the embodiment of the present application, the preset memory threshold includes a preset memory lower threshold and a preset memory upper threshold; the process of the soft load device adjusting the number of soft load clusters according to the total memory and the preset memory threshold value comprises the following steps: under the condition that the total memory is greater than or equal to a preset memory upper limit threshold value, the soft load equipment deletes part of soft loads from the soft load cluster to obtain a plurality of soft loads; and under the condition that the total memory is less than or equal to the preset memory lower limit threshold, the soft load equipment increases the number of a plurality of soft loads.
It should be noted that, the partial soft load is the soft load with the largest remaining memory screened from the plurality of remaining memory information, or the partial soft load is the soft load determined at random.
It can be understood that, under the condition that the total memory is less than or equal to the preset lower memory limit threshold, the number of the plurality of soft loads is increased, so that when the soft loads encounter a 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 is expanded, and meanwhile, the network does not need to be changed or redeployed, thereby reducing the difficulty of operation and maintenance. When the total memory is larger than or equal to the preset memory upper limit threshold value, the switch deletes part of soft loads from the soft load cluster, so that when the soft loads are redundant, the redundant soft loads can be released by deleting part of the soft loads, 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 in case of bottleneck of performance of the soft load cluster; under the condition that the performance of the soft load cluster is redundant, the number of a plurality of soft load balancers in the soft load cluster can be reduced, and the elastic expansion and contraction of the performance of the soft load cluster are realized, so that the performance of the soft load equipment in load balancing is improved.
S102, receiving the flow by using a second soft load balancer to take over the first soft load balancer; and forwards the traffic to the corresponding service server.
In this embodiment of the present application, when a soft load device determines that a second soft load balancer having backup address information corresponding to address information in a first soft load balancer is in a fault state in a first soft load balancer, the soft load device uses the second soft load balancer to take over traffic received by the first soft load balancer; and forwards the traffic to the corresponding service server.
It should be noted that 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 are introduced on the basis of a plurality of address information. That is, a plurality of address information and a plurality of backup address information exist as a pair.
It should be noted that, synchronous connection is established between a plurality of address information and a plurality of backup address information.
In this embodiment of the present application, a process in which a soft load device uses a second soft load balancer to take over receiving traffic by a first soft load balancer includes: and the soft load equipment receives the flow issued by the switch based on the equal-cost multi-path routing strategy and the routing notification information by using the second soft load balancer. Specifically, the soft load device receives, by using the second soft load balancer, traffic issued by the switch based on the equal-cost multipath routing policy and the route advertisement information corresponding to the second soft load balancer.
It should be noted that the plurality of route advertisement messages includes route advertisement messages corresponding to the second soft load balancer.
In this embodiment, 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.
The total flow rate is the sum of the plurality of sets of flow rates.
In the embodiment of the application, the soft load device receives multiple groups of traffic issued by the switch based on the equal-cost multipath routing strategy and the routing advertisement information by using the multiple soft load equalizers.
It can be understood that, by setting a plurality of backup address information and establishing synchronous connection between the plurality of address information and the plurality of backup address information, it is possible to receive traffic belonging to a first soft load balancer by using a second soft load balancer in the case of a failure of the first soft load balancer in a soft load cluster; the traffic is forwarded to the corresponding service server by using the second soft load balancer, that is, the traffic is subjected to load balancing by using the second soft load balancer, and the traffic is highly available through the fine granularity to the traffic carried by one backup address information, so that the high availability of the soft load cluster is considered.
In the embodiment of the application, the soft load device receives multiple sets of traffic issued by the switch based on the equal-cost multi-path routing policy and the multiple route advertisement information by using the multiple soft load balancers, and distributes the multiple sets of traffic to the multiple sets of service servers by using the multiple soft load balancers respectively.
It should be noted that, a plurality of sets of traffic correspond to a plurality of sets of service servers one to one, and specifically, a set of traffic corresponds to a set of service servers.
It should be noted that the multiple groups of service servers include 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 multi-path routing policy and the route advertisement information corresponding to the second soft load balancer, so that the traffic values corresponding to the traffic received by the second soft load balancer and the traffic received by other soft load balancers in the soft load cluster except the second soft load balancer are the same, and the balance during traffic distribution is improved.
Exemplarily, as shown in fig. 3 (a): 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, and the address information 1 comprises a connection channel 1, a vmac1(Virtual Mac1), a vmac2(Virtual Mac2), a float IP1(floating IP1), a float IP1(floating IP2) and backup address information (backup IP 1); the address information 2 comprises a connection channel 2, vmac3(Virtual Mac3), vmac4(Virtual Mac4), float IP3(floating IP3), float IP4(floating IP4), and address information (backup IP 2); backup address information corresponding to the soft load balancer A is arranged in the soft load balancer B and comprises a connecting channel 1 and a backup address; backup address information corresponding to the soft load balancer A is set in the soft load balancer C and comprises a connecting channel 2 and a backup address; the soft load device allocates the traffic to the server for processing, and may further determine backup address information corresponding to the address information, that is, determine a backup address ip1 corresponding to the soft load balancer B and a backup address ip2 corresponding to the soft load balancer C, where the soft load device may receive the traffic 1 received by the address information 1 in the soft load device a by using the soft load balancer B, and receive the traffic 2 received by the address information 2 in the soft load device a by using the soft load balancer C.
Exemplarily, as shown in fig. 3 (b): backup address information 1 corresponding to the address information 1 in the soft load balancer A is the backup address information 1 in the soft load balancer B, and the address information 1 is provided with backup address information 1(backup ip-B) which points to the position of the backup address information 1 in the soft load balancer B; backup address information 2 corresponding to the address information 2 in the soft load balancer B is the 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 and 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 a fault (i.e., works normally), the address information 1 in the soft load balancer a is valid, and the backup address information 1 in the soft load balancer B is not valid, so that the traffic transmitted to the soft load balancer a by the switch can be received by the soft load balancer a, so as to balance the traffic load to the service server corresponding to the soft load balancer a. Under the condition that the soft load balancer B has no fault (i.e., works normally), the address information 2 in the soft load balancer B is valid, and the backup address information 2 in the soft load balancer C is not valid, so that the traffic transmitted to the soft load balancer B by the switch can be received by the soft load balancer B, so as to balance the traffic load to the service server corresponding to the soft load balancer B.
Illustratively, as shown in fig. 3 (c): under the condition that the soft load balancer A has a fault (hangs up), the front backup address information 1 in the soft load balancer B takes effect to become the address information 1 (namely, the address information 1 in the soft load balancer A fails), the soft load balancer B can receive the traffic belonging to the soft load balancer A through the address information 1, and the traffic is load-balanced to the service server corresponding to the soft load balancer A by using the soft load balancer B. After address information 1 in the soft load balancer B takes effect, backup address information corresponding to address information 1 in the soft load balancer B is backup address information 1 in the soft load balancer D, backup address information 1(backup ip-D) is set in address information 1 in the soft load balancer B, and backup address information 1 points to 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 takes effect, the backup address information 2 in the soft load balancer C does not take effect, 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 that the traffic is subjected to load balancing 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 the backup address information 2 in the soft load balancer C, the 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, for better understanding of the scheme of the present application, the following three mechanisms that implement fast handover of a traffic bearer (i.e., implement traffic take-over) according to the first way, the second way, and the third way will be described.
The first method is as follows: a control plane module (also called a configuration management module) is arranged in the soft load device, and the configuration, health state monitoring and traffic group master/standby state election of each soft load balancer in the soft load cluster are realized through the control plane module.
Illustratively, as shown in fig. 3(d), the control plane module implements a process of configuring the soft load cluster, including: the control plane module may generate different traffic group configuration information according to the user configuration, where each traffic group configuration information includes address information (i.e., address information in this embodiment includes, for example, flowip, vmac, etc.), a traffic backup purpose (backup ip), and the like. Then, the control plane module can configure each soft load balancer according to the policy, including the corresponding relation between each soft load balancer and the traffic group configuration information, to form a traffic group information table and a soft load device state information table, where the traffic group information table (traffic group 1 information table, traffic group 2 information table and traffic group 3 information table) is used to indicate the active/standby state of each traffic group (soft load balancer a in the traffic group 1 information table is in the active state, soft load balancer B in the standby state, soft load B in the traffic group 2 information table is in the active state, soft load balancer C in the standby state, soft load C in the traffic group 1 information table is in the active state, soft load a is in the standby state, that is, the traffic group should make active/standby configuration on which soft load balancers respectively, and the soft load device state information table (device state information table) is used to indicate the state of each soft load balancer as healthy or abnormal ((a device state information table) The states of soft load a, soft load B, and soft load C are healthy), as shown in fig. 3(d) by way of example, a traffic group information table and a soft load device state information table maintained by the control plane module. The control plane module may direct configuration updates for individual soft load balancers based on the two tables.
For example, as shown in fig. 3(e) and fig. 3(f), the implementing, by the control plane module, the health status monitoring on the soft load cluster includes: a heartbeat mechanism is maintained between a control plane module and each soft load balancer, each soft load balancer periodically reports the health state of the soft load balancer and the current active/standby state of the traffic group to the control plane module (the report information of the soft load balancer A (soft load A) to the control panel comprises a soft load A with the health state, the traffic group information comprises a traffic group 1-standby, a traffic group 2-standby and a traffic group 3-standby, the report information of the soft load balancer B (soft load B) to the control panel comprises a soft load B with the health state, the traffic group information comprises a traffic group 1-standby, a traffic group 2-standby and a traffic group 3-standby, and the report information of the soft load balancer C (soft load C) to the control panel comprises a soft load C with the soft load name, the status is healthy, and the traffic group information includes: traffic group 1-backup, traffic group 2-backup, and traffic group 3-backup), the control plane module may select the primary and backup roles of the traffic groups in different soft load equalizers according to the health states of the soft load equalizers, and further correct the primary and backup states of the traffic groups of the soft load equalizers, thereby obtaining the configuration result shown in fig. 3 (d). For example, fig. 3(e) exemplarily shows a scenario that each soft load balancer advertises its own health state and traffic group master/slave information to the control plane module at an initial time, fig. 3(f) exemplarily shows that the control plane module respectively issues updated traffic group master/slave information based on policies (the information advertised by the control plane module to the soft load a includes a soft load name of soft load a, traffic group information including traffic group 1 as master, traffic backup as primary, traffic group 2 as backup, and traffic group 3 as slave, the information advertised by the control plane module to the soft load B includes a soft load name of soft load B, traffic group information including traffic group 1 as backup, traffic group 2 as primary, traffic backup as soft load C, and traffic group 3 as slave, and the information advertised by the control plane module to the soft load C includes a soft load name of soft load C, traffic group information including traffic group 1 as backup, traffic group information, The flow group 2 is standby, the flow group 3 is main, and the purpose of flow backup is soft load A; ) And the scene of correcting the traffic group state of each soft load balancer is realized. It can be seen that, through policy processing and correction of the control plane module, determination and configuration of the active/standby states of the traffic group of each soft load balancer can be implemented, for example, through the processes in fig. 3(e) and fig. 3(f), the address information of the traffic group 1 is mainly in the soft load balancer a and is standby in the soft load balancer B; the address information of the flow group 2 is taken as the main address in the soft load balancer B and is taken as the standby address in the soft load balancer C; the address information of the traffic group 3 is mainly provided in the soft load balancer C and is provided in the soft load balancer a.
Under the condition that at least one soft load balancer is abnormal, if the soft load balancer A cannot carry out heartbeat communication with the control plane module due to faults or the health state notified to the control plane module by the soft load balancer A is abnormal, the control plane module can acquire the abnormality of the soft load balancer A based on the abnormality, and reconfigure the state of the relevant soft load balancer based on a strategy, so that the main state and the standby state of the soft load are switched, and the flow is rapidly switched.
As shown in fig. 3(g), an "traffic group 1" is configured as primary in soft load balancer a (soft load a) that normally carries traffic from the switch, and a "traffic group 1" is standby in load balancer B (soft load B). When the soft load balancer A fails, the control plane module automatically updates the self-maintained traffic group information table and the soft load equipment state information table based on a strategy and sends updated traffic group information to the soft load balancer B and the soft load balancer C (soft load C) because the control plane module does not receive a heartbeat signal of the soft load balancer A within a preset time or the soft load balancer A can send information but the information indicates that the soft load balancer A is abnormal (the information notified to the soft load B by the control plane module comprises that the soft load name is soft load B, the traffic group information is traffic group 1 is main, the traffic backup purpose is soft load C and traffic group 2 are main, the traffic backup purpose is soft load C and traffic group 3 is standby, the information notified to the soft load C by the control plane module comprises that the soft load name is soft load C, traffic group information: the flow group 1 is standby, the flow group 2 is standby, and the flow group 3 is main, and the purpose of flow backup is soft load A; ) Therefore, synchronous updating of the soft load balancer B and the soft load balancer C is facilitated, namely, the traffic group 1 in the soft load balancer B is updated from 'standby' to 'primary', the traffic backup purpose is the soft load balancer C, and the traffic backup purpose in the soft load balancer C is updated from 'soft load balancer a' to 'soft load balancer B'. At this time, the soft load balancer B is equivalent to activating the function of carrying the traffic of the "traffic group 1", the address information originally used as a backup is activated and enabled, so the traffic sent to the address information by the switch receives the soft load balancer B, and the soft load balancer B undertakes the original traffic receiving function of the soft load balancer a, so that the rapid switching between the main and standby soft load balancers is realized, the traffic switching is completed, the time delay of the above process is very short, and the switch is completely unaware, thereby ensuring the normal operation of the service without interruption.
In the second mode, there is no control plane module in the soft load device, and each soft load balancer in the soft load cluster can implement determination of the active/standby state of the traffic group of each soft load balancer by a self-election mode.
Specifically, after each soft load balancer in the soft load cluster completes the initial configuration, the heartbeat signals can be transmitted among the soft load balancers in a multicast mode, so that the transmission of traffic group information and health states among the soft load balancers on the data plane is realized. In this way, each soft load balancer in the cluster can know the traffic group configuration 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 balancer can adopt a priority election algorithm to calculate the main and standby roles of the own flow group according to the configuration condition and the current health state of each soft load balancer in the cluster, and then automatically self-correct the main and standby states of the own flow group based on the calculation result.
As shown in fig. 3(h), it is assumed that each soft load balancer has traffic group 1, traffic group 2, and traffic group 3 at initial configuration, and the initial state is "standby". After the mutual traffic group information transmission is completed (the soft load balancer A (soft load A) receives the notification information transmitted by the soft load balancer B (soft load B) and the soft load balancer C (soft load C), the soft load B receives the notification information transmitted by the soft load A and the soft load C, the soft load C receives the notification information transmitted by the soft load A and the soft load B), each soft load balancer autonomously updates the state (after the soft load A updates the preparation state, the traffic group 1 is main, the traffic backup purpose is soft load B, the traffic group 2 is standby, the traffic group 3 is standby, after the soft load B updates the preparation state, the traffic group 1 is standby, the traffic group 2 is standby, the traffic group 3 is main, and the traffic backup purpose is soft load A), soft load balancer a updates the traffic group status to: traffic group 1 is "primary", and the traffic backup purpose is soft load balancer B, and the remaining traffic groups are "standby"; soft load balancer B updates the traffic group status to: traffic group 2 is "primary", and the traffic backup purpose is soft load balancer C, and the remaining traffic groups are "standby"; the soft load balancer C updates the traffic group status to: traffic group 3 is "primary" and the traffic backup purpose is soft load balancer a, the remaining traffic groups are "backup".
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 a fault or the health state notified by the soft load balancer a to other soft load balancers is abnormal, other soft load balancers (such as the soft load balancer B and the soft load balancer C) can learn the abnormality of the soft load balancer a based on the health state. Then, further, the soft load balancer B and the soft load balancer C can update the main and standby roles of the own traffic group by adopting a priority election algorithm according to the configuration condition and the current health state of each soft load balancer in the cluster, so that the main and standby states of the soft load are switched, and traffic take-over is rapidly realized.
For example, as shown in fig. 3(i), in a 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, then the soft load balancer B and the soft load balancer C respectively calculate states of traffic groups and automatically update the traffic groups based on an algorithm, for example, the traffic group 1 in the soft load balancer B is updated from "standby" to "primary", and the traffic backup is for the soft load balancer C; in the soft load balancer B, the flow group 2 is unchanged, the flow group 2 is still the main flow group, and the purpose of flow backup is a soft load balancer C; in the soft load balancer B, the flow group 3 is not changed, and the flow group 3 is still reserved. The flow group 1 in the soft load balancer C is unchanged, and the flow group 1 is reserved; the flow group 2 in the soft load balancer C is unchanged, and the flow group 2 is reserved; traffic group 3 remains primary in soft load balancer C, but traffic backup purposes are updated from "soft load balancer a" to "soft load balancer B". At this time, the soft load balancer B is equivalent to activating the function of carrying the traffic of the "traffic group 1", the address information originally used as a backup is activated and enabled, so the traffic sent to the address information by the switch receives the soft load balancer B, and the soft load balancer B undertakes the original traffic receiving function of the soft load balancer a, so that the rapid switching between the main and standby soft load balancers is realized, the traffic switching is completed, the time delay of the above process is also very short, and the switch is completely unaware, thereby ensuring the normal operation of the service without interruption.
And the third mode can combine the first mode and the second mode, so that the stability and the reliability of a flow switching mechanism are further improved while the scheme is ensured to be realized. The cooperation of the first and second modes may be such that: a control surface module is arranged in the soft load equipment, and the configuration, the health state monitoring and the main/standby state selection of the flow group of each soft load balancer in the soft load cluster are realized through the control surface module. And 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 performs configuration and flow switching according to the first mode. And when the control plane module fails, the soft load equipment performs configuration and flow switching according to the second mode.
It can be understood that, in the event of a failure of a first soft load balancer in a soft load device, by determining a second soft load balancer having backup address information corresponding to address information in the first soft load balancer, traffic belonging to the first soft load balancer is received by using the second soft load balancer, and the traffic is forwarded to a corresponding service server by using the second soft load balancer, so as to implement a process of balancing traffic load, thereby implementing a fast handover of a traffic bearing main body (from one soft load to another soft load) during the failure, and increasing a speed when the traffic is load balanced. And the switch does not sense the switching process, thereby ensuring the continuity and no interruption of the service.
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 balancer of a plurality of soft load balancers in soft load equipment, and backup address information exists in any soft load balancer in the soft load equipment in at least one other soft load balancer of the plurality of soft load balancers; fig. 4 is a first flow chart of a traffic method provided in the embodiment of the present application, and as shown in fig. 4, the traffic processing method may include:
s201, under the condition that a first soft load balancer in the plurality of soft load balancers fails, determining a second soft load balancer corresponding to backup address information of address information in the first soft load balancer.
The traffic processing method provided by the embodiment of the application is suitable for a scene that the switch performs load balancing on a plurality of soft load balancers in the soft load equipment.
In the present embodiment, the switch may be implemented in various forms. For example, the switches described in this application may include devices with switch functionality such as servers.
In an embodiment of the present application, a soft load device includes a soft load cluster including a plurality of soft load balancers. The number of the soft load balancers in the soft load cluster may be two, or may be multiple, and the number of the soft load balancers in the specific soft load cluster may be determined according to actual situations, which is not limited in the embodiment of the present application.
In this embodiment of the application, the switch groups the total traffic to obtain a plurality of groups of traffic when receiving the total traffic transmitted by the client, and the switch specifically groups the total traffic to obtain a plurality of groups of traffic, so that the switch can group the total traffic according to the number of the plurality of route advertisement information corresponding to the plurality of soft load equalizers sent by the soft load device to obtain a plurality of groups of traffic; the switch can also group the total flow according to a preset flow distribution threshold value to obtain a plurality of groups of flows; the switch can also group the total flow according to other modes to obtain a plurality of groups of flows; the specific manner in which the switch groups the total traffic to obtain multiple groups of traffic may be determined according to actual conditions, which is not limited in this embodiment.
It should be noted that, in the process that the switch groups the total traffic according to the number of the plurality of route advertisement information corresponding to the plurality of soft load balancers sent by the soft load device to obtain the plurality of groups of traffic, the switch may group the total traffic according to the number of the plurality of route advertisement information sent by the soft load device through the equal-cost multi-path routing policy to obtain the plurality of groups of traffic.
In the embodiment of the present application, the total traffic may be the total traffic transmitted by the client at one time.
In this embodiment of the present application, the total traffic may be any information when the client accesses the server, for example, the total traffic may be access information of the client accessing a certain enterprise, may also be download information of software downloaded by the client on a certain platform, and may also be other information, and the specific total traffic may be determined according to an actual situation, which is not limited in this embodiment of the present application.
S202, sending the traffic originally belonging to the first soft load balancer to the second soft load balancer, and forwarding the traffic to the corresponding service server by using the second soft load balancer.
In this embodiment of the present application, when the switch determines that there is a second soft load balancer corresponding to backup address information of address information in a first soft load balancer when 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 that the second soft load balancer forwards the traffic to a corresponding service server.
It should be noted that the plurality of soft load balancers includes a second soft load balancer; the sets of traffic comprise traffic.
In an embodiment of the application, the address information comprises a floating IP address and/or a virtual MAC address.
It should be noted that the address information of each soft load balancer is multiple address information, and the multiple address information includes a floating IP address and/or multiple virtual MAC addresses.
It can be understood that a plurality of floating IP addresses can be transferred between different network ports, and a plurality of virtual MAC addresses are not bound to a specific network port, so that traffic can be migrated without being limited by a physical device, 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 balancer to a second soft load balancer according to the plurality of floating IP addresses and the plurality of virtual MAC addresses, so as to forward the traffic to a corresponding service server by using the second soft load balancer, thereby quickly achieving speed in traffic load balancing.
In this embodiment of the present application, a process of a switch sending traffic originally belonging to a first soft load balancer to a second soft load balancer includes: the switch issues traffic to the second soft load balancer based on the equal cost multi-path routing strategy and the route advertisement information.
In the embodiment of the application, the switch issues multiple groups of traffic to multiple soft load balancers based on the equal-cost multipath routing strategy and the route advertisement information.
In this embodiment, the Equal-cost multi-path routing policy may specifically be Equal-cost multi-path routing (ECMP).
In this embodiment of the present application, the switch is further provided with an ECMP device, and the switch may start the ECMP device when receiving a plurality of route advertisements corresponding to a plurality of soft load balancers sent by the soft load device, and perform route learning on the plurality of route advertisements by using the ECMP device according to an equal-cost multi-path routing policy to obtain a plurality of route advertisement information. Under the condition that the switch receives the total traffic sent by the client, the switch can group the total traffic to obtain multiple groups of traffic, so that the multiple groups of traffic are distributed to multiple groups of service servers by utilizing the multiple soft load balancers.
In the embodiment of the present application, a plurality of route advertisements correspond to a plurality of route advertisement information one to one, and specifically, one route advertisement corresponds to one route advertisement information.
In this 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 a soft load cluster, and for example, the plurality of route information includes a plurality of virtual service IP addresses of the plurality of soft load balancing devices.
It can be understood that the switch issues multiple sets of traffic to the multiple soft load equalizers through the equal-cost multipath routing policy and the multiple route advertisement information to issue the total traffic to the multiple soft load equalizers on average, so that the multiple soft load equalizers can obtain the same traffic value of the multiple sets of traffic, and the balance during traffic distribution is improved.
In this embodiment of the present application, when a switch fails, before determining that there is a second soft load balancer corresponding to backup address information of address information in a first soft load balancer, the switch further receives route advertisement information corresponding to each soft load balancer, where the route advertisement information is sent by a soft load device.
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 multiple route advertisement information. The plurality of route advertisement messages comprise 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, the switch receives a plurality of route advertisement messages including a plurality of floating IP addresses and a plurality of virtual service IP addresses corresponding to a plurality of soft load balancers sent by the soft load device, and the switch can obtain a traffic next hop address and a traffic destination address corresponding to the plurality of soft load balancers through the plurality of route advertisement messages, so as to implement a load balancing process using the soft load balancers and a plurality of groups of service servers according to the traffic next hop address and the traffic destination address, thereby improving the availability of the soft load device and the performance of the soft load device.
Illustratively, an exemplary information processing method flowchart 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 when 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 an equivalent multipath routing strategy to obtain a plurality of route advertisement information.
3. The switch receives the total traffic sent by the client.
4. The switch groups the total flow to obtain a plurality of groups of flows.
5. And the soft load equipment distributes the multiple groups of flows to the multiple groups of service servers by utilizing the multiple soft load balancers respectively under the condition that the multiple soft load balancers receive the multiple groups of flows issued by the switch based on the equal-cost multi-path routing strategy and the multiple routing notification information.
It can be understood that, in the traffic processing method in the embodiment of the present application, the switch supporting the ECMP is first used to load the plurality of soft loads, and then the plurality of soft loads are used to load the plurality of service servers, so that the load balancing in the present application is a dual-layer load balancing (that is, the first layer is used to load the plurality of soft loads by using the ECMP, and the second layer is used to load the plurality of servers by using the plurality of soft loads), so as to transmit the total traffic to the plurality of groups of service servers, thereby improving the availability and the soft load performance when the soft loads are used to perform load balancing.
It can be understood that, when the switch determines that the first soft load balancer in the soft load cluster has a fault, 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, thereby implementing seamless switching of traffic bearing main bodies (switching from one soft load to another soft load) during the fault, and improving the speed of load balancing on the traffic. And the switch does not sense the switching process, thereby ensuring the continuity and no interruption of the service.
EXAMPLE III
An embodiment of the present application provides a configuration method for a soft load device, which is applied to a soft load device, where the soft load device includes a control plane module (or called configuration management module), where the control plane module is used to implement configuration of a soft load cluster in the soft load device, and fig. 6 is a flowchart of a configuration method for the soft load device, where as shown in fig. 6, the configuration method for the soft load device includes:
s301, acquiring multiple groups of address information to be configured; each set of address information includes 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 multiple 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 equipment based on the plurality of groups of address information, so that the address information owned by any soft load balancer has backup address information in other at least one soft load balancer of the plurality of soft load balancers.
In the embodiment of the application, the soft load balancer with the backup address information takes over the soft load balancer to receive traffic when the soft load balancer with the 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 include a first soft load balancer and a second soft load balancer having backup address information corresponding to the address information in the first soft load balancer, and in the case of a failure of the first soft load balancer, the second soft load balancer is used for taking over the first soft load balancer to receive traffic.
In this embodiment of the present application, a process of configuring multiple soft load balancers deployed in a soft load device based on multiple 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 multiple soft load balancers, includes: the control plane module distributes the multiple groups of address information to each soft load balancer; wherein, each group of address information is at least distributed to two soft load balancers; the control plane module carries out master-slave election on the soft load balancer with the same address information to obtain a master-slave state result; the control plane module updates the main/standby state result to the soft load balancers with the same address information, so that the address information of any soft load balancer has backup address information in other at least one soft load balancer of the soft load balancers.
In the embodiment of the present application, a specific real-time process of the configuration flow is shown in fig. 7:
and S1, generating the traffic group configuration information according to the user configuration.
It should be noted that the control plane module generates multiple sets of traffic group configuration information corresponding to each traffic group according to the user configuration information, where each set of traffic group configuration information includes address information, and the address information includes a floating IP address and a virtual MAC address.
And S2, distributing the traffic group configuration information.
It should be noted that, the control plane module forms a corresponding relationship between each traffic group and the soft load balancer based on a policy, and allocates the configuration information of multiple traffic groups of each traffic group to each soft load balancer of the cluster, and the specific allocation manner is not limited in this 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 balancer with the same traffic group (i.e. with the same address information), the active/standby state of its traffic group is not yet finally determined, and may be a default state (e.g. default to both the active/standby traffic groups).
And S3, selecting the main and standby flow groups respectively.
It should be noted that the control plane module may select the active/standby state of the same traffic group in each soft load balancer according to a specific algorithm according to the health state of the soft load balancers of each cluster, to obtain an active/standby state result, where the result indicates that one of the traffic groups is a main traffic group, address information in the main traffic group is main address information (or directly referred to as address information herein), the rest are standby traffic groups (or referred to as backup traffic groups), and address information in the standby traffic groups is backup address information.
And S4, updating the master-backup state of the flow group in the soft load.
It should be noted that the control plane module issues the active/standby state results to each soft load balancer, so that the soft load balancers update the active/standby state of the traffic group, for example, the traffic group information table described in fig. 3(d), which is not described herein again. It should be noted 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.
And S5, periodically reporting the primary and standby traffic group information and the equipment state information.
Each soft load balancer can regularly feed back own flow group information, equipment state information and the like to the control plane module, so that when some soft load balancers are abnormal, the soft load balancers reselect the primary and standby states of the flow groups and update the soft load balancers. As described in fig. 3(e) -3 (g), details are not repeated here.
Example four
Based on the same inventive concept of the second embodiment, the second embodiment of the present application provides a soft load device 1, where the soft load device 1 includes a plurality of soft load equalizers, and each soft load equalizer is provided with corresponding address information, where the address information in any soft load equalizer has backup address information in at least one other soft load equalizer of the plurality of soft load equalizers, and corresponds to a traffic processing method applied to the soft load device; fig. 8 is a schematic structural diagram of a soft load device according to an embodiment of the present application, where the soft load device 1 may include:
a first determining unit 11, configured to determine, when a first soft load balancer in the plurality of soft load balancers fails, a second soft load balancer in which 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 to receive traffic by using the second soft load balancer;
and a forwarding unit 13, configured to forward the traffic to a corresponding service server.
In some embodiments of the present application, the address information includes a floating IP address and/or a virtual MAC address.
In some embodiments of the present application, the apparatus further comprises a second transmitting unit;
the second sending unit is configured to send, to the switch, route advertisement information corresponding to each soft load balancer, where the route advertisement 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, by using the second soft load balancer, the traffic sent 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, by using the plurality of soft load balancers, a plurality of sets of traffic sent by the switch based on an equal-cost multi-path routing policy and route advertisement information.
In some embodiments of the present application, the traffic is at least one of a plurality of sets of traffic transmitted by the switch to the plurality of soft load balancers, and 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; the total flow is the sum of the multiple groups of flows.
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 implemented by a CPU (Central Processing Unit), an MPU (Microprocessor Unit), a DSP (Digital Signal Processing) or a Field Programmable Gate Array (FPGA); the above-described data storage may be implemented by the memory 15 on the soft-load device 1.
An embodiment of the present application further provides a soft load device 1, as shown in fig. 9, where the soft load device 1 includes: a processor 14, a memory 15 and a communication bus 16, the memory 15 communicating with the processor 13 via the communication bus 16, the memory 15 storing a program executable by the processor 14, the program, when executed, performing the traffic processing method as described above via the processor 14.
In practical applications, the Memory 15 may be a volatile Memory (volatile Memory), 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 Drive (SSD); or a combination of the above types of memories and provides instructions and data to processor 14.
The present embodiment provides a computer readable storage medium, on which a computer program is stored, and the program is executed by the processor 14 to implement the traffic processing method as described above.
It can be understood that, in the case of a failure of a first soft load balancer in a soft load device, by determining a second soft load balancer having backup address information corresponding to address information in the first soft load balancer, traffic belonging to the first soft load balancer is received by using the second soft load balancer, and the traffic is forwarded to a corresponding service server by using the second soft load balancer, so as to implement a process of balancing traffic load.
EXAMPLE five
Based on the same inventive concept of the embodiments, the embodiments of the present application provide a switch 2, where the switch includes address information of each soft load balancer in soft load devices, and the address information of any one of a plurality of soft load balancers in the soft load devices 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 to the switch; fig. 10 is a schematic structural diagram of a switch provided in an embodiment of the present application, where the switch 2 may include:
a second determining unit 21, configured to determine, when a first soft load balancer of the multiple soft load balancers fails, a second soft load balancer corresponding to backup address information of address information in the first soft load balancer;
a first sending unit 22, configured to send 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.
In some embodiments of the present application, the address information includes a floating IP address and/or a virtual MAC address.
In some embodiments of the present application, the switch further comprises a second receiving unit;
the second receiving unit is configured to receive route advertisement information corresponding to each soft load balancer, where the route advertisement 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 issue the traffic to the second soft load balancer based on an equal cost multi-path routing policy and the route advertisement information.
In some embodiments of the present application, the first sending unit 22 is configured to issue the sets of traffic to the plurality of soft load balancers based on an equal cost multi-path routing policy and route advertisement information.
In practical applications, the second determining Unit 21 and the first sending Unit 22 may be implemented by a processor 23 on the switch 2, specifically implemented by a Central Processing Unit (CPU), an MPU (Microprocessor), a Digital Signal Processing (DSP), a Field Programmable Gate Array (FPGA), or the like; the data storage described above may be implemented by memory 24 on switch 2.
An embodiment of the present application further provides a switch 2, as shown in fig. 11, the switch 2 includes: a processor 23, a memory 24 and a communication bus 25, the memory 24 communicating with the processor 23 through the communication bus 25, the memory 24 storing a program executable by the processor 23, the program, when executed, performing the traffic processing method as described above through the processor 24.
In practical applications, the Memory 24 may be a volatile Memory (volatile Memory), 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 Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor 23.
The present embodiment provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by the processor 23, the method for processing traffic as described above is implemented.
It can be understood that, when the switch determines that the first soft load balancer in the soft load cluster has a fault, 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, thereby implementing seamless switching of traffic bearing main bodies (switching from one soft load to another soft load) during the fault, and improving the speed of load balancing on the traffic. And the switch does not sense the switching process, thereby ensuring the continuity and no interruption of the service.
It should be noted that, for better understanding of the solution of the present application, the embodiments herein are mainly discussed in a manner that the address information as a backup includes 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 embodiments of the present application. In particular implementation, persons skilled in the art can also make appropriate changes, modifications and adjustments based on the design idea of the present application, and the changes, modifications and adjustments should be understood as falling within the protection scope of the present application. A brief description is provided below.
Illustratively, as shown in fig. 12, in one possible variation, the address information that is designed as a backup may include only a backup of the floating IP. While the virtual MAC address is not backed up. The backup traffic group in the above embodiment will only include the floating IP and not the virtual MAC address, i.e. the floating IP is flexible and the virtual MAC address is fixed. Illustratively, taking the cluster including a soft load balancer a (soft load a) and a soft load balancer B (soft load B) as an example, after the initial configuration of the cluster is completed, the main traffic group 1 of the configuration of the soft load a includes a floating IP (float IP1), and the virtual MAC address of the soft load a is vmac 1. A standby flow group 1 corresponding to the main flow group 1 exists in the soft load B, and the standby flow group 1 comprises float ip 1; the virtual MAC address of soft payload B is vmac 2. In addition, the self-configured primary traffic group 2 in 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 vmac 2. That is, the traffic to soft load a takes "float ip1 and vmac 1" as the next hop address, and the traffic to soft load B takes "float ip2 and vmac 2" 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 enabled, 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 vmac2, so that the switch updates the address information maintained by the switch. In this way, the original traffic flowing to the soft load a will use "float ip1, vmac 2" as the next hop address, i.e. flow to the soft load B, so that when the soft load a fails, the soft load B takes over the traffic of the soft load a.
In the embodiment of the present application, the process of notifying the switch of the correspondence between float ip1 and vmac2 by the soft load B includes two ways:
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 broadcasts an ARP (Address Resolution Protocol) notification to the outside, so as to notify the switch that the mac Address corresponding to the float ip1 is vmac2 (i.e., the physical Address of the soft load B), and thus the switch can update the Address information table, thereby implementing traffic switching.
Another way is that when the soft load a fails and the backup traffic group in the soft load B is enabled, if the soft load B receives an ARP request (e.g., a periodic ARP request from a switch) for the boot ip1, the soft load B will recover the ARP reply and tell the requesting party that the mac address corresponding to the boot ip1 is vmac 2. Thus, the exchanger can update the address information table, thereby realizing the flow switching.
It should be noted that, in other possible design manners of the present application, the backup address information may also include only the backup of the virtual MAC address. The detailed description is not repeated.
As will be appreciated by one skilled in the art, 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, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.

Claims (20)

1. A traffic processing method is applied to soft load equipment, wherein the soft load equipment is provided with a plurality of soft load balancers, each soft load balancer is provided with corresponding address information, and the address information of any soft load balancer has backup address information in at least one other soft load balancer of the soft load balancers; the method comprises the following steps:
under the condition that a first soft load balancer in the plurality of soft load balancers fails, determining a second soft load balancer with backup address information corresponding to the address information in the first soft load balancer;
receiving traffic with the second soft load balancer in lieu of the first soft load balancer; and forwarding the traffic to a corresponding service server.
2. The method of claim 1, wherein before determining that there is a second soft load balancer with backup address information corresponding to address information in the first soft load balancer when the first soft load balancer fails, the method further comprises:
and sending route advertisement information corresponding to each soft load balancer to the switch, wherein the route advertisement information comprises a floating IP address and a virtual service IP address corresponding to each soft load balancer.
3. The method of claim 2, wherein said overriding the first soft load balancer with the second soft load balancer to receive traffic comprises:
and receiving the flow issued by the switch based on the equal-cost multi-path routing strategy and the routing advertisement information by utilizing the second soft load balancer.
4. The method of claim 1, further comprising:
and receiving a plurality of groups of flows issued by the switch based on the equal-cost multi-path routing strategy and the routing notification information by utilizing the soft load balancers.
5. The method according to any of claims 1-4, wherein the traffic is at least one of a plurality of sets of traffic transmitted by the switch to the plurality of soft load balancers, and 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; the total flow is the sum of the multiple groups of flows.
6. The method according to any of claims 1-4, wherein the address information comprises a floating IP address and/or a virtual MAC address.
7. A traffic processing method is applied to a switch, the switch comprises address information of each soft load balancer of a plurality of soft load balancers in soft load equipment, and backup address information exists in any soft load balancer in the soft load equipment in at least one other soft load balancer of the plurality of soft load balancers; the method comprises the following steps:
determining a second soft load balancer corresponding to backup address information of address information in a first soft load balancer when the first soft load balancer in the plurality of soft load balancers fails;
and sending the traffic originally belonging to the first soft load balancer to the second soft load balancer, so that the second soft load balancer is utilized to forward the traffic to a corresponding service server.
8. The method of claim 7, wherein, in a case where a first soft load balancer of the plurality of soft load balancers fails, before determining that there exists a second soft load balancer corresponding to backup address information of address information in the first soft load balancer, further comprising:
and receiving route advertisement information corresponding to each soft load balancer sent by the soft load equipment, wherein the route advertisement information comprises a floating IP address and a virtual service IP address corresponding to each soft load balancer.
9. The method of claim 8, wherein sending traffic originally owned by the first soft load balancer to the second soft load balancer comprises:
and issuing the flow to the second soft load balancer based on an equivalent multipath routing strategy and the route notification information.
10. The method of claim 7, further comprising:
and issuing the plurality of groups of traffic to the plurality of soft load balancers based on the equal-cost multi-path routing strategy and the routing advertisement information.
11. The method according to any of claims 7-10, wherein the address information comprises a floating IP address and/or a virtual MAC address.
12. A method of configuring a soft load device, the method comprising:
acquiring a plurality of groups of address information to be configured; 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 groups of address information, so that the address information owned by any soft load balancer has backup address information in other at least one soft load balancer of the plurality of soft load balancers.
13. The method of claim 12, wherein the backup address information indicates that the soft load balancer that has the corresponding address information takes over receiving traffic for the soft load balancer when the soft load balancer fails.
14. The method of claim 13, 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, and wherein the second soft load balancer is configured to take over receiving traffic from the first soft load balancer in case of a failure of the first soft load balancer.
15. The method according to any of claims 12-14, wherein 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 soft load balancer has backup address information in at least one other soft load balancer of the plurality of soft load balancers comprises:
distributing the multiple groups of address information to each soft load balancer; wherein, each group of address information is at least distributed to two soft load balancers;
carrying out master-slave election on the soft load balancer with the same address information to obtain a master-slave state result;
and updating the main/standby state result to the soft load balancers with the same address information, so that the address information of any soft load balancer has backup address information in at least one other soft load balancer of the soft load balancers.
16. A soft load device is characterized in that the soft load device is deployed with a plurality of soft load balancers, each soft load balancer 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 the method comprises the following steps:
a first determining unit, configured to determine, when a first soft load balancer of the multiple soft load balancers fails, a second soft load balancer in which backup address information corresponding to address information in the first soft load balancer exists;
a first receiving unit, configured to receive traffic by using the second soft load balancer to take over the first soft load balancer;
and the forwarding unit is used for forwarding the flow to the corresponding service server.
17. A switch, the switch comprising address information for each of a plurality of soft load balancers in a soft load device, the address information in any of the plurality of soft load balancers in the soft load device having backup address information in at least one other soft load balancer in the plurality of soft load balancers, comprising:
a second determining unit, configured to determine, when a first soft load balancer of the multiple soft load balancers fails, a second soft load balancer corresponding to backup address information of address information in the first soft load balancer;
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 the corresponding service server by using the second soft load balancer.
18. A soft load device, comprising:
a first memory, a first processor and a first communication bus, the first memory communicating with the first processor through the first communication bus, the first memory storing a program of traffic processing executable by the first processor, the method of any of claims 1 to 6 being performed by the first processor when the program of traffic processing is executed by a soft load device.
19. A switch, characterized in that the switch comprises:
a second memory, a second processor, and a second communication bus, the second memory communicating with the second processor through the second communication bus, the second memory storing a program of traffic processing executable by the second processor, the method of any of claims 7 to 11 being performed by the second processor when the program of traffic processing is executed by a switch.
20. A storage medium on which a computer program is stored for use in a soft load device, wherein the computer program, when executed by a first processor, implements the method of any one of claims 1 to 6; or to a switch, characterized in that the computer program, when executed by the second processor, implements the method of any of claims 7 to 11.
CN202111242995.9A 2021-10-25 2021-10-25 Flow processing method, switch, soft load equipment and storage medium Pending CN114079636A (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (1)

Publication Number Publication Date
CN114079636A true CN114079636A (en) 2022-02-22

Family

ID=80283847

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN114079636A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115514767A (en) * 2022-09-27 2022-12-23 上汽通用五菱汽车股份有限公司 Data transmission switching method, terminal equipment and computer readable storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050265230A1 (en) * 2004-06-01 2005-12-01 Samsung Electronics Co., Ltd. Apparatus and method for performing state transition of backup router in router redundancy system
US7647427B1 (en) * 2002-10-18 2010-01-12 Foundry Networks, Inc. Redundancy support for network address translation (NAT)
WO2011103837A2 (en) * 2011-04-19 2011-09-01 华为技术有限公司 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
CN103259740A (en) * 2013-04-27 2013-08-21 杭州华三通信技术有限公司 Load balancing processing method and device
CN103346903A (en) * 2013-06-20 2013-10-09 北京捷成世纪科技股份有限公司 Dual-machine backup method and device
CN103560907A (en) * 2013-10-23 2014-02-05 曙光信息产业(北京)有限公司 Management method and device for double machine load balancing devices
CN105847143A (en) * 2016-06-06 2016-08-10 北京博维亚讯技术有限公司 VRRP (virtual router redundancy protocol)-based load balancing method and system
CN107454155A (en) * 2017-07-25 2017-12-08 北京三快在线科技有限公司 A kind of fault handling method based on load balancing cluster, device and system
CN107995123A (en) * 2016-10-27 2018-05-04 贵州白山云科技有限公司 A kind of SiteServer LBS and method based on interchanger
WO2018120800A1 (en) * 2016-12-29 2018-07-05 华为技术有限公司 Load balancing method, device and system
CN112311907A (en) * 2020-11-18 2021-02-02 深信服科技股份有限公司 ARP request response method, load balancing equipment and related device
CN112995054A (en) * 2021-03-03 2021-06-18 北京奇艺世纪科技有限公司 Flow distribution method and device, electronic equipment and computer readable medium

Patent Citations (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)
US20050265230A1 (en) * 2004-06-01 2005-12-01 Samsung Electronics Co., Ltd. Apparatus and method for performing state transition of backup router in router redundancy system
WO2011103837A2 (en) * 2011-04-19 2011-09-01 华为技术有限公司 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
CN103259740A (en) * 2013-04-27 2013-08-21 杭州华三通信技术有限公司 Load balancing processing method and device
CN103346903A (en) * 2013-06-20 2013-10-09 北京捷成世纪科技股份有限公司 Dual-machine backup method and device
CN103560907A (en) * 2013-10-23 2014-02-05 曙光信息产业(北京)有限公司 Management method and device for double machine load balancing devices
CN105847143A (en) * 2016-06-06 2016-08-10 北京博维亚讯技术有限公司 VRRP (virtual router redundancy protocol)-based load balancing method and system
CN107995123A (en) * 2016-10-27 2018-05-04 贵州白山云科技有限公司 A kind of SiteServer LBS and method based on interchanger
WO2018120800A1 (en) * 2016-12-29 2018-07-05 华为技术有限公司 Load balancing method, device and system
CN107454155A (en) * 2017-07-25 2017-12-08 北京三快在线科技有限公司 A kind of fault handling method based on load balancing cluster, device and system
CN112311907A (en) * 2020-11-18 2021-02-02 深信服科技股份有限公司 ARP request response method, load balancing equipment and related device
CN112995054A (en) * 2021-03-03 2021-06-18 北京奇艺世纪科技有限公司 Flow distribution method and device, electronic equipment and computer readable medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115514767A (en) * 2022-09-27 2022-12-23 上汽通用五菱汽车股份有限公司 Data transmission switching method, terminal equipment and computer readable storage medium

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
CN101316236B (en) Vrrp backup group load sharing method and router
JP6608545B2 (en) Service traffic distribution method and apparatus
EP1652354B1 (en) Distributing and balancing traffic flow in a virtual gateway
CN102158386B (en) Distributed load balance for system management program
US8549120B2 (en) System and method for location based address assignment in the distribution of traffic in a virtual gateway
CN102333027B (en) Traffic load sharing realization method based on virtual router redundancy protocol extend (VRRPE) backup group and realization apparatus thereof
US10979285B2 (en) Service transmission method, device, and system
US20100217866A1 (en) Load Balancing in a Multiple Server System Hosting an Array of Services
CN103259740B (en) A kind of load balance process method and device
JP2012249213A (en) Ip address assignment system and ip address assignment method
CN110225137B (en) Service request processing method, system, server and storage medium
US20220131935A1 (en) Service Unit Switching Method, System, and Device
CN105721328B (en) VRRP load balancing method, device and router
WO2014075549A1 (en) Traffic Distribution for an Edge Device
CN114079636A (en) Flow processing method, switch, soft load equipment and storage medium
US10333867B2 (en) Active-active load-based teaming
CN113572830A (en) Address allocation method, address allocation system, and computer-readable storage medium
CN113098788B (en) Method and device for releasing route
CN104780097A (en) Method for hot standby under non-fully-connected network topology condition and first router equipment
CN114900526A (en) Load balancing method and system, computer storage medium and electronic device
US20070008970A1 (en) Packet data router apparatus and method
US10212079B2 (en) Router advertisement caching
CN113595760B (en) System fault processing method and device

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