Data forwarding method and system based on cloud service
By obtaining the forwarding attributes of cloud computing devices in the cloud platform and adopting different forwarding strategies, the problem of poor traffic forwarding flexibility in cloud scenarios is solved, and differentiated forwarding and higher flexibility of cloud services are achieved.
Patent Information
- Application Number
- CN202311264843.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-06-30
- Filing Date
- 2023-09-27
- Publication Date
- 2024-12-31
AI Technical Summary
In cloud-based scenarios, traffic forwarding in virtual private cloud (VPC) is poor, resulting in serious competition for forwarding of VPC traffic, affecting the access efficiency of cloud computing resources.
By introducing forwarding devices into the cloud platform, the forwarding attributes of cloud computing devices are obtained, and different forwarding strategies are adopted according to different forwarding attributes to forward target packets of cloud computing devices, providing differentiated forwarding capabilities, and improving message forwarding flexibility.
Differentiated forwarding of cloud services is realized, meeting users' differentiated requirements in different scenarios, and improving the flexibility and user experience of cloud services.
Smart Images

Figure CN119232650A_ABST
Abstract
Description
[0001] This application claims priority to Chinese patent application No. 202310796716.6, filed on June 30, 2023, and entitled “Data forwarding method and device based on cloud service”, the entire contents of which are incorporated by reference in this disclosure. Technical Field
[0002] The present application relates to the technical field of cloud services, and in particular to a data forwarding method and system based on cloud services. Background Art
[0003] In cloud computing scenarios, multiple subnets (sub networks, subnets) are created in a virtual private cloud (VPC), and each subnet has multiple cloud computing resources. When cloud computing resources in a subnet need to access the public network, the traffic of the cloud computing resources is usually forwarded to the internet gateway (IGW) between the VPC and the public network according to the routing relationship in the subnet.
[0004] However, this will cause all traffic in the VPC to compete for forwarding opportunities, resulting in poor flexibility in forwarding traffic in the VPC. Summary of the invention
[0005] The present application provides a data forwarding method and system based on cloud services. The present application can provide differentiated forwarding capabilities and improve the flexibility of message forwarding. The technical solutions provided by the present application are as follows:
[0006] In a first aspect, the present application provides a data forwarding method based on cloud services. The method is applied to a cloud platform. The cloud platform includes a first cloud system. The first cloud system includes a cloud computing device and a forwarding device. The first cloud system is connected to an external network system via an external network gateway. The method includes: a forwarding device obtains a target message sent by a cloud computing device to the external network system; the forwarding device obtains a forwarding attribute of the cloud computing device; when the forwarding attribute of the cloud computing device is a first attribute, the forwarding device uses the external network gateway as the next hop of the target message and forwards the target message; when the forwarding attribute of the cloud computing device is a second attribute, the forwarding device forwards the target message to the external network gateway based on the routing relationship of the forwarding device.
[0007] In this way, the forwarding device can adopt different forwarding strategies to forward the target messages of the cloud computing device according to the different forwarding attributes of the cloud computing device, provide differentiated forwarding capabilities, improve the flexibility of message forwarding, and help meet the differentiated requirements of users for cloud services in different scenarios, and realize cloud services that better meet customer demands.
[0008] Wherein, before the forwarding device obtains the forwarding attribute of the cloud computing device, the method further includes: the forwarding device receives a configuration instruction, the configuration instruction indicates the forwarding attribute of the cloud computing device; the forwarding device configures a policy for forwarding messages of the cloud computing device based on the configuration instruction. For example, when the configuration instruction indicates that the EIP bound to the cloud computing device is a policy-type EIP, the forwarding device can use the external network gateway as the next hop for forwarding messages of the cloud computing device. When the configuration instruction indicates that the EIP bound to the cloud computing device is a routing-type EIP, the forwarding device can be set to forward messages of the cloud computing device according to the routing relationship of the forwarding device.
[0009] In one implementation of the configuration instruction, the cloud platform also includes a cloud management system. Before the forwarding device receives the configuration instruction, the method also includes: the cloud management system receives a purchase request sent by a user, the purchase request indicates the purchase of a cloud computing device, and the purchase request carries the configuration instruction; the cloud management system configures the cloud computing device based on the purchase request, and sends the configuration instruction to the forwarding device. The purchase request carries the configuration instruction, which has at least the following two implementations:
[0010] In the first implementation, when the user triggers the purchase request, the configuration instruction is also triggered. For example, the cloud service purchase interface not only sets the performance options of the cloud computing device, but also sets the forwarding configuration options of the cloud computing device. When the user submits the interface, if the content in the forwarding configuration option is selected, the purchase request will carry the configuration instruction. If the content in the forwarding configuration option is not selected, the purchase request will not carry the configuration instruction.
[0011] In the second implementation, when the user triggers the purchase request, the configuration instruction is not triggered, and the cloud management system triggers the default option of the forwarding configuration. For example, the cloud service purchase interface is set with performance options for cloud computing devices, but no forwarding configuration options for cloud computing devices are set. However, the cloud management system configures a default forwarding configuration strategy for each performance option. After the user selects a certain performance option, the cloud management system automatically selects the default forwarding configuration corresponding to the performance option for the user. When the user submits the interface, the purchase request will carry the configuration instruction indicating the default forwarding configuration.
[0012] In another implementation of the configuration instruction, the purchase request and the configuration instruction are sent separately. For example, the user may first trigger a purchase request to purchase a cloud computing device for implementing a cloud service. Afterwards, when the user determines that the forwarding strategy of the cloud computing device needs to be configured on demand, the configuration instruction is triggered. For example, before the forwarding device receives the configuration instruction, the method further includes: the cloud management system receives the configuration instruction sent by the user, the configuration instruction indicating the forwarding attribute of the purchased cloud computing device; the cloud management system sends the configuration instruction to the forwarding device.
[0013] In this implementation, the forwarding strategy for configuring the cloud computing device can also be provided as a cloud service. That is, the purchase request is used to purchase the business cloud service, and the configuration instruction is used to purchase the configuration cloud service. When the configuration instruction instructs to configure the forwarding strategy of the cloud computing device of the business cloud service, it is necessary to bind the configuration cloud service purchased by the configuration instruction with the business cloud service purchased by the purchase request.
[0014] By providing the function of configuring forwarding attributes, users can configure the forwarding attributes of their cloud computing devices according to their needs, thereby improving the flexibility of providing cloud services to users.
[0015] Optionally, when a user needs to modify the forwarding attribute of a cloud computing device, the user can send a modification instruction to the cloud management system through the client used by the user to instruct the modification of the forwarding attribute of the cloud computing device. The method further includes: the cloud management system receives the modification instruction sent by the user, the modification instruction instructs the modification of the forwarding attribute of the cloud computing device; the cloud management system sends the modification instruction to the forwarding device; the forwarding device adjusts the strategy for forwarding the message of the cloud computing device based on the forwarding attribute indicated by the modification instruction.
[0016] Optionally, before the forwarding device adjusts the policy for forwarding messages of the cloud computing device based on the modified forwarding attribute, the service of the cloud computing device can be stopped first, and then the policy for forwarding messages of the cloud computing device can be adjusted to avoid the process of adjusting the forwarding policy affecting the service of the cloud computing device. There are multiple triggering methods for stopping the service of the cloud computing device, and the embodiments of the present application take the following two implementation methods as examples to illustrate them.
[0017] In one implementation, the cloud computing device spontaneously stops the service based on the modification instruction. The implementation process includes: after receiving the modification instruction, the cloud management system can send the modification instruction to the cloud computing device, and the cloud computing device stops the service of the cloud computing device based on the modification instruction.
[0018] In another implementation, the user sends a stop instruction to the cloud management system, and the cloud computing device stops the service based on the stop instruction. The implementation process includes: the cloud management system receives the stop instruction sent by the user, sends the stop instruction to the cloud computing device, and the cloud computing device stops the service of the cloud computing device based on the stop instruction. The stop instruction indicates to stop the service of the cloud computing device so as to modify the forwarding attribute of the cloud computing device.
[0019] In a second aspect, the present application provides a data forwarding system based on cloud services. The system is applied to a cloud platform. The system includes a first cloud system. The first cloud system includes a cloud computing device and a forwarding device. The first cloud system is connected to an external network system via an external network gateway. The forwarding device is used to obtain a target message sent by the cloud computing device to the external network system; the forwarding device is also used to obtain a forwarding attribute of the cloud computing device; when the forwarding attribute of the cloud computing device is a first attribute, the forwarding device is used to use the external network gateway as the next hop of the target message and forward the target message; when the forwarding attribute of the cloud computing device is a second attribute, the forwarding device is used to forward the target message to the external network gateway based on the routing relationship of the forwarding device.
[0020] Optionally, the forwarding device is further configured to receive a configuration instruction indicating a forwarding attribute of the cloud computing device. The forwarding device is further configured to configure a policy for forwarding messages of the cloud computing device based on the configuration instruction.
[0021] Optionally, the system further includes a cloud management system. The cloud management system is used to receive a purchase request sent by a user, the purchase request indicating the purchase of a cloud computing device and carrying a configuration instruction; configure the cloud computing device based on the purchase request, and send the configuration instruction to the forwarding device.
[0022] Optionally, the cloud management system is further used to receive a configuration instruction sent by a user, where the configuration instruction indicates a forwarding property of a purchased cloud computing device, and send the configuration instruction to the forwarding device.
[0023] Optionally, the cloud management system is further configured to receive a modification instruction sent by a user, the modification instruction instructing to modify the forwarding attribute of the cloud computing device, and send the modification instruction to the forwarding device. The forwarding device is further configured to adjust the strategy for forwarding messages of the cloud computing device based on the forwarding attribute indicated by the modification instruction.
[0024] Optionally, the cloud management system is further used to send a modification instruction to the cloud computing device, and stop the service of the cloud computing device based on the modification instruction.
[0025] Optionally, the cloud management system is further used to receive a stop instruction sent by a user, where the stop instruction instructs to stop the service of the cloud computing device, so as to modify the forwarding attribute of the cloud computing device and send a stop instruction to the cloud computing device.
[0026] The cloud computing device is further configured to stop the service of the cloud computing device based on the stop instruction.
[0027] In a third aspect, the present application provides a computing device including a memory and a processor, wherein the memory stores program instructions, and the processor runs the program instructions to execute the method provided in the first aspect of the present application and any possible implementation thereof.
[0028] In a fourth aspect, the present application provides a computing device cluster, including multiple computing devices, the multiple computing devices including multiple processors and multiple memories, the multiple memories storing program instructions, and the multiple processors running the program instructions, so that the computing device cluster executes the method provided in the first aspect of the present application and any possible implementation thereof.
[0029] In a fifth aspect, the present application provides a computer-readable storage medium, which is a non-volatile computer-readable storage medium, and the computer-readable storage medium includes program instructions. When the program instructions are executed on a computing device, the computing device executes the method provided in the first aspect of the present application and any possible implementation thereof.
[0030] In a sixth aspect, the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method provided in the first aspect of the present application and any possible implementation thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is a schematic diagram of an application scenario of a data forwarding method based on cloud services provided in an embodiment of the present application;
[0032] Figure 2 This is a schematic diagram of an application scenario of another cloud service-based data forwarding method provided in an embodiment of the present application;
[0033] Figure 3 is a structural diagram of a first cloud system provided in an embodiment of the present application;
[0034] Figure 4 This is a flow chart of a data forwarding method based on cloud services provided in an embodiment of the present application;
[0035] Figure 5 is a schematic diagram of a cloud service purchase interface provided in an embodiment of the present application;
[0036] Figure 6 is a schematic diagram of another cloud service purchase interface provided in an embodiment of the present application;
[0037] Figure 7 This is a schematic diagram of a message forwarding process of a first cloud system provided in an embodiment of the present application;
[0038] Figure 8 It is a schematic diagram of an interface of a cloud management system provided in an embodiment of the present application;
[0039] Fig. 9 It is a structural diagram of a data forwarding system based on cloud services provided in an embodiment of the present application;
[0040] Fig.10 It is a structural diagram of another cloud service-based data forwarding system provided in an embodiment of the present application;
[0041] Fig.11 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;
[0042] Fig.12 It is a structural diagram of a computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0044] To facilitate understanding, the technology and background involved in the embodiments of the present application are first explained below.
[0045] Network address translation (NAT) technology refers to the technology of performing address translation on at least one of the destination IP address and source IP address of a message to be sent by replacing the address information in the IP message header. NAT technology may include: destination network address translation (DNAT) technology, source network address translation (SNAT) technology, and source / destination network address translation (Full Network Address Translation, FullNAT). DNAT refers to address translation of the destination IP address of a message. SNAT refers to address translation of the source IP address of a message. FullNAT refers to address translation of both the destination IP address and the source IP address of a message.
[0046] Elastic Internet Protocol (EIP) address refers to the IP address used by computer devices in a private network to access the public network.
[0047] A virtual switch (also called a virtual network switch, virtual switch, vSwitch) runs on a virtualization platform and provides layer 2 network access and some layer 3 network functions for virtual machines (VMs) through software. The vSwitch connects to the external network through the physical network card on the physical host as an uplink. In one implementation, the virtual switch used in this application can be an open virtual machine switch (open vSwitch).
[0048] Virtual machine (VM): refers to a complete computer system with complete hardware system functions and running in a completely isolated environment, which is simulated by virtualization technology. Some instruction subsets of the virtual machine can be processed in the host machine, and other instructions can be executed in a simulated manner. Users can purchase cloud services by renting virtual machines. As a possible implementation of a virtual machine, the virtual machine in the embodiment of the present application can be an elastic cloud server (elastic compute service, ECS).
[0049] Elastic Cloud Server is a cloud server that can be obtained at any time and can be elastically scaled. ECS can eliminate the need for the initial preparation of purchasing IT hardware and use the server as conveniently and efficiently as using public resources such as water, electricity, and natural gas, achieving ready-to-use and elastic scaling of computing resources. Elastic scaling means that server resources such as CPU, memory, and bandwidth can be configured according to business needs.
[0050] Bare metal server (BMS) is a computing service that combines the performance of elastic cloud servers and physical machines, and is used to provide users with exclusive physical servers on the cloud. Bare metal servers have the characteristic of exclusive resources. Therefore, scenarios with high requirements for security isolation, such as banking, finance, securities and other industries, as well as users with extreme performance requirements, will prefer bare metal servers. At present, bare metal servers provide excellent computing performance and data security guarantees for core databases, key application systems, high-performance computing, big data and other businesses.
[0051] A gateway is also called an internetwork connector or a protocol converter. A gateway implements network interconnection above the network layer. It is a relatively complex network interconnection device and is usually used for interconnecting two networks with different high-level protocols. A gateway can be used for both wide area network interconnection and local area network interconnection. In addition, since a gateway is used between two systems with different communication protocols, data formats or languages, or even completely different architectures, the gateway is also used to perform the important task of conversion between the two systems. It should be noted that the gateways involved in the embodiments of the present application may be deployed using a virtual machine or a physical server, and the embodiments of the present application do not specifically limit them.
[0052] The embodiment of the present application provides a data forwarding method based on cloud services. The method is applied to a cloud platform. The cloud platform includes a first cloud system. The first cloud system includes a cloud computing device and a forwarding device. The first cloud system is connected to an external network system via an external network gateway. The method includes: the forwarding device obtains a target message sent by the cloud computing device to the external network system, and obtains a forwarding attribute of the cloud computing device. When the forwarding attribute of the cloud computing device is a first attribute, the forwarding device uses the external network gateway as the next hop of the target message and forwards the target message. When the forwarding attribute of the cloud computing device is a second attribute, the forwarding device forwards the target message to the external network gateway based on the routing relationship of the forwarding device.
[0053] In this way, the forwarding device can adopt different forwarding strategies to forward the target messages of the cloud computing device according to the different forwarding attributes of the cloud computing device, provide differentiated forwarding capabilities, improve the flexibility of message forwarding, and help meet the differentiated requirements of users for cloud services in different scenarios.
[0054] This article provides a detailed introduction to the technical solution of the present application from multiple perspectives, including implementation scenarios, system composition, method flow, and hardware devices.
[0055] The following is an example of an application scenario of the embodiment of the present application.
[0056] Figure 1 Schematic diagram of the implementation environment of a data forwarding method based on cloud services provided in an embodiment of the present application. Figure 1 As shown, the implementation environment includes: a cloud platform 1 and a client 2. A communication connection can be established between the cloud platform 1 and the client 2 through a network. Optionally, the network can be a local area network, the Internet, or other networks, which is not limited in the embodiments of the present application. Users (also referred to as tenants or cloud tenants) can interact with the cloud platform 1 through the client 2. For example, a user can send instructions and service requests and other information to the cloud platform 1 through the client 2. The cloud platform 1 is used to provide corresponding cloud services to users based on the information sent by the client 2 to the cloud platform 1. The cloud service can be provided as an independent cloud service or as an additional service to other cloud services, which is not specifically limited in the embodiments of the present application.
[0057] The client 2 can be a computer, a personal computer, a laptop computer, a mobile phone, a smart phone, a tablet computer, a cloud host, a portable mobile terminal, a multimedia player, an e-book reader, a wearable device, a smart home appliance, an artificial intelligence device, a smart wearable device, a smart vehicle-mounted device or an Internet of Things device, etc.
[0058] In the embodiment of the present application, the cloud platform 1 can be a cloud platform 1 of a central cloud, a cloud platform 1 of an edge cloud, or a cloud platform 1 including a central cloud and an edge cloud, and the embodiment of the present application does not specifically limit it. Moreover, when the cloud platform 1 is a cloud platform 1 including a central cloud and an edge cloud, the data forwarding method based on cloud services provided in the embodiment of the present application can be partially executed by the cloud platform 1 deployed in the edge cloud and partially executed by the cloud platform 1 deployed in the central cloud.
[0059] A large number of basic resources owned by the cloud service provider are deployed in the cloud platform 1, such as computing resources, storage resources, and network resources. For example, computing resources can be computing devices (such as servers, etc.) that can provide computing capabilities. The cloud platform 1 can use the basic resources deployed in the cloud platform 1 to deploy a cloud system to provide corresponding cloud services to users using the cloud system.
[0060] The cloud platform 1 includes: one or more cloud systems. For example, Figure 1 As shown, the cloud platform 1 includes a first cloud system 11 and a second cloud system 12. Each cloud system can establish a communication connection between each other, and each cloud system can also establish a communication connection with a network system outside the cloud platform 1. For any cloud system, other cloud systems and network systems outside the cloud platform 1 can be referred to as external network systems. Any cloud system is connected to the external network system through an external network gateway.
[0061] Optional, such as Figure 2 As shown, the cloud platform 1 may also include: a cloud management system 13. The cloud management system 13 is used to manage the resources in the cloud platform 1. In one implementation, the cloud management system 13 is used to interact with the user and manage the resources in the cloud platform 1 based on the user's needs. For example, the cloud management system 13 is used to receive a user's cloud service purchase request (also called a purchase request), create a cloud computing device based on the cloud service purchase request, and use the cloud computing device to provide the user with corresponding cloud services. For another example, the cloud management system 13 is used to receive a configuration instruction provided by the user, and adjust the configuration of the cloud computing device indicated by the configuration instruction based on the configuration instruction.
[0062] In one implementation, Figure 2 As shown, the cloud platform 1 can be divided into an operation and maintenance management area and a cloud service area according to its functions. At this time, the cloud management system 13 can be deployed in the operation and maintenance management area, and the cloud system can be deployed in the cloud service area. Among them, the resources in the operation and maintenance management area are used to manage the resources in the cloud service area. For example, the resources in the operation and maintenance management area are used to create a cloud system based on the resources in the cloud service area. The resources in the cloud service area are used to provide cloud services to users. It should be noted that the cloud platform 1 can also include other functional areas. The above description that the cloud platform 1 includes an operation and maintenance management area and a cloud service area is only an example and is not used to limit the functions of the cloud platform 1.
[0063] Figure 3 is a schematic diagram of a first cloud system 11 provided in an embodiment of the present application. Figure 3 As shown, the first cloud system 11 includes: a cloud computing device 111 and a forwarding device 112. A communication connection can be established between the cloud computing device 111 and the forwarding device 112. The cloud computing device 111 and the forwarding device 112 can both send messages to the external network gateway directly or indirectly, so as to send the message to the external network system through the external network gateway. The cloud computing device 111 can be implemented by one or more devices such as a physical machine, a bare metal server, a cloud server, a virtual machine or a container. The forwarding device 112 can be a switch or a virtual switch, etc. The first cloud system 11 can be a private cloud system. The external network system can be a network system of the type of a public cloud system, a private cloud system or a data center.
[0064] In the first cloud system 11, the cloud computing device 111 is used to implement the user's business, that is, the cloud computing device 111 is used to provide cloud services to the user. For example, the cloud computing device 111 is an elastic cloud server created by the cloud platform 1 for the user, and the elastic cloud server is used to provide elastic cloud services to the user. In the process of implementing the user's business, the cloud computing device 111 may need to communicate with the external network system outside the first cloud system 11. At this time, the target message sent by the cloud computing device 111 to the external network system can be sent to the external network system through the forwarding device 112 and / or the external network gateway. In an embodiment of the present application, the cloud computing device 111 has the ability to be configured with different forwarding attributes. The forwarding attribute of the cloud computing device 111 is used to indicate the way to forward the target message of the cloud computing device 111. In this way, based on different considerations, the user can configure different forwarding attributes for the cloud computing device 111, so as to forward the message of the cloud computing device 111 in different forwarding modes.
[0065] In one implementation, the data forwarding method based on cloud services provided in the embodiment of the present application can be implemented by running an executable program on a computing device in the cloud platform 1. For example, the function of the forwarding device 112 in the data forwarding method based on cloud services can be presented in the form of an application installation package. After the computing device in the cloud platform 1 installs the application installation package, the relevant functions of the forwarding device 112 can be implemented by running the executable program therein.
[0066] It should be understood that the above content is an exemplary description of the application scenario of the data forwarding method based on cloud services provided in the embodiment of the present application, and does not constitute a limitation on the application scenario of the data forwarding method based on cloud services. It is known to those of ordinary skill in the art that as business needs change, its application scenario can be adjusted according to application needs, and the embodiment of the present application does not list them one by one. As an example, based on the idea of the data forwarding method based on cloud services provided in the embodiment of the present application, more refined source address routing can be performed on the traffic of cloud services through more refined control, so as to achieve customized diversion of the traffic of cloud services. In addition, the path of the traffic of cloud services can be designed through the capability of service chain, so as to achieve more customized capabilities and provide programmable network services.
[0067] The following is an explanation of the implementation process of the cloud service-based data forwarding method provided in the embodiment of the present application. The method is applied to a cloud platform. The cloud platform includes a first cloud system and a cloud management system. The first cloud system includes a cloud computing device and a forwarding device. Figure 4 As shown, the method comprises the following steps:
[0068] Step 401: The cloud management system receives a purchase request and a configuration instruction sent by a user, where the purchase request indicates the purchase of a cloud computing device, and the configuration instruction indicates a forwarding attribute of the cloud computing device.
[0069] When a user needs to use cloud services, he can send a purchase request to the cloud management system through the client he uses to request the purchase of cloud services. The process of the cloud platform providing cloud services to users based on the purchase request is actually the process of the cloud platform creating a cloud computing device based on the purchase request and using the cloud computing device to provide cloud services to users. Therefore, the purchase request is also called a request to purchase a cloud computing device.
[0070] There are many ways for a user to provide configuration instructions to a cloud management system. The present application embodiment uses the following two ways as examples for illustration.
[0071] In one implementation, the purchase request carries a configuration instruction, which has at least the following two implementations:
[0072] In the first implementation, when the user triggers a purchase request, the configuration instruction is also triggered. Figure 5As shown, the cloud service purchase interface is not only provided with performance options for cloud computing devices, but also with forwarding configuration options for cloud computing devices. The performance options are used for users to select parameters such as the number of cores, memory, and bandwidth of the virtual processor (vCPU) used by the cloud computing device. The forwarding configuration options are used for users to select the forwarding attributes of the cloud computing device, such as selecting the forwarding attribute of the cloud computing device as policy-based or routing-based. The performance option is a required option, and the forwarding configuration option is an optional option. When the user submits the interface, if the content in the forwarding configuration option is selected, the purchase request will carry configuration instructions. If the content in the forwarding configuration option is not selected, the purchase request will not carry configuration instructions. It should be noted that the forwarding configuration option here is an optional option for only a schematic illustration. The forwarding configuration option can also be a required option, and its setting method can be adjusted according to application requirements.
[0073] In the second implementation, when the user triggers the purchase request, the configuration instruction is not triggered, and the cloud management system triggers the default option of the forwarding configuration. Figure 6 As shown, the cloud service purchase interface is set with performance options for cloud computing devices, but no forwarding configuration options for cloud computing devices are set. However, the cloud management system configures a default forwarding configuration strategy for each performance option. After the user selects a performance option, the cloud management system automatically selects the default forwarding configuration corresponding to the performance option for the user. When the user submits the interface, the purchase request will carry a configuration instruction indicating the default forwarding configuration.
[0074] In another implementation, the purchase request and the configuration instruction are sent separately. For example, the user can first trigger a purchase request to purchase a cloud computing device for implementing a cloud service. Afterwards, when the user determines that the forwarding strategy of the cloud computing device needs to be configured on demand, the configuration instruction is triggered. For example, when the user needs to use ECS, the user can trigger a purchase request to request to purchase the cloud service provided by ECS. In the process of using the cloud service provided by ECS, the user can also trigger a configuration instruction to instruct the configuration of the forwarding strategy of ECS.
[0075] In this implementation, the forwarding policy for configuring the cloud computing device can also be provided as a cloud service. That is, the purchase request is used to purchase the business cloud service, and the configuration instruction is used to purchase the configuration cloud service. When the configuration instruction indicates to configure the forwarding policy of the cloud computing device of the business cloud service, it is necessary to bind the configuration cloud service purchased by the configuration instruction to the business cloud service purchased by the purchase request. For example, when a user needs to use ECS, he can trigger a purchase request to request to purchase the business cloud service provided by ECS. In the process of using the business cloud service provided by ECS, the user can trigger the configuration instruction to purchase the configuration cloud service for configuring the forwarding policy, and the user can bind the configuration cloud service to the business cloud service provided by ECS to implement the configuration of the forwarding policy of ECS.
[0076] In addition, when the first cloud system is a virtual private cloud, the essence of the configuration instruction is to bind the cloud computing device to the Internet Protocol (IP) address of the public network, and set the forwarding method of the cloud computing device's message to the external network gateway. For example, when the first cloud system uses an elastic public network, the configuration instruction is to bind the cloud computing device to the elastic public network Internet Protocol (EIP) address, and set whether the cloud computing device uses the external network gateway as the next hop of the forwarding device used by the cloud computing device, or whether the cloud computing device's message is transmitted to the external network gateway according to the routing relationship of the forwarding device. Among them, when the cloud computing device is set to use the external network gateway as the next hop of the forwarding device used by the cloud computing device, the bound EIP of the cloud computing device can be called a policy-type EIP. When it is set to transmit the cloud computing device's message to the external network gateway according to the routing relationship of the forwarding device, the bound EIP of the cloud computing device can be called a routing-type EIP.
[0077] By providing the function of configuring forwarding attributes, users can configure the forwarding attributes of their cloud computing devices according to their needs, thereby improving the flexibility of providing cloud services to users.
[0078] Step 402: The cloud management system configures the cloud computing device based on the purchase request and sends a configuration instruction to the forwarding device.
[0079] After receiving the purchase request, the cloud management system can use the basic resources of the cloud platform to configure the cloud computing device for the user and instruct the cloud computing device to implement the user's business. Afterwards, the cloud management system can send the configuration instruction to the forwarding device to instruct the forwarding device to set a policy for forwarding messages of the cloud computing device based on the configuration instruction. In one implementation, the cloud management system can send the configuration instruction to the forwarding plane of the first cloud system so that the forwarding plane is configured based on the configuration instruction.
[0080] Step 403: The forwarding device configures a policy for forwarding messages from the cloud computing device based on the configuration instruction.
[0081] After receiving the configuration instruction, the forwarding device can configure the policy for forwarding the message of the cloud computing device according to the instruction of the configuration instruction. For example, when the configuration instruction indicates that the EIP bound to the cloud computing device is a policy-type EIP, the forwarding device can use the external network gateway as the next hop for forwarding the message of the cloud computing device. When the configuration instruction indicates that the EIP bound to the cloud computing device is a routing-type EIP, the forwarding device can be set to forward the message of the cloud computing device according to the routing relationship of the forwarding device.
[0082] Step 404: The forwarding device obtains the target message sent by the cloud computing device to the external network system.
[0083] When a cloud computing device implements a user's business and needs to interact with an external network system, it can send a target message to the external network system. The source IP address of the target message is the IP address of the cloud computing device, and the destination IP address is the IP address of the computing device in the external network system. After the cloud computing device sends the target message, it will be transmitted to the forwarding device, so that the target message can be sent to the external network system through the forwarding device.
[0084] Step 405: The forwarding device obtains the forwarding attribute of the cloud computing device.
[0085] After the forwarding device obtains the target message of the cloud computing device, in order to determine the method for forwarding the target message, it is necessary to first obtain the forwarding attribute of the cloud computing device. In one implementation, the cloud computing device can send the forwarding attribute of the cloud computing device to the forwarding device. For example, every time the forwarding attribute of the cloud computing device changes, the computing device can send the forwarding attribute of the cloud computing device to the forwarding device, and the forwarding device can record the forwarding attribute of the cloud computing device in the forwarding device. When the forwarding device receives the target message of the cloud computing device, it can query the forwarding attribute of the cloud computing device in the record information of the forwarding device according to the target message. For another example, the target message can carry indication information, and the indication information is used to indicate the forwarding attribute of the cloud computing device. After the forwarding device receives the target message, it can obtain the forwarding attribute of the cloud computing device from the target message.
[0086] Step 406: When the forwarding attribute of the cloud computing device is the first attribute, the forwarding device takes the external network gateway as the next hop of the target message and forwards the target message. When the forwarding attribute of the cloud computing device is the second attribute, the forwarding device forwards the target message to the external network gateway based on the routing relationship of the forwarding device.
[0087] A cloud computing device may have one or more candidate forwarding attributes, each of which corresponds to a forwarding strategy. After obtaining the forwarding attribute of the cloud computing device, the forwarding device can obtain the forwarding strategy corresponding to the forwarding attribute, and forward the target message based on the forwarding strategy. For example, the candidate forwarding attributes of the cloud computing device include a first attribute and a second attribute. The forwarding strategy corresponding to the first attribute is that the forwarding device uses the external network gateway as the next hop of the target message and forwards the target message. The forwarding strategy corresponding to the second attribute is that the forwarding device forwards the target message to the external network gateway based on the routing relationship of the forwarding device. When the forwarding device obtains that the forwarding attribute of the cloud computing device is the first attribute, the forwarding device uses the external network gateway as the next hop of the target message and forwards the target message. When the forwarding device obtains that the forwarding attribute of the cloud computing device is the second attribute, the forwarding device forwards the target message to the external network gateway based on the routing relationship of the forwarding device. The following takes the forwarding attribute indicating that the EIP bound to the cloud computing device is a policy-type EIP and the forwarding attribute indicating that the EIP bound to the cloud computing device is a routing-type EIP as an example to explain the forwarding strategies corresponding to these two forwarding attributes.
[0088] Assume that the first cloud system includes a first subnet and a second subnet. A first forwarding device is deployed in the first subnet. A second forwarding device is deployed in the second subnet. The default route of the first subnet points to a third cloud computing device. The default route of the second subnet points to an external network gateway. The first cloud computing device and the second cloud computing device are configured in the first subnet. The third cloud computing device is configured in the second subnet. The private network IP address of the first cloud computing device is PIP01. The EIP bound to the first cloud computing device is a policy-type EIP, and its external network IP address is EIP01. The private network IP address of the second cloud computing device is PIP02. The EIP bound to the second cloud computing device is a routing-type EIP, and its external network IP address is EIP02. The private network IP address of the third cloud computing device is PIP03. Figure 7 It is a schematic diagram of a message forwarding process of a first cloud system provided in an embodiment of the present application.
[0089] like Figure 7As shown, when the first cloud computing device needs to send a first message to the external network system, the first message is first sent to the first forwarding device. After receiving the first message, the first forwarding device obtains the forwarding attribute of the first cloud computing device, indicating that the EIP bound to the first cloud computing device is a policy-based EIP. At this time, the first forwarding device uses the external network gateway as the next hop of the first message and forwards the first message, so that the first message can be directly forwarded to the external network gateway. After the external network gateway receives the first message, since the source IP address of the first message is PIP01, the external network gateway can perform address translation (NAT) on the first message, convert the source IP address of the first message into the external network IP address EIP01 corresponding to PIP01, and then forward the first message after the address translation.
[0090] like Figure 7 As shown, when the second cloud computing device needs to send a second message to the external network system, the second message is first sent to the first forwarding device. After the first forwarding device receives the second message, it obtains the forwarding attribute of the second cloud computing device, indicating that the EIP bound to the second cloud computing device is a routing EIP. At this time, the first forwarding device forwards the second message to the external network gateway based on the routing relationship of the forwarding device. Since the default route of the first subnet points to the third cloud computing device, the first forwarding device provides the second forwarding device to forward the second message to the third cloud computing device. After the third cloud computing device receives the second message, it forwards the second message to the second forwarding device. After the second forwarding device receives the second message, it obtains the forwarding attribute of the second cloud computing device, indicating that the EIP bound to the second cloud computing device is a routing EIP. At this time, the second forwarding device forwards the second message to the external network gateway based on the routing relationship of the forwarding device. Since the default route of the second subnet points to the external network gateway, the second forwarding device forwards the second message to the external network gateway. After the external network gateway receives the second message, since the source IP address of the second message is PIP02, the external network gateway can perform address translation on the second message, convert the source IP address of the second message into the external network IP address EIP02 corresponding to PIP02, and then forward the second message after address translation.
[0091] Optionally, the third cloud computing device may also be installed with an application program for preprocessing messages, so as to preprocess messages sent by the third cloud computing device. For example, the third cloud computing device may be installed with a firewall application program, and the third cloud computing device may use the firewall application program to filter messages before forwarding the messages, so as to ensure the security of the messages.
[0092] As can be seen from the above, when the EIP bound to the cloud computing device is a policy-based EIP, the messages sent by the cloud computing device can be directly transmitted to the external network system using this EIP without being affected by its default route. This allows critical business messages to be transmitted using an independent EIP without having to compete with ordinary business messages for forwarding opportunities, thus ensuring the independence and security of message transmission to the greatest extent.
[0093] Step 407: The cloud management system receives a modification instruction sent by the user, where the modification instruction instructs to modify the forwarding attribute of the cloud computing device.
[0094] When a user needs to modify the forwarding attribute of a cloud computing device, the user can send a modification instruction to the cloud management system through the client used by the user to instruct the modification of the forwarding attribute of the cloud computing device.
[0095] Step 408: The cloud management system sends a modification instruction to the forwarding device.
[0096] The cloud management system may send a modification instruction to the forwarding device to instruct the forwarding device to adjust the policy for forwarding messages of the cloud computing device based on the modification instruction. In one implementation, the cloud management system may send a modification instruction to the forwarding plane of the first cloud system so that the forwarding plane is configured based on the modification instruction.
[0097] Step 409: The forwarding device adjusts the strategy for forwarding the message of the cloud computing device based on the forwarding attribute indicated by the modification instruction.
[0098] Adjusting the forwarding strategy for forwarding messages of cloud computing devices is a process of revalidating the forwarding configuration for cloud computing devices based on the modified forwarding attributes. After the forwarding configuration is validated, the messages of cloud computing devices can be forwarded using the revalidated forwarding configuration for the modified forwarding attributes of the cloud computing devices. By providing the function of modifying the forwarding attributes, users can adjust the forwarding attributes of their cloud computing devices according to their needs, thereby improving the flexibility of providing cloud services to users.
[0099] Optionally, before the forwarding device adjusts the policy for forwarding messages of the cloud computing device based on the modified forwarding attribute, the service of the cloud computing device can be stopped first, and then the policy for forwarding messages of the cloud computing device can be adjusted to avoid the process of adjusting the forwarding policy affecting the service of the cloud computing device. There are multiple triggering methods for stopping the service of the cloud computing device, and the embodiments of the present application take the following two implementation methods as examples to illustrate them.
[0100] In one implementation, the cloud computing device spontaneously stops the service based on the modification instruction. The implementation process includes: after receiving the modification instruction, the cloud management system can send the modification instruction to the cloud computing device, and the cloud computing device stops the service of the cloud computing device based on the modification instruction.
[0101] In another implementation, the user sends a stop instruction to the cloud management system, and the cloud computing device stops the service based on the stop instruction. The implementation process includes: the cloud management system receives the stop instruction sent by the user, sends the stop instruction to the cloud computing device, and the cloud computing device stops the service of the cloud computing device based on the stop instruction. The stop instruction indicates to stop the service of the cloud computing device to modify the forwarding attribute of the cloud computing device. In this implementation, the stop instruction and the modification instruction can be carried in one instruction and sent, or the two can be sent separately, and the embodiments of the present application do not specifically limit it.
[0102] Step 410: The forwarding device forwards the message of the cloud computing device using the adjusted forwarding strategy based on the modified forwarding attribute of the cloud computing device.
[0103] After modifying the forwarding attributes of the cloud computing device, you can restart the services of the cloud computing device. Accordingly, the forwarding device can forward the messages of the cloud computing device using the adjusted forwarding strategy based on the modified forwarding attributes of the cloud computing device. Please refer to the description in the previous steps for the implementation process of the forwarding, which will not be repeated here.
[0104] In the embodiment of the present application, the cloud platform implements the process of the cloud service-based data forwarding method provided in the embodiment of the present application, which can be implemented through the collaboration of multiple functional modules. Figure 8 As shown, the cloud management system can provide an operation interface (console) component and a service control component, and the cloud computing server is configured with an agent control plug-in (such as an agent), a forwarding device, and a cloud computing device. The operation interface component can provide an operation interface, on which the user can set the forwarding properties of the cloud computing device, such as setting the EIP bound to the cloud computing device to a policy-type EIP or a routing-type EIP. After the operation interface receives the user's setting operation, it can call the service control component, translate the user's setting operation into a configuration instruction, and forward the configuration instruction to the agent control plug-in. After receiving the configuration instruction, the agent control plug-in sends the configuration instruction to the forwarding device. After receiving the configuration command, the forwarding device configures a strategy for forwarding messages of the cloud computing device based on the configuration instruction.
[0105] As can be seen from the above, in the data forwarding method based on cloud services provided in the embodiment of the present application, the forwarding device obtains the target message sent by the cloud computing device to the external network system, and obtains the forwarding attribute of the cloud computing device. When the forwarding attribute of the cloud computing device is the first attribute, the forwarding device uses the external network gateway as the next hop of the target message and forwards the target message. When the forwarding attribute of the cloud computing device is the second attribute, the forwarding device forwards the target message to the external network gateway based on the routing relationship of the forwarding device. In this way, the forwarding device can adopt different forwarding strategies to forward the target message of the cloud computing device according to the different forwarding attributes of the cloud computing device, can provide differentiated forwarding capabilities, improve the flexibility of message forwarding, help meet the differentiated requirements of users for cloud services in different scenarios, and realize cloud services that better meet customer demands.
[0106] It should be noted that the order of steps in the cloud service-based data forwarding method provided in the embodiment of the present application can be appropriately adjusted, and the steps can be increased or decreased accordingly according to the situation. Any technician familiar with the technical field can easily think of a change within the technical scope disclosed in this application, which should be included in the protection scope of this application, so it will not be repeated.
[0107] The following is an example of a virtual device in an embodiment of the present application.
[0108] The above introduces the data forwarding method based on cloud service of the embodiment of the present application. Corresponding to the above method, the embodiment of the present application also provides a data forwarding system based on cloud service. Fig. 9 Schematic diagram of a data forwarding system based on cloud services provided by an embodiment of the present application. Fig. 9 The following multiple components are shown: Fig. 9 The cloud service-based data forwarding system shown can perform the above Figure 4 It should be understood that the system may include more additional components than those shown or omit some of the components shown, and the present application embodiment does not limit this. Optionally, the cloud service-based data forwarding system may be configured on a cloud platform. Fig. 9 As shown, the cloud service-based data forwarding system 90 may include: a first cloud system 11. The first cloud system 11 includes a cloud computing device 111 and a forwarding device 112. The first cloud system 11 is connected to the external network system via an external network gateway.
[0109] The forwarding device 112 is used to obtain the target message sent by the cloud computing device 111 to the external network system; the forwarding device 112 is also used to obtain the forwarding attribute of the cloud computing device 111; when the forwarding attribute of the cloud computing device 111 is the first attribute, the forwarding device 112 is used to use the external network gateway as the next hop of the target message and forward the target message; when the forwarding attribute of the cloud computing device 111 is the second attribute, the forwarding device 112 is used to forward the target message to the external network gateway based on the routing relationship of the forwarding device 112.
[0110] Optionally, the forwarding device 112 is further configured to receive a configuration instruction, where the configuration instruction indicates a forwarding attribute of the cloud computing device 111. The forwarding device 112 is further configured to configure a policy for forwarding messages of the cloud computing device 111 based on the configuration instruction.
[0111] Alternatively, if Fig.10 As shown, the system further includes a cloud management system 13. The cloud management system 13 is used to receive a purchase request sent by a user, the purchase request indicating the purchase of a cloud computing device 111, and the purchase request carries a configuration instruction; configure the cloud computing device 111 based on the purchase request, and send the configuration instruction to the forwarding device 112.
[0112] Optionally, the cloud management system 13 is further configured to receive a configuration instruction sent by a user, where the configuration instruction indicates a forwarding property of the purchased cloud computing device 111 , and send the configuration instruction to the forwarding device 112 .
[0113] Optionally, the cloud management system 13 is further configured to receive a modification instruction sent by a user, the modification instruction indicating modification of the forwarding attribute of the cloud computing device 111, and send the modification instruction to the forwarding device 112. The forwarding device 112 is further configured to adjust the strategy for forwarding the message of the cloud computing device 111 based on the forwarding attribute indicated by the modification instruction.
[0114] Optionally, the cloud management system 13 is further configured to send a modification instruction to the cloud computing device 111 , and stop the service of the cloud computing device 111 based on the modification instruction.
[0115] Optionally, the cloud management system 13 is further configured to receive a stop instruction sent by a user, where the stop instruction instructs to stop the service of the cloud computing device 111 , to modify the forwarding attribute of the cloud computing device 111 , and to send a stop instruction to the cloud computing device 111 .
[0116] The cloud computing device 111 is further configured to stop the service of the cloud computing device 111 based on the stop instruction.
[0117] As can be seen from the above, in the data forwarding system based on cloud services provided in the embodiment of the present application, the forwarding device obtains the target message sent by the cloud computing device to the external network system, and obtains the forwarding attribute of the cloud computing device. When the forwarding attribute of the cloud computing device is the first attribute, the forwarding device uses the external network gateway as the next hop of the target message and forwards the target message. When the forwarding attribute of the cloud computing device is the second attribute, the forwarding device forwards the target message to the external network gateway based on the routing relationship of the forwarding device. In this way, the forwarding device can adopt different forwarding strategies to forward the target message of the cloud computing device according to the different forwarding attributes of the cloud computing device, can provide differentiated forwarding capabilities, improve the flexibility of message forwarding, help meet the differentiated requirements of users for cloud services in different scenarios, and realize cloud services that better meet customer demands.
[0118] Among them, the first cloud system 11, the cloud management system 13, the cloud computing device 111 and the forwarding device 112 can all be implemented by software, or can be implemented by hardware. Exemplarily, the implementation of the first cloud system 11 is introduced below by taking the first cloud system 11 as an example. Similarly, the implementation of the cloud management system 13, the cloud computing device 111 and the forwarding device 112 can refer to the implementation of the first cloud system 11.
[0119] As an example of a software functional unit, the first cloud system 11 may include code running on a computing instance. Among them, the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Further, the above-mentioned computing instance may be one or more. For example, the first cloud system 11 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region (region) or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including a data center or multiple data centers with close geographical locations. Among them, usually a region may include multiple AZs.
[0120] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.
[0121] As an example of a hardware functional unit, the first cloud system 11 may include at least one computing device, such as a server, etc. Alternatively, the first cloud system 11 may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0122] The multiple computing devices included in the first cloud system 11 can be distributed in the same region or in different regions. The multiple computing devices included in the first cloud system 11 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the first cloud system 11 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.
[0123] It should be noted that, in other embodiments, any one of the first cloud system 11, the cloud management system 13, the cloud computing device 111, and the forwarding device 112 can be used to execute any step in the data forwarding method based on cloud services. The steps that the first cloud system 11, the cloud management system 13, the cloud computing device 111, and the forwarding device 112 are responsible for implementing can be specified as needed, and the first cloud system 11, the cloud management system 13, the cloud computing device 111, and the forwarding device 112 respectively implement different steps in the data forwarding method based on cloud services to achieve all the functions of the data forwarding device based on cloud services.
[0124] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of each component described above can refer to the corresponding content in the aforementioned method embodiment, and will not be repeated here.
[0125] The following is an illustration of the basic hardware structure involved in the embodiments of the present application.
[0126] The embodiment of the present application provides a computing device. The computing device is used to implement part or all of the functions of the cloud service-based data forwarding method provided in the embodiment of the present application. Fig.11Schematic diagram of a computing device provided in an embodiment of the present application. Fig.11 As shown, the computing device 1100 includes a processor 1101, a memory 1102, a communication interface 1103 and a bus 1104. The processor 1101, the memory 1102 and the communication interface 1103 are connected to each other through the bus 1104.
[0127] Processor 1101 may include a general-purpose processor and / or a dedicated hardware chip. A general-purpose processor may include: a central processing unit (CPU), a microprocessor or a graphics processing unit (GPU). The CPU is, for example, a single-core processor (single-CPU), or a multi-core processor (multi-CPU). A dedicated hardware chip is a hardware module for high-performance processing. A dedicated hardware chip includes at least one of a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or a network processor (NP). Processor 1101 may also be an integrated circuit chip having signal processing capabilities. In the implementation process, some or all of the functions of the cloud service-based data forwarding method of the present application may be completed by hardware integrated logic circuits in processor 1101 or instructions in software form.
[0128] The memory 1102 is used to store computer programs, which include an operating system 1102a and executable codes (i.e., program instructions) 1102b. The memory 1102 is, for example, a read-only memory or other types of static storage devices that can store static information and instructions, or a random access memory or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory, a read-only optical disc or other optical disc storage, an optical disc storage (including a compressed optical disc, a laser disc, an optical disc, a digital versatile disc, a blue-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired executable code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. For example, the memory 1102 is used to store an outbound port queue, etc. The memory 1102 is, for example, independent and connected to the processor 1101 via a bus 1104. Or the memory 1102 and the processor 1101 are integrated together. The memory 1102 can store executable code. When the executable code stored in the memory 1102 is executed by the processor 1101, the processor 1101 is used to perform some or all functions of the cloud service-based data forwarding method provided in the embodiment of the present application. For the implementation of the process executed by the processor 1101, please refer to the relevant description in the aforementioned embodiment. The memory 1102 may also include software modules and data required for other running processes such as the operating system.
[0129] The communication interface 1103 uses a transceiver module such as, but not limited to, a transceiver to achieve communication with other devices or communication networks. For example, the communication interface 1103 can be any one or any combination of the following devices: a network interface (such as an Ethernet interface), a wireless network card, and other devices with network access functions.
[0130] The bus 1104 is any type of communication bus for interconnecting the internal devices of the computing device (e.g., the memory 1102, the processor 1101, and the communication interface 1103). For example, a system bus. The embodiment of the present application takes the interconnection of the above-mentioned devices inside the computing device through the bus 1104 as an example. Optionally, the above-mentioned devices inside the computing device 1100 can also be connected to each other in communication with each other using other connection methods other than the bus 1104. For example, the above-mentioned devices inside the computing device 1100 are interconnected through an internal logical interface.
[0131] It should be noted that the above-mentioned multiple devices can be respectively arranged on independent chips, or at least partially or completely arranged on the same chip. Whether to independently arrange each device on different chips or to integrate and arrange it on one or more chips often depends on the needs of product design. The embodiments of the present application do not limit the specific implementation form of the above-mentioned devices. The descriptions of the processes corresponding to the above-mentioned figures have different focuses. For the parts not described in detail in a certain process, please refer to the relevant descriptions of other processes.
[0132] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product providing a program development platform includes one or more computer instructions, and when these computer program instructions are loaded and executed on a computing device, all or part of the functions of the cloud service-based data forwarding method provided in the embodiments of the present application are implemented.
[0133] Furthermore, computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium stores computer program instructions that provide a program development platform.
[0134] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
[0135] Optionally, the structure of at least one computing device included in the computing device cluster can be found in Fig.11 The computing device 1100 is shown. The memory 1102 in one or more computing devices 1100 in the computing device cluster may store the same instructions for executing the data forwarding method based on cloud services.
[0136] In some possible implementations, the memory 1102 of one or more computing devices 1100 in the computing device cluster may also store partial instructions for executing the data forwarding method based on cloud services. In other words, the combination of one or more computing devices 1100 may jointly execute instructions for executing the data forwarding method based on cloud services.
[0137] It should be noted that the memory 1102 in different computing devices 1100 in the computing device cluster can store different instructions, which are respectively used to execute part of the functions of the data forwarding device based on cloud services. That is, the instructions stored in the memory 1102 in different computing devices 1100 can implement the functions of one or more components of the first cloud system 11, the cloud management system 13, the cloud computing device 111 and the forwarding device 112.
[0138] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Fig.12 A possible implementation is shown. Fig.12 As shown, two computing devices 1200A and 1200B are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, computing devices 1200A and 1200B include a bus 1202, a processor 1204, a memory 1206, and a communication interface 1208. The memory 1206 in the computing device 1200A stores instructions for executing the functions of the first cloud system 11. At the same time, the memory 1206 in the computing device 1200B stores instructions for executing the functions of the cloud management system 13.
[0139] It should be understood that Fig.12 The function of the computing device 1200A shown in the figure can also be completed by multiple computing devices 1200. Similarly, the function of the computing device 1200B can also be completed by multiple computing devices 1200. And the deployment mode of the module for implementing the data forwarding method based on cloud service in the computing device can also be adjusted according to the application requirements.
[0140] An embodiment of the present application also provides a computer-readable storage medium, which is a non-volatile computer-readable storage medium. The computer-readable storage medium includes program instructions. When the program instructions are executed on a computing device, the computing device implements a cloud service-based data forwarding method as provided in an embodiment of the present application.
[0141] The embodiment of the present application also provides a computer program product including instructions. When the computer program product is executed on a computer, the computer implements the cloud service-based data forwarding method provided in the embodiment of the present application.
[0142] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0143] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the original data and executable code involved in this application are all obtained with full authorization.
[0144] In the embodiments of the present application, the terms "first", "second" and "third" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance. The term "at least one" means one or more, and the term "plurality" means two or more, unless otherwise expressly defined.
[0145] The term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0146] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the concept and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A data forwarding method based on cloud service, characterized in that: The method is applied to a cloud platform, the cloud platform includes a first cloud system, the first cloud system includes a cloud computing device and a forwarding device, the first cloud system is connected to an external network system via an external network gateway, and the method includes: The forwarding device obtains a target message sent by the cloud computing device to the external network system; The forwarding device obtains the forwarding attribute of the cloud computing device; When the forwarding attribute of the cloud computing device is the first attribute, the forwarding device uses the external network gateway as the next hop of the target message and forwards the target message; When the forwarding attribute of the cloud computing device is the second attribute, the forwarding device forwards the target message to the external network gateway based on the routing relationship of the forwarding device.
2. The method according to claim 1, characterized in that Before the forwarding device obtains the forwarding attribute of the cloud computing device, the method further includes: The forwarding device receives a configuration instruction, the configuration instruction indicating a forwarding attribute of the cloud computing device; The forwarding device configures a strategy for forwarding messages from the cloud computing device based on the configuration instruction.
3. The method according to claim 2, characterized in that The cloud platform further includes a cloud management system. Before the forwarding device receives the configuration instruction, the method further includes: The cloud management system receives a purchase request sent by a user, wherein the purchase request indicates to purchase the cloud computing device and carries the configuration instruction; The cloud management system configures the cloud computing device based on the purchase request and sends the configuration instruction to the forwarding device.
4. The method according to claim 2, characterized in that The cloud platform further includes a cloud management system. Before the forwarding device receives the configuration instruction, the method further includes: The cloud management system receives a configuration instruction sent by a user, wherein the configuration instruction indicates a forwarding attribute of a purchased cloud computing device; The cloud management system sends the configuration instruction to the forwarding device.
5. The method according to any one of claims 2 to 4, characterized in that: The method further comprises: The cloud management system receives a modification instruction sent by a user, wherein the modification instruction instructs to modify a forwarding attribute of the cloud computing device; The cloud management system sends the modification instruction to the forwarding device; The forwarding device adjusts a strategy for forwarding messages from the cloud computing device based on the forwarding attribute indicated by the modification instruction.
6. The method according to claim 5, characterized in that Before the forwarding device adjusts the strategy for forwarding the message of the cloud computing device based on the forwarding attribute indicated by the modification instruction, the method further includes: The cloud management system sends the modification instruction to the cloud computing device; The cloud computing device stops the service of the cloud computing device based on the modification instruction.
7. The method according to claim 5, characterized in that Before the forwarding device adjusts the strategy for forwarding the message of the cloud computing device based on the forwarding attribute indicated by the modification instruction, the method further includes: The cloud management system receives a stop instruction sent by the user, wherein the stop instruction instructs to stop the service of the cloud computing device so as to modify the forwarding attribute of the cloud computing device; The cloud management system sends the stop instruction to the cloud computing device; The cloud computing device stops the service of the cloud computing device based on the stop instruction.
8. A data forwarding system based on cloud services, characterized in that: The system is applied to a cloud platform, and the system includes a first cloud system, the first cloud system includes a cloud computing device and a forwarding device, and the first cloud system is connected to an external network system via an external network gateway; The forwarding device is used to obtain the target message sent by the cloud computing device to the external network system; The forwarding device is further used to obtain the forwarding attribute of the cloud computing device; When the forwarding attribute of the cloud computing device is the first attribute, the forwarding device is used to use the external network gateway as the next hop of the target message and forward the target message; When the forwarding attribute of the cloud computing device is the second attribute, the forwarding device is used to forward the target message to the external network gateway based on the routing relationship of the forwarding device.
9. The system according to claim 8, characterized in that The forwarding device is further configured to receive a configuration instruction, wherein the configuration instruction indicates a forwarding attribute of the cloud computing device; The forwarding device is further used to configure a strategy for forwarding messages from the cloud computing device based on the configuration instruction.
10. The system according to claim 9, characterized in that The system also includes a cloud management system; The cloud management system is used to receive a purchase request sent by a user, the purchase request instructing to purchase the cloud computing device, and the purchase request carries the configuration instruction; The cloud management system is also used to configure the cloud computing device based on the purchase request and send the configuration instruction to the forwarding device.
11. The system according to claim 9, characterized in that The system also includes a cloud management system; The cloud management system is also used to receive a configuration instruction sent by a user, wherein the configuration instruction indicates a forwarding attribute of a purchased cloud computing device; The cloud management system is further configured to send the configuration instruction to the forwarding device.
12. The system according to any one of claims 9 to 11, characterized in that: The cloud management system is further used to receive a modification instruction sent by a user, wherein the modification instruction instructs to modify the forwarding attribute of the cloud computing device; The cloud management system is also used to send the modification instruction to the forwarding device; The forwarding device is further used to adjust a strategy for forwarding messages of the cloud computing device based on the forwarding attribute indicated by the modification instruction.
13. The system of claim 12, wherein: The cloud management system is also used to send the modification instruction to the cloud computing device; The cloud computing device is also used to stop the service of the cloud computing device based on the modification instruction.
14. The system of claim 12, wherein: The cloud management system is further used to receive a stop instruction sent by the user, wherein the stop instruction instructs to stop the service of the cloud computing device to modify the forwarding attribute of the cloud computing device; The cloud management system is also used to send the stop instruction to the cloud computing device; The cloud computing device is also used to stop the service of the cloud computing device based on the stop instruction.
15. A computing device cluster, characterized in that: The method comprises a plurality of computing devices, wherein the plurality of computing devices comprises a plurality of processors and a plurality of memories, wherein program instructions are stored in the plurality of memories, and the plurality of processors execute the program instructions, so that the computing device cluster executes any one of the methods described in claims 1 to 7.
16. A computer-readable storage medium, characterized in that: The method comprises program instructions, and when the program instructions are executed on a computing device, the computing device is caused to execute the method according to any one of claims 1 to 7.
17. A computer program product comprising instructions, characterized in that When the computer program product is executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 7.
Citation Information
Cited By
Data forwarding method based on cloud service, and system
WO2025002404A1
