Data transmission method, device, dedicated data processor and medium
By directly transmitting data in terminal devices using a dedicated data processor and virtual port, the computing resource occupation and delay problems during data transmission between service container groups are solved, and efficient data transmission is achieved.
Patent Information
- Application Number
- CN202311631112.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2043-11-30
AI Technical Summary
When data transmission between different service container groups of terminal devices is carried out, the prior art requires establishing TCP connections and encapsulation and decapsulation processing, resulting in increased computing resource occupation and communication delay.
The dedicated data processor establishes a dedicated data channel between the target device and the service container group, and directly sends the data to be transmitted to the virtual port, without establishing a TCP connection, eliminating the encapsulation and decapsulation processing.
The computing resource usage of terminal devices is reduced, communication delay is reduced, and communication efficiency is improved.
Smart Images

Figure CN117640653B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data transmission, and in particular to a data transmission method, device, dedicated data processor and medium. Background Art
[0002] At present, when data is transmitted between different service container groups of a terminal device, in order to reduce resource occupation of the terminal device, a dedicated data processor is usually coupled to the terminal device. After a message to be transmitted to a second service container group is generated in a first service container group in the terminal device, the message to be transmitted is transmitted to the second service container group through a TCP connection between the first service container group and the second service container group via the dedicated data processor.
[0003] In the prior art, before a terminal device transmits a message through a TCP connection between service container groups therein, a TCP connection must be established first, and during message transmission, the first service container group must be used to encapsulate the message to be transmitted to obtain encapsulated data, so that a dedicated data processor can forward the encapsulated data to a second service container group according to encapsulation information of the encapsulated data, and then the second service container group must be used to decapsulate the received encapsulated data to obtain the message to be transmitted. Therefore, the processing load of the terminal device is large, which occupies more computing resources of the terminal device, affects the normal processing capability of the terminal device, and increases communication delay. Summary of the invention
[0004] In view of this, an embodiment of the present application provides a data transmission method, an apparatus, a dedicated data processor and a medium, which can reduce the computing resource occupation of a terminal device to reduce communication delay.
[0005] According to a first aspect of an embodiment of the present application, a data transmission method is provided, which is applied to a dedicated data processor coupled to a target device, wherein a first service container group in the target device sends data to be transmitted to a second service container group in the target device through the dedicated data processor, and the data transmission method includes:
[0006] receiving the data to be transmitted sent by the first service container group through a first dedicated data channel between the target device and the dedicated data processor;
[0007] The dedicated data processor obtains identification information of the second service container group from the data to be transmitted;
[0008] Acquire first virtual port information corresponding to the identification information of the second service container group, where the first virtual port is an entry of a second dedicated data channel between the target device and the dedicated data processor on the dedicated data processor side;
[0009] The dedicated data processor sends the data to be transmitted to the first virtual port indicated by the first virtual port information, so as to send the data to be transmitted to the second service container group via the second dedicated data channel without establishing a transmission control protocol connection.
[0010] According to a second aspect of an embodiment of the present application, a data transmission device is provided, which is applied to a dedicated data processor coupled to a target device, wherein a first service container group in the target device sends data to be transmitted to a second service container group in the target device through the dedicated data processor, and the data transmission device includes:
[0011] a receiving unit, configured to receive the data to be transmitted sent by the first service container group through a first dedicated data channel between the target device and the dedicated data processor;
[0012] an identification acquisition unit, configured to acquire identification information of the second service container group from the data to be transmitted;
[0013] a port acquisition unit, configured to acquire first virtual port information corresponding to the identification information of the second service container group, wherein the first virtual port is an entry of a second dedicated data channel between the target device and the dedicated data processor on the dedicated data processor side;
[0014] A sending unit is used to send the data to be transmitted to the first virtual port indicated by the first virtual port information, so as to send the data to be transmitted to the second service container group via the second dedicated data channel without establishing a transmission control protocol connection.
[0015] According to a third aspect of an embodiment of the present application, a computer device is provided, including:
[0016] A memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the data transmission method as described above is implemented.
[0017] According to a fourth aspect of an embodiment of the present application, a computer storage medium is provided, wherein the computer storage medium stores a computer program code, and when the computer program code is executed by a processor, the processor executes the data transmission method as described above.
[0018] According to an embodiment of the present application, a first dedicated data channel and a second dedicated data channel are used between the target device and the dedicated data processor, so that data can be transmitted between the first service container group and the second service container group without a TCP connection. At the same time, the data to be transmitted contains identification information of the second service container group, and the identification information can be used to identify the entrance of the second dedicated data channel between the target device and the dedicated data processor on the dedicated data processor side, so that the data to be transmitted passes through the entrance and enters the second service container group through the second dedicated data channel, and then does not need to be encapsulated in the first service container group, nor does it need to be decapsulated in the second service container group. The disclosed embodiment omits the TCP connection between the first service container group and the second service container group, and omits the encapsulation processing process and the decapsulation processing process in the target device, thereby reducing the computing resource occupation of the target device and reducing the communication delay. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present disclosure. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0020] Figure 1 A system architecture diagram for implementing the data transmission method of the embodiment of the present disclosure;
[0021] Figure 2 is a flow chart of a data transmission method according to an embodiment of the present disclosure;
[0022] Figure 3 for Figure 2 A detailed flow chart of step 210, step 220 and step 240;
[0023] Figure 4 for Figure 2 An implementation detail diagram of a data transmission method;
[0024] Figure 5 for Figure 2 Another implementation detail diagram of the data transmission method;
[0025] Figure 6 is a block diagram of a data transmission device according to an embodiment of the present disclosure;
[0026] Figure 7 For implementation Figure 2 The computer device structure diagram of the data transmission method shown. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.
[0028] For data transmission between different service container groups of terminal devices, in order to reduce the resource occupation of terminal devices, a dedicated data processor is usually coupled to the terminal device. The dedicated data processor is a dedicated hardware accelerator with high performance and low latency, which can effectively process and manage different types of service traffic.
[0029] Before the terminal device transmits messages through the TCP connection between the service container groups within it, a TCP connection must be established first. During message transmission, the service container group within the terminal device must encapsulate and decapsulate the messages to be transmitted. Therefore, more computing resources of the terminal device are occupied, affecting the normal processing capacity of the terminal device and increasing communication delay.
[0030] Therefore, there is a need for a technology that can reduce the processing load of a terminal device and reduce the communication delay when data is transmitted between different service container groups of a terminal device.
[0031] Figure 1 A system architecture diagram for implementing the data transmission method of the embodiment of the present disclosure. The system architecture includes a target device and a dedicated data processor. The target device includes multiple business container groups, any two of the multiple business container groups are respectively a first business container group and a second business container group, the dedicated data processor is coupled to the target device, and the dedicated data processor is used for data transmission between business container groups in the target device. Exemplarily, the first business container group transmits the data to be transmitted to the second business container group through the dedicated data processor.
[0032] The target device is the carrier device of the business container group that communicates with each other. It can be a client or a server. Specifically, it can be a desktop computer, a laptop computer, a mobile phone, a PDA, a dedicated terminal, or a cluster composed of several terminals. In addition, it can also be a part divided from a terminal, such as a virtual machine.
[0033] The business container group is a pod in the target device, and a business program runs in each business container group, so that the business programs in different business container groups are isolated.
[0034] The dedicated data processing unit (DPU) is a data-centric dedicated processor that uses software-defined technology to support infrastructure layer resource virtualization and infrastructure layer services such as storage, security, and service quality management. The DPU can free the target device from the data forwarding processing between the business container groups within it, without having to perform data forwarding processing in the target device, reducing the processing load of the target device.
[0035] like Figure 2 As shown, according to an embodiment of the present disclosure, a data transmission method 200 is provided, which is executed by a dedicated data processor, and the data transmission method includes:
[0036] Receiving the data to be transmitted sent by the first service container group through a first dedicated data channel between the target device and the dedicated data processor (step 210);
[0037] Acquire identification information of the second service container group from the data to be transmitted (step 220);
[0038] Acquire first virtual port information corresponding to the identification information of the second service container group, where the first virtual port is an entry of a second dedicated data channel between the target device and the dedicated data processor on the dedicated data processor side (step 230);
[0039] The data to be transmitted is sent to the first virtual port indicated by the first virtual port information (step 240), so that the data to be transmitted is sent to the second service container group via the second dedicated data channel without establishing a transmission control protocol connection (step 250).
[0040] The first dedicated data channel in step 210 includes a virtual port group corresponding to the first service container group set in the physical port, the physical port refers to the part where the dedicated data processor is connected to the target device, and a plurality of virtual port groups are set in the physical port. For each service container group in the target device, the service container group corresponds to a virtual port group one by one, and different service container groups in the target device correspond to different virtual port groups. The virtual port group includes an entry on the target device side and an entry on the dedicated data processor side.
[0041] The data to be transmitted in step 220 is generated by the operation of the service program in the first service container group and is used to be sent to the second service container group. The data to be transmitted includes quintuple information. The identification information of the second service container group can be obtained from the quintuple information of the data to be transmitted.
[0042] The second dedicated data channel in step 230 includes a virtual port group set in the physical port corresponding to the second service container group, the entrance of the first dedicated data channel on the dedicated data processor side is the first virtual port, and the entrance of the first dedicated data channel on the target device side is the second virtual port.
[0043] Specifically, in step 230, after obtaining the identification information of the second service container group, the dedicated data processor can determine the second virtual port information corresponding to the identification information by looking up a preset table or traversing, that is, can determine the unique identification information of the second virtual port corresponding to the second service container group, and then can obtain the first virtual port information corresponding to the second virtual port information, that is, the unique identification information of the first virtual port. The unique identification information can be a unique port number or a unique port name of the corresponding port, etc.
[0044] The advantage of step 210 to step 250 is that the first service container group in the target device directly sends the data to be transmitted to the dedicated data processor through the first dedicated data channel. After the dedicated data processor processes the data to be transmitted to obtain the first virtual port information, the received data to be transmitted is directly sent to the second service container group in the target device through the second dedicated data channel. Therefore, the communication between the first service container group and the second service container group in the target device does not need to establish a transmission control protocol connection, nor does it need to encapsulate and decapsulate the data to be transmitted, so that the TCP / IP layer in the first service container group and the second service container group does not need to process the data to be transmitted, thereby reducing the processing load on the target device side and reducing the occupation of computing resources of the terminal device, so as to reduce the communication delay.
[0045] In addition, since the first service container group directly sends the bare package of the data to be transmitted to the dedicated data processor through the first dedicated data channel, and thus the communication between the first service container group and the second service container group does not need to establish a transmission control protocol connection, the protocol stack in the dedicated data processor does not need to check the protocol integrity and consistency of the data to be transmitted, so the communication efficiency can be improved while ensuring the communication security as much as possible.
[0046] The implementation process of step 210, step 220 and step 240 is described in detail below.
[0047] like Figure 3 As shown, in one embodiment, step 210 includes:
[0048] Step 211: Receive, through a target storage unit, data to be transmitted that is sent by a first service container group through a first dedicated data channel.
[0049] Based on this, step 220 includes:
[0050] Step 221: Acquire identification information of a second service container group from the data to be transmitted in the target storage unit and store it outside the target storage unit.
[0051] Step 240 includes:
[0052] Step 241: Send the data to be transmitted from the target storage unit to the first virtual port indicated by the first virtual port information.
[0053] Specifically, a protocol stack may be run in a dedicated data processor, based on which:
[0054] In step 220, the dedicated data processor may obtain identification information of the second service container group from the data to be transmitted in the target storage unit, so that the protocol stack processes the identification information of the second service container group.
[0055] In step 230, the protocol stack of the dedicated data processor can be used to determine the first virtual port information corresponding to the second business container group according to the identification information of the second business container group. For example, a preset table is stored in the dedicated data processor, and the preset table at least includes a first preset table item and a second preset table item. For each business container group in the target device, the first preset table item is used to record the first unique identifier of the business container group, the second unique identifier of the virtual port group corresponding to the business container group at the entrance of the target device side, and the correspondence between the first unique identifier and the second unique identifier. The second preset table item is used to record the third unique identifier of the virtual port group corresponding to the business container group at the entrance of the dedicated data processor side, the second unique identifier in the business container group, and the correspondence between the second unique identifier and the third unique identifier. Using the protocol stack of the dedicated data processor, the second virtual port information can be traversed in the first preset table item based on the identification information of the second business container group, and then the first virtual port information can be traversed in the second preset table item according to the second virtual port information.
[0056] The beneficial effect of step 211, step 221 and step 241 is that the first business container group in the target device sends the data to be transmitted to the target storage unit in the dedicated data processor through the first dedicated data channel, and the target storage unit obtains the identification information of the second business container group from the data to be transmitted and processes it outside the target storage unit to obtain the first virtual port information, so as to determine the first virtual port information, and directly send the data to be transmitted from the target storage unit to the first virtual port according to the first virtual port information, and then after receiving the data to be transmitted, the target storage unit in the dedicated data processor does not need to read the complete data to be transmitted and process it outside the target storage unit to obtain the first virtual port information, and when sending the data to be transmitted to the second business container group, it is also directly sent from the target storage unit, thereby saving the data transmission program of the dedicated data processor and improving the efficiency of data communication of the dedicated data processor.
[0057] The implementation process of step 211 is described in detail below.
[0058] like Figure 4 and Figure 5 As shown, in one embodiment, each service container group has a data interface unit, and the data interface unit of the first service container group is the first data interface unit. Based on this, step 211 includes:
[0059] 2111. Receive, through a target storage unit, data to be transmitted that is sent by a first data interface unit through a first dedicated data channel, wherein the data to be transmitted is generated by a first service container group and sent to the first data interface unit.
[0060] The first data interface unit in step 2111 may include a first data interface and a first socket interface of a protocol stack running in a first business container group. The first socket interface is used to receive data generated by a business program running in the first business container group. In related technologies, the first socket interface usually transmits the received data to the protocol stack running in the first business container group for further transmission processing. However, in an embodiment of the present application, the first data interface is used to hijack the data sent by the first socket interface to send it to a target storage unit of a dedicated data processor through a first dedicated data channel.
[0061] The data to be transmitted may be data that meets the preset conditions, specifically:
[0062] In one example, any business program running in the first business container group generates initial data to be transmitted, and the initial data to be transmitted will be sent to the first socket interface. The first socket interface determines whether the initial data to be transmitted meets the preset conditions. If so, the initial data to be transmitted is used as the data to be transmitted and sent to the first socket interface. Otherwise, the initial data to be transmitted is sent to the TCP / IP layer of the protocol stack running in the first business container group, so that the first business container group can encapsulate the initial data to be transmitted and transmit the data through the TCP connection established with the second business container group.
[0063] In another example, any business program running in the first business container group generates initial data to be transmitted, and the initial data to be transmitted will be sent to the first socket interface. The first socket interface sends the initial data to be transmitted to the first data interface. The first data interface determines whether the initial data to be transmitted meets the preset conditions. If so, the initial data to be transmitted is used as the data to be transmitted. Otherwise, the initial data to be transmitted is returned to the first socket interface so that the first socket interface sends the initial data to be transmitted to the TCP / IP layer of the protocol stack running in the first business container group, so that the first business container group can encapsulate the initial data to be transmitted and then transmit the data through the TCP connection established with the second business container group.
[0064] The preset condition may be set according to actual needs. For example, the preset condition may be that the data transmission destination is the second service container group. The preset condition may also be that the data is generated by some service programs pre-specified in the first service container group.
[0065] The beneficial effect of step 2111 is that the data to be transmitted generated in the first business container group can be directly placed in the target storage unit in the dedicated data processor through the first data interface unit, thereby simplifying the data transmission channel structure between the first business container group and the dedicated data processor, simplifying the transmission process, and improving data transmission efficiency.
[0066] The implementation process of step 250 is described in detail below.
[0067] like Figure 4 and Figure 5 As shown, in one embodiment, the data interface unit of the second service container group is a second data interface unit. Based on this, step 250 includes:
[0068] Step 251: Send the data to be transmitted to the second data interface unit via the second dedicated data channel, so that the second data interface unit sends the data to be transmitted to the service program running in the second service container group.
[0069] The second data interface unit in step 251 may include a second data interface and a second socket interface of a protocol stack running in the second service container group.
[0070] Specifically, in step 251, after the data to be transmitted is sent to the first virtual port, the data to be transmitted will be sent to the second data interface through the second virtual port, and the second data interface will then send the data to be transmitted to the second socket interface, so that the second socket interface will send the data to be transmitted to the business program running in the second business container group, and then the business program will process according to the data to be transmitted.
[0071] In addition, the second service container group may also transmit data to the first service container group. The specific process is the same as the process of the first service container group transmitting the data to be transmitted to the second service container group in the embodiment of the present disclosure, and the embodiment of the present disclosure is not limited here.
[0072] The beneficial effect of step 251 is that the data to be transmitted in the target storage unit can be directly uploaded to the second business container group through the second data interface unit, thereby simplifying the data transmission channel structure between the second business container group and the dedicated data processor, simplifying the transmission process, and improving data transmission efficiency.
[0073] The implementation process of step 221 is described in detail below.
[0074] like Figure 4 As shown, in one embodiment, the target storage unit is a shared memory, based on which, step 221 includes:
[0075] Step 2211: Periodically poll the shared memory to obtain identification information of the second service container group from the data to be transmitted.
[0076] For the shared memory in step 2211, the polling frequency of periodic polling can be determined by the processing capability of the dedicated data processor and the data transmission volume between the business container groups of the target device. The better the processing capability of the dedicated data processor, the higher the polling frequency; the larger the data transmission volume between the business container groups, the lower the polling frequency. It can also be manually adjusted according to actual needs. The embodiment of the present disclosure does not limit the polling frequency of the shared memory.
[0077] The beneficial effect of step 2211 is that the shared memory between the target device and the dedicated data processor is set in the dedicated data processor rather than in the target device, thereby reducing the storage resource occupancy of the target device and reducing the processing process of the target device while ensuring the communication security between the target device and the dedicated data processor as much as possible, thereby reducing the computing resource occupancy of the target device, increasing the data transmission speed, and reducing the communication delay.
[0078] like Figure 5 As shown, in another embodiment, the target storage unit is a system on chip, based on which, step 221 includes:
[0079] Step 2212: Obtain identification information of the second service container group from the data to be transmitted through the on-chip system;
[0080] Step 2213: Obtain identification information of the second service container group sent by the system on chip.
[0081] A system on a chip is a system-level chip that has both storage and data processing capabilities.
[0082] The beneficial effect of step 2212 and step 2213 is that the embodiment of the present disclosure adopts a solution of setting up a system on chip inside a dedicated data processor. Since the system on chip can send the received data to be transmitted directly to the dedicated data processor, compared with the above-mentioned solution of periodically polling the shared memory by the dedicated data processor, the solution of directly sending data by the system on chip adopted in the embodiment of the present disclosure can shorten the data communication time to improve the data communication efficiency.
[0083] The following describes in detail the implementation process of obtaining the identification information of the second service container group from the data to be transmitted in step 2212 and step 2213.
[0084] like Figure 4 and Figure 5 As shown, in one embodiment, obtaining identification information of the second service container group from the data to be transmitted in step 2211 and step 2212 includes:
[0085] Step 301: Acquire data identification information from the data to be transmitted, where the data identification information is used to uniquely identify the data to be transmitted, and the data identification information includes identification information of the second service container group.
[0086] Based on this, step 241 includes:
[0087] Step 2411: Bind the data identification information with the first virtual port information to obtain bound information;
[0088] Step 2412: determine the data to be transmitted in the target storage unit according to the data identification information in the bound information;
[0089] Step 2413: Send the data to be transmitted from the target storage unit to the first virtual port according to the first virtual port information in the bound information.
[0090] The data identification information in step 301 may be five-tuple information in the data to be transmitted. The five-tuple information of the data to be transmitted is usually located in the header of the data to be transmitted. The five-tuple information can be used to distinguish different data to be transmitted.
[0091] Specifically, in step 2411, a forwarding table may be constructed in a dedicated data processor, and then the data identification information and the first virtual port information may be bound to obtain bound information, and then the bound information may be stored in the forwarding table. The forwarding table may be located in a protocol stack in the dedicated data processor. Based on this:
[0092] In step 2412, the data to be transmitted may be determined in the target storage unit according to the data identification information in the transfer table.
[0093] In step 2413, based on the determination of the data to be transmitted stored in the target storage unit, the data to be transmitted may be sent from the target storage unit to the first virtual port according to the first virtual port information in the forwarding table.
[0094] The beneficial effect of step 301 and step 2411 to step 2413 is that since the dedicated data processor determines the data to be transmitted in the target storage unit based on the binding information, and also determines the transmission destination of the data to be transmitted based on the binding information, the dedicated data processor can transmit multiple data to be transmitted at the same time, that is, it can process more communication processes in parallel, thereby improving communication efficiency.
[0095] According to another aspect of the embodiments of the present application, referring to Figure 6 , shows a data transmission device 400 provided in this embodiment, which is applied to a dedicated data processor coupled to a target device, and a first service container group in the target device sends data to be transmitted to a second service container group in the target device through the dedicated data processor. The data transmission device includes:
[0096] The receiving unit 410 is configured to receive the data to be transmitted sent by the first service container group through a first dedicated data channel between the target device and the dedicated data processor;
[0097] The identification acquisition unit 420 is used to acquire identification information of the second service container group from the data to be transmitted;
[0098] The port acquisition unit 430 is used to acquire first virtual port information corresponding to the identification information of the second service container group, where the first virtual port is an entry of a second dedicated data channel between the target device and the dedicated data processor on the dedicated data processor side;
[0099] The sending unit 440 is configured to send the data to be transmitted to the first virtual port indicated by the first virtual port information, so as to send the data to be transmitted to the second service container group via the second dedicated data channel without establishing a transmission control protocol connection.
[0100] Optionally, a target storage unit is provided inside the dedicated data processor;
[0101] Based on this, the receiving unit 410 is specifically used for:
[0102] receiving, through the target storage unit, data to be transmitted sent by the first service container group through the first dedicated data channel;
[0103] The identification acquisition unit 420 is specifically used for:
[0104] Acquire identification information of the second service container group from the data to be transmitted in the target storage unit and transfer it to the outside of the target storage unit;
[0105] The sending unit 440 is specifically used for:
[0106] The data to be transmitted is sent from the target storage unit to the first virtual port indicated by the first virtual port information.
[0107] Optionally, the target storage unit is a shared memory;
[0108] Based on this, the identification acquisition unit 420 is specifically used to:
[0109] The shared memory is polled periodically to obtain identification information of the second service container group from the data to be transmitted.
[0110] Optionally, the target storage unit is a system on chip;
[0111] Based on this, the identification acquisition unit 420 is specifically used to:
[0112] Acquire identification information of a second service container group from data to be transmitted through the system on chip;
[0113] Acquire identification information of the second service container group sent by the system on chip.
[0114] Optionally, the identification acquisition unit 420 is specifically used to:
[0115] Acquire data identification information from the data to be transmitted, where the data identification information is used to uniquely identify the data to be transmitted, and the data identification information includes identification information of the second service container group;
[0116] Based on this, the sending unit 440 is specifically used for:
[0117] Binding the data identification information with the first virtual port information to obtain bound information;
[0118] Determine the data to be transmitted in the target storage unit according to the data identification information in the bound information;
[0119] According to the first virtual port information in the bound information, the data to be transmitted is sent from the target storage unit to the first virtual port.
[0120] Optionally, the target device includes multiple service container groups, the first service container group is any service container group among the multiple service container groups, each service container group has a data interface unit, and the data interface unit of the first service container group is a first data interface unit;
[0121] Based on this, the receiving unit 410 is specifically used for:
[0122] The data to be transmitted sent by the first data interface unit through the first dedicated data channel is received through the target storage unit, and the data to be transmitted is generated by the first service container group and sent to the first data interface unit.
[0123] Optionally, the first service container group and the second service container group are two different service container groups among the multiple service container groups, and the data interface unit of the second service container group is a second data interface unit;
[0124] Optionally, the sending unit 440 is specifically configured to:
[0125] The data to be transmitted is sent to the second data interface unit via the second dedicated data channel, so that the second data interface unit sends the data to be transmitted to the service program running in the second service container group.
[0126] The data transmission device 400 of this embodiment is used to implement the corresponding data transmission methods in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be described in detail here. In addition, the functional implementation of each unit in the data transmission device 400 of this embodiment can refer to the description of the corresponding parts in the aforementioned method embodiments, which will not be described in detail here.
[0127] Refer to the following Figure 7 A dedicated data processor 500 according to an embodiment of the present disclosure is described below. Figure 7 The dedicated data processor 500 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0128] Figure 7The dedicated data processor 500 shown may include, but is not limited to, at least one processing unit 510, at least one storage unit 520, and a bus 530 connecting different system components (including the storage unit 520 and the processing unit 510). The storage unit 520 stores program codes, which can be executed by the processing unit 510, so that the processing unit 510 performs the steps according to various exemplary embodiments of the present invention described in the description part of the exemplary method above in this specification.
[0129] The storage unit 520 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 5201 and / or a cache storage unit 5202 , and may further include a read-only storage unit (ROM) 5203 .
[0130] The storage unit 520 may also include a program / utility 5204 having a set (at least one) of program modules 8205, such program modules 5205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0131] Bus 530 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0132] The special data processor 500 may also communicate with one or more external devices 600 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the special data processor 500, and / or communicate with any device that enables the special data processor 500 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 550. In addition, the special data processor 500 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 560. As shown, the network adapter 560 communicates with other modules of the special data processor 500 via a bus 530. It should be understood that, although not shown in the figure, the special data processor 500 may be implemented using other hardware and / or software modules, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0133] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0134] In an exemplary embodiment of the present disclosure, a computer program medium is further provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the method described in the above method embodiment.
[0135] According to one embodiment of the present disclosure, a program product for implementing the method in the above method embodiment is also provided, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0136] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable 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.
[0137] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0138] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0139] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0140] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0141] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0142] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0143] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
Claims
1. A data transmission method, characterized in that: A dedicated data processor coupled to a target device is used, wherein a first service container group in the target device sends data to be transmitted to a second service container group in the target device through the dedicated data processor, and the data transmission method includes: receiving the data to be transmitted sent by the first service container group through a first dedicated data channel between the target device and the dedicated data processor, wherein the first dedicated data channel includes a virtual port group corresponding to the first service container group; Acquire identification information of the second service container group from the data to be transmitted; Acquire first virtual port information corresponding to the identification information of the second service container group, where the first virtual port is an entry of a second dedicated data channel between the target device and the dedicated data processor on the dedicated data processor side; The data to be transmitted is sent to the first virtual port indicated by the first virtual port information, so that the data to be transmitted is sent to the second service container group via the second dedicated data channel without establishing a transmission control protocol connection, wherein the second dedicated data channel includes a virtual port group corresponding to the second service container group.
2. The data transmission method according to claim 1, characterized in that: The dedicated data processor is internally provided with a target storage unit; The receiving the data to be transmitted sent by the first service container group through the first dedicated data channel between the target device and the dedicated data processor includes: receiving, through the target storage unit, data to be transmitted sent by the first service container group through the first dedicated data channel; The acquiring identification information of the second service container group from the data to be transmitted includes: Acquire the identification information of the second service container group from the data to be transmitted in the target storage unit to the outside of the target storage unit; The sending the data to be transmitted to the first virtual port indicated by the first virtual port information includes: The data to be transmitted is sent from the target storage unit to the first virtual port indicated by the first virtual port information.
3. The data transmission method according to claim 2, characterized in that: The target storage unit is a shared memory; The acquiring the identification information of the second service container group from the data to be transmitted in the target storage unit to the outside of the target storage unit includes: The shared memory is polled periodically to obtain identification information of the second service container group from the data to be transmitted.
4. The data transmission method according to claim 2, characterized in that: The target storage unit is a system on chip; The acquiring the identification information of the second service container group from the data to be transmitted in the target storage unit to the outside of the target storage unit includes: acquiring identification information of the second service container group from the data to be transmitted by the system on chip; Acquire identification information of the second service container group sent by the system on chip.
5. The data transmission method according to claim 3 or 4, characterized in that: The acquiring identification information of the second service container group from the data to be transmitted includes: Acquire data identification information from the data to be transmitted, where the data identification information is used to uniquely identify the data to be transmitted, and the data identification information includes identification information of the second service container group; The step of sending the data to be transmitted from the target storage unit to the first virtual port indicated by the first virtual port information includes: Binding the data identification information with the first virtual port information to obtain bound information; Determining the data to be transmitted in the target storage unit according to the data identification information in the bound information; The data to be transmitted is sent from the target storage unit to the first virtual port according to the first virtual port information in the bound information.
6. The data transmission method according to claim 2, characterized in that: The target device includes a plurality of service container groups, the first service container group is any one of the plurality of service container groups, each of the service container groups has a data interface unit, and the data interface unit of the first service container group is a first data interface unit; The receiving, through the target storage unit, the data to be transmitted sent by the first service container group through the first dedicated data channel includes: The data to be transmitted sent by the first data interface unit through the first dedicated data channel is received through the target storage unit, and the data to be transmitted is generated by the first service container group and sent to the first data interface unit.
7. The data transmission method according to claim 6, characterized in that: The first service container group and the second service container group are two different service container groups among the multiple service container groups, and the data interface unit of the second service container group is a second data interface unit; The sending the data to be transmitted to the second service container group via the second dedicated data channel includes: The data to be transmitted is sent to the second data interface unit via the second dedicated data channel, so that the second data interface unit sends the data to be transmitted to the service program running in the second service container group.
8. A data transmission device, characterized in that: A dedicated data processor coupled to a target device is used, wherein a first service container group in the target device sends data to be transmitted to a second service container group in the target device through the dedicated data processor, and the data transmission device includes: a receiving unit, configured to receive the data to be transmitted sent by the first service container group through a first dedicated data channel between the target device and the dedicated data processor, wherein the first dedicated data channel includes a virtual port group corresponding to the first service container group; an identification acquisition unit, configured to acquire identification information of the second service container group from the data to be transmitted; a port acquisition unit, configured to acquire first virtual port information corresponding to the identification information of the second service container group, wherein the first virtual port is an entry of a second dedicated data channel between the target device and the dedicated data processor on the dedicated data processor side; a sending unit, configured to send the data to be transmitted to the first virtual port indicated by the first virtual port information, so as to send the data to be transmitted to the second service container group via the second dedicated data channel without establishing a transmission control protocol connection, wherein the second dedicated data channel includes a virtual port group corresponding to the second service container group.
9. A special data processor, characterized in that: include: A memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the data transmission method according to any one of claims 1 to 7 is implemented.
10. A computer storage medium, characterized in that: The computer storage medium stores computer program codes, and when the computer program codes are executed by a processor, the processor executes the data transmission method according to any one of claims 1 to 7.
