Business processing method and device, storage medium and electronic equipment

By establishing a mapping relationship between the private network address and the second NAT gateway address during the NAT gateway migration process, the problem of users being unable to connect the private network and the elastic public network at other NAT gateways is solved, and millisecond-level migration of the elastic public network and IP address are realized. Maintain and improve user experience and resource utilization efficiency.

CN118740787APending Publication Date: 2024-10-01CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410979845.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

When users need to subscribe to other NAT gateway resources, because other NAT gateways do not contain the user's private network address segment, the private network cannot be connected to the elastic public network through other NAT gateways, which in turn causes the elastic public network resources to be unsubscribed, affecting users. experience.

Method used

By receiving the NAT gateway migration information of the services to be migrated uploaded by the client, the private network address and the first NAT gateway address are obtained, the second NAT gateway address and dummyIP segment are determined, and the mapping between the private network address and the second NAT gateway address is established. relationship, generate routing information and migrate services to the second NAT gateway, achieving millisecond-level migration of elastic public networks, keeping IP unchanged, and avoiding repeated activation and unsubscription of resources.

Benefits of technology

It realizes flexible migration of elastic public network, uninterrupts business traffic in cross-availability zone scenarios, and avoids repeated activation and unsubscription of elastic public network resources, thus improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740787A_ABST
    Figure CN118740787A_ABST
Patent Text Reader

Abstract

The invention discloses a service processing method and device, a storage medium and electronic equipment, and relates to the technical field of computers.The method comprises the steps that firstly, in response to received NAT gateway migration information corresponding to a to-be-migrated service uploaded by a client, a private network address and a first NAT gateway address bound to the to-be-migrated service are obtained; based on the NAT gateway migration information, determining a second NAT gateway address corresponding to the to-be-migrated service and a dummy IP segment corresponding to the second NAT gateway address; determining a target dummyIP corresponding to the to-be-migrated service in the dummyIP segment, and establishing a mapping relationship between the private network address and the second NAT gateway address through the target dummyIP; and generating routing information between the private network address and the second NAT gateway address according to the mapping relationship, and migrating the service to be migrated from the first NAT gateway address to the second NAT gateway address according to the routing information. Compared with the prior art, the method and the device provide the requirement of the user for using the elastic public network across the available areas, avoid repeated unsubscribing of the elastic public network resources, and improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a business processing method, device, storage medium and electronic device. Background Art

[0002] Elastic Public IP (EIP) is a public IP address resource that can be flexibly allocated and managed in cloud computing services. It is a key tool for building cloud services and improving business flexibility and availability. It is especially suitable for scenarios that require stable public network access paths and rapid response to resource changes or fault recovery.

[0003] Currently, the use of elastic public IP to process business is mainly through cloud service providers providing elastic public network resources, and configuring elastic public network segment resources on multiple Network Address Translation (NAT) gateways. Users can purchase elastic public network resources on NAT gateways separately, and use NAT gateways to convert private network addresses in the cloud into elastic public network addresses, and then use elastic public IP resources to process business.

[0004] However, using this business processing method, users can only order NAT gateway resources where the user's private network address segment is located, and connect to the elastic public network through the ordered NAT gateway resources. If the user needs to order other NAT gateway resources, since other NAT gateways do not contain the user's private network address segment, the user will not be able to connect the private network to the elastic public network through other NAT gateways, which will cause the elastic public network resources to be unsubscribed, affecting the user experience. Summary of the invention

[0005] In view of this, the present application provides a business processing method, device, storage medium and electronic device, the main purpose of which is to improve the current existing technology. When a user needs to subscribe to other NAT gateway resources, because the other NAT gateway does not contain the user's private network address segment, it will cause the user to be unable to connect the private network to the elastic public network through other NAT gateways, which will cause the elastic public network resources to be unsubscribed, affecting the user experience. Technical problem.

[0006] In a first aspect, the present application provides a business processing method, including:

[0007] In response to receiving the NAT gateway migration information corresponding to the service to be migrated uploaded by the client, acquiring the private network address and the first NAT gateway address bound to the service to be migrated;

[0008] Based on the NAT gateway migration information, determine a second NAT gateway address corresponding to the service to be migrated and a dummyIP segment corresponding to the second NAT gateway address;

[0009] Determine a target dummyIP corresponding to the service to be migrated in the dummyIP segment, and establish a mapping relationship between the private network address and the second NAT gateway address through the target dummyIP;

[0010] According to the mapping relationship, routing information between the private network address and the second NAT gateway address is generated, and the service to be migrated is migrated from the first NAT gateway address to the second NAT gateway address according to the routing information.

[0011] In a second aspect, the present application provides a service processing device, including:

[0012] An acquisition module is configured to, in response to receiving NAT gateway migration information corresponding to the service to be migrated uploaded by the client, acquire the private network address bound to the service to be migrated and the first NAT gateway address;

[0013] A determination module is configured to determine, based on the NAT gateway migration information, a second NAT gateway address corresponding to the service to be migrated and a dummyIP segment corresponding to the second NAT gateway address;

[0014] An establishing module is configured to determine a target dummyIP corresponding to the service to be migrated in the dummyIP segment, and establish a mapping relationship between the private network address and the second NAT gateway address through the target dummyIP;

[0015] The generating module is configured to generate routing information between the private network address and the second NAT gateway address according to the mapping relationship, and migrate the service to be migrated from the first NAT gateway address to the second NAT gateway address according to the routing information.

[0016] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the business processing method of the first aspect when the computer program is executed by a processor.

[0017] In a fourth aspect, the present application provides an electronic device, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the business processing method of the first aspect when executing the computer program.

[0018] In a fifth aspect, the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the business processing method of the first aspect is implemented.

[0019] By means of the above technical scheme, the present application provides a business processing method, device, storage medium and electronic device, which first responds to receiving NAT gateway migration information corresponding to the business to be migrated uploaded by the client, and obtains the private network address and the first NAT gateway address bound to the business to be migrated; based on the NAT gateway migration information, determines the second NAT gateway address corresponding to the business to be migrated and the dummyIP segment corresponding to the second NAT gateway address; determines the target dummyIP corresponding to the business to be migrated in the dummyIP segment, and establishes a mapping relationship between the private network address and the second NAT gateway address through the target dummyIP; based on the mapping relationship, generates routing information between the private network address and the second NAT gateway address, and migrates the business to be migrated from the first NAT gateway address to the second NAT gateway address according to the routing information. Compared with the current existing technology, the present application determines the second NAT gateway address and target dummyIP corresponding to the business to be migrated through the NAT gateway migration information corresponding to the business to be migrated uploaded by the client, and establishes a mapping relationship between the private network address and the second NAT gateway address through the target dummyIP, so that the elastic public network with resources deployed on the NAT gateway establishes a mapping relationship with the target dummyIP, which not only realizes the mapping between dummyIP and NAT gateway and elastic public network, but also realizes the mapping between dummyIP and private network address, avoiding mapping conflicts; generates routing information between the private network address and the second NAT gateway address, and migrates the business to be migrated from the first NAT gateway address to the second NAT gateway address according to the routing information, realizing millisecond-level migration of the elastic public network to the new NAT gateway (including cross-availability zone scenarios), and can also realize that the IP of the elastic public network subscribed by the user remains unchanged, the business traffic is not interrupted during the migration process, and the customer is not aware of it. It not only flexibly and conveniently provides users with the needs of using elastic public networks across availability zones, but also avoids repeated activation and cancellation of elastic public network resources, thereby improving user experience.

[0020] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

[0023] Figure 1 A schematic diagram of a process flow of a business processing method provided by an embodiment of the present application is shown;

[0024] Figure 2 A schematic diagram of a process flow of a business processing method provided by an embodiment of the present application is shown;

[0025] Figure 3 A schematic diagram showing an example provided by an embodiment of the present application;

[0026] Figure 4 A schematic diagram showing an example provided by an embodiment of the present application;

[0027] Figure 5 A schematic diagram of an example structure provided by an embodiment of the present application is shown;

[0028] Figure 6 A schematic diagram showing an example provided by an embodiment of the present application;

[0029] Figure 7 A schematic diagram of an example process provided by an embodiment of the present application is shown;

[0030] Figure 8 A schematic diagram showing an example provided by an embodiment of the present application;

[0031] Fig. 9 A schematic diagram of the structure of a service processing device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0032] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.

[0033] In order to improve the current existing technology, when a user needs to subscribe to other NAT gateway resources, because other NAT gateways do not contain the user's private network address segment, the user cannot connect the private network to the elastic public network through other NAT gateways, which leads to the cancellation of elastic public network resources and affects the user experience. This embodiment provides a business processing method, such as Figure 1 As shown, the method includes:

[0034] Step 101: In response to receiving NAT gateway migration information corresponding to the service to be migrated uploaded by a client, a private network address and a first NAT gateway address bound to the service to be migrated are obtained.

[0035] It should be noted that the execution subject of the embodiment of the present application can be a cloud server, server, cloud service provider (Cloud Service Provider, CSP), etc. Specifically, a cloud service provider refers to a company or organization that provides cloud computing services, which provides computing resources, storage space, network services, database services, application services and other value-added services to users through the Internet. Cloud service providers build and maintain large-scale data centers, use virtualization technology to abstract hardware resources, and deliver them to customers in an on-demand, scalable, pay-as-you-go model.

[0036] In an embodiment of the present application, the service to be migrated may be a service for which the user needs to replace the NAT gateway. Accordingly, the NAT gateway migration information may be the migration information corresponding to the service to be migrated, and may include the migrated NAT gateway information, the private network information of the service to be migrated, etc. The specific content of the NAT gateway migration information is not specifically limited herein.

[0037] In some examples, a NAT gateway is a network component that provides address translation services between a private network (such as a private subnet in an enterprise intranet or cloud service) and the public Internet. Its main purpose is to solve the problem of IPv4 address shortage and enhance the security of the internal network. The NAT gateway can perform address translation (Network Address Translation, NAT), specifically, the NAT gateway converts private IP addresses into one or several public IP addresses, so that devices in the internal network can communicate with the external network. This allows a large number of devices using private IP addresses to share fewer public IP addresses to access the Internet, while also hiding the actual structure of the internal network and increasing security. The NAT gateway can also perform inbound and outbound traffic management: outbound traffic management specifically converts internal private IP addresses into public IP addresses, so that the external network sees the public IP of the NAT gateway instead of the real private IP of the internal device. Inbound traffic management specifically converts and forwards traffic arriving at the public IP to a specific private IP address in the internal network, so that external users can access internal servers or services.

[0038] Optionally, private network addresses, also called dedicated addresses or intranet addresses, are IP addresses used in private networks (such as corporate internal networks, home LANs), which are not unique and non-routable on the Internet. The use of private network addresses is intended to save public network IP address resources while enhancing the security of internal networks.

[0039] Correspondingly, the NAT gateway address usually refers to the public IP address that serves as a bridge between the private network and the public Internet during the NAT (Network Address Translation) process. This public IP address is an address that can be identified and routed on the Internet. All traffic from the private network will be converted to this public IP address by the NAT gateway. Similarly, traffic from the Internet to the private network will also be reversely converted back to the corresponding private IP address.

[0040] Step 102: Based on the NAT gateway migration information, determine the second NAT gateway address corresponding to the service to be migrated and the dummyIP segment corresponding to the second NAT gateway address.

[0041] In the embodiment of the present application, the first NAT gateway address is the NAT gateway address bound to the service to be migrated before migration, and the second NAT gateway address is the NAT gateway address to which the service to be migrated needs to be migrated.

[0042] Optionally, the Dummy IP segment can be a reserved or invalid IP address segment used in non-production environments such as testing, configuration, or document demonstration. These addresses will not be routed in real network communications and are often used to simulate network configuration or software testing.

[0043] For this embodiment, NAT gateways in different availability zones correspond to different dummyIP segments.

[0044] Step 103: Determine the target dummyIP corresponding to the service to be migrated in the dummyIP segment, and establish a mapping relationship between the private network address and the second NAT gateway address through the target dummyIP.

[0045] In some examples, Dummy IP can be a virtual IP address or a test IP, which usually refers to a non-functional or reserved IP address used in non-production environments such as software testing, system configuration, document examples, and teaching demonstrations. These IP addresses do not point to actual network interfaces or devices and are mainly used to simulate IP configurations in a network environment to avoid using real, active network resources.

[0046] It should be noted that the target dummyIP is a dummyIP in the dummyIP segment used to establish a mapping relationship between the private network address and the second NAT gateway address.

[0047] Step 104: Generate routing information between the private network address and the second NAT gateway address based on the mapping relationship, and migrate the service to be migrated from the first NAT gateway address to the second NAT gateway address according to the routing information.

[0048] For this embodiment, routing refers to the process of transmitting data packets or information from a source address to a destination address in a computer network. This process involves determining the best path for data transmission and effectively forwarding data through different devices in the network (such as routers, switches, etc.). The core goal of routing is to efficiently and accurately deliver data to the destination, while taking into account multiple factors such as network congestion, link availability, and transmission costs.

[0049] Compared with the current existing technology, this embodiment determines the second NAT gateway address and target dummyIP corresponding to the business to be migrated through the NAT gateway migration information corresponding to the business to be migrated uploaded by the client, establishes a mapping relationship between the private network address and the second NAT gateway address through the target dummyIP, realizes the mapping between dummyIP and NAT gateway, elastic public network, and also realizes the mapping between dummyIP and private network address, avoiding mapping conflicts; generates routing information between the private network address and the second NAT gateway address, and migrates the business to be migrated from the first NAT gateway address to the second NAT gateway address according to the routing information, realizes millisecond-level migration of the elastic public network to the new NAT gateway (including cross-availability zone scenarios), the IP of the elastic public network subscribed by the user remains unchanged, the business traffic is not interrupted during the migration process, and the customer is not aware of it. It not only flexibly and conveniently provides users with the needs of using elastic public networks across availability zones, but also avoids repeated activation and cancellation of elastic public network resources, thereby improving user experience.

[0050] In order to further illustrate the specific implementation process of the method of this embodiment, this embodiment provides the following Figure 2 The specific method shown includes:

[0051] Step 201: In response to receiving NAT gateway migration information corresponding to the service to be migrated uploaded by a client, a private network address and a first NAT gateway address bound to the service to be migrated are obtained.

[0052] Exemplarily, if the service to be migrated is service A, in response to receiving the NAT gateway migration information of service A uploaded by the client, specifically, service A can be migrated to NAT gateway B, etc., and the private network address A and NAT gateway address A currently bound to service A can be obtained.

[0053] Step 202: Obtain the first availability zone where the first cloud host and the first NAT gateway address bound to the service to be migrated are located.

[0054] Exemplarily, based on step 201, the availability zone where the cloud host bound to service A and NAT gateway address A are located is determined. For example, the cloud host bound to service A is cloud host A, and the availability zone where NAT gateway address A is located is availability zone 1.

[0055] Step 203: Analyze the NAT gateway migration information based on the first cloud host and the first availability zone to obtain a NAT gateway migration type corresponding to the service to be migrated.

[0056] Among them, NAT gateway migration types include cloud host migration type and availability zone migration type.

[0057] In the embodiment of the present application, the cloud host migration type is to replace the cloud host, and correspondingly, the availability zone migration type is to replace the availability zone.

[0058] Optionally, based on step 202, the migrated cloud host and availability zone included in the NAT gateway migration information are compared based on the first cloud host A and the first availability zone 1 to determine the migration type of service A.

[0059] Step 204: According to the NAT gateway migration type, determine the second NAT gateway address corresponding to the service to be migrated and the dummyIP segment corresponding to the second NAT gateway address.

[0060] Optionally, step 204 may specifically include: if the NAT gateway migration type is cloud host migration, then selecting a second cloud host, a second NAT gateway address, and a dummyIP segment corresponding to the business to be migrated in the first availability zone; if the NAT gateway migration type is availability zone migration, then determining the second availability zone corresponding to the business to be migrated; and selecting a second NAT gateway address and a dummyIP segment corresponding to the second NAT gateway corresponding to the migrated business in the second availability zone.

[0061] Exemplarily, based on step 203, if the NAT gateway migration type is cloud host migration, there is no need to change the availability zone, and the second cloud host, the second NAT gateway address, and the dummyIP segment corresponding to the second NAT gateway corresponding to the business to be migrated are selected in availability zone 1; correspondingly, if the NAT gateway migration type is availability zone migration, the availability zone needs to be changed. If the availability zone after replacement is availability zone 2, the second NAT gateway address corresponding to the migrated business and the dummyIP segment corresponding to the second NAT gateway are selected in availability zone 2.

[0062] Step 205: Determine the target dummyIP corresponding to the service to be migrated in the dummyIP segment, and establish a mapping relationship between the private network address and the second NAT gateway address through the target dummyIP.

[0063] In an embodiment of the present application, step 205 may specifically include: determining the target dummyIP corresponding to the service to be migrated in the dummyIP segment; if the NAT gateway migration type is cloud host migration, establishing a mapping relationship between the second cloud host and the second NAT gateway address through the target dummyIP; based on the mapping relationship between the second cloud host and the second NAT gateway address, determining the mapping relationship between the private network address and the second NAT gateway address.

[0064] In the embodiment of the present application, the cloud host is migrated without changing the availability zone, such as Figure 3 As shown in the figure, the user has subscribed to the elastic public network 100.0.0.1 in NAT-1 and wants to bind the private network address 192.168.1.2 of VPC-2. At this time, the system automatically triggers the elastic public network migration, allocates a new dummyip from the dummyip segment to bind the private network address and adds the detailed route of the elastic public network 100.0.0.1 / 32 on NAT-2. The cloud host is converted to dummyip, and the dummyip is converted to the elastic public network to access the public network. When other public network addresses access the cloud host, because the / 32 detailed route has a higher priority than the original 100.0.XX / 16 default route, the inbound traffic enters the cloud from the NAT-2 gateway, achieving the same path for the traffic out of the public network / into the public network.

[0065] In some examples, step 205 specifically also includes: determining the target dummyIP corresponding to the service to be migrated in the dummyIP segment; if the NAT gateway migration type is availability zone migration, establishing a mapping relationship between the first cloud host and the second NAT gateway address through the target dummyIP; based on the mapping relationship between the first cloud host and the second NAT gateway address, determining the mapping relationship between the private network address and the second NAT gateway address.

[0066] For this embodiment, Figure 4 As shown in the figure, the user has subscribed to the elastic public network 88.0.0.1 in NAT-1 of availability zone 2, which was originally bound to the private network 192.168.2.2 of availability zone 2. Now the user wants to bind the private network address 192.168.1.2 of availability zone 1. At this time, the system automatically triggers the elastic public network migration, allocates a new dummyip bound to the private network address from the dummyip segment of availability zone 1, and adds the detailed route of the elastic public network 88.0.0.1 / 32 on NAT-1. The cloud host is converted to dummyip, and the dummyip is converted to the elastic public network to access the public network. When other public network addresses access the cloud host, because the / 32 detailed route has a higher priority than the original 88.0.XX / 16 default route of availability zone 2, the inbound traffic enters the cloud from the NAT-1 gateway of availability zone 1, achieving the consistency of the traffic path from and to the public network.

[0067] Step 206: Generate routing information between the private network address and the second NAT gateway address based on the mapping relationship, and migrate the service to be migrated from the first NAT gateway address to the second NAT gateway address according to the routing information.

[0068] For this embodiment, step 206 may specifically include: generating routing information between the private network address, the second cloud host in the first availability zone, and the second NAT gateway address based on the mapping relationship; migrating the service to be migrated from the first NAT gateway address in the first availability zone to the second NAT gateway address in the first availability zone according to the routing information.

[0069] Optionally, step 206 specifically also includes: generating routing information between the private network address, the first cloud host and the second NAT gateway address in the second availability zone based on the mapping relationship; and migrating the service to be migrated from the first NAT gateway address in the first availability zone to the second NAT gateway address in the second availability zone according to the routing information.

[0070] In the embodiment of the present application, the overall system architecture is as follows: Figure 5 As shown, it includes the interface layer, business layer, proxy layer and equipment. The interface layer connects to the client, including the business API interface and the migration API interface; the business layer includes dummyip microservice, elastic IP (fip) microservice, subnet microservice, dummyip-fip, dummyip-subnet, same availability zone migration, cross-availability zone migration and traffic monitoring; the dummyip microservice mainly implements the management of dummyip, including allocation, cloud host binding, elastic public network binding, cloud host unbinding, elastic public network unbinding, recycling and redistribution. The fip microservice mainly implements the management of fip, including allocation of fip, recycling of fip, monitoring of available quantity, etc. Private network addresses are mainly for subnet and cloud host management within VPC. The proxy layer includes configuration delivery, and the equipment includes different types of equipment from different manufacturers.

[0071] Optionally, the management plane in the system globally maintains an elastic public network address segment table, as shown in Table 1 below. Using the strategy of allocating by NAT gateway, different NAT gateways can use different elastic public network segments. Adding a field in the table indicates whether it is effective.

[0072] Table 1

[0073]

[0074] The elastic public network address allocation table is shown in Table 2 below:

[0075] Table 2

[0076]

[0077] The dummyip segment table is shown in Table 3 below. Using the strategy of allocating by available zone, different NAT gateways can use the same dummyip segment. Adding a field to the table indicates whether it is effective.

[0078] Table 3

[0079]

[0080] The dummy address allocation table is shown in Table 4 below. As long as the dummyip address is allocated, it will definitely be associated with the elastic public network and private network addresses.

[0081] Table 4

[0082]

[0083] The private network address segment table is shown in Table 5 below. Adding a field to the table field indicates whether it is effective.

[0084] Table 5

[0085]

[0086] The private network address allocation table is shown in Table 6 below:

[0087] Table 6

[0088]

[0089] The forwarding plane globally maintains the device information table, as shown in Table 7 below, including basic information about the device.

[0090] Table 7

[0091]

[0092] The mapping configuration table, as shown in Table 8 below, includes the configuration information sent by the agent to the device.

[0093] Table 8

[0094]

[0095]

[0096] Correspondingly, the network logical topology is as follows Figure 6 As shown in the figure, when a customer needs to bind a single elastic public network to a private network address, the system will allocate a dummyip from the dummyip segment to map the elastic public network and private network addresses respectively, and configure it in the intermediate gateway device. After the private network address is converted into a dummyip, it reaches the NAT gateway to complete the conversion between the dummyip and the elastic public network, and access the Internet through the elastic public network.

[0097] In the embodiment of the present application, the elastic public IP service, the cloud service provider provides elastic public network resources, users can purchase elastic public network resources separately, bind specific device resources (cloud host, bare metal, load balancing, VPN, etc.) when using, and use the cloud service provider's NAT gateway to convert the private network address in the cloud into an elastic public network address. In this way, the cloud service provider needs to configure the elastic public network segment resources on the NAT gateway in advance, and also configure the mapping relationship between the private network address segment and the public network address segment on the NAT gateway. The elastic public network segments between multiple NAT gateways are isolated from each other and are not repeated.

[0098] like Figure 7 As shown, the current cloud service providers are deployed in the resource pool-availability zone mode. Specifically, different virtual private clouds (VPCs) correspond to different gateways, and the NAT gateway belongs to a certain availability zone. The NAT gateways in different availability zones are independent of each other.

[0099] It should be noted that the NAT gateways of cloud service providers in the industry do not support migration. If the NAT gateway resource subscription is full, users still need to subscribe to the elastic public network, which will be allocated from the new NAT gateway. However, the correspondence between the elastic public network and the private network on the new NAT gateway does not include the user's original private network address segment. That is, an elastic public network can only be bound to the private network in the current NAT gateway and does not support migration to other NAT gateways. The private network addresses of different users' VPCs can be repeated. If multiple users' VPC subnets are the same and are configured on the same NAT gateway, only one layer of mapping relationship is not enough to solve the problem of repeated private networks. There will be one elastic public network corresponding to multiple private network addresses, which is incorrectly configured. If the elastic public network subscribed by the user is in Availability Zone 1, and the user subscribes to VPC in Availability Zone 2, the elastic public network originally subscribed cannot be bound to the private network in Availability Zone 2. It is not possible to flexibly migrate different elastic public networks to different availability zones, bind private networks, and send public networks from NAT gateways in different availability zones. Other cloud providers' solutions similar to multi-layer conversion IP to achieve traffic forwarding also require the corresponding gateway and IP segment to be configured in advance, and IP cannot be repeated and the network segment cannot be changed.

[0100] It should be noted that the current user wants to retain the subscribed elastic public network to the new export availability zone, which is currently not supported. Even if similar cloud vendors provide tenant migration, it refers to the use in the original availability zone, and can only be retained by unsubscribing and reapplying for the elastic public network with the same IP. However, after unsubscribing, the elastic public network with the same IP may have been allocated to other tenants, so the current tenant's original configuration involving IP must be changed, and the user experience is extremely poor. In the embodiment of the present application, no similar cloud vendor in the market can provide elastic public network migration capabilities, realize the calculation and allocation of the default elastic public network segment to the default dummyip segment, the default dummyip segment to the default private network segment; the detailed elastic public to the detailed dummyip, the detailed dummyip to the detailed private network, and complete the allocation, binding and recovery of intermediate resources dummyip resources; at the same time, a set of agent components are developed for various protocols such as OF-Config\Netconf\OpFlex\XMPP\PCEP of various gateway devices to realize the general configuration distribution, which not only flexibly and conveniently provides users with the need to use elastic public networks across availability zones, but also avoids repeated activation and cancellation of elastic public network resources. By adopting virtualized deployment and making full use of cloud-native technical concepts, a new cloud network architecture integrating elastic public and private networks is created, which makes the planning, allocation, recovery, and routing of dummyip fully automated. Customers do not need to be aware of the existence of dummyip, and the use of elastic public and private network addresses remains unchanged. The intelligent computing module can realize flexible migration of elastic public networks in active / automatic modes, across availability zones and NAT gateways without interrupting business.

[0101] Compared with the current existing technology, this embodiment determines the second NAT gateway address and target dummyIP corresponding to the business to be migrated through the NAT gateway migration information corresponding to the business to be migrated uploaded by the client, establishes a mapping relationship between the private network address and the second NAT gateway address through the target dummyIP, realizes the mapping between dummyIP and NAT gateway, elastic public network, and also realizes the mapping between dummyIP and private network address, avoiding mapping conflicts; generates routing information between the private network address and the second NAT gateway address, and migrates the business to be migrated from the first NAT gateway address to the second NAT gateway address according to the routing information, realizes millisecond-level migration of the elastic public network to the new NAT gateway (including cross-availability zone scenarios), the IP of the elastic public network subscribed by the user remains unchanged, the business traffic is not interrupted during the migration process, and the customer is not aware of it. It not only flexibly and conveniently provides users with the needs of using elastic public networks across availability zones, but also avoids repeated activation and cancellation of elastic public network resources, thereby improving user experience.

[0102] In order to illustrate the specific implementation process of this embodiment, the following specific application examples are given: Figure 8 As shown, but not limited to:

[0103] When a customer needs to bind a single elastic public network to a private network address, the elastic public network migration system will allocate a dummyip from the dummyip segment to the dummyip gateway. The dummyip gateway configures the mapping relationship between dummyip and fip, and maps the elastic public network and private network addresses through dummyip. It is configured in the intermediate gateway device. After the private network address is converted into dummyip, it reaches the NAT gateway to complete the conversion between dummyip and the elastic public network, and access the Internet through the elastic public network.

[0104] Compared with the current existing technology, this embodiment determines the second NAT gateway address and target dummyIP corresponding to the business to be migrated through the NAT gateway migration information corresponding to the business to be migrated uploaded by the client, establishes a mapping relationship between the private network address and the second NAT gateway address through the target dummyIP, realizes the mapping between dummyIP and NAT gateway, elastic public network, and also realizes the mapping between dummyIP and private network address, avoiding mapping conflicts; generates routing information between the private network address and the second NAT gateway address, and migrates the business to be migrated from the first NAT gateway address to the second NAT gateway address according to the routing information, realizes millisecond-level migration of the elastic public network to the new NAT gateway (including cross-availability zone scenarios), the IP of the elastic public network subscribed by the user remains unchanged, the business traffic is not interrupted during the migration process, and the customer is not aware of it. It not only flexibly and conveniently provides users with the needs of using elastic public networks across availability zones, but also avoids repeated activation and cancellation of elastic public network resources, thereby improving user experience.

[0105] Further, as Figure 1 and Figure 2 The specific implementation of the method shown in this embodiment provides a service processing device, such as Fig. 9 As shown, the device includes: an acquisition module 31, a determination module 32, an establishment module 33, and a generation module 34.

[0106] The acquisition module 31 is configured to, in response to receiving the NAT gateway migration information corresponding to the service to be migrated uploaded by the client, acquire the private network address bound to the service to be migrated and the first NAT gateway address;

[0107] A determination module 32 is configured to determine, based on the NAT gateway migration information, a second NAT gateway address corresponding to the service to be migrated and a dummyIP segment corresponding to the second NAT gateway address;

[0108] An establishing module 33 is configured to determine a target dummyIP corresponding to the service to be migrated in the dummyIP segment, and establish a mapping relationship between the private network address and the second NAT gateway address through the target dummyIP;

[0109] The generation module 34 is configured to generate routing information between the private network address and the second NAT gateway address according to the mapping relationship, and migrate the business to be migrated from the first NAT gateway address to the second NAT gateway address according to the routing information. In some examples of this embodiment, the determination module 32 is also configured to obtain the first cloud host bound to the business to be migrated and the first availability zone where the first NAT gateway address is located; accordingly, the determination module 32 is specifically configured to analyze the NAT gateway migration information based on the first cloud host and the first availability zone to obtain the NAT gateway migration type corresponding to the business to be migrated, the NAT gateway migration type including the cloud host migration type and the availability zone migration type; according to the NAT gateway migration type, determine the second NAT gateway address corresponding to the business to be migrated and the dummyIP segment corresponding to the second NAT gateway address.

[0110] In some examples of this embodiment, the determination module 32 is further specifically configured to, if the NAT gateway migration type is cloud host migration, select the second cloud host, the second NAT gateway address and the dummyIP segment corresponding to the second NAT gateway corresponding to the business to be migrated in the first availability zone; if the NAT gateway migration type is availability zone migration, determine the second availability zone corresponding to the business to be migrated; and select the second NAT gateway address and the dummyIP segment corresponding to the second NAT gateway corresponding to the migrated business in the second availability zone.

[0111] In some examples of this embodiment, a module 33 is established, which is specifically configured to determine the target dummyIP corresponding to the service to be migrated in the dummyIP segment. If the NAT gateway migration type is cloud host migration, a mapping relationship between the second cloud host and the second NAT gateway address is established through the target dummyIP; based on the mapping relationship between the second cloud host and the second NAT gateway address, the mapping relationship between the private network address and the second NAT gateway address is determined.

[0112] In some examples of this embodiment, the generation module 34 is specifically configured to generate routing information between the private network address, the second cloud host in the first availability zone and the second NAT gateway address based on the mapping relationship; and migrate the business to be migrated from the first NAT gateway address in the first availability zone to the second NAT gateway address in the first availability zone according to the routing information.

[0113] In some examples of this embodiment, module 33 is established and is also configured to determine the target dummyIP corresponding to the service to be migrated in the dummyIP segment. If the NAT gateway migration type is availability zone migration, a mapping relationship between the first cloud host and the second NAT gateway address is established through the target dummyIP; based on the mapping relationship between the first cloud host and the second NAT gateway address, a mapping relationship between the private network address and the second NAT gateway address is determined.

[0114] In some examples of this embodiment, the generation module 34 is specifically configured to generate routing information between the private network address, the first cloud host and the second NAT gateway address in the second availability zone based on the mapping relationship; and migrate the business to be migrated from the first NAT gateway address in the first availability zone to the second NAT gateway address in the second availability zone according to the routing information.

[0115] It should be noted that for other corresponding descriptions of the functional units involved in the service processing device provided in this embodiment, reference can be made to Figure 1 and Figure 2 The corresponding description in will not be repeated here.

[0116] Based on the above Figure 1 to Figure 2 The method shown in the embodiment also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned Figure 1 to Figure 2 The method shown.

[0117] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present application.

[0118] Based on the above Figure 1 to Figure 2 The method shown, and Fig. 9 In order to achieve the above-mentioned purpose, the embodiment of the present application also provides an electronic device, such as a personal computer, a server, a laptop computer, a smart phone, an intelligent robot or other intelligent terminal, which includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1 to Figure 2 The method shown.

[0119] Optionally, the above-mentioned physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.

[0120] Those skilled in the art will appreciate that the above-mentioned physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different arrangements of components.

[0121] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the above-mentioned physical device, and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the information processing physical device.

[0122] Based on the above Figure 1 to Figure 2 The present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the above-mentioned Figure 1 to Figure 2 The method shown, the method implemented when the computer program is executed by the processor can refer to the various embodiments of the present application, and will not be described in detail here.

[0123] Through the description of the above implementation methods, the technicians in this field can clearly understand that the present application can be implemented by means of software plus necessary general hardware platforms, or by hardware. Compared with the current prior art, the present embodiment determines the second NAT gateway address and the target dummyIP corresponding to the business to be migrated through the NAT gateway migration information corresponding to the business to be migrated uploaded by the client, establishes the mapping relationship between the private network address and the second NAT gateway address through the target dummyIP, realizes the mapping between dummyIP and the NAT gateway and the elastic public network, and also realizes the mapping between dummyIP and the private network address to avoid mapping conflicts; generates routing information between the private network address and the second NAT gateway address, and migrates the business to be migrated from the first NAT gateway address to the second NAT gateway address according to the routing information, realizes the millisecond-level migration of the elastic public network to the new NAT gateway (including cross-availability zone scenarios), the elastic public network subscribed by the user keeps the IP unchanged, the business traffic is not interrupted during the migration process, and the customer is not aware of it, which not only flexibly and conveniently provides the user's demand for using the elastic public network across the availability zones, but also avoids the repeated activation and cancellation of elastic public network resources, and improves the user experience.

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

[0125] The above is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features applied for herein.

Claims

1. A business processing method, It is characterized in that include: In response to receiving the network address translation NAT gateway migration information corresponding to the service to be migrated uploaded by the client, acquiring the private network address and the first NAT gateway address bound to the service to be migrated; Based on the NAT gateway migration information, determine a second NAT gateway address corresponding to the service to be migrated and a dummyIP segment corresponding to the second NAT gateway address; Determine a target dummyIP corresponding to the service to be migrated in the dummyIP segment, and establish a mapping relationship between the private network address and the second NAT gateway address through the target dummyIP; According to the mapping relationship, routing information between the private network address and the second NAT gateway address is generated, and the service to be migrated is migrated from the first NAT gateway address to the second NAT gateway address according to the routing information.

2. The method according to claim 1, It is characterized in that Before determining the second NAT gateway address corresponding to the service to be migrated and the dummyIP segment corresponding to the second NAT gateway address based on the NAT gateway migration information, the method further includes: Obtain the first available zone where the first cloud host bound to the service to be migrated and the first NAT gateway address are located; The determining, based on the NAT gateway migration information, a second NAT gateway address corresponding to the service to be migrated and a dummyIP segment corresponding to the second NAT gateway address includes: Analyze the NAT gateway migration information based on the first cloud host and the first availability zone to obtain a NAT gateway migration type corresponding to the service to be migrated, where the NAT gateway migration type includes a cloud host migration type and an availability zone migration type; According to the NAT gateway migration type, a second NAT gateway address corresponding to the service to be migrated and a dummyIP segment corresponding to the second NAT gateway address are determined.

3. The method according to claim 2, It is characterized in that The determining, according to the NAT gateway migration type, a second NAT gateway address corresponding to the service to be migrated and a dummyIP segment corresponding to the second NAT gateway address includes: If the NAT gateway migration type is cloud host migration, selecting a second cloud host corresponding to the service to be migrated, the second NAT gateway address, and a dummyIP segment corresponding to the second NAT gateway in the first availability zone; If the NAT gateway migration type is availability zone migration, determine the second availability zone corresponding to the service to be migrated; The second NAT gateway address corresponding to the migration service and the dummyIP segment corresponding to the second NAT gateway are selected in the second available zone.

4. The method according to claim 3, It is characterized in that The determining a target dummyIP corresponding to the service to be migrated in the dummyIP segment, and establishing a mapping relationship between the private network address and the second NAT gateway address through the target dummyIP, includes: Determine the target dummyIP corresponding to the service to be migrated in the dummyIP segment, and if the NAT gateway migration type is cloud host migration, establish a mapping relationship between the second cloud host and the second NAT gateway address through the target dummyIP; According to the mapping relationship between the second cloud host and the second NAT gateway address, the mapping relationship between the private network address and the second NAT gateway address is determined.

5. The method according to claim 4, It is characterized in that The step of generating routing information between the private network address and the second NAT gateway address according to the mapping relationship, and migrating the service to be migrated from the first NAT gateway address to the second NAT gateway address according to the routing information includes: Generate routing information between the private network address, the second cloud host in the first availability zone, and the second NAT gateway address according to the mapping relationship; Migrate the to-be-migrated service from the first NAT gateway address in the first availability zone to the second NAT gateway address in the first availability zone according to the routing information.

6. The method according to claim 4, It is characterized in that The step of determining a target dummyIP corresponding to the service to be migrated in the dummyIP segment, and establishing a mapping relationship between the private network address and the second NAT gateway address through the target dummyIP, further includes: Determine the target dummyIP corresponding to the service to be migrated in the dummyIP segment, and if the NAT gateway migration type is availability zone migration, establish a mapping relationship between the first cloud host and the second NAT gateway address through the target dummyIP; According to the mapping relationship between the first cloud host and the second NAT gateway address, the mapping relationship between the private network address and the second NAT gateway address is determined.

7. The method according to claim 6, It is characterized in that The method further comprises: generating routing information between the private network address and the second NAT gateway address according to the mapping relationship, and migrating the service to be migrated from the first NAT gateway address to the second NAT gateway address according to the routing information, and further comprising: Generate routing information between the private network address, the first cloud host, and the second NAT gateway address in the second availability zone according to the mapping relationship; Migrate the service to be migrated from the first NAT gateway address in the first availability zone to the second NAT gateway address in the second availability zone according to the routing information.

8. A business processing device, It is characterized in that include: An acquisition module is configured to, in response to receiving NAT gateway migration information corresponding to the service to be migrated uploaded by the client, acquire the private network address bound to the service to be migrated and the first NAT gateway address; A determination module is configured to determine, based on the NAT gateway migration information, a second NAT gateway address corresponding to the service to be migrated and a dummyIP segment corresponding to the second NAT gateway address; An establishing module is configured to determine a target dummyIP corresponding to the service to be migrated in the dummyIP segment, and establish a mapping relationship between the private network address and the second NAT gateway address through the target dummyIP; The generating module is configured to generate routing information between the private network address and the second NAT gateway address according to the mapping relationship, and migrate the service to be migrated from the first NAT gateway address to the second NAT gateway address according to the routing information.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

10. An electronic device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

11. A computer program product, the computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Security protection method, cloud access method, network architecture, device and equipment

    CN119449434A

  • Business migration method, device and equipment, readable storage medium and program product

    CN119561973A