IP address replacement management method and device, equipment, storage medium and product

By building an IP address replacement strategy and repeatedly applying, the problem of poor IP address replacement effect in the existing technology is solved, and the replacement to a high-quality IP address is realized to meet the user's business quality requirements.

CN119835250APending Publication Date: 2025-04-15BIGO TECH PTE LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411853317.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

In the prior art, the IP address replacement scheme randomly assigns IP addresses to users, resulting in poor IP address replacement effects and failing to meet the user's business quality requirements.

Method used

By sending an address replacement application to the cloud machine service system, and building an IP address replacement policy based on the third IP address obtained from multiple applications, repeat the application until the policy conditions are met, and the IP address record of the preset computer room is updated.

Benefits of technology

It effectively ensures that the preset computer room can be replaced with a high-quality IP address, improves the effect of IP address replacement, and meets the user's business quality requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119835250A_ABST
    Figure CN119835250A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an IP address replacement management method and device, equipment, a storage medium and a product. According to the technical scheme provided by the embodiment of the invention, when the IP address of the preset machine room is replaced, the address replacement application is sent to the cloud machine service system, the first IP address sent by the cloud machine service system is obtained, and when the first IP address does not meet the IP address replacement strategy, the address replacement application can be sent to the cloud machine service system again. The method comprises the following steps: acquiring a first IP address sent by a cloud machine service system, acquiring a second IP address resent by the cloud machine service system, when the second IP address satisfies an IP address replacement strategy, updating an IP address record of a preset machine room to the second IP address, the IP address replacement strategy being constructed by a third IP address obtained by applying to the cloud machine service system for replacement of the preset machine room for multiple times, and updating the IP address record of the preset machine room to the second IP address. The method and the device can effectively ensure that the preset machine room is replaced to a high-quality IP address, improve the IP address replacement effect, and meet the requirements of users on service quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to an IP address change management method, device, equipment, storage medium and product. Background Art

[0002] As the external network environment changes, network conditions under different IP (Internet Protocol) routes also show differences, which has a direct impact on the service quality of the business, and the network quality of each IP route and the actual network experience of users are also constantly changing. Based on this, it is necessary to establish a system that can judge based on the actual network quality from the server to the user and automatically and dynamically adjust the server IP route.

[0003] In the current cloud computing environment, all major cloud service providers provide services to replace the public IP of the server. However, there are significant differences between different providers in terms of IP address replacement policies, effects, and reuse frequency. Providers generally randomly assign IP addresses to users from the IP library, which has a poor effect on IP address replacement. Summary of the invention

[0004] The embodiments of the present application provide an IP address replacement management method, device, equipment, storage medium and product to solve the technical problem that the IP address replacement scheme in the related art randomly assigns IP addresses to users and the IP address replacement effect is poor. The IP address can be replaced with a high-quality IP address, thereby improving the IP address replacement effect and meeting the user's requirements for service quality.

[0005] In a first aspect, an embodiment of the present application provides an IP address change management method, including:

[0006] In case of changing the IP address of the preset computer room, sending an address change application to the cloud machine service system, and obtaining the first IP address sent by the cloud machine service system;

[0007] In the case where the first IP address does not satisfy the IP address change strategy, resending an address change application to the cloud machine service system, and obtaining a second IP address resent by the cloud machine service system, wherein the IP address change strategy is constructed by applying to the cloud machine service system for multiple times to change a third IP address obtained by the preset computer room;

[0008] When the second IP address satisfies the IP address change policy, the IP address record of the preset computer room is updated to the second IP address.

[0009] In a second aspect, an embodiment of the present application provides an IP address change management device, including a change application module, a change retry module and an address determination module, wherein:

[0010] The change application module is configured to send an address change application to the cloud machine service system when the IP address of the preset computer room is changed, and obtain the first IP address sent by the cloud machine service system;

[0011] The replacement retry module is configured to resend an address replacement application to the cloud machine service system and obtain a second IP address resent by the cloud machine service system when the first IP address does not satisfy the IP address replacement strategy, wherein the IP address replacement strategy is constructed by applying to the cloud machine service system for multiple times to replace a third IP address obtained in a preset computer room;

[0012] The address determination module is configured to update the IP address record of the preset computer room to the second IP address when the second IP address satisfies the IP address change policy.

[0013] In a third aspect, an embodiment of the present application provides an IP address change management device, including: a memory and one or more processors;

[0014] The memory is used to store one or more programs;

[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the IP address change management method as described in the first aspect.

[0016] In a fourth aspect, an embodiment of the present application provides a non-volatile storage medium storing computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute the IP address change management method as described in the first aspect.

[0017] In the fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program, which is stored in a computer-readable storage medium, and at least one processor of the device reads and executes the computer program from the computer-readable storage medium, so that the device performs the IP address change management method as described in the first aspect.

[0018] The embodiment of the present application sends an address change application to the cloud machine service system when the IP address of the preset computer room is replaced, and obtains a first IP address sent by the cloud machine service system. When the first IP address does not meet the IP address change policy, the address change application can be re-sent to the cloud machine service system, and a second IP address re-sent by the cloud machine service system can be obtained. When the second IP address meets the IP address change policy, the IP address record of the preset computer room can be updated to the second IP address, wherein the IP address change policy is constructed by applying to the cloud machine service system for multiple times to obtain a third IP address for replacing the preset computer room, which can effectively ensure that a high-quality IP address is replaced for the preset computer room, improve the IP address change effect, and meet the user's requirements for service quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a flow chart of an IP address change management method provided by an embodiment of the present application;

[0020] Figure 2 is a flow chart of another IP address change management method provided in an embodiment of the present application;

[0021] Figure 3 It is a structural diagram of an IP address change management device provided in an embodiment of the present application;

[0022] Figure 4 It is a structural diagram of an IP address change management device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The above process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The above process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.

[0024] The IP address replacement management method provided in this application can be applied to the IP address replacement of cloud computer rooms in cloud service scenarios, aiming to replace the IP address of the preset computer room with one that meets the IP address replacement strategy, thereby replacing the preset computer room with a high-quality IP address, improving the IP address replacement effect, and meeting the user's requirements for service quality.

[0025] In the existing IP address replacement scheme, a new IP address is usually randomly assigned by the cloud server. For example, the user applies to the cloud server to change the IP address of the specified cloud computer room through the cloud server interface provided by the operator. After receiving the IP address replacement application, the cloud server will restart the cloud computer room and randomly reassign an IP address to the cloud computer room, and then inform the user of the changed IP address. The user cannot specify the desired IP address or IP address segment, nor can he control the method of determining the IP address. He can only send an IP address change request to the cloud server and receive a new IP address. Since the network conditions under different IP routes will show differences, different IP addresses will have a direct impact on the service quality of the business, but the current random IP address replacement scheme is easy to assign IP addresses of poor quality, and the IP address replacement effect is poor. Based on this, an IP address replacement management method of an embodiment of the present application is provided to solve the technical problem that the existing IP address replacement scheme randomly assigns IP addresses to users and the IP address replacement effect is poor.

[0026] Figure 1 A flowchart of an IP address change management method provided in an embodiment of the present application is given. The IP address change management method provided in the embodiment of the present application can be executed by an IP address change management device, which can be implemented by hardware and / or software and integrated in the IP address change management device.

[0027] The following description is made by taking the IP address change management device executing the IP address change management method as an example. Figure 1 , the IP address change management method includes:

[0028] S110: When the IP address of the preset computer room is changed, an address change application is sent to the cloud machine service system, and the first IP address sent by the cloud machine service system is obtained.

[0029] Exemplarily, when it is necessary to change the IP address of a preset computer room (e.g., a cloud computer room), an address change application for changing the IP address of the preset computer room may be sent to a cloud machine service system (e.g., a service system provided by a third-party cloud machine supplier) (e.g., an address change application is sent to a service address provided by a third-party cloud machine supplier). The address change application is sent to the preset cloud service by the IP address change management device directly to the preset cloud service, or by forwarding it to the preset cloud service through a preset operation and maintenance system. The IP address change management device provided in this solution may communicate directly with the cloud machine service system, or may communicate with the preset cloud service through an operation and maintenance system. For example, an address change application is sent to the cloud machine service system at a preset time (e.g., a specified time point every day or every week), where the preset computer room may be one or more cloud computer rooms, and the preset computer room may be used to provide preset business services.

[0030] Among them, the address change application can carry the current IP address of the preset computer room whose IP address needs to be changed and the machine ID of the preset computer room. After receiving the address change application, the cloud machine service system can change the IP address of the preset computer room according to the preset computer room whose IP address needs to be changed recorded in the address change application (for example, the preset computer room can be uniquely identified by the IP address and machine ID of the preset computer room). After completing the IP address change of the preset computer room, the cloud machine service system can send the changed new IP address (for example, the changed first IP address, second IP address, and third IP address structure) to the IP address change management device. After completing the IP address change, the cloud machine service system can feedback the new IP address to the IP address change management device, or it can feedback the new IP address after receiving the IP address query based on the machine ID from the IP address change management device. For example, the IP address change management device directly queries the cloud machine service system based on the machine ID of the preset computer room, or queries the cloud machine service system through the operation and maintenance system for the IP address of the preset computer room to obtain the changed new IP address.

[0031] In one embodiment, after receiving the address change application, the cloud machine service system may replace a new IP address for the preset computer room, and return the new IP address as the first IP address to the IP address change management device. For example, after receiving the address change application, the cloud machine service system restarts the preset computer room indicated by the address change application, determines the first IP address configured for the preset computer room from the pre-set IP pool, and sends the first IP address to the IP address change management device.

[0032] S120: When the first IP address does not satisfy the IP address change strategy, resend the address change application to the cloud machine service system, and obtain the second IP address resent by the cloud machine service system, wherein the IP address change strategy is constructed by applying to the cloud machine service system for multiple times to obtain a third IP address for changing the preset computer room.

[0033] The IP address change strategy provided by this solution can be used to indicate the preference of the IP address that you want to change to, and the IP address change strategy is constructed by applying to the cloud machine service system for multiple times to change the third IP address obtained by the preset computer room. For example, applying to the cloud machine service system for multiple times to change the preset computer room to obtain different IP addresses can determine the service quality of the service provided based on each IP address (such as network delay and packet loss rate between the user and the computer room), and use multiple IP addresses with better service quality (reaching the preset quality threshold) as the third IP address, and construct an IP address change strategy based on multiple third IP addresses. When the IP address satisfies the IP address change strategy, it can be considered that the service quality of the corresponding computer room under the IP address is better. Optionally, a corresponding IP address change strategy can be created for each computer room, or corresponding IP address change strategies can be created for multiple computer rooms at the same time.

[0034] Optionally, the IP address replacement policy may record the IP address or IP address segment whose service quality reaches a preset quality threshold. The IP address segment is used to indicate the range of the IP address. The IP address may be an IPv4 address or an IPv6 address. Taking the IPv4 address as an example, assuming that the format of the IP address is ABCD, C and D may be set to 0, and AB0.0 may be taken as an IP address segment. For example, the IP segments of 123.34.56.7 and 123.34.56.8 are both 123.34.0.0. Alternatively, D may be set to 0, and ABC0 may be taken as an IP address segment. For example, the IP segments of 123.34.56.7 and 123.34.56.8 are both 123.34.56.0.

[0035] Exemplarily, after obtaining the first IP address, it can be determined whether the first IP address satisfies the corresponding IP address replacement policy. For example, when the first IP address exists in the IP address replacement policy, or when the first IP address exists in the IP address segment recorded in the IP address replacement policy, it is considered that the first IP address satisfies the corresponding IP address replacement policy, and when the first IP address does not exist in the IP address replacement policy, or when the first IP address does not exist in the IP address segment recorded in the IP address replacement policy, it is considered that the first IP address does not satisfy the corresponding IP address replacement policy.

[0036] In one embodiment, when the first IP address does not meet the IP address change policy, an address change application for changing the IP address of the corresponding preset computer room can be resent to the cloud machine service system, and a second IP address resent by the cloud machine service system can be obtained. After receiving the address change application again, the cloud machine service system can change a new IP address for the preset computer room again, and return the new IP address as the second IP address to the IP address change management device.

[0037] S130: When the second IP address satisfies the IP address change policy, the IP address record of the preset computer room is updated to the second IP address.

[0038] Exemplarily, after obtaining the second IP address, it can be determined whether the second IP address satisfies the corresponding IP address replacement policy. For example, when the second IP address exists in the IP address replacement policy, or when the second IP address exists in the IP address segment recorded in the IP address replacement policy, it is considered that the second IP address satisfies the corresponding IP address replacement policy, and when the second IP address does not exist in the IP address replacement policy, or when the second IP address does not exist in the IP address segment recorded in the IP address replacement policy, it is considered that the second IP address does not satisfy the corresponding IP address replacement policy.

[0039] In one embodiment, when the second IP address satisfies the IP address change policy, the IP address record of the preset computer room can be updated to the second IP address, completing the IP address change of the preset computer room. When the second IP address does not satisfy the IP address change policy, the address change application can be re-sent to the cloud machine service system, and the second IP address re-sent by the cloud machine service system can be obtained, until the latest second IP address satisfies the IP address change policy, or the preset maximum number of retries is reached, and the IP address record of the preset computer room is updated to the final second IP address.

[0040] In a possible embodiment, after obtaining the first IP address sent by the cloud machine service system, the IP address change management method provided by this solution can also update the IP address record of the preset computer room to the first IP address if the first IP address meets the IP address change policy.

[0041] For example, after obtaining the first IP address sent by the cloud machine service system, if the first IP address satisfies the IP address change policy and it is considered that the current first IP address can provide business services with high business quality, the IP address record of the preset computer room can be updated to the first IP address. There is no need to reapply for the IP address for the preset computer room. While improving the efficiency of IP address change management, it ensures that the preset computer room is allocated an IP address of better quality, thereby improving the quality of IP address change.

[0042] As described above, when the IP address of the preset computer room is replaced, an address change application is sent to the cloud machine service system, and the first IP address sent by the cloud machine service system is obtained. When the first IP address does not meet the IP address change policy, the address change application can be re-sent to the cloud machine service system, and the second IP address re-sent by the cloud machine service system is obtained. When the second IP address meets the IP address change policy, the IP address record of the preset computer room can be updated to the second IP address, wherein the IP address change policy is constructed by applying to the cloud machine service system for multiple times to obtain the third IP address for replacing the preset computer room, which can effectively ensure that a high-quality IP address is replaced for the preset computer room, improve the IP address change effect, and meet the user's service quality requirements.

[0043] Based on the above embodiments, Figure 2 A flowchart of another IP address change management method provided in an embodiment of the present application is given, and the IP address change management method is a specific implementation of the above-mentioned IP address change management method. Figure 2 , the IP address change management method includes:

[0044] S210: Apply to the cloud machine service system for multiple times to change the third IP address of the preset computer room, and construct an IP address change strategy for the preset computer room based on the multiple third IP addresses.

[0045] For example, multiple applications are made to the cloud machine service system to change the IP address of the preset computer room, the IP addresses returned by the cloud machine service system are used as the third IP addresses, and the service quality corresponding to these third IP addresses is determined, and the IP address replacement strategy of the preset computer room can be constructed according to the service quality and multiple third IP addresses. For example, a third IP address whose service quality meets the preset quality requirements is determined from multiple third IP addresses, and an IP address replacement strategy is created according to the third IP address that meets the preset quality requirements.

[0046] Optionally, you can apply to the cloud machine service system to change the third IP address of the preset computer room at a preset time interval or a preset time point (for example, every day). After a preset collection time length (for example, one week, one month, etc.), build an IP address change strategy based on the third IP address collected within the preset collection time length. This solution maps the IP pool of the preset computer room by applying to the cloud machine service system to change the third IP address of the preset computer room multiple times. According to the mapping results of the IP pool, the IP address change strategy of the preset computer room can be accurately constructed to improve the effect of IP address change.

[0047] In one embodiment, the IP address change management method provided by the present solution constructs an IP address change strategy for a preset computer room according to multiple third IP addresses, including:

[0048] S211: Determine multiple candidate IP address segments according to multiple third IP addresses, and determine first service quality information of each candidate IP address segment.

[0049] S212: Determine multiple target IP address segments that meet the first preset quality condition from multiple candidate IP address segments according to the first service quality information, and construct an IP address replacement strategy for the preset computer room according to the multiple target IP address segments.

[0050] Exemplarily, after applying to the cloud machine service system for multiple times to change the preset computer room IP address and collecting multiple third IP addresses, the multiple third IP addresses can be aggregated, and multiple candidate IP address segments can be determined based on the aggregated multiple third IP addresses, and the first service quality information of each candidate IP address segment can be determined.

[0051] For example, when the third IP address ABXY exists, one of the candidate IP address segments can be determined as AB0.0. In one embodiment, when the third IP addresses 123.34.56.0 and 123.35.56.0 exist, two candidate IP address segments can be determined, namely 123.34.0.0 and 123.35.0.0; and when the third IP addresses 123.34.56.0 and 123.34.57.12 exist, one candidate IP address segment 123.34.0.0 can be determined.

[0052] Optionally, the first service quality information of the candidate IP address segment can be determined based on the service quality of one or more third IP addresses corresponding to the candidate IP address segment. For example, the service quality average, weighted average, average after de-extreme value, etc. of the one or more third IP addresses corresponding to the candidate IP address segment can be used as the first service quality information of the candidate IP address segment.

[0053] In one embodiment, based on the first service quality information corresponding to the multiple candidate IP address segments collected above, multiple candidate IP address segments that meet the first preset quality condition can be determined from the multiple candidate IP address segments, and these candidate IP address segments that meet the first preset quality condition can be determined as the target IP address segments. For example, the candidate IP address segment meets the first preset quality condition may be that the first service quality information of the candidate IP address segment reaches a preset first service quality threshold (for example, the network delay is higher than the first network delay threshold, and / or the packet loss rate is higher than the first packet loss rate threshold).

[0054] After determining multiple target IP address segments, an IP address replacement strategy for the preset computer room can be constructed based on the multiple target IP address segments. When an IP address exists in a target IP address segment recorded in the IP address replacement strategy, the IP address satisfies the IP address replacement strategy. This solution determines multiple candidate IP address segments based on multiple third IP addresses obtained by sampling, and can accurately determine multiple target IP address segments that meet the first preset quality condition based on the first service quality information of each candidate IP address segment, and accurately construct an IP address replacement strategy for the preset computer room based on the multiple target IP address segments. According to the target IP address segments recorded in the IP address replacement strategy, it can be accurately and quickly determined whether the IP address satisfies the IP address replacement strategy, thereby improving the effect and efficiency of IP address replacement.

[0055] In a possible embodiment, the IP address change management method provided by the present solution can also determine the initial allocation ratio of the multiple candidate IP address segments after determining the multiple candidate IP address segments according to the multiple third IP addresses. Accordingly, the IP address change strategy of the preset computer room is constructed according to the multiple target IP address segments, including: determining the first target allocation ratio of the multiple target IP address segments according to the initial allocation ratio, and constructing the IP address change strategy of the preset computer room according to the multiple target IP addresses and the first target allocation ratio.

[0056] Exemplarily, after determining a plurality of candidate IP address segments based on a plurality of third IP addresses, an initial allocation ratio of the plurality of candidate IP address segments is determined based on the number of third IP addresses corresponding to each candidate IP address segment.

[0057] In one embodiment, after determining multiple target IP address segments that meet the first preset quality condition from multiple candidate IP address segments based on the first service quality information, the first target allocation ratio of the multiple target IP address segments can be determined based on the initial allocation ratio, and the IP address replacement strategy of the preset computer room can be constructed based on the multiple target IP addresses and the first target allocation ratio.

[0058] For example, when the candidate IP address segment A 123.34.0.0 is determined according to the third IP addresses 123.34.56.0 and 123.34.56.20, the candidate IP address segment B 123.37.0.0 is determined according to the third IP address 123.37.56.0, and the candidate IP address segment C 123.39.0.0 is determined according to the third IP addresses 123.39.56.0 and 123.39.56.20, the initial allocation ratio of the three candidate IP address segments is 2:1:2. Assuming that the candidate IP address segments A and B are used as the target IP address segments, the first target allocation ratio is target IP address segment A: target IP address segment B = 2:1.

[0059] Among them, the first target allocation ratio can be used to indicate the IP address allocation ratio of each cloud computer room when planning the IP address change, so that the IP address allocation ratio of each cloud computer room is closer to the first target allocation ratio. When the address change application is subsequently sent to the cloud machine service system, the allocation ratio of the new IP address returned by the cloud machine service system is closer to the first target allocation ratio, which can effectively reduce the number of times the address change application is re-sent to the cloud machine service system and improve the efficiency of IP address change.

[0060] In a possible embodiment, the IP address change management method provided by the present solution, after updating the IP address record of the preset computer room to the second IP address, further includes: determining the second service quality information of each target IP address segment, and updating multiple target IP address segments according to the second preset quality condition and the second service quality information; evenly distributing the updated multiple target IP address segments to obtain a second target allocation ratio, and updating the IP address change strategy of the preset computer room according to the updated multiple target IP address segments and the second target allocation ratio.

[0061] Exemplarily, the second service quality information of each target IP address segment is determined (for example, the first service quality information of the corresponding candidate IP address segment is used as the second service quality information of the target IP address segment). Multiple target IP address segments that do not meet the second preset quality condition are determined from the multiple target IP address segments, and these target IP address segments that do not meet the second preset quality condition are screened out to achieve the update of the multiple target IP address segments. For example, the target IP address segment does not meet the second preset quality condition may be that the second service quality information of the target IP address segment reaches a preset second service quality threshold (for example, the network delay is higher than the second network delay threshold, and / or the packet loss rate is higher than the second packet loss rate threshold).

[0062] In one embodiment, the updated multiple target IP address segments (i.e., the multiple target IP address segments remaining after screening) are evenly distributed to obtain a second target distribution ratio, so that the multiple target IP address segments are aggregated to form two target IP address segment sets with a distribution ratio close to 1:1, and each target IP address segment set may correspond to one or more target IP address segments. Optionally, the multiple target IP address segments may be aggregated to form two target IP address segment sets with a distribution ratio close to 1:1 based on a dynamic programming algorithm.

[0063] For example, the first target allocation ratio of the target IP address segment (AE segment) before updating is: segment A: segment B: segment C: segment D: segment E = 5:2:3:1.5:1. Assuming that the target IP address segment of segment C is screened out because the second service quality information does not meet the second preset quality condition, the allocation ratio of the updated target IP address segment is: segment A: segment B: segment D: segment E = 5:2:1.5:1. The second target allocation ratio obtained by averaging multiple target IP address segments is: segment A: segment B+D+E = 5:4.5.

[0064] In one embodiment, the IP address replacement strategy of the preset computer room can be updated according to the updated multiple target IP address segments and the second target allocation ratio. This solution updates multiple target IP address segments through the second preset quality condition and the second service quality information, which can further improve the service quality of the IP address finally determined, improve the quality of IP address replacement, and evenly distribute the updated multiple target IP address segments to obtain the second target allocation ratio. The second target allocation ratio in the IP address replacement strategy of the preset computer room is closer to 1:1, and the probability that the allocated IP address meets the second target allocation ratio is close to 50%, which can effectively reduce the number of times the address change application is resent to the cloud machine service system, and improve the efficiency of IP address replacement.

[0065] Optionally, after each replacement of a new IP address for a preset computer room, the service quality of the new IP address can be detected in real time. When the service quality of the new IP address does not meet a third preset quality condition, or the number of times or frequency of not meeting the third preset quality condition reaches a preset number threshold or frequency threshold, the target IP address segment corresponding to the IP address whose service quality does not meet the third preset quality condition can be deleted from the IP address replacement strategy, and the remaining target IP address segments can be evenly redistributed to update the target IP address segments and the corresponding target allocation ratios in the IP address replacement strategy. The IP address replacement can update the IP address replacement strategy in real time following changes in the network to ensure the effectiveness of the IP address replacement, which not only improves the efficiency of IP management, but also enhances the ability to respond to potential threats, providing users with a more secure and stable network environment.

[0066] In one possible embodiment, the second IP address satisfies the IP address replacement policy, which may be that the second IP address is in the target IP address segment corresponding to the IP address replacement policy of the preset computer room. Optionally, one or more target IP address segments are recorded in the IP address replacement policy. When the second IP address is in the target IP address segment corresponding to the IP address replacement policy of the preset computer room, the second IP address can be considered to satisfy the IP address replacement policy. For example, when the target IP address segment with an IP segment of 123.34.0.0 is recorded in the IP address replacement policy, if the second IP address is 123.34.12.13, it is in the target IP address segment 123.34.0.0, and the second IP address satisfies the IP address replacement policy. When the second IP address is 123.45.12.13, it is not in the target IP address segment 123.34.0.0, and the second IP address does not satisfy the IP address replacement policy. This solution ensures the quality of IP address replacement by accurately judging whether the second IP address satisfies the IP address replacement policy based on whether the second IP address is in the target IP address segment corresponding to the IP address replacement policy.

[0067] In one possible embodiment, the first IP address satisfies the IP address replacement policy, which may be that the first IP address is in the target IP address segment corresponding to the IP address replacement policy of the preset computer room. Optionally, one or more target IP address segments are recorded in the IP address replacement policy, and when the first IP address is in the target IP address segment corresponding to the IP address replacement policy of the preset computer room, it can be considered that the first IP address satisfies the IP address replacement policy. This solution ensures the quality of IP address replacement by accurately judging whether the first IP address satisfies the IP address replacement policy based on whether the first IP address is in the target IP address segment corresponding to the IP address replacement policy.

[0068] S220: When the IP address of the preset computer room is changed, an address change application is sent to the cloud machine service system, and the first IP address sent by the cloud machine service system is obtained.

[0069] S230: When the first IP address does not satisfy the IP address change strategy, resend the address change application to the cloud machine service system, and obtain the second IP address resent by the cloud machine service system, wherein the IP address change strategy is constructed by applying to the cloud machine service system for multiple times to obtain a third IP address for changing the preset computer room.

[0070] In a possible embodiment, the IP address change management method provided by the present solution can also save the first IP address that does not meet the IP address change policy into the IP address change list before re-sending the address change application to the cloud machine service system, and perform IP address changes for multiple preset computer rooms. Accordingly, the IP address change management method provided by the present solution can re-send the address change application to the cloud machine service system by re-sending the address change application to the cloud machine service system according to the IP address change list after completing the IP address changes for multiple preset computer rooms.

[0071] Exemplarily, the IP address change management can send multiple address change applications for preset computer rooms to the cloud machine service system at the same time, or apply for changing the IP addresses of multiple preset computer rooms, and receive the first IP addresses corresponding to the multiple preset computer rooms issued by the cloud machine service system. Determine whether each first IP address meets the IP address change policy. When determining the first IP address that does not meet the corresponding IP address change policy, the first IP address that does not meet the IP address change policy can be saved in the IP address change list, and the IP address of multiple preset computer rooms is changed (the IP address record of the preset computer room is updated to the first IP address).

[0072] In one embodiment, after completing the IP address replacement of multiple preset computer rooms, the address replacement application of the preset computer rooms corresponding to these first IP addresses can be resent to the cloud machine service system based on the first IP addresses recorded in the IP address replacement list to obtain the second IP address resent by the cloud machine service system. At the same time, it is determined whether each second IP address meets the IP address replacement policy. When the second IP address that does not meet the corresponding IP address replacement policy is determined, the second IP address that does not meet the IP address replacement policy can be saved again in the IP address replacement list, and the IP addresses of multiple preset computer rooms can be replaced based on the second IP address. Subsequently, the IP addresses can be replaced again according to the IP address replacement list until the second IP addresses all meet the IP address replacement policy or the preset maximum number of retries is reached. This solution records the first IP addresses that do not meet the IP address replacement policy through the IP address replacement list, and the IP addresses can be uniformly replaced according to the IP address replacement list, thereby improving the overall efficiency of IP address replacement.

[0073] S240: When the second IP address satisfies the IP address change policy, the IP address record of the preset computer room is updated to the second IP address.

[0074] As described above, when changing the IP address of the preset computer room, an address change application is sent to the cloud machine service system, and the first IP address sent by the cloud machine service system is obtained. When the first IP address does not meet the IP address change policy, the address change application can be re-sent to the cloud machine service system, and the second IP address re-sent by the cloud machine service system can be obtained. When the second IP address meets the IP address change policy, the IP address record of the preset computer room can be updated to the second IP address, wherein the IP address change policy is constructed by applying to the cloud machine service system for multiple times to change the preset computer room to obtain the third IP address, which can effectively ensure that the preset computer room is replaced with a high-quality IP address, improve the IP address change effect, and meet the user's service quality requirements. At the same time, by applying to the cloud machine service system for multiple times to change the third IP address of the preset computer room to achieve the mapping of the IP pool of the preset computer room, the IP address change policy of the preset computer room can be accurately constructed according to the mapping results of the IP pool, and the IP address change effect of the IP pool can be improved. The IP address change management is divided into two processes: policy generation and policy execution. The policy generation process can effectively identify and obtain IP address segments that can provide better service quality, ensure service quality and the stability of the IP pool, and continuously apply policies within the cycle. Dividing policy generation and policy execution into two stages can independently adjust the policy generation and execution cycles. When executing the policy in the second stage, the policy requirements of each computer room can be calculated in real time, providing optimized policy support for each computer room.

[0075] Figure 3 Schematic diagram of the structure of an IP address change management device provided by an embodiment of the present application. Figure 3 The IP address change management device includes a change application module 31, a change retry module 32 and an address determination module 33.

[0076] Among them, the replacement application module 31 is configured to send an address change application to the cloud machine service system when the IP address of the preset computer room is replaced, and obtain the first IP address sent by the cloud machine service system; the replacement retry module 32 is configured to re-send the address change application to the cloud machine service system when the first IP address does not meet the IP address change strategy, and obtain the second IP address re-sent by the cloud machine service system, wherein the IP address change strategy is constructed by applying to the cloud machine service system for multiple times to obtain a third IP address for changing the preset computer room; the address determination module 33 is configured to update the IP address record of the preset computer room to the second IP address when the second IP address meets the IP address change strategy.

[0077] As described above, when the IP address of the preset computer room is replaced, an address change application is sent to the cloud machine service system, and the first IP address sent by the cloud machine service system is obtained. When the first IP address does not meet the IP address change policy, the address change application can be re-sent to the cloud machine service system, and the second IP address re-sent by the cloud machine service system is obtained. When the second IP address meets the IP address change policy, the IP address record of the preset computer room can be updated to the second IP address, wherein the IP address change policy is constructed by applying to the cloud machine service system for multiple times to obtain the third IP address for replacing the preset computer room, which can effectively ensure that a high-quality IP address is replaced for the preset computer room, improve the IP address change effect, and meet the user's service quality requirements.

[0078] In a possible embodiment, the address determination module is further configured to:

[0079] When the first IP address satisfies the IP address change policy, the IP address record of the preset computer room is updated to the first IP address.

[0080] In a possible embodiment, the IP address change management device further includes a list management module, and the list management module is configured as follows:

[0081] The first IP address that does not meet the IP address change policy is saved in the IP address change list, and the IP addresses of multiple preset computer rooms are changed;

[0082] Accordingly, the replacement retry module 32 re-sends the address change request to the cloud machine service system, and is configured as follows:

[0083] When the IP address changes of multiple preset computer rooms are completed, the address change application is resent to the cloud machine service system according to the IP address change list.

[0084] In a possible embodiment, the IP address change management device also includes a policy building module, and the policy building module is configured to construct an IP address change policy by applying to the cloud machine service system for multiple times to change the third IP address obtained in the preset computer room.

[0085] In a possible embodiment, the policy building module builds an IP address change policy by applying to the cloud machine service system for multiple times to change the third IP address obtained in the preset computer room, and the configuration is:

[0086] Apply to the cloud machine service system to change the third IP address of the preset computer room multiple times;

[0087] Construct an IP address replacement strategy for a preset computer room based on multiple third IP addresses.

[0088] In a possible embodiment, the policy building module builds an IP address change policy for a preset computer room according to multiple third IP addresses, and is configured as follows:

[0089] Determine multiple candidate IP address segments according to the multiple third IP addresses, and determine first service quality information of each candidate IP address segment;

[0090] Determine multiple target IP address segments that meet the first preset quality condition from multiple candidate IP address segments according to the first service quality information, and construct a preset computer room according to the multiple target IP address segments. In a possible embodiment, the strategy construction module is further configured as follows:

[0091] Determine the initial allocation ratio of multiple candidate IP address segments;

[0092] Construct the IP address change strategy of the preset computer room based on multiple target IP address segments, and configure it as follows:

[0093] A first target allocation ratio of multiple target IP address segments is determined according to the initial allocation ratio, and an IP address replacement strategy of a preset computer room is constructed according to the multiple target IP addresses and the first target allocation ratio.

[0094] In a possible embodiment, the policy building module is further configured to:

[0095] Determine second service quality information for each target IP address segment, and update multiple target IP address segments according to the second preset quality condition and the second service quality information;

[0096] The updated multiple target IP address segments are evenly distributed to obtain a second target allocation ratio, and the IP address change strategy of the preset computer room is updated according to the updated multiple target IP address segments and the second target allocation ratio.

[0097] In a possible embodiment, the second IP address satisfies the IP address change policy, and is configured as follows: the second IP address is in the target IP address segment corresponding to the IP address change policy of the preset computer room.

[0098] It is worth noting that in the embodiment of the above-mentioned IP address change management device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present application.

[0099] The embodiment of the present application also provides an IP address change management device, which can integrate the IP address change management apparatus provided in the embodiment of the present application. Figure 4Schematic diagram of the structure of an IP address change management device provided by an embodiment of the present application. Figure 4 The IP address change management device includes: an input device 43, an output device 44, a memory 42 and one or more processors 41; the memory 42 is used to store one or more programs; when one or more programs are executed by one or more processors 41, the one or more processors 41 implement the IP address change management method provided in the above embodiment. The IP address change management device, equipment and computer provided above can be used to execute the IP address change management method provided in any of the above embodiments, and have corresponding functions and beneficial effects.

[0100] The embodiments of the present application also provide a non-volatile storage medium storing computer executable instructions, which are used to execute the IP address change management method provided in the above embodiments when executed by a computer processor. Of course, the non-volatile storage medium storing computer executable instructions provided in the embodiments of the present application, whose computer executable instructions are not limited to the IP address change management method provided above, can also execute the related operations in the IP address change management method provided in any embodiment of the present application. The IP address change management device, equipment and storage medium provided in the above embodiments can execute the IP address change management method provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the IP address change management method provided in any embodiment of the present application.

[0101] On the basis of the above embodiments, the embodiments of the present application also provide a computer program product. The essence of the technical solution of the present application or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer program product is stored in a storage medium, including a number of instructions for enabling a computer device, a mobile terminal or a processor therein to execute all or part of the steps of the IP address change management method provided in each embodiment of the present application.

Claims

1. A method for managing IP address change, characterized in that: include: In case of changing the IP address of the preset computer room, sending an address change application to the cloud machine service system, and obtaining the first IP address sent by the cloud machine service system; In the case where the first IP address does not satisfy the IP address change strategy, resending an address change application to the cloud machine service system, and obtaining a second IP address resent by the cloud machine service system, wherein the IP address change strategy is constructed by applying to the cloud machine service system for multiple times to change a third IP address obtained by the preset computer room; When the second IP address satisfies the IP address change policy, the IP address record of the preset computer room is updated to the second IP address.

2. The IP address change management method according to claim 1, characterized in that: After obtaining the first IP address sent by the cloud machine service system, the method further includes: When the first IP address satisfies the IP address change policy, the IP address record of the preset computer room is updated to the first IP address.

3. The IP address change management method according to claim 1, characterized in that: Before the address change application is resent to the cloud machine service system, the method further includes: The first IP address that does not meet the IP address change policy is saved in an IP address change list, and the IP addresses of multiple preset computer rooms are changed; Accordingly, the re-sending of the address change application to the cloud machine service system includes: When the IP address changes of multiple preset computer rooms are completed, an address change application is resent to the cloud machine service system according to the IP address change list.

4. The IP address change management method according to claim 1, characterized in that: The IP address change strategy is constructed by applying to the cloud machine service system for multiple times to change the third IP address obtained in the preset computer room, including: Apply to the cloud machine service system to change the third IP address of the preset computer room multiple times; An IP address replacement strategy for the preset computer room is constructed based on the multiple third IP addresses.

5. The IP address change management method according to claim 4, characterized in that: The step of constructing the IP address replacement strategy of the preset computer room according to the plurality of third IP addresses includes: Determine a plurality of candidate IP address segments according to the plurality of third IP addresses, and determine first service quality information of each of the candidate IP address segments; A plurality of target IP address segments meeting a first preset quality condition are determined from a plurality of the candidate IP address segments according to the first service quality information, and an IP address replacement strategy for the preset computer room is constructed according to the plurality of the target IP address segments.

6. The IP address change management method according to claim 5, characterized in that: After determining a plurality of candidate IP address segments according to the plurality of third IP addresses, the method further includes: Determining an initial allocation ratio of the plurality of candidate IP address segments; The step of constructing the IP address replacement strategy of the preset computer room according to the plurality of target IP address segments includes: A first target allocation ratio of the plurality of target IP address segments is determined according to the initial allocation ratio, and an IP address replacement strategy of the preset computer room is constructed according to the plurality of target IP addresses and the first target allocation ratio.

7. The IP address change management method according to claim 6, characterized in that: After the IP address record of the preset computer room is updated to the second IP address, the method further includes: Determine the second service quality information of each of the target IP address segments, and update the plurality of the target IP address segments according to the second preset quality condition and the second service quality information; The updated multiple target IP address segments are evenly distributed to obtain a second target allocation ratio, and the IP address change strategy of the preset computer room is updated according to the updated multiple target IP address segments and the second target allocation ratio.

8. The IP address change management method according to claim 1, characterized in that: The second IP address satisfies the IP address change policy, including: The second IP address is in the target IP address segment corresponding to the IP address change strategy of the preset computer room.

9. An IP address change management device, characterized in that: It includes a replacement application module, a replacement retry module and an address determination module, among which: The change application module is configured to send an address change application to the cloud machine service system when the IP address of the preset computer room is changed, and obtain the first IP address sent by the cloud machine service system; The replacement retry module is configured to resend an address replacement application to the cloud machine service system and obtain a second IP address resent by the cloud machine service system when the first IP address does not satisfy the IP address replacement strategy, wherein the IP address replacement strategy is constructed by applying to the cloud machine service system for multiple times to replace a third IP address obtained in a preset computer room; The address determination module is configured to update the IP address record of the preset computer room to the second IP address when the second IP address satisfies the IP address change policy.

10. An IP address change management device, characterized in that: include: memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the IP address change management method as described in any one of claims 1-8.

11. A non-volatile storage medium storing computer executable instructions, characterized in that: The computer executable instructions are used to execute the IP address change management method as described in any one of claims 1-8 when executed by a computer processor.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the IP address change management method according to any one of claims 1 to 8 is implemented.