CN117640653A - Data transmission method, device, special data processor and medium - Google Patents

Data transmission method, device, special data processor and medium Download PDF

Info

Publication number
CN117640653A
CN117640653A CN202311631112.2A CN202311631112A CN117640653A CN 117640653 A CN117640653 A CN 117640653A CN 202311631112 A CN202311631112 A CN 202311631112A CN 117640653 A CN117640653 A CN 117640653A
Authority
CN
China
Prior art keywords
data
transmitted
service container
container group
virtual port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311631112.2A
Other languages
Chinese (zh)
Inventor
荆慧
黄明亮
鄢贵海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yusur Technology Co ltd
Original Assignee
Yusur Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yusur Technology Co ltd filed Critical Yusur Technology Co ltd
Priority to CN202311631112.2A priority Critical patent/CN117640653A/en
Publication of CN117640653A publication Critical patent/CN117640653A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1059Inter-group management mechanisms, e.g. splitting, merging or interconnection of groups
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1087Peer-to-peer [P2P] networks using cross-functional networking aspects
    • H04L67/1091Interfacing with client-server systems or between P2P systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present disclosure provides a data transmission method, apparatus, special data processor and medium. The data transmission method comprises the following steps: receiving data to be transmitted sent by a first service container group through a first special data channel between target equipment and a special data processor; acquiring identification information of a second service container group from data to be transmitted; acquiring first virtual port information corresponding to the identification information of the second service container group, wherein the first virtual port is an inlet of a second special data channel between the target equipment and the special data processor on the special data processor side; and sending 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 through the second special data channel under the condition that the transmission control protocol connection is not established. The embodiment of the disclosure can reduce the processing load of the target equipment side and reduce the occupation of the computing resources of the terminal equipment so as to reduce the communication time delay.

Description

Data transmission method, device, special data processor and medium
Technical Field
The present disclosure relates to the field of data transmission, and in particular, to a data transmission method, apparatus, special data processor, and medium.
Background
At present, when data is transmitted between different service container groups of a terminal device, a special data processor is usually coupled to the terminal device in order to reduce the resource occupation of the terminal device. After generating a message to be transmitted to a second service container group in a first service container group in the terminal equipment, the message to be transmitted is transmitted to the second service container group through a special data processor by a TCP connection between the first service container group and the second service container group.
In the prior art, before a terminal device performs message transmission through a TCP connection between service container groups in the terminal device, the TCP connection is first established, and when the message is transmitted, a message to be transmitted is further encapsulated through a first service container group to obtain encapsulated data, so that a special 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 decapsulates the received encapsulated data to obtain the message to be transmitted, therefore, the processing load of the terminal device is larger, more computing resources of the terminal device are occupied, the normal processing capacity of the terminal device is affected, and the communication delay is increased.
Disclosure of Invention
In view of this, embodiments of the present application provide a data transmission method, apparatus, dedicated data processor, and medium, which can reduce the computation resource occupation of a terminal device, so as to reduce the communication delay.
According to a first aspect of embodiments of the present application, there is provided a data transmission method applied to a dedicated data processor coupled to a target device, a first service container group in the target device sending data to be transmitted to a second service container group in the target device through the dedicated data processor, the data transmission method including:
receiving data to be transmitted sent by the first service container group through a first special data channel between the target device and the special data processor;
the special data processor acquires the identification information of the second service container group from the data to be transmitted;
acquiring first virtual port information corresponding to the identification information of the second service container group, wherein the first virtual port is an inlet of a second special data channel between the target device and the special data processor on the special data processor side;
a 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.
According to a second aspect of embodiments of the present application, there is provided a data transmission apparatus applied to a dedicated data processor coupled to a target device, a first service container group in the target device sending data to be transmitted to a second service container group in the target device through the dedicated data processor, the data transmission apparatus comprising:
a receiving unit, configured to receive 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;
the identification acquisition unit is used for acquiring the identification information of the second service container group from the data to be transmitted;
a port obtaining unit, configured to obtain 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 a dedicated data processor side;
and the sending unit is used for sending 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 through the second special data channel under the condition that a transmission control protocol connection is not required to be established.
According to a third aspect of embodiments of the present application, there is provided a computer device comprising:
a memory and a processor, wherein the memory stores a computer program which, when executed by the processor, implements the data transmission method as described above.
According to a fourth aspect of embodiments of the present application, there is provided a computer storage medium storing computer program code which, when executed by a processor, causes the processor to perform the data transmission method as described above.
According to the embodiment of the application, a first special data channel and a second special data channel are used between the target device and the special data processor, so that data transmission can be performed without TCP connection between the first service container group and the second service container group. Meanwhile, the data to be transmitted has the identification information of the second service container group, and the entrance of the second special data channel between the target equipment and the special data processor on the special data processor side can be identified through the identification information, so that the data to be transmitted passes through the entrance and enters the second service container group through the second special data channel, and further, the packaging processing in the first service container group is not needed, and the unpacking processing in the second service container group is not needed. The embodiment of the disclosure omits TCP connection between the first service container group and the second service container group, omits a packaging processing process and a decapsulating processing process in the target equipment, and reduces the occupation of computing resources of the target equipment so as to reduce communication delay.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the following description will briefly introduce the drawings that are required to be used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present disclosure, and other drawings may also be obtained according to these drawings for a person having ordinary skill in the art.
FIG. 1 is a system architecture diagram of a data transmission method embodying an embodiment of the present disclosure;
FIG. 2 is a flow chart of a data transmission method according to one embodiment of the present disclosure;
FIG. 3 is a detailed flow chart of steps 210, 220 and 240 of FIG. 2;
FIG. 4 is a detailed view of one implementation of the data transmission method of FIG. 2;
FIG. 5 is a detailed view of another implementation of the data transmission method of FIG. 2;
fig. 6 is a block diagram of a data transmission device according to one embodiment of the present disclosure;
fig. 7 is a block diagram of a computer device implementing the data transmission method shown in fig. 2.
Detailed Description
In order to better understand the technical solutions in the embodiments of the present application, the following descriptions will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the embodiments of the present application shall fall within the scope of protection of the embodiments of the present application.
For data transmission between different service container groups of the terminal device, a dedicated data processor is usually coupled to the terminal device in order to reduce the resource occupation of the terminal device. The special data processor is a special hardware accelerator, has the characteristics of high performance and low delay, and can effectively process and manage different types of traffic.
Before the terminal equipment transmits the message through the TCP connection between the service container groups in the terminal equipment, the TCP connection is established first, and the message to be transmitted is encapsulated and decapsulated through the service container groups in the terminal equipment during the message transmission, so that more computing resources of the terminal equipment are occupied, the normal processing capacity of the terminal equipment is affected, and the communication time delay is increased.
Therefore, there is a need for a technique 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 the terminal device.
Fig. 1 is a system architecture diagram for implementing a data transmission method according to an embodiment of the present disclosure. The system architecture includes a target device and a dedicated data processor. The target device comprises a plurality of service container groups, any two service container groups in the plurality of service container groups are respectively a first service container group and a second service container group, the special data processor is coupled with the target device, the special data processor is used for data transmission among the service container groups in the target device, and the first service container group transmits data to be transmitted to the second service container group through the special data processor.
The target device is a carrier device of a group of traffic containers in communication with each other. It may be a client or a server. In particular, it may be embodied as a desktop computer, a laptop computer, a mobile phone, a PDA, a dedicated terminal, or as a cluster of several terminals, or it may be a part of a terminal, such as a virtual machine, that is divided.
The service container groups are pod in the target equipment, and each service container group is internally provided with a service program so as to isolate the service programs in different service container groups.
A dedicated Data Processor (DPU) is a data-centric dedicated processor that supports infrastructure layer resource virtualization using software-defined technology routes, supporting infrastructure layer services such as storage, security, quality of service management, etc. The DPU can release the target device from the data forwarding processing work among the service container groups in the DPU, and the data forwarding processing is not needed in the target device, so that the processing load of the target device is reduced.
As shown in fig. 2, according to one embodiment of the present disclosure, there is provided a data transmission method 200, which is performed by a dedicated data processor, the data transmission method including:
Receiving data to be transmitted sent by a first service container group through a first dedicated data channel between the target device and the dedicated data processor (step 210);
acquiring identification information of a second service container group from data to be transmitted (step 220);
acquiring 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 special data channel between the target device and the special data processor on the special data processor side (step 230);
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 set of traffic containers via the second dedicated data channel without establishing a transmission control protocol connection (step 250).
The first dedicated data channel in step 210 includes a virtual port group corresponding to the first service container group and disposed in a physical port, where the physical port refers to a portion of the dedicated data processor connected to the target device, and a plurality of virtual port groups are disposed in the physical port, and for each service container group in the target device, the service container group corresponds to one virtual port group one to one, and virtual port groups corresponding to different service container groups in the target device are different. The virtual port group includes an entry on the target device side and an entry on the dedicated data processor side.
The data to be transmitted in step 220 is generated by running a service program in the first service container group and is used for being sent to the second service container group, the data to be transmitted includes quintuple information, and the identification information of the second service container group can be obtained from the quintuple information of the data to be transmitted.
The second dedicated data channel in step 230 includes a virtual port group corresponding to the second service container group and disposed in the physical port, where an inlet of the first dedicated data channel on the dedicated data processor side is a first virtual port, and an inlet of the first dedicated data channel on the target device side is a second virtual port.
Specifically, in step 230, after the dedicated data processor obtains the identification information of the second service container group, the dedicated data processor may determine the second virtual port information corresponding to the identification information by looking up a preset table or traversing, etc., so as to determine the unique identification information of the second virtual port corresponding to the second service container group, and further 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 may be a unique port number or a unique port name of the corresponding port, or the like.
The advantage of steps 210 to 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, and 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, so that 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, and the data to be transmitted does not need to be encapsulated or decapsulated, so that the TCP/IP layers in the first service container group and the second service container group do not need to process the data to be transmitted, thereby reducing the processing load on the side of the target device, reducing the occupation of computing resources of the terminal device, and realizing the reduction of communication delay.
In addition, the first service container group directly sends the bare packet of the data to be transmitted to the special data processor through the first special data channel, so that the communication between the first service container group and the second service container group does not need to establish transmission control protocol connection, and a protocol stack in the special data processor does not need to check the integrity and consistency of the data to be transmitted, so that the communication efficiency can be improved on the premise of ensuring the communication safety as much as possible.
The implementation of steps 210, 220 and 240 is described in detail below.
As shown in fig. 3, in one embodiment, step 210 includes:
step 211, receiving, by the target storage unit, data to be transmitted sent by the first service container group through the first dedicated data channel.
Based on this, step 220 comprises:
step 221, obtaining the identification information of the second service container group from the data to be transmitted in the target storage unit to outside the target storage unit.
Step 240 includes:
and 241, sending the data to be transmitted to the first virtual port indicated by the first virtual port information from the target storage unit.
Specifically, the dedicated data processor may have a protocol stack running therein, based on which:
in step 220, the dedicated data processor may obtain the 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.
In step 230, the protocol stack of the dedicated data processor may be utilized to determine the first virtual port information corresponding to the second service container group according to the identification information of the second service container group, for example, a preset table is stored in the dedicated data processor, where the preset table includes at least a first preset table entry and a second preset table entry, for each service container group in the target device, the first preset table entry is used to record the first unique identification of the service container group, the second unique identification of the virtual port group corresponding to the service container group on the target device side, and the correspondence between the first unique identification and the second unique identification, and the second preset table entry is used to record the third unique identification of the virtual port group corresponding to the service container group on the dedicated data processor side, the second unique identification in the service container group, and the correspondence between the second unique identification and the third unique identification.
The step 211, the step 221 and the step 241 have the advantages that the first service container group in the target device sends the data to be transmitted to the target storage unit in the special data processor through the first special data channel, the target storage unit obtains the identification information of the second service container group from the data to be transmitted and processes the identification information to the outside of the target storage unit to obtain the first virtual port information, the first virtual port information can be determined, the data to be transmitted is directly sent to the first virtual port from the target storage unit according to the first virtual port information, and further the target storage unit in the special data processor does not need to read the complete data to be transmitted to the outside of the target storage unit to process the data to be transmitted to obtain the first virtual port information after receiving the data to be transmitted, and the target storage unit also directly sends the data to be transmitted from the target storage unit when sending the data to the second service container group, so that the data transmission program of the special data processor is saved, and the data communication efficiency of the special data processor is improved.
The implementation of step 211 is described in detail below.
As shown in fig. 4 and 5, in one embodiment, each service container group has one data interface unit, and the data interface unit of the first service container group is the first data interface unit, based on which step 211 includes:
2111. And receiving data to be transmitted sent by the first data interface unit through the first special data channel through the target storage unit. The data to be transmitted is generated by the first service container group and sent to the first data interface unit.
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 the first service container group, where the first socket interface is configured to receive data generated by a service program running in the first service container group, in the related art, the first socket interface will generally transmit the received data to the protocol stack running in the first service container group for further transmission processing, but in the embodiment of the present application, the first data interface is configured to hijack data sent by the first socket interface to send the data to the target storage unit of the special data processor through the first special data channel.
The data to be transmitted may be data meeting preset conditions, specifically:
in one example, any service program running in the first service container group generates initial data to be transmitted, the initial data to be transmitted is sent to the first socket interface, the first socket interface determines whether the initial data to be transmitted meets a preset condition, if yes, the initial data to be transmitted is used as data to be transmitted and sent to the first socket interface, otherwise, the initial data to be transmitted is sent to a TCP/IP layer of a protocol stack running in the first service container group, so that after the first service container group encapsulates the initial data to be transmitted, data transmission is performed through TCP connection established with the second service container group.
In another example, any service program running in the first service container group generates initial data to be transmitted, the initial data to be transmitted is 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 a preset condition, if yes, 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 a TCP/IP layer of a protocol stack running in the first service container group, and after the first service container group encapsulates the initial data to be transmitted, data transmission is performed through TCP connection established with the second service container group.
The preset conditions may be set according to actual requirements, for example, the preset conditions may be: the transmission destination of the data is a second service container group, and the preset condition may be: the data is generated by a pre-specified portion of the business processes within the first business container group.
The step 2111 has the beneficial effects that the data to be transmitted generated in the first service container group can be directly placed into the target storage unit in the special data processor through the first data interface unit, so that the data transmission channel between the first service container group and the special data processor has a simple structure, the transmission flow is simplified, and the data transmission efficiency is improved.
The implementation of step 250 is described in detail below.
As shown in fig. 4 and 5, in one embodiment, the data interface unit of the second service container group is a second data interface unit, based on which step 250 includes:
step 251, send the data to be transmitted to the second data interface unit through the second dedicated data channel, so that the second data interface unit uploads the data to be transmitted to the service program running in the second service container group.
The second data interface unit in step 251 may include a second data interface and a second socket interface of a protocol stack running within a second service container group.
Specifically, in step 251, after the data to be transmitted is sent to the first virtual port, the data to be transmitted is sent to the second data interface through the second virtual port, and then the second data interface sends the data to be transmitted to the second socket interface, so that the second socket interface uploads the data to be transmitted to the service program running in the second service container group, and the service program processes according to the data to be transmitted.
In addition, the second service container group may also perform data transmission to the first service container group, and a specific process thereof is the same as a process of transmitting data to be transmitted from the first service container group to the second service container group in the embodiment of the present disclosure, which is not limited herein.
The beneficial effect of step 251 is that the data to be transmitted in the target storage unit can be directly uploaded into the second service container group through the second data interface unit, so that the data transmission channel between the second service container group and the special data processor has a simple structure, the transmission flow is simplified, and the data transmission efficiency is improved.
The implementation of step 221 is described in detail below.
As shown in fig. 4, in one embodiment, the target storage unit is a shared memory, based on which step 221 includes:
step 2211, periodically polling the shared memory to obtain the identification information of the second service container group from the data to be transmitted.
For the shared memory in step 2211, the polling frequency of the shared memory for periodic polling may be determined by the processing capability of the dedicated data processor and the data transmission amount between service container groups of the target device, where the more the processing capability of the dedicated data processor is, the higher the polling frequency is, the greater the data transmission amount between service container groups is, the lower the polling frequency is, and the polling frequency of the shared memory may be manually adjusted according to actual requirements.
The step 2211 has the beneficial effects that the shared memory of the target device and the special data processor is arranged in the special data processor instead of the target device, so that the memory resource occupation of the target device and the processing process of the target device can be reduced on the premise of ensuring the communication safety between the target device and the special data processor as much as possible, the computing resource occupation of the target device can be reduced, the data transmission speed can be improved, and the communication time delay can be reduced.
In another embodiment, as shown in fig. 5, the target storage unit is a system on a chip, based on which step 221 includes:
step 2212, acquiring identification information of a second service container group from data to be transmitted through a system on chip;
step 2213, obtaining the identification information of the second service container group sent by the system on chip.
A system-on-chip is a system-on-chip with memory and data processing capabilities.
The beneficial effects of step 2212 and step 2213 are that the embodiment of the disclosure adopts a scheme of setting a system on chip in a special data processor, and because the system on chip can directly send the received data to be transmitted to the special data processor, compared with the scheme of periodically polling the shared memory by the special data processor, the scheme of directly sending the data by the system on chip adopted in the embodiment of the disclosure can shorten the time of data communication so as to improve the data communication efficiency.
The implementation process of acquiring the identification information of the second service container group from the data to be transmitted in step 2212 and step 2213 is described in detail below.
As shown in fig. 4 and fig. 5, in one embodiment, the acquiring, in step 2211 and step 2212, identification information of the second service container group from the data to be transmitted includes:
Step 301, data identification information is obtained 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.
Based on this, step 241 includes:
step 2411, binding the data identification information with the first virtual port information to obtain bound information;
step 2412, determining data to be transmitted in the target storage unit according to the data identification information in the bound information;
step 2413, sending 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.
The data identification information in step 301 may be quintuple information in the data to be transmitted, where the quintuple information of the data to be transmitted is usually located at the header of the data to be transmitted, and the quintuple information can be used to distinguish different data to be transmitted.
Specifically, in step 2411, a forwarding table may be built in a dedicated data processor, and then after the data identification information and the first virtual port information are bound to obtain bound information, the bound information is stored in the forwarding table. Wherein the forwarding table may be located in a protocol stack within the dedicated data processor. Based on this:
In step 2412, determining data to be transmitted in the target storage unit according to the data identification information in the forwarding table.
In step 2413, based on the determined 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.
The step 301, the step 2411 to the step 2413 have the beneficial effects that, because the special data processor determines the data to be transmitted in the target storage unit according to the information after binding, and also determines the transmission destination of the data to be transmitted according to the information after binding, the special data processor can transmit a plurality of data to be transmitted at the same time, i.e. more communication processes can be processed in parallel, and the communication efficiency is improved.
According to still another aspect of the embodiments of the present application, referring to fig. 6, there is shown a data transmission apparatus 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, where the data transmission apparatus includes:
A receiving unit 410, configured to receive 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;
an identifier obtaining unit 420, configured to obtain identifier information of the second service container group from data to be transmitted;
a port obtaining unit 430, configured to obtain first virtual port information corresponding to 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;
and a transmitting unit 440, configured to transmit the data to be transmitted to the first virtual port indicated by the first virtual port information, so as to transmit the data to be transmitted to the second service container group via the second dedicated data channel without establishing a transmission control protocol connection. .
Optionally, a target storage unit is arranged inside the special data processor;
based on this, the receiving unit 410 specifically functions to:
receiving data to be transmitted sent by a first service container group through a first special data channel by a target storage unit;
the identifier obtaining unit 420 is specifically configured to:
acquiring identification information of a second service container group from data to be transmitted in a target storage unit to the outside of the target storage unit;
The transmitting unit 440 specifically is configured to:
and sending the data to be transmitted to the first virtual port indicated by the first virtual port information from the target storage unit.
Optionally, the target storage unit is a shared memory;
based on this, the identification acquisition unit 420 specifically functions to:
and periodically polling the shared memory to acquire the identification information of the second service container group from the data to be transmitted.
Optionally, the target storage unit is a system on chip;
based on this, the identification acquisition unit 420 specifically functions to:
acquiring identification information of a second service container group from data to be transmitted through a system on chip;
and acquiring the identification information of the second service container group sent by the system-on-chip.
Alternatively, the identifier obtaining unit 420 is specifically configured to:
acquiring data identification information from the data to be transmitted, wherein the data identification information is used for uniquely identifying the data to be transmitted and comprises identification information of a second service container group;
based on this, the transmitting unit 440 specifically functions to:
binding the data identification information with the first virtual port information to obtain bound information;
determining data to be transmitted in a target storage unit according to the data identification information in the bound information;
And sending the data to be transmitted from the target storage unit to the first virtual port according to the first virtual port information in the information after binding.
Optionally, the target device includes a plurality of service container groups, the first service container group is any service container group in the plurality of 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;
based on this, the receiving unit 410 specifically functions to:
and receiving data to be transmitted sent by the first data interface unit through the first special data channel through the target storage unit, wherein the data to be transmitted is generated by the first service container group and is sent to the first data interface unit.
Optionally, the first service container group and the second service container group are two different service container groups in the plurality of service container groups, and the data interface unit of the second service container group is a second data interface unit;
alternatively, the sending unit 440 specifically is configured to:
and sending the data to be transmitted to the second data interface unit through the second special data channel so that the second data interface unit can send the data to be transmitted to the service program running in the second service container group.
The data transmission device 400 of the present embodiment is configured to implement the corresponding data transmission method in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein again. In addition, the functional implementation of each unit in the data transmission device 400 of the present embodiment may refer to the description of the corresponding parts in the foregoing method embodiments, which is not repeated herein.
A specific data processor 500 according to an embodiment of the present disclosure is described below with reference to fig. 7. The special purpose data processor 500 shown in fig. 7 is only an example and should not be taken as limiting the functionality and scope of use of embodiments of the present invention.
The special purpose data processor 500 shown in fig. 7 may include, but is not limited to: at least one processing unit 510, at least one memory unit 520, a bus 530 connecting the different system components, including the memory unit 520 and the processing unit 510. The storage unit 520 stores program codes that 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 described above in the present specification.
The storage unit 520 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 5201 and/or cache memory unit 5202, and may further include Read Only Memory (ROM) 5203.
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 or some combination of which may include an implementation of a network environment.
Bus 530 may be 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.
The special purpose data processor 500 may also communicate with one or more external devices 600 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the special purpose data processor 500, and/or with any device (e.g., router, modem, etc.) that enables the special purpose data processor 500 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 550. Also, the special purpose data processor 500 may communicate with one or more networks such as 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, network adapter 560 communicates with other modules of special purpose data processor 500 via bus 530. It should be appreciated that although not shown, the special purpose 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, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer program medium having computer-readable instructions stored thereon, which, when executed by a processor of a computer, cause the computer to perform the method described in the method embodiment section above.
According to an embodiment of the present disclosure, there is also provided a program product for implementing the method in the above method embodiments, which may employ a portable compact disc read only memory (CD-ROM) and comprise program code, and may 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 may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ 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 can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order or that all illustrated steps be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A data transmission method applied to a dedicated data processor coupled to a target device, a first service container group in the target device sending data to be transmitted to a second service container group in the target device through the dedicated data processor, the data transmission method comprising:
receiving data to be transmitted sent by the first service container group through a first special data channel between the target device and the special data processor;
acquiring identification information of the second service container group from the data to be transmitted;
acquiring first virtual port information corresponding to the identification information of the second service container group, wherein the first virtual port is an inlet of a second special data channel between the target device and the special data processor on the special data processor side;
and sending the data to be transmitted 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 through the second special data channel under the condition that a transmission control protocol connection is not required to be established.
2. The data transmission method according to claim 1, wherein the dedicated data processor is internally provided with a target storage unit;
The receiving, by the first dedicated data channel between the target device and the dedicated data processor, data to be transmitted sent by the first service container group includes:
receiving data to be transmitted sent by the first service container group through the first special data channel through the target storage unit;
the obtaining the identification information of the second service container group from the data to be transmitted includes:
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;
the sending the data to be transmitted to the first virtual port indicated by the first virtual port information includes:
and sending the data to be transmitted to the first virtual port indicated by the first virtual port information from the target storage unit.
3. The data transmission method according to claim 2, wherein the target storage unit is a shared memory;
the obtaining 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:
And periodically polling the shared memory so as to acquire the identification information of the second service container group from the data to be transmitted.
4. The data transmission method according to claim 2, wherein the target storage unit is a system on a chip;
the obtaining 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 through the system on chip;
and acquiring the identification information of the second service container group sent by the system-on-chip.
5. The method for transmitting data according to claim 3 or 4, wherein said obtaining the identification information of the second service container group from the data to be transmitted includes:
acquiring data identification information from the data to be transmitted, wherein the data identification information is used for uniquely identifying the data to be transmitted and comprises identification information of the second service container group;
the 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;
and sending the data to be transmitted from the target storage unit to the first virtual port according to the first virtual port information in the information after binding.
6. The data transmission method according to claim 2, wherein the target device includes a plurality of service container groups, the first service container group is any one of the 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;
the receiving, by the target storage unit, the data to be transmitted sent by the first service container group through the first dedicated data channel includes:
and receiving the data to be transmitted sent by the first data interface unit through the first special data channel through the target storage unit, wherein the data to be transmitted is generated by the first service container group and is sent to the first data interface unit.
7. The data transmission method according to claim 6, wherein the first service container group and the second service container group are different two service container groups among the plurality of 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 through the second dedicated data channel includes:
and sending the data to be transmitted to the second data interface unit through the second special data channel so that the second data interface unit can send the data to be transmitted to a service program running in a second service container group.
8. A data transmission apparatus for application to a dedicated data processor coupled to a target device, a first set of traffic containers in the target device sending data to be transmitted to a second set of traffic containers in the target device via the dedicated data processor, the data transmission apparatus comprising:
a receiving unit, configured to receive 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;
The identification acquisition unit is used for acquiring the identification information of the second service container group from the data to be transmitted;
a port obtaining unit, configured to obtain 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 a dedicated data processor side;
and the sending unit is used for sending 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 through the second special data channel under the condition that a transmission control protocol connection is not required to be established.
9. A special-purpose data processor, comprising:
a memory and a processor, wherein the memory has stored therein a computer program which, when executed by the processor, implements the data transmission method according to any one of claims 1 to 7.
10. A computer storage medium storing computer program code which, when executed by a processor, causes the processor to perform the data transmission method according to any one of claims 1 to 7.
CN202311631112.2A 2023-11-30 2023-11-30 Data transmission method, device, special data processor and medium Pending CN117640653A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311631112.2A CN117640653A (en) 2023-11-30 2023-11-30 Data transmission method, device, special data processor and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311631112.2A CN117640653A (en) 2023-11-30 2023-11-30 Data transmission method, device, special data processor and medium

Publications (1)

Publication Number Publication Date
CN117640653A true CN117640653A (en) 2024-03-01

Family

ID=90033399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311631112.2A Pending CN117640653A (en) 2023-11-30 2023-11-30 Data transmission method, device, special data processor and medium

Country Status (1)

Country Link
CN (1) CN117640653A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789931A (en) * 2016-11-29 2017-05-31 北京元心科技有限公司 The Network Isolation sharing method and device of multisystem
CN111556136A (en) * 2020-04-26 2020-08-18 全球能源互联网研究院有限公司 Data interaction method between internal containers of power edge Internet of things agent
CN114500540A (en) * 2022-04-14 2022-05-13 阿里巴巴(中国)有限公司 Data transmission method and device of cloud data center
CN114697217A (en) * 2020-12-29 2022-07-01 华为技术有限公司 Method and related device for realizing cross-subnet communication of container
WO2023179715A1 (en) * 2022-03-24 2023-09-28 阿里云计算有限公司 Data channel construction method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789931A (en) * 2016-11-29 2017-05-31 北京元心科技有限公司 The Network Isolation sharing method and device of multisystem
CN111556136A (en) * 2020-04-26 2020-08-18 全球能源互联网研究院有限公司 Data interaction method between internal containers of power edge Internet of things agent
CN114697217A (en) * 2020-12-29 2022-07-01 华为技术有限公司 Method and related device for realizing cross-subnet communication of container
WO2023179715A1 (en) * 2022-03-24 2023-09-28 阿里云计算有限公司 Data channel construction method and apparatus
CN114500540A (en) * 2022-04-14 2022-05-13 阿里巴巴(中国)有限公司 Data transmission method and device of cloud data center

Similar Documents

Publication Publication Date Title
US11023412B2 (en) RDMA data sending and receiving methods, electronic device, and readable storage medium
CN112532673B (en) Message sending method and device, computer readable storage medium and electronic equipment
CN111242776B (en) Block chain-based accounting method and device, storage medium and electronic equipment
CN111294235A (en) Data processing method, device, gateway and readable storage medium
CN107995315B (en) Method and device for synchronizing information between service boards, storage medium and computer equipment
CN114697387B (en) Data packet transmission method, device and storage medium
CN113609059A (en) Communication system and communication method
CN116886627A (en) Intelligent computing network flow control method and device, electronic equipment and storage medium
CN115176453A (en) Message caching method, memory distributor and message forwarding system
CN117640653A (en) Data transmission method, device, special data processor and medium
CN115514771A (en) Data transmission method and device, electronic equipment and computer readable storage medium
CN114666289A (en) Data transmission method and system based on electromagnetic shielding body
CN113726723B (en) UDP-based data transmission method, device and equipment
CN111459819B (en) Software testing method and device, electronic equipment and computer readable medium
CN116074784A (en) Vehicle-mounted data transmission method and device and storage medium
CN117615042A (en) Data communication method, device, computer equipment and storage medium
CN112615916A (en) File deployment method and device, electronic equipment and storage medium
CN113542412B (en) Data transmission method, device, electronic equipment and storage medium
CN114338798B (en) Data transmission method, device, system, equipment and storage medium
CN112187698B (en) Communication method, service system, electronic equipment and host MCU (micro control Unit) of electronic equipment
CN113301104B (en) Data processing system and method
CN115297529B (en) Private network access method and device, storage medium and electronic equipment
CN117692399A (en) Message uploading method and device
CN117714376A (en) Flow control method, device, special data processor and storage medium
TWI802153B (en) The method of managing a storage

Legal Events

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