Cross-cluster data plane connection system, method and device, storage medium and product

By using service pods, preset forwarding items and forwarding programs for data plane communication in a cross-cluster environment, the problem of low data plane communication efficiency in the existing technology is solved, efficient and stable data transmission is achieved, and the Resource requirements and costs.

CN118890316APending Publication Date: 2024-11-01PENG CHENG LAB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411199142.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The existing cross-cluster data plane connectivity is inefficient, resulting in network congestion and waste of resources, especially when large-scale data streaming can lead to cluster crashes, increasing costs and latency.

Method used

A cross-cluster data plane communication system is proposed, including service pods, preset forwarding items, forwarding programs and general controllers. By analyzing message information, it determines whether there is a target message header, constructs keywords and forwarding items based on preset forwarding items The data plane communication avoids the need for additional servers, and directly attaches forwarding programs to each server for processing.

Benefits of technology

It improves the efficiency of cross-cluster data plane connectivity, reduces costs, avoids network congestion and resource waste, and ensures the stability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118890316A_ABST
    Figure CN118890316A_ABST
Patent Text Reader

Abstract

The invention discloses a cross-cluster data plane connection system, method and device, a storage medium and a product, and relates to the technical field of wireless communication, and the cross-cluster data plane connection system comprises a service Pod, a preset forwarding table item, a forwarding program, an agent and a master controller. The master controller is used for hooking the forwarding program at a hook position for each server through an agent deployed on each server; the service Pod is used for receiving a message sent by a third party and forwarding the message to the forwarding program; the forwarding program is used for performing data plane communication according to the preset forwarding table item and the message. Compared with an existing mode that the messages are uniformly imported into one server for packaging statistics and then sent to another cluster for data surface communication, the mode does not need an additional server, the data surface communication cost can be reduced, and the data surface communication efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communication technology, and in particular to a cross-cluster data plane connectivity system, method, device, storage medium, and product. Background Art

[0002] Due to business needs and hardware equipment scattered in various regions, container orchestration and management systems (kubernetes, K8s) are often used in related technologies to deploy multiple clusters. However, these clusters need to frequently exchange and share data, and these cross-cluster data need to be encapsulated and counted. Since the business Pod is created and started by a third party, it is impossible to process the message when it is sent. There are currently two solutions to this problem. One is to implement the message encapsulation and statistics functions through the management network card. The other solution is to first import these business messages into a server for encapsulation and statistics before sending them to another cluster. At present, the management network port is generally connected to the public network, so the data volume is very small and cannot meet the requirements. In addition, directly introducing large-scale data streams into the management network interface may cause serious network congestion, which will not only cause significant data transmission delays, but may also cause the entire cluster to collapse due to overload, resulting in immeasurable losses and impacts. For the second solution, it is necessary to consume an extra server and supporting switches, network cards and other resources. Therefore, how to efficiently connect the data plane across clusters has become a technical problem that needs to be solved urgently. Summary of the invention

[0003] The main purpose of the present application is to provide a cross-cluster data plane connectivity system, method, device, storage medium and product, aiming to solve the technical problem of low efficiency of existing cross-cluster data plane connectivity.

[0004] To achieve the above object, the present application proposes a cross-cluster data plane connectivity system, the cross-cluster data plane connectivity system comprising a service Pod, a preset forwarding table entry, a forwarding program, an agent and a general controller;

[0005] The master controller is used to attach the forwarding program to each server at a hook position through an agent deployed on each server;

[0006] The business Pod is used to receive messages sent by a third party and forward the messages to the forwarding program;

[0007] The forwarding program is used to establish data plane connectivity according to the preset forwarding table entry and the message.

[0008] In addition, to achieve the above purpose, the present application also proposes a cross-cluster data plane connectivity method, the cross-cluster data plane connectivity method is applied to the cross-cluster data plane connectivity system, and the cross-cluster data plane connectivity method includes:

[0009] Parse the received message to obtain message information;

[0010] Determining whether the message contains a target message header according to the message information;

[0011] When the message contains the target message header, constructing a keyword;

[0012] Data plane connectivity is performed based on the keyword and the preset forwarding table entry.

[0013] Optionally, the step of performing data plane connectivity based on the keyword and the preset forwarding table entry includes:

[0014] Matching the keywords in the preset forwarding table items to obtain a matching result;

[0015] When the matching result is a successful match, the GTPu encapsulation of the message is removed and the message is forwarded to the kernel network protocol stack for data plane connectivity;

[0016] When the matching result is a match failure, the message is forwarded to the kernel network protocol stack for data plane connectivity.

[0017] Optionally, after the step of determining whether the message contains a target message header according to the message information, the method further includes:

[0018] When the message does not contain the target message header, constructing a first keyword based on a first keyword construction strategy;

[0019] Matching the first keyword in the preset forwarding table entry to obtain a matching result;

[0020] If the matching result is a successful match, the message is encapsulated according to the matching result.

[0021] Optionally, after the step of matching the first keyword in a preset forwarding table entry to obtain a matching result, the step further includes:

[0022] If the matching result is a match failure, constructing a second keyword according to a second keyword construction strategy;

[0023] Matching the second keyword in the preset forwarding table entry to obtain a second matching result;

[0024] If the second matching result is a matching failure, the message is forwarded to the kernel network protocol stack for data plane connectivity.

[0025] Optionally, before the step of parsing the received message to obtain message information, the step further includes:

[0026] Get forwarding program installation information;

[0027] Determine the server IP address according to the server name in the forwarding program installation information;

[0028] The forwarding program installation information is sent to the corresponding target server according to the server IP.

[0029] Optionally, before the step of parsing the received message to obtain message information, the step further includes:

[0030] When a change in the network port resource type is detected, check whether the network port specified in the target field exists;

[0031] If it exists, download the forwarding program according to the hook location.

[0032] In addition, to achieve the above-mentioned purpose, the present application also proposes a cross-cluster data plane connectivity device, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the cross-cluster data plane connectivity method as described above.

[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the cross-cluster data plane connectivity method described above are implemented.

[0034] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the cross-cluster data plane connectivity method as described above are implemented.

[0035] The present application parses the received message to obtain message information; determines whether the message contains a target message header based on the message information; constructs a keyword when the message contains the target message header; and performs data plane connectivity based on the keyword and the preset forwarding table entry. Since the present application constructs a keyword when the received message contains a target message header; and performs data plane connectivity based on the keyword and the preset forwarding table entry. Compared with the existing method of uniformly importing messages into a server for encapsulation and statistics and then sending them to another cluster for data plane connectivity, the above method of the present application does not require an additional server, can reduce the cost of data plane connectivity, and improve the efficiency of data plane connectivity. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0037] In order to more clearly illustrate the embodiments of the present application 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0038] Figure 1 A flowchart of the first embodiment of the cross-cluster data plane connectivity method of the present application is provided;

[0039] Figure 2 A structural diagram provided for the first embodiment of the cross-cluster data plane connectivity method of the present application;

[0040] Figure 3 A schematic diagram of the forwarding table structure provided for the first embodiment of the cross-cluster data plane connectivity method of the present application;

[0041] Figure 4 A schematic diagram of the fwdtbl-crd table entry structure provided in Embodiment 1 of the cross-cluster data plane connectivity method of the present application;

[0042] Figure 5 A schematic diagram of a data plane connection process provided in Embodiment 1 of the cross-cluster data plane connection method of the present application;

[0043] Figure 6 A flow chart of the second embodiment of the cross-cluster data plane connectivity method provided in this application;

[0044] Figure 7 A schematic diagram of a manual installation forwarding program flow provided in Embodiment 2 of the cross-cluster data plane connectivity method of the present application;

[0045] Figure 8 A schematic diagram of the automatic installation and forwarding program flow provided in Embodiment 2 of the cross-cluster data plane connectivity method of the present application;

[0046] Fig. 9 This is a schematic diagram of the module structure of a data plane connection device across clusters according to an embodiment of the present application;

[0047] Fig.10 A schematic diagram of the device structure of the hardware operating environment involved in the cross-cluster data plane connectivity method in an embodiment of the present application.

[0048] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0049] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0050] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0051] The main solution of the embodiment of the present application is: parse the received message to obtain message information; determine whether the message contains a target message header based on the message information; construct a keyword when the message contains the target message header; and perform data plane connectivity based on the keyword and the preset forwarding table entry.

[0052] Since this application constructs a keyword when the received message contains a target message header, and performs data plane connectivity based on the keyword and the preset forwarding table entry, compared to the existing method of uniformly importing messages into a server for encapsulation statistics and then sending them to another cluster for data plane connectivity, the above method of this application does not require an additional server, can reduce data plane connectivity costs, and improve data plane connectivity efficiency.

[0053] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a cluster server, etc. The following takes a cluster server as an example to illustrate this embodiment and the following embodiments.

[0054] Based on this, the embodiment of the present application provides a cross-cluster data plane connectivity method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the cross-cluster data plane connectivity method of the present application.

[0055] In this embodiment, the cross-cluster data plane connectivity method includes steps S10 to S40:

[0056] Step S10, parsing the received message to obtain message information;

[0057] It should be noted that, based on the construction of multiple K8S clusters, this embodiment creates a master controller on the cluster server. The master controller controls the agents (age nt) deployed on each server and attaches forwarding programs (fwd-prog) to different network cards on different servers at different hook locations through command line issuance or automatic server detection. The master controller passes the forwarding table entries of the agent to the forwarding table (fwdtbl-map) based on the extended Berkeley packet filter (ebpf, an open source packet filtering technology). When the network card receives a message, the forwarding program processes the message and reports the statistics to the master controller. Specifically, the control structure in this embodiment can be referred to. Figure 2 , Figure 2 A structural diagram provided for the first embodiment of the cross-cluster data plane connectivity method of the present application; Figure 2 A control structure for cross-cluster data plane connectivity includes business Pod, fwdtbl-map, fwd-prog, fwdtbl-crd, network resource crd, agent, general controller and other components.

[0058] Figure 2 The business Pod is a Pod provided to a third party for use, and includes at least two network cards: a management network card and a data network card.

[0059] Figure 2 The fwdtbl-map is a map based on the ebpf program. It can store fwdtbl-map table items. The fwdtbl-map includes fields such as keywords, forwarding actions, and statistical information.

[0060] Figure 2 The fwd-prog is an ebpf-based program that can be installed in the xdp, tc-ingress, tc-egress of the network card, or in the hook of the socket layer. The message transmission between the fwd-prog and the service pod refers to fwd-prog receiving data from the network card, decapsulating it and sending it to the corresponding data network card; or receiving data from the data network card, encapsulating the message header and sending it out from the network card.

[0061] Figure 2 The fwdtbl-crd is a K8S custom resource type. It can store fwdtbl-crd table items. The fwdtbl-crd table items include fields such as version, type, metadata, details and status.

[0062] Figure 2The network resource crd is a K8S custom resource type, which stores the network resource crd table item. The network resource crd table item includes fields such as type (type), physical port (master), etc.

[0063] Figure 2 The agent described above has one on each server. Figure 1 The connections of the included components include: monitoring the changes of fwdtbl-crd items through K8S api-server; monitoring the changes of network resource crd items with type ipvlan in network resource crd through K8s api-serve r; sending fwdtbl-map table item installation messages to fwdtbl-map p; sending messages to the network card to install fwd-prog to the hook position of the specified network card; obtaining the statistical information of fwdtbl-map items from fwdtbl-map; reporting statistical information to the main controller;

[0064] Figure 2 The master controller is a process that runs on a server in a cluster. Figure 2 The connections between the included components include: the main controller sends the fwdtbl-crd table item installation message through the K8S api-server; the main controller sends the manual installation fwd-prog message to the agent.

[0065] It should be noted that in this embodiment, data plane connectivity is achieved through a forwarding program fwd-prog installed on the server. The parsing of the received message to obtain message information may be that when the forwarding program receives a message, it will obtain the message header, message destination IP address information, destination port number and other information in the message.

[0066] Step S20, judging whether the message contains a target message header according to the message information;

[0067] It should be noted that the target message header is a GTPu message header. The determining whether the message contains the target message header according to the message information may be determining whether the message contains the GTPu message header according to whether the destination port number of the message is the port number of the GTPu message header.

[0068] Step S30, constructing a keyword when the message contains the target message header;

[0069] It should be noted that the keyword can be constructed by setting the keyword type to GTPu type, the IP address to the destination IP of the message, and the tunnel number to the tunnel number carried in the GTPu message header. Among them, GTPu (GPRS Tunnel Protocol over UDP) is a GPRS tunnel protocol implemented on UDP, which is used to transmit user plane data in GSN (GPRS Switching Network). The GTPu header contains the tunnel number, which is used to indicate in the GSN where the data should be forwarded.

[0070] Step S40: Perform data plane connectivity based on the keyword and the preset forwarding table entry.

[0071] It should be noted that the data plane connectivity based on the keyword and the preset forwarding table entry can be matched on the forwarding table with the keyword, and if the match is successful, the GTPu encapsulation of the message is removed. Then the message is forwarded to the kernel network protocol stack for data plane connectivity. If the match fails, the message is directly forwarded to the kernel network protocol stack. The kernel network protocol stack realizes data plane connectivity by kernel sharing.

[0072] It should be noted that the forwarding table is the fwdtbl-map table mentioned above, and its structure can be referred to Figure 3 , Figure 3 A schematic diagram of the forwarding table structure provided for the first embodiment of the cross-cluster data plane connectivity method of the present application; the fw dtbl-map table constituent elements include keywords, forwarding actions, and statistical information. Figure 3 The keyword is a structure, whose constituent elements are composed of keyword type, IP address, port number, and tunnel number. The keyword type is an integer data, which indicates the type of the forwarding table entry, and its value can be GTPu type, IP address type, IP address plus port number type. The IP address is an integer data, which indicates 32-bit data of the IPv4 address family. The port number is an integer data, and when the keyword type is IP address plus port number type, it indicates the destination port number of UDP in the message. The tunnel number is an integer data, and when the keyword type is GTPu type, it indicates the tunnel number of the GTPu header in the message. Figure 3The forwarding action is also a structure, whose constituent elements are composed of action type, encapsulation source IP address, encapsulation destination IP address, and tunnel number. The action type is an integer data, which indicates what operation will be done on this message, and its value can be discard, encapsulation header forwarding, header forwarding, and normal forwarding. The encapsulation source IP address is an integer data. When the action type is encapsulation header forwarding, it indicates the source IP address of the encapsulation outer header. The encapsulation destination IP address is an integer data. When the action type is encapsulation header forwarding, it indicates the destination IP address of the encapsulation outer header. The tunnel number is an integer data. When the action type is encapsulation header forwarding, it indicates the tunnel number when encapsulating the GTPu header. Figure 3 The statistics shown is a structure whose elements are composed of the number of packets sent and the number of packets received. The number of packets received is an integer data, which indicates the number of packets matching this entry. The number of packets sent is an integer data, which indicates the number of packets forwarded after matching this entry.

[0073] The master controller sends the fwdtbl-crd table entry installation message through the K8S api-server. The structure of the fwdtbl-crd table entry can be referred to Figure 4 , Figure 4 A schematic diagram of the fwd tbl-crd table item structure provided for the first embodiment of the data plane connectivity method across clusters of the present application; the constituent elements of the fwdtbl-crd table item include version, type, metadata, details and status. The version is a string that represents the version of the K8S api. The type is a string that represents the type of the fwdtbl-crd table item, which is a fixed value. The metadata is a structure that is the unique identifier of the fwdtbl-crd table item. The details are also a structure, and the agent will install the fwdtbl-map table item based on its content. Figure 4 The metadata shown has name and namespace as its constituent elements. Namespace is a string that indicates the K8S namespace where the fwdtbl-crd table entry is located. Name is a string that indicates the name of the crd table entry, which must be unique in the specified namespace. Figure 4The details shown are a structure, whose constituent elements are matching IP, matching port number, matching tunnel number, action type, encapsulation source IP address, encapsulation destination IP address, and encapsulation tunnel number. Matching IP is an integer data, which indicates the destination IP address in the received message. Matching port number is an integer data, which indicates the destination port number in the received message. Matching port number is an integer data, which indicates the tunnel number in the GTPu message header in the received message. Action type is an integer data, which indicates what operation will be done on this message, and its value can be discard, encapsulation header forwarding, header-less forwarding, and normal forwarding. Encapsulation source IP address is an integer data. When the action type is encapsulation header forwarding, it indicates the source IP address of the encapsulation outer header. Encapsulation destination IP address is an integer data. When the action type is encapsulation header forwarding, it indicates the destination IP address of the encapsulation outer header. Tunnel number is an integer data. When the action type is encapsulation header forwarding, it indicates the tunnel number when encapsulating the GTPu message header.

[0074] Furthermore, after step S20, the method further includes: constructing a first keyword based on a first keyword construction strategy when the message does not contain the target message header;

[0075] Matching the first keyword in the preset forwarding table entry to obtain a matching result;

[0076] If the matching result is a successful match, the message is encapsulated according to the matching result.

[0077] It should be noted that the first keyword constructed based on the first keyword construction strategy can be to set the keyword type to the IP address plus port number type, the IP address is set to the destination IP of the message, and the port number is the keyword of the destination port number, that is, the first keyword. Then, a match is performed in the preset forwarding table item according to the first keyword to obtain a matching result. Encapsulating the message according to the matching result can be to encapsulate the GTPu header and the outer message header according to the forwarding table item, and count the number of messages and the number of bytes.

[0078] Further, after the step of matching the first keyword in the preset forwarding table items to obtain a matching result, the method further includes:

[0079] If the matching result is a match failure, constructing a second keyword according to a second keyword construction strategy;

[0080] Matching the second keyword in the preset forwarding table entry to obtain a second matching result;

[0081] If the second matching result is a matching failure, the message is forwarded to the kernel network protocol stack for data plane connectivity.

[0082] It should be noted that the second keyword constructed according to the second keyword construction strategy can be to set the keyword type to IP address type, the IP address is the destination IP of the message, and the port number is the destination port number to construct the second keyword. If the second matching result is a successful match, the GT Pu header and the outer message header are encapsulated according to the forwarding table entry, and the number of messages and bytes are counted.

[0083] In the specific implementation, please refer to Figure 5 , Figure 5 The data plane connectivity process diagram provided for the first embodiment of the data plane connectivity method across clusters of this application, the workflow of fwd-prog is as follows: S301: When the forwarding program receives a message, it obtains the message header in the message and obtains the destination IP address information, destination port number and other information of the message.

[0084] S302: Determine whether the message contains a GTPu message header according to whether the destination port number of the message is the port number of the GTPu message header. If it is a GTPu port number, execute step S303, otherwise, go to step S307.

[0085] S303: Set the keyword type to GTPu type, the IP address to the destination IP of the message, the tunnel number to the tunnel number carried in the GTPu message header, and construct a keyword.

[0086] S304: Use the keyword to find the entry in the forwarding table. If the entry is found, go to step S305. If not, go to step S306.

[0087] S305: Remove the GTPu encapsulation of the message.

[0088] S306: Forward the message to the kernel network protocol stack.

[0089] S307: Set the keyword type to IP address plus port number type, where the IP address is the destination IP of the message and the port number is the destination port number, and construct a keyword.

[0090] S308: Use the keyword to determine whether the entry is found in the forwarding table. If the entry is found, go to step S309; ​​if not, go to step S310.

[0091] S309: Encapsulate the GTP header and the outer message header according to the table entry, and count the number of messages and bytes.

[0092] S310: Set the keyword type to IP address type, the IP address is the destination IP of the message, the port number is the destination port number, and construct a keyword.

[0093] S311: Check whether the entry is found in the forwarding table using the keyword. If the entry is found, go to step S312; if not, go to step S306.

[0094] S312: Encapsulate the GTP header and the outer message header according to the table entry, and count the number of messages and bytes.

[0095] This embodiment parses the received message to obtain message information; determines whether the message contains a target message header based on the message information; constructs a keyword when the message contains the target message header; and performs data plane connectivity based on the keyword and the preset forwarding table entry. Since this embodiment constructs a keyword when the received message contains a target message header; and performs data plane connectivity based on the keyword and the preset forwarding table entry. Compared with the existing method of uniformly importing messages into a server for encapsulation and statistics and then sending them to another cluster for data plane connectivity, the above method of this embodiment does not require an additional server, can reduce data plane connectivity costs, and improve data plane connectivity efficiency.

[0096] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 6 , Figure 6 The flowchart provided in the second embodiment of the data plane connection method across clusters of the present application includes the following steps before step S10:

[0097] Step S001: Obtain forwarding program installation information;

[0098] It should be noted that this step is to manually install the forwarding program fwd-prog. The forwarding program installation information may include the server name of the server where the forwarding program is to be installed in the K8S system, the network port name on the server, and the location of the hook to be mounted, which are manually input by the user.

[0099] Step S002: Determine the server IP address according to the server name in the forwarding program installation information;

[0100] It should be noted that determining the server IP according to the server name in the forwarding program installation information can be that the controller queries the node list in the K8S system according to the input server name to obtain the IP of the server.

[0101] Step S0203: Send the forwarding program installation information to the corresponding target server according to the server IP.

[0102] It should be noted that the sending of the forwarding program installation information to the corresponding target server according to the server IP may be sending a message to the agent on the server to install the forwarding program, the fields of which include the network port name and the hook location. The forwarding program is installed on the server by manual installation. Specifically, the steps for manually installing the forwarding program can be referred to Figure 7 , Figure 7 A schematic diagram of the manual installation forwarding program flow provided for Embodiment 2 of the cross-cluster data plane connectivity method of the present application, S01: Manually input the server name of the server in the K8S system, the network port name on the server, and the location of the hook to be mounted. S02: The controller queries the node list in the K8S system based on the input server name to obtain the IP address of the server. S03: Send a message to the agent on the server to install the forwarding program, whose fields include the network port name and the hook location. S04: The agent finds the host endpoint, replaces the HOST_END POINT ID macro, finds the network port based on the network port name, and replaces the SRCMAC macro. S05: Select the template's c file based on the hook location, and generate a .o file with the network port name as the suffix. S06: Download the forwarding program to the hook of the network port. S07: End the installation.

[0103] Furthermore, the K8S system provides a custom network port resource called network-attachment-definitions.K8S.cni.cncf.io, which can be divided into many types. Here, only the custom network port resources of ipvlan type are checked. The agent running on each server is constantly detecting changes in the custom resource. In order to meet different business needs, this embodiment also provides a method for automatically installing a forwarding program, including: when a change in the network port resource type is detected, detecting whether the network port specified by the target field exists; if it exists, downloading the forwarding program according to the hook position.

[0104] It should be noted that the steps for automatically installing the forwarding program can be referred to Figure 8 , Figure 8A schematic diagram of the automatic installation forwarding program flow provided for the second embodiment of the data plane connectivity method across clusters of the present application. Specifically, S1: The agent on each server will continuously detect whether the ipvlan type of the custom network port resource has changed. If there is a change, jump to step S2, if there is no change, jump to step S6. S2: The agent checks whether the network port specified by the master field of the custom ipvlan type network port resource exists on this server. If it exists, jump to step S203. If it does not exist, jump to step S206. S3: The agent finds the host endpoint, replaces the HOST_ENDPOINT ID macro, finds the network port according to the network port name specified by the master of the custom resource, and replaces the SRCMAC macro. S4: Select the c file of the template according to the hook position, and generate a .o file with the suffix of the network port name. S5: Download the forwarding program to the hook of the network port. S6: End the installation.

[0105] This embodiment proposes a manual installation method of fwd-prog. It includes: specifying the server name, network port name and hook position in the command line, and finding the corresponding IP in the K8S server list through the server name; sending a message to the IP, whose fields include the network port name and hook position. The automatic installation method of fwd-prog includes: checking whether the network-attachment-definitions.K8S.cni.cncf.io's custom ipvlan type network port resource exists; obtaining the network port name through the master field of the custom ipvlan type network port resource, and obtaining the hook position according to the configuration. The data plane is connected through the installed forwarding program to improve the data plane connection efficiency.

[0106] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the cross-cluster data plane connectivity method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0107] This application also provides a cross-cluster data plane connection device, please refer to Fig. 9 , the cross-cluster data plane connection device includes:

[0108] The parsing module 10 is used to parse the received message and obtain the message information;

[0109] A judging module 20, configured to judge whether the message contains a target message header according to the message information;

[0110] A construction module 30, configured to construct a keyword when the message contains the target message header;

[0111] The connection module 40 is used to perform data plane connection based on the keyword and the preset forwarding table entry.

[0112] This embodiment parses the received message to obtain message information; determines whether the message contains a target message header based on the message information; constructs a keyword when the message contains the target message header; and performs data plane connectivity based on the keyword and the preset forwarding table entry. Since this embodiment constructs a keyword when the received message contains a target message header; and performs data plane connectivity based on the keyword and the preset forwarding table entry. Compared with the existing method of uniformly importing messages into a server for encapsulation and statistics and then sending them to another cluster for data plane connectivity, the above method of this embodiment does not require an additional server, can reduce data plane connectivity costs, and improve data plane connectivity efficiency.

[0113] The cross-cluster data plane connectivity device provided by the present application adopts the cross-cluster data plane connectivity method in the above-mentioned embodiment, which can solve the technical problem of low efficiency of existing cross-cluster data plane connectivity. Compared with the prior art, the beneficial effects of the cross-cluster data plane connectivity device provided by the present application are the same as the beneficial effects of the cross-cluster data plane connectivity method provided by the above-mentioned embodiment, and other technical features in the cross-cluster data plane connectivity device are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.

[0114] The present application provides a cross-cluster data plane connectivity device, the cross-cluster data plane connectivity device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the cross-cluster data plane connectivity method in the above-mentioned embodiment 1.

[0115] Reference below Fig.10 , which shows a schematic diagram of the structure of a cross-cluster data plane connectivity device suitable for implementing an embodiment of the present application. The cross-cluster data plane connectivity device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.10 The cross-cluster data plane connectivity device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present application.

[0116] like Fig.10 As shown, the cross-cluster data plane connectivity device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. Various programs and data required for the operation of the cross-cluster data plane connectivity device are also stored in RAM1004. The processing device 1001, ROM1002, and RAM1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the cross-cluster data plane connectivity device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a cross-cluster data plane connectivity device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.

[0117] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include 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, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0118] The cross-cluster data plane connectivity device provided by the present application adopts the cross-cluster data plane connectivity method in the above-mentioned embodiment, which can solve the technical problem of low efficiency of existing cross-cluster data plane connectivity. Compared with the prior art, the beneficial effects of the cross-cluster data plane connectivity device provided by the present application are the same as the beneficial effects of the cross-cluster data plane connectivity method provided by the above-mentioned embodiment, and other technical features in the cross-cluster data plane connectivity device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0119] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0120] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0121] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, the computer-readable program instructions being used to execute the cross-cluster data plane connectivity method in the above-mentioned embodiment.

[0122] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, 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 this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0123] The computer-readable storage medium may be included in the cross-cluster data plane connectivity device; or may exist independently without being assembled into the cross-cluster data plane connectivity device.

[0124] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the cross-cluster data plane connectivity device, the cross-cluster data plane connectivity device executes the cross-cluster data plane connectivity method.

[0125] Computer program code for performing the operations of the present application 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 a separate 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 through 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).

[0126] 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 application. 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 alternative implementations, 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.

[0127] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0128] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned cross-cluster data plane connectivity method, and can solve the technical problem that the existing cross-cluster data plane connectivity efficiency is low. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the cross-cluster data plane connectivity method provided in the above-mentioned embodiment, and will not be repeated here.

[0129] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned cross-cluster data plane connectivity method when executed by a processor.

[0130] The computer program product provided by the present application can solve the technical problem of low efficiency of existing cross-cluster data plane connectivity. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the cross-cluster data plane connectivity method provided by the above embodiment, which will not be repeated here.

[0131] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A cross-cluster data plane connectivity system, characterized in that: The cross-cluster data plane connectivity system includes a business Pod, a preset forwarding table entry, a forwarding program, an agent, and a general controller; The master controller is used to attach the forwarding program to each server at a hook position through an agent deployed on each server; The business Pod is used to receive messages sent by a third party and forward the messages to the forwarding program; The forwarding program is used to establish data plane connectivity according to the preset forwarding table entry and the message.

2. A cross-cluster data plane connectivity method, characterized in that: The cross-cluster data plane connectivity method is applied to the cross-cluster data plane connectivity system, and the cross-cluster data plane connectivity method includes the following steps: Parse the received message to obtain message information; Determining whether the message contains a target message header according to the message information; When the message contains the target message header, constructing a keyword; Data plane connectivity is performed based on the keyword and the preset forwarding table entry.

3. The cross-cluster data plane connectivity method according to claim 2, characterized in that: The step of performing data plane connectivity based on the keyword and the preset forwarding table entry includes: Matching the keywords in the preset forwarding table items to obtain a matching result; When the matching result is a successful match, the GTPu encapsulation of the message is removed and the message is forwarded to the kernel network protocol stack for data plane connectivity; When the matching result is a match failure, the message is forwarded to the kernel network protocol stack for data plane connectivity.

4. The cross-cluster data plane connectivity method as described in claim 2, characterized in that: After the step of determining whether the message contains a target message header according to the message information, the method further includes: When the message does not contain the target message header, constructing a first keyword based on a first keyword construction strategy; Matching the first keyword in the preset forwarding table entry to obtain a matching result; If the matching result is a successful match, the message is encapsulated according to the matching result.

5. The cross-cluster data plane connection method according to claim 4, characterized in that: After the step of matching the first keyword in the preset forwarding table items to obtain a matching result, the method further includes: If the matching result is a match failure, constructing a second keyword according to a second keyword construction strategy; Matching the second keyword in the preset forwarding table entry to obtain a second matching result; If the second matching result is a matching failure, the message is forwarded to the kernel network protocol stack for data plane connectivity.

6. The cross-cluster data plane connectivity method according to any one of claims 2 to 4, characterized in that: Before the step of parsing the received message to obtain the message information, the step further includes: Get forwarding program installation information; Determine the server IP address according to the server name in the forwarding program installation information; The forwarding program installation information is sent to the corresponding target server according to the server IP.

7. The cross-cluster data plane connectivity method according to any one of claims 2 to 4, characterized in that: Before the step of parsing the received message to obtain the message information, the step further includes: When a change in the network port resource type is detected, check whether the network port specified in the target field exists; If it exists, download the forwarding program according to the hook location.

8. A cross-cluster data plane connectivity device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the cross-cluster data plane connectivity method according to any one of claims 2 to 7.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the cross-cluster data plane connectivity method according to any one of claims 2 to 7 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the cross-cluster data plane connectivity method according to any one of claims 2 to 7 are implemented.