Data transmission method and apparatus, device, and storage medium
Patent Information
- Application Number
- CN202311424193.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-30
- Publication Date
- 2026-08-21
- Estimated Expiration
- 2043-10-30
AI Technical Summary
但服务网格只能处理集群内部流量,对于外部流量的处理则需要单独部署接入网关服务器,外部流量经过接入网关服务器中转后才能发送至集群内部,进而访问目标微服务,拉长了整体处理流程,增加了处理时延
[0010]本公开实施例提供的技术方案与现有技术相比具有如下优点:
Smart Images

Figure CN117527926B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of data transmission technology, and in particular to a data transmission method, apparatus, device, and storage medium. Background Technology
[0002] Service mesh is an infrastructure layer in cloud services used to enable network communication between microservices and maintain their interconnections. However, service mesh can only handle internal cluster traffic. External traffic requires a separate access gateway server, which then relays it before it reaches the cluster and accesses the target microservice. This lengthens the overall processing flow and increases latency. Therefore, simplifying the process of external traffic accessing services within the cluster and reducing processing latency is a key technical challenge that needs to be addressed. Summary of the Invention
[0003] To address the aforementioned technical problems, this disclosure provides a data transmission method, apparatus, device, and storage medium.
[0004] A first aspect of this disclosure provides a data transmission method, applicable to a proxy service, the method comprising: Obtain the attribute information of the target service in the service cluster, wherein the service type of the target service is the node port type, and the attribute information includes identification information and port information; The attribute information of the target service is sent to the control plane, so that the control plane generates configuration information based on the attribute information and sends the configuration information to the service mesh. The configuration information is used to configure the address converter after receiving the configuration information, so that the address converter forwards the target data packets sent by the external device when accessing the target service to the service mesh.
[0005] A second aspect of this disclosure provides a data transmission method applicable to a service mesh, the method comprising: Receive configuration information sent by the control plane, the configuration information being determined based on the data transmission method of the proxy service side; The address converter is configured based on the configuration information so that it forwards the target data packets sent by the external device when accessing the target service to the service mesh. The service type of the target service is node port type. The service mesh and the address converter are set on the data processor. In response to the target data packet forwarded by the address translator, the target data packet is forwarded to the target service.
[0006] A third aspect of this disclosure provides a data transmission apparatus suitable for a proxy service, the apparatus comprising: The acquisition module is used to acquire attribute information of a target service in the service cluster. The service type of the target service is a node port type, and the attribute information includes identification information and port information. The sending module is used to send the attribute information of the target service to the control plane, so that the control plane generates configuration information based on the attribute information and sends the configuration information to the service mesh. The configuration information is used to enable the service mesh to configure the address converter after receiving the configuration information, so that the address converter forwards the target data packets sent by the external device when accessing the target service to the service mesh.
[0007] A fourth aspect of this disclosure provides a data transmission apparatus adapted to a service mesh, the apparatus comprising: The receiving module is used to receive configuration information sent by the control plane; A configuration module is used to configure the address converter based on the configuration information, so that the address converter forwards the target data packets sent by the external device when accessing the target service to the service mesh. The service type of the target service is node port type. The service mesh and the address converter are set on the data processor. A forwarding module is used to forward the target data packet to the target service in response to the target data packet forwarded by the address converter.
[0008] A fifth aspect of this disclosure provides a computer device including a memory and a processor, and a computer program, wherein the memory stores the computer program, and when the computer program is executed by the processor, it implements the data transmission method of the first aspect described above, or the data transmission method of the second aspect described above.
[0009] A sixth aspect of this disclosure provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the data transmission method of the first aspect described above.
[0010] The technical solution provided in this disclosure has the following advantages compared with the prior art: In the data transmission method, apparatus, device, and storage medium provided in this disclosure, by obtaining attribute information of a target service in a service cluster, wherein the service type of the target service is a node port type, and the attribute information includes identification information and port information; the attribute information of the target service is sent to the control plane, so that the control plane generates configuration information based on the attribute information, and sends the configuration information to the service mesh, the configuration information is used to configure the address converter after receiving the configuration information, so that the address converter forwards the target data packets sent by the external device when accessing the target service to the service mesh. This enables external traffic to be forwarded to the service mesh by the address converter without going through the gateway server when the external device wants to access the service within the cluster, and then forwarded to the target service by the service mesh, thus shortening the overall process of external traffic accessing services within the cluster and reducing data transmission latency. Attached Figure Description
[0011] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0012] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 This is a flowchart of a data transmission method provided in an embodiment of this disclosure; Figure 2 This is a flowchart of a method for obtaining attribute information provided in an embodiment of this disclosure; Figure 3 This is a flowchart of another data transmission method provided in an embodiment of this disclosure; Figure 4 This is a flowchart of a method for forwarding data packets provided in an embodiment of this disclosure; Figure 5 This is a schematic diagram of the structure of a data transmission device provided in an embodiment of this disclosure; Figure 6 This is a schematic diagram of another data transmission device provided in an embodiment of this disclosure; Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of this disclosure. Detailed Implementation
[0014] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.
[0015] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.
[0016] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0017] Figure 1 This is a flowchart illustrating a data transmission method provided in an embodiment of this disclosure. This method can be executed by a data transmission device, which can be configured on a proxy service. Figure 1 As shown, the data transmission method provided in this embodiment includes the following steps: S101. Obtain the attribute information of the target service in the service cluster. The service type of the target service is the node port type. The attribute information includes identification information and port information.
[0018] The target service in this embodiment can be understood as a service of type NodePort. The target service can be exposed to other objects outside the service cluster for access. Compared with other service types, when accessing a target service of type NodePort, only the port information of the target service needs to be known, without needing to know the Internet Protocol Address (IP) address of the target service.
[0019] The identification information in this embodiment can be understood as information that uniquely identifies an object and distinguishes it from other objects. For example, the identification information can be a name, number, etc., and is not limited here.
[0020] In this embodiment of the disclosure, the data transmission device can determine the target service with the service type of node port among multiple services within the service cluster, and obtain the attribute information of these target services, including identification information and port information.
[0021] In one exemplary embodiment of this disclosure, the data transmission device can traverse each service within the cluster, obtain the service type of each service, and determine the service with the service type of node port as the target service, thereby obtaining the target service's identification information, port information, and other attribute information.
[0022] In another exemplary embodiment of the present disclosure, the data transmission device can traverse each service within the cluster, obtain the service type of each service, as well as attribute information such as identification information and port information, and determine the target service whose service type is node port type based on the service type of each service, and then obtain the identification information, port information and other attribute information corresponding to the target service of node port type.
[0023] In another exemplary embodiment of the present disclosure, the data transmission device can access the service management file inside the cluster and obtain the attribute information of the target service whose service type is node port from the service management file.
[0024] S102. Send the attribute information of the target service to the control plane, so that the control plane generates configuration information based on the attribute information, and sends the configuration information to the service mesh. The configuration information is used to enable the service mesh to configure the address converter after receiving the configuration information, so that the address converter forwards the target data packet sent by the external device when accessing the target service to the service mesh.
[0025] The control plane in this embodiment can be understood as an object used to transmit control-related instructions or information. For example, the control plane can be something, etc., but it is not limited here.
[0026] The service mesh in this embodiment can be understood as an infrastructure layer in cloud services, used to enable network communication between microservices, and can send network packets to the service to which the packet is intended. The service mesh can store basic information of the various services it manages, such as the name, IP address, and port of each service, which is not limited here.
[0027] In this embodiment of the disclosure, after collecting the attribute information of the target service, the data transmission device can send the attribute information of the target service to the control plane, so that after receiving the attribute information, the control plane can generate configuration information based on the attribute information and send the configuration information to the service mesh on the data processor. After receiving the configuration information, the service mesh can configure the Network Address Translation (NAT) based on the configuration information, so that the configured NAT can forward the target data packets sent by the external device when accessing the target service to the service mesh, thereby enabling the service mesh to forward the target data packets to the target service after receiving them.
[0028] In one exemplary embodiment of this disclosure, the data transmission device can send attribute information to the control plane through a preset interface, which is an interface connecting the data transmission device and the control plane. After receiving the attribute information, the control plane generates configuration information and sends it to the service mesh. The service mesh configures the address converter based on the configuration information.
[0029] This embodiment of the disclosure obtains attribute information of a target service in a service cluster. The service type of the target service is a node port type, and the attribute information includes identification information and port information. The attribute information of the target service is sent to the control plane, so that the control plane generates configuration information based on the attribute information and sends the configuration information to the service mesh. The configuration information is used to configure the address converter after receiving the configuration information, so that the address converter forwards the target data packets sent by the external device to access the target service to the service mesh. When an external device wants to access a service within the cluster, the external traffic does not need to go through the gateway server. It can be forwarded to the service mesh by the address converter and then forwarded to the target service by the service mesh. This shortens the overall process of external traffic accessing services within the cluster and reduces data transmission latency.
[0030] Figure 2 This is a flowchart of a method for obtaining attribute information provided in an embodiment of this disclosure, such as... Figure 2 As shown, based on the above embodiments, attribute information can be obtained through the following methods.
[0031] S201. Based on the tag information of each service in the service cluster, determine the target service, wherein the tag information includes the service type of each service.
[0032] The tag information in this embodiment can be understood as indicating whether the service type is a node port service type that is exposed to the outside of the cluster and accepts external traffic access.
[0033] In this embodiment of the disclosure, the data transmission device can traverse each service in the service cluster, obtain the tag information of each service, and determine the target service whose service type is node port service type from each service based on the tag information.
[0034] S202. Monitor the target service to obtain the attribute information of the target service.
[0035] In this embodiment of the disclosure, after determining the target service based on the tag information, the data transmission device can monitor the target service to obtain the real-time attribute information of the target service.
[0036] In one exemplary embodiment of this disclosure, the data transmission device can monitor the target service at preset intervals and periodically update the attribute information of the target service.
[0037] This embodiment of the disclosure determines the target service based on the tag information of each service in the service cluster. The tag information includes the service type of each service. The target service is monitored to obtain the attribute information of the target service. When the attribute information of the target service changes, the updated attribute information can be collected in a timely manner so that the service mesh can forward the target data packet according to the correct attribute information.
[0038] In some embodiments, the configuration information is generated by injecting the attribute information into historical configuration information.
[0039] Specifically, after obtaining the attribute information of the target service, the data transmission device can decompose the attribute information into a Listener Discovery Service and a Route Discovery Service, and inject them into the control plane through a plug-in approach. The control plane then adds the attribute information to the previously generated historical configuration information to obtain the new configuration information.
[0040] Figure 3 This is a flowchart of another data transmission method provided in an embodiment of this disclosure. This method can be executed by a data transmission device, which can be located on a service mesh. Figure 3 As shown, the data transmission method provided in this embodiment includes the following steps: S301, Receive configuration information sent by the control plane.
[0041] In this embodiment of the present disclosure, the data transmission device can receive configuration information sent by the control plane.
[0042] In one exemplary embodiment of this disclosure, the data transmission device can receive configuration information sent by the control plane through a specific port. This configuration information is generated by the control plane based on the attribute information of the target service sent by the proxy service.
[0043] S302. Configure the address converter based on the configuration information so that the address converter forwards the target data packet sent by the external device when accessing the target service to the service mesh. The service type of the target service is node port type. The service mesh and the address converter are set on the data processor.
[0044] In this embodiment of the disclosure, after receiving configuration information, the data transmission device can configure the address converter on the data processing unit (DPU) based on the configuration information, so that the configured address converter can forward the target data packet to the service mesh on the data processor after receiving the target data packet sent by the target service of the external device access node port type.
[0045] In one exemplary embodiment of the present disclosure, the address converter can determine whether the data packet sent by the external device is a target data packet sent to access the target service when it receives the data packet. If so, the target data packet is forwarded to the service mesh.
[0046] S303. In response to the target data packet forwarded by the address converter, the target data packet is forwarded to the target service.
[0047] In this embodiment of the present disclosure, after receiving the target data packet forwarded by the address converter, the data transmission device can determine the target service that the target data packet wants to access and forward the target data packet to the target service to be accessed.
[0048] This embodiment of the disclosure receives configuration information sent by the control plane and configures the address converter based on the configuration information. The address converter then forwards target data packets sent by external devices accessing a target service to the service mesh. The service type of the target service is a node port type. The service mesh and the address converter are located on the data processor. In response to the target data packets forwarded by the address converter, the address mesh forwards the target data packets to the target service. This allows external traffic to be forwarded to the service mesh by the address converter without passing through the gateway server when an external device wants to access a service within the cluster. The service mesh then forwards the target data packets to the target service, shortening the overall process of external traffic accessing services within the cluster. Furthermore, since the DPU does not consume host resources, deploying the service mesh on the DPU can increase the number of microservices deployed on the host side. Traffic can be distributed on the DPU without being sent to the host side, reducing data transmission latency.
[0049] In some embodiments, the target data packet includes a target access port, which is the port of the target service.
[0050] Specifically, the target data packet contains the target access port corresponding to the target service. Since the target service is a node port type service, only the port corresponding to the target service is needed to access the target service. The configuration information used to configure the address converter is generated based on the attribute information containing the port information of the target service. When the address converter receives the data packet, it can determine whether the port to be accessed by the data packet is the target access port. If so, it determines the data packet as the target data packet based on the configuration rules and forwards it to the service mesh. After receiving the data packet, the service mesh can also determine whether the port to be accessed by the data packet is the target access port. If so, it forwards the target data packet to the target service based on the target access port, thus enabling external traffic to access services inside the cluster.
[0051] Figure 4 This is a flowchart illustrating a method for forwarding data packets provided in an embodiment of this disclosure. Figure 4 As shown, based on the above embodiments, data packets can be forwarded using the following method.
[0052] S401. Determine the target service based on the target access port.
[0053] In this embodiment of the present disclosure, after receiving the target data packet forwarded by the address converter, the data transmission device can read the port information in the target data packet and compare it with the recorded correspondence between port and service to determine the target service to which the target data packet is to be sent.
[0054] S402. Based on the load balancing principle, select a target container set from at least one container set belonging to the target service.
[0055] The load balancing principle in this embodiment can be understood as a distribution rule that distributes multiple tasks that the same service needs to complete to multiple POD instances under the service in order to improve the task processing speed of the service. Each POD has the same function as the service. A POD can be understood as a set of containers. A POD can contain at least one container. The containers in the same POD can work together and share resources.
[0056] In this embodiment of the present disclosure, after determining the target service corresponding to the target data packet, the data transmission device may, based on the load balancing principle, select the target container set with the smallest load from at least one container set under the target service, so that the target container set receives the data packet and processes it.
[0057] S403. Based on the pre-acquired sending port corresponding to the target container set, send the target data packet to the target container set.
[0058] In this embodiment of the present disclosure, the data transmission device can determine the sending port corresponding to the target container set after determining the target container set, and send the target data packet to the target container set through the sending port.
[0059] In one exemplary embodiment of the present disclosure, the data transmission device can determine the sending port corresponding to the target container set based on the correspondence between each container set and the sending port, and then send the target data packet to the target container set through the sending port.
[0060] This embodiment of the disclosure determines the target service based on the target access port, selects a target container set from at least one container set under the target service based on the load balancing principle, and sends the target data packet to the target container set based on the sending port corresponding to the target container set obtained in advance. This can send the target data packet to the target container set with the least load, thereby improving the data packet processing speed and reducing data processing latency.
[0061] In some embodiments, the target data packet contains a target access address, which is the address of the data processor.
[0062] Specifically, since the service mesh and address translator are located on the data processing unit (DPU), the target data packet for external devices to access the target service does not need to contain the IP address of the target service. Therefore, the target access address of the target data packet can be set to the address of the DPU where the service mesh and address translator are located, thereby further reducing the latency of external traffic accessing services inside the cluster.
[0063] Figure 5 This is a schematic diagram of the structure of a data transmission device provided in an embodiment of this disclosure. Figure 5 As shown, the data transmission device 500 is applicable to a proxy service and includes: an acquisition module 510 and a sending module 520. The acquisition module 510 is used to acquire attribute information of a target service in a service cluster. The service type of the target service is a node port type, and the attribute information includes identification information and port information. The sending module 520 is used to send the attribute information of the target service to the control plane, so that the control plane generates configuration information based on the attribute information and sends the configuration information to the service mesh. The configuration information is used to enable the service mesh to configure the address converter after receiving the configuration information, so that the address converter forwards the target data packets sent by the external device when accessing the target service to the service mesh.
[0064] Optionally, the acquisition module 510 includes: a first determining unit, configured to determine the target service based on the tag information of each service in the service cluster, wherein the tag information includes the service type of each service; and a listening unit, configured to listen to the target service and obtain the attribute information of the target service.
[0065] Optionally, the configuration information is generated by injecting the attribute information into historical configuration information.
[0066] The data transmission device provided in this embodiment can execute the steps performed in the data transmission method centralized on the proxy service side provided in the method embodiment of this disclosure. Its execution method and beneficial effects are similar, and will not be described again here.
[0067] Figure 6 This is a schematic diagram of the structure of a data transmission device provided in an embodiment of this disclosure. Figure 6As shown, the data transmission device 600 is applicable to a service mesh and includes: a receiving module 610, a configuration module 620, and a forwarding module 630. The receiving module 610 receives configuration information sent by the control plane, the configuration information being determined based on the data transmission method of the proxy service side. The configuration module 620 configures the address converter based on the configuration information, so that the address converter forwards target data packets sent by external devices when accessing a target service to the service mesh. The service type of the target service is a node port type. The service mesh and the address converter are located on a data processor. The forwarding module 630, in response to the target data packets forwarded by the address converter, forwards the target data packets to the target service.
[0068] Optionally, the target data packet contains a target access port, which is the port of the target service.
[0069] Optionally, the forwarding module 630 includes: a second determining unit, configured to determine the target service based on the target access port; a selecting unit, configured to select a target container set from at least one container set belonging to the target service based on load balancing principles; and a sending unit, configured to send the target data packet to the target container set based on a pre-acquired sending port corresponding to the target container set.
[0070] Optionally, the target data packet contains a target access address, which is the address of the data processor.
[0071] The data transmission device provided in this embodiment can execute the steps performed in the data transmission method concentrated on the service mesh side provided in the method embodiment of this disclosure. Its execution method and beneficial effects are similar, and will not be described again here.
[0072] Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of this disclosure.
[0073] like Figure 7 As shown, the computer device may include a processor 710 and a memory 720 storing computer program instructions.
[0074] Specifically, the processor 710 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0075] Memory 720 may include a large-capacity storage for information or instructions. For example, and not limitingly, memory 720 may include a hard disk drive (HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 720 may include removable or non-removable (or fixed) media. Where appropriate, memory 720 may be internal or external to the integrated gateway device. In a particular embodiment, memory 720 is a non-volatile solid-state memory. In a particular embodiment, memory 720 includes read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (Electrically Programmable ROM, EPROM), an electrically erasable programmable PROM (EEPROM), an electrically alterable ROM (EAROM), or flash memory, or a combination of two or more of these.
[0076] The processor 710 performs the steps of the data transmission method provided in this disclosure embodiment by reading and executing computer program instructions stored in the memory 720.
[0077] In one example, the computer device may also include a transceiver 730 and a bus 740. Wherein, as... Figure 7 As shown, the processor 710, memory 720 and transceiver 730 are connected via bus 740 and communicate with each other.
[0078] Bus 740 may include hardware, software, or both. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, bus 740 may include one or more buses. Although specific buses are described and illustrated in the embodiments of this application, this application considers any suitable bus or interconnection.
[0079] This disclosure also provides a computer-readable storage medium that can store a computer program, which, when executed by a processor, enables the processor to implement the data transmission method provided in this disclosure.
[0080] The aforementioned storage medium may, for example, include a memory 720 containing computer program instructions, which can be executed by a processor 710 of a data transmission device to complete the data transmission method provided in the embodiments of this disclosure. Optionally, the storage medium may be a non-transitory computer-readable storage medium, such as a ROM, random access memory (RAM), compact disc ROM (CD-ROM), magnetic tape, floppy disk, and optical data storage device. The aforementioned computer program may be written in any combination of one or more programming languages to perform the operations of the embodiments of this disclosure. The programming languages include object-oriented programming languages such as Java and C++, as well as conventional procedural programming languages such as C or similar languages. The program code may be executed entirely on a user computing device, partially on a user device, as a standalone software package, partially on a user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0081] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0082] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A data transmission method, characterized in that, The method is applicable to a proxy service, and the method includes: Obtain the attribute information of the target service in the service cluster, wherein the service type of the target service is the node port type, and the attribute information includes identification information and port information; The attribute information of the target service is sent to the control plane, so that the control plane generates configuration information based on the attribute information and sends the configuration information to the service mesh. The configuration information is used to configure the address converter after receiving the configuration information, so that the address converter forwards the target data packets sent by the external device when accessing the target service to the service mesh.
2. The method according to claim 1, characterized in that, The step of obtaining the attribute information of the target service in the service cluster includes: The target service is determined based on the tag information of each service in the service cluster, wherein the tag information includes the service type of each service; The target service is monitored to obtain its attribute information.
3. The method according to claim 1, characterized in that, The configuration information is generated by injecting the attribute information into the historical configuration information.
4. A data transmission method, characterized in that, The method is applicable to a service mesh, and the method includes: Receive configuration information sent by the control plane, wherein the configuration information is determined based on the method of any one of claims 1-3; The address converter is configured based on the configuration information so that it forwards the target data packets sent by the external device when accessing the target service to the service mesh. The service type of the target service is node port type. The service mesh and the address converter are set on the data processor. In response to the target data packet forwarded by the address translator, the target data packet is forwarded to the target service.
5. The method according to claim 4, characterized in that, The target data packet contains a target access port, which is the port of the target service.
6. The method according to claim 5, characterized in that, Forwarding the target data packet to the target service includes: The target service is determined based on the target access port; Based on the load balancing principle, a target container set is selected from at least one container set belonging to the target service; Based on the pre-acquired sending port corresponding to the target container set, the target data packet is sent to the target container set.
7. The method according to claim 4, characterized in that, The target data packet contains a target access address, which is the address of the data processor.
8. A data transmission device, characterized in that, The device is suitable for an agency service, and the device includes: The acquisition module is used to acquire attribute information of a target service in the service cluster. The service type of the target service is a node port type, and the attribute information includes identification information and port information. The sending module is used to send the attribute information of the target service to the control plane, so that the control plane generates configuration information based on the attribute information and sends the configuration information to the service mesh. The configuration information is used to enable the service mesh to configure the address converter after receiving the configuration information, so that the address converter forwards the target data packets sent by the external device when accessing the target service to the service mesh.
9. A data transmission device, characterized in that, The apparatus is adapted for a service mesh, and the apparatus includes: A receiving module is configured to receive configuration information sent by the control plane, wherein the configuration information is determined based on the method of any one of claims 1-3; A configuration module is used to configure the address converter based on the configuration information, so that the address converter forwards the target data packets sent by the external device when accessing the target service to the service mesh. The service type of the target service is node port type. The service mesh and the address converter are set on the data processor. A forwarding module is used to forward the target data packet to the target service in response to the target data packet forwarded by the address converter.
10. A computer device, characterized in that, include: Memory; processor; And a computer program; wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method as described in any one of claims 1-3 or 4-7.
11. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1-3 or 4-7.
Citation Information
Patent Citations
Address translation technologies
US20220261178A1
Data center cluster architecture
US20220263913A1