A message transmission method, device, electronic device and storage medium

By determining the communication network address between the cloud platform service and the tenant network instance and performing address translation and filtering, the problems of network resource waste and high operation and maintenance complexity in the existing technology are solved, achieving efficient and secure message transmission and reducing cloud service costs.

CN116567109BActive Publication Date: 2024-11-26DAWNING CLOUD COMPUTING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310633276.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-31
Publication Date
2024-11-26
Estimated Expiration
2043-05-31

AI Technical Summary

Technical Problem

In existing technologies, the message transmission methods between cloud platform services and tenant network instances lead to problems such as wasted network resources, high operational complexity, significant performance loss of cloud services, and high costs.

Method used

By obtaining the target tenant network instance and message attribute information of the message to be transmitted, the communication network address is determined, and the message is transmitted based on this information, including address translation and filtering, to ensure the accuracy and security of message transmission.

Benefits of technology

It improves network resource utilization, reduces operational complexity and cloud service costs, and enhances the reliability and security of message transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116567109B_ABST
    Figure CN116567109B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention disclose a message transmission method, device, electronic device and storage medium. The message transmission method may specifically include: obtaining a message to be transmitted, and determining the target tenant network instance corresponding to the message to be transmitted, and the message attribute information of the message to be transmitted; determining the communication network address corresponding to the target tenant network instance according to the message attribute information; wherein the communication network address is a platform built-in network address, an instance network address or a platform external network address; and transmitting the message to be transmitted according to the communication network address and the message attribute information. The technical solution of the embodiment of the present invention can safely and reliably transmit the message to be transmitted, improve the utilization rate of network resources, reduce the complexity of operation and maintenance, and reduce the performance loss and cloud service cost of cloud services.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of communication technology, and in particular to a message transmission method, device, electronic device and storage medium. Background Art

[0002] In cloud computing networks, the network security level protection standard clearly stipulates that tenant networks and management networks need to be physically isolated. Therefore, cloud platform services (such as cloud database services, cloud middleware services, big data cluster services, or cloud container services, etc.) in the management network and tenant network instances (such as physical machines, virtual machines, or containers, etc.) in the tenant network cannot transmit messages. However, in some actual business scenarios, cloud platform services and tenant network instances need to transmit messages. For example, cloud platform services need to send various operation instructions to tenant network instances to control tenant network instances, and tenant network instances need to feedback the execution results of operation instructions to cloud platform services or report their own service status.

[0003] Existing message transmission usually uses the following two methods: one method is that the tenant network and the management network use two network cards, that is, two networks are provided for the tenant network instance, and the tenant access messages are transmitted through the tenant network, and the management access messages are transmitted through the management network, without interfering with each other; the other method is to transmit the messages received on the tenant network to the management network through a proxy, and transmit the messages received on the management network to the tenant network through a proxy.

[0004] However, the first of the above two methods wastes network resources due to the use of two network cards, and the network operation and maintenance of the tenant network instance of this method is more complicated; the second method causes a large performance loss due to the introduction of a proxy, and this method increases the cost of cloud services. Summary of the invention

[0005] The embodiments of the present invention provide a message transmission method, device, electronic device and storage medium, which can safely and reliably transmit messages to be transmitted, improve the utilization rate of network resources, reduce the complexity of operation and maintenance, and reduce the performance loss of cloud services and cloud service costs.

[0006] According to one aspect of the present invention, there is provided a message transmission method, comprising:

[0007] Acquire a message to be transmitted, and determine a target tenant network instance corresponding to the message to be transmitted, and message attribute information of the message to be transmitted;

[0008] Determine the communication network address corresponding to the target tenant network instance according to the message attribute information; wherein the communication network address is a platform built-in network address, a platform external network address or an instance network address;

[0009] The message to be transmitted is transmitted according to the communication network address and the message attribute information.

[0010] In addition, the message transmission method according to the above embodiment of the present invention may also have the following additional technical features:

[0011] Optionally, the platform built-in network address is a network address for communication between the cloud platform service and each tenant network instance;

[0012] The instance network address is the network address for internal communication of each tenant network instance;

[0013] The platform external network address is the network address for communication between each tenant network instance and external resources of the cloud platform;

[0014] The platform built-in network address, the instance network address and the platform external network address are network addresses of different communication network segments.

[0015] An embodiment of the above invention has the following advantages or beneficial effects: it limits the specific implementation method of each network address included in the communication network address, and also limits the communication network segment of each network address to further ensure the security of the cloud platform's own network.

[0016] Optionally, the transmitting the message to be transmitted according to the communication network address and the message attribute information includes:

[0017] Determine the to-be-converted address of the to-be-transmitted message according to the message attribute information;

[0018] The communication network address and the address to be converted are subjected to address conversion, and the message to be transmitted is transmitted according to the address conversion result.

[0019] An embodiment of the above invention has the following advantages or beneficial effects: by determining the address to be converted of the message to be converted based on the message attribute information, the communication network address and the address to be converted are converted, and the message to be transmitted is transmitted according to the address conversion result, thereby ensuring that the message to be transmitted can be transmitted accurately and reliably.

[0020] Optionally, the message attribute information includes inbound traffic information; wherein the inbound traffic information is a message sent by the cloud platform service to each tenant network instance;

[0021] The determining, according to the message attribute information, a communication network address corresponding to the target tenant network instance includes:

[0022] In the case where it is determined that the message attribute information is inbound traffic information, determining an instance network address corresponding to the target tenant network instance, and determining the instance network address as the communication network address;

[0023] The determining, according to the message attribute information, the address to be converted of the message to be transmitted comprises:

[0024] When it is determined that the message attribute information is inbound traffic information, the destination address of the message to be transmitted is determined as the address to be converted.

[0025] An embodiment of the above invention has the following advantages or beneficial effects: it proposes a specific application scenario in which message attribute information includes inbound traffic information, so as to determine the corresponding communication network address and the address to be converted when the message attribute information is inbound traffic information, thereby improving the accuracy of message transmission and further improving the reliability of message transmission.

[0026] Optionally, the message attribute information includes destination traffic information; wherein the destination traffic information is a message sent by each tenant network instance to the cloud platform service;

[0027] The determining, according to the message attribute information, a communication network address corresponding to the target tenant network instance includes:

[0028] In the case where it is determined that the message attribute information is outgoing flow information, determining the destination address of the message to be transmitted, and determining the communication network address according to the destination address of the message to be transmitted;

[0029] The determining, according to the message attribute information, the address to be converted of the message to be transmitted comprises:

[0030] When it is determined that the message attribute information is the destination flow information, the source address of the message to be transmitted is determined as the address to be converted.

[0031] An embodiment of the above invention has the following advantages or beneficial effects: it proposes a specific application scenario in which message attribute information includes destination traffic information, so as to determine the corresponding communication network address and the address to be converted when the message attribute information is destination traffic information, thereby improving the accuracy of message transmission and further improving the reliability of message transmission.

[0032] Optionally, determining the communication network address according to the destination address of the message to be transmitted includes:

[0033] In the case where it is determined that the destination address of the message to be transmitted meets the preset platform built-in network condition, determining the platform built-in network address corresponding to the target tenant network instance, and determining the platform built-in network address as the communication network address;

[0034] When it is determined that the destination address of the message to be transmitted does not meet the preset platform built-in network condition, the platform external network address corresponding to the target tenant network instance is determined, and the platform external network address is determined as the communication network address.

[0035] An embodiment of the above invention has the following advantages or beneficial effects: it proposes a specific implementation method for determining the communication network address according to the destination address of the message to be transmitted, and can separate the control message and the data message to further improve the security of message transmission.

[0036] Optionally, the method further includes:

[0037] Determine the port access rule corresponding to the target tenant network instance, and determine the target access port corresponding to the message to be transmitted;

[0038] The message to be transmitted is filtered according to the target access port and the port access rule.

[0039] An embodiment of the above invention has the following advantages or beneficial effects: a supplementary processing strategy for filtering messages to be transmitted is added to filter each message to be transmitted, thereby improving the security and controllability of message transmission.

[0040] According to another aspect of the present invention, there is provided a message transmission device, comprising:

[0041] A message acquisition module, used to acquire a message to be transmitted, and determine a target tenant network instance corresponding to the message to be transmitted, and message attribute information of the message to be transmitted;

[0042] A network address determination module, used to determine the communication network address corresponding to the target tenant network instance according to the message attribute information; wherein the communication network address is a platform built-in network address, a platform external network address or an instance network address;

[0043] The message transmission module is used to transmit the message to be transmitted according to the communication network address and the message attribute information.

[0044] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:

[0045] at least one processor; and

[0046] a memory communicatively connected to the at least one processor; wherein,

[0047] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the message transmission method described in any embodiment of the present invention.

[0048] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the message transmission method described in any embodiment of the present invention when executed.

[0049] The technical solution of the embodiment of the present invention obtains the message to be transmitted, and determines the target tenant network instance corresponding to the message to be transmitted and the message attribute information of the message to be transmitted, so as to determine the communication network address corresponding to the target tenant network instance according to the message attribute information, thereby transmitting the message to be transmitted according to the communication network address and the message attribute information, thereby solving the problems of network resource waste, complex operation and maintenance, large cloud service loss and high cloud service cost in the prior art, and can safely and reliably transmit the message to be transmitted, thereby improving the utilization rate of network resources, reducing the complexity of operation and maintenance, and reducing the performance loss of cloud services and the cost of cloud services.

[0050] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0052] Figure 1 is a flow chart of a message transmission method provided in Embodiment 1 of the present invention;

[0053] Figure 2 is a flow chart of a message transmission method provided by Embodiment 2 of the present invention;

[0054] Figure 3 This is an example architecture diagram of a cloud computing platform provided by Embodiment 3 of the present invention;

[0055] Figure 4 is an example flow chart of a message transmission method provided in Embodiment 3 of the present invention;

[0056] Figure 5 is a schematic diagram of a message transmission device provided by Embodiment 4 of the present invention;

[0057] Figure 6 It is a structural schematic diagram of an electronic device for implementing the message transmission method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0058] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0059] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or apparatus.

[0060] Embodiment 1

[0061] Figure 1 This is a flow chart of a message transmission method provided in the first embodiment of the present invention. This embodiment is applicable to the case of securely and reliably transmitting messages to be transmitted. The method can be executed by a message transmission device, which can be implemented by software and / or hardware, and can generally be directly integrated in an electronic device that executes the method. The electronic device can be a terminal device or a server device. The embodiment of the present invention does not limit the type of electronic device that executes the message transmission method. Specifically, Figure 1 As shown, the message transmission method may specifically include the following steps:

[0062] S110: Acquire a message to be transmitted, and determine a target tenant network instance corresponding to the message to be transmitted, and message attribute information of the message to be transmitted.

[0063] Among them, the message to be transmitted may be a message waiting to be transmitted. It is understandable that the message to be transmitted may be a message for communication between a cloud platform service and a tenant network instance. The cloud platform service may be a service provided by a control node in a cloud computing platform, for example, a cloud database service, a cloud middleware service, a big data cluster service, or a cloud container service provided by a control node, and the embodiment of the present invention does not limit this. The tenant network instance may be an instance in each computing node in a cloud computing platform, for example, a physical machine, a virtual machine, or a container in a computing node, and the embodiment of the present invention does not limit this. That is, the cloud platform service may be a service in a management network, and the tenant network instance may be an instance in a tenant network. It is understandable that the tenant network (Virtual Private Cloud, VPC), that is, the tenant virtual private cloud, may be a customized logically isolated network space in a cloud computing platform, similar to the network divided in a traditional data center, and the proprietary network space is fully controlled by the user, supporting customized network segment division and routing strategies, etc.

[0064] The target tenant network instance may be a target instance among the tenant network instances to which a message needs to be transmitted. The message attribute information may be any attribute information of the message to be transmitted, such as message transmission direction information, etc., which is not limited in the embodiment of the present invention.

[0065] In the embodiment of the present invention, a message to be transmitted is acquired to determine a target tenant network instance corresponding to the message to be transmitted, and message attribute information of the message to be transmitted is determined.

[0066] S120. Determine a communication network address corresponding to the target tenant network instance according to the message attribute information; wherein the communication network address is a platform built-in network address, a platform external network address, or an instance network address.

[0067] Among them, the communication network address can be a network address corresponding to the target tenant network instance that can perform any communication, for example, it can be a network address for communicating with internal resources of the tenant network, or a network address for communicating with external resources of the cloud platform, or a network address for communicating with cloud platform services, etc. The embodiments of the present invention do not limit this.

[0068] The platform built-in network address may be a network address of a cloud computing platform built-in network. The cloud computing platform built-in network may be a network between a cloud platform service and each tenant network instance. That is, the platform built-in network address may be a network address for communication between a cloud platform service and a tenant network instance. Optionally, the cloud computing platform built-in network may be a management elastic public network IP, which may be a network planned for direct communication between each tenant network instance and the cloud platform service.

[0069] The platform external network address may be a network address of an external network of a cloud computing platform. The cloud computing platform external network may be a network between external resources of the cloud platform and each tenant network instance. That is, the cloud platform external network address may be a network address for communication between external resources of the cloud platform and a tenant network instance.

[0070] The instance network address may be the network address of the internal network of the tenant network instance in the cloud computing platform. The internal network of the tenant network instance may be the network address for internal communication of each tenant network instance, and the network that can be directly accessed by the cloud resources in the VPC. That is, the instance network address may be the network address for internal communication of each tenant network instance, and the network address that can be directly accessed by the cloud resources in the VPC. It is understandable that the internal network of the tenant network instance cannot be accessed by resources outside the cloud platform. If it needs to be accessed by resources outside the cloud platform, it needs to be bound to the platform external network address.

[0071] In an embodiment of the present invention, after determining the target tenant network instance corresponding to the message to be transmitted and the message attribute information of the message to be transmitted, the communication network address corresponding to the target tenant network instance can be further determined according to the message attribute information. Specifically, the communication network address corresponding to the target tenant network instance can be the platform built-in network address corresponding to the target tenant network instance, or it can be the platform external network address corresponding to the target tenant network instance, or it can also be the instance network address corresponding to the target tenant network instance. It can be understood that different message attribute information can correspond to different communication network addresses.

[0072] Optionally, the platform's built-in network address, instance network address, and platform's external network address are network addresses in different communication segments. That is, any two networks between the cloud computing platform's built-in network, the cloud computing platform's external network, and the tenant network instance's internal network are physically isolated to ensure the security of the cloud platform's own network.

[0073] The above technical solution limits the specific implementation method of each network address included in the communication network address, and also limits the communication network segment of each network address to further ensure the security of the cloud platform's own network.

[0074] S130. Perform message transmission on the message to be transmitted according to the communication network address and the message attribute information.

[0075] In an embodiment of the present invention, after determining the communication network address corresponding to the target tenant network instance according to the message attribute information, the message to be transmitted can be further transmitted according to the communication network address and the message attribute information, thereby realizing the message transmission between the cloud platform service and the tenant network instance.

[0076] The technical solution of this embodiment obtains the message to be transmitted, and determines the target tenant network instance corresponding to the message to be transmitted and the message attribute information of the message to be transmitted, so as to determine the communication network address corresponding to the target tenant network instance according to the message attribute information, thereby transmitting the message to be transmitted according to the communication network address and the message attribute information, which solves the problems of network resource waste, complex operation and maintenance, large cloud service loss and high cloud service cost in the prior art, and can safely and reliably transmit the message to be transmitted, thereby improving the utilization rate of network resources, reducing the complexity of operation and maintenance, and reducing the performance loss of cloud services and the cost of cloud services.

[0077] Embodiment 2

[0078] Figure 2 This is a flow chart of a message transmission method provided in the second embodiment of the present invention. This embodiment is a further refinement of the above-mentioned technical solutions, and provides a plurality of specific optional implementation methods for determining the communication network address corresponding to the target tenant network instance according to the message attribute information, and transmitting the message to be transmitted according to the communication network address and the message attribute information. The technical solution in this embodiment can be combined with each optional solution in one or more of the above-mentioned embodiments. Figure 2 As shown, the method may include the following steps:

[0079] S210: Acquire a message to be transmitted, and determine a target tenant network instance corresponding to the message to be transmitted, and message attribute information of the message to be transmitted.

[0080] Optionally, the message attribute information may include inbound traffic information, wherein the message to be transmitted of the inbound traffic information may be a message sent by the cloud platform service to each tenant network instance. The message attribute information may also include outbound traffic information, wherein the message to be transmitted of the outbound traffic information may be a message sent by each tenant network instance to the cloud platform service.

[0081] Among them, the inbound traffic information may be the message attribute information of the transmission direction being inbound. The outbound traffic information may be the message attribute information of the transmission direction being outbound. It is understandable that if the message attribute information of the message to be transmitted is the inbound traffic information, it means that the message to be transmitted is a message sent by the cloud platform service to each tenant network instance. If the message attribute information of the message to be transmitted is the outbound traffic information, it means that the message to be transmitted is a message sent by each tenant network instance to the cloud platform service.

[0082] Specifically, after obtaining the message to be transmitted, it can be further determined whether the message attribute information of the message to be transmitted is inbound traffic information or outbound traffic information, so as to determine the communication network address corresponding to the target tenant network instance according to the message attribute information.

[0083] Optionally, the message attribute information of the message to be transmitted can be determined based on the IP address and port information of the message to be transmitted. For example, if the destination address of the message to be transmitted is the IP address corresponding to the cloud platform service, or the source address of the message to be transmitted is the IP address corresponding to the tenant network instance, or the port information in the message to be transmitted is the port for accessing the cloud platform service, it means that the message to be transmitted is a message sent from the tenant network instance to the cloud platform service, then the message attribute information of the message to be transmitted can be determined as the destination traffic information.

[0084] In another example, if the destination address of the message to be transmitted is the IP address corresponding to the tenant network instance, or the source address of the message to be transmitted is the IP address corresponding to the cloud platform service, or the port information in the message to be transmitted is the port for accessing the tenant network instance, it means that the message to be transmitted is a message sent by the cloud platform service to the tenant network instance, then it can be determined that the message attribute information of the message to be transmitted is inbound traffic information.

[0085] S220. Determine a communication network address corresponding to the target tenant network instance according to the message attribute information.

[0086] Optionally, determining the communication network address corresponding to the target tenant network instance according to the message attribute information may include: when determining that the message attribute information is inbound traffic information, determining the instance network address corresponding to the target tenant network instance, and determining the instance network address as the communication network address.

[0087] Optionally, determining the communication network address corresponding to the target tenant network instance according to the message attribute information may include: when determining that the message attribute information is outgoing traffic information, determining the destination address of the message to be transmitted, and determining the communication network address according to the destination address of the message to be transmitted.

[0088] Specifically, after determining the target tenant network instance corresponding to the message to be transmitted and the message attribute information of the message to be transmitted, it is possible to further determine whether the message attribute information is inbound traffic information or outbound traffic information, so as to determine the instance network address corresponding to the target tenant network instance when the message attribute information is inbound traffic information, thereby determining the instance network address as the communication network address. When the message attribute information is outbound traffic information, the destination address of the message to be transmitted is determined, thereby determining the communication network address according to the destination address of the message to be transmitted. It is understandable that the destination address of the message to be transmitted may be the address for receiving the message, and may be determined according to the field content corresponding to the destination address in the message to be transmitted.

[0089] Optionally, determining the communication network address based on the destination address of the message to be transmitted may include: when it is determined that the destination address of the message to be transmitted meets the preset platform built-in network conditions, determining the platform built-in network address corresponding to the target tenant network instance, and determining the platform built-in network address as the communication network address; when it is determined that the destination address of the message to be transmitted does not meet the preset platform built-in network conditions, determining the platform external network address corresponding to the target tenant network instance, and determining the platform external network address as the communication network address.

[0090] Among them, the preset platform built-in network condition can be a pre-set condition of the platform built-in network that the destination address of the message to be transmitted needs to meet. For example, the destination address of the message to be transmitted may be within the communication network segment corresponding to the built-in network of the cloud computing platform, etc. The embodiment of the present invention does not limit this.

[0091] Specifically, when the message attribute information is the destination flow information, after determining the destination address of the message to be transmitted, it is possible to further determine whether the destination address of the message to be transmitted meets the preset platform built-in network condition. When the destination address of the message to be transmitted meets the preset platform built-in network condition, the platform built-in network address corresponding to the target tenant network instance can be determined to determine the platform built-in network address as the communication network address. When the destination address of the message to be transmitted does not meet the preset platform built-in network condition, the platform external network address corresponding to the target tenant network instance can be determined to determine the platform external network address as the communication network address.

[0092] The above technical solution proposes a specific implementation method for determining the communication network address according to the destination address of the message to be transmitted, which can separate the control message and the data message to further improve the security of message transmission.

[0093] Optionally, before determining the communication network address corresponding to the target tenant network instance based on the message attribute information, a cloud computing platform built-in network, a cloud computing platform external network, and a tenant network instance internal network can be created, and different communication network segments can be allocated to the cloud computing platform built-in network, the cloud computing platform external network, and the tenant network instance internal network, respectively, so as to further allocate network addresses belonging to each communication network segment to each tenant network instance, namely, the platform built-in network address, the platform external network address, and the instance network address.

[0094] S230: Determine the address to be converted of the message to be transmitted according to the message attribute information.

[0095] The address to be converted may be an address waiting for address conversion. It is understandable that the address corresponding to the message to be transmitted may include a source address and a destination address, and any one of the source address and the destination address may be determined as the address to be converted.

[0096] In the embodiment of the present invention, after determining the target tenant network instance corresponding to the message to be transmitted and the message attribute information of the message to be transmitted, the address to be converted of the message to be transmitted can be further determined according to the message attribute information.

[0097] It should be noted that Figure 2 It is only a schematic diagram of an implementation method. There is no sequence relationship between step S220 and step S230. Step S220 can be implemented first, and then step S230, or step S230 can be implemented first, and then step S220. They can also be implemented in parallel or one at a time.

[0098] Optionally, determining the address to be converted of the message to be transmitted according to the message attribute information may include: when it is determined that the message attribute information is inbound traffic information, determining the destination address of the message to be transmitted as the address to be converted.

[0099] Optionally, determining the address to be converted of the message to be transmitted according to the message attribute information may include: when it is determined that the message attribute information is destination traffic information, determining the source address of the message to be transmitted as the address to be converted.

[0100] Specifically, after determining the target tenant network instance corresponding to the message to be transmitted and the message attribute information of the message to be transmitted, it can be further determined whether the message attribute information is inbound traffic information or outbound traffic information. When the message attribute information is inbound traffic information, the destination address of the message to be transmitted can be determined as the address to be converted. When the message attribute information is outbound traffic information, the source address of the message to be transmitted can be determined as the address to be converted.

[0101] The above technical solution proposes a specific application scenario in which the message attribute information includes the inbound flow information, so that when the message attribute information is the inbound flow information, the corresponding communication network address and the address to be converted are determined, which can improve the accuracy of message transmission, thereby further improving the reliability of message transmission. It also proposes a specific application scenario in which the message attribute information includes the outbound flow information, so that when the message attribute information is the outbound flow information, the corresponding communication network address and the address to be converted are determined, which can improve the accuracy of message transmission, thereby further improving the reliability of message transmission.

[0102] S240: Perform address conversion on the communication network address and the address to be converted, and transmit the message to be transmitted according to the address conversion result.

[0103] The address conversion result may be a result obtained after performing address conversion.

[0104] In an embodiment of the present invention, after determining the communication network address corresponding to the target tenant network instance according to the message attribute information, and determining the address to be converted of the message to be transmitted according to the message attribute information, the communication network address and the address to be converted can be further converted to perform message transmission on the message to be transmitted according to the address conversion result.

[0105] Exemplarily, when the message attribute information is inbound traffic information, the communication network address is the instance network address corresponding to the target tenant network instance, and the address to be converted is the destination address of the message to be transmitted, then the destination address of the message to be transmitted and the instance network address are converted, and the address conversion result is that the destination address of the message to be transmitted is changed to the instance network address, so that the message transmission of the message to be transmitted is performed according to the changed address.

[0106] Exemplarily, when the message attribute information is the destination traffic information, the address to be converted is the source address of the message to be transmitted, and when the communication network address is the platform built-in network address corresponding to the target tenant network instance, the source address of the message to be transmitted and the platform built-in network address are converted, and the address conversion result is that the source address of the message to be transmitted is changed to the platform built-in network address; when the communication network address is the platform external network address corresponding to the target tenant network instance, the source address of the message to be transmitted and the platform external network address are converted, and the address conversion result is that the source address of the message to be transmitted is changed to the platform external network address; thereby, the message transmission of the message to be transmitted is performed according to the changed address.

[0107] The above technical solution determines the address to be converted of the message to be converted according to the message attribute information, so as to perform address conversion between the communication network address and the address to be converted, and then transmits the message to be transmitted according to the address conversion result, thereby ensuring that the message to be transmitted can be transmitted accurately and reliably.

[0108] Optionally, the method may further include: determining a port access rule corresponding to the target tenant network instance, and determining a target access port corresponding to the message to be transmitted; and filtering the message to be transmitted according to the target access port and the port access rule.

[0109] Among them, the port access rule can be a rule for a tenant network instance to access a port in a cloud platform service. It is understandable that a cloud platform service may include multiple ports, and different tenant network instances may access the same or different ports. That is, different tenant network instances may correspond to the same or different port access rules. The target access port may be a port that a message to be transmitted wants to access. Message filtering may be filtering messages to be transmitted to discard messages that do not meet the port access rule.

[0110] Specifically, the method may also include determining the port access rule corresponding to the target tenant network instance, and determining the target access port corresponding to the message to be transmitted, so as to filter the message to be transmitted according to the target access port and the port access rule. Specifically, filtering the message to be transmitted according to the target access port and the port access rule may include: when the target access port satisfies the port access rule, allowing the message to be transmitted to be transmitted; when the target access port does not satisfy the port access rule, not allowing the message to be transmitted to be transmitted, and discarding the message to be transmitted.

[0111] Optionally, when the message attribute information is inbound traffic information, the message filtering operation may be performed after obtaining the message to be transmitted. When the message attribute information is outbound traffic information, the message filtering operation may be performed after address conversion.

[0112] The above technical solution adds a supplementary processing strategy for filtering messages to be transmitted, so as to filter each message to be transmitted, thereby improving the security and controllability of message transmission.

[0113] The technical solution of this embodiment obtains the message to be transmitted, and determines the target tenant network instance corresponding to the message to be transmitted and the message attribute information of the message to be transmitted, so as to determine the communication network address corresponding to the target tenant network instance according to the message attribute information, and determine the address to be converted of the message to be transmitted according to the message attribute information, thereby performing address conversion between the communication network address and the address to be converted, and then transmitting the message to be transmitted according to the address conversion result, which solves the problems of network resource waste, complex operation and maintenance, large cloud service loss and high cloud service cost in the prior art, and can safely and reliably transmit the message to be transmitted, thereby improving the utilization rate of network resources, reducing the complexity of operation and maintenance, and reducing the performance loss of cloud services and cloud service costs.

[0114] Embodiment 3

[0115] In order to enable those skilled in the art to better understand the message transmission method of this embodiment, a specific example is used below for illustration.

[0116] Figure 3 is an example architecture diagram of a cloud computing platform provided in Embodiment 3 of the present invention, such as Figure 3As shown, the cloud computing platform may include a cloud platform service set on a control node, a rental network gateway set on a computing node, and a VPC instance (i.e., a tenant network instance). Among them, the cloud platform service can provide various cloud platform service operations to tenants through a management network, and control and manage VPC instances through a built-in network (i.e., a cloud computing platform built-in network). A VPC instance can be a cloud service instance created by a tenant, which can execute operation instructions from a cloud platform service and feedback the execution results, and can also report its own service status to the cloud platform service at regular intervals. It is understandable that the operation messages of the VPC instance are all executed through the VPC network.

[0117] Among them, the leased network gateway can adopt a distributed design, and a leased network gateway can be arranged in each computing node. The leased network gateway can be a module implemented based on the OpenFlow flow table. OpenFlow is a network communication protocol that can control the forwarding plane of the switch or router on the network, thereby changing the network path taken by the network data packet. The leased network gateway can monitor the network segment messages corresponding to the built-in network and the VPC network (that is, the internal network of the tenant network instance), and at the same time, through the security policy (such as access control list ACL, ACL can be an access control technology based on packet filtering implemented by Openflow, which can filter the data packets on the port according to the set conditions, allowing them to pass or discard) to control the access rights of the messages, ensuring that the message forwarding function between the tenant network and the built-in network is realized in a safe and reliable manner. That is, the message transmission method described in the embodiment of the present invention can be implemented through the leased network gateway.

[0118] Figure 4 is an example flow chart of a message transmission method provided in Embodiment 3 of the present invention, such as Figure 4 As shown, the method may specifically include:

[0119] Step 1: Plan / create a communication network in the cloud computing platform. Specifically, plan a built-in network in the cloud computing platform (such as Figure 4 MFIP network in the ), and determine the communication segment of the built-in network, for example, it can be 100.126.0.0 / 16; create an external network (such as Figure 4 The FIP network in the cloud computing platform, that is, the external network of the cloud computing platform, and determine the communication segment of the external network, for example, it can be 10.10.0.0 / 24; create a VPC network (such as Figure 4 The network corresponding to the Fixed IP in the VPC network is determined, and the communication network segment of the VPC network is determined, for example, it can be 192.168.0.0 / 24. It can be understood that each network is physically isolated from each other, and each network is also physically isolated from the management network.

[0120] Step 2: Assign network addresses to VPC instances. Specifically, each VPC instance in the cloud computing platform is assigned a platform built-in network address (also known as MFIP network address), a platform external network address (also known as FIP network address), and an instance network address (also known as Fixed IP address). For example, the platform built-in network address assigned to VPC instance 1 is 100.126.0.3, the platform external network address is 10.10.0.3, and the instance network address (also known as Fixed IP) is 192.168.0.3.

[0121] Step 3: The message to be transmitted is transmitted through the leased network gateway. Specifically, the message path of the message to be transmitted is determined by the leased network gateway, so that the message to be transmitted is transmitted according to the message path. It can be understood that the management network is only responsible for providing the services of the cloud platform itself, such as the message queue, mysql, and intermediate keys in the computing node, that is, the management network only accesses the public services in the computing node, and the VPC instance in the computing node cannot be accessed through the management network.

[0122] The first case is when the message path is the destination traffic path (that is, the message attribute information is the destination traffic information):

[0123] (1) The VPC instance sends a message (i.e., the message to be transmitted) through the VPC network. When the message arrives at the gateway of the leased network, the destination address of the message is determined. If the destination address belongs to the built-in network segment (i.e., the 100.126.0.0 / 16 network), the source address of the message is converted to the platform built-in network address corresponding to the VPC instance (e.g., 100.126.0.3 of VPC instance 1). If the destination address does not belong to the built-in network segment, the source address of the message is converted to the platform external network address (e.g., 10.10.0.3 of VPC instance 1).

[0124] (2) Filter the message according to ACL rules (also known as message filtering). If the message meets the ACL rules, the message is allowed to pass; if it does not meet the ACL rules, the message is discarded.

[0125] (3) After passing the ACL check, the message will be sent to the network through the computing node network card by the rental network gateway, and finally reach the built-in network card of the control node. The control node will hand over the message to the cloud platform service program. After the cloud platform service program processes it, it will send the operation result to the customer through the management network.

[0126] The second case is when the message path is the inbound traffic path (that is, the message attribute information is the inbound traffic information):

[0127] (1) The customer operates the VPC instance in the cloud platform management interface through the management network. The cloud platform service sends the specific operation (i.e., message) to the leased network gateway through the built-in network.

[0128] (2) The message arrives at the leasing and management network gateway and is filtered by ACL rules.

[0129] (3) Convert the destination address of the message to an intranet address (such as 192.168.0.3 in VPC instance 1).

[0130] (4) The message is forwarded to the virtual bridge, the virtual bridge forwards the message to the VPC instance, and the VPC instance forwards the message to the cloud database resident program.

[0131] The above technical solution can realize two networks with one network card, that is, to bind one internal network IP (that is, the instance network address) to two public network IPs (that is, the platform built-in network address and the platform external network address) at the same time, and realize the transmission of control messages through the platform built-in network address, and the transmission of data messages through the platform external network address; and through the use of distributed design, address conversion and message filtering are all set in the computing nodes, which shortens the traffic path, improves the performance of the cloud computing platform, and further improves the robustness of the cloud computing platform.

[0132] Embodiment 4

[0133] Figure 5 is a schematic diagram of a message transmission device provided by Embodiment 4 of the present invention, such as Figure 5 As shown, the device includes: a message acquisition module 510, a network address determination module 520 and a message transmission module 530, wherein:

[0134] The message acquisition module 510 is used to acquire the message to be transmitted, and determine the target tenant network instance corresponding to the message to be transmitted, and the message attribute information of the message to be transmitted;

[0135] A network address determination module 520, configured to determine a communication network address corresponding to the target tenant network instance according to the message attribute information; wherein the communication network address is a platform built-in network address, a platform external network address or an instance network address;

[0136] The message transmission module 530 is used to transmit the message to be transmitted according to the communication network address and the message attribute information.

[0137] The technical solution of this embodiment obtains the message to be transmitted, and determines the target tenant network instance corresponding to the message to be transmitted and the message attribute information of the message to be transmitted, so as to determine the communication network address corresponding to the target tenant network instance according to the message attribute information, thereby transmitting the message to be transmitted according to the communication network address and the message attribute information, which solves the problems of network resource waste, complex operation and maintenance, large cloud service loss and high cloud service cost in the prior art, and can safely and reliably transmit the message to be transmitted, thereby improving the utilization rate of network resources, reducing the complexity of operation and maintenance, and reducing the performance loss of cloud services and the cost of cloud services.

[0138] Optionally, the platform's built-in network address can be the network address for communication between the cloud platform service and each tenant network instance; the instance network address can be the network address for internal communication within each tenant network instance; the platform's external network address can be the network address for communication between each tenant network instance and external resources of the cloud platform; among them, the platform's built-in network address, instance network address and platform's external network address can be network addresses in different communication network segments.

[0139] Optionally, the message transmission module 530 can be specifically used to: determine the address to be converted of the message to be transmitted according to the message attribute information; perform address conversion between the communication network address and the address to be converted, and transmit the message to be transmitted according to the address conversion result.

[0140] Optionally, the message attribute information may include inbound traffic information; wherein, the message to be transmitted of the inbound traffic information may be a message sent by the cloud platform service to each tenant network instance; accordingly, the network address determination module 520 may be specifically used to: when it is determined that the message attribute information is inbound traffic information, determine the instance network address corresponding to the target tenant network instance, and determine the instance network address as the communication network address; accordingly, the message transmission module 530 may be specifically used to: when it is determined that the message attribute information is inbound traffic information, determine the destination address of the message to be transmitted as the address to be converted.

[0141] Optionally, the message attribute information may include destination traffic information; wherein the message to be transmitted of the destination traffic information may be a message sent by each tenant network instance to the cloud platform service; accordingly, the network address determination module 520 may be specifically used to: when it is determined that the message attribute information is the destination traffic information, determine the destination address of the message to be transmitted, and determine the communication network address according to the destination address of the message to be transmitted; accordingly, the message transmission module 530 may be specifically used to: when it is determined that the message attribute information is the destination traffic information, determine the source address of the message to be transmitted as the address to be converted.

[0142] Optionally, the network address determination module 520 can be further used to: when it is determined that the destination address of the message to be transmitted meets the preset platform built-in network conditions, determine the platform built-in network address corresponding to the target tenant network instance, and determine the platform built-in network address as the communication network address; when it is determined that the destination address of the message to be transmitted does not meet the preset platform built-in network conditions, determine the platform external network address corresponding to the target tenant network instance, and determine the platform external network address as the communication network address.

[0143] Optionally, the device can also be specifically used to: determine the port access rules corresponding to the target tenant network instance, and determine the target access port corresponding to the message to be transmitted; and filter the message to be transmitted according to the target access port and the port access rules.

[0144] The message transmission device provided in the embodiment of the present invention can execute the message transmission method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0145] Embodiment 5

[0146] Figure 6 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0147] like Figure 6 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0148] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0149] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a message transmission method.

[0150] In some embodiments, the message transmission method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the message transmission method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the message transmission method in any other appropriate manner (e.g., by means of firmware).

[0151] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0152] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0153] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer 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 foregoing.

[0154] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0155] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0156] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0157] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0158] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A message transmission method, characterized in that: include: Acquire a message to be transmitted, and determine a target tenant network instance corresponding to the message to be transmitted, and message attribute information of the message to be transmitted; Determining the communication network address corresponding to the target tenant network instance according to the message attribute information, including: determining the instance network address corresponding to the target tenant network instance when determining that the message attribute information is inbound traffic information, and determining the instance network address as the communication network address; wherein the communication network address is a platform built-in network address, a platform external network address, or an instance network address; The method further comprises: transmitting the message to be transmitted according to the communication network address and the message attribute information, comprising: Determining the to-be-converted address of the to-be-transmitted message according to the message attribute information includes: determining the destination address of the to-be-transmitted message as the to-be-converted address when determining that the message attribute information is inbound traffic information; The communication network address and the address to be converted are converted, and the message to be transmitted is transmitted according to the address conversion result; the message attribute information includes inbound traffic information; wherein the message to be transmitted of the inbound traffic information is a message sent by the cloud platform service to each tenant network instance.

2. The method according to claim 1, characterized in that The platform built-in network address is the network address for communication between the cloud platform service and each tenant network instance; The instance network address is the network address for internal communication of each tenant network instance; The platform external network address is the network address for communication between each tenant network instance and external resources of the cloud platform; The platform built-in network address, the instance network address and the platform external network address are network addresses of different communication network segments.

3. The method according to claim 1, characterized in that The message attribute information includes destination traffic information; wherein the to-be-transmitted message of the destination traffic information is a message sent by each tenant network instance to the cloud platform service; The determining, according to the message attribute information, a communication network address corresponding to the target tenant network instance includes: In the case where it is determined that the message attribute information is outgoing flow information, determining the destination address of the message to be transmitted, and determining the communication network address according to the destination address of the message to be transmitted; The determining, according to the message attribute information, the address to be converted of the message to be transmitted comprises: When it is determined that the message attribute information is the destination flow information, the source address of the message to be transmitted is determined as the address to be converted.

4. The method according to claim 3, characterized in that: The determining the communication network address according to the destination address of the message to be transmitted includes: In the case where it is determined that the destination address of the message to be transmitted meets the preset platform built-in network condition, determining the platform built-in network address corresponding to the target tenant network instance, and determining the platform built-in network address as the communication network address; When it is determined that the destination address of the message to be transmitted does not meet the preset platform built-in network condition, the platform external network address corresponding to the target tenant network instance is determined, and the platform external network address is determined as the communication network address.

5. The method according to claim 1, characterized in that The method further comprises: Determine the port access rule corresponding to the target tenant network instance, and determine the target access port corresponding to the message to be transmitted; The message to be transmitted is filtered according to the target access port and the port access rule.

6. A message transmission device, characterized in that: include: A message acquisition module, used to acquire a message to be transmitted, and determine a target tenant network instance corresponding to the message to be transmitted, and message attribute information of the message to be transmitted; A network address determination module, used to determine the communication network address corresponding to the target tenant network instance according to the message attribute information, including: in the case where it is determined that the message attribute information is inbound traffic information, determining the instance network address corresponding to the target tenant network instance, and determining the instance network address as the communication network address; wherein the communication network address is a platform built-in network address, a platform external network address or an instance network address; A message transmission module, used for transmitting the message to be transmitted according to the communication network address and the message attribute information, comprising: Determining the to-be-converted address of the to-be-transmitted message according to the message attribute information includes: determining the destination address of the to-be-transmitted message as the to-be-converted address when determining that the message attribute information is inbound traffic information; The communication network address and the address to be converted are converted, and the message to be transmitted is transmitted according to the address conversion result; the message attribute information includes inbound traffic information; wherein the message to be transmitted of the inbound traffic information is a message sent by the cloud platform service to each tenant network instance.

7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the message transmission method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the message transmission method according to any one of claims 1 to 5 when executed.