A load balancing method, apparatus and storage medium

By acquiring and adjusting the load information of the optical line terminal access server, the latency parameters are automatically adjusted to solve the problem of unbalanced load of the optical line terminal, achieving efficient load balancing and improving network utilization and user experience.

CN116192859BActive Publication Date: 2025-11-14CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211571853.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-08
Publication Date
2025-11-14
Estimated Expiration
2042-12-08

AI Technical Summary

Technical Problem

In the dual uplink networking mode of optical line terminal, after the primary BAS or primary link is repaired, the user equipment cannot switch to the primary BAS in time, resulting in an imbalance of load between the primary BAS and the backup BAS. The existing manual verification method is inefficient and time-consuming.

Method used

By obtaining the load information of the first and second access servers, their latency parameters are adjusted to meet the load balancing conditions. Electronic devices are used to automatically adjust the latency parameters of the access servers to achieve load balancing, avoiding manual verification.

Benefits of technology

It enables load balancing without manual verification, improves network utilization, reduces labor costs, quickly resolves network failures caused by load imbalance, and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116192859B_ABST
    Figure CN116192859B_ABST
Patent Text Reader

Abstract

This application provides a load balancing method, apparatus, and storage medium, relating to the field of communication technology, to solve the technical problem of low load balancing efficiency in general technologies. The load balancing method includes: acquiring first load information and second load information; the first load information is the load information of a first access server; the second load information is the load information of a second access server; the first and second access servers are any two of a plurality of access servers connected to a target optical line terminal (OLT); when the first and second load information do not meet the load balancing conditions, adjusting the latency parameters of the first or second access server so that the first and second load information meet the load balancing conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a load balancing method, apparatus and storage medium. Background Technology

[0002] To enhance network robustness, optical line terminals (OLTs) typically employ a dual uplink networking mode. This mode involves one OLT connecting to two broadband access servers (BAS): a primary BAS and a backup BAS. This way, if the primary BAS fails or the primary link between the primary BAS and the OLT fails, user equipment accessing the OLT can continue service transmission through the backup BAS.

[0003] However, when the primary BAS or primary link is repaired, user equipment that transmits services through the backup BAS cannot switch to the primary BAS in a timely manner, resulting in an imbalance of load between the primary BAS and the backup BAS.

[0004] Currently, the load on the primary and backup BAS is usually adjusted manually. However, manual verification is time-consuming, labor-intensive, and inefficient. Summary of the Invention

[0005] This application provides a load balancing method, apparatus, and storage medium to solve the technical problem of low load balancing efficiency in general technologies.

[0006] To achieve the above objectives, this application adopts the following technical solution:

[0007] In a first aspect, a load balancing method is provided, comprising: acquiring first load information and second load information; the first load information is the load information of a first access server; the second load information is the load information of a second access server; the first access server and the second access server are any two of a plurality of access servers connected to a target OLT; when the first load information and the second load information do not meet the load balancing conditions, adjusting the latency parameters of the first access server or the second access server so that the first load information and the second load information meet the load balancing conditions.

[0008] Optionally, the first load information includes: a first average traffic and a first maximum bandwidth; the second load information includes: a second average traffic and a second maximum bandwidth; the load balancing method further includes: determining the ratio between the first average traffic and the first maximum bandwidth as a first ratio; determining the ratio between the second average traffic and the second maximum bandwidth as a second ratio; when the absolute value of the difference between the first ratio and the second ratio is greater than or equal to a preset threshold, determining that the first load information and the second load information do not meet the load balancing conditions; or, when the absolute value of the difference between the first ratio and the second ratio is less than a preset threshold, determining that the first load information and the second load information meet the load balancing conditions.

[0009] Optionally, the latency parameter of the first access server or the second access server can be adjusted, including: when the first ratio is greater than the second ratio, increasing the latency parameter of the first access server by a target value; or, when the first ratio is less than the second ratio, increasing the latency parameter of the second access server by a target value.

[0010] Optionally, the first load information further includes: a first peak traffic and a first expansion warning count; the first expansion warning count is used to indicate the number of expansion warnings issued by the first access server in the first period; the second load information further includes: a second peak traffic and a second expansion warning count; the second expansion warning count is used to indicate the number of expansion warnings issued by the second access server in the first period; when the first load information and the second load information do not meet the load balancing conditions, the load balancing method further includes: determining a third expansion warning count based on the first load information; the third expansion warning count is used to indicate the number of expansion warnings issued by the first access server in the second period; determining a fourth expansion warning count based on the second load information; the fourth expansion warning count is used to indicate the number of expansion warnings issued by the second access server in the second period; when both the third expansion warning count and the fourth expansion warning count are greater than a preset number, the communication network to which the target OLT belongs is expanded.

[0011] Optionally, determining the third expansion warning count based on the first load information includes: determining the product of the first maximum bandwidth and a preset coefficient as a first value; when the first peak traffic is greater than or equal to the first value, increasing the first expansion warning count by a first preset value to obtain the third expansion warning count; or, when the first peak traffic is greater than or equal to the first value and the first average traffic is greater than or equal to the first value, increasing the first expansion warning count by a second preset value to obtain the third expansion warning count; the second preset value is greater than the first preset value.

[0012] Optionally, the fourth capacity expansion warning count is determined based on the second load information, including: determining the product of the second maximum bandwidth and a preset coefficient as the second value; when the second peak traffic is greater than or equal to the second value, increasing the second capacity expansion warning count by a third preset value to obtain the fourth capacity expansion warning count; or, when the second peak traffic is greater than or equal to the second value and the second average traffic is greater than or equal to the second value, increasing the second capacity expansion warning count by a fourth preset value to obtain the fourth capacity expansion warning count; the fourth preset value is greater than the third preset value.

[0013] Optionally, before obtaining the first load information and the second load information, the load balancing method further includes: obtaining service link information of each of the multiple OLTs; the multiple OLTs include a target OLT; the service link information includes: server information of the access server in the service link when the user equipment accessing the OLT performs service transmission; and clustering the multiple service link information corresponding one-to-one with the multiple OLTs based on a clustering algorithm to determine the multiple access servers connected to each OLT.

[0014] Optionally, the load balancing method further includes: when the first load information and the second load information meet the load balancing conditions, adjusting the latency parameter of the first access server and the latency parameter of the second access server to the same value.

[0015] In a second aspect, a load balancing device is provided, comprising: an acquisition unit and a processing unit; the acquisition unit is configured to acquire first load information and second load information; the first load information is load information of a first access server; the second load information is load information of a second access server; the first access server and the second access server are any two of a plurality of access servers connected to a target OLT; the processing unit is configured to adjust the latency parameters of the first access server or the second access server when the first load information and the second load information do not meet the load balancing conditions, so that the first load information and the second load information meet the load balancing conditions.

[0016] Optionally, the first load information includes: a first average traffic and a first maximum bandwidth; the second load information includes: a second average traffic and a second maximum bandwidth; the processing unit is further configured to determine the ratio between the first average traffic and the first maximum bandwidth as a first ratio; the processing unit is further configured to determine the ratio between the second average traffic and the second maximum bandwidth as a second ratio; the processing unit is further configured to determine that the first load information and the second load information do not meet the load balancing conditions when the absolute value of the difference between the first ratio and the second ratio is greater than or equal to a preset threshold; or, the processing unit is further configured to determine that the first load information and the second load information meet the load balancing conditions when the absolute value of the difference between the first ratio and the second ratio is less than a preset threshold.

[0017] Optionally, the processing unit is specifically used to: increase the latency parameter of the first access server by a target value when the first ratio is greater than the second ratio; or, increase the latency parameter of the second access server by a target value when the first ratio is less than the second ratio.

[0018] Optionally, the first load information further includes: a first peak traffic and a first expansion warning count; the first expansion warning count is used to indicate the number of expansion warnings issued by the first access server in the first period; the second load information further includes: a second peak traffic and a second expansion warning count; the second expansion warning count is used to indicate the number of expansion warnings issued by the second access server in the first period; when the first load information and the second load information do not meet the load balancing conditions, the processing unit is further configured to determine a third expansion warning count based on the first load information; the third expansion warning count is used to indicate the number of expansion warnings issued by the first access server in the second period; the processing unit is further configured to determine a fourth expansion warning count based on the second load information; the fourth expansion warning count is used to indicate the number of expansion warnings issued by the second access server in the second period; the processing unit is further configured to expand the communication network to which the target OLT belongs when both the third expansion warning count and the fourth expansion warning count are greater than a preset number.

[0019] Optionally, the processing unit is specifically used to: determine the product of the first maximum bandwidth and a preset coefficient as a first value; when the first peak traffic is greater than or equal to the first value, increase the first expansion warning number by the first preset value to obtain a third expansion warning number; or, when the first peak traffic is greater than or equal to the first value and the first average traffic is greater than or equal to the first value, increase the first expansion warning number by the second preset value to obtain a third expansion warning number; the second preset value is greater than the first preset value.

[0020] Optionally, the processing unit is specifically used to: determine the product of the second maximum bandwidth and a preset coefficient as a second value; when the second peak traffic is greater than or equal to the second value, increase the second capacity expansion warning number by a third preset value to obtain a fourth capacity expansion warning number; or, when the second peak traffic is greater than or equal to the second value and the second average traffic is greater than or equal to the second value, increase the second capacity expansion warning number by a fourth preset value to obtain a fourth capacity expansion warning number; the fourth preset value is greater than the third preset value.

[0021] Optionally, the acquisition unit is further configured to acquire service link information of each of the multiple OLTs; the multiple OLTs include a target OLT; the service link information includes: server information of the access server in the service link when the user equipment accessing the OLT performs service transmission; the processing unit is further configured to cluster the multiple service link information corresponding one-to-one with the multiple OLTs based on a clustering algorithm to determine the multiple access servers connected to each OLT.

[0022] Optionally, the processing unit is further configured to adjust the latency parameter of the first access server and the latency parameter of the second access server to the same value when the first load information and the second load information meet the load balancing conditions.

[0023] Thirdly, a load balancing device is provided, including a memory and a processor; the memory is used to store computer execution instructions, and the processor is connected to the memory via a bus; when the load balancing device is running, the processor executes the computer execution instructions stored in the memory, so that the load balancing device performs the load balancing method described in the first aspect.

[0024] The load balancing device can be a network device or a component of a network device, such as a chip system within the network device. This chip system supports the network device in implementing the functions involved in the first aspect and any of its possible implementations, such as acquiring, determining, and transmitting data and / or information involved in the aforementioned load balancing method. The chip system includes chips, but may also include other discrete devices or circuit structures.

[0025] Fourthly, a computer-readable storage medium is provided, comprising computer-executable instructions that, when executed on a computer, cause the computer to perform the load balancing method described in the first aspect.

[0026] Fifthly, a computer program product is also provided, which includes computer instructions that, when executed on a load balancer, cause the load balancer to perform the load balancing method as described in the first aspect above.

[0027] It should be noted that the aforementioned computer instructions may be stored, in whole or in part, on a computer-readable storage medium. This computer-readable storage medium may be packaged together with the processor of the load balancing device, or it may be packaged separately from the processor of the load balancing device; this application does not limit this.

[0028] The descriptions of the second, third, fourth, and fifth aspects of this application can be referenced to the detailed description of the first aspect.

[0029] In the embodiments of this application, the names of the aforementioned load balancing devices do not limit the devices or functional modules themselves. In actual implementation, these devices or functional modules may appear under other names. For example, the receiving unit may also be called a receiving module, receiver, etc. As long as the functions of each device or functional module are similar to those of this application, they fall within the scope of the claims of this application and their equivalents.

[0030] The technical solution provided in this application brings at least the following beneficial effects:

[0031] Based on any of the above, this application provides a load balancing method in which an electronic device can obtain first load information and second load information. The first load information is the load information of a first access server; the second load information is the load information of a second access server; and the first and second access servers are any two of a plurality of access servers connected to a target OLT. In this way, when the first and second load information do not meet the load balancing conditions, the electronic device can adjust the latency parameters of the first or second access server to ensure that the first and second load information meet the load balancing conditions. This achieves load balancing without manual verification, effectively distributing the traffic carried by different access servers, avoiding network congestion, and improving network utilization.

[0032] Secondly, electronic devices can adjust the latency parameters of the first or second access server to ensure that the first and second load information meet the load balancing conditions. This eliminates the need for manual verification, reduces labor costs, and significantly shortens the processing time compared to manual processing. This improves the timeliness of load balancing and also enhances the user experience by quickly resolving network failures caused by load imbalance.

[0033] The beneficial effects of the first, second, third, fourth, and fifth aspects of this application can all be referred to in the analysis of the above-mentioned beneficial effects, and will not be repeated here. Attached Figure Description

[0034] Figure 1 This is a schematic diagram of the structure of a load balancing system provided in an embodiment of this application;

[0035] Figure 2 A schematic diagram of the hardware structure of a load balancing device provided in this application embodiment. Figure 1 ;

[0036] Figure 3 A schematic diagram of the hardware structure of a load balancing device provided in this application embodiment. Figure 2 ;

[0037] Figure 4 A flowchart illustrating a load balancing method provided in this application embodiment. Figure 1 ;

[0038] Figure 5 A flowchart illustrating a load balancing method provided in this application embodiment. Figure 2 ;

[0039] Figure 6 A flowchart illustrating a load balancing method provided in this application embodiment. Figure 3;

[0040] Figure 7 A flowchart illustrating a load balancing method provided in this application embodiment. Figure 4 ;

[0041] Figure 8 A flowchart illustrating a load balancing method provided in this application embodiment. Figure 5 ;

[0042] Figure 9 A flowchart illustrating a load balancing method provided in this application embodiment. Figure 6 ;

[0043] Figure 10 A flowchart illustrating a load balancing method provided in this application embodiment. Figure 7 ;

[0044] Figure 11 A flowchart illustrating a load balancing method provided in this application embodiment. Figure 8 ;

[0045] Figure 12 A flowchart illustrating a load balancing method provided in this application embodiment. Figure 9 ;

[0046] Figure 13 This is a schematic diagram of a load balancing device provided in an embodiment of this application. Detailed Implementation

[0047] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0048] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0049] To facilitate a clear description of the technical solutions of the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish the same or similar items with essentially the same function and effect. Those skilled in the art can understand that the terms "first" and "second" are not intended to limit the quantity or execution order.

[0050] As described in the background section, OLTs typically employ a dual-uplink networking mode. This mode means that one OLT connects to two BASs: a primary BAS and a backup BAS. This allows user equipment accessing the OLT to continue service transmission via the backup BAS when the primary BAS fails or the primary link between the primary BAS and the OLT fails.

[0051] However, when the primary BAS or primary link is repaired, user equipment transmitting services through the backup BAS cannot switch to the primary BAS in a timely manner, resulting in an imbalance in load between the primary and backup BAS. In this situation, the network utilization of the primary BAS is low, while the network utilization of the backup BAS is high, thus wasting network resources.

[0052] Currently, the load on the primary and backup BAS is usually adjusted manually. However, manual verification is not timely, resulting in poor user experience. Furthermore, manual verification is time-consuming, labor-intensive, and costly.

[0053] To address the aforementioned problems, this application provides a load balancing method in which an electronic device can obtain first load information and second load information. The first load information is the load information of a first access server; the second load information is the load information of a second access server; and the first and second access servers are any two of a plurality of access servers connected to a target OLT. In this way, when the first and second load information do not meet the load balancing conditions, the electronic device can adjust the latency parameters of the first or second access server to ensure that the first and second load information meet the load balancing conditions. This achieves load balancing without manual verification, effectively distributing the traffic carried by different access servers, avoiding network congestion, and improving network utilization.

[0054] Secondly, electronic devices can adjust the latency parameters of the first or second access server to ensure that the first and second load information meet the load balancing conditions. This eliminates the need for manual verification, reduces labor costs, and significantly shortens the processing time compared to manual processing. This improves the timeliness of load balancing and also enhances the user experience by quickly resolving network failures caused by load imbalance.

[0055] This load balancing method is applicable to load balancing systems. Figure 1 One structure of this load balancing system is shown. For example... Figure 1 As shown, the load balancing system includes: OLT101, multiple access servers 102 ( Figure 1(Taking two access servers 102 as an example) and electronic devices 103.

[0056] Among them, OLT101 is communicatively connected to multiple access servers 102, and electronic device 103 is communicatively connected to OLT101 and multiple access servers 102 respectively.

[0057] The OLT101 is a terminal device used to connect fiber optic trunk lines. The OLT101 is used to convert passive optical network signals from user terminals into electrical signals used by the operator's equipment, and to coordinate multiplexing between optical network units.

[0058] In this embodiment of the application, OLT101 is used to convert the passive optical network signal of the user terminal into an electrical signal and send the electrical signal to the access server.

[0059] In practical applications, OLT101 includes multiple OLT ports, each of which is used to connect to an access server 102. Figure 1 The following explanation uses OLT101, which includes two OLT ports, as an example, where OLT101 connects to two access servers 102.

[0060] Access server 102 is a user access service device set up in the network aggregation layer. It can intelligently realize user aggregation, authentication, billing and other services, and can also conveniently provide a variety of IP value-added services according to user needs.

[0061] In this embodiment of the application, the access server 102 is used to receive the electrical signal sent by the OLT101 and process the electrical signal to obtain the service information required by the user.

[0062] In practical applications, the access server 102 includes multiple access server ports, each of which is used to connect to an OLT. Figure 1 The following explanation will be based on the example of access server 102 having one port, i.e., access server 102 connecting to OLT101.

[0063] Optionally, the access server 102 can be a BAS or a Broadband Remote Access Server (BRAS). The electronic device 103 is used to obtain the load information of each access server 102, and when the load information of two access servers 102 does not meet the load balancing conditions, adjust the latency parameter of one access server 102 so that the load information of the two access servers 102 meets the load balancing conditions.

[0064] Optionally, the physical device of electronic device 103 can be a server, a terminal, or other types of electronic devices; this application embodiment does not limit this. Optionally, when the physical device of electronic device 103 is a terminal, the terminal can be a device that provides voice and / or data connectivity to a user, a handheld device with wireless connectivity, or other processing devices connected to a wireless modem. The wireless terminal can communicate with one or more core networks via a radio access network (RAN). The wireless terminal can be a mobile terminal, such as a mobile phone (or "cellular" phone) and a computer with a mobile terminal, or a portable, pocket-sized, handheld, computer-embedded, or vehicle-mounted mobile device that exchanges voice and / or data with the radio access network, such as a mobile phone, tablet computer, laptop computer, netbook, or personal digital assistant (PDA).

[0065] Optionally, when the physical device of electronic device 103 is a server, the server can be one of the servers in a server cluster (composed of multiple servers), a chip in the server, a system-on-a-chip in the server, or a virtual machine (VM) deployed on a physical machine. This application embodiment does not limit this.

[0066] The basic hardware structure of electronic device 103 includes Figure 2 or Figure 3 The load balancing device shown includes the following components. Figure 2 and Figure 3 Taking the load balancing device shown as an example, the hardware structure of electronic device 103 is introduced.

[0067] like Figure 2 The diagram shown is a hardware structure schematic of a load balancing device provided in an embodiment of this application. The load balancing device includes a processor 21, a memory 22, a communication interface 23, and a bus 24. The processor 21, memory 22, and communication interface 23 are connected via the bus 24.

[0068] Processor 21 is the control center of the load balancing device. It can be a single processor or a collective term for multiple processing elements. For example, processor 21 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.

[0069] As one embodiment, processor 21 may include one or more CPUs, for example Figure 2CPU 0 and CPU 1 are shown in the diagram.

[0070] The memory 22 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.

[0071] In one possible implementation, the memory 22 can exist independently of the processor 21. The memory 22 can be connected to the processor 21 via a bus 24 and is used to store instructions or program code. When the processor 21 calls and executes the instructions or program code stored in the memory 22, it can implement the load balancing method provided in the following embodiments of this application.

[0072] In this embodiment, the software programs stored in the memory 22 of the electronic device 103 are different, so the functions implemented by the electronic device 103 are different. The functions performed by each device will be described with reference to the following flowchart.

[0073] In another possible implementation, the memory 22 can also be integrated with the processor 21.

[0074] Communication interface 23 is used for the load balancer to connect with other devices via a communication network, such as Ethernet, wireless access network, or wireless local area network (WLAN). Communication interface 23 may include a receiving unit for receiving data and a sending unit for sending data.

[0075] Bus 24 can be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, or an extended industry standard architecture (EISA) bus, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 2The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0076] Figure 3 Another hardware structure of the load balancing device in the embodiments of this application is shown. For example... Figure 3 As shown, the load balancing device may include a processor 31 and a communication interface 32. The processor 31 is coupled to the communication interface 32.

[0077] The functions of processor 31 can be referred to in the description of processor 21 above. In addition, processor 31 also has a storage function, and can perform the functions of memory 22 mentioned above.

[0078] Communication interface 32 is used to provide data to processor 31. This communication interface 32 can be an internal interface of the load balancer or an external interface of the load balancer (equivalent to communication interface 23).

[0079] It should be pointed out that, Figure 2 (or Figure 3 The structure shown in the diagram does not constitute a limitation on the load balancing device, except... Figure 2 (or Figure 3 In addition to the components shown in the diagram, the load balancing device may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0080] The load balancing method provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0081] The load balancing method provided in this application embodiment is applied to Figure 1 The electronic device 103 in the load balancing system shown is, for example Figure 4 As shown, the load balancing method provided in this application includes:

[0082] S401, The electronic device acquires the first load information and the second load information.

[0083] Wherein, the first load information is the load information of the first access server; the second load information is the load information of the second access server; the first access server and the second access server are any two of the multiple access servers connected to the OLT.

[0084] Specifically, in the dual-uplink networking mode of the OLT, the common technique is to manually check and adjust the load on the multiple access servers connected to the OLT. However, manual adjustment is inefficient. To improve load balancing efficiency, electronic devices can obtain load information corresponding to each of the multiple access servers connected to the OLT.

[0085] This application embodiment uses the OLT connecting two access servers as an example for illustration, that is, the electronic device can obtain the load information of the first access server (i.e., the first load information) and the load information of the second access server (i.e., the second load information).

[0086] The load information mentioned above can include the average traffic, maximum bandwidth, latency parameters, peak traffic, etc. of each access server.

[0087] Average traffic refers to the average downlink traffic transmitted by the access server to the OLT over a period of time.

[0088] Maximum bandwidth is used to indicate the maximum supported communication bandwidth between the OLT and the access server.

[0089] The latency parameter is used to represent the specific value of the response latency of the access server in responding to the user device's data request.

[0090] It should be understood that user equipment will prioritize access servers with lower latency parameters to obtain business data.

[0091] Peak traffic is used to represent the maximum downlink traffic that the access server transmits to the OLT within a certain period of time.

[0092] In one feasible approach, among multiple access servers connected to the OLT, each access server stores its own load information in its database. An electronic device can send a data retrieval request to each access server, requesting to retrieve the load information stored in each server's database.

[0093] Optional, combined Figure 1 The first access server can be Figure 1 One of the access servers is 102. Correspondingly, the second access server could be... Figure 1 Another access server 102 in the system.

[0094] S402. When the first load information and the second load information do not meet the load balancing conditions, the electronic device adjusts the latency parameters of the first access server or the second access server so that the first load information and the second load information meet the load balancing conditions.

[0095] Specifically, after acquiring the first load information and the second load information, the electronic device can determine whether the first load information and the second load information meet the load balancing conditions. When the first load information and the second load information do not meet the load balancing conditions, in order to balance the load on the first access server and the second access server, the electronic device can adjust the latency parameters of the first access server or the second access server.

[0096] It should be understood that when multiple user devices connected to the OLT transmit services, the OLT will prioritize the access server with lower latency to transmit the user device's service data. Therefore, when the load on the first access server is greater than the load on the second access server, the electronic device can increase the latency parameter of the first access server. In this way, the OLT will prioritize the second access server with lower latency to transmit the user device's service data.

[0097] In one possible implementation, when an electronic device adjusts the latency parameters of the first access server, it can send a parameter adjustment command to the first access server. This parameter adjustment command instructs the first access server to increase its own latency parameters.

[0098] Correspondingly, when the load on the second access server exceeds that of the first access server, the electronic equipment can increase the latency parameter of the second access server. In this way, the OLT will prioritize transmitting user equipment service data from the first access server, which has lower latency.

[0099] In one feasible approach, when the electronic device adjusts the latency parameters of the second access server, the specific implementation method of adjusting the latency parameters of the first access server can be referenced, which will not be elaborated here.

[0100] In one possible implementation, the electronic device can determine whether the first load information and the second load information meet the load balancing conditions based on the average traffic in the load information of each access server; it can also determine whether the first load information and the second load information meet the load balancing conditions based on the peak traffic in the load information of each access server; or it can determine whether the first load information and the second load information meet the load balancing conditions based on the ratio between the average traffic and the maximum bandwidth in the load information of each access server. The specific rules for determining the load balancing conditions are not limited in the embodiments of this application.

[0101] In some embodiments, the first load information includes: a first average traffic and a first maximum bandwidth; the second load information includes: a second average traffic and a second maximum bandwidth. In this case, the electronic device can accurately determine whether the first load information and the second load information meet the load balancing conditions based on the average traffic and maximum bandwidth included in the load information of each access server. Figure 4 ,like Figure 5 As shown in the embodiments of this application, the load balancing method further includes:

[0102] S501, The electronic device determines the ratio between the first average flow rate and the first maximum bandwidth as the first ratio.

[0103] Specifically, when determining whether the first load information and the second load information meet the load balancing conditions, the electronic device can determine the load of each access server based on the ratio between the average traffic and the maximum bandwidth of each access server, and then determine whether the first load information and the second load information meet the load balancing conditions based on the load of each access server. In this case, the electronic device can determine the ratio between the first average traffic and the first maximum bandwidth as the first ratio.

[0104] For example, suppose OLT-1 (i.e., the OLT in this application) has two uplink access servers, namely BAS-A (i.e., the first access server in this application) and BAS-B (i.e., the second access server in this application), the average traffic of BAS-A is U1 (i.e., the first average traffic in this application), and the maximum bandwidth is X1 (i.e., the first maximum bandwidth in this application), then the electronic device can determine the ratio between the average traffic of BAS-A and the maximum bandwidth as follows: (i.e., the first ratio in this application).

[0105] S502, The electronic device determines the ratio between the second average flow rate and the second maximum bandwidth as the second ratio.

[0106] Specifically, when determining whether the first load information and the second load information meet the load balancing conditions, the electronic device can determine the load of each access server based on the ratio between the average traffic and the maximum bandwidth of each access server, and then determine whether the first load information and the second load information meet the load balancing conditions based on the load of each access server. In this case, the electronic device can determine the ratio between the second average traffic and the second maximum bandwidth as the second ratio.

[0107] For example, assuming the average traffic of BAS-B is U2 (i.e., the second average traffic in this application) and the maximum bandwidth is X2 (i.e., the second maximum bandwidth in this application), the electronic device can determine the ratio between the average traffic of BAS-B and the maximum bandwidth as follows: (i.e., the second ratio in this application).

[0108] It should be noted that the electronic device does not impose any restrictions on the execution order of S501 and S502. The electronic device may execute S501 first and then S502; or it may execute S502 first and then S501; or it may execute S501 and S502 simultaneously.

[0109] S503. When the absolute value of the difference between the first ratio and the second ratio is greater than or equal to a preset threshold, the electronic device determines that the first load information and the second load information do not meet the load balancing conditions.

[0110] Specifically, after determining the first ratio and the second ratio, since the first ratio represents the load of the first access server and the second ratio represents the load of the second access server, the electronic device can determine whether the load of the first access server and the load of the second access server are close based on the absolute value of the difference between the first ratio and the second ratio, that is, whether the first load information and the second load information meet the load balancing conditions.

[0111] In this situation, when the absolute value of the difference between the first ratio and the second ratio is greater than or equal to a preset threshold, the electronic device determines that the first load information and the second load information do not meet the load balancing conditions.

[0112] Based on the above example, assuming a preset threshold of 20%, U1 = 5, and X1 = 10, the electronic device can determine the first ratio. The value is 0.5. Assuming U2 = 2 and X2 = 10, the electronic device can determine the second ratio. The value is 0.2. In this case, the electronic device can determine that the absolute value of the difference between the first ratio and the second ratio is 0.2.

[0113] It should be understood that 0.3 is greater than 20% (that is, the absolute value of the difference between the first ratio and the second ratio in this application is greater than or equal to the preset threshold). In this way, the electronic device can determine that the load of the first access server and the load of the second access server are significantly different, that is, the first load information and the second load information do not meet the load balancing conditions.

[0114] S504. When the absolute value of the difference between the first ratio and the second ratio is less than a preset threshold, the electronic device determines that the first load information and the second load information meet the load balancing condition.

[0115] Specifically, after determining the first ratio and the second ratio, since the first ratio represents the load of the first access server and the second ratio represents the load of the second access server, the electronic device can determine whether the load of the first access server and the load of the second access server are close based on the absolute value of the difference between the first ratio and the second ratio, that is, whether the first load information and the second load information meet the load balancing conditions.

[0116] In this case, when the absolute value of the difference between the first ratio and the second ratio is less than a preset threshold, the electronic device determines that the first load information and the second load information meet the load balancing condition.

[0117] Based on the above example, assuming U1 = 5, X1 = 10; U2 = 4, X2 = 10, then the electronic device can determine the first ratio. The ratio is 0.5; the second ratio The value is 0.4. In this case, the electronic device can determine that the absolute value of the difference between the first ratio and the second ratio is 0.4.

[0118] It should be understood that 0.1 is less than 20% (that is, the absolute value of the difference between the first ratio and the second ratio in this application is less than the preset threshold). In this way, the electronic device can determine that the load of the first access server and the load of the second access server are relatively similar, that is, the first load information and the second load information meet the load balancing condition.

[0119] In some embodiments, the relationship between the first ratio and the second ratio can represent the relationship between the load on the first access server and the load on the second access server. In this case, the electronic device can adjust the latency parameters of the first access server or the second access server based on the relationship between the first ratio and the second ratio. Figure 5 ,like Figure 6 As shown, in S402 above, the method for the electronic device to adjust the latency parameters of the first access server or the second access server specifically includes:

[0120] S601. When the first ratio is greater than the second ratio, the electronic device increases the latency parameter of the first access server by the target value.

[0121] Specifically, when the first ratio is greater than the second ratio, it indicates that the load on the first access server is greater than the load on the second access server. In this case, the electronic device can increase the latency parameter of the first access server by a target value.

[0122] Based on the above example, assuming the latency parameter of BAS-A is Z1 = 100 (i.e., the latency parameter of the first access server in this application), and the latency parameter of BAS-B is Z2 = 200 (i.e., the latency parameter of the second access server in this application), and assuming U1 = 5, X1 = 10; U2 = 4, X2 = 10, then the electronic device can determine the first ratio. Second ratio

[0123] It should be understood that 0.5 > 0.4, meaning the electronic device can determine... (That is, the first ratio in this application is greater than the second ratio), in which case the electronic device can increase Z1 by 300 (that is, the latency parameter of the first access server in this application is increased to the target value).

[0124] S602. When the first ratio is less than the second ratio, the electronic device increases the latency parameter of the second access server by the target value.

[0125] Specifically, when the first ratio is less than the second ratio, it indicates that the load on the first access server is less than the load on the second access server. In this case, the electronic device can increase the latency parameter of the second access server by the target value.

[0126] Based on the above example, assuming U1 = 5, X1 = 10; U2 = 6, X2 = 10, then the electronic device can determine the first ratio. Second ratio That is, electronic devices can determine (That is, the first ratio in this application is less than the second ratio). In this case, the electronic device can increase Z2 by 300 (that is, the latency parameter of the second access server in this application is increased to the target value).

[0127] In some embodiments, the electronic device can periodically determine whether the first load information and the second load information meet the load balancing conditions. When the electronic device determines in the first cycle that the first load information and the second load information do not meet the load balancing conditions, the electronic device can determine whether it is necessary to expand the communication network to which the target OLT belongs by checking the number of expansion warnings from the first access server or the second access server.

[0128] The number of expansion warnings indicates whether each access server needs to be expanded. The initial value for the number of expansion warnings for each access server is zero.

[0129] In this scenario, the first load information further includes: a first peak traffic volume and a first number of capacity expansion warnings; the second load information further includes: a second peak traffic volume and a second number of capacity expansion warnings. The first number of capacity expansion warnings represents the number of capacity expansion warnings issued by the first access server in the first period. The second number of capacity expansion warnings represents the number of capacity expansion warnings issued by the second access server in the first period. When the first load information and the second load information do not meet the load balancing conditions, the electronic device can also determine whether to expand the communication network to which the target OLT belongs based on the peak traffic volume and the number of capacity expansion warnings included in the load information of each access server. Figure 6 ,like Figure 7 As shown in the embodiments of this application, the load balancing method further includes:

[0130] S701, the electronic device determines the third capacity expansion warning number based on the first load information.

[0131] The third expansion warning number is used to indicate the number of expansion warnings issued by the first access server in the second cycle.

[0132] Specifically, since the first load information is used to represent the load of the first access server, the electronic device can determine the third expansion warning number based on the first load information.

[0133] In one feasible approach, when an electronic device determines the third capacity expansion warning count, it can do so based on the first peak traffic and the first maximum bandwidth in the first load information.

[0134] In another possible implementation, when determining the third capacity expansion warning number, the electronic device can also determine the third capacity expansion warning number based on the first peak traffic, the first maximum bandwidth, and the first average traffic in the first load information.

[0135] S702, the electronic device determines the fourth capacity expansion warning number based on the second load information.

[0136] The fourth expansion warning number is used to indicate the number of expansion warnings issued by the second access server in the second cycle.

[0137] Specifically, since the second load information is used to represent the load of the second access server, the electronic device can determine the fourth expansion warning number based on the second load information.

[0138] In one feasible approach, when an electronic device determines the fourth capacity expansion warning count, it can do so based on the second peak traffic and the second maximum bandwidth in the second load information.

[0139] In another possible implementation, when determining the fourth capacity expansion warning number, the electronic device can also determine the fourth capacity expansion warning number based on the second peak traffic, the second maximum bandwidth, and the second average traffic in the second load information.

[0140] It should be noted that the electronic device does not impose any restrictions on the execution order of S701 and S702. The electronic device may execute S701 first and then S702; or it may execute S702 first and then S701; or it may execute S701 and S702 simultaneously.

[0141] S703. When both the third and fourth expansion warning counts exceed the preset counts, the electronic device expands the communication network to which the target OLT belongs.

[0142] Specifically, when both the third and fourth capacity expansion warning counts exceed the preset counts, it indicates that the first and second access servers have experienced high loads over multiple periods. In this situation, the electronic device can expand the capacity of the communication network to which the target OLT belongs.

[0143] One possible approach to expanding the communication network to which the target OLT belongs can be to replace the optical fiber between the target OLT and the access server with a fiber with a higher bandwidth.

[0144] Another possible approach to expanding the communication network to which the target OLT belongs is to add a new access server to the target OLT.

[0145] Based on the above example, assume that the third expansion warning number for BAS-A is N3, and the fourth expansion warning number for BAS-B is N4. When N3 > 10 (i.e., the preset number in this application) and N4 > 10, the electronic device determines to expand the communication network to which the target OLT belongs.

[0146] Optionally, to prevent the number of expansion warnings from accumulating indefinitely, which would reduce the accuracy of expansion judgment, the electronic device can reset the number of expansion warnings for each access server to zero after several cycles (e.g., five cycles).

[0147] In some embodiments, combined with Figure 7 ,like Figure 8 As shown, in the above S701, the specific method for determining the third capacity expansion warning number based on the first load information of the electronic device includes:

[0148] S801, The electronic device determines the first value as the product of the first maximum bandwidth and the preset coefficient.

[0149] Specifically, the first load information includes a first maximum bandwidth. The first maximum bandwidth can represent the load capacity of the first access server. The electronic device determines a first value by multiplying the first maximum bandwidth by a preset coefficient, and this first value can be used to represent the load capacity of the first access server.

[0150] Based on the above example, assuming that the maximum bandwidth of BAS-A is X1 = 10 and the preset coefficient α = 0.8, the electronic device can determine α·X1 = 8 (i.e., the first value in this application).

[0151] S802. When the first peak flow rate is greater than or equal to the first value, the electronic device increases the first expansion warning number by the first preset value to obtain the third expansion warning number.

[0152] Specifically, since the aforementioned first value can represent the load capacity of the first access server, the electronic device can determine whether the load of the first access server exceeds its load capacity based on the first value and the magnitude of the first peak traffic. If the first peak traffic is greater than or equal to the first value, the electronic device can determine that the load of the first access server exceeds its load capacity. Therefore, the electronic device can determine that the communication network to which the target OLT belongs may need capacity expansion, and thus increase the first capacity expansion warning count by a first preset value to obtain a third capacity expansion warning count.

[0153] Based on the above example, assuming that the peak traffic of BAS-A is Y1 = 10 (i.e., the first peak traffic in this application), the number of expansion warnings is N1 = 0 (i.e., the first number of expansion warnings in this application), the maximum bandwidth is X1 = 10, and the preset coefficient α = 0.8, then the electronic device can determine α·X1 = 8.

[0154] It should be understood that 10>8, that is, Y1≥ɑ·X1 (that is, the first peak flow rate in this application is greater than or equal to the first value), then the electronic device can determine N3 (that is, the third expansion warning number obtained in this application) = N1+1 (that is, the first expansion warning number is increased by the first preset value in this application).

[0155] S803. When the first peak flow rate is greater than or equal to the first value and the first average flow rate is greater than or equal to the first value, the electronic device increases the first expansion warning number by the second preset value to obtain the third expansion warning number.

[0156] When the first peak traffic is greater than or equal to the first value and the first average traffic is greater than or equal to the first value, it indicates that the communication network to which the target OLT belongs urgently needs to be expanded. Therefore, the electronic device can increase the first expansion warning number to a larger second preset value, that is, the second preset value should be greater than the first preset value.

[0157] Specifically, since the aforementioned first value can represent the load capacity of the first access server, the electronic device can determine whether the load of the first access server exceeds its load capacity based on the first value, the first peak traffic, and the first average traffic. If the first peak traffic is greater than or equal to the first value, and the first average traffic is also greater than or equal to the first value, the electronic device can determine that the load of the first access server exceeds its load capacity. Therefore, the electronic device can determine that the communication network to which the target OLT belongs may urgently need expansion, and thus increase the first expansion warning count by a second preset value to obtain a third expansion warning count.

[0158] Based on the above example, assuming Y1 = 10, U1 = 9, the number of expansion warnings is N1 = 0, the maximum bandwidth is X1 = 10, and the preset coefficient α = 0.8, then the electronic device can be determined to have α·X1 = 8.

[0159] It should be understood that 10>8 and 9>8, that is, Y1≥ɑ·X1 and U1≥ɑ·X1 (that is, the first peak flow rate in this application is greater than or equal to the first value, and the first average flow rate is greater than or equal to the first value), then the electronic device can determine N3=N1+6 (that is, the first expansion warning number is increased to the second preset value in this application).

[0160] In some embodiments, combined with Figure 8,like Figure 9 As shown, in the above S702, the specific method for determining the fourth capacity expansion warning number based on the second load information of the electronic device includes:

[0161] S901, The electronic device determines the second value as the product of the second maximum bandwidth and the preset coefficient.

[0162] Specifically, the second load information includes a second maximum bandwidth. The second maximum bandwidth can represent the load capacity of the second access server. The electronic device determines the second value by multiplying the second maximum bandwidth by a preset coefficient, and this second value can be used to represent the load capacity of the second access server.

[0163] Based on the above example, assuming that the maximum bandwidth of BAS-B is X2 = 10 and the preset coefficient α = 0.8, the electronic device determines α·X2 = 8 (i.e., the second value in this application).

[0164] S902. When the second peak flow rate is greater than or equal to the second value, the electronic device increases the second capacity expansion warning number by a third preset value to obtain a fourth capacity expansion warning number.

[0165] Specifically, since the second value can represent the load capacity of the second access server, the electronic device can determine whether the load of the second access server exceeds its load capacity based on the second value and the magnitude of the second peak traffic. If the second peak traffic is greater than or equal to the second value, the electronic device can determine that the load of the second access server exceeds its load capacity. Therefore, the electronic device can determine that the communication network to which the target OLT belongs may need capacity expansion, and thus increase the second capacity expansion warning count by a third preset value to obtain a fourth capacity expansion warning count.

[0166] Based on the above example, assuming that the peak traffic of BAS-B is Y2 = 10 (i.e., the second peak traffic in this application), the second expansion warning number is N2 = 0, the maximum bandwidth is X2 = 10, and the preset coefficient α = 0.8, then the electronic device can determine α·X2 = 8.

[0167] It should be understood that 10>8, that is, Y2≥ɑ·X2 (that is, the second peak flow rate in this application is greater than or equal to the second value), then the electronic device can determine N4=N2+1 (that is, the second expansion warning number is increased to the third preset value in this application).

[0168] Optionally, the second preset value can be the same as the first preset value or it can be a different value. This application embodiment does not limit this.

[0169] S903. When the second peak flow rate is greater than or equal to the second value and the second average flow rate is greater than or equal to the second value, the electronic device increases the second capacity expansion warning number by a fourth preset value to obtain the fourth capacity expansion warning number.

[0170] When the second peak traffic is greater than or equal to the second value and the second average traffic is greater than or equal to the second value, it indicates that the communication network to which the target OLT belongs urgently needs to be expanded. Therefore, the electronic device can increase the second expansion warning number to a larger fourth preset value, that is, the fourth preset value should be greater than the third preset value.

[0171] Based on the above example, assuming Y2 = 10, U2 = 9, the second expansion warning number is N2 = 0, X2 = 10, and the preset coefficient α = 0.8, then the electronic device can determine α·X2 = 8.

[0172] It should be understood that 10>8 and 9>8, that is, Y1≥ɑ·X2 and U2≥ɑ·X2 (that is, the second peak flow rate in this application is greater than or equal to the second value, and the second average flow rate is greater than or equal to the second value), then the electronic device can determine N4=N2+6 (that is, the second expansion warning number is increased to the fourth preset value in this application).

[0173] Optionally, the fourth preset value can be the same as the third preset value or a different value; this application embodiment does not limit this.

[0174] In some embodiments, the electronic device can pre-determine multiple access servers connected to the target OLT, i.e., determine the topological relationship between the target OLT and the multiple access servers. In this case, combined with Figure 9 ,like Figure 10 As shown, before the electronic device obtains the first load information and the second load information, the load balancing method further includes:

[0175] S1001, Electronic devices acquire service link information of each OLT among multiple OLTs.

[0176] Among them, multiple OLTs include the target OLT.

[0177] In one feasible approach, electronic devices can determine the service link information of each OLT by using the online record information of user devices.

[0178] Optionally, the business link information for each OLT includes: interface information and interface status.

[0179] The interface information may include: the name of each OLT, the name of the BAS connected to each OLT, the connection method between the BAS and each OLT, the BAS interface connected to each OLT, and the maximum bandwidth between each OLT and the connected BAS.

[0180] Interface status can include: peak traffic, average traffic, and latency parameters.

[0181] For example, Table 1 shows the service link information of each OLT obtained by the electronic device.

[0182] Table 1

[0183]

[0184]

[0185] In this context, BAS interface 1 / 2 / 1 represents the first item in the first row of the first cabinet, BAS interface 1 / 1 / 1 represents the first item in the first row of the first cabinet, BAS interface 1 / 2 / 3 represents the third item in the second row of the first cabinet, and BAS interface 1 / 1 / 2 represents the second item in the first row of the first cabinet.

[0186] S1002. The electronic equipment uses a clustering algorithm to cluster multiple service link information that corresponds one-to-one with multiple OLTs in order to determine multiple access servers connected to each OLT.

[0187] Specifically, after obtaining the service link information of each OLT in multiple OLTs, since the service link information of each OLT includes the connection relationship between each OLT and the access server, the electronic device can cluster the multiple service link information corresponding to multiple OLTs one by one based on the clustering algorithm to determine the multiple access servers connected to each OLT.

[0188] Based on Table 1 above, the electronic equipment clusters the service link information of the OLT in room A and the OLT in room B to obtain the access servers connected to the OLT in room A as GDSZ-LTDS and GDSZ-TZDS, and the access servers connected to the OLT in room B as GDSZ-XNRF and GDSZ-LDDS.

[0189] In some embodiments, when the absolute value of the difference between the first ratio and the second ratio is less than a preset threshold, it indicates that the load of the first access server and the load of the second access server are the same, that is, the first load information and the second load information meet the load balancing condition. In this case, the electronic device can perform the adjustment operation corresponding to the first load information and the second load information meeting the load balancing condition. Figure 10 ,like Figure 11 As shown, this load balancing method also includes:

[0190] S1101. When the first load information and the second load information meet the load balancing conditions, the electronic device adjusts the latency parameter of the first access server and the latency parameter of the second access server to the same value.

[0191] Specifically, when the first load information and the second load information meet the load balancing condition, the electronic device determines that the load of the first access server and the load of the second access server are balanced. Therefore, the electronic device can adjust the latency parameter of the first access server and the latency parameter of the second access server to the same value.

[0192] Based on the above example, assuming U1 = 5, X1 = 10; U2 = 1, X2 = 2, and the preset threshold is 20%, the electronic device can determine the first ratio. Second ratio That is, the electronic device can determine the absolute value of the difference between the first ratio and the second ratio.

[0193] It should be understood that 0 is less than 20%, therefore, the electronic device makes Z1 = Z2 = the same value (that is, in this application, the delay parameters of the first access server and the second access server are adjusted to the same value).

[0194] In some embodiments, the above description mainly focuses on the various steps of the load balancing method provided in this application. The complete flow of the load balancing method provided in this application is described below in conjunction with the above embodiments. Figure 12 As shown, the load balancing method provided in this application embodiment specifically includes:

[0195] S1201. Electronic devices acquire service link information of each OLT among multiple OLTs.

[0196] Combination Figure 10 For details on how electronic devices acquire service link information of each OLT among multiple OLTs, please refer to the relevant description in S1001, which will not be repeated here.

[0197] S1202. The electronic device uses a clustering algorithm to cluster multiple service link information corresponding to multiple OLTs one-to-one, in order to determine multiple access servers connected to each OLT and obtain the load information of each access server.

[0198] The multiple load information corresponding to the multiple access servers includes: first load information and second load information.

[0199] Combination Figure 10The description of how the electronic device identifies multiple access servers connected to each OLT and obtains the load information of each access server can be found in the relevant description of S1002, and will not be repeated here.

[0200] S1203. When the first load information and the second load information do not meet the load balancing conditions, the electronic device adjusts the latency parameters of the first access server or the second access server.

[0201] Combination Figure 5 , Figure 6 The description of how the electronic device determines whether the first load information and the second load information meet the load balancing conditions and adjusts the latency parameters of the first access server or the second access server can be found in the descriptions of S501, S502, S503, S504, S601, and S602, and will not be repeated here.

[0202] S1204, The electronic device reacquires the first load information and the second load information.

[0203] Combination Figure 10 The description of how the electronic device reacquires the first load information and the second load information can be found in the description of S1001, and will not be repeated here.

[0204] S1205. The electronic device determines whether the first load information and the second load information meet the load balancing conditions.

[0205] If the first load information and the second load information meet the load balancing conditions, execute S1208; if the first load information and the second load information do not meet the load balancing conditions, execute S1206.

[0206] Combination Figure 5 The relevant descriptions of whether the electronic device determines whether the first load information and the second load information meet the load balancing conditions can be found in the relevant descriptions of S501, S502, S503, and S504, and will not be repeated here.

[0207] S1206. The electronic device adjusts the latency parameters of the first access server or the second access server, and determines whether to expand the communication network to which the target OLT belongs based on the first load information and the second load information.

[0208] When the electronic device determines that it will not expand the communication network to which the target OLT belongs, S1204 is executed repeatedly; when the electronic device determines that it needs to expand the communication network to which the target OLT belongs, S1207 is executed.

[0209] Combination Figure 6 , Figure 7 , Figure 8 , Figure 9For details on how electronic devices adjust the latency parameters of the first or second access server and determine whether to expand the communication network to which the target OLT belongs, please refer to the relevant descriptions in S601, S602, S701, S702, S703, S801, S802, S803, S901, S902, and S903. They will not be repeated here.

[0210] S1207. The electronic equipment expands the communication network to which the target OLT belongs.

[0211] After expanding the communication network to which the target OLT belongs, the electronic device repeatedly executes S1204.

[0212] Combination Figure 7 For details on expanding the communication network to which the target OLT belongs, please refer to the relevant description in S703, which will not be repeated here.

[0213] S1208 The electronic device adjusts the latency parameters of the first access server and the second access server to the same value and sets the period duration.

[0214] Combination Figure 11 The description of how the electronic device adjusts the latency parameters of the first access server and the second access server to the same value can be found in the description of S1101, and will not be repeated here.

[0215] S1209. The electronic device determines the start time of the next cycle based on the cycle duration, and repeats S1204 at the start time of the next cycle.

[0216] The foregoing mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0217] This application embodiment can divide the load balancing device into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. Optionally, the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

[0218] like Figure 13 The diagram shown is a structural schematic of a load balancing device provided in an embodiment of this application. This load balancing device can be used to perform... Figures 4-12 Any of the load balancing methods shown in the table. Figure 13 The load balancing device shown includes: an acquisition unit 1301 and a processing unit 1302;

[0219] The acquisition unit 1301 is used to acquire first load information and second load information; the first load information is the load information of a first access server; the second load information is the load information of a second access server; the first access server and the second access server are any two of a plurality of access servers connected to the OLT. For example, combined with Figure 4 The acquisition unit 1301 is used to execute S401.

[0220] Processing unit 1302 is configured to adjust the latency parameters of the first access server or the second access server when the first load information and the second load information do not meet the load balancing conditions, so that the first load information and the second load information meet the load balancing conditions. For example, in combination with Figure 4 The processing unit 1302 is used to execute S402.

[0221] Optionally, the first load information includes: a first average traffic and a first maximum bandwidth; the second load information includes: a second average traffic and a second maximum bandwidth.

[0222] The processing unit 1302 is further configured to determine the ratio between the first average flow and the first maximum bandwidth as a first ratio. For example, in combination with Figure 5 The processing unit 1302 is used to execute S501.

[0223] The processing unit 1302 is further configured to determine the ratio between the second average traffic and the second maximum bandwidth as a second ratio. For example, in combination with Figure 5 The processing unit 1302 is used to execute S502.

[0224] Processing unit 1302 is further configured to determine that the first load information and the second load information do not meet the load balancing conditions when the absolute value of the difference between the first ratio and the second ratio is greater than or equal to a preset threshold. For example, combined with Figure 5 The processing unit 1302 is used to execute S503.

[0225] Alternatively, the processing unit 1302 is further configured to determine that the first load information and the second load information meet the load balancing condition when the absolute value of the difference between the first ratio and the second ratio is less than a preset threshold. For example, in combination with Figure 5 The processing unit 1302 is used to execute S504.

[0226] Optionally, the processing unit 1302 is specifically used for:

[0227] When the first ratio is greater than the second ratio, the latency parameter of the first access server is increased by the target value. For example, combined with... Figure 6 The processing unit 1302 is used to execute S601.

[0228] Alternatively, when the first ratio is less than the second ratio, the latency parameter of the second access server is increased by the target value. For example, combined with Figure 6 The processing unit 1302 is used to execute S602.

[0229] Optionally, the first load information further includes: a first peak traffic and a first number of capacity expansion warnings; the first number of capacity expansion warnings is used to indicate the number of capacity expansion warnings issued by the first access server in the first period; the second load information further includes: a second peak traffic and a second number of capacity expansion warnings; the second number of capacity expansion warnings is used to indicate the number of capacity expansion warnings issued by the second access server in the first period;

[0230] When the first load information and the second load information do not meet the load balancing conditions

[0231] The processing unit 1302 is further configured to determine a third expansion warning count based on the first load information; the third expansion warning count represents the number of expansion warnings issued by the first access server in the second cycle. For example, combined with... Figure 7 The processing unit 1302 is used to execute S701.

[0232] Processing unit 1302 is further configured to determine a fourth expansion warning count based on the second load information; the fourth expansion warning count represents the number of expansion warnings issued by the second access server in the second cycle. For example, combined with... Figure 7 The processing unit 1302 is used to execute S702.

[0233] The processing unit 1302 is also used to expand the communication network to which the target OLT belongs when both the third and fourth expansion warning counts exceed a preset number. For example, combined with Figure 7 The processing unit 1302 is used to execute S703.

[0234] Optionally, the processing unit 1302 is specifically used for:

[0235] The product of the first maximum bandwidth and a preset coefficient is determined as the first value. For example, combined with... Figure 8 The processing unit 1302 is used to execute S801.

[0236] When the first peak traffic is greater than or equal to the first value, the first capacity expansion warning count is increased by the first preset value to obtain the third capacity expansion warning count. For example, combined with... Figure 8 The processing unit 1302 is used to execute S802.

[0237] Alternatively, when the first peak flow is greater than or equal to the first value, and the first average flow is greater than or equal to the first value, the first capacity expansion warning count is increased by a second preset value to obtain a third capacity expansion warning count; the second preset value is greater than the first preset value. For example, combined with... Figure 8 The processing unit 1302 is used to execute S803.

[0238] Optionally, the processing unit 1302 is specifically used for:

[0239] The second value is determined by multiplying the second maximum bandwidth by a preset coefficient. For example, combining... Figure 9 The processing unit 1302 is used to execute S901.

[0240] When the second peak traffic is greater than or equal to the second value, the second capacity expansion warning count is increased by a third preset value to obtain a fourth capacity expansion warning count. For example, combined with... Figure 9 The processing unit 1302 is used to execute S902.

[0241] Alternatively, when the second peak flow is greater than or equal to the second value, and the second average flow is greater than or equal to the second value, the second capacity expansion warning count is increased by a fourth preset value to obtain a fourth capacity expansion warning count; the fourth preset value is greater than the third preset value. For example, combined with... Figure 9 The processing unit 1302 is used to execute S903.

[0242] Optionally, the acquisition unit 1301 is further configured to acquire service link information for each of the multiple OLTs; the multiple OLTs include a target OLT; the service link information includes: server information of the access server in the service link when a user equipment accessing the OLT performs service transmission. For example, combined with Figure 10 The acquisition unit 1301 is used to execute S1001.

[0243] The processing unit 1302 is also used to cluster the multiple service link information corresponding one-to-one with multiple OLTs based on a clustering algorithm, so as to determine the multiple access servers connected to each OLT. For example, combined with Figure 10 The processing unit 1302 is used to execute S1002.

[0244] Optionally, the processing unit 1302 is further configured to adjust the latency parameters of the first access server and the second access server to the same value when the first load information and the second load information meet the load balancing conditions. For example, in combination with Figure 11 The processing unit 1302 is used to execute S1101.

[0245] This application also provides a computer-readable storage medium, which includes computer-executable instructions that, when executed on a computer, cause the computer to perform the load balancing method provided in the above embodiments.

[0246] This application also provides a computer program that can be directly loaded into a memory and contains software code. After being loaded and executed by a computer, the computer program can implement the load balancing method provided in the above embodiments.

[0247] Those skilled in the art will recognize that, in one or more of the examples above, the functions described in this application can be implemented using hardware, software, firmware, or any combination thereof. When implemented in software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium. Computer-readable media include computer-readable storage media and communication media, wherein communication media include any medium that facilitates the transmission of a computer program from one place to another. Storage media can be any available medium accessible to a general-purpose or special-purpose computer.

[0248] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0249] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and other division methods may exist in actual implementation. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the shown or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms. Units described as separate components may or may not be physically separate; components shown as units may be one physical unit or multiple physical units, i.e., they may be located in one place or distributed in multiple different places. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0250] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0251] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A load balancing method, characterized in that, include: Obtain first load information and second load information; the first load information is the load information of the first access server; the second load information is the load information of the second access server; the first access server and the second access server are any two of a plurality of access servers connected to the target optical line terminal (OLT); The first load information further includes: a first peak traffic and a first expansion warning count; the first expansion warning count is used to indicate the number of expansion warnings issued by the first access server in the first period; the second load information further includes: a second peak traffic and a second expansion warning count; the second expansion warning count is used to indicate the number of expansion warnings issued by the second access server in the first period; When the first load information and the second load information do not meet the load balancing conditions, the latency parameters of the first access server or the second access server are adjusted so that the first load information and the second load information meet the load balancing conditions. The third expansion warning number is determined based on the first load information; the third expansion warning number is used to represent the number of expansion warnings issued by the first access server in the second cycle; The fourth expansion warning count is determined based on the second load information; the fourth expansion warning count is used to represent the number of expansion warnings issued by the second access server in the second period; When both the third and fourth expansion warning counts exceed a preset number, the communication network to which the target OLT belongs is expanded.

2. The load balancing method according to claim 1, characterized in that, The first load information includes: a first average traffic volume and a first maximum bandwidth; the second load information includes: a second average traffic volume and a second maximum bandwidth; the load balancing method further includes: The ratio between the first average traffic and the first maximum bandwidth is determined as the first ratio. The ratio between the second average traffic and the second maximum bandwidth is determined as the second ratio. When the absolute value of the difference between the first ratio and the second ratio is greater than or equal to a preset threshold, it is determined that the first load information and the second load information do not meet the load balancing conditions. Alternatively, when the absolute value of the difference between the first ratio and the second ratio is less than the preset threshold, it is determined that the first load information and the second load information satisfy the load balancing condition.

3. The load balancing method according to claim 2, characterized in that, Adjusting the latency parameters of the first access server or the second access server includes: When the first ratio is greater than the second ratio, the latency parameter of the first access server is increased by the target value. Alternatively, when the first ratio is less than the second ratio, the latency parameter of the second access server is increased by the target value.

4. The load balancing method according to claim 3, characterized in that, The step of determining the third capacity expansion warning number based on the first load information includes: The product of the first maximum bandwidth and the preset coefficient is determined as the first value; When the first peak traffic is greater than or equal to the first value, the first expansion warning number is increased by a first preset value to obtain the third expansion warning number; Alternatively, when the first peak traffic is greater than or equal to the first value, and the first average traffic is greater than or equal to the first value, the number of first capacity expansion warnings is increased by a second preset value to obtain the third number of capacity expansion warnings; the second preset value is greater than the first preset value.

5. The load balancing method according to claim 3, characterized in that, The step of determining the fourth capacity expansion warning number based on the second load information includes: The product of the second maximum bandwidth and the preset coefficient is determined as the second value; When the second peak flow is greater than or equal to the second value, the second expansion warning number is increased by a third preset value to obtain the fourth expansion warning number; Alternatively, when the second peak flow is greater than or equal to the second value, and the second average flow is greater than or equal to the second value, the second expansion warning count is increased by a fourth preset value to obtain the fourth expansion warning count; the fourth preset value is greater than the third preset value.

6. The load balancing method according to any one of claims 1-5, characterized in that, Before obtaining the first load information and the second load information, the process also includes: Obtain service link information for each of multiple OLTs; the multiple OLTs include the target OLT; the service link information includes: server information of the access server in the service link when the user equipment accessing the OLT performs service transmission; Clustering algorithms are used to cluster multiple service link information that correspond one-to-one with multiple OLTs in order to determine the multiple access servers connected to each OLT.

7. The load balancing method according to any one of claims 1-5, characterized in that, Also includes: When the first load information and the second load information meet the load balancing conditions, the latency parameters of the first access server and the second access server are adjusted to the same value.

8. A load balancing device, characterized in that, include: Acquisition unit and processing unit; The acquisition unit is used to acquire first load information and second load information; the first load information is the load information of a first access server; the second load information is the load information of a second access server; the first access server and the second access server are any two of a plurality of access servers connected to the target OLT; The first load information further includes: a first peak traffic and a first expansion warning count; the first expansion warning count is used to indicate the number of expansion warnings issued by the first access server in the first period; the second load information further includes: a second peak traffic and a second expansion warning count; the second expansion warning count is used to indicate the number of expansion warnings issued by the second access server in the first period; The processing unit is configured to adjust the latency parameters of the first access server or the second access server when the first load information and the second load information do not meet the load balancing conditions, so that the first load information and the second load information meet the load balancing conditions. When the first load information and the second load information do not meet the load balancing conditions The processing unit is further configured to determine a third expansion warning number based on the first load information; the third expansion warning number is used to represent the number of expansion warnings issued by the first access server in the second cycle; The processing unit is further configured to determine a fourth expansion warning number based on the second load information; the fourth expansion warning number is used to represent the number of expansion warnings issued by the second access server in the second period; The processing unit is further configured to expand the communication network to which the target OLT belongs when both the third expansion warning number and the fourth expansion warning number are greater than a preset number.

9. The load balancing device according to claim 8, characterized in that, The first load information includes: a first average traffic volume and a first maximum bandwidth; the second load information includes: a second average traffic volume and a second maximum bandwidth. The processing unit is further configured to determine the ratio between the first average traffic and the first maximum bandwidth as a first ratio. The processing unit is further configured to determine the ratio between the second average traffic and the second maximum bandwidth as a second ratio. The processing unit is further configured to determine that the first load information and the second load information do not meet the load balancing condition when the absolute value of the difference between the first ratio and the second ratio is greater than or equal to a preset threshold. Alternatively, the processing unit is further configured to determine that the first load information and the second load information satisfy the load balancing condition when the absolute value of the difference between the first ratio and the second ratio is less than the preset threshold.

10. The load balancing device according to claim 9, characterized in that, The processing unit is specifically used for: When the first ratio is greater than the second ratio, the latency parameter of the first access server is increased by the target value. Alternatively, when the first ratio is less than the second ratio, the latency parameter of the second access server is increased by the target value.

11. The load balancing device according to claim 10, characterized in that, The processing unit is specifically used for: The product of the first maximum bandwidth and the preset coefficient is determined as the first value; When the first peak traffic is greater than or equal to the first value, the first expansion warning number is increased by a first preset value to obtain the third expansion warning number; Alternatively, when the first peak flow is greater than or equal to the first value and the first average flow is greater than or equal to the first value, the first expansion warning number is increased by a second preset value to obtain the third expansion warning number. The second preset value is greater than the first preset value.

12. The load balancing device according to claim 10, characterized in that, The processing unit is specifically used for: The product of the second maximum bandwidth and the preset coefficient is determined as the second value; When the second peak flow is greater than or equal to the second value, the second expansion warning number is increased by a third preset value to obtain the fourth expansion warning number; Alternatively, when the second peak flow is greater than or equal to the second value, and the second average flow is greater than or equal to the second value, the second expansion warning number is increased by a fourth preset value to obtain the fourth expansion warning number; The fourth preset value is greater than the third preset value.

13. The load balancing device according to any one of claims 8-12, characterized in that, The acquisition unit is further configured to acquire service link information of each of the multiple OLTs; the multiple OLTs include the target OLT; the service link information includes: server information of the access server in the service link when the user equipment accessing the OLT performs service transmission; The processing unit is further configured to cluster multiple service link information corresponding one-to-one with multiple OLTs based on a clustering algorithm, so as to determine multiple access servers connected to each OLT.

14. The load balancing device according to any one of claims 8-12, characterized in that, The processing unit is further configured to adjust the latency parameters of the first access server and the second access server to the same value when the first load information and the second load information meet the load balancing conditions.

15. A load balancing device, characterized in that, It includes a memory and a processor; the memory is used to store computer execution instructions, and the processor is connected to the memory via a bus; when the load balancing device is running, the processor executes the computer execution instructions stored in the memory, so that the load balancing device performs the load balancing method as described in any one of claims 1-6.

16. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes computer-executable instructions that, when executed on a computer, cause the computer to perform the load balancing method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Service processing method and device among service nodes

    CN104734868A

  • Dynamic handover threshold adjustment for load balancing

    US20180054749A1