EPDG load balancing method and device, storage medium and electronic equipment

By assigning different identifiers to multiple IP addresses and determining access to EPDG based on SIM card number calculation, the overload problem caused by multiple terminals in VoWiFi technology is solved, and network stability and access success rate are improved.

CN119031419APending Publication Date: 2024-11-26BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310588622.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-23
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

In the existing VoWiFi technology, when a terminal accesses an IMS network through WiFi, the IP addresses of multiple EPDGs are basically the same, causing multiple terminals to access the same EPDG, resulting in EPDG overload and network instability.

Method used

By assigning different identifiers to multiple IP addresses and performing preset operations based on the terminal's SIM card number, the matching IP address is determined and the corresponding EPDG is attempted to access the corresponding EPDG to avoid repeated access to the same EPDG.

Benefits of technology

Different terminals are implemented to access different EPDGs based on different SIM card numbers, avoid EPDG overload, and improve network stability and access success rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119031419A_ABST
    Figure CN119031419A_ABST
Patent Text Reader

Abstract

The present disclosure provides an EPDG load balancing method and apparatus, a storage medium and an electronic device, the EPDG load balancing method comprising: in response to receiving a plurality of IP addresses, assigning different identifiers to the plurality of IP addresses, the different IP addresses corresponding to different EPDGs. And performing preset operation on the SIM card number of the terminal to obtain an operation result, the operation result being used for indicating the first numerical value. And determining a first IP address of which the identifier is matched with the first numerical value in the plurality of IP addresses, and trying to access a first EPDG in the plurality of EPDGs based on the first IP address. According to the load balancing method of the EPDG provided by the embodiment of the invention, different terminals can be accessed to different EPDGs based on different SIM card numbers, and the situation that the EPDG is overloaded and the network is unstable due to the fact that many terminals are accessed to the same EPDG is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The technical solution disclosed herein relates to the field of communication technology, and in particular to a load balancing method and device for EPDG, a storage medium, and an electronic device. Background Art

[0002] VoWiFi (Voice over Wi-Fi) is a technology that supports terminals to access IMS (IP Multimedia Subsystem) network through WiFi (wireless fidelity) for voice and video services. EPDG (Evolved Packet Data Gateway) is a necessary network element for terminals to access IMS through WiFi, that is, the terminal needs to access EPDG before it can further access the IMS network.

[0003] When a terminal wants to access the IMS network via WiFi, the network can provide the terminal with multiple EPDG IP (Internet Protocol) addresses. In the existing implementation, the terminal will try to access the multiple EPDGs in sequence according to the IP address sequence provided by the network. That is, it will first try to access the first EPDG. If the first access is successful, it will not try to access the subsequent EPDGs. Since the IP address sequence of multiple EPDGs provided by the network to different terminals is basically the same, there will be a situation where many terminals access the same EPDG, causing the EPDG to be overloaded. Summary of the invention

[0004] In view of this, the embodiments of the present disclosure provide a load balancing method and device for EPDG, a storage medium, and an electronic device.

[0005] According to a first aspect of the present disclosure, a load balancing method for an EPDG is proposed, the method comprising:

[0006] In response to receiving a plurality of Internet Protocol (IP) addresses, assigning different identifiers to the plurality of IP addresses; wherein different IP addresses correspond to different EPDGs;

[0007] Performing a preset operation on the user identity identification SIM card number of the terminal to obtain an operation result; the operation result is used to indicate a first value;

[0008] Determine, among the multiple IP addresses, a first IP address whose identifier matches the first value;

[0009] Based on the first IP address, attempt to access a first EPDG among multiple EPDGs.

[0010] In combination with any implementation manner provided in the present disclosure, determining, among the multiple IP addresses, a first IP address whose identifier matches the first value includes:

[0011] In response to determining that there is a first identifier that is equal to the first value among the multiple identifiers, determining the IP address corresponding to the first identifier as the first IP address; or

[0012] In response to determining that the first identifier does not exist among the multiple identifiers, a target identifier associated with the first identifier is determined, and an IP address corresponding to the target identifier is determined as the first IP address.

[0013] In combination with any implementation manner provided in the present disclosure, a difference between the target identifier and the first identifier is a first preset value.

[0014] In combination with any embodiment provided in the present disclosure, the method further includes:

[0015] When access to the first EPDG fails, determining a second IP address from among the multiple IP addresses;

[0016] Based on the second IP address, an attempt is made to access a second EPDG among the multiple EPDGs.

[0017] In combination with any implementation scheme provided in the present disclosure, the difference between the second identifier corresponding to the second IP address and the first identifier corresponding to the first IP address is a second preset value.

[0018] In combination with any implementation manner provided in the present disclosure, after assigning different identifiers to the multiple IP addresses, the method further includes:

[0019] storing the plurality of IP addresses and the corresponding identifiers in a first list;

[0020] When access to the first EPDG fails, deleting the first IP address and the corresponding first identifier from the first list;

[0021] The first IP address and the corresponding first identifier are saved in the second list.

[0022] In combination with any embodiment provided in the present disclosure, the method further includes:

[0023] When the first list is empty, adding the IP addresses and corresponding identifiers in the second list to the first list;

[0024] Clear the second list.

[0025] In combination with any embodiment provided in the present disclosure, the method further includes:

[0026] After successfully accessing the first EPDG, recording the first IP address;

[0027] In response to the first IP address being included in the newly received multiple IP addresses and the SIM card number of the terminal not being changed, an attempt is made to access the first EPDG.

[0028] According to a second aspect of the present disclosure, a load balancing device for an EPDG is proposed, the device comprising:

[0029] an allocation module, configured to allocate different identifiers to the multiple Internet Protocol (IP) addresses in response to receiving the multiple IP addresses; wherein different IP addresses correspond to different EPDGs;

[0030] A calculation module, used for performing a preset calculation on the user identity identification SIM card number of the terminal to obtain a calculation result; the calculation result is used to indicate a first value;

[0031] A determination module, configured to determine, among the multiple IP addresses, a first IP address whose identifier matches the first value;

[0032] The access module is used to attempt to access a first EPDG among multiple EPDGs based on the first IP address.

[0033] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, wherein the machine-readable storage medium stores machine-readable instructions, and when the machine-readable instructions are called and executed by a processor, the processor is prompted to implement the load balancing method of the EPDG of any embodiment of the present disclosure.

[0034] According to a fourth aspect of the present disclosure, there is provided an electronic device, comprising:

[0035] processor;

[0036] a memory for storing processor-executable instructions;

[0037] The processor is configured to execute the load balancing method of the EPDG of any embodiment of the present disclosure.

[0038] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0039] The load balancing method and device, storage medium and electronic device of EPDG provided in the embodiments of the present disclosure, in response to receiving multiple IP addresses, assign different identifiers to the multiple IP addresses, wherein different IP addresses correspond to different EPDGs. A preset operation is performed on the SIM card number of the terminal to obtain an operation result, and the operation result is used to indicate a first numerical value. Among the multiple IP addresses, the first IP address whose identifier matches the first numerical value is determined, and based on the first IP address, an attempt is made to access the first EPDG among the multiple EPDGs. The load balancing method of EPDG provided in the embodiments of the present disclosure allows different terminals to access different EPDGs based on different SIM card numbers, thereby avoiding many terminals accessing the same EPDG, resulting in overload of the EPDG and network instability.

[0040] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0042] Figure 1 is a flow chart of a load balancing method of an EPDG according to an exemplary embodiment of the present disclosure;

[0043] Figure 2 is a structural diagram of a load balancing device of an EPDG according to an exemplary embodiment of the present disclosure;

[0044] Figure 3 is a structural schematic diagram of another EPDG load balancing device according to an exemplary embodiment of the present disclosure;

[0045] Figure 4 is a structural schematic diagram of another EPDG load balancing device according to an exemplary embodiment of the present disclosure;

[0046] Figure 5 is a structural schematic diagram of another EPDG load balancing device according to an exemplary embodiment of the present disclosure;

[0047] Figure 6 is a structural schematic diagram of another EPDG load balancing device according to an exemplary embodiment of the present disclosure;

[0048] Figure 7 It is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0049] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0050] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0051] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0052] VoWiFi is a technology that supports terminals to access the IMS network through WiFi for voice and video services. Compared with the VoLTE (Voice over Long-Term Evolution) technology that needs to rely on base stations, VoWiFi can access the IMS network through WiFi when the terminal is located without the operator base station to which the terminal SIM (Subscriber Identity Module) card belongs.

[0053] EPDG is a necessary network element for the terminal to access IMS via WiFi, that is, the terminal needs to access EPDG before it can further access the IMS network. When the terminal wants to access the IMS network via WiFi, it can generate an EPDG domain name based on the country code and network code of the operator to which the terminal SIM card belongs, as well as preset rules, or it can obtain the EPDG domain name pre-set by relevant staff. Then the EPDG domain name is sent to the DNS (Domain Name System) server to obtain multiple IP (Internet Protocol) addresses corresponding to the EPDG domain name.

[0054] In the existing implementation, after obtaining the IP addresses of multiple EPDGs, the terminal will try to access them in sequence according to the order of the IP addresses of the multiple EPDGs obtained. That is, it will first try to access the first EPDG based on the first IP address. If the first access is successful, it will not try to access the subsequent EPDGs. Because the IP address order of multiple EPDGs provided by the network to different terminals is basically the same, many terminals will access the same EPDG, causing the EPDG to be overloaded.

[0055] In view of this, the present disclosure provides a load balancing method for EPDG, in which different terminals can access different EPDGs based on different SIM card numbers, thereby avoiding many terminals accessing the same EPDG, causing the EPDG to be overloaded and the network to be unstable.

[0056] The following describes in detail the load balancing method of the EPDG in the embodiment of the present disclosure in conjunction with the accompanying drawings.

[0057] Figure 1 FIG. 1 is a flow chart of a load balancing method of an EPDG according to an exemplary embodiment of the present disclosure. In a specific implementation, the method may be executed by a terminal. Figure 1 As shown, the exemplary embodiment method may include the following steps:

[0058] In step 101, in response to receiving a plurality of IP addresses, different identifiers are allocated to the plurality of IP addresses; wherein different IP addresses correspond to different EPDGs.

[0059] In an optional example, corresponding identifiers may be assigned to multiple IP addresses based on their numerical values. Specifically, multiple IP addresses received may be sorted according to size and then assigned identifiers in sequence. Alternatively, identifiers may be assigned to multiple IP addresses based on the order in which they are received. For example, when the first IP address is received, an identifier "0" is assigned to it, when the second IP address is received, an identifier "1" is assigned to it, and when the third IP address is received, an identifier "2" is assigned to it... and so on.

[0060] In step 102, a preset operation is performed on the user identity identification SIM card number of the terminal to obtain an operation result.

[0061] The operation result is used to indicate the first numerical value. The preset operation may be a mod operation on any digit of the SIM card number of the terminal, such as a mod operation on the last digit NUM of the SIM card number, i.e., a remainder operation, to obtain the operation result M. Alternatively, any digit of the SIM card number of the terminal may be directly used as the operation result M. Alternatively, a subtraction operation may be performed on any digit of the SIM card number of the terminal to obtain the operation result M, which is not limited in the present disclosure. For the convenience of description, the preset operation is described as a mod operation on the last digit NUM of the SIM card number of the terminal to introduce the subsequent embodiments.

[0062] For example, the preset operation may be to use the last digit of the SIM card number to perform a mod operation on 7. Specifically, when it is determined that the last digit of the SIM card number is 9, 9 is modulated on 7 to obtain a result of 2, that is, the first value is 2.

[0063] In step 103, a first IP address whose identifier matches the first value is determined among the multiple IP addresses.

[0064] In the aforementioned example, the first numerical value is 2, which matches the identifier "2", that is, the IP address identified as "2" can be determined as the first IP address.

[0065] In step 104, based on the first IP address, an attempt is made to access a first EPDG among a plurality of EPDGs.

[0066] Different IP addresses correspond to different EPDGs. In this example, after determining the first IP address, the terminal can attempt to access the first EPDG corresponding to the first IP address, and after successfully accessing the first EPDG, complete the terminal identity authentication through the AAA server and HSS, and after the authentication is completed, establish an Internet security protocol channel between the terminal and the first EPDG to ensure secure information transmission.

[0067] The authentication method may be authentication based on a SIM card (EAP-AKA / EAP-SIM). For the detailed process of authentication, please refer to the introduction of the existing method, which will not be described in detail in this embodiment.

[0068] In the load balancing method of EPDG provided in the embodiment of the present disclosure, in response to receiving multiple IP addresses, different identifiers are assigned to the multiple IP addresses, wherein different IP addresses correspond to different EPDGs. A preset operation is performed on the SIM card number of the terminal to obtain an operation result, and the operation result is used to indicate a first numerical value. Among the multiple IP addresses, a first IP address whose identifier matches the first numerical value is determined, and based on the first IP address, an attempt is made to access a first EPDG among the multiple EPDGs. The load balancing method of EPDG provided in the embodiment of the present disclosure allows different terminals to access different EPDGs based on different SIM card numbers, thereby avoiding many terminals accessing the same EPDG, causing the EPDG to be overloaded and the network to be unstable.

[0069] In one embodiment, when determining the first IP address that matches the identifier with the first value among the multiple IP addresses, the following two situations may be included:

[0070] Case 1: In response to determining that there is a first identifier equal to the first value among the multiple identifiers, the IP address corresponding to the first identifier is determined as the first IP address.

[0071] In the above example, the first numerical value is 2, and the first identifier equal to the first numerical value is "2", that is, the IP address corresponding to the first identifier "2" can be determined as the first IP address.

[0072] Case 2: In response to determining that the first identifier does not exist among the multiple identifiers, a target identifier associated with the first identifier is determined, and an IP address corresponding to the target identifier is determined as the first IP address.

[0073] In an optional example, the difference between the target identifier and the first identifier is a first preset value. The first preset value may be 1, or may be 2, which may be set by relevant staff based on actual conditions, and the present disclosure does not limit this. For ease of description, the first preset value is assumed to be 1 for the introduction of subsequent embodiments.

[0074] In the above example, the first numerical value is 2, and the first identifier equal to the first numerical value is "2". When it is determined that the first identifier "2" does not exist among the multiple identifiers, the target identifier can be further determined to be "3", and then the IP address corresponding to the target identifier "3" can be determined as the first IP address.

[0075] The load balancing method of the EPDG provided in the embodiment of the present disclosure can further determine the target identifier associated with the first identifier when it is determined that there is no first IP address corresponding to the first identifier, and determine the IP address corresponding to the target identifier as the first IP address. This can improve the access success rate of the terminal and has high practicality.

[0076] In actual application, after the terminal determines that it has successfully accessed the first EPDG, it can record the first IP address, and try to access the first EPDG when the new multiple IP addresses received again include the first IP address and the SIM card number of the terminal has not changed.

[0077] The terminal may determine whether the SIM card of the terminal is changed based on whether the IMSI (International Mobile Subscriber Identity) of the SIM card or the ICCID (Integrated Circle Card Idntifier) ​​of the SIM card is changed.

[0078] In the load balancing method of the EPDG provided in the embodiment of the present disclosure, when it is determined that the terminal has successfully accessed the first EPDG, the first IP address can be recorded, and when the terminal receives multiple new IP addresses again including the first IP address and detects that the SIM card number of the terminal has not changed, the terminal attempts to access the first EPDG through the first IP address. In other words, the IP address that has been successfully used can be used preferentially, thereby improving the access success rate.

[0079] In actual applications, sometimes the first IP address is unavailable, that is, the attempt to access the first EPDG fails. In this case, a second IP address can be determined from the multiple IP addresses, and based on the second IP address, an attempt can be made to access a second EPDG in the multiple EPDGs.

[0080] In an optional example, the difference between the second identifier corresponding to the second IP address and the first identifier corresponding to the first IP address is a second preset value.

[0081] The second preset value may be the same as or different from the first preset value, and may be set by relevant staff based on actual conditions, which is not limited in the present disclosure. For ease of description, the second preset value is assumed to be 2 for the introduction of the subsequent embodiments.

[0082] Continuing with the above-mentioned embodiment, in the above-mentioned embodiment, the first identifier is "2". When it is determined that the first IP address corresponding to the first identifier is unavailable, that is, the terminal fails to access the first EPDG, the second identifier can be determined to be "4". Then, based on the second IP address corresponding to the second identifier "4", an attempt is made to access the second EPDG.

[0083] In the EPDG load balancing method provided in the embodiment of the present disclosure, when it is determined that the first IP address is unavailable, a second IP address can be determined from the multiple IP addresses, and based on the second IP address, an attempt can be made to access the second EPDG among the multiple EPDGs, thereby improving the access success rate of the terminal and providing the user with a better user experience.

[0084] In one embodiment, after assigning different identifiers to the multiple IP addresses, the method may further include:

[0085] The multiple IP addresses and the corresponding identifiers are saved in a first list, and when access to the first EPDG fails, the first IP address and the corresponding first identifier are deleted from the first list, and the first IP address and the corresponding first identifier are saved in a second list.

[0086] In this example, the terminal may pre-create the first list and the second list, and set the priority of the first list higher than the second list. Therefore, the terminal may save the multiple IP addresses and the corresponding identifiers in the first list after assigning different identifiers to the multiple IP addresses.

[0087] When the terminal determines that the access to the first EPDG fails, the first IP address and the corresponding first identifier can be automatically deleted from the first list and added to the second list. It can be understood that in this example, the second list is similar to the role of a blacklist. When the terminal determines whether there is an IP address corresponding to the determined identifier, it is determined only based on the first list and has nothing to do with the second list.

[0088] In the EPDG load balancing method provided in the embodiment of the present disclosure, when the terminal determines that the access to the first EPDG has failed, the first IP address and the corresponding first identifier can be automatically deleted from the first list to avoid the situation where the terminal fails to access the EPDG due to another attempt to access the first EPDG when the terminal subsequently wants to access the EPDG again.

[0089] In an optional example, when the first list is empty, the IP addresses and corresponding identifiers in the second list are added to the first list, and the second list is cleared.

[0090] When the first list is empty, it means that the terminal has automatically added all IP addresses and corresponding identifiers to the second list. Since the terminal determines whether there is an IP address corresponding to the determined identifier based only on the first list, the terminal can add the IP addresses and corresponding identifiers in the second list to the first list again and clear the second list, so that the terminal can re-determine which IP address to access the corresponding EPDG based on the multiple IP addresses and corresponding identifiers added to the first list again.

[0091] The load balancing method of the EPDG provided in the embodiment of the present disclosure can add the IP addresses and corresponding identifiers in the second list to the first list and clear the second list when the first list is empty. And based on the IP addresses and corresponding identifiers in the first list, it is re-determined which IP address is used to access the corresponding EPDG, which can improve the access success rate of the terminal.

[0092] For the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited by the described order of actions, because according to the present disclosure, certain steps can be performed in other orders or simultaneously.

[0093] Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.

[0094] Corresponding to the aforementioned application function implementation method embodiment, the present disclosure also provides an application function implementation device and a corresponding terminal embodiment.

[0095] Figure 2 FIG. 1 is a schematic diagram of a load balancing device of an EPDG according to an exemplary embodiment of the present disclosure. Figure 2 As shown, the load balancing device of the EPDG may include:

[0096] The allocation module 21 is used for allocating different identifiers to the multiple Internet Protocol IP addresses in response to receiving the multiple IP addresses; wherein different IP addresses correspond to different EPDGs.

[0097] The operation module 22 is used to perform a preset operation on the user identity identification SIM card number of the terminal to obtain an operation result; the operation result is used to indicate a first value.

[0098] The first determination module 23 is configured to determine, among the multiple IP addresses, a first IP address whose identifier matches the first value.

[0099] The first access module 24 is configured to attempt to access a first EPDG among multiple EPDGs based on the first IP address.

[0100] Optionally, the first determining module 23, when used to determine the first IP address whose identifier matches the first value among the multiple IP addresses, includes:

[0101] In response to determining that there is a first identifier that is equal to the first value among the multiple identifiers, determining the IP address corresponding to the first identifier as the first IP address; or

[0102] In response to determining that the first identifier does not exist among the multiple identifiers, a target identifier associated with the first identifier is determined, and an IP address corresponding to the target identifier is determined as the first IP address.

[0103] Optionally, the difference between the target identifier and the first identifier is a first preset value.

[0104] Optional, such as Figure 3 As shown, in Figure 2 Based on the modules shown, the load balancing device of the EPDG may further include:

[0105] The second determining module 31 is configured to determine a second IP address from among the multiple IP addresses when access to the first EPDG fails.

[0106] The second access module 32 is used to try to access a second EPDG among the multiple EPDGs based on the second IP address.

[0107] Optionally, the difference between the second identifier corresponding to the second IP address and the first identifier corresponding to the first IP address is a second preset value.

[0108] Optional, such as Figure 4 As shown, in Figure 2 Based on the modules shown, the load balancing device of the EPDG may further include:

[0109] The first saving module 41 is used to save the multiple IP addresses and the corresponding identifiers in a first list.

[0110] The deleting module 42 is configured to delete the first IP address and the corresponding first identifier from the first list when access to the first EPDG fails.

[0111] The second saving module 43 is used to save the first IP address and the corresponding first identifier into a second list.

[0112] Optional, such as Figure 5 As shown, in Figure 4 Based on the modules shown, the load balancing device of the EPDG may further include:

[0113] The adding module 51 is used to add the IP addresses and corresponding identifiers in the second list to the first list when the first list is empty.

[0114] The clearing module 52 is used to clear the second list.

[0115] Optional, such as Figure 6 As shown, in Figure 2 Based on the modules shown, the load balancing device of the EPDG may further include:

[0116] The recording module 61 is used to record the first IP address after successfully accessing the first EPDG.

[0117] The third access module 62 is configured to attempt to access the first EPDG in response to the multiple new IP addresses received again including the first IP address and the SIM card number of the terminal not being changed.

[0118] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art may understand and implement it without creative work.

[0119] Accordingly, an embodiment of the present disclosure provides an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the load balancing method of the EPDG of any embodiment of the present disclosure.

[0120] Figure 7 A schematic diagram of the structure of an electronic device 700 is shown according to an exemplary embodiment. For example, the electronic device 700 may be a user equipment, and may specifically be a server or the like.

[0121] Reference Figure 7 , the electronic device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output (I / O) interface 712 , a sensor component 714 , and a communication component 716 .

[0122] The processing component 702 generally controls the overall operation of the electronic device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.

[0123] The memory 704 is configured to store various types of data to support operations on the device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0124] The power supply component 706 provides power to the various components of the electronic device 700. The power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 700.

[0125] The multimedia component 708 includes a screen that provides an output interface between the electronic device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. When the electronic device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0126] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), and when the electronic device 700 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 704 or sent via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.

[0127] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0128] The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the electronic device 700. For example, the sensor assembly 714 can detect the open / closed state of the electronic device 700, the relative positioning of the components, such as the display and keypad of the electronic device 700, and the sensor assembly 714 can also detect the position change of the electronic device 700 or a component of the electronic device 700, the presence or absence of contact between the user and the electronic device 700, the orientation or acceleration / deceleration of the electronic device 700, and the temperature change of the electronic device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0129] The communication component 716 is configured to facilitate wired or wireless communication between the electronic device 700 and other devices. The electronic device 700 can access a wireless network based on a communication standard, such as WiFi, 4G or 5G, 4G LTE, 5G NR or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0130] In an exemplary embodiment, the electronic device 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0131] In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as a memory 704 including instructions, which, when executed by a processor 720 of an electronic device 700, enables the electronic device 700 to perform a load balancing method of an EPDG.

[0132] The load balancing method of the EPDG includes:

[0133] In response to receiving a plurality of Internet Protocol (IP) addresses, different identifiers are assigned to the plurality of IP addresses; wherein different IP addresses correspond to different EPDGs.

[0134] A preset operation is performed on the user identity identification SIM card number of the terminal to obtain an operation result; the operation result is used to indicate a first value.

[0135] Among the multiple IP addresses, determine a first IP address whose identifier matches the first value.

[0136] Based on the first IP address, attempt to access a first EPDG among multiple EPDGs.

[0137] The non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0138] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0139] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A load balancing method for an evolved packet data gateway EPDG, characterized in that: The method is executed by a terminal, and includes: In response to receiving a plurality of Internet Protocol (IP) addresses, assigning different identifiers to the plurality of IP addresses; wherein different IP addresses correspond to different EPDGs; Performing a preset operation on the user identity identification SIM card number of the terminal to obtain an operation result; the operation result is used to indicate a first value; Determine, among the multiple IP addresses, a first IP address whose identifier matches the first value; Based on the first IP address, attempt to access a first EPDG among multiple EPDGs.

2. The method according to claim 1, characterized in that Determining, among the multiple IP addresses, a first IP address where the identifier matches the first value includes: In response to determining that there is a first identifier that is equal to the first value among the multiple identifiers, determining the IP address corresponding to the first identifier as the first IP address; or In response to determining that the first identifier does not exist among the multiple identifiers, a target identifier associated with the first identifier is determined, and an IP address corresponding to the target identifier is determined as the first IP address.

3. The method according to claim 2, characterized in that The difference between the target identifier and the first identifier is a first preset value.

4. The method according to claim 1, characterized in that: The method further comprises: When access to the first EPDG fails, determining a second IP address from among the multiple IP addresses; Based on the second IP address, an attempt is made to access a second EPDG among the multiple EPDGs.

5. The method according to claim 4, characterized in that A difference between the second identifier corresponding to the second IP address and the first identifier corresponding to the first IP address is a second preset value.

6. The method according to claim 1, characterized in that After assigning different identifiers to the multiple IP addresses, the method further includes: storing the plurality of IP addresses and the corresponding identifiers in a first list; When access to the first EPDG fails, deleting the first IP address and the corresponding first identifier from the first list; The first IP address and the corresponding first identifier are saved in the second list.

7. The method according to claim 6, characterized in that The method further comprises: When the first list is empty, adding the IP addresses and corresponding identifiers in the second list to the first list; Clear the second list.

8. The method according to claim 1, characterized in that The method further comprises: After successfully accessing the first EPDG, recording the first IP address; In response to the first IP address being included in the newly received multiple IP addresses and the SIM card number of the terminal not being changed, an attempt is made to access the first EPDG.

9. A load balancing device for EPDG, characterized in that: The device is applied to a terminal, and the device includes: an allocation module, configured to allocate different identifiers to the multiple Internet Protocol (IP) addresses in response to receiving the multiple IP addresses; wherein different IP addresses correspond to different EPDGs; A calculation module, used for performing a preset calculation on the user identity identification SIM card number of the terminal to obtain a calculation result; the calculation result is used to indicate a first value; A first determining module, configured to determine, among the multiple IP addresses, a first IP address whose identifier matches the first value; The first access module is used to try to access a first EPDG among multiple EPDGs based on the first IP address.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of any method described in claims 1-8 are implemented.

11. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the steps of any one of the methods of claims 1-8.