Load balancing method and device, equipment, storage medium and product

By dynamically adjusting the number of equal-cost forwarding servers to cope with ultra-large-scale traffic, the problem of low utilization of load balancing equipment after traffic surges is solved, and efficient utilization of hardware resources and cost reduction are achieved.

CN118784580APending Publication Date: 2024-10-15CHINA MERCHANTS BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411115052.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing ultra-large-scale traffic load balancing equipment has low equipment utilization after traffic surges, resulting in a waste of hardware resources.

Method used

By receiving the traffic batches to be processed from the traffic source and allocating them to a corresponding number of equal-cost forwarding servers, the number of servers is dynamically adjusted according to the traffic load to achieve expansion and contraction of forwarding capabilities and avoid waste of hardware resources.

Benefits of technology

It significantly improves the utilization rate of hardware resources of load balancing equipment, enables flexible response to ultra-large-scale traffic, and reduces hardware costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784580A_ABST
    Figure CN118784580A_ABST
Patent Text Reader

Abstract

The invention discloses a load balancing method and device, equipment, a storage medium and a product, and relates to the technical field of information, and the load balancing method comprises the steps that to-be-processed flow batches of a flow source end are received, the to-be-processed flow batches are distributed to a corresponding number of equivalent forwarding servers, and the equivalent forwarding servers are used for forwarding the to-be-processed flow batches; the equivalent forwarding servers are used for forwarding the to-be-processed flow batches to the corresponding flow receiving ends respectively, and the flow load size of the to-be-processed flow batches and the corresponding number of the equivalent forwarding servers have a corresponding relation; the equivalent forwarding server is obtained by configuring the forwarding server based on preset equivalent routing configuration information, and the function level of the forwarding server is lower than that of the existing load balancing hardware equipment. By dynamically adjusting the number of the equivalent forwarding servers, the hardware resource equipment utilization rate of the load balancing equipment coping with super-large-scale traffic is remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information technology, and in particular to a load balancing method, device, equipment, storage medium and product. Background Art

[0002] With the cloud transformation of enterprise information technology architecture, the application delivery field is facing unprecedented challenges and opportunities. When dealing with cloud scenarios such as big data analysis platforms and distributed object storage, data centers often need to cope with the application delivery needs of ultra-large-scale traffic. Currently, many medium and large data centers generally use professional load balancing hardware devices to meet the needs of application delivery of ultra-large-scale traffic.

[0003] In the cloud computing environment, the dramatic fluctuations in traffic have put forward higher requirements for the flexibility and elasticity of the application delivery system. During certain periods (such as during large-scale promotions), traffic may surge to hundreds of times the usual level in a short period of time. Traditional solutions usually use hardware load balancing solutions to cope with the application delivery needs of ultra-large-scale traffic. By configuring a single dedicated load balancing hardware device that supports the delivery of ultra-large-scale traffic, the ultra-large-scale traffic is load balanced to meet the application delivery needs of ultra-large-scale traffic. However, there is a problem of low equipment utilization and serious waste of hardware resources after the ultra-large-scale traffic.

[0004] Therefore, how to solve the low utilization rate of hardware resources of load balancing devices that cope with ultra-large-scale traffic is a problem that needs to be solved urgently.

[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0006] The main purpose of this application is to provide a load balancing method, device, equipment, storage medium and product, aiming to solve the technical problem of load balancing for ultra-large-scale traffic.

[0007] To achieve the above object, the present application proposes a load balancing method, the method comprising:

[0008] Receive batches of unprocessed traffic from a traffic source end, and distribute the batches of unprocessed traffic to a corresponding number of equivalent forwarding servers, so that the corresponding number of equivalent forwarding servers respectively forward the batches of unprocessed traffic to corresponding traffic receiving ends, wherein there is a corresponding relationship between the traffic load size of the batches of unprocessed traffic and the corresponding number of the equivalent forwarding servers, and the equivalent forwarding servers are obtained by configuring the forwarding servers based on preset equivalent routing configuration information, and the functional level of the forwarding servers is lower than that of existing load balancing hardware devices.

[0009] In one embodiment, the step of receiving a batch of traffic to be processed from a traffic source end and allocating the batch of traffic to be processed to a corresponding number of equivalent forwarding servers so that the corresponding number of equivalent forwarding servers respectively forward the batch of traffic to be processed to the corresponding traffic receiving end includes:

[0010] Receive batches of traffic to be processed from the cloud server sender;

[0011] The batches of traffic to be processed are distributed to a corresponding number of equivalent forwarding servers, so that the corresponding number of equivalent forwarding servers respectively forward the batches of traffic to be processed to the local server receiving end.

[0012] In one embodiment, the step of receiving a batch of traffic to be processed from a traffic source end and allocating the batch of traffic to be processed to a corresponding number of equivalent forwarding servers so that the corresponding number of equivalent forwarding servers respectively forward the batch of traffic to be processed to the corresponding traffic receiving end includes:

[0013] Receive batches of traffic to be processed from the local server sender;

[0014] The batches of traffic to be processed are distributed to a corresponding number of equivalent forwarding servers, so that the corresponding number of equivalent forwarding servers can respectively forward the batches of traffic to be processed to a cloud server receiving end.

[0015] In one embodiment, the step of receiving a batch of traffic to be processed from a traffic source and allocating the batch of traffic to be processed to a corresponding number of equivalent forwarding servers includes:

[0016] Receiving traffic load size information of a traffic batch to be processed;

[0017] If the traffic load size information is higher than a preset range, the corresponding number of equivalent forwarding servers processing the traffic batch is increased through a first preset solution;

[0018] If the traffic load size information is lower than a preset range, the corresponding number of equivalent forwarding servers processing the traffic batch is reduced through a second preset solution.

[0019] In one embodiment, the step of allocating the batches of traffic to be processed to a corresponding number of equivalent forwarding servers includes:

[0020] Receive request information from the traffic source;

[0021] Verify whether there is a security threat in the request information through a preset security verification algorithm;

[0022] If the security threat is detected, the security threat is processed through a preset security mechanism to prevent the request information from being forwarded to an equivalent forwarding server;

[0023] If the security threat is not detected, verifying whether the request information complies with the preset access rights;

[0024] If the access permission is met, the request information is sent to the equivalent forwarding server.

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

[0026] Obtain key performance indicators for each equal-cost forwarding server;

[0027] When the key performance indicator is lower than a preset threshold, the corresponding equivalent forwarding server is marked as a faulty server;

[0028] Evenly distribute the to-be-processed traffic of the failed server to other normally operating equivalent forwarding servers.

[0029] In addition, to achieve the above purpose, the present application also proposes a load balancing device, the load balancing device comprising:

[0030] A configuration module is used to receive batches of unprocessed traffic from a traffic source end, and distribute the batches of unprocessed traffic to a corresponding number of equivalent forwarding servers, so that the corresponding number of equivalent forwarding servers respectively forward the batches of unprocessed traffic to corresponding traffic receiving ends, wherein there is a corresponding relationship between the traffic load size of the batches of unprocessed traffic and the corresponding number of the equivalent forwarding servers, and the equivalent forwarding servers are obtained by configuring the forwarding servers based on preset equivalent routing configuration information, and the functional level of the forwarding servers is lower than that of existing load balancing hardware devices.

[0031] In addition, to achieve the above objectives, the present application also proposes a load balancing device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the load balancing method described above.

[0032] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the load balancing method described above are implemented.

[0033] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the load balancing method described above are implemented.

[0034] One or more technical solutions proposed in this application have at least the following technical effects:

[0035] Compared with the related technology, in the existing technical scheme, load balancing of ultra-large-scale traffic is performed by configuring a single dedicated load balancing hardware device that supports the delivery of ultra-large-scale traffic to meet the application delivery requirements of ultra-large-scale traffic. The present application sends equivalent routing configuration information to multiple forwarding servers with lower functional levels than the existing load balancing hardware devices to obtain configured equivalent forwarding servers; receives batches of pending traffic from the traffic source end, and distributes the batches of pending traffic to a corresponding number of equivalent forwarding servers, so that the corresponding number of equivalent forwarding servers respectively forward the batches of pending traffic to the corresponding traffic receiving ends. It is understandable that the present application adopts the method of allocating the batches of traffic to be processed to a corresponding number of equivalent forwarding servers, wherein there is a corresponding relationship between the traffic load size of the batches of traffic to be processed and the corresponding number of the equivalent forwarding servers. Since the equivalent forwarding servers are logically completely equivalent, the forwarding capacity can be expanded or reduced by adjusting the number of equivalent forwarding servers used to complete the application delivery of ultra-large-scale traffic loads, and by obtaining the traffic load size of the batches of traffic to be processed, the number of corresponding equivalent forwarding servers can be dynamically adjusted, thereby avoiding serious waste of hardware resources and ultimately achieving a significant improvement in the utilization rate of hardware resources of load balancing devices that can cope with ultra-large-scale traffic. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0038] Figure 1 A schematic diagram of a flow chart provided for the first embodiment of the load balancing method of the present application;

[0039] Figure 2 A schematic diagram provided for the second embodiment of the load balancing method of the present application;

[0040] Figure 3 A brief flowchart of the third embodiment of the load balancing method of the present application;

[0041] Figure 4This is a schematic diagram of the module structure of the load balancing device according to an embodiment of the present application;

[0042] Figure 5 A schematic diagram of the device structure of the hardware operating environment involved in the load balancing method in the embodiment of the present application.

[0043] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0044] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0045] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0046] The main solution of the embodiment of the present application is: sending equal-cost multi-path routing configuration information to multiple forwarding servers to obtain corresponding equal-cost forwarding servers;

[0047] When receiving the traffic load, the traffic load is distributed to different equivalent forwarding servers based on a multi-master architecture.

[0048] In this embodiment, the present application uses a load balancing device as the execution subject. For ease of description, it is specifically described below as "device".

[0049] Compared with the existing technical solution, in which a single dedicated load balancing hardware device that supports the delivery of ultra-large-scale traffic is configured to load balance ultra-large-scale traffic to meet the application delivery requirements of ultra-large-scale traffic, the present application obtains a configured equivalent forwarding server by sending equivalent routing configuration information to multiple forwarding servers with lower functional levels than the existing load balancing hardware device; receives batches of unprocessed traffic from the traffic source end, and distributes the batches of unprocessed traffic to a corresponding number of equivalent forwarding servers, so that the corresponding number of equivalent forwarding servers respectively forward the batches of unprocessed traffic to the corresponding traffic receiving ends. It is understandable that the present application adopts the method of allocating the batches of traffic to be processed to a corresponding number of equivalent forwarding servers, wherein there is a corresponding relationship between the traffic load size of the batches of traffic to be processed and the corresponding number of the equivalent forwarding servers. Since the equivalent forwarding servers are logically completely equivalent, the forwarding capacity can be expanded or reduced by adjusting the number of equivalent forwarding servers used to complete the application delivery of ultra-large-scale traffic loads, and by obtaining the traffic load size of the batches of traffic to be processed, the number of corresponding equivalent forwarding servers can be dynamically adjusted, thereby avoiding serious waste of hardware resources and ultimately achieving a significant improvement in the utilization rate of hardware resources of load balancing devices that can cope with ultra-large-scale traffic.

[0050] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, etc. The following takes the load balancing device as an example to illustrate this embodiment and the following embodiments.

[0051] Based on this, the present application embodiment provides a load balancing method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the load balancing method of the present application.

[0052] In this embodiment, the load balancing method includes step S10:

[0053] Step S10, receiving batches of unprocessed traffic from the traffic source end, and allocating the batches of unprocessed traffic to a corresponding number of equivalent forwarding servers, so that the corresponding number of equivalent forwarding servers respectively forward the batches of unprocessed traffic to the corresponding traffic receiving ends, wherein there is a corresponding relationship between the traffic load size of the batches of unprocessed traffic and the corresponding number of the equivalent forwarding servers, and the equivalent forwarding servers are obtained by configuring the forwarding servers based on preset equivalent routing configuration information, and the functional level of the forwarding servers is lower than that of existing load balancing hardware devices.

[0054] It should be noted that the load balancing hardware device is a device specially designed to distribute network traffic to multiple servers, the forwarding server is a regular server with forwarding function, the equivalent routing configuration information is a configuration instruction for configuring multiple forwarding servers that are logically completely equivalent, and the equivalent forwarding server is a forwarding server that is logically completely equivalent.

[0055] In addition, it should be noted that the traffic source end is the starting point or device that generates data traffic in the network, including but not limited to cloud servers, local servers, computers, mobile phones, etc. The pending traffic batch refers to a group of network traffic data waiting to be processed, and the traffic receiving end refers to the end point or device that receives data traffic in network communication, including but not limited to cloud servers, local servers, computers, mobile phones, etc. The traffic load size refers to the amount of data transmitted in the network or the data rate within a specific time period.

[0056] It is understandable that by configuring the connected forwarding servers equivalently, logical equivalence between forwarding servers can be achieved. Usually, the price of forwarding servers is much lower than that of dedicated load balancing hardware devices. The forwarding capabilities of multiple equivalent forwarding servers can be superimposed. For example, if the forwarding capacity of a single forwarding server is 25Gbps, then 8 forwarding servers can provide 200Gbps of forwarding capacity. By expanding or reducing the number of equivalent forwarding servers, when ultra-large-scale traffic arrives, forwarding capabilities far exceeding those of a single dedicated load balancing hardware device can be obtained. After the ultra-large-scale traffic, the hardware resource investment can be dynamically adjusted to significantly improve the utilization rate of hardware resource equipment.

[0057] It is understandable that when multiple links of the load balancing hardware device are bound to the network device, there is usually a high failure rate due to the link binding between devices from different manufacturers. If a single link is used, the price of the relevant network port will be relatively expensive, further increasing the cost of use. By using multiple forwarding servers to bind a single link to the network device, the same forwarding traffic function of the load balancing hardware device is provided, and the forwarding capability provided at the entire resource pool level far exceeds the forwarding capability of a single traditional load balancing device.

[0058] In a specific implementation, the steps of receiving a batch of traffic to be processed from a traffic source end and allocating the batch of traffic to be processed to a corresponding number of equivalent forwarding servers so that the corresponding number of equivalent forwarding servers respectively forward the batch of traffic to be processed to the corresponding traffic receiving end include:

[0059] Receive batches of traffic to be processed from the cloud server sender;

[0060] The batches of traffic to be processed are distributed to a corresponding number of equivalent forwarding servers, so that the corresponding number of equivalent forwarding servers respectively forward the batches of traffic to be processed to the local server receiving end.

[0061] It should be noted that the cloud server is a service platform in the cloud computing service system that provides comprehensive business capabilities for various Internet users, and the local server refers to a server deployed in a local network environment, which is usually used to provide various computing and storage services.

[0062] It can be understood that the batches of unprocessed traffic sent by the cloud server are allocated to equivalent forwarding servers of a number corresponding to the size of the batches of unprocessed traffic, so that the equivalent forwarding servers can forward the batches to be processed to the receiving end of the local server respectively, thereby achieving balanced forwarding of cloud service traffic to the receiving end of the local server through the equivalent forwarding servers.

[0063] In a specific implementation, the step of receiving a batch of traffic to be processed from a traffic source end and allocating the batch of traffic to be processed to a corresponding number of equivalent forwarding servers so that the corresponding number of equivalent forwarding servers respectively forward the batch of traffic to be processed to the corresponding traffic receiving end further includes:

[0064] Receive batches of traffic to be processed from the local server sender;

[0065] The batches of traffic to be processed are distributed to a corresponding number of equivalent forwarding servers, so that the corresponding number of equivalent forwarding servers can respectively forward the batches of traffic to be processed to a cloud server receiving end.

[0066] It should be noted that the cloud server is a service platform in the cloud computing service system that provides comprehensive business capabilities for various Internet users, and the local server refers to a server deployed in a local network environment, which is usually used to provide various computing and storage services.

[0067] It can be understood that the batches of unprocessed traffic sent by the local server are allocated to equivalent forwarding servers of a number corresponding to the size of the batches of unprocessed traffic, so that the equivalent forwarding servers can forward the batches to be processed to the receiving end of the cloud server respectively, thereby achieving balanced forwarding of local service traffic to the receiving end of the cloud server through the equivalent forwarding servers.

[0068] In a specific implementation, the step of receiving a batch of traffic to be processed from a traffic source and allocating the batch of traffic to be processed to a corresponding number of equivalent forwarding servers includes:

[0069] Receiving traffic load size information of a traffic batch to be processed;

[0070] If the traffic load size information is higher than a preset range, the corresponding number of equivalent forwarding servers processing the traffic batch is increased through a first preset solution;

[0071] If the traffic load size information is lower than a preset range, the corresponding number of equivalent forwarding servers processing the traffic batch is reduced through a second preset solution.

[0072] It should be noted that the traffic load size information refers to detailed data about the amount of data or data rate transmitted in the network. The first preset plan is a preset response plan for the situation where the traffic load size of the current traffic batch is higher than the preset range, and the second preset plan is a preset response plan for the situation where the traffic load size of the current traffic batch is lower than the preset range.

[0073] It can be understood that when the traffic load size information is higher than the preset range, multiple online forwarding servers are configured to be equivalent forwarding servers to achieve rapid capacity expansion. When the traffic load size information is lower than the preset range, multiple forwarding servers are taken offline to avoid idle hardware configuration and achieve rapid capacity reduction. By obtaining the basic information of multiple forwarding servers, it can be determined whether the forwarding server meets the conditions to become an equivalent forwarding server. For the forwarding servers that meet the conditions, equivalent routing configuration is performed, which can enhance the forwarding capability of the overall device to cope with the balanced delivery of ultra-large-scale traffic loads.

[0074] It is understandable that the forwarding server is very convenient for expansion and reduction in capacity under such dynamic adjustment. If large traffic is expected, more servers can be deployed to access the network. The capacity can be expanded to 64 servers at most. After the peak traffic, the excess servers can be taken offline and put into use elsewhere, which significantly improves the utilization rate of hardware resources.

[0075] In a feasible implementation, reference may be made to Figure 2 By equipping the forwarding server with multiple network cards, when the traffic load size information received by the main switch is lower than the preset range, the multiple forwarding servers are taken offline and connected to the idle switch through another network card, thereby realizing dynamic adjustment of the forwarding capacity and effective utilization of hardware equipment.

[0076] In a specific implementation, the step of allocating the batches of traffic to be processed to a corresponding number of equivalent forwarding servers includes:

[0077] Receive request information from the traffic source;

[0078] Verify whether there is a security threat in the request information through a preset security verification algorithm;

[0079] If the security threat is detected, the security threat is processed through a preset security mechanism to prevent the request information from being forwarded to an equivalent forwarding server;

[0080] If the security threat is not detected, verifying whether the request information complies with the preset access rights;

[0081] If the access permission is met, the request information is sent to the equivalent forwarding server.

[0082] It should be noted that the traffic source is the client or device that initiates a request in network communication, such as a personal computer, mobile device or server, and the request information refers to the data contained in the network request issued from the traffic source. The security judgment algorithm is a pre-set algorithm for analyzing and identifying potential security threats from request information. The security threat refers to any factor that may endanger the security of the network system, including but not limited to viruses, Trojans, worms, denial of service attacks, etc.

[0083] In addition, it should be noted that the security mechanism is a set of preset procedures and measures for handling and mitigating detected security threats to protect the network from damage. The access control policy engine is a system component used to implement the organization's internal security policies, ensuring that only request information that meets specific authority requirements can be forwarded to the server. The access rights define the scope of what types of access a user or device can have to network resources. The security event refers to any event that may affect security in the network system, such as login attempts, configuration changes, or attack activities. The security performance report is a detailed document that records information about the system security status and all related security events that have occurred, and is used to monitor, audit, and improve network security performance.

[0084] It is understandable that in network communication, the request information is first obtained from the traffic source, and the information is analyzed using the preset security judgment algorithm to verify whether there are security threats. If security threats are detected, these threats will be processed through the preset security mechanism and prevented from reaching the equivalent forwarding server. If the request information does not contain security threats, they will be passed to the access control policy engine to verify whether they meet the preset access rights. For request information that meets the access rights, they will be sent to the equivalent forwarding server for further processing. Finally, the system will generate a security performance report that records relevant security events for security analysis and auditing.

[0085] In a specific implementation, the method further includes:

[0086] Obtain key performance indicators for each equal-cost forwarding server;

[0087] When the key performance indicator is lower than a preset threshold, the corresponding equivalent forwarding server is marked as a faulty server;

[0088] Evenly distribute the to-be-processed traffic of the failed server to other normally operating equivalent forwarding servers.

[0089] It should be noted that the key performance indicators include but are not limited to forwarding rate, receiving processing speed, processor occupancy rate, etc., and the faulty server is a forwarding server that confirms that the key performance indicators are abnormal.

[0090] In a specific implementation, key performance indicators of equivalent forwarding servers are obtained periodically; if an abnormality is detected in the key performance indicators, the faulty equivalent forwarding servers are isolated, and the remaining equivalent forwarding servers are configured through routing convergence to obtain updated equivalent forwarding servers.

[0091] It should be noted that isolation is to disconnect abnormal devices from normal devices, and routing convergence refers to the process of recalculating routes and updating routing tables after the network topology changes, so that all routers reach a consistent state on the current network structure and routing forwarding.

[0092] It is understandable that by judging the key performance indicators of the equipment, abnormal equipment can be isolated in time, and routing convergence can be performed, and the equivalent forwarding server can be updated to ensure the stability of the forwarding service.

[0093] In this embodiment, a batch of unprocessed traffic is received from a traffic source end, and traffic load size information of the batch of unprocessed traffic is received; if the traffic load size information is higher than a preset range, the corresponding number of equivalent forwarding servers for processing the batch of traffic is increased through a first preset scheme; if the traffic load size information is lower than a preset range, the corresponding number of equivalent forwarding servers for processing the batch of traffic is reduced through a second preset scheme, and request information from the traffic source end is received; the batch of unprocessed traffic is allocated to a corresponding number of equivalent forwarding servers, so that the corresponding number of equivalent forwarding servers respectively forward the batch of unprocessed traffic to the corresponding traffic receiving end, wherein the batch of unprocessed traffic is There is a corresponding relationship between the traffic load size of a batch and the corresponding number of the equivalent forwarding servers. The equivalent forwarding servers are obtained by configuring the forwarding servers based on the preset equivalent routing configuration information. The functional level of the forwarding servers is lower than that of the existing load balancing hardware devices. A preset security verification algorithm is used to verify whether there is a security threat in the request information. If the security threat is detected, the security threat is processed through a preset security mechanism to block the request information from reaching the equivalent forwarding server. If the security threat is not detected, it is verified whether the request information complies with the preset access rights. If it complies with the access rights, the request information is sent to the equivalent forwarding server. By periodically obtaining the normal working flag of the equivalent forwarding server; if it is detected that the normal working flag is abnormal, the faulty equivalent forwarding server is isolated, and the remaining equivalent forwarding servers are configured through routing convergence to obtain the equivalent forwarding server with updated configuration. Compared with the related technology, in the existing technical scheme, the ultra-large-scale traffic is load balanced by configuring a single dedicated load balancing hardware device that supports the delivery of ultra-large-scale traffic to meet the application delivery requirements of ultra-large-scale traffic, the present application obtains the configured equivalent forwarding server by sending equivalent routing configuration information to multiple forwarding servers with lower functional levels than the existing load balancing hardware device; receiving the batch of pending traffic from the traffic source end, and allocating the batch of pending traffic to the corresponding number of equivalent forwarding servers, so that the corresponding number of equivalent forwarding servers respectively forward the batch of pending traffic to the corresponding traffic receiving end.It is understandable that the present application adopts the method of allocating the batches of traffic to be processed to a corresponding number of equivalent forwarding servers, wherein there is a corresponding relationship between the traffic load size of the batches of traffic to be processed and the corresponding number of the equivalent forwarding servers. Since the equivalent forwarding servers are logically completely equivalent, the forwarding capacity can be expanded or reduced by adjusting the number of equivalent forwarding servers used to complete the application delivery of ultra-large-scale traffic loads, and by obtaining the traffic load size of the batches of traffic to be processed, the number of corresponding equivalent forwarding servers can be dynamically adjusted, thereby avoiding serious waste of hardware resources and ultimately achieving a significant improvement in the utilization rate of hardware resources of load balancing devices that can cope with ultra-large-scale traffic.

[0094] The above is only a feasible implementation of step S10 provided in this embodiment, and this embodiment does not specifically limit the specific implementation of step S10.

[0095] For example, to help understand the implementation process of the load balancing method obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 3 , Figure 3 A brief flow chart of a load balancing method is provided, specifically:

[0096] Equivalent routing configuration information is sent to multiple forwarding servers to obtain server nodes that are configured with equivalent relationships and have load balancing software installed and provide forwarding services, namely, NLB nodes (Network Load Balancer). It can be understood that each NLB node is logically completely equivalent because an equivalent relationship is configured between them.

[0097] When receiving traffic load from cloud computing, it receives batches of traffic to be processed from the cloud server sender;

[0098] According to the corresponding relationship between the traffic load size of the traffic batch to be processed and the corresponding number of the equivalent forwarding servers, the number of equivalent forwarding servers required to process the batch is confirmed, and the traffic load is forwarded by all NLB nodes through the dynamic routing protocol, and the traffic batch to be processed is allocated to the corresponding number of equivalent NLB nodes, so that the corresponding number of equivalent NLB nodes can respectively forward the traffic batch to be processed to the local server receiving end based on the multi-master architecture. All NLB nodes can receive and process client requests, and each node can independently modify the data to achieve load balancing to complete the application delivery of ultra-large-scale traffic loads, and by obtaining the traffic load size of the traffic batch to be processed, the number of corresponding equivalent NLB nodes can be dynamically adjusted, thereby avoiding serious waste of hardware resources, and ultimately achieving a significant improvement in the hardware resource equipment utilization rate of the load balancing device that can cope with ultra-large-scale traffic.

[0099] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the load balancing method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0100] This application also provides a load balancing device, please refer to Figure 4 , the load balancing device comprises:

[0101] The configuration module 10 is used to receive batches of unprocessed traffic from the traffic source end, and distribute the batches of unprocessed traffic to a corresponding number of equivalent forwarding servers, so that the corresponding number of equivalent forwarding servers respectively forward the batches of unprocessed traffic to the corresponding traffic receiving ends, wherein there is a corresponding relationship between the traffic load size of the batches of unprocessed traffic and the corresponding number of the equivalent forwarding servers, and the equivalent forwarding servers are obtained by configuring the forwarding servers based on preset equivalent routing configuration information, and the functional level of the forwarding servers is lower than that of existing load balancing hardware devices.

[0102] And / or, the configuration module 10 includes:

[0103] A first receiving module, used to receive a batch of traffic to be processed from a sending end of a cloud server;

[0104] The first allocation module is used to allocate the batches of traffic to be processed to a corresponding number of equivalent forwarding servers, so that the corresponding number of equivalent forwarding servers can respectively forward the batches of traffic to be processed to the local server receiving end.

[0105] And / or, the configuration module 10 includes:

[0106] A second receiving module is used to receive a batch of traffic to be processed from a sending end of a local server;

[0107] The second allocation module is used to allocate the batches of traffic to be processed to a corresponding number of equivalent forwarding servers, so that the corresponding number of equivalent forwarding servers can respectively forward the batches of traffic to be processed to the cloud server receiving end.

[0108] And / or, the configuration module 10 includes:

[0109] A third receiving module is used to receive the flow load size information of the flow batch to be processed;

[0110] A first expansion module, configured to increase the corresponding number of equivalent forwarding servers for processing a traffic batch through a first preset solution if the traffic load size information is higher than a preset range;

[0111] The first capacity reduction module is used to reduce the corresponding number of equivalent forwarding servers processing the traffic batch through a second preset solution if the traffic load size information is lower than a preset range.

[0112] And / or, the configuration module 10 includes:

[0113] The fourth receiving module is used to receive the request information from the traffic source end;

[0114] A first verification module, used to verify whether there is a security threat in the request information through a preset security verification algorithm;

[0115] A first blocking module is used to process the security threat through a preset security mechanism if the security threat is detected, and block the request information from being forwarded to the equivalent forwarding server;

[0116] A second verification module, configured to verify whether the request information complies with a preset access right if the security threat is not detected;

[0117] The first sending module is used to send the request information to an equivalent forwarding server if the request information complies with the access permission.

[0118] And / or, the configuration module 10 includes:

[0119] The second acquisition module is used to obtain the key performance indicators of each equivalent forwarding server;

[0120] A first marking module, used for marking the corresponding equivalent forwarding server as a faulty server when the key performance indicator is lower than a preset threshold;

[0121] The average distribution module is used to evenly distribute the to-be-processed traffic of the failed server to other normally operating equivalent forwarding servers.

[0122] The load balancing device provided by the present application adopts the load balancing method in the above embodiment, which can solve the technical problem of load balancing for ultra-large-scale traffic. Compared with the prior art, the beneficial effects of the load balancing device provided by the present application are the same as the beneficial effects of the load balancing method provided by the above embodiment, and other technical features in the load balancing device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0123] The present application provides a load balancing device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the load balancing method in the above-mentioned embodiment 1.

[0124] Reference below Figure 5 , which shows a schematic diagram of the structure of a load balancing device suitable for implementing the embodiment of the present application. The load balancing device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The load balancing device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0125] like Figure 5 As shown, the load balancing device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the xxx device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the load balancing device to communicate with other devices wirelessly or wired to exchange data. Although the load balancing device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0126] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0127] The load balancing device provided by the present application adopts the load balancing method in the above embodiment, which can solve the technical problem of load balancing for ultra-large-scale traffic. Compared with the prior art, the beneficial effects of the load balancing device provided by the present application are the same as the beneficial effects of the load balancing method provided by the above embodiment, and other technical features in the load balancing device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0128] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0129] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0130] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the load balancing method in the above-mentioned embodiment.

[0131] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0132] The computer-readable storage medium may be included in the load balancing device; or may exist independently without being assembled into the load balancing device.

[0133] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the load balancing device, the load balancing device: receives batches of unprocessed traffic from the traffic source end, and distributes the batches of unprocessed traffic to a corresponding number of equivalent forwarding servers, so that the corresponding number of equivalent forwarding servers respectively forward the batches of unprocessed traffic to the corresponding traffic receiving end, wherein there is a corresponding relationship between the traffic load size of the unprocessed traffic batch and the corresponding number of the equivalent forwarding servers, and the equivalent forwarding servers are obtained by configuring the forwarding servers based on preset equivalent routing configuration information, and the functional level of the forwarding servers is lower than that of the existing load balancing hardware devices.

[0134] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0135] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0136] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0137] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned load balancing method, and can solve the technical problem of load balancing for ultra-large-scale traffic. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the load balancing method provided in the above-mentioned embodiment, and will not be repeated here.

[0138] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned load balancing method when executed by a processor.

[0139] The computer program product provided by this application can solve the technical problem of load balancing for ultra-large-scale traffic. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the load balancing method provided by the above embodiment, which will not be repeated here.

[0140] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A load balancing method, characterized in that: The method includes: Receive batches of unprocessed traffic from a traffic source end, and distribute the batches of unprocessed traffic to a corresponding number of equivalent forwarding servers, so that the corresponding number of equivalent forwarding servers respectively forward the batches of unprocessed traffic to corresponding traffic receiving ends, wherein there is a corresponding relationship between the traffic load size of the batches of unprocessed traffic and the corresponding number of the equivalent forwarding servers, and the equivalent forwarding servers are obtained by configuring the forwarding servers based on preset equivalent routing configuration information, and the functional level of the forwarding servers is lower than that of existing load balancing hardware devices.

2. The method according to claim 1, characterized in that The step of receiving a batch of traffic to be processed from a traffic source end and allocating the batch of traffic to be processed to a corresponding number of equivalent forwarding servers so that the corresponding number of equivalent forwarding servers respectively forward the batch of traffic to be processed to the corresponding traffic receiving end comprises: Receive batches of traffic to be processed from the cloud server sender; The batches of traffic to be processed are distributed to a corresponding number of equivalent forwarding servers, so that the corresponding number of equivalent forwarding servers respectively forward the batches of traffic to be processed to the local server receiving end.

3. The method according to claim 1, characterized in that The step of receiving a batch of traffic to be processed from a traffic source end and allocating the batch of traffic to be processed to a corresponding number of equivalent forwarding servers so that the corresponding number of equivalent forwarding servers respectively forward the batch of traffic to be processed to the corresponding traffic receiving end comprises: Receive batches of traffic to be processed from the local server sender; The batches of traffic to be processed are distributed to a corresponding number of equivalent forwarding servers, so that the corresponding number of equivalent forwarding servers can respectively forward the batches of traffic to be processed to a cloud server receiving end.

4. The method according to claim 1, characterized in that The step of receiving a batch of traffic to be processed from a traffic source and allocating the batch of traffic to be processed to a corresponding number of equivalent forwarding servers includes: Receiving traffic load size information of a traffic batch to be processed; If the traffic load size information is higher than a preset range, the corresponding number of equivalent forwarding servers processing the traffic batch is increased through a first preset solution; If the traffic load size information is lower than a preset range, the corresponding number of equivalent forwarding servers processing the traffic batch is reduced through a second preset solution.

5. The method according to claim 1, characterized in that The step of allocating the batches of traffic to be processed to a corresponding number of equivalent forwarding servers includes: Receive request information from the traffic source; Verify whether there is a security threat in the request information through a preset security verification algorithm; If the security threat is detected, the security threat is processed through a preset security mechanism to prevent the request information from being forwarded to an equivalent forwarding server; If the security threat is not detected, verifying whether the request information complies with the preset access rights; If the access permission is met, the request information is sent to the equivalent forwarding server.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: Obtain key performance indicators for each equal-cost forwarding server; When the key performance indicator is lower than a preset threshold, the corresponding equivalent forwarding server is marked as a faulty server; Evenly distribute the to-be-processed traffic of the failed server to other normally operating equivalent forwarding servers.

7. A load balancing device, characterized in that: The device comprises: A configuration module is used to receive batches of unprocessed traffic from a traffic source end, and distribute the batches of unprocessed traffic to a corresponding number of equivalent forwarding servers, so that the corresponding number of equivalent forwarding servers respectively forward the batches of unprocessed traffic to corresponding traffic receiving ends, wherein there is a corresponding relationship between the traffic load size of the batches of unprocessed traffic and the corresponding number of the equivalent forwarding servers, and the equivalent forwarding servers are obtained by configuring the forwarding servers based on preset equivalent routing configuration information, and the functional level of the forwarding servers is lower than that of existing load balancing hardware devices.

8. A load balancing device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the load balancing method according to any one of claims 1 to 6.

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

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the load balancing method according to any one of claims 1 to 6 are implemented.