Method and device for realizing service migration communication through cross-cloud resource pool
By creating migration business entities and binding EIP addresses on the cloud platform, and combining the routing table of the tenant gateway cluster to deliver static host routes, business communication across resource pools is achieved and the problem of cross-resource pool communication isolation in cloud services is solved. Costs are reduced and communications are simplified.
Patent Information
- Application Number
- CN202410836492.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-08-27
AI Technical Summary
In cloud services, during the business migration process between different cloud resource pools, there is a communication isolation problem, which leads to high costs and high security risks, making it difficult to achieve low-cost cross-resource pool business communication.
By creating a migration business entity on the cloud platform, obtaining and binding the EIP address, and delivering a static host route to the remote EIP in the routing table of the tenant gateway cluster, business communication across resource pools is achieved.
It realizes shared public network segments based on detailed routing, reduces costs, simplifies cross-resource pool communication, and solves the problems of high cost and high security risk in existing methods.
Smart Images

Figure CN118555271A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of cloud service technology, and in particular relates to a method and device for implementing service migration communication across cloud resource pools. Background Art
[0002] Cloud networking is a network service that is managed and connected through the Internet. It is a virtualized network infrastructure and a service-oriented network for enterprise tenants and applications. Compared with traditional networks, it provides a flexible, elastic, shared, and scalable management method. Cloud networking provides network functions to tenants within the cloud by virtualizing software. With the help of SDN, the control plane, forwarding plane, and data plane are separated, and elastic functions are achieved through clustering, thus providing users with an elastic network.
[0003] Business migration is a critical feature of cloud services. There are demands for business migration between different resource pools, including optimized resource allocation, performance improvements, capacity expansion, cost optimization, technology upgrades, disaster recovery, and a host of other requirements. The business migration process can involve issues such as data migration and network connection adjustments. Therefore, it is desirable to enable business migration between resource pools, where existing and non-migrated businesses can still communicate across different resource pools. Typically, different cloud resource pools are isolated from each other. This isolation is based on user data privacy, security, and the stability of the cloud infrastructure. However, the emergence of business migration has led to the need for communication between services in different resource pools. Summary of the Invention
[0004] In view of the above deficiencies in the prior art, the object of the present invention is to provide a method and apparatus for implementing service migration communication across cloud resource pools.
[0005] According to a first aspect of the present invention, a method for implementing service migration communication across cloud resource pools is proposed, comprising:
[0006] S1, requesting the cloud platform to create a migration business entity, where the cloud platform manages global public network segment data;
[0007] S2, obtaining the public network segment data to be migrated from the global public network segment data and storing it in the address pool;
[0008] S3, applying for an EIP address of a preset IP address from the cloud platform, and binding the EIP address to the migration service entity of the first resource pool;
[0009] In step S4, the interface is called to issue a static host route to the remote EIP in the routing table of the tenant gateway cluster. After migrating to the second resource pool, the next hop points to the external gateway IP on the B-leaf switch, completing the service migration communication.
[0010] Furthermore, the S1 further includes:
[0011] Creating a migration business entity includes:
[0012] Create the migration service tenant, VPC, subnet, route, and VM.
[0013] Furthermore, the S2 further includes:
[0014] The global public network segment data refers to all new EIP network segments managed by the cloud platform;
[0015] The public network segment data to be migrated is the target EIP network segment used by the new resource pool to be migrated.
[0016] Furthermore, the S3 further includes:
[0017] The first resource pool includes at least two services;
[0018] The business has corresponding public network segment data;
[0019] The public network segment data includes at least a first virtual machine and a second virtual machine;
[0020] The first virtual machine includes at least a first private network IP address and a bound first EIP address;
[0021] The second virtual machine includes at least a second private network IP address and a bound second EIP address;
[0022] Bind the VM to which the service will be migrated to the correct EIP.
[0023] Furthermore, the S4 further includes:
[0024] Business communications are achieved through host routing;
[0025] The neutron and networking-odl modules receive overlay requests from users and send the network configuration created by users from OpenStack to the SDN controller of the CNP.
[0026] Based on the host routing configuration issued by Neutron, the controller controls hardware devices and various virtual network elements through its southbound interface. The controller receives the host routing request and sends its routing configuration to the virtual network element tenant gateway.
[0027] To create a host route, you need to specify the subnet where the VM resides, the next-hop address of the tenant gateway where the VM resides, and the EIP address bound to the VM on the other end of the resource pool with which the VM is to communicate.
[0028] Host routing is a global configuration. Host routing is created by searching all EIPs based on the external subnet, obtaining the corresponding tenants based on the online EIPs, and issuing the host routing configuration to the corresponding tenant gateways, thereby enabling cross-resource pool communication for services within the public network segment.
[0029] According to a second aspect of the present invention, the present invention claims protection for an apparatus for implementing service migration communication across cloud resource pools, comprising:
[0030] A network segment management module requests the cloud platform to create a migration service entity. The cloud platform manages global public network segment data.
[0031] A public network segment migration storage module obtains the public network segment data to be migrated from the global public network segment data and stores it in the address pool;
[0032] A migration service binding module applies to the cloud platform for an EIP address of a preset IP address, and binds the EIP address to a migration service entity of the first resource pool;
[0033] The post-migration communication module calls an interface to distribute a static host route to the remote EIP in the routing table of the tenant gateway cluster. After migrating to the second resource pool, the next hop points to the external gateway IP on the B-leaf switch, completing the service migration communication.
[0034] Furthermore, the network segment management module further includes:
[0035] Creating a migration business entity includes:
[0036] Create the migration service tenant, VPC, subnet, route, and VM.
[0037] Furthermore, the public network segment migration storage module further includes:
[0038] The global public network segment data refers to all new EIP network segments managed by the cloud platform;
[0039] The public network segment data to be migrated is the target EIP network segment used by the new resource pool to be migrated.
[0040] Furthermore, the migration service binding module further includes:
[0041] The first resource pool includes at least two services;
[0042] The business has corresponding public network segment data;
[0043] The public network segment data includes at least a first virtual machine and a second virtual machine;
[0044] The first virtual machine includes at least a first private network IP address and a bound first EIP address;
[0045] The second virtual machine includes at least a second private network IP address and a bound second EIP address;
[0046] Bind the VM to which the service will be migrated to the correct EIP.
[0047] Furthermore, the post-migration communication module further includes:
[0048] Business communications are achieved through host routing;
[0049] The neutron and networking-odl modules receive overlay requests from users and send the network configuration created by users from OpenStack to the SDN controller of the CNP.
[0050] Based on the host routing configuration issued by Neutron, the controller controls hardware devices and various virtual network elements through its southbound interface. The controller receives the host routing request and sends its routing configuration to the virtual network element tenant gateway.
[0051] To create a host route, you need to specify the subnet where the VM resides, the next-hop address of the tenant gateway where the VM resides, and the EIP address bound to the VM on the other end of the resource pool with which the VM is to communicate.
[0052] Host routing is a global configuration. Host routing is created by searching all EIPs based on the external subnet, obtaining the corresponding tenants based on the online EIPs, and issuing the host routing configuration to the corresponding tenant gateways, thereby enabling cross-resource pool communication for services within the public network segment.
[0053] The beneficial effects of the present invention are as follows:
[0054] This invention proposes a method and apparatus for implementing cross-cloud resource pool service migration communication. This method primarily designs a method for sharing public network segments based on explicit routing. By enabling different cloud resource pools to share public network segments, cross-resource pool service migration communication is achieved at a very low cost. This addresses the high cost and security risks associated with existing methods.
[0055] This invention implements service communication based on host routing, and enables cross-resource pool communication by distributing host routing configurations from a cloud platform. Compared to existing technologies, distributing host routing simplifies the network hierarchy and enables services across resource pools to communicate within a shared public network segment solely through routing, greatly simplifying the communication method. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] The accompanying drawings are only for the purpose of illustrating specific embodiments and are not to be considered as limiting the present invention. Throughout the drawings, the same reference numerals represent the same components. Obviously, the drawings described below are only some of the embodiments of the present invention. Those skilled in the art can also derive other drawings based on these drawings.
[0057] Figure 1 This is a flow chart of a method for implementing service migration communication across cloud resource pools according to an embodiment of the present invention;
[0058] Figure 2 A business migration logical topology diagram of a method for implementing business migration communication across cloud resource pools according to an embodiment of the present invention;
[0059] Figure 3 A schematic diagram of a cloud network architecture for a method for implementing service migration communication across cloud resource pools according to an embodiment of the present invention;
[0060] Figure 4 This is a structural diagram of an apparatus for implementing service migration communication across cloud resource pools according to an embodiment of the present invention. DETAILED DESCRIPTION
[0061] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described are part of the embodiments of the present invention, rather than all of the embodiments. It should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work should fall within the scope of protection of the present invention.
[0062] Furthermore, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts disclosed in the present invention.
[0063] In the description of the present invention, it should be noted that, unless otherwise expressly specified and limited, the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second" and "third" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance. The terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be a communication between the internal parts of two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0064] Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. In the following description, when referring to the drawings, like numbers in different figures represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present invention. Rather, they are merely examples of methods and systems consistent with certain aspects of the present invention, as detailed in the appended claims.
[0065] According to the first embodiment of the present invention, referring to Figure 1 , a method for implementing service migration communication across cloud resource pools is proposed, including:
[0066] S1, requesting the cloud platform to create a migration business entity, where the cloud platform manages global public network segment data;
[0067] S2, obtaining the public network segment data to be migrated from the global public network segment data and storing it in the address pool;
[0068] S3, applying for an EIP address of a preset IP address from the cloud platform, and binding the EIP address to the migration service entity of the first resource pool;
[0069] In step S4, the interface is called to issue a static host route to the remote EIP in the routing table of the tenant gateway cluster. After migrating to the second resource pool, the next hop points to the external gateway IP on the B-leaf switch, completing the service migration communication.
[0070] In this embodiment, the relevant terms are explained as follows:
[0071] IP (Internet Protocol): IP refers to the Internet Protocol, the abbreviation of Internet Protocol, which is the network layer protocol in the TCP / IP system.
[0072] EIP (End-to-End Protocol): A protocol for transmitting data on the Internet, used for communication between devices sending and receiving messages.
[0073] CNP (Cloud Network Platform): A solution for in-cloud networks.
[0074] VPN (Virtual Private Network): A technology that can establish an encrypted channel on a public network.
[0075] VPC (Virtual Private Cloud): A virtual network created in a cloud environment to isolate and protect resources in the cloud.
[0076] VNF (Virtual Network Function): uses network virtualization technology to divide physical network resources into multiple virtual networks, each of which has its own network functions and policies.
[0077] TGW (Tenant Gateway): Tenant gateway in the cloud network.
[0078] HR (HostRoute): A defined routing protocol.
[0079] Furthermore, the S1 further includes:
[0080] Creating a migration business entity includes:
[0081] Create the migration service tenant, VPC, subnet, route, and VM.
[0082] Furthermore, the S2 further includes:
[0083] The global public network segment data refers to all new EIP network segments managed by the cloud platform;
[0084] The public network segment data to be migrated is the target EIP network segment used by the new resource pool to be migrated.
[0085] In this embodiment, the logical topology diagram of the communication after the cross-cloud resource pool service migration is as follows: Figure 2 shown.
[0086] Services in resource pool A are migrated to resource pool B. After the migration, the EIP addresses and private network addresses of the VMs remain unchanged. Services migrated to resource pool B can communicate with services remaining in resource pool A through the EIP. In the resource pool after the migration, manage the new EIP network segment (shared public network segment) and add it to the address pool. Configure detailed routes on the tenant gateway, B-leaf, physical devices between the two resource pools, and devices on resource pool B to enable cross-resource pool communication after the migration.
[0087] Furthermore, the S3 further includes:
[0088] The first resource pool includes at least two services;
[0089] The business has corresponding public network segment data;
[0090] The public network segment data includes at least a first virtual machine and a second virtual machine;
[0091] The first virtual machine includes at least a first private network IP address and a bound first EIP address;
[0092] The second virtual machine includes at least a second private network IP address and a bound second EIP address;
[0093] Bind the VM to which the service will be migrated to the correct EIP.
[0094] In this embodiment, the shared network segment service communication based on the detailed route is: Figure 2 For example, resource pool A has two services on network segments 192.168.1.0 / 24 (which hosts two virtual machines, VM1 and VM2, with VM1's private IP address and bound EIP address being 192.168.1.10 / 24 and 100.1.1.10, respectively; VM2's private IP address and bound EIP address being 192.168.1.20 / 24 and 100.1.1.10, respectively) and 192.168.2.0 / 24 (which hosts one virtual machine, VM3, with VM3's private IP address and bound EIP address being 192.168.2.30 and 100.1.1.30 / 24, respectively). After migrating VM1 from resource pool A to resource pool B, VM1's private network address remains unchanged at 192.168.1.10 / 24, and the bound EIP remains at 100.1.1.10. Furthermore, VM1 and VM3 can communicate with each other through the EIP, thus meeting the requirements for cross-resource pool service migration and communication.
[0095] Furthermore, the S4 further includes:
[0096] Business communications are achieved through host routing;
[0097] The neutron and networking-odl modules receive overlay requests from users and send the network configuration created by users from OpenStack to the SDN controller of the CNP.
[0098] Based on the host routing configuration issued by Neutron, the controller controls hardware devices and various virtual network elements through its southbound interface. The controller receives the host routing request and sends its routing configuration to the virtual network element tenant gateway.
[0099] To create a host route, you need to specify the subnet where the VM resides, the next-hop address of the tenant gateway where the VM resides, and the EIP address bound to the VM on the other end of the resource pool with which the VM is to communicate.
[0100] Host routing is a global configuration. Host routing is created by searching all EIPs based on the external subnet, obtaining the corresponding tenants based on the online EIPs, and issuing the host routing configuration to the corresponding tenant gateways, thereby enabling cross-resource pool communication for services within the public network segment.
[0101] In this embodiment, service communication is achieved through host routing: Figure 3 As shown in the figure, the Neutron and networking-odl modules receive user overlay requests and distribute the network configuration created by the user in OpenStack to the CNP's SDN controller. Using the host route configuration distributed by Neutron, the controller controls hardware devices and various virtual network elements (NEs) through its southbound interface. The controller then distributes the routing configuration to the tenant gateways of the virtual NEs in response to the host route creation request. Creating a host route requires specifying the subnet where the VM resides, the next-hop address of the tenant gateway, and the EIP address bound to the VM for cross-resource pool communication. Host routes are global configurations. Host route creation searches for all EIPs based on the external subnet, identifies the corresponding tenant based on the online EIP, and distributes the host route configuration to the corresponding tenant gateways, enabling cross-resource pool communication for services within the public network segment.
[0102] According to the second embodiment of the present invention, the present invention claims a device for realizing service migration communication across cloud resource pools, referring to Figure 4 ,include:
[0103] A network segment management module requests the cloud platform to create a migration service entity. The cloud platform manages global public network segment data.
[0104] A public network segment migration storage module obtains the public network segment data to be migrated from the global public network segment data and stores it in the address pool;
[0105] A migration service binding module applies to the cloud platform for an EIP address of a preset IP address, and binds the EIP address to a migration service entity of the first resource pool;
[0106] The post-migration communication module calls an interface to distribute a static host route to the remote EIP in the routing table of the tenant gateway cluster. After migrating to the second resource pool, the next hop points to the external gateway IP on the B-leaf switch, completing the service migration communication.
[0107] Furthermore, the network segment management module further includes:
[0108] Creating a migration business entity includes:
[0109] Create the migration service tenant, VPC, subnet, route, and VM.
[0110] Furthermore, the public network segment migration storage module further includes:
[0111] The global public network segment data refers to all new EIP network segments managed by the cloud platform;
[0112] The public network segment data to be migrated is the target EIP network segment used by the new resource pool to be migrated.
[0113] Furthermore, the migration service binding module further includes:
[0114] The first resource pool includes at least two services;
[0115] The business has corresponding public network segment data;
[0116] The public network segment data includes at least a first virtual machine and a second virtual machine;
[0117] The first virtual machine includes at least a first private network IP address and a bound first EIP address;
[0118] The second virtual machine includes at least a second private network IP address and a bound second EIP address;
[0119] Bind the VM to which the service will be migrated to the correct EIP.
[0120] Furthermore, the post-migration communication module further includes:
[0121] Business communications are achieved through host routing;
[0122] The neutron and networking-odl modules receive overlay requests from users and send the network configuration created by users from OpenStack to the SDN controller of the CNP.
[0123] Based on the host routing configuration issued by Neutron, the controller controls hardware devices and various virtual network elements through its southbound interface. The controller receives the host routing request and sends its routing configuration to the virtual network element tenant gateway.
[0124] To create a host route, you need to specify the subnet where the VM resides, the next-hop address of the tenant gateway where the VM resides, and the EIP address bound to the VM on the other end of the resource pool with which the VM is to communicate.
[0125] Host routing is a global configuration. Host routing is created by searching all EIPs based on the external subnet, obtaining the corresponding tenants based on the online EIPs, and issuing the host routing configuration to the corresponding tenant gateways, thereby enabling cross-resource pool communication for services within the public network segment.
[0126] The applicant of the present invention has made a detailed explanation and description of the implementation examples of the present invention in conjunction with the drawings in the specification. However, those skilled in the art should understand that the above implementation examples are only preferred implementation plans of the present invention, and the detailed description is only to help readers better understand the spirit of the present invention, and is not a limitation on the scope of protection of the present invention. On the contrary, any improvements or modifications based on the inventive spirit of the present invention should fall within the scope of protection of the present invention.
[0127] Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the embodiments of the present invention, and are not intended to limit them. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they may still modify the technical solutions described in the aforementioned embodiments, or replace some of the technical features therein with equivalents; and such modifications or replacements do not deviate from the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention. Any changes or replacements that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be covered by the scope of protection of the present invention.
Claims
1. A method for implementing service migration communication across cloud resource pools, characterized in that: include: S1, requesting the cloud platform to create a migration business entity, wherein the cloud platform manages global public network segment data; S2, obtaining the public network segment data to be migrated from the global public network segment data and storing it in the address pool; S3, applying for an EIP address of a preset IP address from the cloud platform, and binding the EIP address to a migration service entity of the first resource pool; S4: The calling interface sends a static host route to access the remote EIP in the routing table of the tenant gateway cluster. After migrating to the second resource pool, the next hop points to the external gateway IP on the B-leaf switch, completing the service migration communication.
2. A method for implementing service migration communication across cloud resource pools according to claim 1, characterized in that: Said S1 further includes: Creating a migration business entity includes: Create and migrate business tenants, VPCs, subnets, routes, and virtual machines.
3. A method for implementing service migration communication across cloud resource pools according to claim 2, characterized in that: The S2 further includes: The global public network segment data refers to all new EIP network segments managed by the cloud platform; The public network segment data to be migrated is the target EIP network segment used by the new resource pool to be migrated.
4. A method for implementing service migration communication across cloud resource pools according to claim 3, characterized in that: The S3 further includes: The first resource pool includes at least two services; The service has corresponding public network segment data; The public network segment data includes at least a first virtual machine and a second virtual machine; The first virtual machine includes at least a first private network IP address and a bound first EIP address; The second virtual machine includes at least a second private network IP address and a bound second EIP address; Bind the VM to which the service is to be migrated to the correct EIP.
5. A method for implementing service migration communication across cloud resource pools according to claim 3, characterized in that: The S4 further includes: Business communications are achieved through host routing; The neutron and networking-odl modules receive the user's overlay request and send the network configuration created by the user from openstack to the SDN controller of the CNP; Through the host routing configuration sent from Neutron, the controller controls the hardware devices and various virtual network elements through its southbound interface. The controller sends the routing configuration of the received host routing request to the virtual network element tenant gateway; To create a host route, you need to specify the subnet where the VM is located and the next-hop address of the tenant gateway where the VM is located, as well as the EIP address bound to the VM at the other end of the cross-resource pool for communication. The host route is a global configuration. The host route is created by searching all EIPs based on the external network subnet, obtaining the corresponding tenants based on the online EIPs, and issuing the host route configuration on the corresponding tenant gateway, so that the services in the public network segment can communicate across resource pools.
6. A device for implementing service migration communication across cloud resource pools, characterized in that: include: A network segment management module requests the cloud platform to create a migration service entity, and the cloud platform manages global public network segment data; A public network segment migration storage module obtains the public network segment data to be migrated from the global public network segment data and stores it in the address pool; A migration service binding module applies to the cloud platform for an EIP address of a preset IP address, and binds the EIP address to a migration service entity of the first resource pool; After the migration, the communication module calls the interface to issue a static host route to access the remote EIP in the routing table of the tenant gateway cluster. After migrating to the second resource pool, the next hop points to the external gateway IP on the B-leaf switch, completing the service migration communication.
7. The device for implementing service migration communication across cloud resource pools according to claim 6, characterized in that: The network segment management module also includes: Creating a migration business entity includes: Create and migrate business tenants, VPCs, subnets, routes, and virtual machines.
8. The device for implementing service migration communication across cloud resource pools according to claim 6, characterized in that: The public network segment migration storage module also includes: The global public network segment data refers to all new EIP network segments managed by the cloud platform; The public network segment data to be migrated is the target EIP network segment used by the new resource pool to be migrated.
9. The device for implementing service migration communication across cloud resource pools according to claim 8, characterized in that: The migration service binding module also includes: The first resource pool includes at least two services; The business has corresponding public network segment data; The public network segment data includes at least a first virtual machine and a second virtual machine; The first virtual machine includes at least a first private network IP address and a bound first EIP address; The second virtual machine includes at least a second private network IP address and a bound second EIP address; Bind the VM to which the service is to be migrated to the correct EIP.
10. The device for implementing service migration communication across cloud resource pools according to claim 6, characterized in that: The post-migration communication module further includes: Business communications are achieved through host routing; The neutron and networking-odl modules receive the user's overlay request and send the network configuration created by the user from openstack to the SDN controller of the CNP; Through the host routing configuration sent from Neutron, the controller controls the hardware devices and various virtual network elements through its southbound interface. The controller sends the routing configuration of the received host routing request to the virtual network element tenant gateway; To create a host route, you need to specify the subnet where the VM is located and the next-hop address of the tenant gateway where the VM is located, as well as the EIP address bound to the VM at the other end of the cross-resource pool for communication. The host route is a global configuration. The host route is created by searching all EIPs based on the external network subnet, obtaining the corresponding tenants based on the online EIPs, and issuing the host route configuration on the corresponding tenant gateway, so that the services in the public network segment can communicate across resource pools.
