APN load balancing method and device, equipment, storage medium and program product

By calculating and updating the load weight in real time and dynamically adjusting the load of the forwarding device, the problem of traffic storm impact caused by excessive gateway load in the 4G/5G converged network is solved, and load balancing and stability are improved.

CN118828697APending Publication Date: 2024-10-22CHINA MOBILE COMM GRP CHONGQING CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410456597.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-15
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

In the 4G/5G converged network, when the gateway load is too large, it is easily affected by traffic storms, leading to failures. It is difficult for existing technologies to effectively solve this problem.

Method used

By obtaining the network element load data and policy load data of the forwarding device in real time, calculating the load value, updating the load weight when the load value is greater than the threshold, adjusting the load weight sent by DNS to the MME, and dynamically adjusting the load of the forwarding device to achieve load balancing. .

Benefits of technology

This effectively prevents forwarding devices from being hit by traffic storms due to excessive load, improves network stability and resource utilization, and prevents failures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118828697A_ABST
    Figure CN118828697A_ABST
Patent Text Reader

Abstract

The invention discloses an APN load balancing method and device, equipment, a storage medium and a program product. According to the specific technical scheme, the method comprises the steps of obtaining network element load data and strategy load data of forwarding equipment; calculating a load value of the forwarding equipment by using the network element load data and the strategy load data; under the condition that the load value is greater than a first threshold value, taking a difference value between the load value and a preset value as the updated load weight of the forwarding equipment; and sending the updated load weight to a domain name server (DNS), so that the DNS sends the updated load weight to mobility management equipment, and the mobility management equipment adjusts the flow data loaded by the forwarding equipment according to the updated load weight. In this way, downtime of the forwarding equipment due to overlarge load is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and in particular, relates to a method, apparatus, device, storage medium and program product for APN load balancing. Background Art

[0002] Typically, in a 4G / 5G converged network, when a gateway receives an access point name (APN) access request sent by a terminal, the gateway determines the network to which the terminal accesses based on the APN access request.

[0003] When the gateway is heavily loaded, the Mobility Management Entity (MME) in the network still forwards the message requested by the APN access request to the gateway according to the preset weight of each gateway, causing the gateway to process a large amount of traffic data in a short period of time, suffer from the impact of traffic storms, and easily cause gateway failures. Summary of the invention

[0004] The embodiments of the present application provide a load balancing method, apparatus, device, storage medium, and program product, which can prevent forwarding devices from being impacted by traffic storms.

[0005] In a first aspect, an embodiment of the present application provides an APN load balancing method, which is applied to an access point name APN load balancer, including:

[0006] Obtain network element load data and policy load data of forwarding devices;

[0007] Calculating a load value of the forwarding device using the network element load data and the policy load data;

[0008] When the load value is greater than a first threshold, taking a difference between the load value and a preset value as an updated load weight of the forwarding device;

[0009] The updated load weight is sent to a domain name server DNS, so that the DNS sends the updated load weight to a mobility management entity MME, and the MME adjusts the traffic data of the forwarding device load according to the updated load weight.

[0010] In a possible implementation manner, the calculating the load value of the forwarding device by using the network element load data and the policy load data includes:

[0011] On the basis of the network element load data and the policy load data, the load value of the forwarding device is calculated using a first preset weight of the network element load data and a second preset weight of the policy load data.

[0012] In a possible implementation, the number of the network element load data is at least one, and the policy load data includes a usage rate of at least one policy configuration field; and the calculating the load value of the forwarding device by using a first preset weight of the network element load data and a second preset weight of the policy load data on the basis of the network element load data and the policy load data includes:

[0013] Calculating the product of the maximum value in the network element load data and the first preset weight to obtain a first product;

[0014] Calculate the product of the maximum value of the usage rate of the policy configuration field and the second preset weight to obtain a second product;

[0015] A sum of the first product and the second product is calculated to obtain a load value of the forwarding device.

[0016] In a possible implementation manner, after sending the updated load weight to the domain name server DNS, the method further includes:

[0017] When detecting that the load value of the forwarding device is less than or equal to a second threshold, updating the load weight of the forwarding device to a target value of the forwarding device;

[0018] The target value is sent to the DNS, so that the DNS sends the default value to a mobility management entity MME, and the MME adjusts the traffic data of the forwarding device load according to the default value.

[0019] In a possible implementation, the DNS records a priority parameter of each forwarding device, and the priority parameter of the forwarding device in each network is the same; before obtaining the network element load data and the policy load data of the forwarding device, the method further includes:

[0020] Determine the priority of each network according to the priority parameter of each forwarding device;

[0021] Determining the target network with the highest priority;

[0022] The forwarding device of the target network is used as the forwarding device for load flow data.

[0023] In a possible implementation manner, after calculating the load value of the forwarding device by using the network element load data and the policy load data, the method further includes:

[0024] In the case where it is detected that all forwarding devices in the target network fail, determining a secondary network with the highest priority among other networks except the target network in each of the networks;

[0025] The forwarding device of the secondary network is used as the forwarding device for load flow data.

[0026] In a second aspect, an embodiment of the present application provides an APN load balancing device, which is applied to an access point name APN load balancer, and the device includes:

[0027] An acquisition module, used to acquire network element load data and policy load data of a forwarding device;

[0028] A calculation module, used to calculate the load value of the forwarding device using the network element load data and the policy load data;

[0029] An updating module, configured to use a difference between the load value and a preset value as an updated load weight of the forwarding device when the load value is greater than a first threshold;

[0030] The sending module is used to send the updated load weight to the domain name server DNS, so that the DNS sends the updated load weight to the mobility management entity MME, and the MME adjusts the traffic data of the forwarding device load according to the updated load weight.

[0031] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising: a processor and a memory storing computer program instructions;

[0032] When the processor executes the computer program instructions, the method according to any one of the first aspects is implemented.

[0033] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method described in any one of the first aspects is implemented.

[0034] In a fifth aspect, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes a method as described in any one of the first aspects.

[0035] The method, apparatus, device, storage medium and program product of APN load balancing of the embodiment of the present application, the APN load balancer obtains the network element load data and policy load data of the forwarding device in the network in real time, and then calculates the load value of the forwarding device using the network element load data and policy load data. When the load value of the forwarding device is greater than the first threshold, it means that the load of the forwarding device is too large, and the load weight of the forwarding device is reduced by reducing the load weight of the forwarding device. Therefore, the load weight of the forwarding device is calculated using the above load value, so that the load weight of the forwarding device can be updated in real time according to the actual load situation of the forwarding device, and the calculated load weight is more in line with the actual situation. Subsequently, the APN load balancing sends the adjusted load weight to the DNS, and the DNS sends the adjusted load weight to the mobility management device, and the mobility management device adjusts the load flow data of the forwarding device according to the load weight corresponding to each forwarding device. In this way, the APN load balancer dynamically adjusts the weight of the forwarding device according to the load of the forwarding device in the network, realizes network load balancing, and prevents the forwarding device from being impacted by the traffic storm. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0037] Figure 1 is an exemplary schematic diagram of a networking system that can implement the APN load balancing method provided in an embodiment of the present application;

[0038] Figure 2 It is a flowchart of an APN load balancing method provided in an embodiment of the present application;

[0039] Figure 3 is an exemplary schematic diagram of a load balancing algorithm provided in an embodiment of the present application;

[0040] Figure 4 It is a flowchart of another APN load balancing method provided in an embodiment of the present application;

[0041] Figure 5 is an exemplary schematic diagram of an APN load balancing method provided in an embodiment of the present application;

[0042] Figure 6 It is a structural diagram of an APN load balancing device provided in an embodiment of the present application;

[0043] Figure 7 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0045] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0046] The following is an explanation of the relevant terms involved in this application:

[0047] eNodeB and gNodeB: represent 4G or 5G base stations respectively, which are used to implement link management, radio resource management, and mobility management functions of the air interface.

[0048] Mobility Management Entity (MME) and Access and Mobility Management Function (AMF): used to implement registration management, connection management, access management, mobility management, and various functions related to security, access management, and authorization.

[0049] The Domain Name System (DNS) is used to store the address of the Session Management Function (SMF) or Public Data Network Gateway (PGW) anchored by the MME / AMF.

[0050] Unified Data Management (UDM) and Home Subscriber Server (HSS): used to store user data and manage data, specifically for user identity authentication, identification processing, and subscription management.

[0051] SMF: Used to implement session management functions, responsible for the allocation and management of IP addresses, selecting and controlling user plane function devices (UPF) and directing data traffic to the target network.

[0052] UPF: Used to implement user plane functions, anchor the data plane, connect the packet data unit (PDU) session point of the data network, and complete the routing and forwarding of data packets.

[0053] Policy Control Function (PCF) and Policy and Charging Rules Function (PCRF): used to implement policy control functions, specifically to ensure network behavior by managing network policies, where network policies include slicing policies, mobility policies, session policies, terminal policies, and charging policies.

[0054] Data network (DN): provides users with network resources that they can access. For example, DN can be a company intranet, campus network, 4G network, or 5G network.

[0055] In order to solve the problems in the prior art, the embodiments of the present application provide a method, apparatus, device, storage medium and program product for APN load balancing. The following first introduces the method for APN load balancing provided by the embodiments of the present application.

[0056] This method is applied to Figure 1 In the networking system shown, the networking system exemplarily shows eNodeB / gNodeB, MME / AMF, DNS, UDM / HSS, SMF / PGW, UPF / PGW, PCF / PCRF and a dedicated DN.

[0057] Among them, eNodeB / gNodeB has a communication connection relationship with MME / AMF and SMF / PGW-C respectively; MME / AMF has a communication connection relationship with eNodeB / gNodeB, SMF / PGW-C, DNS and UDM / HSS respectively; SMF / PGW has a communication connection relationship with eNodeB / gNodeB, MME / AMF, UDM / HSS and UPF / PGW respectively; UPF / PGW-U has a communication connection relationship with PCF / PCRF and dedicated DN respectively.

[0058] It should be noted that a pair of SMF / PGW and UPF / PGW-U is exemplified in the embodiment of the present application. In actual implementation, the number of SMF / PGW and UPF / PGW is not limited to this.

[0059] Based on the above networking system, the APN load balancer monitors MME / AMF, obtains the APN access request sent by the terminal, and monitors the data traffic forwarded by UPF / PGW, and then calculates the load value of UPF / PGW in real time according to the data traffic in UPF / PGW. When the load value of UPF / PGW exceeds the threshold, it indicates that the UPF / PGW load is too large. In order to ensure the normal operation of UPF / PGW and reduce the possibility of UPF / PGW failure, the load weight corresponding to UPF / PGW is reduced. Then MME / AMF diverts the traffic data according to the load weight of each UPF / PGW, reduces the traffic data passing through the UPF / PGW load whose load value is greater than the threshold, and realizes dynamic adjustment of traffic data.

[0060] Figure 2 A schematic diagram of a flow chart of an APN load balancing method provided by an embodiment of the present application is shown. The method is applied to an APN load balancer, such as Figure 2 As shown, the method includes:

[0061] S201. Obtain network element load data and policy load data of a forwarding device.

[0062] Among them, network element load data and policy load data can reflect the actual load of the forwarding device from two dimensions.

[0063] In an example, the network element load data includes the license capacity utilization, the central processing unit (CPU) average utilization, the whole machine throughput ratio, the number of carried users ratio and the active / carried APN ratio.

[0064] It can be understood that the forwarding device is pre-configured with the policies supported by the forwarding device, and the specifications of each policy supported by the forwarding device are configured. The forwarding device can obtain the utilization rate of each policy in the forwarding device, that is, the policy load data, by calculating the ratio of the number of policies already used in each policy of the forwarding device and the specifications of the policy.

[0065] S202: Calculate the load value of the forwarding device using the network element load data and the policy load data.

[0066] S203: When the load value is greater than the first threshold, the difference between the load value and the preset value is used as the updated load weight of the forwarding device.

[0067] The first threshold is determined based on the maximum load value of the forwarding device. Specifically, the first threshold may be 90% of the maximum load value of the forwarding device. For example, if the maximum load value of the forwarding device is 1, the first threshold is 0.9.

[0068] The preset value is determined based on the dimensions of the network element load data and the policy load data. In one example, if the dimensions of the network element load data and the policy load data are percentages, the preset value is set to 1.

[0069] It can be understood that a load value greater than the first threshold value indicates that the actual load of the forwarding device is high, and the flow data of the forwarding device load needs to be reduced to avoid downtime of the forwarding device due to excessive load.

[0070] The load weight of each forwarding device is used to indicate the percentage of the number of data packets carried by the forwarding device to the number of all data packets that need to be forwarded.

[0071] In one example, the network includes forwarding device 1 and forwarding device 2, the load weight of forwarding device 1 is 0.4, and the load weight of forwarding device 2 is 0.6. The network currently needs to forward 100 data packets, and forwarding device 1 needs to forward 100*0.4=40 data packets according to the load weight, and forwarding device 2 needs to forward 100*0.6=60 data packets according to the load weight.

[0072] S204: Send the updated load weight to the domain name server DNS, so that the DNS sends the updated load weight to the mobility management device, and the mobility management device adjusts the flow data of the forwarding device load according to the updated load weight.

[0073] The DNS Naming Authority Pointer (NAPTR) records the load weight corresponding to each forwarding device. After receiving the updated load weight sent by the APN load balancer, the DNS updates the load weight of the forwarding device in the DNS NAPTR.

[0074] The mobility management device obtains the updated load weight from the DNS NAPTR, and then allocates the traffic data that each forwarding device needs to carry to each forwarding device according to the updated load weight.

[0075] In one example, as shown in Table 1, Table 1 is a DNS NAPTR provided in an embodiment of the present application:

[0076] Table 1

[0077]

[0078] Starting from the second row in Table 1, each row corresponds to a forwarding device.

[0079] Name is used to indicate the name of each line in NS NAPTR.

[0080] Order is used to represent the priority parameter of each forwarding device. In the embodiment of the present application, the larger the priority parameter, the smaller the priority.

[0081] Preference is used to indicate the load weight of each forwarding device.

[0082] Service: Communication protocol supported by the forwarding device.

[0083] Relay (replacement): used to configure the relay interface related configuration information.

[0084] Flags: Indicates the type of replacement. "a" indicates that the replacement points to the A record. The mobility management device performs a DNS query on the replacement and obtains the corresponding IP address, which is the IP address of the forwarding device. As shown in Table 2:

[0085] Table 2

[0086]

[0087] Record Type: Used to indicate the record type that replacement points to.

[0088] Fully Qualified Domain Name (FQDN): used to configure trunk interface configuration information.

[0089] Description: used to indicate the forwarding device corresponding to each IP address.

[0090] The mobility management device determines the flow data of each SMF load according to the IP address of the SMF obtained by querying in Table 2 and the load weight of each SMF.

[0091] By adopting the above method, the APN load balancer obtains the network element load data and policy load data of the forwarding device in the network in real time, and then calculates the load value of the forwarding device using the network element load data and policy load data. When the load value of the forwarding device is greater than the first threshold, it means that the load of the forwarding device is too large, and the load weight of the forwarding device is reduced by reducing the load weight of the forwarding device. Therefore, the load weight of the forwarding device is calculated using the above load value. In this way, the load weight of the forwarding device can be updated in real time according to the actual load situation of the forwarding device, and the calculated load weight is more in line with the actual situation. Subsequently, the APN load balancing sends the adjusted load weight to the DNS, and the DNS sends the adjusted load weight to the mobility management device. The mobility management device adjusts the load flow data of the forwarding device according to the load weight corresponding to each forwarding device. In this way, the APN load balancer dynamically adjusts the weight of the forwarding device according to the load of the forwarding device in the network, realizes network load balancing, and prevents the forwarding device from being impacted by traffic storms.

[0092] In some embodiments of the present application, the network element load data and the policy load data can reflect the load of the forwarding device in two dimensions. In order to accurately calculate the actual load of the forwarding device, different preset weights are set for the network element load data and the policy load data, and the load value of the forwarding device is calculated by combining the network element load data and the policy load data. Based on this, for the above S202, the load value of the forwarding device is calculated using the network element load data and the policy load data, which can be specifically implemented as follows:

[0093] Based on the network element load data and the policy load data, the load value of the forwarding device is calculated using a first preset weight of the network element load data and a second preset weight of the policy load data.

[0094] The first preset weight and the second preset weight are set based on experience, and the sum of the first preset weight and the second preset weight is 1. In this way, it can be ensured that the calculated load value of the forwarding device is less than the maximum load value of the forwarding device, which meets the actual application scenario.

[0095] The number of network element load data is at least one, and the policy load data includes a usage rate of at least one policy configuration field.

[0096] Specifically, the calculation process of the load value of the forwarding device is as follows:

[0097] Step 1: Calculate the product of the maximum value in the network element load data and the first preset weight to obtain a first product.

[0098] As shown in Table 3, Table 3 shows an exemplary Figure 1 Network element load data of forwarding equipment UPF / PGW:

[0099] Table 3

[0100] Network element UPF / PGW License capacity utilization 82.17% Average CPU utilization 41% Machine throughput ratio 75% Proportion of number of users carried 60% Active / bearing APN ratio 20%

[0101] The maximum value in the network element load data is the value of the Licensen capacity utilization rate, and the product of the value of the Licensen capacity utilization rate and the first preset weight is taken as the first product.

[0102] Step 2: Calculate the product of the maximum value of the usage rate of the policy configuration field and the second preset weight to obtain a second product.

[0103] Among them, each policy configuration field is used to configure a policy, and the forwarding device supports at least one policy. Therefore, at least one policy configuration field and the specification of each policy configuration field can be pre-configured in the forwarding device. The forwarding device can obtain the utilization rate of each policy in the forwarding device, that is, the policy load data, by calculating the ratio of the number of policies already used in each policy of the forwarding device and the specification of each policy.

[0104] As shown in Table 4, Table 4 shows an exemplary Figure 1 The policy configuration fields that can be configured in the forwarding device UPF / PGW and the specifications and usage of each policy configuration field.

[0105] Table 4

[0106]

[0107]

[0108]

[0109] The maximum value in the policy load data is the usage rate of the user-profile-group field, and the product of the usage rate of the user-profile-group field and the second preset weight is taken as the second product.

[0110] Step 3: Calculate the sum of the first product and the second product to obtain the load value of the forwarding device.

[0111] By adopting the method provided in the embodiment of the present application, the network element load data and the policy load data can reflect the actual load of the forwarding device to a certain extent. By presetting a first preset weight for the network element load data and a second preset weight for the policy load data, and by weighted summing the network element load data and the policy load data, the actual load value of the forwarding device can be calculated more accurately. In this way, the actual load value is used to judge whether the forwarding device is overloaded, so as to dynamically adjust the load of the forwarding device to improve the utilization rate of network resources.

[0112] The following combination Figure 3 This section describes the process of APN load balancer adjusting load weight. Figure 3 As shown, the method specifically includes:

[0113] S301. Monitor the traffic of a forwarding device.

[0114] Among them, the APN load balancer monitors the traffic of each forwarding device in the network and obtains network element load data and policy load data.

[0115] S302: The APN load balancer calculates the load of the forwarding device.

[0116] Among them, the method for the APN load balancer to perform load calculation refers to the relevant description in the above embodiment and will not be repeated here.

[0117] S303: Whether the threshold is reached.

[0118] The threshold is the first threshold mentioned above.

[0119] If yes, execute S304, if no, execute S301.

[0120] S304. Adjust DNS NAPTR.

[0121] The APN load balancer calculates the updated load weight of the forwarding device according to the load value of the forwarding device, and then sends the updated load weight to the DNS, so that the DNS adjusts the load weight of the forwarding device in the DNS NAPTR.

[0122] Using the method provided in the embodiment of the present application, the APN load balancer monitors the traffic data of the forwarding device in the network, and then uses the traffic data to calculate the load value of the forwarding device. When the load value of the forwarding device is greater than the first threshold, it indicates that the load of the forwarding device is too large, and the load weight of the forwarding device is reduced by reducing the load weight of the forwarding device. In this way, the load weight of the forwarding device can be updated in real time according to the actual load of the forwarding device. Subsequently, the APN load balancing sends the adjusted load weight to the DNS. After the DNS adjusts the load weight in the DNS NAPTR, the mobility management device adjusts the load traffic data of the forwarding device according to the load weight corresponding to each forwarding device. In this way, the APN load balancer dynamically adjusts the weight of the forwarding device according to the load of the forwarding device in the network, realizes network load balancing, and prevents the forwarding device from being impacted by traffic storms.

[0123] It should be noted that, since the amount of data carried by the forwarding devices in the network fluctuates dynamically, the load value of each forwarding device also fluctuates dynamically. If the load value of the forwarding device drops to the second threshold, it indicates that the load of the forwarding device is small, and the load weight of the forwarding device can be increased. Based on this, Figure 4 As shown, after the APN load balancer calculates the load weight of the forwarding device, the method further includes:

[0124] S205: When it is detected that the load value of the forwarding device is less than or equal to the second threshold, update the load weight of the forwarding device to a target value of the forwarding device.

[0125] The second threshold is determined according to the maximum load value of the forwarding device, and the target value is set based on experience.

[0126] In an example, the maximum load value is 1, and the second threshold value may be set to 70% of the maximum load value, that is, the second threshold value is set to 0.7.

[0127] It should be noted that the value of the second threshold is smaller than the first threshold. Since the number of data packets carried by the forwarding device fluctuates according to the actual business, the load value of the forwarding device may fluctuate around the first threshold. Therefore, the second threshold is set to be smaller than the first threshold to avoid the load value of the forwarding device being reduced to the second threshold multiple times due to continuous fluctuations in the actual business, thereby repeatedly updating the load weight. When the load of the forwarding device is less than or equal to the second threshold, it means that the amount of data required by the current actual business is small and the fluctuation of the actual business in the short term is relatively stable, so the load weight of the forwarding device is updated to the target value.

[0128] S206: Send the target value to the DNS, so that the DNS sends the target value to the mobility management device, and the mobility management device adjusts the traffic data of the forwarding device load according to the default value.

[0129] The method for the mobility management device to adjust the flow data of the forwarding device load is described in the above embodiments and will not be described again here.

[0130] By adopting the method provided in the embodiment of the present application, when the APN load balancer monitors that the load value of the forwarding device is less than or equal to the second threshold, it indicates that the fluctuation of the number of forwarding data packets under the load of the forwarding device tends to be stable and the number of forwarding data packets under the load is small. Therefore, the load weight of the forwarding device can be increased, thereby realizing dynamic diversion of traffic data and improving network resource utilization.

[0131] In some embodiments of the present application, the priority parameter of each forwarding device is recorded in the DNS, and the priority parameters of the forwarding devices in the same network are the same, and the target network for forwarding the traffic data requested by the user can be determined according to the priority parameters. Specifically, before obtaining the network element load data and policy load data of the forwarding device, the method further includes:

[0132] Step A: Determine the priority of each network according to the priority parameter of each forwarding device.

[0133] It can be understood that, since the priority parameters of the forwarding devices in the same network are consistent, the priorities of different networks can be determined by comparing the priority parameters of the forwarding devices in different networks.

[0134] In an example, in combination with the above Table 1, the priority parameters of each forwarding device in the same network are the same and are all 10. Based on the priority parameters forwarded in the network, it can be determined that the value representing the priority of the network is 10.

[0135] Step B: Determine the target network with the highest priority.

[0136] In an example, in combination with the above Table 1, assuming that there is a network with a priority value of 11, by comparing the priority values ​​of the networks, since the smaller the priority value, the higher the priority, the network with a priority value of 10 is used as the target network.

[0137] Step C: Use the forwarding device of the target network as the forwarding device for the load flow data.

[0138] By using the method provided in the embodiment of the present application, since the priority parameters of the forwarding devices in the same network are the same, the priority of each network can be determined. Thus, the target network with the highest priority is used as the network for the traffic data requested by the load terminal. In this way, the priority parameters of the forwarding device can be determined according to actual needs, so that the subsequent determination of the target network can be more in line with the actual application scenario.

[0139] Based on the above-mentioned preset priority parameters for each forwarding device, when a forwarding device in the target network fails, a network with a lower priority can be enabled to continue to load the traffic data requested by the terminal. Specifically, after the above-mentioned S204, sending the updated load weight to the domain name server DNS, the method further includes:

[0140] When it is detected that each forwarding device in the target network fails, a secondary network with the highest priority is determined in other networks except the target network in each network; and the forwarding device of the secondary network is used as the forwarding device for load flow data.

[0141] It can be understood that in the case of a forwarding device with a high priority parameter value, the forwarding device with a high priority parameter value is used to forward the message. When the forwarding device in the network to which the forwarding device with a high priority parameter value belongs fails, other forwarding devices in the network continue to carry the traffic data. When the remaining network devices in the network can no longer carry data traffic, the remaining network devices will go down. Therefore, among other networks except the target network, the secondary network with the highest priority is selected and used as the network for the traffic data requested by the load terminal, thereby avoiding the user being unable to access the network.

[0142] By adopting the method provided in the embodiment of the present application, a low-priority network can be used as a disaster recovery network for a target network. When a target network fails, the low-priority network can be started in time to continue forwarding traffic data, thus preventing users from being unable to access the network.

[0143] The following combination Figure 1 The networking system shown in FIG. 1 is an exemplary schematic diagram of an APN load balancing method provided in an embodiment of the present application, such as Figure 5 As shown, the method specifically includes:

[0144] S501. The APN load balancer monitors access to the MME / AMF.

[0145] Among them, access monitoring refers to the APN load balancer monitoring the APN access requests received by the MME / AMF.

[0146] It should be noted that the APN access request is used to request the corresponding traffic data, that is, there is a corresponding relationship between the APN access request and the data traffic of the UPF / PGW load. When the APN load balancer monitors that the MME / AMF receives the APN access request, it triggers the subsequent steps of performing traffic monitoring on the UPF / PGW.

[0147] Among them, the APN load balancer supports the interfaces shown in Table 5:

[0148] Table 5

[0149]

[0150]

[0151] Combined with the above Figure 1 , Figure 1 The dotted line between the APN load balancer and the MME / AMF indicates that the APN load balancer monitors the access of the MME / AMF.

[0152] S502. The APN load balancer monitors the traffic of UPF / PGW.

[0153] Traffic monitoring refers to obtaining the network element load data and policy load data of each UPF / PGW in the network. UPF / PGW is the forwarding device mentioned above.

[0154] Combined with the above Figure 1 As shown in Table 5, the dashed connecting line between the APN load balancer and UPF / PGW indicates that the APN load balancer monitors the traffic of UPF / PGW.

[0155] S503: The APN load balancer calculates the load.

[0156] Among them, the method of calculating the load value of the forwarding device refers to the relevant description in the above embodiment, which will not be repeated here.

[0157] S504: The APN load balancer sends a load adjustment policy to the DNS.

[0158] The load adjustment strategy is the updated load weight sent by the APN load balancer to the DNS.

[0159] Combined with the above Figure 1 As shown in Table 5, the dashed connecting line between the APN load balancer and the DNS indicates that the APN load balancer sends the updated load weight to the DNS.

[0160] S505. MME / AMF obtains the adjusted load weight from DNS.

[0161] After receiving the message to be forwarded, MME / AMF obtains the load weight of each forwarding device from DNS.

[0162] S506. MME / AMF performs anchoring adjustment on SMF / PGW.

[0163] Among them, SMF / PGW and UPF / PGW are in a one-to-one correspondence, that is, each MME / AMF is connected to a UPF / PGW, so the data flow of the UPF / PGW load can be adjusted by adjusting the data flow of the SMF / PGW load. Anchor adjustment is the above adjustment of the data flow of the SMF / PGW load.

[0164] It should be noted that since UPF / PGW is closer to the DN side, the network element load data and policy load data obtained by monitoring the traffic of UPF / PGW are more accurate.

[0165] S507. SMF / PGW performs anchoring adjustment on UPF / PGW.

[0166] S508. UPF / PGW performs anchoring adjustment on DN.

[0167] Using the method provided in the embodiment of the present application, the APN load balancer performs access monitoring and traffic monitoring on the MME / AMF and UPF / PGW respectively, so as to obtain the actual load value of each UPF / PGW, and then update the load weight of each UPF / PGW according to the actual load value of each UPF / PGW. In this way, by monitoring the traffic of each UPF / PGW in real time, the actual load of each UPF / PGW can be determined in a timely and accurate manner. When the UPF / PGW load is too large, by adjusting the load weight of the UPF / PGW, the subsequent MME / AMF can divert the data traffic of each UPF / PGW load according to the updated load weight of each UPF / PGW, and finally realize APN diversion, improve the security of services and networks, realize dynamic adjustment of the data traffic of each UPF / PGW load according to the load of each UPF / PGW, and improve node utilization. And combined with the above Figure 1 The networking system shown includes 4G network equipment and 5G network equipment that can achieve the same functions, making full use of existing 4G network equipment to increase network redundancy, which is conducive to the integration and smooth evolution of 4G networks and 5G networks.

[0168] Based on the same concept, the embodiment of the present application provides an APN load balancing device, which is applied to an access point name APN load balancer, such as Figure 6 As shown, the device comprises:

[0169] An acquisition module 601 is used to acquire network element load data and policy load data of a forwarding device;

[0170] A calculation module 602, configured to calculate a load value of a forwarding device using network element load data and policy load data;

[0171] An updating module 603, configured to use a difference between the load value and a preset value as an updated load weight of the forwarding device when the load value is greater than a first threshold;

[0172] The sending module 604 is used to send the updated load weight to the domain name server DNS, so that the DNS sends the updated load weight to the mobility management entity MME, and the MME adjusts the traffic data of the forwarding device load according to the updated load weight.

[0173] In a possible implementation, the calculation module 602 is specifically configured to:

[0174] Based on the network element load data and the policy load data, the load value of the forwarding device is calculated using a first preset weight of the network element load data and a second preset weight of the policy load data.

[0175] In a possible implementation, the number of network element load data is at least one, and the policy load data includes a usage rate of at least one policy configuration field; the calculation module 602 is specifically configured to:

[0176] Calculate the product of the maximum value in the network element load data and the first preset weight to obtain a first product;

[0177] Calculate the product of the maximum value of the usage rate of the policy configuration field and the second preset weight to obtain a second product;

[0178] The sum of the first product and the second product is calculated to obtain a load value of the forwarding device.

[0179] In a possible implementation, the updating module 603 is further configured to update the load weight of the forwarding device to a target value of the forwarding device when it is detected that the load value of the forwarding device is less than or equal to the second threshold;

[0180] The sending module 604 is further configured to send the target value to the DNS, so that the DNS sends the target value to the mobility management device, and the mobility management device adjusts the flow data of the forwarding device load according to the default value.

[0181] In a possible implementation, the priority parameter of each forwarding device is recorded in the DNS, and the priority parameter of the forwarding device in each network is the same; the device also includes a determination module;

[0182] A determination module, used to determine the priority of each network according to the priority parameter of each forwarding device;

[0183] The determination module is also used to determine the target network with the highest priority;

[0184] The determination module is also used to use the target network as the network of the flow data requested by the load terminal.

[0185] In a possible implementation, the determining module is further configured to:

[0186] In the case where it is detected that each forwarding device in the target network fails, determining a secondary network with the highest priority among other networks except the target network in each network;

[0187] The secondary network is used as the network for the traffic data requested by the load terminal.

[0188] It should be noted that the APN load balancing device is a device corresponding to the above-mentioned APN load balancing method applied to the server. All implementation methods in the above-mentioned method embodiments are applicable to the embodiments of the device and can achieve the same technical effects.

[0189] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.

[0190] The electronic device may include a processor 701 and a memory 702 storing computer program instructions.

[0191] Specifically, the processor 701 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0192] The memory 702 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 702 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 702 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 702 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 702 is a non-volatile solid-state memory.

[0193] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.

[0194] The processor 701 implements any one of the APN load balancing methods in the above embodiments by reading and executing computer program instructions stored in the memory 702 .

[0195] In one example, the electronic device may further include a communication interface 703 and a bus 704. Figure 7 As shown, the processor 701, the memory 702, and the communication interface 703 are connected via a bus 704 and communicate with each other.

[0196] The communication interface 703 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0197] Bus 704 includes hardware, software or both, and the parts of electronic equipment are coupled to each other.For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 704 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.

[0198] In addition, in combination with the APN load balancing method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any of the APN load balancing methods in the above embodiment is implemented.

[0199] In addition, in combination with the APN load balancing method in the above embodiments, an embodiment of the present application may provide a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device implements any one of the APN load balancing methods in the above embodiments when executing.

[0200] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0201] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0202] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0203] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0204] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A method for APN load balancing, characterized in that: Applies to the Access Point Name (APN) load balancer, including: Obtain network element load data and policy load data of forwarding devices; Calculating a load value of the forwarding device using the network element load data and the policy load data; When the load value is greater than a first threshold, taking a difference between the load value and a preset value as an updated load weight of the forwarding device; The updated load weight is sent to a domain name server DNS, so that the DNS sends the updated load weight to a mobility management device, and the mobility management device adjusts the flow data of the forwarding device load according to the updated load weight.

2. The method according to claim 1, characterized in that: The calculating the load value of the forwarding device by using the network element load data and the policy load data includes: On the basis of the network element load data and the policy load data, the load value of the forwarding device is calculated using a first preset weight of the network element load data and a second preset weight of the policy load data.

3. The method according to claim 2, characterized in that The number of the network element load data is at least one, and the policy load data includes a usage rate of at least one policy configuration field; and the calculating the load value of the forwarding device by using a first preset weight of the network element load data and a second preset weight of the policy load data on the basis of the network element load data and the policy load data includes: Calculating the product of the maximum value in the network element load data and the first preset weight to obtain a first product; Calculate the product of the maximum value of the usage rate of the policy configuration field and the second preset weight to obtain a second product; A sum of the first product and the second product is calculated to obtain a load value of the forwarding device.

4. The method according to claim 1, characterized in that: After sending the updated load weight to the domain name server DNS, the method further includes: When detecting that the load value of the forwarding device is less than or equal to a second threshold, updating the load weight of the forwarding device to a target value of the forwarding device; The target value is sent to the DNS, so that the DNS sends the target value to the mobility management device, and the mobility management device adjusts the flow data of the forwarding device load according to the default value.

5. The method according to claim 1, characterized in that: The priority parameters of each forwarding device are recorded in the DNS, and the priority parameters of the forwarding devices in each network are the same; Before acquiring the network element load data and policy load data of the forwarding device, the method further includes: Determine the priority of each network according to the priority parameter of each forwarding device; Determining the target network with the highest priority; The forwarding device of the target network is used as the forwarding device for load flow data.

6. The method according to claim 5, characterized in that After sending the updated load weight to the domain name server DNS, the method further includes: In the case where it is detected that all forwarding devices in the target network fail, determining a secondary network with the highest priority among other networks except the target network in each of the networks; The forwarding device of the secondary network is used as the forwarding device for load flow data.

7. An APN load balancing device, characterized in that: Applied to an access point name APN load balancer, the device comprises: An acquisition module, used to acquire network element load data and policy load data of a forwarding device; A calculation module, used to calculate the load value of the forwarding device using the network element load data and the policy load data; An updating module, configured to use a difference between the load value and a preset value as an updated load weight of the forwarding device when the load value is greater than a first threshold; The sending module is used to send the updated load weight to the domain name server DNS, so that the DNS sends the updated load weight to the mobility management entity MME, and the MME adjusts the traffic data of the forwarding device load according to the updated load weight.

8. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.

10. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the method according to any one of claims 1 to 6.