Network communication method and system based on multi-container cluster, and storage medium
The virtual LAN controller and client allocate network segment resources and routing information between container clusters, which solves the problem that traditional container clusters cannot achieve cross-cluster communication, realizes interconnection and interoperability between container clusters, and expands the scale of the container network. .
Patent Information
- Application Number
- CN202410764656.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-10-01
AI Technical Summary
Container clusters such as traditional Kubernetes can only achieve container communication within a single container cluster and cannot achieve container network interoperability across container clusters, which limits the scale of container network applications.
Through the interaction between the virtual LAN controller and the virtual LAN client, network segment resources are allocated to multiple container clusters, and global node routing information is recorded to realize virtual tunnel packetization and decapsulation across container clusters, and to achieve interconnection and interoperability across container clusters.
It realizes the interconnection between multiple container clusters, meets the access needs of cross-container clusters, and expands the scale of container network applications.
Smart Images

Figure CN118740716A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer and network communication technology, and in particular, to a network communication method, system, and storage medium based on a multi-container cluster. Background Art
[0002] Container clusters, such as Kubernetes (K8S for short), can be used to manage containerized workloads and services. By transforming services into containers and deploying them in container clusters such as Kubernetes, rapid deployment of business applications and self-healing of faults can be achieved. At the same time, with the help of the orchestration and scheduling capabilities of container clusters such as Kubernetes, business services can be quickly and elastically expanded and contracted to cope with business pressures of different loads.
[0003] However, traditional container clusters such as Kubernetes often only implement container communication within a single container cluster and cannot achieve container network interoperability across container clusters, which limits the scale of container network application deployment. Summary of the invention
[0004] The embodiments of the present disclosure provide a network communication method, system and storage medium based on a multi-container cluster to achieve interconnection and intercommunication across container clusters.
[0005] In a first aspect, an embodiment of the present disclosure provides a network communication method based on a multi-container cluster, including:
[0006] Through the interaction between the virtual LAN controller and the virtual LAN client, the corresponding network segment resources are respectively allocated to each node in the multiple container clusters, wherein each node is configured with the corresponding virtual LAN client, and each node can be allocated with a unique network segment resource in the cluster and the network segment resources of all nodes do not overlap with each other;
[0007] Receiving, through the virtual local area network controller, node routing information synchronized by a virtual local area network client in each node in the multiple container clusters, and recording global node routing information, wherein the global node routing information includes routing information of all nodes in the multiple container clusters;
[0008] Obtaining the global node routing information from the virtual local area network controller through the virtual local area network client in each node, and updating the global node routing information maintained locally at the node to which the virtual local area network client belongs;
[0009] Virtual tunnel encapsulation and decapsulation are controlled by each node in the plurality of container clusters based on the global node routing information maintained by each node.
[0010] In a second aspect, an embodiment of the present disclosure provides a network communication system based on a multi-container cluster, including: a virtual local area network controller and a plurality of container clusters, wherein each node of the plurality of container clusters deploys a virtual local area network client;
[0011] The virtual local area network controller is used to allocate the corresponding network segment resources to each node in the multiple container clusters by interacting with the virtual local area network client, wherein each node is configured with the corresponding virtual local area network client, and each node can be allocated with a unique network segment resource in the cluster and the network segment resources of all nodes do not overlap; receive the node routing information synchronized by the virtual local area network client in each node in the multiple container clusters, and record the global node routing information, wherein the global node routing information includes the routing information of all nodes in the multiple container clusters;
[0012] The virtual local area network client in each node is used to obtain the global node routing information from the virtual local area network controller, and update the global node routing information maintained locally at the node to which the virtual local area network client belongs;
[0013] Each node in the plurality of container clusters is used to control virtual tunnel encapsulation and decapsulation based on the global node routing information maintained by each node.
[0014] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor and a memory;
[0015] The memory stores computer-executable instructions;
[0016] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the network communication method based on the multi-container cluster as described in the first aspect and various possible designs of the first aspect.
[0017] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the network communication method based on a multi-container cluster as described in the first aspect and various possible designs of the first aspect is implemented.
[0018] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including computer execution instructions. When a processor executes the computer execution instructions, the network communication method based on a multi-container cluster as described in the first aspect and various possible designs of the first aspect is implemented.
[0019] The network communication method, system and storage medium based on a multi-container cluster provided by the embodiments of the present disclosure respectively allocate corresponding network segment resources to each node in a plurality of container clusters through the interaction between a virtual local area network controller and a virtual local area network client, wherein each node is configured with a corresponding virtual local area network client, and each node can be allocated a unique network segment resource in the cluster and the network segment resources of all nodes do not overlap with each other; the node routing information synchronized by the virtual local area network client in each node in the plurality of container clusters is received through the virtual local area network controller, and the global node routing information is recorded, and the global node routing information includes the routing information of all nodes in the plurality of container clusters; the global node routing information is obtained from the virtual local area network controller through the virtual local area network client in each node, and the global node routing information maintained locally at the node to which the virtual local area network client belongs is updated; and the virtual tunnel packetization and depacketization are controlled by each node in the plurality of container clusters based on the global node routing information maintained by each node. In this embodiment, a virtual LAN controller is used to uniformly allocate corresponding network segment resources to each node in multiple container clusters and maintain global node routing information. The virtual LAN controller maintains the global node routing information locally at the node, so that each node in multiple container clusters can be interconnected based on the global node routing information maintained by each node, thereby meeting the access requirements across container clusters. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0021] Figure 1 An example diagram of the architecture of a network communication method based on a multi-container cluster provided in an embodiment of the present disclosure;
[0022] Figure 2 A schematic diagram of a flow chart of a network communication method based on a multi-container cluster provided in an embodiment of the present disclosure;
[0023] Figure 3 A schematic diagram of the architecture of a virtual local area network controller and a virtual local area network client provided in an embodiment of the present disclosure;
[0024] Figure 4 A schematic diagram of hook function deployment provided by an embodiment of the present disclosure;
[0025] Figure 5 A schematic diagram of a flow chart of a network communication method based on a multi-container cluster provided in another embodiment of the present disclosure;
[0026] Figure 6 A schematic diagram of a flow chart of a network communication method based on a multi-container cluster provided in another embodiment of the present disclosure;
[0027] Figure 7 A schematic diagram of network address translation provided by an embodiment of the present disclosure;
[0028] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in one embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0030] Traditional container clusters such as Kubernetes are divided into control nodes and worker nodes. The control nodes are used to manage the metadata, container scheduling and orchestration of the entire cluster. For example, each node in Kubernetes is deployed with a node agent kubelet and a service agent kube-proxy. The node agent kubelet is used to communicate with the control component and call the standard CRI (container runtime interface) interface to interact with the underlying container runtime engine (such as docker, containerd). It is responsible for the full range of life cycles of container applications, including adding / deleting / modifying container groups (pods); the service agent kube-proxy is used to proxy cluster services. The client can communicate with the container through the service domain name, thereby shielding the underlying container resource architecture (such as the number of containers, container deployment location, etc.).
[0031] According to the above architecture, the interaction between container groups in the same node in the same container cluster can be directly forwarded at Layer 2 through the bridge device (Bridge); and the interaction between container groups in different nodes in the same container cluster can be forwarded through virtual tunnels through the virtual LAN (Overlay), and the original message is encapsulated and decapsulated by vxlan at the virtual LAN Overlay layer to achieve Pod network interoperability between different nodes. However, traditional container clusters such as Kubernetes often only realize container communication within a single container cluster, and cannot achieve container network interoperability across container clusters, which limits the scale of container network application deployment.
[0032] In order to solve the above technical problems, the network communication method based on multi-container clusters provided in the embodiment of the present disclosure forms a large-scale container network with multiple container clusters, each container cluster includes one or more nodes, and at least one container group (pod) and / or host application (APP) is deployed on each node. A virtual local area network (Overlay) constructed based on the underlying physical network (Underlay) between different nodes of different container clusters can be used to achieve intercommunication between different nodes of different container clusters, wherein a virtual local area network controller (vxlan-controller) is deployed in the container network, and corresponding virtual local area network clients (vxlan-agents) are respectively configured on each node in the multiple container clusters, and the virtual local area network controller (vxlan-controller) is used to control the virtual local area network. The method comprises the following steps: the first step is to configure a virtual local area network controller and a virtual local area network client to interact with each other, and allocate the corresponding network segment resources to each node in the multiple container clusters, wherein each node can be allocated a unique network segment resource in the cluster and the network segment resources of all nodes do not overlap; the virtual local area network controller receives the node routing information synchronized by the virtual local area network client in each node in the multiple container clusters, and records the global node routing information, and the global node routing information includes the routing information of all nodes in the multiple container clusters; the virtual local area network client in each node obtains the global node routing information from the virtual local area network controller, and updates the global node routing information maintained locally in the node to which the virtual local area network client belongs; and the nodes in the multiple container clusters control the virtual tunnel encapsulation and decapsulation based on the global node routing information maintained by each node. In this embodiment, the virtual local area network controller allocates the corresponding network segment resources to each node in the multiple container clusters and maintains the global node routing information, and the virtual local area network controller maintains the global node routing information locally in the node, so that each node in the multiple container clusters can be interconnected based on the global node routing information maintained by each node, so as to meet the access requirements across container clusters.
[0033] The network communication method based on a multi-container cluster provided in the embodiments of the present disclosure can be applied to Figure 1In the large-scale container network architecture shown, it may include multiple container clusters (such as Kubernetes clusters), each container cluster includes one or more nodes, each node is deployed with at least one container group (pod) and / or host application (APP), and a virtual local area network (Overlay) built based on the underlying physical network (Underlay) between different nodes of different container clusters can be used to achieve intercommunication between different nodes of different container clusters. A virtual LAN controller (vxlan-controller) is deployed in the container network, and corresponding virtual LAN clients (vxlan-agents) are configured on each node in the multiple container clusters. The virtual LAN controller is connected to the virtual LAN client, and the corresponding network segment resources are allocated to each node in the multiple container clusters through the interaction between the virtual LAN controller and the virtual LAN client; the node routing information synchronized by the virtual LAN client in each node in the multiple container clusters is received through the virtual LAN controller, and the global node routing information is recorded; the global node routing information is obtained from the virtual LAN controller through the virtual LAN client in each node, and the global node routing information maintained locally in the node to which the virtual LAN client belongs is updated; and the virtual tunnel packet encapsulation and decapsulation are controlled by each node in the multiple container clusters based on the global node routing information maintained by each node.
[0034] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0035] The network communication method based on a multi-container cluster disclosed in the present invention will be described in detail below in conjunction with specific embodiments.
[0036] refer to Figure 2 , Figure 2 A schematic diagram of a network communication method based on a multi-container cluster provided in an embodiment of the present disclosure. In this embodiment, a large-scale container network may include multiple container clusters (such as Kubernetes clusters), and its system architecture is as follows: Figure 1 As shown, the method of this embodiment can be applied to Figure 1 In the system architecture shown, the network communication method based on the multi-container cluster includes:
[0037] S201. Allocate corresponding network segment resources to each node in a plurality of container clusters through interaction between a virtual LAN controller and a virtual LAN client, wherein each node is configured with a corresponding virtual LAN client, and each node can be allocated a unique network segment resource in the cluster and the network segment resources of all nodes do not overlap.
[0038] In this embodiment, the virtual LAN controller (vxlan-controller) is connected to the virtual LAN client (vxlan-agent) configured in each node in multiple container clusters, and can interact with the virtual LAN client configured in each node to allocate the corresponding network segment resources to different nodes in different container clusters. The network segment resources are the network segment resources in the virtual LAN, and each node can be allocated a unique network segment resource in the cluster and all node network segment resources do not overlap. In addition, the virtual LAN controller can also store the network segment resources of different nodes in different container clusters, for example, in an etcd (distributed key-value storage system) cluster, or other databases.
[0039] Among them, the virtual LAN controller allocates network segment resources to any node of any container cluster, which can be performed when the node applies to become a node of the container cluster to which it belongs. Taking the first node of the first container cluster as an example, when the first node applies to become a node of the first container cluster (that is, the first node applies to join the first container cluster), a node application request can be sent. Specifically, a virtual LAN client can be deployed on the first node, and a node application request can be sent to the virtual LAN controller through the virtual LAN client, and then the virtual LAN controller allocates network segment resources to the first node, wherein the allocated network segment resources can be the allocation of virtual LAN segments, such as CIDR (Classless Inter-Domain Routing) segments, to ensure that the network segment resources of different nodes do not overlap.
[0040] Optionally, when allocating the corresponding network segment resources to each node through the interaction between the virtual LAN controller and the virtual LAN client, one or more corresponding network segment resources can be allocated to each node according to the performance of each node in the multiple container clusters and / or the target deployment number of the container group. Specifically, the node performance and / or the target deployment number of the expected deployed container group can be included in the above-mentioned node application request, and then the virtual LAN controller can allocate network segment resources to the node according to the node performance and / or the target deployment number of the container group. In particular, if the node performance is strong and / or the target deployment number of the container group is large, the number of allocated network segment resources can be increased to be sufficient for the deployed container group, thereby increasing the density of the node deployment container group and improving the utilization rate; if the node performance is weak and / or the target deployment number of the container group is small, the number of allocated network segment resources can be reduced to avoid wasting virtual LAN network segment resources.
[0041] S202. Receive, through the virtual local area network controller, node routing information synchronized by a virtual local area network client in each node in the multiple container clusters, and record global node routing information, where the global node routing information includes routing information of all nodes in the multiple container clusters.
[0042] In this embodiment, after obtaining the corresponding network segment resources, the virtual LAN client in each node in the multiple container clusters can determine the node routing information, where the node routing information includes the routing information of the entire node in the virtual LAN, and may also include the routing information of the container group deployed in the node.
[0043] Specifically, when a container group is deployed in each node in a plurality of container clusters, an address is allocated to the container group based on the network segment resources corresponding to each node through a virtual local area network client in each node, and routing information of the container group is determined.
[0044] Furthermore, the virtual LAN client can synchronize the routing information of the node (including the routing information of the container group) to the virtual LAN controller, so that the virtual LAN controller can obtain the global node routing information and store it, for example, in an etcd (distributed key-value storage system) cluster, or other databases.
[0045] Optionally, in any node, the virtual LAN client can be deployed in the node in the form of daemonsets (daemon process) containers. In addition to applying for network segment resources from the virtual LAN controller for the node, it can also configure network devices for the container group (pod) in the node and allocate virtual LAN routing information (that is, IP allocation) based on the network segment resources, as CNI (Container Network Interface). In addition, it can also obtain (and synchronize) global node routing information from the virtual LAN controller, for example, continuously connect to the virtual LAN controller through a long link network, based on the long link network between the virtual LAN controller and the virtual LAN clients in each node in multiple container clusters, the virtual LAN controller can receive the node routing information synchronized by the virtual LAN clients in each node in multiple container clusters. In addition, it can also check the update of the node routing information synchronized by the virtual LAN clients in each node (real-time check or regular check and update), and it can also be used as a kube-proxy to be responsible for load balancing between container groups. Among them, the network device configuration is performed for the container group (pod) in this node, and the virtual network card (veth) pair required for the container group (pod) is created and configured; and the virtual LAN routing information is allocated for the container group (pod) in this node. Taking the first node as an example, the specific process may be to receive a request to deploy the container group in the first node, and use the virtual LAN client deployed in the first node as CNI to allocate virtual LAN routing information to the container group to be deployed (specific IP address allocation can be performed based on the CIDR network segment), store it locally, and send it to the virtual LAN controller (in addition, the virtual LAN routing information of the container group of this node can also be reported regularly).
[0046] S203: Obtain the global node routing information from the virtual local area network controller through the virtual local area network client in each node, and update the global node routing information maintained locally at the node to which the virtual local area network client belongs.
[0047] In this embodiment, the virtual LAN client in each node can obtain the global node routing information from the virtual LAN controller and store it locally. In addition, it can check the update of the global node routing information of the virtual LAN controller in real time or periodically. If an update occurs, it can also obtain the global node routing information from the virtual LAN controller again and update the locally maintained global node routing information.
[0048] Optionally, if the virtual LAN controller and the virtual LAN clients in each node in the multiple container clusters are connected through a long link network, based on the long link network, the virtual LAN clients in each node can obtain global node routing information from the virtual LAN controller.
[0049] Optional, such as Figure 3 As shown, multiple virtual LAN controllers can be deployed, and the virtual LAN controllers can store multiple copies of global node routing information, such as in different etcd clusters. Multiple virtual LAN controllers use load balancing to provide global node routing information to each node to improve load balancing capabilities. Furthermore, any node in any container cluster can obtain global node routing information from any number of virtual LAN controllers based on load balancing and store it locally.
[0050] S204: Control virtual tunnel encapsulation and decapsulation through each node in the multiple container clusters based on the global node routing information maintained by each node.
[0051] In this embodiment, in each node in multiple container clusters, if there is inter-node access, such as access between container groups in different nodes, or access between container groups and applications (host APP) in different nodes, etc., the nodes that access each other can perform virtual tunnel (vxlan) packetization and depacketization of data packets based on the global node routing information maintained by each other, so as to realize cross-node interaction of multiple container clusters (wherein cross-node interaction includes cross-node interaction in the same container cluster, and also includes cross-node interaction in different container clusters).
[0052] The node sending the data packet can perform a virtual tunnel (vxlan) packet of the data packet based on the global node routing information maintained locally, and transmit it to the node receiving the data packet through the virtual tunnel of the virtual local area network, and the node receiving the data packet can perform a virtual tunnel (vxlan) decapsulation of the data packet based on the global node routing information maintained locally. Wherein, since the virtual local area network is constructed based on the underlying physical network (Underlay) between different nodes of different container clusters, therefore, the transmission of data packets through the virtual tunnel of the virtual local area network is actually realized through the underlying physical network. For example, the data packet transmission from the first node to the second node can first redirect the data packet to the network device (vxlan dev) of the second node for virtual tunnel packetization, that is, vxlan packetization, obtain the target data packet, forward it to the second node through the underlying physical network (Underlay), that is, forward the target data packet to the physical network card (eth0) of the second node through the physical network card (eth0) of the first node, further, the second node can unpack the packet, redirect the data packet to the virtual network card (veth) where the target access object is located, and send it to the virtual network card to complete the network packet reception.
[0053] The network communication method based on a multi-container cluster provided in this embodiment allocates corresponding network segment resources to each node in a plurality of container clusters respectively through the interaction between a virtual LAN controller and a virtual LAN client, wherein each node is configured with a corresponding virtual LAN client, and each node can be allocated a unique network segment resource in the cluster and the network segment resources of all nodes do not overlap with each other; the node routing information synchronized by the virtual LAN client in each node in the plurality of container clusters is received through the virtual LAN controller, and the global node routing information is recorded, and the global node routing information includes the routing information of all nodes in the plurality of container clusters; the global node routing information is obtained from the virtual LAN controller through the virtual LAN client in each node, and the global node routing information maintained locally at the node to which the virtual LAN client belongs is updated; and the virtual tunnel packet encapsulation and decapsulation are controlled by each node in the plurality of container clusters based on the global node routing information maintained by each node. In this embodiment, a virtual LAN controller is used to uniformly allocate corresponding network segment resources to each node in multiple container clusters and maintain global node routing information. The virtual LAN controller maintains the global node routing information locally at the node, so that each node in multiple container clusters can be interconnected based on the global node routing information maintained by each node, thereby meeting the access requirements across container clusters.
[0054] Based on any of the above embodiments, after the virtual LAN client in each node obtains the global node routing information from the virtual LAN controller, the extended Berkeley Packet Filter (eBPF) execution engine can be used for local maintenance, that is, the global node routing information obtained from the virtual LAN controller is stored in the eBPF execution engine in each node through the virtual LAN client in each node. Storage through the eBPF execution engine can facilitate subsequent fast routing lookup and fast forwarding based on the eBPF execution engine.
[0055] On the basis of the above embodiment, when each node in the plurality of container clusters controls virtual tunnel encapsulation and decapsulation based on the global node routing information maintained by each node in the plurality of container clusters in S204, it may specifically include:
[0056] The eBPF execution engine in each node in the multiple container clusters controls virtual tunnel packaging and depacketization based on the hook function pre-installed in the network device of each node and the global node routing information maintained by each node.
[0057] In this embodiment, a hook function can be pre-deployed on the network devices of each node in multiple container clusters to bypass the kernel protocol stack of the network device, replace the processing of the kernel protocol stack, reduce the processing of the kernel protocol stack, reduce the consumption of system resources, and reduce time consumption. The hook function is an eBPF hook, which can achieve efficient packet filtering and processing. On this basis, any data packet that needs to be transmitted through the network devices of each node can be blocked by the hook function in the network devices of each node, and the data packet can be obtained, and then the eBPF execution engine in each node performs virtual tunnel packaging and decapsulation on the data packet according to the global node routing information maintained by each node.
[0058] Furthermore, in each node in multiple container clusters, there is inter-node access (including inter-node access in the same container cluster and inter-node access across container clusters), such as access between container groups in different nodes, or access between container groups and applications (host APP) in different nodes.
[0059] In one embodiment, for access between container groups in different nodes, such as access of a first container group in a first node to a second container group in a second node in a plurality of container clusters, the first container group first issues a first access request (data packet) to the second container group, that is, the first container group sends the first access request to a network device of the first node, such as a bridge device of the first node, and obtains the first access request through a first eBPF execution engine in the first node based on a hook function preset in the network device of the first node, and searches for routing information of the second container group in the second node from the global node routing information maintained by the first eBPF execution engine, and performs virtual tunnel encapsulation on the first access request according to the routing information of the second container group to send the first access request to the second node through the virtual tunnel;
[0060] After the second node receives the first access request, the second eBPF execution engine in the second node obtains the first access request based on the network device preset in the second node (for example, the hook function in the bridge device of the second node), searches for the routing information of the second container group from the global node routing information maintained by the second eBPF execution engine, performs virtual tunnel decapsulation on the first access request according to the routing information of the second container group, and then sends it to the second container group.
[0061] Among them, in the process of sending the first access request by the first node, operations such as virtual LAN routing information query, address conversion, and forwarding between network devices are required. The first access request can be obtained by the first eBPF execution engine based on the hook function of the network device preset in the first node, and the first eBPF execution engine implements virtual LAN routing information query, address conversion, and forwarding between network devices based on the hook function, instead of being directly executed by the kernel protocol stack of the network device, thereby reducing the flow of messages in the kernel protocol stack and reducing resource consumption. Specifically, the hook function determines the target access object and searches for the routing information of the target access object. Similarly, in the second node, the second eBPF execution engine also implements virtual LAN routing information query, address conversion, and forwarding between network devices based on the hook function, instead of being directly executed by the kernel protocol stack of the network device, thereby bypassing the kernel protocol stack of the network device of the second node.
[0062] On the basis of the above embodiment, if the first eBPF execution engine in the first node does not query the routing information of the second container group from the global node routing information maintained by the first eBPF execution engine, the first access request can be transmitted to the kernel protocol stack of the network device of the first node, so that the kernel protocol stack of the network device of the first node determines the routing information of the second container group, as well as subsequent address translation, forwarding, etc. Similarly, if the first eBPF execution engine in the second node does not query the routing information of the second container group from the global node routing information maintained by the second eBPF execution engine, the first access request can be transmitted to the kernel protocol stack of the network device of the second node, so that the kernel protocol stack of the network device of the second node processes the first access request.
[0063] In addition, if the first eBPF execution engine queries the routing information of the container group to be accessed from the global node routing information maintained by the first eBPF execution engine and determines that the container group to be accessed is located inside the first node, it can be directly redirected to the container group to be accessed. That is, if the container group to be accessed is a container group inside the first node, the first access request can be directly forwarded at the second layer through the network device of the first node (such as a bridge) without crossing nodes.
[0064] Optional, such as Figure 4As shown, hook functions can be deployed in different directions of different network devices of each node. For example, for a bridge device (bridge), a hook function is deployed in the direction where the bridge device (bridge) is connected to a container group (pod), and a hook function is deployed in the direction where the bridge device (bridge) is connected to a network device (vxlan dev) of a virtual LAN; for a network device (vxlan dev) of a virtual LAN, a hook function is deployed in the direction where the network device (vxlan dev) of the virtual LAN is connected to the bridge device (bridge), and a hook function is deployed in the direction where the network device (vxlan dev) of the virtual LAN is connected to the virtual LAN. Thus, the corresponding hook functions can be used to process the data to be processed that enters each network device from different directions, thereby bypassing the kernel protocol stack of each network device.
[0065] The above embodiment is described in detail below with specific examples:
[0066] like Figure 5 , the container group PodA (11.0.10.10) of the first node needs to access the container group PodB (11.0.11.11) of the second node. The first eBPF execution engine of the first node obtains the first access request through the hook function preset by the network device 1 of the first node, searches for the routing information of the container group PodB based on the global node routing information, and then directly redirects the message of the first access request to the network device 2 of the first node for vxlan packetization. Finally, the first access request is sent through the virtual tunnel of the virtual LAN (actually based on the underlying physical network of the virtual LAN). Send it to the second node (that is, forward it from the physical network card of the first node to the physical network card of the second node); after the second node receives the message of the first access request, it follows the opposite process. The second eBPF execution engine of the second node obtains the first access request through the hook function preset by the network device 3 of the second node, searches for the routing information of the container group PodB based on the global node routing information, unpacks it, and redirects it to the network device 4 of the second node, and then redirects it to the container group PodB through the hook function preset by the network device 4, thereby bypassing the kernel protocol stack of each network device to achieve fast network packet reception.
[0067] In another embodiment, for an application in one node to access a container group in another node, such as a first application in a first node in a plurality of container clusters to access a second container group in a second node, the first application first issues a second access request (data packet) to the second container group, that is, the first application sends the second access request to a network device of the first node, such as a bridge device of the first node, and obtains the second access request through a first eBPF execution engine in the first node based on a hook function preset in the network device of the first node, and searches for routing information of the second container group in the second node from the global node routing information maintained by the first eBPF execution engine, and performs virtual tunnel encapsulation on the second access request according to the routing information of the second container group to send the second access request to the second node through the virtual tunnel;
[0068] After the second node receives the second access request, the second eBPF execution engine in the second node obtains the second access request based on the network device preset in the second node (for example, the hook function in the bridge device of the second node), searches for the routing information of the second container group from the global node routing information maintained by the second eBPF execution engine, performs virtual tunnel decapsulation on the second access request according to the routing information of the second container group, and then sends it to the second container group.
[0069] Among them, when the first eBPF execution engine performs virtual tunnel packaging on the second access request according to the routing information of the second container group, the routing information of the network device of the first node can be determined as the routing information of the first application, and then the second access request is virtually tunnel packaged according to the routing information of the first application (source routing information) and the routing information of the second container group (destination routing information), so that the access of the first application to the container group can be analogized to the access between container groups, thereby realizing cross-node interaction between the application and the container group.
[0070] On the basis of the above embodiment, if the first eBPF execution engine in the first node does not query the routing information of the second container group from the global node routing information maintained by the first eBPF execution engine, the second access request can be transmitted to the kernel protocol stack of the network device of the first node, so that the kernel protocol stack of the network device of the first node determines the routing information of the second container group, as well as subsequent address translation, forwarding, etc. Similarly, if the first eBPF execution engine in the second node does not query the routing information of the second container group from the global node routing information maintained by the second eBPF execution engine, the second access request can be transmitted to the kernel protocol stack of the network device of the second node, so that the kernel protocol stack of the network device of the second node processes the second access request.
[0071] In addition, if the first eBPF execution engine queries the routing information of the container group to be accessed from the global node routing information maintained by the first eBPF execution engine and determines that the container group to be accessed is located inside the first node, it can be directly redirected to the container group to be accessed. That is, if the container group to be accessed is a container group inside the first node, the second access request can be directly forwarded at the second layer through the network device of the first node (such as a bridge) without crossing nodes.
[0072] The above embodiment is described in detail below with specific examples:
[0073] like Figure 6 , the first application of the first node needs to access the container group PodB (11.0.11.11) of the second node, the first eBPF execution engine of the first node obtains the second access request through the hook function preset by the network device 1 of the first node, performs network address translation (NAT) on the source address of the second access request through the hook function preset by the network device 1 of the first node, and uses the virtual LAN routing information of the network device (1 such as a bridge device) as the virtual LAN routing information of the first application (that is, the source address of the second access request), where as an example network address translation is as follows Figure 7 As shown, assuming that the original routing information of the first application is 10.8.60.63, after address translation, it is replaced with the routing information 11.0.10.1 of network device 1, that is, access from 10.8.60.63 to 11.0.11.11 is converted to access from 11.0.10.1 to 11.0.11.11, and then it can be routed to 11.0.11.11 based on the virtual tunnel of the virtual LAN; and based on the global node routing information, the routing information of the container group PodB is searched, and then the message of the second access request is directly redirected to the network device 2 of the first node for vxlan packetization, and finally through the virtual tunnel of the virtual LAN ( The underlying physical network actually based on the virtual LAN) sends the second access request to the second node (that is, forwarded from the physical network card of the first node to the physical network card of the second node). After the second node receives the message of the second access request, it follows the opposite process. The second eBPF execution engine of the second node obtains the second access request through the hook function preset by the network device 3 of the second node, searches for the routing information of the container group PodB based on the global node routing information, unpacks it, and redirects it to the network device 4 of the second node, and then redirects it to the container group PodB through the hook function preset by the network device 4, thereby bypassing the kernel protocol stack of each network device to achieve fast network packet reception.
[0074] In another embodiment, for access of a container group in one node to an application in another node, such as access of a first container group in a first node in a plurality of container clusters to a second application in a second node, the first container group first issues a third access request (data packet) to the second application, that is, the first container group sends the third access request to a network device of the first node, such as a bridge device of the first node, and obtains the third access request through a first eBPF execution engine in the first node based on a hook function preset in the network device of the first node, and searches for routing information of the network device of the second node from the global node routing information maintained by the first eBPF execution engine, that is, uses the routing information of the network device of the second node as the routing information of the second application (target routing information), and performs virtual tunnel encapsulation on the third access request according to the routing information of the network device of the second node to send the third access request to the second node through the virtual tunnel;
[0075] After the second node receives the third access request, the second eBPF execution engine in the second node obtains the third access request based on the network device pre-set in the second node (for example, a hook function in the bridge device of the second node), searches for the routing information of the network device of the second node from the global node routing information maintained by the second eBPF execution engine, performs virtual tunnel unpacking on the third access request according to the routing information of the network device of the second node, and sends the third access request to the network device of the second node, which then sends the third access request to the second application.
[0076] On the basis of the above embodiment, if the first eBPF execution engine in the first node does not query the routing information of the network device of the second node from the global node routing information maintained by the first eBPF execution engine, the third access request can be transmitted to the kernel protocol stack of the network device of the first node, so that the kernel protocol stack of the network device of the first node determines the routing information of the network device of the second node, as well as subsequent address conversion, forwarding and other operations. Similarly, if the first eBPF execution engine in the second node does not query the routing information of the network device of the second node from the global node routing information maintained by the second eBPF execution engine, the third access request can be transmitted to the kernel protocol stack of the network device of the second node, so that the kernel protocol stack of the network device of the second node processes the third access request.
[0077] In addition, if the first eBPF execution engine of the first node queries the routing information of the application to be accessed from the global node routing information maintained by the first eBPF execution engine and determines that the application to be accessed is located inside the first node, it can be directly redirected to the application to be accessed. That is, if the application to be accessed is an application inside the first node, the first access request can be directly forwarded at the second layer through the network device of the first node (such as a bridge) without crossing nodes.
[0078] In addition, based on any of the above embodiments, the heartbeat information sent by the virtual LAN client in each node in the multiple container clusters can be received by the virtual LAN controller based on the long link network between the virtual LAN controller and the virtual LAN client in each node in the multiple container clusters; if the virtual LAN controller does not receive the heartbeat information sent by the virtual LAN client in any node within a preset time, the virtual LAN controller marks the network segment resources corresponding to any node as a to-be-reclaimed state, so as to physically reclaim the network segment resources corresponding to any node.
[0079] On the basis of any of the above embodiments, based on the long link network between the virtual LAN controller and the virtual LAN clients in each node in the multiple container clusters, the virtual LAN controller can also monitor the health of each node. Specifically, the virtual LAN controller receives the heartbeat information sent by the virtual LAN clients in each node in the multiple container clusters. If the virtual LAN controller does not receive the heartbeat information sent by the virtual LAN client in any node within a preset time, the virtual LAN controller can mark the network segment resources (such as CIDR network segment) corresponding to the node as a to-be-reclaimed state, so as to physically recycle the network segment resources corresponding to the node according to the to-be-reclaimed state in the future.
[0080] In another optional embodiment, similar to the interaction process in the above embodiment, the interaction between any node (container group or application) of the container cluster and other network devices (such as virtual machines, etc.) can also be realized. Specifically, the virtual LAN controller can also allocate corresponding network segment resources to other target network devices (such as virtual machines, etc.), that is, through the interaction between the virtual LAN controller and other target network devices, the corresponding network segment resources are allocated to the target network device. The target network device can further configure the routing information of the target network device according to the allocated network segment resources, and then send it to the virtual LAN controller, and receive the routing information of the target network device through the virtual LAN controller as part of the global node routing information, and then obtain the global node routing information from the virtual LAN controller through the target network device, and update the global node routing information maintained locally. In the subsequent interaction process, the virtual tunnel packet is controlled by the target network device based on the global node routing information maintained locally.
[0081] Corresponding to the network communication method based on multi-container cluster in the above embodiment, Figure 1 A structural block diagram of a network communication system based on a multi-container cluster provided in an embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. Figure 1 The network communication system based on multiple container clusters includes: a virtual local area network controller and multiple container clusters, each of the multiple container clusters includes at least one node, and each node of the multiple container clusters deploys a virtual local area network client.
[0082] The virtual local area network controller is used to allocate the corresponding network segment resources to each node in the multiple container clusters by interacting with the virtual local area network client, wherein each node is configured with the corresponding virtual local area network client, and each node can be allocated with a unique network segment resource in the cluster and the network segment resources of all nodes do not overlap; receive the node routing information synchronized by the virtual local area network client in each node in the multiple container clusters, and record the global node routing information, wherein the global node routing information includes the routing information of all nodes in the multiple container clusters;
[0083] The virtual local area network client in each node is used to obtain the global node routing information from the virtual local area network controller, and update the global node routing information maintained locally at the node to which the virtual local area network client belongs;
[0084] Each node in the plurality of container clusters is used to control virtual tunnel encapsulation and decapsulation based on the global node routing information maintained by each node.
[0085] In one or more embodiments of the present disclosure, when the virtual local area network client updates the global node routing information maintained locally at the node to which the virtual local area network client belongs, it is used to:
[0086] The global node routing information obtained from the virtual local area network controller is stored in the extended Berkeley packet filter eBPF execution engine in each node through the virtual local area network client in each node, and the eBPF execution engine is used to maintain the global node routing information locally in the node;
[0087] Accordingly, when each node in the plurality of container clusters controls virtual tunnel encapsulation and decapsulation based on the global node routing information maintained by each node, it is used to:
[0088] The eBPF execution engine in each node in the multiple container clusters controls virtual tunnel packaging and depacketization based on the hook function pre-installed in the network device of each node and the global node routing information maintained by each node.
[0089] In one or more embodiments of the present disclosure, when each node in the multiple container clusters controls virtual tunnel encapsulation and decapsulation through the eBPF execution engine in each node in the multiple container clusters based on a hook function pre-set in a network device of each node and according to the global node routing information maintained by each node, the eBPF execution engine in each node in the multiple container clusters is used to:
[0090] Obtaining, by a first eBPF execution engine in a first node in the plurality of container clusters, a first access request from a first container group in the first node to a second container group in a second node based on a hook function pre-set in a network device of the first node, searching for routing information of the second container group in the second node from global node routing information maintained by the first eBPF execution engine, and performing virtual tunnel encapsulation on the first access request according to the routing information of the second container group to send the first access request to the second node through a virtual tunnel;
[0091] The first access request is obtained by the second eBPF execution engine in the second node based on a hook function preset in the network device of the second node, the routing information of the second container group is searched from the global node routing information maintained by the second eBPF execution engine, and the first access request is virtually tunneled and decapsulated according to the routing information of the second container group and then sent to the second container group.
[0092] In one or more embodiments of the present disclosure, when each node in the multiple container clusters controls virtual tunnel encapsulation and decapsulation through the eBPF execution engine in each node in the multiple container clusters based on a hook function pre-set in a network device of each node and according to the global node routing information maintained by each node, the eBPF execution engine in each node in the multiple container clusters is used to:
[0093] Obtaining, by a first eBPF execution engine in a first node in the plurality of container clusters, a second access request of a first application in the first node to a second container group in a second node based on a hook function pre-set in a network device of the first node, searching for routing information of the second container group from global node routing information maintained by the first eBPF execution engine, and performing virtual tunnel encapsulation on the second access request according to the routing information of the second container group to send the second access request to the second node through a virtual tunnel;
[0094] The second access request is obtained by the second eBPF execution engine in the second node based on a hook function preset in the network device of the second node, the routing information of the second container group is searched from the global node routing information maintained by the second eBPF execution engine, the second access request is virtually tunnel-unpacked according to the routing information of the second container group, and then sent to the second container group.
[0095] In one or more embodiments of the present disclosure, when each node in the plurality of container clusters performs virtual tunnel encapsulation on the second access request based on the routing information of the second container group, it is configured to:
[0096] The first eBPF execution engine determines the routing information of the network device of the first node as the routing information of the first application, and performs virtual tunnel encapsulation on the second access request according to the routing information of the first application and the routing information of the second container group.
[0097] In one or more embodiments of the present disclosure, when each node in the multiple container clusters controls virtual tunnel encapsulation and decapsulation through the eBPF execution engine in each node in the multiple container clusters based on a hook function pre-set in a network device of each node and according to the global node routing information maintained by each node, the eBPF execution engine in each node in the multiple container clusters is used to:
[0098] Obtaining, by a first eBPF execution engine in a first node in the multiple container clusters based on a hook function pre-set in a network device of the first node, a third access request of the first container group in the first node to the second application in the second node, searching for routing information of the network device of the second node from the global node routing information maintained by the first eBPF execution engine, and performing virtual tunnel encapsulation on the third access request according to the routing information of the network device of the second node to send the third access request to the second node through a virtual tunnel;
[0099] The second eBPF execution engine in the second node obtains the third access request through a hook function pre-installed in the network device of the second node, searches for the routing information of the network device of the second node from the global node routing information maintained by the second eBPF execution engine, performs virtual tunnel unpacking on the third access request according to the routing information of the network device of the second node, and sends the third access request to the network device of the second node, which then sends the third access request to the second application.
[0100] In one or more embodiments of the present disclosure, when receiving the node routing information synchronized by the virtual local area network clients in each node in the plurality of container clusters, the virtual local area network controller is configured to:
[0101] Based on a long link network between the virtual local area network controller and the virtual local area network clients in each node in the multiple container clusters, receiving node routing information synchronized by the virtual local area network clients in each node in the multiple container clusters through the virtual local area network controller;
[0102] Correspondingly, obtaining the global node routing information from the virtual local area network controller through the virtual local area network client in each node includes:
[0103] Based on a long link network between the virtual local area network controller and the virtual local area network clients in each node in the multiple container clusters, the global node routing information is obtained from the virtual local area network controller through the virtual local area network clients in each node.
[0104] In one or more embodiments of the present disclosure, the virtual LAN controller is also used to receive heartbeat information sent by the virtual LAN client in each node in the multiple container clusters through the long link network between the virtual LAN client in each node in the multiple container clusters; if the virtual LAN controller does not receive the heartbeat information sent by the virtual LAN client in any node within a preset time, the virtual LAN controller marks the network segment resources corresponding to any node as a to-be-reclaimed state, so as to physically reclaim the network segment resources corresponding to any node.
[0105] In one or more embodiments of the present disclosure, the virtual local area network controller is further used to allocate corresponding network segment resources to the target network device by interacting with the target network device; receive routing information of the target network device;
[0106] The target network device is used to obtain the global node routing information from the virtual local area network controller and update the global node routing information maintained locally; based on the maintained global node routing information, control virtual tunnel packet encapsulation and decapsulation.
[0107] In one or more embodiments of the present disclosure, when the virtual local area network controller allocates the corresponding network segment resources to each node in the plurality of container clusters respectively by interacting with the virtual local area network client, it is used to:
[0108] The virtual LAN controller and the virtual LAN client interact in a manner such that one or more network segment resources corresponding to each node are allocated to each node according to the performance of each node in the multiple container clusters and / or the target deployment quantity of the container group.
[0109] In one or more embodiments of the present disclosure, the virtual local area network client is further used to, when deploying a container group in each node in the plurality of container clusters, allocate an address to the container group based on a network segment resource corresponding to the node to which the virtual local area network client belongs, and determine routing information of the container group;
[0110] When receiving the node routing information synchronized by the virtual local area network clients in each node in the plurality of container clusters, the virtual local area network controller is used to:
[0111] Receive routing information of container groups synchronized by virtual local area network clients in each node in the plurality of container clusters.
[0112] The system provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail in this embodiment.
[0113] refer to Figure 8 , which shows a schematic diagram of the structure of an electronic device 700 suitable for implementing the embodiment of the present disclosure, and the electronic device 700 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0114] like Figure 8 As shown, the electronic device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 to a random access memory (RAM) 703. Various programs and data required for the operation of the electronic device 700 are also stored in the RAM 703. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0115] Typically, the following devices may be connected to the I / O interface 705: input devices 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 708 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 709. The communication devices 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 8The electronic device 700 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0116] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 709, or installed from a storage device 708, or installed from a ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0117] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0118] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0119] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.
[0120] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0121] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0122] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0123] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0124] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0125] In a first aspect, according to one or more embodiments of the present disclosure, a network communication method based on a multi-container cluster is provided, including:
[0126] Through the interaction between the virtual LAN controller and the virtual LAN client, the corresponding network segment resources are respectively allocated to each node in the multiple container clusters, wherein each node is configured with the corresponding virtual LAN client, and each node can be allocated with a unique network segment resource in the cluster and the network segment resources of all nodes do not overlap with each other;
[0127] Receiving, through the virtual local area network controller, node routing information synchronized by a virtual local area network client in each node in the multiple container clusters, and recording global node routing information, wherein the global node routing information includes routing information of all nodes in the multiple container clusters;
[0128] Obtaining the global node routing information from the virtual local area network controller through the virtual local area network client in each node, and updating the global node routing information maintained locally at the node to which the virtual local area network client belongs;
[0129] Virtual tunnel encapsulation and decapsulation are controlled by each node in the plurality of container clusters based on the global node routing information maintained by each node.
[0130] According to one or more embodiments of the present disclosure, the updating of the global node routing information maintained locally at the node to which the virtual local area network client belongs includes:
[0131] The global node routing information obtained from the virtual local area network controller is stored in the extended Berkeley packet filter eBPF execution engine in each node through the virtual local area network client in each node, and the eBPF execution engine is used to maintain the global node routing information locally in the node;
[0132] Accordingly, each node in the plurality of container clusters controls virtual tunnel encapsulation and decapsulation based on the global node routing information maintained by each node, including:
[0133] The eBPF execution engine in each node in the multiple container clusters controls virtual tunnel packaging and depacketization based on the hook function pre-installed in the network device of each node and the global node routing information maintained by each node.
[0134] According to one or more embodiments of the present disclosure, the eBPF execution engine in each node in the multiple container clusters controls virtual tunnel encapsulation and decapsulation based on a hook function pre-installed in a network device of each node and according to the global node routing information maintained by each node, including:
[0135] Obtaining, by a first eBPF execution engine in a first node in the plurality of container clusters, a first access request from a first container group in the first node to a second container group in a second node based on a hook function pre-set in a network device of the first node, searching for routing information of the second container group in the second node from global node routing information maintained by the first eBPF execution engine, and performing virtual tunnel encapsulation on the first access request according to the routing information of the second container group to send the first access request to the second node through a virtual tunnel;
[0136] The first access request is obtained by the second eBPF execution engine in the second node based on a hook function preset in the network device of the second node, the routing information of the second container group is searched from the global node routing information maintained by the second eBPF execution engine, and the first access request is virtually tunneled and decapsulated according to the routing information of the second container group and then sent to the second container group.
[0137] According to one or more embodiments of the present disclosure, the eBPF execution engine in each node in the multiple container clusters controls virtual tunnel encapsulation and decapsulation based on a hook function pre-installed in a network device of each node and according to the global node routing information maintained by each node, including:
[0138] Obtaining, by a first eBPF execution engine in a first node in the plurality of container clusters, a second access request of a first application in the first node to a second container group in a second node based on a hook function pre-set in a network device of the first node, searching for routing information of the second container group from global node routing information maintained by the first eBPF execution engine, and performing virtual tunnel encapsulation on the second access request according to the routing information of the second container group to send the second access request to the second node through a virtual tunnel;
[0139] The second access request is obtained by the second eBPF execution engine in the second node based on a hook function preset in the network device of the second node, the routing information of the second container group is searched from the global node routing information maintained by the second eBPF execution engine, the second access request is virtually tunnel-unpacked according to the routing information of the second container group, and then sent to the second container group.
[0140] According to one or more embodiments of the present disclosure, the performing virtual tunnel encapsulation on the second access request based on the routing information of the second container group includes:
[0141] The first eBPF execution engine determines the routing information of the network device of the first node as the routing information of the first application, and performs virtual tunnel encapsulation on the second access request according to the routing information of the first application and the routing information of the second container group.
[0142] According to one or more embodiments of the present disclosure, the eBPF execution engine in each node in the multiple container clusters controls virtual tunnel encapsulation and decapsulation based on a hook function pre-installed in a network device of each node and according to the global node routing information maintained by each node, including:
[0143] Obtaining, by a first eBPF execution engine in a first node in the multiple container clusters based on a hook function pre-set in a network device of the first node, a third access request of the first container group in the first node to the second application in the second node, searching for routing information of the network device of the second node from the global node routing information maintained by the first eBPF execution engine, and performing virtual tunnel encapsulation on the third access request according to the routing information of the network device of the second node to send the third access request to the second node through a virtual tunnel;
[0144] The second eBPF execution engine in the second node obtains the third access request through a hook function pre-installed in the network device of the second node, searches for the routing information of the network device of the second node from the global node routing information maintained by the second eBPF execution engine, performs virtual tunnel unpacking on the third access request according to the routing information of the network device of the second node, and sends the third access request to the network device of the second node, which then sends the third access request to the second application.
[0145] According to one or more embodiments of the present disclosure, the receiving, by the virtual local area network controller, node routing information synchronized by the virtual local area network client in each node in the plurality of container clusters includes:
[0146] Based on a long link network between the virtual local area network controller and the virtual local area network clients in each node in the multiple container clusters, receiving node routing information synchronized by the virtual local area network clients in each node in the multiple container clusters through the virtual local area network controller;
[0147] Correspondingly, obtaining the global node routing information from the virtual local area network controller through the virtual local area network client in each node includes:
[0148] Based on a long link network between the virtual local area network controller and the virtual local area network clients in each node in the multiple container clusters, the global node routing information is obtained from the virtual local area network controller through the virtual local area network clients in each node.
[0149] According to one or more embodiments of the present disclosure, the method further includes:
[0150] Based on a long link network between the virtual LAN controller and the virtual LAN clients in each node in the multiple container clusters, receiving heartbeat information sent by the virtual LAN clients in each node in the multiple container clusters through the virtual LAN controller;
[0151] If the virtual LAN controller does not receive the heartbeat information sent by the virtual LAN client in any node within a preset time, the virtual LAN controller marks the network segment resources corresponding to any node as a to-be-reclaimed state to physically reclaim the network segment resources corresponding to any node.
[0152] According to one or more embodiments of the present disclosure, the method further includes:
[0153] Allocate corresponding network segment resources to the target network device through the interaction between the virtual local area network controller and the target network device;
[0154] Receiving routing information of the target network device through the virtual local area network controller;
[0155] Obtaining the global node routing information from the virtual local area network controller through the target network device, and updating the global node routing information maintained locally;
[0156] The target network device controls virtual tunnel encapsulation and decapsulation based on the maintained global node routing information.
[0157] According to one or more embodiments of the present disclosure, the method of allocating corresponding network segment resources to each node in multiple container clusters through the interaction between the virtual local area network controller and the virtual local area network client includes:
[0158] The virtual LAN controller and the virtual LAN client interact in a manner such that one or more network segment resources corresponding to each node are allocated to each node according to the performance of each node in the multiple container clusters and / or the target deployment quantity of the container group.
[0159] According to one or more embodiments of the present disclosure, the receiving, by the virtual local area network controller, node routing information synchronized by the virtual local area network client in each node in the plurality of container clusters includes:
[0160] When deploying container groups in each node in the multiple container clusters, assigning addresses to the container groups based on the network segment resources corresponding to each node through the virtual local area network client in each node, and determining routing information of the container groups;
[0161] The routing information of the container group synchronized by the virtual local area network clients in each node in the plurality of container clusters is received through the virtual local area network controller.
[0162] In a second aspect, according to one or more embodiments of the present disclosure, there is provided a network communication system based on a multi-container cluster, comprising: a virtual local area network controller and a plurality of container clusters, wherein each node of the plurality of container clusters deploys a virtual local area network client;
[0163] The virtual local area network controller is used to allocate the corresponding network segment resources to each node in the multiple container clusters by interacting with the virtual local area network client, wherein each node is configured with the corresponding virtual local area network client, and each node can be allocated with a unique network segment resource in the cluster and the network segment resources of all nodes do not overlap; receive the node routing information synchronized by the virtual local area network client in each node in the multiple container clusters, and record the global node routing information, wherein the global node routing information includes the routing information of all nodes in the multiple container clusters;
[0164] The virtual local area network client in each node is used to obtain the global node routing information from the virtual local area network controller, and update the global node routing information maintained locally at the node to which the virtual local area network client belongs;
[0165] Each node in the plurality of container clusters is used to control virtual tunnel encapsulation and decapsulation based on the global node routing information maintained by each node.
[0166] According to one or more embodiments of the present disclosure, when the virtual local area network client updates the global node routing information maintained locally at the node to which the virtual local area network client belongs, it is used to:
[0167] The global node routing information obtained from the virtual local area network controller is stored in the extended Berkeley packet filter eBPF execution engine in each node through the virtual local area network client in each node, and the eBPF execution engine is used to maintain the global node routing information locally in the node;
[0168] Accordingly, when each node in the plurality of container clusters controls virtual tunnel encapsulation and decapsulation based on the global node routing information maintained by each node, it is used to:
[0169] The eBPF execution engine in each node in the multiple container clusters controls virtual tunnel packaging and depacketization based on the hook function pre-installed in the network device of each node and the global node routing information maintained by each node.
[0170] According to one or more embodiments of the present disclosure, when each node in the multiple container clusters controls virtual tunnel encapsulation and decapsulation through the eBPF execution engine in each node in the multiple container clusters based on a hook function pre-set in a network device of each node and according to the global node routing information maintained by each node, it is used to:
[0171] Obtaining, by a first eBPF execution engine in a first node in the plurality of container clusters, a first access request from a first container group in the first node to a second container group in a second node based on a hook function pre-set in a network device of the first node, searching for routing information of the second container group in the second node from global node routing information maintained by the first eBPF execution engine, and performing virtual tunnel encapsulation on the first access request according to the routing information of the second container group to send the first access request to the second node through a virtual tunnel;
[0172] The first access request is obtained by the second eBPF execution engine in the second node based on a hook function preset in the network device of the second node, the routing information of the second container group is searched from the global node routing information maintained by the second eBPF execution engine, and the first access request is virtually tunneled and decapsulated according to the routing information of the second container group and then sent to the second container group.
[0173] According to one or more embodiments of the present disclosure, when each node in the multiple container clusters controls virtual tunnel encapsulation and decapsulation through the eBPF execution engine in each node in the multiple container clusters based on a hook function pre-set in a network device of each node and according to the global node routing information maintained by each node, it is used to:
[0174] Obtaining, by a first eBPF execution engine in a first node in the plurality of container clusters, a second access request of a first application in the first node to a second container group in a second node based on a hook function pre-set in a network device of the first node, searching for routing information of the second container group from global node routing information maintained by the first eBPF execution engine, and performing virtual tunnel encapsulation on the second access request according to the routing information of the second container group to send the second access request to the second node through a virtual tunnel;
[0175] The second access request is obtained by the second eBPF execution engine in the second node based on a hook function preset in the network device of the second node, the routing information of the second container group is searched from the global node routing information maintained by the second eBPF execution engine, the second access request is virtually tunnel-unpacked according to the routing information of the second container group, and then sent to the second container group.
[0176] According to one or more embodiments of the present disclosure, when each node in the plurality of container clusters performs virtual tunnel encapsulation on the second access request based on the routing information of the second container group, it is configured to:
[0177] The first eBPF execution engine determines the routing information of the network device of the first node as the routing information of the first application, and performs virtual tunnel encapsulation on the second access request according to the routing information of the first application and the routing information of the second container group.
[0178] According to one or more embodiments of the present disclosure, when each node in the multiple container clusters controls virtual tunnel encapsulation and decapsulation through the eBPF execution engine in each node in the multiple container clusters based on a hook function pre-set in a network device of each node and according to the global node routing information maintained by each node, it is used to:
[0179] Obtaining, by a first eBPF execution engine in a first node in the multiple container clusters based on a hook function pre-set in a network device of the first node, a third access request of the first container group in the first node to the second application in the second node, searching for routing information of the network device of the second node from the global node routing information maintained by the first eBPF execution engine, and performing virtual tunnel encapsulation on the third access request according to the routing information of the network device of the second node to send the third access request to the second node through a virtual tunnel;
[0180] The second eBPF execution engine in the second node obtains the third access request through a hook function pre-installed in the network device of the second node, searches for the routing information of the network device of the second node from the global node routing information maintained by the second eBPF execution engine, performs virtual tunnel unpacking on the third access request according to the routing information of the network device of the second node, and sends the third access request to the network device of the second node, which then sends the third access request to the second application.
[0181] According to one or more embodiments of the present disclosure, when receiving node routing information synchronized by virtual local area network clients in each node in the plurality of container clusters, the virtual local area network controller is configured to:
[0182] Based on a long link network between the virtual local area network controller and the virtual local area network clients in each node in the multiple container clusters, receiving node routing information synchronized by the virtual local area network clients in each node in the multiple container clusters through the virtual local area network controller;
[0183] Correspondingly, obtaining the global node routing information from the virtual local area network controller through the virtual local area network client in each node includes:
[0184] Based on a long link network between the virtual local area network controller and the virtual local area network clients in each node in the multiple container clusters, the global node routing information is obtained from the virtual local area network controller through the virtual local area network clients in each node.
[0185] According to one or more embodiments of the present disclosure, the virtual LAN controller is also used to receive heartbeat information sent by the virtual LAN client in each node in the multiple container clusters through the long link network between the virtual LAN client in each node in the multiple container clusters; if the virtual LAN controller does not receive the heartbeat information sent by the virtual LAN client in any node within a preset time, the virtual LAN controller marks the network segment resources corresponding to any node as a to-be-reclaimed state, so as to physically reclaim the network segment resources corresponding to any node.
[0186] According to one or more embodiments of the present disclosure, the virtual local area network controller is further used to allocate corresponding network segment resources to the target network device by interacting with the target network device; receive routing information of the target network device;
[0187] The target network device is used to obtain the global node routing information from the virtual local area network controller and update the global node routing information maintained locally; based on the maintained global node routing information, control virtual tunnel packet encapsulation and decapsulation.
[0188] According to one or more embodiments of the present disclosure, when the virtual local area network controller allocates the network segment resources corresponding to each node in the plurality of container clusters respectively by interacting with the virtual local area network client, it is used to:
[0189] The virtual LAN controller and the virtual LAN client interact in a manner such that one or more network segment resources corresponding to each node are allocated to each node according to the performance of each node in the multiple container clusters and / or the target deployment quantity of the container group.
[0190] According to one or more embodiments of the present disclosure, the virtual local area network client is further used to, when deploying a container group in each node in the multiple container clusters, allocate an address to the container group based on the network segment resources corresponding to the node to which the virtual local area network client belongs, and determine routing information of the container group;
[0191] When receiving the node routing information synchronized by the virtual local area network clients in each node in the plurality of container clusters, the virtual local area network controller is used to:
[0192] Receive routing information of container groups synchronized by virtual local area network clients in each node in the plurality of container clusters.
[0193] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;
[0194] The memory stores computer-executable instructions;
[0195] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the network communication method based on the multi-container cluster as described in the first aspect and various possible designs of the first aspect.
[0196] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the network communication method based on a multi-container cluster as described in the first aspect and various possible designs of the first aspect is implemented.
[0197] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, including computer execution instructions. When a processor executes the computer execution instructions, the network communication method based on a multi-container cluster as described in the first aspect and various possible designs of the first aspect is implemented.
[0198] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0199] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0200] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A network communication method based on a multi-container cluster, characterized in that: include: Through the interaction between the virtual LAN controller and the virtual LAN client, the corresponding network segment resources are respectively allocated to each node in the multiple container clusters, wherein each node is configured with the corresponding virtual LAN client, and each node can be allocated with a unique network segment resource in the cluster and the network segment resources of all nodes do not overlap with each other; Receiving, through the virtual local area network controller, node routing information synchronized by a virtual local area network client in each node in the multiple container clusters, and recording global node routing information, wherein the global node routing information includes routing information of all nodes in the multiple container clusters; Obtaining the global node routing information from the virtual local area network controller through the virtual local area network client in each node, and updating the global node routing information maintained locally at the node to which the virtual local area network client belongs; Virtual tunnel encapsulation and decapsulation are controlled by each node in the plurality of container clusters based on the global node routing information maintained by each node.
2. The method according to claim 1, characterized in that The updating of the global node routing information maintained locally at the node to which the virtual local area network client belongs includes: The global node routing information obtained from the virtual local area network controller is stored in the extended Berkeley packet filter eBPF execution engine in each node through the virtual local area network client in each node, and the eBPF execution engine is used to maintain the global node routing information locally in the node; Accordingly, each node in the plurality of container clusters controls virtual tunnel encapsulation and decapsulation based on the global node routing information maintained by each node, including: The eBPF execution engine in each node in the multiple container clusters controls virtual tunnel packaging and depacketization based on the hook function pre-installed in the network device of each node and the global node routing information maintained by each node.
3. The method according to claim 2, characterized in that The eBPF execution engine in each node in the plurality of container clusters controls virtual tunnel encapsulation and decapsulation based on a hook function pre-installed in a network device of each node and according to the global node routing information maintained by each node, including: Obtaining, by a first eBPF execution engine in a first node in the plurality of container clusters, a first access request from a first container group in the first node to a second container group in a second node based on a hook function pre-set in a network device of the first node, searching for routing information of the second container group in the second node from global node routing information maintained by the first eBPF execution engine, and performing virtual tunnel encapsulation on the first access request according to the routing information of the second container group to send the first access request to the second node through a virtual tunnel; The first access request is obtained by the second eBPF execution engine in the second node based on a hook function preset in the network device of the second node, the routing information of the second container group is searched from the global node routing information maintained by the second eBPF execution engine, and the first access request is virtually tunneled and decapsulated according to the routing information of the second container group and then sent to the second container group.
4. The method according to claim 2, characterized in that: The eBPF execution engine in each node in the plurality of container clusters controls virtual tunnel encapsulation and decapsulation based on a hook function pre-installed in a network device of each node and according to the global node routing information maintained by each node, including: Obtaining, by a first eBPF execution engine in a first node in the plurality of container clusters, a second access request of a first application in the first node to a second container group in a second node based on a hook function pre-set in a network device of the first node, searching for routing information of the second container group from global node routing information maintained by the first eBPF execution engine, and performing virtual tunnel encapsulation on the second access request according to the routing information of the second container group to send the second access request to the second node through a virtual tunnel; The second access request is obtained by the second eBPF execution engine in the second node based on a hook function preset in the network device of the second node, the routing information of the second container group is searched from the global node routing information maintained by the second eBPF execution engine, the second access request is virtually tunnel-unpacked according to the routing information of the second container group, and then sent to the second container group.
5. The method according to claim 4, characterized in that The performing virtual tunnel encapsulation on the second access request based on the routing information of the second container group includes: The first eBPF execution engine determines the routing information of the network device of the first node as the routing information of the first application, and performs virtual tunnel encapsulation on the second access request according to the routing information of the first application and the routing information of the second container group.
6. The method according to claim 2, characterized in that The eBPF execution engine in each node in the plurality of container clusters controls virtual tunnel encapsulation and decapsulation based on a hook function pre-installed in a network device of each node and according to the global node routing information maintained by each node, including: Obtaining, by a first eBPF execution engine in a first node in the multiple container clusters based on a hook function pre-set in a network device of the first node, a third access request of the first container group in the first node to the second application in the second node, searching for routing information of the network device of the second node from the global node routing information maintained by the first eBPF execution engine, and performing virtual tunnel encapsulation on the third access request according to the routing information of the network device of the second node to send the third access request to the second node through a virtual tunnel; The second eBPF execution engine in the second node obtains the third access request through a hook function pre-installed in the network device of the second node, searches for the routing information of the network device of the second node from the global node routing information maintained by the second eBPF execution engine, performs virtual tunnel unpacking on the third access request according to the routing information of the network device of the second node, and sends the third access request to the network device of the second node, which then sends the third access request to the second application.
7. The method according to claim 1, characterized in that The receiving, through the virtual local area network controller, node routing information synchronized by the virtual local area network client in each node in the plurality of container clusters includes: Based on a long link network between the virtual local area network controller and the virtual local area network clients in each node in the multiple container clusters, receiving node routing information synchronized by the virtual local area network clients in each node in the multiple container clusters through the virtual local area network controller; Correspondingly, obtaining the global node routing information from the virtual local area network controller through the virtual local area network client in each node includes: Based on a long link network between the virtual local area network controller and the virtual local area network clients in each node in the multiple container clusters, the global node routing information is obtained from the virtual local area network controller through the virtual local area network clients in each node.
8. The method according to claim 7, characterized in that The method further comprises: Based on a long link network between the virtual LAN controller and the virtual LAN clients in each node in the multiple container clusters, receiving heartbeat information sent by the virtual LAN clients in each node in the multiple container clusters through the virtual LAN controller; If the virtual LAN controller does not receive the heartbeat information sent by the virtual LAN client in any node within a preset time, the virtual LAN controller marks the network segment resources corresponding to any node as a to-be-reclaimed state to physically reclaim the network segment resources corresponding to any node.
9. The method according to claim 1, characterized in that: The method further comprises: Allocate corresponding network segment resources to the target network device through the interaction between the virtual local area network controller and the target network device; Receiving routing information of the target network device through the virtual local area network controller; Obtaining the global node routing information from the virtual local area network controller through the target network device, and updating the global node routing information maintained locally; The target network device controls virtual tunnel encapsulation and decapsulation based on the maintained global node routing information.
10. The method according to claim 1, characterized in that The method of allocating corresponding network segment resources to each node in the plurality of container clusters through the interaction between the virtual local area network controller and the virtual local area network client includes: The virtual LAN controller and the virtual LAN client interact in a manner such that one or more network segment resources corresponding to each node are allocated to each node according to the performance of each node in the multiple container clusters and / or the target deployment quantity of the container group.
11. The method according to claim 1, characterized in that: The receiving, through the virtual local area network controller, node routing information synchronized by the virtual local area network client in each node in the plurality of container clusters includes: When deploying container groups in each node in the multiple container clusters, assigning addresses to the container groups based on the network segment resources corresponding to each node through the virtual local area network client in each node, and determining routing information of the container groups; The routing information of the container group synchronized by the virtual local area network clients in each node in the plurality of container clusters is received through the virtual local area network controller.
12. A network communication system based on a multi-container cluster, characterized in that: include: A virtual local area network controller and multiple container clusters, each node of the multiple container clusters deploying a virtual local area network client; The virtual local area network controller is used to allocate the corresponding network segment resources to each node in the multiple container clusters by interacting with the virtual local area network client, wherein each node is configured with the corresponding virtual local area network client, and each node can be allocated with a unique network segment resource in the cluster and the network segment resources of all nodes do not overlap; receive the node routing information synchronized by the virtual local area network client in each node in the multiple container clusters, and record the global node routing information, wherein the global node routing information includes the routing information of all nodes in the multiple container clusters; The virtual local area network client in each node is used to obtain the global node routing information from the virtual local area network controller, and update the global node routing information maintained locally at the node to which the virtual local area network client belongs; Each node in the plurality of container clusters is used to control virtual tunnel encapsulation and decapsulation based on the global node routing information maintained by each node.
13. An electronic device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method according to any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the method according to any one of claims 1 to 11 is implemented.
15. A computer program product, characterized in that The method comprises computer-executable instructions, and when a processor executes the computer-executable instructions, the method according to any one of claims 1 to 11 is implemented.
Citation Information
Cited By
EBPF-based multi-platform data acquisition method
CN119668684A
Communication method and system, and electronic device and computer program product
WO2026092140A1
