CN116032995A - Data communication method and device, electronic equipment and computer readable storage medium - Google Patents

Data communication method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN116032995A
CN116032995A CN202211617204.0A CN202211617204A CN116032995A CN 116032995 A CN116032995 A CN 116032995A CN 202211617204 A CN202211617204 A CN 202211617204A CN 116032995 A CN116032995 A CN 116032995A
Authority
CN
China
Prior art keywords
node
target
data communication
address information
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211617204.0A
Other languages
Chinese (zh)
Other versions
CN116032995B (en
Inventor
陈耿昆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202211617204.0A priority Critical patent/CN116032995B/en
Publication of CN116032995A publication Critical patent/CN116032995A/en
Application granted granted Critical
Publication of CN116032995B publication Critical patent/CN116032995B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The present disclosure provides a data communication method and apparatus, an electronic device, and a computer-readable storage medium, which can be applied to the technical field of edge computing and the field of financial science and technology. The data communication method comprises the following steps: determining a communication type and a communication connection state according to a first data communication request in response to receiving the first data communication request, wherein the first data communication request comprises source address information corresponding to a source container group and target address information corresponding to a target container group; acquiring data to be communicated by utilizing an acquisition tool corresponding to the source address information according to the communication type; and under the condition that the communication connection state is not communicated, based on the first communication connection, sending a second data communication request to a cloud node of the cloud so that the cloud node can forward the second data communication request to a target node corresponding to the target container group according to the target address information, wherein the second data communication request comprises data to be communicated and the target address information.

Description

数据通信方法及装置、电子设备和计算机可读存储介质Data communication method and device, electronic device, and computer-readable storage medium

技术领域technical field

本公开涉及边缘计算技术领域和金融科技领域,更具体地,涉及一种数据通信方法及装置、电子设备、计算机可读存储介质和计算机程序产品。The present disclosure relates to the field of edge computing technology and the field of financial technology, and more specifically, to a data communication method and device, electronic equipment, a computer-readable storage medium, and a computer program product.

背景技术Background technique

随着计算机技术的发展,边缘计算技术应运而生。With the development of computer technology, edge computing technology came into being.

边缘计算可以是指将应用程序、数据与服务的运算,由网络的中心节点,迁移至网络的边缘节点进行处理的过程。边缘计算的整体架构可以包括云部分、边部分和端部分。Edge computing can refer to the process of migrating the calculation of applications, data and services from the central node of the network to the edge nodes of the network for processing. The overall architecture of edge computing can include cloud part, edge part and end part.

在实现本公开构思的过程中,发明人发现相关技术中至少存在如下问题:无法保障边缘计算过程中不同节点之间的通信稳定性和通信效率。In the process of implementing the disclosed concept, the inventors found that there are at least the following problems in related technologies: the communication stability and communication efficiency between different nodes in the edge computing process cannot be guaranteed.

发明内容Contents of the invention

有鉴于此,本公开提供了一种数据通信方法及装置、电子设备、计算机可读存储介质和计算机程序产品。In view of this, the present disclosure provides a data communication method and device, electronic equipment, a computer-readable storage medium, and a computer program product.

根据本公开的一个方面,提供了一种数据通信方法,应用于容器集群管理系统中的边缘端,上述方法包括:According to one aspect of the present disclosure, a data communication method is provided, which is applied to an edge end in a container cluster management system, and the method includes:

响应于接收到第一数据通信请求,根据上述第一数据通信请求,确定通信类型和通信连接状态,其中,上述第一数据通信请求包括与源容器组对应的源地址信息和与目标容器组对应的目标地址信息;In response to receiving the first data communication request, determine the communication type and communication connection status according to the first data communication request, wherein the first data communication request includes source address information corresponding to the source container group and corresponding to the target container group target address information;

根据上述通信类型,利用与上述源地址信息对应的采集工具,获取待通信数据,其中,上述边缘端包括至少一个边缘节点,上述至少一个边缘节点各自部署有上述采集工具;以及According to the above-mentioned communication type, using a collection tool corresponding to the above-mentioned source address information to obtain the data to be communicated, wherein the above-mentioned edge end includes at least one edge node, and each of the above-mentioned at least one edge node is equipped with the above-mentioned collection tool; and

在上述通信连接状态为未连通的情况下,基于第一通信连接,将第二数据通信请求发送至云端的云端节点,以便于上述云端节点根据上述目标地址信息,将上述第二数据通信请求转发至与上述目标容器组对应的目标节点,其中,上述第二数据通信请求包括上述待通信数据和上述目标地址信息。When the above-mentioned communication connection state is disconnected, based on the first communication connection, the second data communication request is sent to the cloud node in the cloud, so that the above-mentioned cloud node forwards the above-mentioned second data communication request according to the above-mentioned target address information To the target node corresponding to the target container group, wherein the second data communication request includes the data to be communicated and the target address information.

根据本公开的实施例,上述至少一个边缘节点中的每个边缘节点均包括至少一个容器组,上述至少一个容器组各自对应有地址信息,上述地址信息是通过以下方式确定的:According to an embodiment of the present disclosure, each of the at least one edge node includes at least one container group, and each of the at least one container group corresponds to address information, and the address information is determined in the following manner:

针对上述至少一个边缘节点中的每个边缘节点,For each edge node in the above at least one edge node,

根据上述容器集群管理系统的网段范围,确定与上述边缘节点对应的子网段范围;以及According to the network segment range of the above-mentioned container cluster management system, determine the sub-network segment range corresponding to the above-mentioned edge node; and

根据与上述边缘节点对应的子网段范围,确定与上述边缘节点对应的上述至少一个容器组各自的地址信息。The respective address information of the at least one container group corresponding to the edge node is determined according to the subnet segment range corresponding to the edge node.

根据本公开的实施例,上述至少一个边缘节点各自对应有边缘节点标识,上述至少一个容器组各自对应有容器组标识。According to an embodiment of the present disclosure, each of the at least one edge node corresponds to an edge node identifier, and each of the at least one container group corresponds to a container group identifier.

上述方法还包括,在上述根据与上述边缘节点对应的子网段范围,确定与上述边缘节点对应的上述至少一个容器组各自的地址信息之后:The above method further includes, after determining the respective address information of the above at least one container group corresponding to the above edge node according to the range of the subnet segment corresponding to the above edge node:

根据与上述边缘节点对应的边缘节点标识和至少一个容器组标识,确定第一路由规则;以及Determine a first routing rule according to the edge node identifier and at least one container group identifier corresponding to the above edge node; and

根据上述至少一个容器组标识和上述至少一个容器组各自的地址信息,确定第二路由规则。A second routing rule is determined according to the at least one container group identifier and the respective address information of the at least one container group.

根据本公开的实施例,上述响应于接收到第一数据通信请求,根据上述第一数据通信请求,确定通信类型和通信连接状态包括:According to an embodiment of the present disclosure, in response to receiving the first data communication request, determining the communication type and communication connection status according to the first data communication request includes:

根据上述源地址信息、上述目标地址信息、第一路由规则和第二路由规则,确定源节点标识和目标节点标识;以及Determine the source node identifier and the destination node identifier according to the above source address information, the above destination address information, the first routing rule and the second routing rule; and

根据上述源节点标识和上述目标节点标识,确定上述通信类型和通信连接状态。According to the above-mentioned source node identifier and the above-mentioned target node identifier, determine the above-mentioned communication type and communication connection status.

根据本公开的实施例,上述根据上述源地址信息、上述目标地址信息、第一路由规则和第二路由规则,确定源节点标识和目标节点标识包括:According to an embodiment of the present disclosure, determining the source node identifier and the destination node identifier based on the above source address information, the above destination address information, the first routing rule and the second routing rule includes:

根据上述源地址信息和上述第二路由规则,确定源容器组标识;Determine the source container group identifier according to the above source address information and the above second routing rule;

根据上述源容器组标识和上述第一路由规则,确定源节点标识;Determine the source node identifier according to the above-mentioned source container group identifier and the above-mentioned first routing rule;

根据上述目标地址信息和上述第二路由规则,确定目标容器组标识;以及Determine the target container group identifier according to the above target address information and the above second routing rule; and

根据上述目标容器组标识和上述第一路由规则,确定目标节点标识。Determine the target node ID according to the target container group ID and the first routing rule.

根据本公开的实施例,上述根据上述源节点标识和上述目标节点标识,确定上述通信类型和通信连接状态包括:According to an embodiment of the present disclosure, determining the above communication type and communication connection status based on the above source node ID and the above target node ID includes:

在上述源节点标识和目标节点标识相一致的情况下,确定上述通信类型为本节点通信;In the case that the above-mentioned source node identification is consistent with the target node identification, it is determined that the above-mentioned communication type is the communication of this node;

在上述源节点标识和目标节点标识不一致的情况下,确定上述通信类型为跨节点通信;In the case that the above-mentioned source node identifier and the target node identifier are inconsistent, determine that the above-mentioned communication type is cross-node communication;

在源节点和上述目标节点之间存在心跳连接的情况下,确定上述通信连接状态为连通,其中,上述源节点与上述源节点标识相对应,上述目标节点与上述目标节点标识相对应;以及When there is a heartbeat connection between the source node and the target node, determine that the communication connection status is connected, wherein the source node corresponds to the source node identifier, and the target node corresponds to the target node identifier; and

在源节点和上述目标节点之间不存在心跳连接的情况下,确定上述通信连接状态为未连通。If there is no heartbeat connection between the source node and the target node, it is determined that the communication connection state is disconnected.

根据本公开的实施例,上述根据上述通信类型,利用与上述源地址信息对应的采集工具,获取待通信数据包括:According to an embodiment of the present disclosure, according to the above-mentioned communication type, using the collection tool corresponding to the above-mentioned source address information to obtain the data to be communicated includes:

在上述通信类型为本节点通信的情况下,利用上述采集工具从上述目标容器组获取上述待通信数据;以及In the case where the aforementioned communication type is local node communication, using the aforementioned acquisition tool to acquire the aforementioned data to be communicated from the aforementioned target container group; and

在上述通信类型为跨节点通信的情况下,利用上述采集工具从目标端口获取上述待通信数据。In the case that the above-mentioned communication type is cross-node communication, the above-mentioned data to be communicated is obtained from the target port by using the above-mentioned collection tool.

根据本公开的实施例,上述在上述通信连接状态为未连通的情况下,基于第一通信连接,将第二数据通信请求发送至云端的云端节点包括:According to an embodiment of the present disclosure, the above-mentioned cloud node that sends the second data communication request to the cloud based on the first communication connection when the above-mentioned communication connection state is disconnected includes:

在上述通信连接状态为未连通的情况下,在与上述源容器组对应的源节点和上述云端的云端节点之间建立第一通信连接;以及When the state of the above-mentioned communication connection is disconnected, a first communication connection is established between the source node corresponding to the above-mentioned source container group and the cloud node of the above-mentioned cloud; and

基于上述第一通信连接,将上述第二数据通信请求发送至上述云端节点。Based on the first communication connection, the second data communication request is sent to the cloud node.

根据本公开的实施例,上述数据通信方法还包括:According to an embodiment of the present disclosure, the above data communication method further includes:

在上述通信连接状态为连通的情况下,在上述源节点和上述目标节点之间建立第二通信连接;以及When the state of the communication connection is connected, establishing a second communication connection between the source node and the target node; and

基于上述第二通信连接,将上述第二数据通信请求发送至上述目标节点,以便于上述完成上述源节点与上述目标节点之间的数据通信。Based on the second communication connection, sending the second data communication request to the target node, so as to complete the data communication between the source node and the target node.

根据本公开的实施例,上述边缘端是基于KubeEdge构建的,上述云端是基于Kubernetes构建的。According to an embodiment of the present disclosure, the above-mentioned edge terminal is built based on KubeEdge, and the above-mentioned cloud is built based on Kubernetes.

根据本公开的另一个方面,提供了一种数据通信方法,应用于容器集群管理系统中的云端,上述方法包括:According to another aspect of the present disclosure, a data communication method is provided, which is applied to the cloud in a container cluster management system, and the method includes:

响应于接收到第二数据通信请求,根据上述第二数据通信请求,确定目标节点标识,其中,上述第二数据通信请求包括待通信数据和目标地址信息;以及In response to receiving the second data communication request, determine the target node identifier according to the second data communication request, wherein the second data communication request includes data to be communicated and target address information; and

利用配置工具,将上述待通信数据发送至与上述目标节点标识对应的目标节点,以便于完成上述源节点与上述目标节点之间的数据通信,其中,上述云端包括云端节点,上述云端节点部署有上述配置工具。Using a configuration tool, the above-mentioned data to be communicated is sent to the target node corresponding to the above-mentioned target node identifier, so as to complete the data communication between the above-mentioned source node and the above-mentioned target node, wherein the above-mentioned cloud includes cloud nodes, and the above-mentioned cloud nodes are deployed with The above configuration tools.

根据本公开的实施例,上述响应于接收到第二数据通信请求,根据上述第二数据通信请求,确定目标节点标识包括:According to an embodiment of the present disclosure, in response to receiving the second data communication request, determining the target node identifier according to the second data communication request includes:

根据上述目标地址信息,确定目标容器组标识;以及Determine the target container group identifier based on the above target address information; and

根据上述目标容器组标识,确定上述目标节点标识。Determine the target node ID according to the target container group ID.

根据本公开的实施例,上述利用配置工具,将上述待通信数据发送至与上述目标节点标识对应的目标节点,以便于完成上述源节点与上述目标节点之间的数据通信包括:According to an embodiment of the present disclosure, using the configuration tool above to send the data to be communicated to the target node corresponding to the target node identifier so as to complete the data communication between the source node and the target node includes:

利用上述配置工具,将上述待通信数据发送至与上述目标节点标识对应的采集工具,以便于上述采集工具将上述待通信数据转发至与上述目标容器组标识对应的目标容器组。Using the configuration tool, the data to be communicated is sent to the collection tool corresponding to the target node identifier, so that the collection tool forwards the data to be communicated to the target container group corresponding to the target container group identifier.

根据本公开的另一个方面,提供了一种数据通信装置,应用于容器集群管理系统中的边缘端,上述装置包括:According to another aspect of the present disclosure, a data communication device is provided, which is applied to an edge end in a container cluster management system, and the above-mentioned device includes:

第一确定模块,用于响应于接收到第一数据通信请求,根据上述第一数据通信请求,确定通信类型和通信连接状态,其中,上述第一数据通信请求包括与源容器组对应的源地址信息和与目标容器组对应的目标地址信息;A first determining module, configured to determine a communication type and a communication connection state according to the first data communication request in response to receiving the first data communication request, wherein the first data communication request includes a source address corresponding to the source container group information and target address information corresponding to the target container group;

获取模块,用于根据上述通信类型,利用与上述源地址信息对应的采集工具,获取待通信数据,其中,上述边缘端包括至少一个边缘节点,上述至少一个边缘节点各自部署有上述采集工具;以及An acquisition module, configured to use a collection tool corresponding to the source address information to obtain data to be communicated according to the communication type, wherein the edge end includes at least one edge node, and each of the at least one edge node is equipped with the collection tool; and

第一发送模块,用于在上述通信连接状态为未连通的情况下,基于第一通信连接,将第二数据通信请求发送至云端的云端节点,以便于上述云端节点根据上述目标地址信息,将上述第二数据通信请求转发至与上述目标容器组对应的目标节点,其中,上述第二数据通信请求包括上述待通信数据和上述目标地址信息。The first sending module is configured to send the second data communication request to the cloud node in the cloud based on the first communication connection when the communication connection state is disconnected, so that the cloud node sends the request to the cloud node based on the target address information. The second data communication request is forwarded to the target node corresponding to the target container group, wherein the second data communication request includes the data to be communicated and the target address information.

根据本公开的另一个方面,提供了一种数据通信装置,应用于容器集群管理系统中的云端,上述装置包括:According to another aspect of the present disclosure, a data communication device is provided, which is applied to a cloud in a container cluster management system, and the above-mentioned device includes:

第二确定模块,用于响应于接收到第二数据通信请求,根据上述第二数据通信请求,确定目标节点标识,其中,上述第二数据通信请求包括待通信数据和目标地址信息;以及The second determination module is configured to determine the target node identifier according to the second data communication request in response to receiving the second data communication request, wherein the second data communication request includes data to be communicated and target address information; and

第二发送模块,用于利用配置工具,将上述待通信数据发送至与上述目标节点标识对应的目标节点,以便于完成上述源节点与上述目标节点之间的数据通信,其中,上述云端包括云端节点,上述云端节点部署有上述配置工具。The second sending module is configured to use a configuration tool to send the above-mentioned data to be communicated to the target node corresponding to the above-mentioned target node identifier, so as to complete the data communication between the above-mentioned source node and the above-mentioned target node, wherein the above-mentioned cloud includes the cloud node, the above-mentioned cloud node is deployed with the above-mentioned configuration tool.

根据本公开的另一个方面,提供了一种电子设备,包括:According to another aspect of the present disclosure, an electronic device is provided, including:

一个或多个处理器;one or more processors;

存储器,用于存储一个或多个指令,memory for storing one or more instructions,

其中,当上述一个或多个指令被上述一个或多个处理器执行时,使得上述一个或多个处理器实现如本公开所述的方法。Wherein, when the above-mentioned one or more instructions are executed by the above-mentioned one or more processors, the above-mentioned one or more processors are made to implement the method as described in the present disclosure.

根据本公开的另一个方面,提供了一种计算机可读存储介质,其上存储有可执行指令,上述可执行指令被处理器执行时使处理器实现如本公开所述的方法。According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which executable instructions are stored, and when executed by a processor, the executable instruction causes the processor to implement the method as described in the present disclosure.

根据本公开的另一个方面,提供了一种计算机程序产品,上述计算机程序产品包括计算机可执行指令,上述计算机可执行指令在被执行时用于实现如本公开所述的方法。According to another aspect of the present disclosure, there is provided a computer program product comprising computer-executable instructions for implementing the method as described in the present disclosure when executed.

根据本公开的实施例,由于通信类型和通信连接状态是根据第一数据通信请求确定的,通过根据通信类型,利用与源地址信息对应的采集工具获取待通信数据,并在通信连接状态为未连通的情况下,经由云端的云端节点将待通信数据和目标地址信息转发至与目标容器组对应的目标节点,由此打通了边缘计算中部署于云端的容器组和部署于边缘端的容器组之间的网络通路,因而至少部分地克服了相关技术中无法保障边缘计算过程中不同节点之间的通信稳定性和通信效率的技术问题,进而实现了跨云端节点或跨边缘节点的数据通信,保障了容器集群管理系统中的通信稳定性和通信效率。According to the embodiment of the present disclosure, since the communication type and the communication connection state are determined according to the first data communication request, according to the communication type, the data to be communicated is obtained by using the collection tool corresponding to the source address information, and the data to be communicated is obtained when the communication connection state is not yet In the case of connectivity, the data to be communicated and the target address information are forwarded to the target node corresponding to the target container group via the cloud node in the cloud, thus opening up the connection between the container group deployed on the cloud and the container group deployed on the edge in edge computing. Therefore, it at least partially overcomes the technical problems in related technologies that cannot guarantee the communication stability and communication efficiency between different nodes in the edge computing process, and then realizes data communication across cloud nodes or cross-edge nodes, ensuring It improves the communication stability and communication efficiency in the container cluster management system.

附图说明Description of drawings

通过以下参照附图对本公开实施例的描述,本公开的上述以及其他目的、特征和优点将更为清楚,在附图中:The above and other objects, features and advantages of the present disclosure will be more clearly described through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

图1示意性示出了根据本公开实施例的可以应用数据通信方法的系统架构;FIG. 1 schematically shows a system architecture to which a data communication method can be applied according to an embodiment of the present disclosure;

图2示意性示出了根据本公开实施例的数据通信方法的流程图;Fig. 2 schematically shows a flow chart of a data communication method according to an embodiment of the present disclosure;

图3A示意性示出了根据本公开实施例的确定与边缘节点对应的子网段范围过程的示例示意图;FIG. 3A schematically shows an exemplary schematic diagram of the process of determining the range of a subnet segment corresponding to an edge node according to an embodiment of the present disclosure;

图3B示意性示出了根据本公开实施例的确定与边缘节点对应的至少一个容器组各自的地址信息过程的示例示意图;FIG. 3B schematically shows an exemplary schematic diagram of a process of determining respective address information of at least one container group corresponding to an edge node according to an embodiment of the present disclosure;

图3C示意性示出了根据本公开实施例的确定第一路由规则和第二路由规则过程的示例示意图;FIG. 3C schematically shows an exemplary schematic diagram of a process of determining a first routing rule and a second routing rule according to an embodiment of the present disclosure;

图4示意性示出了根据本公开实施例的根据第一数据通信请求,确定通信类型和通信连接状态过程的示例示意图;Fig. 4 schematically shows an exemplary schematic diagram of a process of determining a communication type and a communication connection state according to a first data communication request according to an embodiment of the present disclosure;

图5示意性示出了根据本公开实施例的数据通信过程的示例示意图;Fig. 5 schematically shows an exemplary schematic diagram of a data communication process according to an embodiment of the present disclosure;

图6示意性示出了根据本公开另一实施例的数据通信方法的流程图;FIG. 6 schematically shows a flowchart of a data communication method according to another embodiment of the present disclosure;

图7示意性示出了根据本公开另一实施例的数据通信过程的示例示意图;Fig. 7 schematically shows an exemplary schematic diagram of a data communication process according to another embodiment of the present disclosure;

图8示意性示出了根据本公开实施例的数据通信装置的框图;Fig. 8 schematically shows a block diagram of a data communication device according to an embodiment of the present disclosure;

图9示意性示出了根据本公开另一实施例的数据通信装置的框图;以及Fig. 9 schematically shows a block diagram of a data communication device according to another embodiment of the present disclosure; and

图10示意性示出了根据本公开实施例的适于实现数据通信方法的电子设备的框图。Fig. 10 schematically shows a block diagram of an electronic device suitable for implementing a data communication method according to an embodiment of the present disclosure.

具体实施方式Detailed ways

以下,将参照附图来描述本公开的实施例。但是应该理解,这些描述只是示例性的,而并非要限制本公开的范围。在下面的详细描述中,为便于解释,阐述了许多具体的细节以提供对本公开实施例的全面理解。然而,明显地,一个或多个实施例在没有这些具体细节的情况下也可以被实施。此外,在以下说明中,省略了对公知结构和技术的描述,以避免不必要地混淆本公开的概念。Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. It should be understood, however, that these descriptions are exemplary only, and are not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Also, in the following description, descriptions of well-known structures and techniques are omitted to avoid unnecessarily obscuring the concept of the present disclosure.

在此使用的术语仅仅是为了描述具体实施例,而并非意在限制本公开。在此使用的术语“包括”、“包含”等表明了所述特征、步骤、操作和/或部件的存在,但是并不排除存在或添加一个或多个其他特征、步骤、操作或部件。The terminology used herein is for the purpose of describing particular embodiments only, and is not intended to be limiting of the present disclosure. The terms "comprising", "comprising", etc. used herein indicate the presence of stated features, steps, operations and/or components, but do not exclude the presence or addition of one or more other features, steps, operations or components.

在此使用的所有术语(包括技术和科学术语)具有本领域技术人员通常所理解的含义,除非另外定义。应注意,这里使用的术语应解释为具有与本说明书的上下文相一致的含义,而不应以理想化或过于刻板的方式来解释。All terms (including technical and scientific terms) used herein have the meaning commonly understood by one of ordinary skill in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted to have a meaning consistent with the context of this specification, and not be interpreted in an idealized or overly rigid manner.

在使用类似于“A、B和C等中至少一个”这样的表述的情况下,一般来说应该按照本领域技术人员通常理解该表述的含义来予以解释(例如,“具有A、B和C中至少一个的系统”应包括但不限于单独具有A、单独具有B、单独具有C、具有A和B、具有A和C、具有B和C、和/或具有A、B、C的系统等)。在使用类似于“A、B或C等中至少一个”这样的表述的情况下,一般来说应该按照本领域技术人员通常理解该表述的含义来予以解释(例如,“具有A、B或C中至少一个的系统”应包括但不限于单独具有A、单独具有B、单独具有C、具有A和B、具有A和C、具有B和C、和/或具有A、B、C的系统等)。Where expressions such as "at least one of A, B, and C, etc." are used, they should generally be interpreted as those skilled in the art would normally understand the expression (for example, "having A, B, and C A system of at least one of "shall include, but not be limited to, systems with A alone, B alone, C alone, A and B, A and C, B and C, and/or A, B, C, etc. ). Where expressions such as "at least one of A, B, or C, etc." are used, they should generally be interpreted as those skilled in the art would normally understand the expression (for example, "having A, B, or C A system of at least one of "shall include, but not be limited to, systems with A alone, B alone, C alone, A and B, A and C, B and C, and/or A, B, C, etc. ).

在本公开的技术方案中,所涉及的用户个人信息的获取,存储和应用等,均符合相关法律法规的规定,采取了必要保密措施,且不违背公序良俗。In the technical solution of the present disclosure, the acquisition, storage and application of the user's personal information involved are in compliance with relevant laws and regulations, necessary confidentiality measures have been taken, and they do not violate public order and good customs.

在本公开的技术方案中,在获取或采集用户个人信息之前,均获取了用户的授权或同意。In the technical solution of the present disclosure, before acquiring or collecting the user's personal information, the user's authorization or consent is obtained.

云部分可以是指传统云计算的中心节点,属于边缘计算的管控端。边部分可以是指云计算的边缘侧,包括基础设施边缘和设备边缘。端部分可以是指终端设备,例如手机、智能家电、各类传感器和摄像头等。The cloud part can refer to the central node of traditional cloud computing, which belongs to the control terminal of edge computing. The edge part may refer to the edge side of cloud computing, including infrastructure edge and device edge. The terminal part may refer to terminal devices, such as mobile phones, smart home appliances, various sensors and cameras, etc.

通过云部分的Kubernetes控制节点和边部分的KubeEdge所运行的节点可以实现云边协同。通过边部分的KubeEdge和端部分的EdgeX Foundry可以实现边端协同。Cloud-side collaboration can be realized through the Kubernetes control node in the cloud part and the nodes run by KubeEdge in the edge part. Edge-to-end collaboration can be achieved through KubeEdge in the edge part and EdgeX Foundry in the end part.

在现有技术中,通常采用EdgeMesh组件实现云端Pod和边缘Pod之间的通信。例如,通过创建并访问对应的Service,以间接实现访问对应的Pod。但是,由于EdgeMesh是基于用户空间实现的Service功能,因而每个Service均需要在节点上启动服务监听端口,在大规模集群中容易出现端口不够用的情况。In the prior art, the EdgeMesh component is usually used to realize the communication between the cloud Pod and the edge Pod. For example, by creating and accessing the corresponding Service, the corresponding Pod can be accessed indirectly. However, since EdgeMesh is a service function implemented based on user space, each service needs to start a service listening port on the node, which is prone to insufficient ports in large-scale clusters.

此外,由于Service功能对于某些集群类型并不适用,无法满足某些特定的边缘计算场景,可能存在无法通过Service功能实现通信的问题。In addition, because the Service function is not applicable to some cluster types and cannot meet certain specific edge computing scenarios, there may be a problem that communication cannot be achieved through the Service function.

为了至少部分地解决相关技术中存在的技术问题,本公开提供了一种数据通信方法及装置、电子设备和计算机可读存储介质,可以应用于边缘计算技术领域和金融科技领域。该数据通信方法包括:响应于接收到第一数据通信请求,根据第一数据通信请求,确定通信类型和通信连接状态,其中,第一数据通信请求包括与源容器组对应的源地址信息和与目标容器组对应的目标地址信息;根据通信类型,利用与源地址信息对应的采集工具,获取待通信数据,其中,边缘端包括至少一个边缘节点,至少一个边缘节点各自部署有采集工具;在通信连接状态为未连通的情况下,基于第一通信连接,将第二数据通信请求发送至云端的云端节点,以便于云端节点根据目标地址信息,将第二数据通信请求转发至与目标容器组对应的目标节点,其中,第二数据通信请求包括待通信数据和目标地址信息。In order to at least partly solve the technical problems in related technologies, the present disclosure provides a data communication method and device, electronic equipment, and a computer-readable storage medium, which can be applied in the field of edge computing technology and the field of financial technology. The data communication method includes: in response to receiving a first data communication request, determining a communication type and a communication connection status according to the first data communication request, wherein the first data communication request includes source address information corresponding to a source container group and the The target address information corresponding to the target container group; according to the communication type, use the collection tool corresponding to the source address information to obtain the data to be communicated, wherein the edge end includes at least one edge node, and at least one edge node is equipped with a collection tool; in the communication When the connection status is disconnected, based on the first communication connection, the second data communication request is sent to the cloud node in the cloud, so that the cloud node forwards the second data communication request to the container group corresponding to the target container group according to the target address information. The target node of , wherein the second data communication request includes data to be communicated and target address information.

需要说明的是,本公开实施例提供的数据通信方法和装置可用于边缘计算技术领域和金融科技领域,例如应用于Kubernetes容器技术领域。本公开实施例提供的数据通信方法和装置也可用于除边缘计算技术领域和金融科技领域之外的任意领域,例如应用于计算机技术领域。本公开实施例提供的数据通信方法和装置的应用领域不做限定。It should be noted that the data communication method and device provided by the embodiments of the present disclosure can be used in the field of edge computing technology and the field of financial technology, for example, in the field of Kubernetes container technology. The data communication method and device provided by the embodiments of the present disclosure may also be used in any field other than the field of edge computing technology and the field of financial technology, for example, in the field of computer technology. The application fields of the data communication method and device provided in the embodiments of the present disclosure are not limited.

图1示意性示出了根据本公开实施例的可以应用数据通信方法的系统架构。需要注意的是,图1所示仅为可以应用本公开实施例的系统架构的示例,以帮助本领域技术人员理解本公开的技术内容,但并不意味着本公开实施例不可以用于其他设备、系统、环境或场景。Fig. 1 schematically shows a system architecture to which a data communication method can be applied according to an embodiment of the present disclosure. It should be noted that, what is shown in FIG. 1 is only an example of the system architecture to which the embodiments of the present disclosure can be applied, so as to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other device, system, environment or scenario.

如图1所示,根据该实施例的系统架构100可以包括第一终端设备101、第二终端设备102、第三终端设备103,网络104和服务器105。网络104用以在第一终端设备101、第二终端设备102、第三终端设备103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , a system architecture 100 according to this embodiment may include a first terminal device 101 , a second terminal device 102 , a third terminal device 103 , a network 104 and a server 105 . The network 104 is used as a medium for providing communication links among the first terminal device 101 , the second terminal device 102 , the third terminal device 103 and the server 105 . Network 104 may include various connection types, such as wires, wireless communication links, or fiber optic cables, among others.

用户可以使用第一终端设备101、第二终端设备102、第三终端设备103中的至少一个通过网络104与服务器105交互,以接收或发送消息等。第一终端设备101、第二终端设备102、第三终端设备103上可以安装有各种通讯客户端应用,例如购物类应用、网页浏览器应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等(仅为示例)。A user can use at least one of the first terminal device 101 , the second terminal device 102 , and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages and the like. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, Social platform software, etc. (examples only).

第一终端设备101、第二终端设备102、第三终端设备103可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers and desktop computers etc.

服务器105可以是提供各种服务的服务器,例如对用户利用第一终端设备101、第二终端设备102、第三终端设备103所浏览的网站提供支持的后台管理服务器(仅为示例)。后台管理服务器可以对接收到的用户请求等数据进行分析等处理,并将处理结果(例如根据用户请求获取或生成的网页、信息、或数据等)反馈给终端设备。The server 105 may be a server that provides various services, such as a background management server that supports websites browsed by users using the first terminal device 101 , the second terminal device 102 , and the third terminal device 103 (just an example). The background management server can analyze and process received data such as user requests, and feed back processing results (such as webpages, information, or data obtained or generated according to user requests) to the terminal device.

需要说明的是,本公开实施例所提供的数据通信方法一般可以由服务器105执行。相应地,本公开实施例所提供的数据通信装置一般可以设置于服务器105中。本公开实施例所提供的数据通信方法也可以由不同于服务器105且能够与第一终端设备101、第二终端设备102、第三终端设备103和/或服务器105通信的服务器或服务器集群执行。相应地,本公开实施例所提供的数据通信装置也可以设置于不同于服务器105且能够与第一终端设备101、第二终端设备102、第三终端设备103和/或服务器105通信的服务器或服务器集群中。It should be noted that, generally, the data communication method provided by the embodiment of the present disclosure may be executed by the server 105 . Correspondingly, the data communication device provided by the embodiments of the present disclosure may generally be set in the server 105 . The data communication method provided by the embodiments of the present disclosure may also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101 , the second terminal device 102 , the third terminal device 103 and/or the server 105 . Correspondingly, the data communication apparatus provided by the embodiments of the present disclosure may also be set on a server or a server that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and/or the server 105. in the server cluster.

备选地,本公开实施例所提供的数据处理方法也可以由第一终端设备101、第二终端设备102或第三终端设备103执行,或者也可以由不同于第一终端设备101、第二终端设备102或第三终端设备103的其他终端设备执行。相应地,本公开实施例所提供的数据通信装置也可以设置于第一终端设备101、第二终端设备102或第三终端设备103中,或设置于不同于第一终端设备101、第二终端设备102或第三终端设备103的其他终端设备中。Alternatively, the data processing method provided by the embodiments of the present disclosure may also be executed by the first terminal device 101, the second terminal device 102, or the third terminal device 103, or may be performed by a different The terminal device 102 or other terminal devices of the third terminal device 103 execute. Correspondingly, the data communication apparatus provided by the embodiments of the present disclosure may also be set in the first terminal device 101, the second terminal device 102, or the third terminal device 103, or set in a terminal different from the first terminal device 101 or the second terminal device. Device 102 or other terminal devices of the third terminal device 103.

应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in Fig. 1 are only illustrative. According to the implementation needs, there can be any number of terminal devices, networks and servers.

应注意,以下方法中各个操作的序号仅作为该操作的表示以便描述,而不应被看作表示该各个操作的执行顺序。除非明确指出,否则该方法不需要完全按照所示顺序来执行。It should be noted that the sequence number of each operation in the following methods is only used as a representation of the operation for description, and should not be regarded as indicating the execution order of the respective operations. The methods do not need to be performed in the exact order presented, unless explicitly stated otherwise.

图2示意性示出了根据本公开实施例的数据通信方法的流程图。Fig. 2 schematically shows a flowchart of a data communication method according to an embodiment of the present disclosure.

如图2所示,该数据通信方法200包括操作S210~S230。As shown in FIG. 2, the data communication method 200 includes operations S210-S230.

在操作S210,响应于接收到第一数据通信请求,根据第一数据通信请求,确定通信类型和通信连接状态,其中,第一数据通信请求包括与源容器组对应的源地址信息和与目标容器组对应的目标地址信息。In operation S210, in response to receiving the first data communication request, determine the communication type and communication connection status according to the first data communication request, wherein the first data communication request includes source address information corresponding to the source container group and The target address information corresponding to the group.

在操作S220,根据通信类型,利用与源地址信息对应的采集工具,获取待通信数据,其中,边缘端包括至少一个边缘节点,至少一个边缘节点各自部署有采集工具。In operation S220, according to the type of communication, the data to be communicated is obtained using a collection tool corresponding to the source address information, wherein the edge end includes at least one edge node, and each of the at least one edge node is equipped with a collection tool.

在操作S230,在通信连接状态为未连通的情况下,基于第一通信连接,将第二数据通信请求发送至云端的云端节点,以便于云端节点根据目标地址信息,将第二数据通信请求转发至与目标容器组对应的目标节点,其中,第二数据通信请求包括待通信数据和目标地址信息。In operation S230, when the communication connection state is disconnected, based on the first communication connection, the second data communication request is sent to the cloud node in the cloud, so that the cloud node forwards the second data communication request according to the target address information To the target node corresponding to the target container group, wherein the second data communication request includes data to be communicated and target address information.

根据本公开的实施例,数据通信方法200可以应用于容器集群管理系统中的边缘端。According to an embodiment of the present disclosure, the data communication method 200 may be applied to an edge end in a container cluster management system.

根据本公开的实施例,容器集群管理系统可以包括边缘端和云端。边缘端可以用于运行边缘应用和管理接入设备。边缘端可以包括至少一个边缘节点。边缘节点可以表征容器集群中用于业务数据处理的节点。云端可以用于应用和配置的下发。云端可以包括云端节点。云端节点可以表征容器集群中用于部署管控组件的节点。节点(即node)可以表征容器集群中被管理的独立主机,例如,物理机或虚拟机。According to an embodiment of the present disclosure, the container cluster management system may include an edge terminal and a cloud. The edge end can be used to run edge applications and manage access devices. An edge end may include at least one edge node. Edge nodes can represent nodes used for business data processing in container clusters. The cloud can be used to deliver applications and configurations. The cloud may include cloud nodes. Cloud nodes can represent the nodes used to deploy control components in the container cluster. A node (ie, node) may represent an independent host managed in a container cluster, for example, a physical machine or a virtual machine.

根据本公开的实施例,至少一个边缘节点中的每个边缘节点均可以包括至少一个容器组(即pod)。容器组可以表征容器集群中创建和管理的最小可部署计算单元。至少一个容器组中的每个容器组均可以包括至少一个容器。例如,源节点和目标节点可以属于边缘节点。源节点可以包括源容器组。目标节点可以包括目标容器组。According to an embodiment of the present disclosure, each of the at least one edge node may include at least one container group (ie pod). A container group can represent the smallest deployable computing unit created and managed in a container cluster. Each container group of the at least one container group may include at least one container. For example, source nodes and target nodes may belong to edge nodes. A source node may include a source container group. A target node may include a target container group.

根据本公开的实施例,可以将生成第一数据通信请求的代码预先写入第一脚本中,响应于检测到边缘端的源节点发起的数据通信操作,容器集群管理系统可以运行该第一脚本,生成第一数据通信请求。容器集群管理系统可以将第一数据通信请求发送至容器集群管理系统中的边缘端,以便于边缘端根据该第一数据通信请求获取待通信数据。According to an embodiment of the present disclosure, the code for generating the first data communication request may be pre-written into the first script, and in response to detecting the data communication operation initiated by the source node at the edge end, the container cluster management system may run the first script, A first data communication request is generated. The container cluster management system may send the first data communication request to the edge end in the container cluster management system, so that the edge end obtains data to be communicated according to the first data communication request.

根据本公开的实施例,第一数据通信请求可以包括与源容器组对应的源地址信息和与目标容器组对应的目标地址信息。源地址信息和目标地址信息可以属于网际互连协议(Internet Protocol,IP)。源容器组和目标容器组可以是部署于同一个边缘节点的容器组。备选地,源容器组和目标容器组也可以是部署于同一个边缘节点的容器组。According to an embodiment of the present disclosure, the first data communication request may include source address information corresponding to the source container group and target address information corresponding to the target container group. The source address information and the destination address information may belong to Internet Protocol (IP). The source container group and target container group can be container groups deployed on the same edge node. Alternatively, the source container group and the target container group may also be container groups deployed on the same edge node.

根据本公开的实施例,在接收到第一数据通信请求之后,可以根据第一数据通信请求确定通信类型和通信连接状态。通信类型可以用于表征源节点和目标节点是否属于同一个边缘节点。通信类型可以包括以下至少之一:跨节点通信和本节点通信。通信连接状态可以用于表征源节点和目标节点之间是否存在通信连接。通信连接状态可以包括以下至少之一:未连通和连通。According to an embodiment of the present disclosure, after the first data communication request is received, the communication type and the communication connection status may be determined according to the first data communication request. The communication type can be used to characterize whether the source node and the target node belong to the same edge node. The communication type may include at least one of the following: inter-node communication and local node communication. The state of the communication connection can be used to represent whether there is a communication connection between the source node and the target node. The communication connection state may include at least one of the following: disconnected and connected.

根据本公开的实施例,在确定通信类型之后,可以根据通信类型,利用与源地址信息对应的采集工具,获取待通信数据。至少一个边缘节点可以各自部署有采集工具(即edgemesh-agent)。采集工具可以用于获取源节点的待通信数据。例如,可以通过DaemonSet的方式在每个边缘节点上分别部署采集工具。可以根据源地址信息,确定与源地址信息对应的采集工具。利用与源地址信息对应的采集工具,获取源容器组的待通信数据。According to an embodiment of the present disclosure, after the communication type is determined, the data to be communicated may be obtained according to the communication type using a collection tool corresponding to the source address information. At least one edge node may be respectively deployed with a collection tool (ie edgemesh-agent). The collection tool can be used to obtain the data to be communicated from the source node. For example, collection tools can be deployed on each edge node through DaemonSet. The collection tool corresponding to the source address information may be determined according to the source address information. The data to be communicated of the source container group is obtained by using a collection tool corresponding to the source address information.

根据本公开的实施例,可以将生成第二数据通信请求的代码预先写入第二脚本中,响应于获得待通信数据,容器集群管理系统可以运行该第二脚本,生成第二数据通信请求。容器集群管理系统可以将第二数据通信请求发送至容器集群管理系统中的边缘端,以便于边缘端将第二数据通信请求发送至云端。According to an embodiment of the present disclosure, the code for generating the second data communication request may be pre-written into the second script, and in response to obtaining the data to be communicated, the container cluster management system may run the second script to generate the second data communication request. The container cluster management system may send the second data communication request to the edge end in the container cluster management system, so that the edge end sends the second data communication request to the cloud.

根据本公开的实施例,在确定通信连接状态之后,可以在通信连接状态为未连通的情况下,在与源容器组对应的源节点和云端的云端节点之间建立第一通信连接,以便于基于第一通信连接,采用应用层协议,将第二数据通信请求发送至云端节点。应用层协议包括以下至少之一:基于传输控制协议的全双工通信协议(WebSocket)、超文本传输协议(HyperText Transfer Protocol,HTTP)和消息队列遥测传输协议(Message QueuingTelemetry Transport,MQTT)。According to an embodiment of the present disclosure, after the communication connection status is determined, a first communication connection may be established between the source node corresponding to the source container group and the cloud cloud node in the cloud when the communication connection status is disconnected, so as to facilitate Based on the first communication connection, the second data communication request is sent to the cloud node by using an application layer protocol. The application layer protocol includes at least one of the following: a transmission control protocol-based full-duplex communication protocol (WebSocket), a hypertext transfer protocol (HyperText Transfer Protocol, HTTP) and a message queue telemetry transport protocol (Message QueuingTelemetry Transport, MQTT).

根据本公开的实施例,云端节点在接收到第二数据通信请求之后,可以将待通信数据发送至目标节点。目标节点在接收到第二数据通信请求之后,可以根据第二数据通信请求中的目标地址信息,确定目标容器组标识。根据目标容器组标识,将待通信数据发送至目标容器组。According to an embodiment of the present disclosure, after receiving the second data communication request, the cloud node may send the data to be communicated to the target node. After receiving the second data communication request, the target node may determine the target container group identifier according to the target address information in the second data communication request. According to the identification of the target container group, the data to be communicated is sent to the target container group.

根据本公开的实施例,由于通信类型和通信连接状态是根据第一数据通信请求确定的,通过根据通信类型,利用与源地址信息对应的采集工具获取待通信数据,并在通信连接状态为未连通的情况下,经由云端的云端节点将待通信数据和目标地址信息转发至与目标容器组对应的目标节点,由此打通了边缘计算中部署于云端的容器组和部署于边缘端的容器组之间的网络通路,因而至少部分地克服了相关技术中无法保障边缘计算过程中不同节点之间的通信稳定性和通信效率的技术问题,进而实现了跨云端节点或跨边缘节点的数据通信,保障了容器集群管理系统的通信稳定性和通信效率。According to the embodiment of the present disclosure, since the communication type and the communication connection state are determined according to the first data communication request, according to the communication type, the data to be communicated is obtained by using the collection tool corresponding to the source address information, and the data to be communicated is obtained when the communication connection state is not yet In the case of connectivity, the data to be communicated and the target address information are forwarded to the target node corresponding to the target container group via the cloud node in the cloud, thus opening up the connection between the container group deployed on the cloud and the container group deployed on the edge in edge computing. Therefore, it at least partially overcomes the technical problems in related technologies that cannot guarantee the communication stability and communication efficiency between different nodes in the edge computing process, and then realizes data communication across cloud nodes or cross-edge nodes, ensuring It improves the communication stability and communication efficiency of the container cluster management system.

下面参考图3A、图3B、图3C、图4和图5,对根据本发明实施例的数据通信方法200做进一步说明。The data communication method 200 according to the embodiment of the present invention will be further described below with reference to FIG. 3A , FIG. 3B , FIG. 3C , FIG. 4 and FIG. 5 .

根据本公开的实施例,边缘端是基于KubeEdge构建的,云端是基于Kubernetes构建的。According to the embodiment of the present disclosure, the edge end is built based on KubeEdge, and the cloud is built based on Kubernetes.

根据本公开的实施例,Kubernetes(即K8s)为容器编排引擎,可以用于对容器化应用进行自动化部署、扩缩和管理。可以基于Kubernetes构建云端。According to the embodiment of the present disclosure, Kubernetes (that is, K8s) is a container orchestration engine, which can be used for automatic deployment, scaling and management of containerized applications. The cloud can be built based on Kubernetes.

根据本公开的实施例,KubeEdge是基于Kubernetes构建的。KubeEdge可以将原生的容器化应用程序编排功能扩展到边缘节点。KubeEdge可以为云、边缘之间的网络通信、应用程序部署以及元数据同步提供核心基础架构支持。可以基于KubeEdge构建边缘端。According to an embodiment of the present disclosure, KubeEdge is built based on Kubernetes. KubeEdge can extend native containerized application orchestration capabilities to edge nodes. KubeEdge can provide core infrastructure support for network communication between cloud and edge, application deployment, and metadata synchronization. The edge end can be built based on KubeEdge.

根据本公开的实施例,地址信息可以通过以下方式确定。According to an embodiment of the present disclosure, address information may be determined in the following manner.

针对至少一个边缘节点中的每个边缘节点,根据容器集群管理系统的网段范围,确定与边缘节点对应的子网段范围。根据与边缘节点对应的子网段范围,确定与边缘节点对应的至少一个容器组各自的地址信息。For each of the at least one edge node, according to the network segment range of the container cluster management system, determine the subnet segment range corresponding to the edge node. According to the range of the subnet segment corresponding to the edge node, the respective address information of at least one container group corresponding to the edge node is determined.

根据本公开的实施例,至少一个边缘节点中的每个边缘节点均可以包括至少一个容器组。至少一个容器组可以各自对应有地址信息。According to an embodiment of the present disclosure, each of the at least one edge node may include at least one container group. At least one container group may have address information corresponding to each.

根据本公开的实施例,在部署容器集群管理系统的过程中,可以预设容器集群管理系统的网段范围。网段范围可以包括无类别域间路由(Classless Inter-DomainRouting,CIDR)。网段范围可以用于限定了容器集群中容器组的网络地址范围。According to an embodiment of the present disclosure, during the process of deploying the container cluster management system, the network segment range of the container cluster management system may be preset. The network segment range can include Classless Inter-Domain Routing (CIDR). The network segment range can be used to limit the network address range of the container group in the container cluster.

根据本公开的实施例,响应于检测到新的边缘节点接入容器集群,根据容器集群管理系统的网段范围,确定与边缘节点对应的子网段范围。例如,可以利用IP地址管理(IPAddress Management,IPAM)为每个边缘节点分配全局唯一的地址段,调度到该边缘节点的容器组的地址信息均可以位于子网段范围之中。According to an embodiment of the present disclosure, in response to detecting that a new edge node is connected to the container cluster, the subnetwork segment range corresponding to the edge node is determined according to the network segment range of the container cluster management system. For example, IP Address Management (IPAddress Management, IPAM) can be used to assign a globally unique address segment to each edge node, and the address information of the container group scheduled to the edge node can be located in the range of the subnet.

根据本公开的实施例,在确定与边缘节点对应的子网段范围之后,可以将与该边缘节点对应的节点标识和子网段范围进行记录。例如,可以将与该边缘节点对应的节点标识和子网段范围记录在边缘节点的annotation中。边缘节点的annotation属于map类型字段,可以利用键值对保存节点对外的地址信息。例如,键值对可以为“edgemesh-agent.nodeA/public-ip:192.168.100.10”,在此情况下,可以表征边缘节点A的地址信息为192.168.100.10。According to an embodiment of the present disclosure, after the subnetwork segment range corresponding to the edge node is determined, the node identifier and the subnetwork segment range corresponding to the edge node may be recorded. For example, the node identifier and subnet segment range corresponding to the edge node may be recorded in the annotation of the edge node. The annotation of the edge node belongs to the map type field, which can use the key-value pair to store the external address information of the node. For example, the key-value pair can be "edgemesh-agent.nodeA/public-ip:192.168.100.10", in this case, the address information that can represent edge node A is 192.168.100.10.

图3A示意性示出了根据本公开实施例的确定与边缘节点对应的子网段范围过程的示例示意图。Fig. 3A schematically shows an exemplary schematic diagram of a process of determining a subnet segment range corresponding to an edge node according to an embodiment of the present disclosure.

如图3A所示,在300A中,至少一个边缘节点301可以包括边缘节点3011、边缘节点3012、…、边缘节点301m、…、边缘节点301M。M可以是大于或等于1的整数,m∈{1,2,…,(M-1),M}。As shown in FIG. 3A , in 300A, at least one edge node 301 may include an edge node 3011 , an edge node 3012 , . . . , an edge node 301m, . . . , an edge node 301M. M can be an integer greater than or equal to 1, m ∈ {1, 2, . . . , (M−1), M}.

可以根据容器集群管理系统的网段范围,确定与边缘节点3011对应的子网段范围3021、与边缘节点3012对应的子网段范围3022、…、与边缘节点301m对应的子网段范围302m、…、与边缘节点301M对应的子网段范围302M。According to the network segment range of the container cluster management system, the subnet segment range 3021 corresponding to the edge node 3011, the subnet segment range 3022 corresponding to the edge node 3012, ..., the subnet segment range 302m corresponding to the edge node 301m, ..., the subnet segment range 302M corresponding to the edge node 301M.

图3B示意性示出了根据本公开实施例的确定与边缘节点对应的至少一个容器组各自的地址信息过程的示例示意图。Fig. 3B schematically shows an exemplary schematic diagram of a process of determining respective address information of at least one container group corresponding to an edge node according to an embodiment of the present disclosure.

如图3B所示,在300B中,针对至少一个边缘节点中的每个边缘节点303,边缘节点303可以包括至少一个容器组。至少一个容器组可以包括容器组304_1、容器组304_2、…、容器组304_n、…、容器组304_N。N可以是大于或等于1的整数,n∈{1,2,…,(N-1),N}。As shown in FIG. 3B , in 300B, for each edge node 303 in the at least one edge node, the edge node 303 may include at least one container group. The at least one container group may include container group 304_1 , container group 304_2 , . . . , container group 304_n, . . . , container group 304_N. N may be an integer greater than or equal to 1, n∈{1, 2, . . . , (N−1), N}.

可以根据与边缘节点303对应的子网段范围,确定与边缘节点303对应的容器组304_1的地址信息305_1、容器组304_2的地址信息305_2、…、容器组304_n的地址信息305_n、…、容器组304N的地址信息305_N。According to the subnet segment range corresponding to the edge node 303, the address information 305_1 of the container group 304_1 corresponding to the edge node 303, the address information 305_2 of the container group 304_2, ..., the address information 305_n of the container group 304_n, ..., the container group Address information 305_N of 304N.

根据本公开的实施例,数据通信方法200还可以包括如下操作。According to an embodiment of the present disclosure, the data communication method 200 may further include the following operations.

根据与边缘节点对应的边缘节点标识和至少一个容器组标识,确定第一路由规则。根据至少一个容器组标识和至少一个容器组各自的地址信息,确定第二路由规则。The first routing rule is determined according to the edge node identifier corresponding to the edge node and at least one container group identifier. A second routing rule is determined according to the at least one container group identifier and the respective address information of the at least one container group.

根据本公开的实施例,至少一个边缘节点可以各自对应有边缘节点标识。至少一个容器组可以各自对应有容器组标识。According to an embodiment of the present disclosure, at least one edge node may have an edge node identifier corresponding to each. At least one container group may have a container group identifier corresponding to it.

根据本公开的实施例,边缘节点标识可以用于标识边缘节点。容器组标识可以用于标识容器组。第一路由规则可以包括边缘节点标识和至少一个容器组标识之间的对应关系。第二路由规则可以包括至少一个容器组标识和至少一个容器组各自的地址信息之间的对应关系。According to an embodiment of the present disclosure, an edge node identifier may be used to identify an edge node. A container group ID can be used to identify a container group. The first routing rule may include a correspondence between an edge node identifier and at least one container group identifier. The second routing rule may include a correspondence between the at least one container group identifier and the respective address information of the at least one container group.

根据本公开的实施例,响应于检测到新的边缘节点接入容器集群,可以在该边缘节点上创建网卡tun0。网卡tun0可以属于tunnle类型。响应于接收到第一数据通信请求,可以根据第一路由规则和第二路由规则,确定通信类型。在通信类型为跨节点通信的情况下,可以将待通信数据发送至网卡tun0。According to an embodiment of the present disclosure, in response to detecting that a new edge node is connected to the container cluster, a network card tun0 may be created on the edge node. The network card tun0 can belong to the tunnle type. In response to receiving the first data communication request, the communication type may be determined according to the first routing rule and the second routing rule. When the communication type is cross-node communication, the data to be communicated can be sent to the network card tun0.

根据本公开的实施例,由于与边缘节点对应的子网段范围是根据容器集群管理系统的网段范围确定的,而与边缘节点对应的至少一个容器组各自的地址信息是根据与边缘节点对应的子网段范围确定的,因而能够自动为与边缘节点对应的至少一个容器组分配地址信息,由此保障了容器集群管理系统的通信效率。在此基础上,由于第一路由规则是根据与边缘节点对应的边缘节点标识和至少一个容器组标识确定的,而第二路由规则是根据至少一个容器组标识和至少一个容器组各自的地址信息确定的,因而能够为边缘节点自动配置路由规则,进而保障了容器集群管理系统的通信准确性。According to an embodiment of the present disclosure, since the range of the subnet segment corresponding to the edge node is determined according to the range of the network segment of the container cluster management system, and the respective address information of at least one container group corresponding to the edge node is determined according to the range corresponding to the edge node The range of the subnet segment is determined, so address information can be automatically assigned to at least one container group corresponding to the edge node, thereby ensuring the communication efficiency of the container cluster management system. On this basis, since the first routing rule is determined according to the edge node ID corresponding to the edge node and at least one container group ID, and the second routing rule is based on at least one container group ID and the respective address information of at least one container group Therefore, routing rules can be automatically configured for edge nodes, thereby ensuring the communication accuracy of the container cluster management system.

图3C示意性示出了根据本公开实施例的确定第一路由规则和第二路由规则过程的示例示意图。Fig. 3C schematically shows an exemplary schematic diagram of a process of determining a first routing rule and a second routing rule according to an embodiment of the present disclosure.

如图3C所示,在300C中,在确定与边缘节点对应的至少一个容器组各自的地址信息之后,针对至少一个边缘节点中的每个边缘节点,可以根据与边缘节点对应的边缘节点标识306和至少一个容器组标识307,确定第一路由规则309。根据至少一个容器组标识307和至少一个容器组各自的地址信息308,确定第二路由规则310。As shown in FIG. 3C, in 300C, after determining the respective address information of at least one container group corresponding to the edge node, for each edge node in the at least one edge node, according to the edge node identifier 306 corresponding to the edge node and at least one container group identifier 307 to determine a first routing rule 309 . A second routing rule 310 is determined according to the at least one container group identifier 307 and the respective address information 308 of the at least one container group.

根据本公开的实施例,操作S210可以包括如下操作。According to an embodiment of the present disclosure, operation S210 may include the following operations.

根据源地址信息、目标地址信息、第一路由规则和第二路由规则,确定源节点标识和目标节点标识。根据源节点标识和目标节点标识,确定通信类型和通信连接状态。Determine the source node identifier and the destination node identifier according to the source address information, the destination address information, the first routing rule and the second routing rule. According to the source node identifier and the target node identifier, the communication type and communication connection status are determined.

根据本公开的实施例,响应于接收到第一数据通信请求,可以获取与源地址信息对应的第一路由规则和第二路由规则。在获得第一路由规则和第二路由规则之后,可以根据源地址信息和第二路由规则,确定源容器组标识。在确定源容器组标识之后,可以根据源容器组标识和第一路由规则,确定源节点标识。According to an embodiment of the present disclosure, in response to receiving the first data communication request, the first routing rule and the second routing rule corresponding to the source address information may be acquired. After the first routing rule and the second routing rule are obtained, the source container group identifier may be determined according to the source address information and the second routing rule. After the source container group identifier is determined, the source node identifier may be determined according to the source container group identifier and the first routing rule.

根据本公开的实施例,在获得第一路由规则和第二路由规则之后,还可以据目标地址信息和第二路由规则,确定目标容器组标识。在确定目标容器组标识之后,可以根据目标容器组标识和第一路由规则,确定目标节点标识。According to an embodiment of the present disclosure, after the first routing rule and the second routing rule are obtained, the target container group identifier may also be determined according to the target address information and the second routing rule. After the target container group identifier is determined, the target node identifier may be determined according to the target container group identifier and the first routing rule.

根据本公开的实施例,在确定源节点标识和目标节点标识之后,可以根据确定源节点标识和目标节点标识确定通信类型。通信类型可以用于表征源节点和目标节点是否属于同一个边缘节点。通信类型可以包括以下至少之一:跨节点通信和本节点通信。备选地,可以根据确定源节点标识和目标节点标识确定通信连接状态。通信连接状态可以用于表征源节点和目标节点之间是否存在通信连接。通信连接状态可以包括以下至少之一:未连通和连通。According to an embodiment of the present disclosure, after the source node identifier and the target node identifier are determined, the communication type may be determined according to the determined source node identifier and the target node identifier. The communication type can be used to characterize whether the source node and the target node belong to the same edge node. The communication type may include at least one of the following: inter-node communication and local node communication. Alternatively, the communication connection state may be determined according to determining the source node identifier and the target node identifier. The state of the communication connection can be used to represent whether there is a communication connection between the source node and the target node. The communication connection state may include at least one of the following: disconnected and connected.

根据本公开的实施例,根据源地址信息、目标地址信息、第一路由规则和第二路由规则,确定源节点标识和目标节点标识可以包括如下操作。According to an embodiment of the present disclosure, determining the source node identifier and the destination node identifier according to the source address information, the destination address information, the first routing rule and the second routing rule may include the following operations.

根据源地址信息和第二路由规则,确定源容器组标识。根据源容器组标识和第一路由规则,确定源节点标识。根据目标地址信息和第二路由规则,确定目标容器组标识。根据目标容器组标识和第一路由规则,确定目标节点标识。Determine the source container group identifier according to the source address information and the second routing rule. Determine the source node identifier according to the source container group identifier and the first routing rule. Determine the target container group identifier according to the target address information and the second routing rule. Determine the target node ID according to the target container group ID and the first routing rule.

根据本公开的实施例,根据源节点标识和目标节点标识,确定通信类型和通信连接状态可以包括如下操作。According to an embodiment of the present disclosure, determining the communication type and the communication connection state according to the source node identifier and the target node identifier may include the following operations.

在源节点标识和目标节点标识相一致的情况下,确定通信类型为本节点通信。在源节点标识和目标节点标识不一致的情况下,确定通信类型为跨节点通信。在源节点和目标节点之间存在心跳连接的情况下,确定通信连接状态为连通,其中,源节点与源节点标识相对应,目标节点与目标节点标识相对应。在源节点和目标节点之间不存在心跳连接的情况下,确定通信连接状态为未连通。In the case that the source node ID is consistent with the target node ID, it is determined that the communication type is local node communication. In the case that the source node identifier is inconsistent with the target node identifier, the communication type is determined to be cross-node communication. If there is a heartbeat connection between the source node and the target node, it is determined that the communication connection status is connected, wherein the source node corresponds to the source node ID, and the target node corresponds to the target node ID. If there is no heartbeat connection between the source node and the target node, it is determined that the communication connection status is disconnected.

根据本公开的实施例,可以根据源节点标识和目标节点标识是否一致,确定通信类型。可以根据源节点和目标节点之间是否存在心跳连接,确定通信连接状态。According to an embodiment of the present disclosure, the communication type may be determined according to whether the source node identifier is consistent with the target node identifier. The status of the communication connection can be determined according to whether there is a heartbeat connection between the source node and the target node.

根据本公开的实施例,响应于检测到新的边缘节点接入容器集群,可以将该边缘节点注册至云端的配置工具,并在与该边缘节点对应的采集工具和云端的配置工具之间建立连接。可以使用Kubernets中的informer监听容器集群中的节点资源,维护预设字典。预设字典可以包括容器组和地址信息之间的映射关系。According to an embodiment of the present disclosure, in response to detecting that a new edge node is connected to the container cluster, the edge node can be registered with the configuration tool in the cloud, and a collection tool corresponding to the edge node can be established between the configuration tool in the cloud. connect. You can use the informer in Kubernetes to monitor the node resources in the container cluster and maintain the preset dictionary. The preset dictionary may include a mapping relationship between container groups and address information.

根据本公开的实施例,可以将待通信数据导入至tun0。利用采集工具从tun0读取待通信数据并解析出目标地址信息。根据预设字典和目标地址信息,确定目标节点和目标容器组。According to the embodiment of the present disclosure, the data to be communicated can be imported into tun0. Use the acquisition tool to read the data to be communicated from tun0 and parse out the target address information. Determine the target node and target container group according to the preset dictionary and target address information.

根据本公开的实施例,由于源节点标识和目标节点标识是根据源地址信息、目标地址信息、第一路由规则和第二路由规则确定的,而通信类型和通信连接状态是根据源节点标识和目标节点标识确定的,因而通信类型能够表征源节点和目标节点是否属于同一个节点,通信连接状态能够表征源节点和目标节点之间是否存在通信连接。在此基础上,有利于后续根据通信类型和通信连接状态实现跨云端节点或跨边缘节点的数据通信。According to the embodiment of the present disclosure, since the source node identifier and the target node identifier are determined according to the source address information, the destination address information, the first routing rule and the second routing rule, and the communication type and the communication connection state are determined according to the source node identifier and The target node identifier is determined, so the communication type can indicate whether the source node and the target node belong to the same node, and the communication connection status can indicate whether there is a communication connection between the source node and the target node. On this basis, it is beneficial to realize data communication across cloud nodes or across edge nodes according to the communication type and communication connection status.

图4示意性示出了根据本公开实施例的根据第一数据通信请求,确定通信类型和通信连接状态过程的示例示意图。Fig. 4 schematically shows an exemplary schematic diagram of a process of determining a communication type and a communication connection state according to a first data communication request according to an embodiment of the present disclosure.

如图4所示,在400中,可以根据源地址信息403和第二路由规则402,确定源容器组标识404。根据源容器组标识404和第一路由规则401,确定源节点标识407。As shown in FIG. 4 , in 400 , the source container group identifier 404 may be determined according to the source address information 403 and the second routing rule 402 . According to the source container group identifier 404 and the first routing rule 401, the source node identifier 407 is determined.

可以根据目标地址信息405和第二路由规则402,确定目标容器组标识406。根据目标容器组标识406和第一路由规则401,确定目标节点标识408。The target container group identifier 406 may be determined according to the target address information 405 and the second routing rule 402 . According to the target container group identifier 406 and the first routing rule 401, the target node identifier 408 is determined.

在确定源节点标识407和目标节点标识408之后,可以执行操作S410和操作S420。After the source node identifier 407 and the target node identifier 408 are determined, operation S410 and operation S420 may be performed.

在操作S410,源节点标识和目标节点标识相一致?若是,则可以确定通信类型为本节点通信409。若否,则可以确定通信类型为跨节点通信410。In operation S410, are the source node IDs consistent with the target node IDs? If yes, it can be determined that the communication type is local node communication 409 . If not, it may be determined that the communication type is cross-node communication 410 .

在操作S420,源节点和目标节点之间存在心跳连接?若是,则可以确定通信连接状态为连通411。若否,则可以确定通信连接状态为未连通412。In operation S420, is there a heartbeat connection between the source node and the target node? If yes, it can be determined that the communication connection state is connected 411 . If not, it may be determined that the communication connection state is disconnected 412 .

根据本公开的实施例,操作S220可以包括如下操作。According to an embodiment of the present disclosure, operation S220 may include the following operations.

在通信类型为本节点通信的情况下,利用采集工具从目标容器组获取待通信数据。在通信类型为跨节点通信的情况下,利用采集工具从目标端口获取待通信数据。When the communication type is local node communication, the data to be communicated is obtained from the target container group by using the collection tool. When the communication type is cross-node communication, use the collection tool to obtain the data to be communicated from the target port.

根据本公开的实施例,云端还可以部署有采集工具。云端的采集工具可以使用Kubernetes informer监听Kube Apiserver。边缘端的采集工具可以监听Metaserver。Metaserver可以是Kube Apiserver的镜像,由Kubeedge组件维护Metaserver和KubeApiserver之间的同步。According to an embodiment of the present disclosure, a collection tool may also be deployed on the cloud. Cloud collection tools can use Kubernetes informer to monitor Kube Apiserver. The collection tool at the edge can monitor the Metaserver. Metaserver can be the mirror image of Kube Apiserver, and the synchronization between Metaserver and KubeApiserver is maintained by the Kubeedge component.

根据本公开的实施例,跨节点通信可以用于表征源地址信息所对应的源节点和目标地址信息所对应的目标节点属于不同节点。本节点通信可以用于表征源地址信息所对应的源节点和目标地址信息所对应的目标节点属于相同节点。According to an embodiment of the present disclosure, cross-node communication may be used to indicate that the source node corresponding to the source address information and the target node corresponding to the target address information belong to different nodes. This node communication may be used to indicate that the source node corresponding to the source address information and the target node corresponding to the target address information belong to the same node.

根据本公开的实施例,采集工具可以将通信类型为跨节点通信的待通信数据路由至tun0。备选地,采集工具还可以从tun0获取待通信数据,并在源节点和目标节点之间建立第一通信连接。将第二数据通信请求发送至第一通信连接,以便于从第一通信连接中读取返回数据,并将返回数据发送给源节点的源容器组。According to an embodiment of the present disclosure, the collection tool may route the data to be communicated whose communication type is cross-node communication to tun0. Alternatively, the collection tool may also obtain data to be communicated from tun0, and establish a first communication connection between the source node and the target node. Send the second data communication request to the first communication connection, so as to read the return data from the first communication connection, and send the return data to the source container group of the source node.

根据本公开的实施例,操作S230可以包括如下操作。According to an embodiment of the present disclosure, operation S230 may include the following operations.

在通信连接状态为未连通的情况下,在与源容器组对应的源节点和云端的云端节点之间建立第一通信连接。基于第一通信连接,将第二数据通信请求发送至云端节点。When the communication connection state is disconnected, a first communication connection is established between the source node corresponding to the source container group and the cloud node in the cloud. Based on the first communication connection, a second data communication request is sent to the cloud node.

根据本公开的实施例,在通信类型为跨节点通信的情况下,可以根据通信连接状态基于不同方式获取待通信数据。例如,在通信连接状态为未连通的情况下,可以在与源容器组对应的源节点和云端的云端节点之间第一通信连接。第一通信连接可以包括proxy连接。在此情况下,源节点的采集工具可以将待通信数据发送至云端节点的配置工具,云端节点的配置工具可以将待通信数据发送至目标节点的采集工具,目标节点的采集工具将待通信数据发送至目标容器组。According to an embodiment of the present disclosure, when the communication type is cross-node communication, the data to be communicated may be acquired in different ways according to the status of the communication connection. For example, when the communication connection status is disconnected, a first communication connection may be made between the source node corresponding to the source container group and the cloud node in the cloud. The first communication connection may comprise a proxy connection. In this case, the collection tool of the source node can send the data to be communicated to the configuration tool of the cloud node, the configuration tool of the cloud node can send the data to be communicated to the collection tool of the target node, and the collection tool of the target node will send the data to be communicated Sent to the target container group.

根据本公开的实施例,上述数据通信方法200还可以包括如下操作。According to an embodiment of the present disclosure, the data communication method 200 may further include the following operations.

在通信连接状态为连通的情况下,在源节点和目标节点之间建立第二通信连接。基于第二通信连接,将第二数据通信请求发送至目标节点,以便于完成源节点与目标节点之间的数据通信。When the communication connection state is connected, a second communication connection is established between the source node and the target node. Based on the second communication connection, a second data communication request is sent to the target node, so as to complete the data communication between the source node and the target node.

根据本公开的实施例,在通信连接状态为连通的情况下,可以在与源容器组对应的源节点和与目标容器组对应的目标节点之间建立第二通信连接。第二通信连接可以包括proxy连接。在此情况下,源节点的采集工具可以直接将待通信数据发送至目标节点的采集工具,目标节点的采集工具将待通信数据发送至目标容器组。备选地,源节点的采集工具也可以基于第二通信连接转发待通信数据至目标节点,并基于第二通信连接获取来自目标节点的返回数据。According to an embodiment of the present disclosure, when the communication connection state is connected, a second communication connection may be established between the source node corresponding to the source container group and the target node corresponding to the target container group. The second communication connection may comprise a proxy connection. In this case, the collection tool of the source node may directly send the data to be communicated to the collection tool of the target node, and the collection tool of the target node may send the data to be communicated to the target container group. Alternatively, the collection tool of the source node may also forward the data to be communicated to the target node based on the second communication connection, and obtain the returned data from the target node based on the second communication connection.

根据本公开的实施例,在通信连接状态为连通的情况下,可以基于第二通信连接将待通信数据直接转发至目标节点,由此保障了容器集群管理系统的数据通信效率。此外,由于在通信连接状态为未连通的情况下,可以基于第一通信连接经由云端节点转发待通信数据至目标节点,由此保障了容器集群管理系统的数据通信稳定性。According to the embodiments of the present disclosure, when the communication connection status is connected, the data to be communicated can be directly forwarded to the target node based on the second communication connection, thereby ensuring the data communication efficiency of the container cluster management system. In addition, when the communication connection status is disconnected, the data to be communicated can be forwarded to the target node via the cloud node based on the first communication connection, thereby ensuring the stability of the data communication of the container cluster management system.

图5示意性示出了根据本公开实施例的数据通信过程的示例示意图。Fig. 5 schematically shows an exemplary schematic diagram of a data communication process according to an embodiment of the present disclosure.

如图5所示,在500中,边缘端响应于接收到第一数据通信请求501,根据第一数据通信请求501,确定通信类型502和通信连接状态503。As shown in FIG. 5 , at 500 , the edge end determines a communication type 502 and a communication connection status 503 according to the first data communication request 501 in response to receiving the first data communication request 501 .

在确定通信类型502和通信连接状态503之后,可以执行操作S510和操作S520。After the communication type 502 and the communication connection state 503 are determined, operation S510 and operation S520 may be performed.

在操作S510,通信类型为本节点通信?若是,则可以利用采集工具从目标容器组获取待通信数据504。若否,则可以利用采集工具从目标端口获取待通信数据504。In operation S510, is the communication type communication of this node? If yes, the data to be communicated can be obtained from the target container group by using a collection tool 504 . If not, the data to be communicated may be obtained 504 from the target port by using a collection tool.

在操作S520,通信连接状态为未连通?若是,则可以在与源容器组对应的源节点和云端的云端节点506之间建立第一通信连接505,基于第一通信连接505,将第二数据通信请求发送至云端节点506。若是,则可以在源节点和目标节点之间建立第二通信连接507,基于第二通信连接507,将第二数据通信请求发送至目标节点508。In operation S520, is the communication connection state disconnected? If yes, a first communication connection 505 may be established between the source node corresponding to the source container group and the cloud node 506 on the cloud, and based on the first communication connection 505, a second data communication request is sent to the cloud node 506 . If yes, a second communication connection 507 may be established between the source node and the target node, and based on the second communication connection 507, a second data communication request is sent to the target node 508 .

以上仅是示例性实施例,但不限于此,还可以包括本领域已知的其他数据通信方法,只要能够保障容器集群管理系统中的通信稳定性和通信效率即可。The above are only exemplary embodiments, but are not limited thereto, and may also include other data communication methods known in the art, as long as the communication stability and communication efficiency in the container cluster management system can be ensured.

图6示意性示出了根据本公开另一实施例的数据通信方法的流程图。Fig. 6 schematically shows a flowchart of a data communication method according to another embodiment of the present disclosure.

如图6所示,该数据通信方法600包括操作S610~S620。As shown in FIG. 6, the data communication method 600 includes operations S610-S620.

在操作S610,响应于接收到第二数据通信请求,根据第二数据通信请求,确定目标节点标识,其中,第二数据通信请求包括待通信数据和目标地址信息。In operation S610, in response to receiving a second data communication request, determine a target node identifier according to the second data communication request, wherein the second data communication request includes data to be communicated and target address information.

在操作S620,利用配置工具,将待通信数据发送至与目标节点标识对应的目标节点,以便于完成源节点与目标节点之间的数据通信,其中,云端包括云端节点,云端节点部署有配置工具。In operation S620, use the configuration tool to send the data to be communicated to the target node corresponding to the target node identifier, so as to complete the data communication between the source node and the target node, wherein the cloud includes cloud nodes, and the cloud nodes are deployed with configuration tools .

根据本公开的实施例,数据通信方法600可以应用于容器集群管理系统中的云端。According to an embodiment of the present disclosure, the data communication method 600 may be applied to a cloud in a container cluster management system.

根据本公开的实施例,容器集群管理系统可以包括边缘端和云端。云端可以用于应用和配置的下发。云端可以包括云端节点。云端节点可以表征容器集群中用于部署管控组件的节点。节点可以表征容器集群中被管理的独立主机,例如,物理机或虚拟机。云端节点可以包括至少一个容器组。容器组可以表征容器集群中创建和管理的最小可部署计算单元。至少一个容器组中的每个容器组均可以包括至少一个容器。According to an embodiment of the present disclosure, the container cluster management system may include an edge terminal and a cloud. The cloud can be used to deliver applications and configurations. The cloud may include cloud nodes. Cloud nodes can represent the nodes used to deploy control components in the container cluster. Nodes can represent individual hosts, such as physical or virtual machines, that are managed in a container cluster. A cloud node may include at least one container group. A container group can represent the smallest deployable computing unit created and managed in a container cluster. Each container group of the at least one container group may include at least one container.

根据本公开的实施例,云端可以包括云端节点。云端节点可以部署有配置工具(即edgemesh-server)。配置工具可以用于根据目标地址信息将待通信数据转发至目标节点。例如,可以通过Deployment的方式在云端节点上部署配置工具。可以根据目标地址信息确定目标节点标识。利用配置工具,将待通信数据发送至与目标节点标识对应的目标节点。According to an embodiment of the present disclosure, the cloud may include cloud nodes. Cloud nodes can be deployed with configuration tools (ie edgemesh-server). The configuration tool can be used to forward the data to be communicated to the target node according to the target address information. For example, configuration tools can be deployed on cloud nodes through Deployment. The target node identifier can be determined according to the target address information. Using the configuration tool, send the data to be communicated to the target node corresponding to the target node ID.

根据本公开的实施例,云端在接收到第二数据通信请求之后,可以根据第二数据通信请求中的目标地址信息,确定目标节点标识。目标节点标识可以用于标识部署有目标容器组边缘节点。在确定目标节点标识之后,可以利用配置工具,将待通信数据发送至与目标节点标识对应的目标节点,以便于完成源节点与目标节点之间的数据通信。According to an embodiment of the present disclosure, after receiving the second data communication request, the cloud may determine the target node identifier according to the target address information in the second data communication request. The target node identifier may be used to identify the edge node on which the target container group is deployed. After the target node ID is determined, the configuration tool can be used to send the data to be communicated to the target node corresponding to the target node ID, so as to complete the data communication between the source node and the target node.

根据本公开的实施例,由于目标节点标识是根据第二数据通信请求确定的,通过利用配置工具将待通信数据发送至与目标节点标识对应的目标节点,实现了源节点与目标节点之间的数据通信,由此打通了边缘计算中部署于云端的容器组和部署于边缘端的容器组之间的网络通路,进而实现了跨云端节点或跨边缘节点的数据通信,保障了容器集群管理系统中的通信稳定性和通信效率。According to the embodiment of the present disclosure, since the target node ID is determined according to the second data communication request, by using the configuration tool to send the data to be communicated to the target node corresponding to the target node ID, the communication between the source node and the target node is realized. Data communication, which opens up the network path between the container group deployed on the cloud and the container group deployed on the edge in edge computing, and then realizes data communication across cloud nodes or cross-edge nodes, ensuring that the container cluster management system Communication stability and communication efficiency.

下面参考图7,对根据本发明实施例的数据通信方法600做进一步说明。The data communication method 600 according to the embodiment of the present invention will be further described below with reference to FIG. 7 .

根据本公开的实施例,操作S610可以包括如下操作。According to an embodiment of the present disclosure, operation S610 may include the following operations.

根据目标地址信息,确定目标容器组标识。根据目标容器组标识,确定目标节点标识。Determine the target container group ID according to the target address information. Determine the target node ID according to the target container group ID.

根据本公开的实施例,操作S620可以如下操作。According to an embodiment of the present disclosure, operation S620 may operate as follows.

利用配置工具,将待通信数据发送至与目标节点标识对应的采集工具,以便于采集工具将待通信数据转发至与目标容器组标识对应的目标容器组。Using the configuration tool, the data to be communicated is sent to the collection tool corresponding to the target node identifier, so that the collection tool forwards the data to be communicated to the target container group corresponding to the target container group identifier.

根据本公开的实施例,配置工具可以理解为代理服务器。云端在接收到第二数据通信请求之后,可以对第二数据通信请求进行解析处理,得到待通信数据和目标地址信息。根据目标地址信息,确定目标容器组标识。根据目标容器组标识,确定目标节点标识。根据目标节点标识,利用配置工具将待通信数据转发至与目标节点标识对应的采集工具。According to the embodiment of the present disclosure, the configuration tool can be understood as a proxy server. After receiving the second data communication request, the cloud may analyze and process the second data communication request to obtain data to be communicated and target address information. Determine the target container group ID according to the target address information. Determine the target node ID according to the target container group ID. According to the target node ID, the configuration tool is used to forward the data to be communicated to the collection tool corresponding to the target node ID.

图7示意性示出了根据本公开另一实施例的数据通信过程的示例示意图。Fig. 7 schematically shows an example diagram of a data communication process according to another embodiment of the present disclosure.

如图7所示,容器集群管理系统可以包括云端和边缘端。在700中,以云端包括云端节点701,边缘端包括边缘节点702和边缘节点703为例示例性示出本公开实施例的数据通信方法。As shown in Figure 7, the container cluster management system may include cloud and edge terminals. In 700, the data communication method of the embodiment of the present disclosure is exemplarily shown by taking the cloud includes the cloud node 701, and the edge end includes the edge node 702 and the edge node 703 as an example.

边缘节点702可以部署有采集工具7020。在边缘节点702中,可以包括容器组7021和容器组7022。在容器组7021中可以包括容器70211和容器70212。在容器组7022中可以包括容器70221、容器70222和容器70223。在此情况下,采集工具7020可以用于采集容器70211、容器70212、容器70221、容器70222和容器70223的数据。Edge node 702 may be deployed with collection tool 7020 . In the edge node 702, a container group 7021 and a container group 7022 may be included. A container 70211 and a container 70212 may be included in the container group 7021 . The container group 7022 may include a container 70221 , a container 70222 , and a container 70223 . In this case, collection tool 7020 may be used to collect data for container 70211 , container 70212 , container 70221 , container 70222 , and container 70223 .

边缘节点703可以部署有采集工具7030。在边缘节点703中,可以包括容器组7031和容器组7032。容器组7031可以包括容器70311、容器70312和容器70313。容器组7032可以包括容器70321和容器70322。在此情况下,采集工具7030可以用于容器70311、容器70312、容器70313、容器70321和容器70322的数据。The edge node 703 may be deployed with a collection tool 7030 . In the edge node 703, a container group 7031 and a container group 7032 may be included. The container group 7031 may include a container 70311 , a container 70312 and a container 70313 . The container group 7032 may include a container 70321 and a container 70322 . In this case, collection tool 7030 may be used for the data of container 70311 , container 70312 , container 70313 , container 70321 , and container 70322 .

云端节点701可以部署有配置工具7010。配置工具7010可以与采集工具7020进行通信。配置工具7010可以与采集工具7030进行通信。The cloud node 701 may be deployed with a configuration tool 7010 . The configuration tool 7010 can communicate with the collection tool 7020 . The configuration tool 7010 can communicate with the acquisition tool 7030 .

例如,数据通信的发起方为容器70212,在此情况下,源节点可以是边缘节点702,源容器组可以是容器组7021,与源地址信息对应的采集工具可以是采集工具7020。For example, the initiator of the data communication is the container 70212. In this case, the source node may be the edge node 702, the source container group may be the container group 7021, and the collection tool corresponding to the source address information may be the collection tool 7020.

例如,数据通信的接收方为容器70313,在此情况下,目标节点可以是边缘节点703,目标容器组可以是容器组7031,与目标地址信息对应的采集工具可以是采集工具7030。For example, the receiver of the data communication is the container 70313. In this case, the target node may be the edge node 703, the target container group may be the container group 7031, and the collection tool corresponding to the target address information may be the collection tool 7030.

在此情况下,边缘节点702的采集工具7020可以采集容器组7021中容器70212的待通信数据,采集工具7020可以将待通信数据发送至云端节点701的配置工具7010,云端节点701的配置工具7010可以将待通信数据发送至边缘节点703的采集工具7030,边缘节点703的采集工具7030可以将待通信数据发送至容器组7031中容器70313,以完成边缘节点702和边缘节点703、容器组7021和容器组7031、容器70212和容器70313之间的数据通信。In this case, the collection tool 7020 of the edge node 702 can collect the data to be communicated in the container 70212 in the container group 7021, the collection tool 7020 can send the data to be communicated to the configuration tool 7010 of the cloud node 701, and the configuration tool 7010 of the cloud node 701 The data to be communicated can be sent to the collection tool 7030 of the edge node 703, and the collection tool 7030 of the edge node 703 can send the data to be communicated to the container 70313 in the container group 7031 to complete the edge node 702 and edge node 703, container group 7021 and Data communication between container group 7031, container 70212, and container 70313.

以上仅是示例性实施例,但不限于此,还可以包括本领域已知的其他数据通信方法,只要能够保障容器集群管理系统中的通信稳定性和通信效率即可。The above are only exemplary embodiments, but are not limited thereto, and may also include other data communication methods known in the art, as long as the communication stability and communication efficiency in the container cluster management system can be ensured.

图8示意性示出了根据本公开实施例的数据通信装置的框图。Fig. 8 schematically shows a block diagram of a data communication device according to an embodiment of the present disclosure.

如图8所示,数据通信装置800可以应用于容器集群管理系统中的边缘端,数据通信装置800可以包括第一确定模块810、获取模块820和第一发送模块830。As shown in FIG. 8 , the data communication device 800 may be applied to an edge end in a container cluster management system, and the data communication device 800 may include a first determination module 810 , an acquisition module 820 and a first sending module 830 .

第一确定模块810,用于响应于接收到第一数据通信请求,根据第一数据通信请求,确定通信类型和通信连接状态,其中,第一数据通信请求包括与源容器组对应的源地址信息和与目标容器组对应的目标地址信息。The first determining module 810 is configured to determine a communication type and a communication connection state according to the first data communication request in response to receiving the first data communication request, wherein the first data communication request includes source address information corresponding to the source container group and target address information corresponding to the target container group.

获取模块820,用于根据通信类型,利用与源地址信息对应的采集工具,获取待通信数据,其中,边缘端包括至少一个边缘节点,至少一个边缘节点各自部署有采集工具。The acquisition module 820 is configured to acquire data to be communicated by using a collection tool corresponding to the source address information according to the communication type, wherein the edge end includes at least one edge node, and at least one edge node is respectively equipped with a collection tool.

第一发送模块830,用于在通信连接状态为未连通的情况下,基于第一通信连接,将第二数据通信请求发送至云端的云端节点,以便于云端节点根据目标地址信息,将第二数据通信请求转发至与目标容器组对应的目标节点,其中,第二数据通信请求包括待通信数据和目标地址信息。The first sending module 830 is configured to send the second data communication request to the cloud node in the cloud based on the first communication connection when the communication connection state is disconnected, so that the cloud node sends the second data communication request to the cloud node according to the target address information. The data communication request is forwarded to the target node corresponding to the target container group, wherein the second data communication request includes data to be communicated and target address information.

根据本公开的实施例,至少一个边缘节点中的每个边缘节点均包括至少一个容器组,至少一个容器组各自对应有地址信息,地址信息可以通过以下方式确定。According to an embodiment of the present disclosure, each of the at least one edge node includes at least one container group, and each of the at least one container group corresponds to address information, and the address information may be determined in the following manner.

针对至少一个边缘节点中的每个边缘节点,根据容器集群管理系统的网段范围,确定与边缘节点对应的子网段范围。根据与边缘节点对应的子网段范围,确定与边缘节点对应的至少一个容器组各自的地址信息。For each of the at least one edge node, according to the network segment range of the container cluster management system, determine the subnet segment range corresponding to the edge node. According to the range of the subnet segment corresponding to the edge node, the respective address information of at least one container group corresponding to the edge node is determined.

根据本公开的实施例,至少一个边缘节点各自对应有边缘节点标识,至少一个容器组各自对应有容器组标识。According to an embodiment of the present disclosure, at least one edge node corresponds to an edge node identifier, and at least one container group corresponds to a container group identifier.

根据本公开的实施例,路由规则可以通过以下方式确定。According to an embodiment of the present disclosure, routing rules can be determined in the following manner.

根据与边缘节点对应的边缘节点标识和至少一个容器组标识,确定第一路由规则。根据至少一个容器组标识和至少一个容器组各自的地址信息,确定第二路由规则。The first routing rule is determined according to the edge node identifier corresponding to the edge node and at least one container group identifier. A second routing rule is determined according to the at least one container group identifier and the respective address information of the at least one container group.

根据本公开的实施例,第一确定模块810可以包括第一确定单元和第二确定单元。According to an embodiment of the present disclosure, the first determination module 810 may include a first determination unit and a second determination unit.

第一确定单元,用于根据源地址信息、目标地址信息、第一路由规则和第二路由规则,确定源节点标识和目标节点标识。The first determining unit is configured to determine the source node identifier and the destination node identifier according to the source address information, the destination address information, the first routing rule and the second routing rule.

第二确定单元,用于根据源节点标识和目标节点标识,确定通信类型和通信连接状态。The second determining unit is configured to determine a communication type and a communication connection state according to the source node identifier and the target node identifier.

根据本公开的实施例,第一确定单元可以包括第一确定子单元、第二确定子单元、第三确定子单元和第四确定子单元。According to an embodiment of the present disclosure, the first determination unit may include a first determination subunit, a second determination subunit, a third determination subunit, and a fourth determination subunit.

第一确定子单元,用于根据源地址信息和第二路由规则,确定源容器组标识。The first determining subunit is configured to determine the source container group identifier according to the source address information and the second routing rule.

第二确定子单元,用于根据源容器组标识和第一路由规则,确定源节点标识。The second determining subunit is configured to determine the source node identifier according to the source container group identifier and the first routing rule.

第三确定子单元,用于根据目标地址信息和第二路由规则,确定目标容器组标识。The third determining subunit is configured to determine the target container group identifier according to the target address information and the second routing rule.

第四确定子单元,用于根据目标容器组标识和第一路由规则,确定目标节点标识。The fourth determining subunit is configured to determine the target node ID according to the target container group ID and the first routing rule.

根据本公开的实施例,第二确定单元可以包括第五确定子单元、第六确定子单元、第七确定子单元和第八确定子单元。According to an embodiment of the present disclosure, the second determination unit may include a fifth determination subunit, a sixth determination subunit, a seventh determination subunit, and an eighth determination subunit.

第五确定子单元,用于在源节点标识和目标节点标识相一致的情况下,确定通信类型为本节点通信。The fifth determining subunit is configured to determine that the communication type is the communication of the own node when the source node identifier is consistent with the target node identifier.

第六确定子单元,用于在源节点标识和目标节点标识不一致的情况下,确定通信类型为跨节点通信。The sixth determining subunit is configured to determine that the communication type is cross-node communication when the source node ID is inconsistent with the target node ID.

第七确定子单元,用于在源节点和目标节点之间存在心跳连接的情况下,确定通信连接状态为连通,其中,源节点与源节点标识相对应,目标节点与目标节点标识相对应。The seventh determining subunit is configured to determine that the communication connection status is connected when there is a heartbeat connection between the source node and the target node, wherein the source node corresponds to the source node ID, and the target node corresponds to the target node ID.

第八确定子单元,用于在源节点和目标节点之间不存在心跳连接的情况下,确定通信连接状态为未连通。The eighth determination subunit is configured to determine that the communication connection state is disconnected when there is no heartbeat connection between the source node and the target node.

根据本公开的实施例,获取模块820可以包括第一获取单元和第二获取单元。According to an embodiment of the present disclosure, the obtaining module 820 may include a first obtaining unit and a second obtaining unit.

第一获取单元,用于在通信类型为本节点通信的情况下,利用采集工具从目标容器组获取待通信数据。The first obtaining unit is configured to use a collection tool to obtain data to be communicated from the target container group when the communication type is local node communication.

第二获取单元,用于在通信类型为跨节点通信的情况下,利用采集工具从目标端口获取待通信数据。The second obtaining unit is configured to use the collection tool to obtain the data to be communicated from the target port when the communication type is cross-node communication.

根据本公开的实施例,第一发送模块830可以包括建立单元和第一发送单元。According to an embodiment of the present disclosure, the first sending module 830 may include an establishment unit and a first sending unit.

建立单元,用于在通信连接状态为未连通的情况下,在与源容器组对应的源节点和云端的云端节点之间建立第一通信连接。The establishment unit is configured to establish a first communication connection between the source node corresponding to the source container group and the cloud node in the cloud when the communication connection state is disconnected.

第一发送单元,用于基于第一通信连接,将第二数据通信请求发送至云端节点。The first sending unit is configured to send the second data communication request to the cloud node based on the first communication connection.

根据本公开的实施例,数据通信装置800还可以包括建立模块和第三发送模块。According to an embodiment of the present disclosure, the data communication device 800 may further include an establishment module and a third sending module.

建立模块,用于在通信连接状态为连通的情况下,在源节点和目标节点之间建立第二通信连接。An establishment module, configured to establish a second communication connection between the source node and the target node when the communication connection state is connected.

第三发送模块,用于基于第二通信连接,将第二数据通信请求发送至目标节点,以便于完成源节点与目标节点之间的数据通信。The third sending module is configured to send the second data communication request to the target node based on the second communication connection, so as to complete the data communication between the source node and the target node.

根据本公开的实施例,边缘端是基于KubeEdge构建的,云端是基于Kubernetes构建的。According to the embodiment of the present disclosure, the edge end is built based on KubeEdge, and the cloud is built based on Kubernetes.

图9示意性示出了根据本公开另一实施例的数据通信装置的框图。Fig. 9 schematically shows a block diagram of a data communication device according to another embodiment of the present disclosure.

如图9所示,数据通信装置900可以应用于容器集群管理系统中的云端,数据通信装置900可以包括第二确定模块910和第二发送模块920。As shown in FIG. 9 , the data communication device 900 may be applied to a cloud in a container cluster management system, and the data communication device 900 may include a second determining module 910 and a second sending module 920 .

第二确定模块910,用于响应于接收到第二数据通信请求,根据第二数据通信请求,确定目标节点标识,其中,第二数据通信请求包括待通信数据和目标地址信息。The second determining module 910 is configured to determine the target node identifier according to the second data communication request in response to receiving the second data communication request, wherein the second data communication request includes data to be communicated and target address information.

第二发送模块920,用于利用配置工具,将待通信数据发送至与目标节点标识对应的目标节点,以便于完成源节点与目标节点之间的数据通信,其中,云端包括云端节点,云端节点部署有配置工具。The second sending module 920 is used to use the configuration tool to send the data to be communicated to the target node corresponding to the target node identifier, so as to complete the data communication between the source node and the target node, wherein the cloud includes the cloud node, and the cloud node A configuration tool is deployed.

根据本公开的实施例,第二确定模块910可以包括第三确定单元和第四确定单元。According to an embodiment of the present disclosure, the second determining module 910 may include a third determining unit and a fourth determining unit.

第三确定单元,用于根据目标地址信息,确定目标容器组标识。The third determining unit is configured to determine the target container group identifier according to the target address information.

第四确定单元,用于根据目标容器组标识,确定目标节点标识。The fourth determining unit is configured to determine the target node ID according to the target container group ID.

根据本公开的实施例,第二发送模块920可以包括第二发送单元。According to an embodiment of the present disclosure, the second sending module 920 may include a second sending unit.

第二发送单元,用于利用配置工具,将待通信数据发送至与目标节点标识对应的采集工具,以便于采集工具将待通信数据转发至与目标容器组标识对应的目标容器组。The second sending unit is configured to use the configuration tool to send the data to be communicated to the collection tool corresponding to the target node identifier, so that the collection tool forwards the data to be communicated to the target container group corresponding to the target container group identifier.

根据本公开的实施例的模块、子模块、单元、子单元中的任意多个、或其中任意多个的至少部分功能可以在一个模块中实现。根据本公开实施例的模块、子模块、单元、子单元中的任意一个或多个可以被拆分成多个模块来实现。根据本公开实施例的模块、子模块、单元、子单元中的任意一个或多个可以至少被部分地实现为硬件电路,例如现场可编程门阵列(FPGA)、可编程逻辑阵列(PLA)、片上系统、基板上的系统、封装上的系统、专用集成电路(ASIC),或可以通过对电路进行集成或封装的任何其他的合理方式的硬件或固件来实现,或以软件、硬件以及固件三种实现方式中任意一种或以其中任意几种的适当组合来实现。或者,根据本公开实施例的模块、子模块、单元、子单元中的一个或多个可以至少被部分地实现为计算机程序模块,当该计算机程序模块被运行时,可以执行相应的功能。Modules, sub-modules, units, any multiple of sub-units according to the embodiments of the present disclosure, or at least part of the functions of any multiple of them may be implemented in one module. Any one or more of modules, submodules, units, and subunits according to the embodiments of the present disclosure may be implemented by being divided into multiple modules. Any one or more of modules, submodules, units, and subunits according to embodiments of the present disclosure may be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), system-on-chip, system-on-substrate, system-on-package, application-specific integrated circuit (ASIC), or hardware or firmware that may be implemented by any other reasonable means of integrating or packaging circuits, or in a combination of software, hardware, and firmware Any one of these implementations or an appropriate combination of any of them. Alternatively, one or more of the modules, submodules, units, and subunits according to the embodiments of the present disclosure may be at least partially implemented as computer program modules, and when the computer program modules are executed, corresponding functions may be performed.

例如,第一确定模块810、获取模块820和第一发送模块830中的任意多个可以合并在一个模块/单元/子单元中实现,或者其中的任意一个模块/单元/子单元可以被拆分成多个模块/单元/子单元。或者,这些模块/单元/子单元中的一个或多个模块/单元/子单元的至少部分功能可以与其他模块/单元/子单元的至少部分功能相结合,并在一个模块/单元/子单元中实现。根据本公开的实施例,第一确定模块810、获取模块820和第一发送模块830中的至少一个可以至少被部分地实现为硬件电路,例如现场可编程门阵列(FPGA)、可编程逻辑阵列(PLA)、片上系统、基板上的系统、封装上的系统、专用集成电路(ASIC),或可以通过对电路进行集成或封装的任何其他的合理方式等硬件或固件来实现,或以软件、硬件以及固件三种实现方式中任意一种或以其中任意几种的适当组合来实现。或者,第一确定模块810、获取模块820和第一发送模块830中的至少一个可以至少被部分地实现为计算机程序模块,当该计算机程序模块被运行时,可以执行相应的功能。For example, any one of the first determination module 810, the acquisition module 820 and the first sending module 830 can be combined and implemented in one module/unit/subunit, or any one of the modules/units/subunits can be split into multiple modules/units/subunits. Alternatively, at least part of the functions of one or more modules/units/subunits of these modules/units/subunits can be combined with at least part of the functions of other modules/units/subunits, and combined in one module/unit/subunit realized in. According to an embodiment of the present disclosure, at least one of the first determination module 810, the acquisition module 820 and the first sending module 830 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), system-on-chip, system-on-substrate, system-on-package, application-specific integrated circuit (ASIC), or any other reasonable means of integrating or packaging circuits, such as hardware or firmware, or in software, Any one of the three implementations of hardware and firmware or an appropriate combination of any of them. Alternatively, at least one of the first determining module 810, the obtaining module 820 and the first sending module 830 may be at least partially implemented as a computer program module, and when the computer program module is executed, corresponding functions may be performed.

需要说明的是,本公开的实施例中应用于容器集群管理系统中的边缘端的数据通信装置部分与本公开的实施例中应用于容器集群管理系统中的边缘端的数据通信方法部分是相对应的,应用于容器集群管理系统中的边缘端的数据通信装置部分的描述具体参考应用于容器集群管理系统中的边缘端的数据通信方法部分,在此不再赘述。It should be noted that the part of the data communication device applied to the edge end in the container cluster management system in the embodiment of the present disclosure corresponds to the part of the data communication method applied to the edge end in the container cluster management system in the embodiment of the present disclosure For the description of the part of the data communication device applied to the edge end in the container cluster management system, refer specifically to the part of the data communication method applied to the edge end in the container cluster management system, which will not be repeated here.

例如,第二确定模块910和第二发送模块920中的任意多个可以合并在一个模块/单元/子单元中实现,或者其中的任意一个模块/单元/子单元可以被拆分成多个模块/单元/子单元。或者,这些模块/单元/子单元中的一个或多个模块/单元/子单元的至少部分功能可以与其他模块/单元/子单元的至少部分功能相结合,并在一个模块/单元/子单元中实现。根据本公开的实施例,第二确定模块910和第二发送模块920中的至少一个可以至少被部分地实现为硬件电路,例如现场可编程门阵列(FPGA)、可编程逻辑阵列(PLA)、片上系统、基板上的系统、封装上的系统、专用集成电路(ASIC),或可以通过对电路进行集成或封装的任何其他的合理方式等硬件或固件来实现,或以软件、硬件以及固件三种实现方式中任意一种或以其中任意几种的适当组合来实现。或者,第二确定模块910和第二发送模块920中的至少一个可以至少被部分地实现为计算机程序模块,当该计算机程序模块被运行时,可以执行相应的功能。For example, any number of the second determining module 910 and the second sending module 920 can be combined and implemented in one module/unit/subunit, or any one of the modules/units/subunits can be split into multiple modules /unit/subunit. Alternatively, at least part of the functions of one or more modules/units/subunits of these modules/units/subunits can be combined with at least part of the functions of other modules/units/subunits, and combined in one module/unit/subunit realized in. According to an embodiment of the present disclosure, at least one of the second determining module 910 and the second sending module 920 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), A system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or any other reasonable means of integrating or packaging circuits, such as hardware or firmware, or in a combination of software, hardware, and firmware Any one of these implementations or an appropriate combination of any of them. Alternatively, at least one of the second determining module 910 and the second sending module 920 may be at least partially implemented as a computer program module, and when the computer program module is executed, corresponding functions may be performed.

需要说明的是,本公开的实施例中应用于容器集群管理系统中的云端的数据通信装置部分与本公开的实施例中应用于容器集群管理系统中的云端的数据通信方法部分是相对应的,应用于容器集群管理系统中的云端的数据通信装置部分的描述具体参考应用于容器集群管理系统中的云端的数据通信方法部分,在此不再赘述。It should be noted that the part of the data communication device applied to the cloud in the container cluster management system in the embodiment of the present disclosure corresponds to the part of the data communication method applied in the cloud in the container cluster management system in the embodiment of the present disclosure For the description of the part of the data communication device applied to the cloud in the container cluster management system, refer specifically to the part of the data communication method applied to the cloud in the container cluster management system, which will not be repeated here.

图10示意性示出了根据本公开实施例的适于实现数据通信方法的电子设备的框图。图10示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Fig. 10 schematically shows a block diagram of an electronic device suitable for implementing a data communication method according to an embodiment of the present disclosure. The electronic device shown in FIG. 10 is only an example, and should not limit the functions and application scope of the embodiments of the present disclosure.

如图10所示,根据本公开实施例的计算机电子设备1000包括处理器1001,其可以根据存储在只读存储器(ROM)1002中的程序或者从存储部分1009加载到随机访问存储器(RAM)1003中的程序而执行各种适当的动作和处理。处理器1001例如可以包括通用微处理器(例如CPU)、指令集处理器和/或相关芯片组和/或专用微处理器(例如,专用集成电路(ASIC)),等等。处理器1001还可以包括用于缓存用途的板载存储器。处理器1001可以包括用于执行根据本公开实施例的方法流程的不同动作的单一处理单元或者是多个处理单元。As shown in FIG. 10 , a computer electronic device 1000 according to an embodiment of the present disclosure includes a processor 1001 that can be loaded into a random access memory (RAM) 1003 according to a program stored in a read-only memory (ROM) 1002 or loaded from a storage section 1009 Various appropriate actions and processing are performed by the programs in the program. The processor 1001 may include, for example, a general-purpose microprocessor (eg, a CPU), an instruction set processor and/or related chipsets and/or a special-purpose microprocessor (eg, an application-specific integrated circuit (ASIC)), and the like. Processor 1001 may also include on-board memory for caching purposes. The processor 1001 may include a single processing unit or multiple processing units for executing different actions of the method flow according to the embodiments of the present disclosure.

在RAM 1003中,存储有电子设备1000操作所需的各种程序和数据。处理器1001、ROM 1002以及RAM 1003通过总线1004彼此相连。处理器1001通过执行ROM 1002和/或RAM1003中的程序来执行根据本公开实施例的方法流程的各种操作。需要注意,所述程序也可以存储在除ROM 1002和RAM 1003以外的一个或多个存储器中。处理器1001也可以通过执行存储在所述一个或多个存储器中的程序来执行根据本公开实施例的方法流程的各种操作。In the RAM 1003, various programs and data necessary for the operation of the electronic device 1000 are stored. The processor 1001, ROM 1002, and RAM 1003 are connected to each other through a bus 1004. The processor 1001 executes various operations according to the method flow of the embodiment of the present disclosure by executing the programs in the ROM 1002 and/or RAM 1003. It should be noted that the program may also be stored in one or more memories other than ROM 1002 and RAM 1003. The processor 1001 may also perform various operations according to the method flow of the embodiments of the present disclosure by executing programs stored in the one or more memories.

根据本公开的实施例,电子设备1000还可以包括输入/输出(I/O)接口1005,输入/输出(I/O)接口1005也连接至总线1004。电子设备1000还可以包括连接至I/O接口1005的以下部件中的一项或多项:包括键盘、鼠标等的输入部分1006;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分1007;包括硬盘等的存储部分1008;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分1009。通信部分1009经由诸如因特网的网络执行通信处理。驱动器1010也根据需要连接至I/O接口1005。可拆卸介质1011,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器1010上,以便于从其上读出的计算机程序根据需要被安装入存储部分1008。According to an embodiment of the present disclosure, the electronic device 1000 may further include an input/output (I/O) interface 1005 which is also connected to the bus 1004 . The electronic device 1000 may also include one or more of the following components connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; including a cathode ray tube (CRT), a liquid crystal display (LCD), etc. An output section 1007 of a speaker or the like; a storage section 1008 including a hard disk or the like; and a communication section 1009 including a network interface card such as a LAN card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I/O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 1010 as necessary so that a computer program read therefrom is installed into the storage section 1008 as necessary.

根据本公开的实施例,根据本公开实施例的方法流程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读存储介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分1009从网络上被下载和安装,和/或从可拆卸介质1011被安装。在该计算机程序被处理器1001执行时,执行本公开实施例的系统中限定的上述功能。根据本公开的实施例,上文描述的系统、设备、装置、模块、单元等可以通过计算机程序模块来实现。According to the embodiments of the present disclosure, the method flow according to the embodiments of the present disclosure can be implemented as a computer software program. For example, the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable storage medium, where the computer program includes program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communication portion 1009 and/or installed from removable media 1011 . When the computer program is executed by the processor 1001, the above-mentioned functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiments of the present disclosure, the above-described systems, devices, devices, modules, units, etc. may be implemented by computer program modules.

本公开还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的设备/装置/系统中所包含的;也可以是单独存在,而未装配入该设备/装置/系统中。上述计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被执行时,实现根据本公开实施例的方法。The present disclosure also provides a computer-readable storage medium. The computer-readable storage medium may be included in the device/apparatus/system described in the above embodiments; it may also exist independently without being assembled into the device/system device/system. The above-mentioned computer-readable storage medium carries one or more programs, and when the above-mentioned one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

根据本公开的实施例,计算机可读存储介质可以是非易失性的计算机可读存储介质。例如可以包括但不限于:便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to: portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD- ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

例如,根据本公开的实施例,计算机可读存储介质可以包括上文描述的ROM 1002和/或RAM 1003和/或ROM 1002和RAM 1003以外的一个或多个存储器。For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 1002 and/or the RAM 1003 and/or one or more memories other than the ROM 1002 and the RAM 1003 described above.

本公开的实施例还包括一种计算机程序产品,其包括计算机程序,该计算机程序包含用于执行本公开实施例所提供的方法的程序代码,当计算机程序产品在电子设备上运行时,该程序代码用于使电子设备实现本公开实施例所提供的数据通信方法。Embodiments of the present disclosure also include a computer program product, which includes a computer program, and the computer program includes program codes for executing the method provided by the embodiments of the present disclosure. When the computer program product is run on an electronic device, the program The code is used to enable the electronic device to implement the data communication method provided by the embodiment of the present disclosure.

在该计算机程序被处理器1001执行时,执行本公开实施例的系统/装置中限定的上述功能。根据本公开的实施例,上文描述的系统、装置、模块、单元等可以通过计算机程序模块来实现。When the computer program is executed by the processor 1001, the above-mentioned functions defined in the system/device of the embodiment of the present disclosure are performed. According to the embodiments of the present disclosure, the above-described systems, devices, modules, units, etc. may be implemented by computer program modules.

在一种实施例中,该计算机程序可以依托于光存储器件、磁存储器件等有形存储介质。在另一种实施例中,该计算机程序也可以在网络介质上以信号的形式进行传输、分发,并通过通信部分1009被下载和安装,和/或从可拆卸介质1011被安装。该计算机程序包含的程序代码可以用任何适当的网络介质传输,包括但不限于:无线、有线等等,或者上述的任意合适的组合。In one embodiment, the computer program may rely on tangible storage media such as optical storage devices and magnetic storage devices. In another embodiment, the computer program can also be transmitted and distributed in the form of a signal on a network medium, downloaded and installed through the communication part 1009, and/or installed from the removable medium 1011. The program code contained in the computer program can be transmitted by any appropriate network medium, including but not limited to: wireless, wired, etc., or any appropriate combination of the above.

根据本公开的实施例,可以以一种或多种程序设计语言的任意组合来编写用于执行本公开实施例提供的计算机程序的程序代码,具体地,可以利用高级过程和/或面向对象的编程语言、和/或汇编/机器语言来实施这些计算程序。程序设计语言包括但不限于诸如Java,C++,python,“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。According to the embodiments of the present disclosure, the program codes for executing the computer programs provided by the embodiments of the present disclosure can be written in any combination of one or more programming languages, specifically, high-level procedural and/or object-oriented programming language, and/or assembly/machine language to implement these computing programs. Programming languages include, but are not limited to, programming languages such as Java, C++, python, "C" or similar programming languages. The program code can execute entirely on the user computing device, partly on the user device, partly on the remote computing device, or entirely on the remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider). business to connect via the Internet).

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。本领域技术人员可以理解,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合,即使这样的组合或结合没有明确记载于本公开中。特别地,在不脱离本公开精神和教导的情况下,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合。所有这些组合和/或结合均落入本公开的范围。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that includes one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block in the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a A combination of dedicated hardware and computer instructions. Those skilled in the art can understand that various combinations and/or combinations can be made in the various embodiments of the present disclosure and/or the features described in the claims, even if such combinations or combinations are not explicitly recorded in the present disclosure. In particular, without departing from the spirit and teaching of the present disclosure, the various embodiments of the present disclosure and/or the features described in the claims can be combined and/or combined in various ways. All such combinations and/or combinations fall within the scope of the present disclosure.

以上对本公开的实施例进行了描述。但是,这些实施例仅仅是为了说明的目的,而并非为了限制本公开的范围。尽管在以上分别描述了各实施例,但是这并不意味着各个实施例中的措施不能有利地结合使用。本公开的范围由所附权利要求及其等同物限定。不脱离本公开的范围,本领域技术人员可以做出多种替代和修改,这些替代和修改都应落在本公开的范围之内。The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the various embodiments have been described separately above, this does not mean that the measures in the various embodiments cannot be advantageously used in combination. The scope of the present disclosure is defined by the appended claims and their equivalents. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of the present disclosure, and these substitutions and modifications should all fall within the scope of the present disclosure.

Claims (18)

1. A data communication method applied to an edge in a container cluster management system, the method comprising:
determining a communication type and a communication connection state according to a first data communication request in response to receiving the first data communication request, wherein the first data communication request comprises source address information corresponding to a source container group and target address information corresponding to a target container group;
acquiring data to be communicated by utilizing an acquisition tool corresponding to the source address information according to the communication type, wherein the edge end comprises at least one edge node, and the acquisition tools are respectively arranged on the at least one edge node; and
And under the condition that the communication connection state is not communicated, based on the first communication connection, sending a second data communication request to a cloud node of the cloud so that the cloud node can forward the second data communication request to a target node corresponding to the target container group according to the target address information, wherein the second data communication request comprises the data to be communicated and the target address information.
2. The method of claim 1, wherein each of the at least one edge node comprises at least one container group, the at least one container group each corresponding to address information, the address information determined by:
for each of the at least one edge node,
determining a sub-network segment range corresponding to the edge node according to the network segment range of the container cluster management system; and
and determining the respective address information of the at least one container group corresponding to the edge node according to the subnet segment range corresponding to the edge node.
3. The method of claim 2, wherein the at least one edge node each corresponds to an edge node identification, and the at least one container group each corresponds to a container group identification;
The method further comprises, after the determining, according to the subnet range corresponding to the edge node, respective address information of the at least one container group corresponding to the edge node:
determining a first routing rule according to an edge node identifier corresponding to the edge node and at least one container group identifier; and
and determining a second routing rule according to the at least one container group identifier and the respective address information of the at least one container group.
4. The method of claim 1, wherein the determining the communication type and the communication connection state from the first data communication request in response to receiving the first data communication request comprises:
determining a source node identifier and a target node identifier according to the source address information, the target address information, the first routing rule and the second routing rule; and
and determining the communication type and the communication connection state according to the source node identification and the target node identification.
5. The method of claim 4, wherein the determining a source node identity and a destination node identity from the source address information, the destination address information, a first routing rule, and a second routing rule comprises:
Determining a source container group identifier according to the source address information and the second routing rule;
determining a source node identifier according to the source container group identifier and the first routing rule;
determining a target container group identifier according to the target address information and the second routing rule; and
and determining a target node identifier according to the target container group identifier and the first routing rule.
6. The method according to claim 4 or 5, wherein said determining the communication type and communication connection status from the source node identification and the destination node identification comprises:
under the condition that the source node identification is consistent with the target node identification, determining the communication type as the node communication;
under the condition that the source node identification is inconsistent with the target node identification, determining the communication type as cross-node communication;
determining that the communication connection state is communicated under the condition that heartbeat connection exists between a source node and a target node, wherein the source node corresponds to the source node identification, and the target node corresponds to the target node identification; and
and under the condition that the heartbeat connection does not exist between the source node and the target node, determining that the communication connection state is not communicated.
7. The method of claim 6, wherein the acquiring the data to be communicated using the acquisition tool corresponding to the source address information according to the communication type comprises:
under the condition that the communication type is the node communication, acquiring the data to be communicated from the target container group by utilizing the acquisition tool; and
and under the condition that the communication type is cross-node communication, acquiring the data to be communicated from a target port by utilizing the acquisition tool.
8. The method of claim 1, wherein the sending, based on the first communication connection, the second data communication request to the cloud node of the cloud, if the communication connection state is not connected, comprises:
under the condition that the communication connection state is not communicated, a first communication connection is established between a source node corresponding to the source container group and a cloud node of the cloud; and
and sending the second data communication request to the cloud node based on the first communication connection.
9. The method of claim 1, further comprising:
establishing a second communication connection between the source node and the target node in the case that the communication connection state is connected; and
And sending the second data communication request to the target node based on the second communication connection so as to facilitate the completion of the data communication between the source node and the target node.
10. The method of any of claims 1 to 9, wherein the edge is constructed based on KubeEdge and the cloud is constructed based on Kubernetes.
11. A data communication method applied to a cloud in a container cluster management system, the method comprising:
determining a target node identification according to a second data communication request in response to receiving the second data communication request, wherein the second data communication request comprises data to be communicated and target address information; and
and sending the data to be communicated to a target node corresponding to the target node identifier by using a configuration tool so as to finish data communication between the source node and the target node, wherein the cloud comprises a cloud node, and the configuration tool is deployed on the cloud node.
12. The method of claim 11, wherein the determining the target node identification in response to receiving a second data communication request from the second data communication request comprises:
Determining a target container group identifier according to the target address information; and
and determining the target node identification according to the target container group identification.
13. The method according to claim 11 or 12, wherein the sending the data to be communicated to a target node corresponding to the target node identification using a configuration tool in order to complete data communication between the source node and the target node comprises:
and sending the data to be communicated to an acquisition tool corresponding to the target node identifier by using the configuration tool, so that the acquisition tool can forward the data to be communicated to a target container group corresponding to the target container group identifier.
14. A data communication device for use at an edge in a container cluster management system, the device comprising:
a first determining module, configured to determine a communication type and a communication connection state according to a first data communication request in response to receiving the first data communication request, where the first data communication request includes source address information corresponding to a source container group and destination address information corresponding to a destination container group;
the acquisition module is used for acquiring data to be communicated by utilizing an acquisition tool corresponding to the source address information according to the communication type, wherein the edge end comprises at least one edge node, and the acquisition tools are respectively deployed on the at least one edge node; and
The first sending module is configured to send, based on the first communication connection, a second data communication request to a cloud node in the cloud, so that the cloud node forwards, according to the target address information, the second data communication request to a target node corresponding to the target container group, where the second data communication request includes the data to be communicated and the target address information.
15. A data communication device for use in a cloud in a container cluster management system, the device comprising:
a second determining module, configured to determine, in response to receiving a second data communication request, a target node identifier according to the second data communication request, where the second data communication request includes data to be communicated and target address information; and
the second sending module is configured to send the data to be communicated to a target node corresponding to the target node identifier by using a configuration tool, so as to complete data communication between the source node and the target node, where the cloud end includes a cloud end node, and the cloud end node deploys the configuration tool.
16. An electronic device, comprising:
one or more processors;
a memory for storing one or more instructions,
wherein the one or more instructions, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1 to 10 or 11 to 13.
17. A computer readable storage medium having stored thereon executable instructions which when executed by a processor cause the processor to implement the method of any of claims 1 to 10 or 11 to 13.
18. A computer program product comprising computer executable instructions for implementing the method of any one of claims 1 to 10 or 11 to 13 when executed.
CN202211617204.0A 2022-12-13 2022-12-13 Data communication method and device, electronic device and computer-readable storage medium Active CN116032995B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211617204.0A CN116032995B (en) 2022-12-13 2022-12-13 Data communication method and device, electronic device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211617204.0A CN116032995B (en) 2022-12-13 2022-12-13 Data communication method and device, electronic device and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN116032995A true CN116032995A (en) 2023-04-28
CN116032995B CN116032995B (en) 2025-09-02

Family

ID=86090421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211617204.0A Active CN116032995B (en) 2022-12-13 2022-12-13 Data communication method and device, electronic device and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN116032995B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112799789A (en) * 2021-03-22 2021-05-14 腾讯科技(深圳)有限公司 Node cluster management method, device, equipment and storage medium
CN112910955A (en) * 2021-01-15 2021-06-04 上海中通吉网络技术有限公司 Cloud and edge data communication method and device and edge computing system
CN114691280A (en) * 2020-12-28 2022-07-01 北京金山云网络技术有限公司 Data communication method and device for edge calculation and edge calculation system
CN114979144A (en) * 2022-05-19 2022-08-30 中国电信股份有限公司 Cloud edge communication method and device and electronic equipment
WO2022237255A1 (en) * 2021-05-14 2022-11-17 华为技术有限公司 Management method and system for computing node

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114691280A (en) * 2020-12-28 2022-07-01 北京金山云网络技术有限公司 Data communication method and device for edge calculation and edge calculation system
CN112910955A (en) * 2021-01-15 2021-06-04 上海中通吉网络技术有限公司 Cloud and edge data communication method and device and edge computing system
CN112799789A (en) * 2021-03-22 2021-05-14 腾讯科技(深圳)有限公司 Node cluster management method, device, equipment and storage medium
WO2022237255A1 (en) * 2021-05-14 2022-11-17 华为技术有限公司 Management method and system for computing node
CN114979144A (en) * 2022-05-19 2022-08-30 中国电信股份有限公司 Cloud edge communication method and device and electronic equipment

Also Published As

Publication number Publication date
CN116032995B (en) 2025-09-02

Similar Documents

Publication Publication Date Title
CN112165532B (en) Node access method, device, equipment and computer readable storage medium
JP7203444B2 (en) Selectively provide mutual transport layer security using alternate server names
US10469314B2 (en) API gateway for network policy and configuration management with public cloud
US11909845B2 (en) Methods and systems for managing applications of a multi-access edge computing environment
US12052173B2 (en) Executing workloads across multiple cloud service providers
CN108449418A (en) A hybrid cloud platform management system and method
CN116389599B (en) Gateway service request processing method and device and cloud native gateway system management method and device
CN113259479B (en) Data processing method and equipment
US11177974B2 (en) Consistent provision of member node group information on virtual overlay network
CN107615716A (en) Multi-tenant for cloud networking perceives DHCP(DHCP)Mechanism
CN113301116A (en) Cross-network communication method, device, system and equipment for microservice application
CN110247784A (en) Method and device for determining network topology
CN114938395B (en) Service response method, device, equipment and storage medium
US10785056B1 (en) Sharing a subnet of a logically isolated network between client accounts of a provider network
US12074918B2 (en) Network-based Media Processing (NBMP) workflow management through 5G Framework for Live Uplink Streaming (FLUS) control
CN114385382B (en) Light application access method, device, computer equipment and storage medium
CN110399578A (en) Page access method and device
CN107294763A (en) Network equipment method and apparatus
CN112804366B (en) Method and device for resolving domain name
US20160308933A1 (en) Addressing application program interface format modifications to ensure client compatibility
CN114979144B (en) Cloud edge communication method and device and electronic equipment
CN119415219A (en) Container image acquisition method, device, equipment, medium and program product
CN116032995B (en) Data communication method and device, electronic device and computer-readable storage medium
CN119052135A (en) Network path survival method, working node, equipment and medium based on DPU
CN116599855A (en) Data transmission method, system, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant