Hybrid cloud network communication method and system based on virtual routing gateway
By creating a virtual routing gateway and VXLAN tunnel on the cloud service platform and using the VLAN network for traffic forwarding, the problem of insecurity between cloud services and local services is solved, and secure communication and resource conservation is achieved.
Patent Information
- Application Number
- CN202411195817.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-08-29
AI Technical Summary
In the prior art, cloud services and local services cannot communicate securely, and there is a risk of exposing access addresses to the outside world, resulting in possible attacks.
Adopt a hybrid cloud network communication method based on virtual routing gateways, create virtual routing gateways, virtual network card instances and endpoints on the cloud service platform to form a VXLAN tunnel, and use the VLAN network for traffic forwarding and routing configuration to ensure cloud service platform and Internet data. Secure communication between centers.
It realizes secure communication between cloud services and local services, saves subnet IP address resources, improves resource utilization efficiency and system security, and avoids the waste of public IP addresses.
Smart Images

Figure CN119094522A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet cloud network technology, and in particular to a hybrid cloud network communication method and system based on a virtual routing gateway. Background Art
[0002] In the current cloud platform network technology, virtual private networks (VPCs) provide good isolation. If computing resources in a virtual private network need to provide external services, they usually need to map the internal IP to a subnet IP and access it through the subnet. At the same time, if you want to access local services, the local services also need to provide subnet IPs. Although this method is feasible, it faces the risk of exposing the access address to the outside world, which may lead to attacks and make it impossible for cloud services and local services to communicate securely. Summary of the invention
[0003] The present invention provides a hybrid cloud network communication method and system based on a virtual routing gateway, which solves the problem in the prior art that cloud services and local services cannot communicate securely.
[0004] According to one aspect of the present invention, a hybrid cloud network communication method based on a virtual routing gateway is provided, comprising:
[0005] The cloud service platform obtains a creation instruction of the first virtual routing gateway and executes the creation instruction to create the first virtual routing gateway in the target virtual private network on the cloud service platform;
[0006] The cloud service platform creates a first virtual network card instance in the target virtual private network and binds the first virtual network card instance to the first virtual routing gateway;
[0007] The cloud service platform sets a first endpoint on a first switch in the target virtual private network;
[0008] The Internet data center sets a second endpoint on the created second switch and connects the second endpoint to the first endpoint for communication to form a VXLAN tunnel; wherein the VXLAN tunnel provides a VLAN network;
[0009] The cloud service platform sends the request traffic generated by the subnet in the target virtual private network to the Internet data center based on the VLAN network; wherein the subnet in the target virtual private network is communicatively connected to the first virtual router in the target virtual private network, the first virtual routing gateway is communicatively connected to the first virtual router, and the first switch is communicatively connected to the first virtual routing gateway;
[0010] The Internet data center receives the request traffic based on the VLAN network and sends response data to the cloud service platform.
[0011] In one embodiment, before the cloud service platform sends the request traffic generated by the subnet in the target virtual private network to the Internet data center based on the VLAN network, the hybrid cloud network communication method based on the virtual routing gateway further includes:
[0012] The cloud service platform configures the first virtual router based on the first routing configuration rule to obtain a configured first virtual router;
[0013] The cloud service platform configures the first virtual routing gateway based on the second routing configuration rule to obtain a configured first virtual routing gateway; wherein the subnet in the target virtual private network is communicatively connected to the configured first virtual router, the first virtual routing gateway is communicatively connected to the configured first virtual router, and the first switch is communicatively connected to the first virtual routing gateway.
[0014] In one embodiment, the cloud service platform configures the first virtual router based on the first routing configuration rule to obtain the configured first virtual router including:
[0015] The cloud service platform sets the destination network segment of the first virtual router to be the subnet segment of the Internet data center;
[0016] The cloud service platform configures the first virtual router to forward the request traffic to the first virtual network card instance to obtain a configured first virtual router.
[0017] In one embodiment, the cloud service platform configures the first virtual routing gateway based on the second routing configuration rule to obtain the configured first virtual routing gateway including:
[0018] The cloud service platform sets the destination network segment of the first virtual routing gateway to be the subnet network segment in the target virtual private network;
[0019] The cloud service platform configures the first virtual routing gateway to forward the response data sent by the Internet data center to the first virtual router to obtain the configured first virtual routing gateway.
[0020] In one embodiment, the network segment configured by the first switch of the cloud service platform in the target virtual private network is the same as the network segment configured by the second switch of the Internet data center.
[0021] In one embodiment, after the Internet data center receives the request traffic based on the VLAN network and sends response data to the cloud service platform, the hybrid cloud network communication method based on the virtual routing gateway further includes:
[0022] The cloud service platform creates a second virtual network card instance in the VLAN network and binds the second virtual network card instance to the first virtual routing gateway;
[0023] The cloud service platform sends the response data sent by the Internet data center to the first virtual routing gateway through the second virtual network card instance.
[0024] In one embodiment, the cloud service platform sends the request traffic generated by the subnet in the target virtual private network to the Internet data center based on the VLAN network, including:
[0025] Configure static routing rules on the first virtual routing gateway to obtain a configured first virtual routing gateway; wherein the static routing rules include setting the destination network segment to the subnet network segment of the Internet data center, setting the first virtual routing gateway to send the request traffic to the third virtual network card instance in the VLAN network, and the third virtual network card instance is created in the Internet data center;
[0026] Based on the configured first virtual routing gateway and the VLAN network, the request traffic is sent to the subnet of the Internet data center.
[0027] In one embodiment, the Internet data center receives the request traffic based on the VLAN network and sends response data to the cloud service platform, including:
[0028] Create a second virtual routing gateway;
[0029] Based on the third routing configuration rule, configuring the second virtual routing gateway to obtain a configured second virtual routing gateway;
[0030] Based on the VLAN network and the configured second virtual routing gateway, the request traffic is received and response data is sent to the cloud service platform.
[0031] In one embodiment, configuring the second virtual routing gateway based on the third routing configuration rule to obtain the configured second virtual routing gateway includes:
[0032] Setting the destination network segment of the second virtual routing gateway to the subnet segment of the Internet data center;
[0033] The second virtual routing gateway is configured to forward the request traffic to the second virtual router of the Internet data center.
[0034] According to another aspect of the present invention, a hybrid cloud network communication system based on a virtual routing gateway is provided, comprising:
[0035] A cloud service platform, configured to obtain a creation instruction of a first virtual routing gateway and execute the creation instruction to create a first virtual routing gateway in a target virtual private network on the cloud service platform, create a first virtual network card instance in the target virtual private network and bind the first virtual network card instance to the first virtual routing gateway, set a first endpoint on a first switch in the target virtual private network, and send request traffic generated by a subnet in the target virtual private network to an Internet data center based on a VLAN network; wherein the subnet in the target virtual private network is communicatively connected to a first virtual router in the target virtual private network, the first virtual routing gateway is communicatively connected to the first virtual router, and the first switch is communicatively connected to the first virtual routing gateway;
[0036] The Internet data center is used to set a second endpoint on the created second switch and communicatively connect the second endpoint with the first endpoint to form a VXLAN tunnel, and based on the VLAN network, receive the request traffic and send response data to the cloud service platform; wherein the VXLAN tunnel provides a VLAN network.
[0037] The embodiment of the present invention provides a hybrid cloud network communication method and system based on a virtual routing gateway, including: a cloud service platform obtains a creation instruction of a first virtual routing gateway and executes the creation instruction to create the first virtual routing gateway in a target virtual private network on the cloud service platform, the cloud service platform creates a first virtual network card instance in the target virtual private network and binds the first virtual network card instance to the first virtual routing gateway, the cloud service platform sets a first endpoint on a first switch in the target virtual private network, an Internet data center sets a second endpoint on the created second switch and communicates and connects the second endpoint with the first endpoint to form a VXLAN tunnel, wherein the VXLAN tunnel provides a VLAN network, the cloud service platform sends the request traffic generated by a subnet in the target virtual private network to the Internet data center based on the VLAN network, wherein the subnet in the target virtual private network is communicated and connected with the first virtual router in the target virtual private network, the first virtual routing gateway is communicated and connected with the first virtual router, the first switch is communicated and connected with the first virtual routing gateway, and the Internet data center receives the request traffic based on the VLAN network and sends response data to the cloud service platform. In order to save subnet IP address resources and ensure secure communication between the cloud service platform and the Internet data center, they can communicate directly through the intranet address (VLAN network segment). This method not only improves the resource utilization efficiency, but also enhances the security of the system, thereby better protecting the security of cloud service resources and local services, and saving public IP address resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a flow chart of a hybrid cloud network communication method based on a virtual routing gateway provided by an exemplary embodiment of the present invention.
[0039] Figure 2 It is a flow chart of a hybrid cloud network communication method based on a virtual routing gateway provided by another exemplary embodiment of the present invention.
[0040] Figure 3 It is a communication schematic diagram of a hybrid cloud network communication system based on a virtual routing gateway provided by an exemplary embodiment of the present invention.
[0041] Figure 4 It is a structural diagram of a hybrid cloud network communication system based on a virtual routing gateway provided by an exemplary embodiment of the present invention.
[0042] Figure 5 It is a structural diagram of an electronic device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0043] The virtual routing gateway can bind the network cards of non-business network segments of multiple networks, and automatically configure the static routes of the network by communicating with the management network, so as to achieve the purpose of using internal network addresses to communicate between multiple networks. Using the virtual routing gateway, the virtual private network on the cloud can be connected to the dedicated mapping network on the cloud platform. In addition, since the virtual routing gateway can be controlled by configuring the route, it can manage the communication between the cloud network and the local network to a certain extent.
[0044] VXLAN technology is a network virtualization technology in NVO3. It encapsulates the data packets sent by the original host in UDP, uses the IP and MAC of the physical network as the outer header, and then transmits them on the IP network. After reaching the destination, the tunnel endpoint decapsulates the data and sends the data to the target host. VXLAN technology can be used to build a virtual Layer 2 network on an existing Layer 3 network to achieve Layer 2 intercommunication between hosts. It does not need to consider the limitations of physical network IP addresses and broadcast domains, which reduces the difficulty of network management. By using VXLAN technology, VXLAN tunnel VTEP ports are established on the network mapped on the cloud platform and the local network, and Layer 2 network communication based on the Layer 3 network can be achieved from the architecture.
[0045] VLAN (Virtual Local Area Network) is a network technology used to divide a physical network into multiple logical subnets. Even in the same physical network, VLAN allows different devices to be in different broadcast domains, thereby improving the management flexibility and security of the network.
[0046] A virtual private network (VPC) is an isolated network created in a cloud computing environment that allows users to build their own private network environment on a public cloud infrastructure.
[0047] A virtual network interface card (vNIC) is a network interface created in a virtualized environment and is used to connect a virtual machine (VM) to the network.
[0048] The Internet Data Center (IDC) provides a variety of infrastructure and support for the cloud service platform to ensure the efficiency and reliability of cloud services.
[0049] Cloud service platform refers to the infrastructure and applications that provide cloud computing resources and services, allowing users to access and use computing resources through the Internet without having to install and maintain hardware or software locally.
[0050] A switch is an important device in a computer network, used to connect multiple devices (such as computers, printers, and servers) and forward data between them.
[0051] A virtual router is a router function implemented through virtualization technology. It creates multiple virtual routing instances on a single physical hardware. Each virtual router can independently process network traffic, configure routing protocols, and interact with physical and virtual network devices.
[0052] Figure 1 FIG. 1 is a flow chart of a hybrid cloud network communication method based on a virtual routing gateway provided by an exemplary embodiment of the present invention. Figure 1 As shown, the hybrid cloud network communication method based on the virtual routing gateway includes:
[0053] Step 110: The cloud service platform obtains a creation instruction for the first virtual routing gateway and executes the creation instruction to create the first virtual routing gateway in the target virtual private network on the cloud service platform.
[0054] In an embodiment of the present invention, in order to enable the cloud service platform to communicate with the Internet data center, a first virtual routing gateway is created in the target virtual private network of the cloud service platform, and secure communication between the cloud service platform and the Internet data center is achieved through the virtual routing gateway. The virtual routing gateway allows a secure network boundary to be created in the virtual private network, ensuring that only authorized traffic can enter and exit the virtual network, thereby enhancing overall security. The virtual routing gateway can be responsible for traffic routing management between multiple virtual private networks.
[0055] In the present invention, a user can log in to a cloud service platform and create a target virtual private network in the cloud service platform, and one or more subnets can be created in the target virtual private network, and multiple servers can be established in the subnets to achieve load balancing, disperse traffic, and improve availability and performance. If a server fails, traffic can be automatically switched to other healthy servers.
[0056] Step 120: The cloud service platform creates a first virtual network card instance in the target virtual private network and binds the first virtual network card instance to the first virtual routing gateway.
[0057] In an embodiment of the present invention, the cloud service platform receives an instruction to create an instance, creates a virtual network card instance in the target virtual network of the cloud service platform, and binds the virtual network card instance to the virtual routing gateway. The virtual network card instance forwards network data packets through the virtual routing gateway, and transfers traffic from a virtual private network (VPC) or subnet to other networks (such as the Internet or other VPCs). For example, in virtual private network A, a virtual network card instance a is created and bound to the virtual routing gateway.
[0058] Step 130: The cloud service platform sets a first endpoint on a first switch in the target virtual private network.
[0059] Step 140: The Internet data center sets a second endpoint on the created second switch and communicatively connects the second endpoint with the first endpoint to form a VXLAN tunnel, wherein the VXLAN tunnel provides a VLAN network.
[0060] In an embodiment of the present invention, in order to ensure that the cloud service platform and the Internet data center can communicate, it is necessary to ensure in advance that the subnet IP segments of the two networks are accessible. Create a VXLAN tunnel on the switches at both ends. The VXLAN tunnel is determined by a pair of VTEP IP addresses. The creation of a static VXLAN tunnel is completely completed by manually configuring the VNI and VTEP IP addresses of the local and remote ends. As long as the VTEP IPs at both ends of the VXLAN tunnel are reachable by Layer 3 routing, the VXLAN tunnel can be successfully established. After the tunnel is established, the VXLAN network is mapped to the VLAN network of the cloud service platform, and Layer 2 communication can be performed with the IP segment of the local network of the Internet data center through the VXLAN tunnel. VTEP (Virtual Tunnel End Point) is a key component for realizing network virtualization, especially in VXLAN (Virtual Extended Local Area Network). The main function of VTEP is to encapsulate the traffic of virtual machines or virtual networks into VXLAN data packets and transmit them through the physical network. VNI (VXLAN Network Identifier) is a key concept in the VXLAN (Virtual Extended Local Area Network) protocol, used to identify different virtual networks.
[0061] Step 150: The cloud service platform sends the request traffic generated by the subnet in the target virtual private network to the Internet data center based on the VLAN network, wherein the subnet in the target virtual private network is communicatively connected to the first virtual router in the target virtual private network, the first virtual routing gateway is communicatively connected to the first virtual router, and the first switch is communicatively connected to the first virtual routing gateway.
[0062] In an embodiment of the present invention, the cloud service platform can send request traffic or data packets to the Internet data center through the VLAN network, so that corresponding response data can be obtained from the Internet data center.
[0063] Step 160: The Internet data center receives the request traffic based on the VLAN network and sends response data to the cloud service platform.
[0064] In an embodiment of the present invention, the Internet data center transmits the data packets desired by the cloud service platform to the cloud service platform through the VLAN network, so that the cloud service platform can check or process them. For example, the Internet data center can provide monitoring data (monitoring data can monitor the performance data of servers, storage and network devices in real time, such as CPU usage, memory usage, network traffic, etc.), log data (log data can record system operations, user behaviors, faults and abnormal events, which is convenient for subsequent analysis and troubleshooting), flow data (flow data can be real-time data of network traffic, including inbound and outbound traffic statistics), etc. CPU (Central Processing Unit) is one of the core components of a computer system, responsible for executing program instructions and processing data.
[0065] An embodiment of the present invention provides a hybrid cloud network communication method based on a virtual routing gateway, comprising: a cloud service platform obtains a creation instruction of a first virtual routing gateway and executes the creation instruction to create the first virtual routing gateway in a target virtual private network on the cloud service platform, the cloud service platform creates a first virtual network card instance in the target virtual private network and binds the first virtual network card instance to the first virtual routing gateway, the cloud service platform sets a first endpoint on a first switch in the target virtual private network, an Internet data center sets a second endpoint on the created second switch and communicates and connects the second endpoint with the first endpoint to form a VXLAN tunnel, wherein the VXLAN tunnel provides a VLAN network, the cloud service platform sends the request traffic generated by a subnet in the target virtual private network to the Internet data center based on the VLAN network, wherein the subnet in the target virtual private network is communicated and connected with the first virtual router in the target virtual private network, the first virtual routing gateway is communicated and connected with the first virtual router, the first switch is communicated and connected with the first virtual routing gateway, and the Internet data center receives the request traffic based on the VLAN network and sends response data to the cloud service platform. In order to save subnet IP address resources and ensure secure communication between the cloud service platform and the Internet data center, they can communicate directly through the intranet address (VLAN network segment). This method not only improves the resource utilization efficiency, but also enhances the security of the system, thereby better protecting the security of cloud service resources and local services, and saving public IP address resources.
[0066] In one embodiment, before step 150, the hybrid cloud network communication method based on the virtual routing gateway of the cloud service platform can be specifically implemented as follows: based on the first routing configuration rule, the first virtual router is configured to obtain the configured first virtual router; based on the second routing configuration rule, the cloud service platform configures the first virtual routing gateway to obtain the configured first virtual routing gateway; wherein the subnet in the target virtual private network is communicatively connected to the configured first virtual router, the first virtual routing gateway is communicatively connected to the configured first virtual router, and the first switch is communicatively connected to the first virtual routing gateway.
[0067] In an embodiment of the present invention, the communication between the cloud service platform and the Internet data center is realized by performing routing configuration on the first virtual router and the first virtual routing gateway. The present invention sets a first routing configuration rule to configure the first virtual router, and sets a second routing configuration rule to set the first virtual routing gateway, so that the request traffic generated by the subnet can be sent to the configured first virtual router, and then the request traffic is sent from the configured first virtual router to the configured first virtual routing gateway, and the configured first virtual routing gateway sends the request traffic to the first switch, and the request traffic is sent to the second switch of the Internet data center through the first switch.
[0068] Specifically, the cloud service platform configures the first virtual router based on the first routing configuration rule to obtain the configured first virtual router, including: the cloud service platform sets the destination network segment of the first virtual router to the subnet segment of the Internet data center; the cloud service platform sets the first virtual router to forward the request traffic to the first virtual network card instance to obtain the configured first virtual router.
[0069] The present invention can realize safe traffic management between a virtual private network and an Internet data center by setting a first routing rule, that is, only allowed traffic can pass through the first virtual network card instance to the Internet data center, so it is necessary to set the destination network segment of the first virtual router to be the subnet network segment of the Internet data center, and set the first virtual router to forward the request traffic to the first virtual network card instance, when the request traffic target sent by the subnet in the target virtual private network is the subnet of the Internet data center, the request traffic sent by the subnet in the target virtual private network will be sent through the interface of the first virtual network card instance. For example, setting the destination network segment of the first virtual router to be the subnet network segment of the Internet data center, and setting the first virtual router to forward the request traffic to the first virtual network card instance can be expressed as: the destination network segment of the first virtual router v-router is the subnet network segment of the Internet data center, and the next hop is the first virtual network card instance a.
[0070] Specifically, the cloud service platform configures the first virtual routing gateway based on the second routing configuration rule to obtain the configured first virtual routing gateway, including: the cloud service platform sets the destination network segment of the first virtual routing gateway to the subnet network segment of the subnet; the cloud service platform sets the first virtual routing gateway to forward the response data sent by the Internet data center to the first virtual router to obtain the configured first virtual routing gateway.
[0071] In an embodiment of the present invention, by setting a second routing configuration rule, the request traffic passing through the first virtual routing gateway is sent to the Internet data center. Specifically, the destination network segment of the first virtual routing gateway is set to the subnet network segment of the subnet, and the first virtual routing gateway is set to forward the request traffic to the first virtual router to obtain the configured first virtual routing gateway. That is to say, when the response data sent by the Internet data center passes through the first virtual routing gateway, if the subnet of the subnet of the first virtual routing gateway is the subnet of the subnet, then the response data sent by the Internet data center will be sent through the interface of the first virtual router. For example, setting the destination network segment of the first virtual routing gateway to the subnet network segment in the target virtual private network, and setting the first virtual routing gateway to forward the request traffic to the first virtual router can be expressed as: the destination network segment of the first virtual road gateway is the connected network segment (subnet network segment) of the virtual private network A, and the next hop is the gateway on the v-router.
[0072] In one embodiment, the network segment configured by the first switch of the cloud service platform in the target virtual private network is the same as the network segment configured by the second switch of the Internet data center.
[0073] In an embodiment of the present invention, in order to enable the cloud service platform and the Internet data center to transmit data, traffic, etc. in the VLAN network, it is necessary to configure the network segment of the first switch of the cloud service platform in the target virtual private network to be the same as the network segment configured by the second switch of the Internet data center.
[0074] In addition, in order to map the VLAN networks to the cloud service platform, the following steps can be used to implement it:
[0075] The VLAN network mapped to the VXLAN network on the cloud platform is called network B. In VLAN network B, an elastic network card b (second virtual network card instance) is created, and elastic network card b is added to the first virtual routing gateway. Static routing is configured for the first virtual routing gateway, and the destination network segment is the network segment that the local network of the Internet data center needs to connect to (the subnet network segment of the Internet data center), and the next hop points to the second virtual routing gateway. The second virtual routing gateway is set in the Internet data center.
[0076] Among them, a static route is configured for the first virtual routing gateway, the destination network segment is the network segment that the local network of the Internet data center needs to be connected to (the subnet segment of the Internet data center), and the next hop points to the second virtual routing gateway, which means that the cloud service platform creates a second virtual network card instance in the VLAN network and binds the second virtual network card instance to the first virtual routing gateway. The cloud service platform sends the request traffic to the second virtual routing gateway through the second virtual network card instance.
[0077] In order to map the VLAN network to the Internet data center, the following steps can be used to implement it:
[0078] Configure routing rules on the second virtual routing gateway, the destination network segment is the subnet network segment in the target virtual private network, and the next hop is the fourth virtual gateway instance. Create a third virtual network card instance in the VLAN network, configure routing rules on the third virtual network card instance, the destination network segment is the subnet network segment in the target virtual private network, and the next hop is the second virtual network card instance.
[0079] Among them, the routing rules are configured in the second virtual routing gateway, the destination network segment is the subnet network segment in the target virtual private network, and the next hop is the fourth virtual gateway instance, which means that the Internet data center sends the request traffic to the fourth virtual gateway instance through the second virtual routing gateway.
[0080] Among them, the third virtual network card instance configures routing rules, the destination network segment is the network segment of the subnet in the target virtual private network, and the next hop is the second virtual network card instance, which means that the Internet data center creates a third virtual network card instance in the VLAN network, and the Internet data center sends the response data to the second virtual network card instance through the third virtual network card instance.
[0081] Figure 2 FIG. 1 is a flow chart of a hybrid cloud network communication method based on a virtual routing gateway provided by another exemplary embodiment of the present invention. Figure 2 As shown, after step 160, the following steps may also be included:
[0082] Step 170: The cloud service platform creates a second virtual network card instance in the VLAN network and binds the second virtual network card instance to the first virtual routing gateway.
[0083] In an embodiment of the present invention, the cloud service platform creates a second virtual network card instance in the VLAN network and binds the second virtual network card instance to the first virtual routing gateway. The cloud service platform sends the request traffic to the second virtual routing gateway through the second virtual network card instance.
[0084] Step 180: The cloud service platform sends the response data sent by the Internet data center to the first virtual routing gateway through the second virtual network card instance.
[0085] In one embodiment, step 150 can be specifically implemented as follows: configuring static routing rules on the first virtual routing gateway to obtain a configured first virtual routing gateway; wherein the static routing rules include setting the destination network segment to a subnet network segment of an Internet data center, setting the first virtual routing gateway to send request traffic to a third virtual network card instance in a VLAN network, and the third virtual network card instance is created in the Internet data center; based on the configured first virtual routing gateway and the VLAN network, sending the request traffic to the subnet of the Internet data center.
[0086] In an embodiment of the present invention, in order to send the request traffic sent by the cloud service platform to the subnet of the Internet data center, the destination network segment of the first virtual routing gateway is set to the subnet segment of the Internet data center, and the first virtual routing gateway is set to send the request traffic to the third virtual network card instance in the VLAN network, so that the request traffic of the first virtual routing gateway is sent to the second switch of the Internet data center through the first switch, and the request traffic is sent to the third virtual network card instance in the VLAN network.
[0087] In one embodiment, step 160 can be specifically implemented as follows: creating a second virtual routing gateway; configuring the second virtual routing gateway based on a third routing configuration rule to obtain a configured second virtual routing gateway; based on the VLAN network and the configured second virtual routing gateway, receiving request traffic and sending response data to the cloud service platform.
[0088] In the embodiment of the present invention, in order to enable the Internet data center to receive the request traffic of the cloud service platform, it is necessary to establish a second virtual routing gateway in the Internet data center, and receive the request traffic transmitted by the cloud service platform through the VLAN network through the second virtual routing gateway. Then the Internet data center responds based on the request traffic, outputs response data, and sends the response data back to the cloud service platform through the second virtual routing gateway.
[0089] In one embodiment, step 160 can be specifically implemented as follows: setting the destination network segment of the second virtual routing gateway to the subnet segment of the Internet data center; setting the second virtual routing gateway to forward the request traffic to the second virtual router of the Internet data center.
[0090] In an embodiment of the present invention, communication between the cloud service platform and the Internet data center is achieved by setting the destination network segment of the second virtual routing gateway to the subnet network segment of the Internet data center and setting the second virtual routing gateway to forward the request traffic to the second virtual router of the Internet data center.
[0091] In one embodiment, before step 170, the hybrid cloud network communication method based on the virtual routing gateway can be specifically implemented as follows: the Internet data center configures the second virtual routing gateway of the Internet data center based on the third routing configuration rule to obtain the configured second virtual routing gateway; the Internet data center sends the response data to the second virtual network card instance of the cloud service platform based on the configured second virtual routing gateway.
[0092] Specifically, the Internet data center configures the second virtual routing gateway of the Internet data center based on the third routing configuration rule to obtain the configured second virtual routing gateway, which may include the following steps:
[0093] The destination network segment of the second virtual routing gateway is set to the subnet network segment in the target virtual private network, and the second virtual routing gateway is set to send the response data to the second virtual routing gateway.
[0094] Figure 3 FIG. 1 is a communication diagram of a hybrid cloud network communication system based on a virtual routing gateway provided by an exemplary embodiment of the present invention. Figure 3As shown, a first virtual routing gateway virtual gateway is created in the target virtual private network VPC1 of the cloud service platform. The first virtual routing gateway virtual gateway is responsible for traffic routing management between multiple virtual private networks. A first virtual network card instance eth1 is created in the target virtual private network VPC1, and the first virtual network card instance eth1 is bound to the first virtual routing gateway virtual gateway. The IP network segment of the subnet subnet in the target virtual private network VPC1 is 192.168.0.0 / 16. The subnet is connected to the first virtual router v-router in communication. The destination network segment of the first virtual router v-router is the subnet IP network segment of the Internet data center IDC (172.16.0.0 / 12), and the next hop is the first virtual network card instance eth1. The routing rules are configured in the first virtual routing gateway. The destination network segment is the subnet network segment of the target virtual private network VPC1 (192.168.0.0 / 16), and the next hop is the first virtual router v-router. Through the subnet IP segment on the cloud service platform and the subnet IP segment of the Internet data center, two VTEP endpoints of the VXLAN tunnel are established respectively, and the VXLAN network is mapped into a VLAN network in the two network environments respectively, and the same IP segment (100.200.0.0 / 24) is configured. In the VLAN network mapped by the cloud service platform, a second virtual network card instance vlan-eth1 is created and bound to the first virtual routing gateway virtual gateway. Static routing is configured on the first virtual routing gateway virtual gateway, and the destination segment is the subnet IP segment of the Internet data center (172.16.0.0 / 12), and the next hop is the third virtual gateway instance vlan-eth2 of the Internet data center. In the local network of the Internet data center, a second virtual router router is established, the second virtual router router communicates with the subnet of the Internet data center, the second virtual router router communicates with the fourth virtual network card instance eth2, the fourth virtual network card instance eth2 communicates with the second virtual routing gateway gateway, and the second virtual routing gateway gateway communicates with the third virtual gateway instance vlan-eth2. The destination network segment of the second virtual router router is the subnet IP network segment of the cloud service platform (192.168.0.0 / 16). The second virtual routing gateway gateway configures routing rules, and its destination network segment is the subnet IP network segment of the Internet data center (172.16.0.0 / 12), and the next hop is the second virtual router router.And configure a static route for the second virtual routing gateway gateway, whose destination network segment is the subnet IP network segment of the cloud service platform (192.168.0.0 / 16), and the next hop is the second virtual network card instance vlan-eth1. Among them, the fourth virtual network card instance eth2 and the third virtual gateway instance vlan-eth2 are bound to the second virtual routing gateway gateway respectively.
[0095] The path for sending request traffic from the cloud service platform to the Internet data center is:
[0096] The subnet sends the request traffic to the first virtual router v-router. Since the destination network segment of the first virtual router is the subnet network segment of the Internet data center and the next hop is the first virtual network card instance eth1, the first virtual router v-router sends the request traffic to the first virtual network card instance eth1. The first virtual network card instance eth1 sends the request traffic to the first virtual routing gateway virtual gateway. Since the first virtual routing gateway virtual gateway is configured with static routing, the destination network segment is the subnet network segment of the Internet data center and the next hop is the third virtual gateway instance vlan-eth2. Therefore, the first virtual routing gateway virtual gateway sends the request traffic to the third virtual gateway instance vlan-eth2 through the VLAN network. The third virtual network card instance vlan-eth2 sends the request traffic to the second virtual network card instance gateway. Since the second virtual network card instance gateway is configured with the destination network segment as the subnet network segment of the Internet data center and the next hop is the second virtual router router, the second virtual routing gateway gateway sends the request traffic to the subnet of the Internet data center. The path for sending response data from the Internet data center to the cloud service platform is:
[0097] The subnet of the Internet data center sends the response data to the second virtual router router. The second virtual router router is configured with the destination network segment as the subnet network segment of the target virtual private network VPC1, and the next hop is the fourth virtual network card instance eth2. Therefore, the second virtual router router sends the response data to the fourth virtual network card instance eth2. The fourth virtual network card instance eth2 sends the response data to the second virtual network card instance gateway. The second virtual network card instance gateway is configured with the destination network segment as the subnet network segment of the target virtual private network VPC1, and the next hop is the second virtual network card instance vlan-eth1. Therefore, the second virtual network card instance gateway sends the response data to the second virtual network card instance vlan-eth1. The second virtual network card instance vlan-eth1 sends the response data to the first virtual routing gateway virtual gateway. The first virtual routing gateway virtual gateway is configured with the destination network segment as the subnet network segment of the target virtual private network VPC1, and the next hop is the first virtual router v-router. Therefore, the first virtual routing gateway virtual gateway sends the response data to the first virtual router v-router, and the first virtual router v-router sends the response data to the subnet in the cloud service platform.
[0098] Figure 4 FIG. 1 is a schematic diagram of a hybrid cloud network communication system based on a virtual routing gateway provided by an exemplary embodiment of the present invention. Figure 4 As shown, the hybrid cloud network communication system 20 based on the virtual routing gateway includes: a cloud service platform 201, which is used to obtain a creation instruction of a first virtual routing gateway and execute the creation instruction to create a first virtual routing gateway in a target virtual private network on the cloud service platform, create a first virtual network card instance in the target virtual private network and bind the first virtual network card instance to the first virtual routing gateway, set a first endpoint on a first switch in the target virtual private network, and send the request traffic generated by the subnet in the target virtual private network to an Internet data center based on a VLAN network; wherein the subnet in the target virtual private network is communicatively connected to the first virtual router in the target virtual private network, the first virtual routing gateway is communicatively connected to the first virtual router, and the first switch is communicatively connected to the first virtual routing gateway; an Internet data center 202, which is used to set a second endpoint on the created second switch and communicatively connect the second endpoint to the first endpoint to form a VXLAN tunnel, receive the request traffic based on the VLAN network and send response data to the cloud service platform; wherein the VXLAN tunnel provides a VLAN network.
[0099] An embodiment of the present invention provides a hybrid cloud network communication system based on a virtual routing gateway, comprising: a cloud service platform obtains a creation instruction of a first virtual routing gateway and executes the creation instruction to create the first virtual routing gateway in a target virtual private network on the cloud service platform, creates a first virtual network card instance in the target virtual private network and binds the first virtual network card instance to the first virtual routing gateway, sets a first endpoint on a first switch in the target virtual private network, and sends the request traffic generated by a subnet in the target virtual private network to an Internet data center based on a VLAN network; wherein the subnet in the target virtual private network is communicatively connected to the first virtual router in the target virtual private network, the first virtual routing gateway is communicatively connected to the first virtual router, and the first switch is communicatively connected to the first virtual routing gateway; the Internet data center sets a second endpoint on the created second switch and communicatively connects the second endpoint to the first endpoint to form a VXLAN tunnel, receives the request traffic based on the VLAN network and sends response data to the cloud service platform, wherein the VXLAN tunnel provides a VLAN network. In order to save subnet IP address resources and ensure secure communication between the cloud service platform and the Internet data center, they can communicate directly through the intranet address (VLAN network segment). This method not only improves the resource utilization efficiency, but also enhances the security of the system, thereby better protecting the security of cloud service resources and local services, and saving public IP address resources.
[0100] In one embodiment, the cloud service platform 201 can be specifically configured as follows: the cloud service platform configures the first virtual router based on the first routing configuration rule to obtain the configured first virtual router; the cloud service platform configures the first virtual routing gateway based on the second routing configuration rule to obtain the configured first virtual routing gateway; wherein the subnet in the target virtual private network is communicatively connected to the configured first virtual router, the first virtual routing gateway is communicatively connected to the configured first virtual router, and the first switch is communicatively connected to the first virtual routing gateway.
[0101] In one embodiment, the cloud service platform 201 can be specifically configured as follows: the cloud service platform sets the destination network segment of the first virtual router to be the subnet segment of the Internet data center; the cloud service platform sets the first virtual router to forward the request traffic to the first virtual network card instance to obtain the configured first virtual router.
[0102] In one embodiment, the cloud service platform 201 can be specifically configured as follows: the cloud service platform sets the destination network segment of the first virtual routing gateway to be the subnet network segment in the target virtual private network; the cloud service platform sets the first virtual routing gateway to forward the response data sent by the Internet data center to the first virtual router to obtain the configured first virtual routing gateway.
[0103] In one embodiment, the network segment configured by the first switch of the cloud service platform in the target virtual private network is the same as the network segment configured by the second switch of the Internet data center.
[0104] In one embodiment, a hybrid cloud network communication system based on a virtual routing gateway can be specifically configured as follows: the cloud service platform creates a second virtual network card instance in the VLAN network and binds the second virtual network card instance to the first virtual routing gateway; the cloud service platform sends the response data sent by the Internet data center to the first virtual routing gateway through the second virtual network card instance.
[0105] In one embodiment, the cloud service platform 201 can be specifically configured as follows: static routing rules are configured on the first virtual routing gateway to obtain the configured first virtual routing gateway; wherein the static routing rules include setting the destination network segment to the subnet segment of the Internet data center, setting the first virtual routing gateway to send the request traffic to the third virtual network card instance in the VLAN network, and the third virtual network card instance is created in the Internet data center; based on the configured first virtual routing gateway and the VLAN network, the request traffic is sent to the subnet of the Internet data center.
[0106] In one embodiment, the Internet data center 202 can be specifically configured as follows: creating a second virtual routing gateway; configuring the second virtual routing gateway based on a third routing configuration rule to obtain a configured second virtual routing gateway; based on the VLAN network and the configured second virtual routing gateway, receiving request traffic and sending response data to the cloud service platform.
[0107] In one embodiment, the Internet data center 202 can be specifically configured as follows: setting the destination network segment of the second virtual routing gateway to the subnet segment of the Internet data center; setting the second virtual routing gateway to forward the request traffic to the second virtual router of the Internet data center.
[0108] Figure 5 A block diagram of an electronic device according to an embodiment of the present application is illustrated.
[0109] like Figure 5 As shown, the electronic device 10 includes one or more processors 11 and a memory 12 .
[0110] The processor 11 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 10 to perform desired functions.
[0111] The memory 12 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 11 may run the program instructions to implement the hybrid cloud network communication method based on a virtual routing gateway and / or other desired functions of the various embodiments of the present application described above. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.
[0112] In one example, the electronic device 10 may further include: an input device 13 and an output device 14, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0113] When the electronic device is a stand-alone device, the input device 13 may be a communication network connector, which is used to receive the collected input signals from the first device and the second device.
[0114] In addition, the input device 13 may also include, for example, a keyboard, a mouse, and the like.
[0115] The output device 14 can output various information to the outside, including the determined distance information, direction information, etc. The output device 14 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.
[0116] Of course, to simplify, Figure 5 Only some of the components related to the present application in the electronic device 10 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 10 may also include any other appropriate components.
[0117] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0118] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0119] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A hybrid cloud network communication method based on a virtual routing gateway, characterized in that: include: The cloud service platform obtains a creation instruction of the first virtual routing gateway and executes the creation instruction to create the first virtual routing gateway in the target virtual private network on the cloud service platform; The cloud service platform creates a first virtual network card instance in the target virtual private network and binds the first virtual network card instance to the first virtual routing gateway; The cloud service platform sets a first endpoint on a first switch in the target virtual private network; The Internet data center sets a second endpoint on the created second switch and connects the second endpoint to the first endpoint for communication to form a VXLAN tunnel; wherein the VXLAN tunnel provides a VLAN network; The cloud service platform sends the request traffic generated by the subnet in the target virtual private network to the Internet data center based on the VLAN network; wherein the subnet in the target virtual private network is communicatively connected to the first virtual router in the target virtual private network, the first virtual routing gateway is communicatively connected to the first virtual router, and the first switch is communicatively connected to the first virtual routing gateway; The Internet data center receives the request traffic based on the VLAN network and sends response data to the cloud service platform.
2. The hybrid cloud network communication method based on virtual routing gateway according to claim 1 is characterized in that: Before the cloud service platform sends the request traffic generated by the subnet in the target virtual private network to the Internet data center based on the VLAN network, the method further includes: The cloud service platform configures the first virtual router based on the first routing configuration rule to obtain a configured first virtual router; The cloud service platform configures the first virtual routing gateway based on the second routing configuration rule to obtain a configured first virtual routing gateway; wherein the subnet in the target virtual private network is communicatively connected to the configured first virtual router, the first virtual routing gateway is communicatively connected to the configured first virtual router, and the first switch is communicatively connected to the first virtual routing gateway.
3. The hybrid cloud network communication method based on virtual routing gateway according to claim 2 is characterized in that: The cloud service platform configures the first virtual router based on the first routing configuration rule to obtain the configured first virtual router including: The cloud service platform sets the destination network segment of the first virtual router to be the subnet segment of the Internet data center; The cloud service platform configures the first virtual router to forward the request traffic to the first virtual network card instance to obtain a configured first virtual router.
4. The hybrid cloud network communication method based on virtual routing gateway according to claim 2 is characterized in that: The cloud service platform configures the first virtual routing gateway based on the second routing configuration rule, so that the configured first virtual routing gateway includes: The cloud service platform sets the destination network segment of the first virtual routing gateway to be the subnet network segment in the target virtual private network; The cloud service platform configures the first virtual routing gateway to forward the response data sent by the Internet data center to the first virtual router to obtain the configured first virtual routing gateway.
5. The hybrid cloud network communication method based on virtual routing gateway according to claim 1, characterized in that: The network segment configured by the first switch of the cloud service platform in the target virtual private network is the same as the network segment configured by the second switch of the Internet data center.
6. The hybrid cloud network communication method based on virtual routing gateway according to claim 1, characterized in that: After the Internet data center receives the request traffic based on the VLAN network and sends response data to the cloud service platform, the method further includes: The cloud service platform creates a second virtual network card instance in the VLAN network and binds the second virtual network card instance to the first virtual routing gateway; The cloud service platform sends the response data sent by the Internet data center to the first virtual routing gateway through the second virtual network card instance.
7. The hybrid cloud network communication method based on virtual routing gateway according to claim 1, characterized in that: The cloud service platform sends the request traffic generated by the subnet in the target virtual private network to the Internet data center based on the VLAN network, including: Configure static routing rules on the first virtual routing gateway to obtain a configured first virtual routing gateway; wherein the static routing rules include setting the destination network segment to the subnet network segment of the Internet data center, setting the first virtual routing gateway to send the request traffic to the third virtual network card instance in the VLAN network, and the third virtual network card instance is created in the Internet data center; Based on the configured first virtual routing gateway and the VLAN network, the request traffic is sent to the subnet of the Internet data center.
8. The hybrid cloud network communication method based on virtual routing gateway according to claim 1, characterized in that: The Internet data center receives the request traffic based on the VLAN network and sends response data to the cloud service platform, including: Create a second virtual routing gateway; Based on the third routing configuration rule, configuring the second virtual routing gateway to obtain a configured second virtual routing gateway; Based on the VLAN network and the configured second virtual routing gateway, the request traffic is received and response data is sent to the cloud service platform.
9. The hybrid cloud network communication method based on virtual routing gateway according to claim 8, characterized in that: The configuring the second virtual routing gateway based on the third routing configuration rule to obtain the configured second virtual routing gateway includes: Setting the destination network segment of the second virtual routing gateway to the subnet segment of the Internet data center; The second virtual routing gateway is configured to forward the request traffic to the second virtual router of the Internet data center.
10. A hybrid cloud network communication system based on a virtual routing gateway, characterized in that: include: A cloud service platform, configured to obtain a creation instruction of a first virtual routing gateway and execute the creation instruction to create a first virtual routing gateway in a target virtual private network on the cloud service platform, create a first virtual network card instance in the target virtual private network and bind the first virtual network card instance to the first virtual routing gateway, set a first endpoint on a first switch in the target virtual private network, and send request traffic generated by a subnet in the target virtual private network to an Internet data center based on a VLAN network; wherein the subnet in the target virtual private network is communicatively connected to a first virtual router in the target virtual private network, the first virtual routing gateway is communicatively connected to the first virtual router, and the first switch is communicatively connected to the first virtual routing gateway; The Internet data center is used to set a second endpoint on the created second switch and communicatively connect the second endpoint with the first endpoint to form a VXLAN tunnel, and based on the VLAN network, receive the request traffic and send response data to the cloud service platform; wherein the VXLAN tunnel provides a VLAN network.
Citation Information
Patent Citations
Service forwarding method and communication device
CN112422397A
Communication line creation method, apparatus and device, and readable storage medium
CN114401274A
Communication method and device based on VPC network, computer equipment and storage medium
CN115473816A
Cloud environment access method and device
CN116599900A
Communication method and system between virtual private networks
CN118282771A
