A method, device and storage medium for data transmission
By copying data through the mapping relationship between the application layer agent and the transport layer in cloud computing scenarios, the system delay and resource occupation problems caused by calls between multi-functional components are solved, and more efficient data transmission and system performance optimization are achieved.
Patent Information
- Application Number
- CN202311532904.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-16
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-11-16
AI Technical Summary
In cloud computing scenarios, under microservice architecture or serverless architecture, calls between multi-functional components lead to increased system communication delays, reduced response speed to requests, and increased equipment resource usage.
The connection information is sent to the transport layer through the application layer proxy, the mapping relationship is determined, and the data is copied from the second memory on the server side to the first memory on the data requesting side, avoiding data uploading to the application layer proxy and eliminating multiple data copies and redundant operations. And the synchronization of the data plane and the control plane is achieved through the interaction between the control plane and the data plane.
It improves the speed of system response to requests, reduces the occupation of equipment resources, optimizes system performance, and ensures the completeness of statistical and monitoring functions.
Smart Images

Figure CN117395307B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data transmission, and in particular to a method, device and storage medium for data transmission. Background Art
[0002] In cloud computing scenarios, such as microservice architecture or serverless architecture, the implementation of business application functions usually requires multiple functional components to work together to implement the corresponding functions. The calls between these services usually utilize various network protocols. In addition, by setting up an application layer proxy, different requests in a TCP (Transmission Control Protocol) connection can be controlled to achieve more sophisticated flow control, but the data processing burden of the system is increased, and the direct result is an increase in system communication delay, which usually reduces the speed at which the system responds to requests and increases the occupation of device resources. Summary of the invention
[0003] The embodiment of the present application provides a data transmission method to improve the speed at which the system responds to requests and reduce the occupation of device resources.
[0004] In a first aspect, a data transmission method is provided, characterized in that the method is applied to a data transmission device, and comprises the following steps:
[0005] The application layer proxy sends the acquired connection information to the transport layer;
[0006] The transport layer determines a mapping relationship according to the connection information, wherein the mapping relationship is a corresponding relationship between a first connection to the data request end and a second connection to the server end;
[0007] According to the mapping relationship, the transport layer copies the data requested by the data request end from the server end from the second memory in the transport layer associated with the second connection to the first memory in the transport layer associated with the first connection, so that the data is transmitted from the first memory to the data request end.
[0008] Based on the above technical solution, the control and data are separated, and the application layer proxy request and response can be operated in different locations, thus providing a premise for the optimization of the application layer proxy. According to the request at the transport layer, the transmission operation is intercepted to avoid uploading data to the application layer proxy, eliminating multiple data copies and redundant data operations.
[0009] In combination with the first aspect, in some implementations of the first aspect, the method further includes: the transport layer synchronizing key information of the data to the application layer agent.
[0010] Based on the above technical solution, according to the interaction mode between the control plane and the data plane, the control information synchronization of the data plane and the control plane can be achieved, so as to optimize the system performance while ensuring the completeness of statistics, monitoring and other functions.
[0011] In combination with the first aspect, in some implementations of the first aspect, the method further includes:
[0012] The transport layer stores the collected key information of the data in a shared memory;
[0013] The transport layer sends notification information to notify the application layer agent;
[0014] After receiving the notification information, the application layer agent obtains key information of the data from the shared memory;
[0015] The application layer agent notifies the transport layer that key information of the data has been obtained.
[0016] In conjunction with the first aspect, in some implementations of the first aspect, the method includes:
[0017] The transport layer stores the collected key information of the data in a shared memory;
[0018] The transport layer sends notification information to notify the application layer agent;
[0019] After receiving the notification information, the application layer agent obtains key information of the data from the shared memory;
[0020] The application layer agent notifies the transport layer that key information of the data has been obtained.
[0021] In combination with the first aspect, in some implementations of the first aspect, the method further includes: the application layer proxy obtains metadata according to the request data from the data request end, the metadata including header information related to the transmission protocol and identification information of the first connection;
[0022] The application layer proxy selects the address information of the destination server according to the routing rule, and stores the identification information of the connection in the metadata into the address information;
[0023] The application layer proxy establishes a connection with the server end to obtain identification information of the second connection;
[0024] After the application layer agent synchronizes the connection information to the transport layer, the connection information includes identification information of the first connection and identification information of a second connection corresponding to the first connection.
[0025] In conjunction with the first aspect, in some implementations of the first aspect, the method includes:
[0026] The transport layer stores the mapping relationship;
[0027] When the data reaches the transport layer, the transport layer queries the stored mapping relationship.
[0028] In combination with the first aspect, in some implementations of the first aspect, the method includes: transmitting the data from the first memory to the data requesting end.
[0029] In a second aspect, the present application provides a data transmission device, comprising a memory and a processor; the memory and the processor are coupled; the memory is used to store computer program code, and the computer program code includes computer instructions; wherein, when the processor executes the computer instructions, the data transmission device executes the data transmission method as in the first aspect.
[0030] The device in the second aspect can be a chip, and the processor can be implemented by hardware or software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor, which is implemented by reading software codes stored in a memory. The memory can be integrated in the processor or can be located outside the processor and exist independently.
[0031] In a third aspect, the present application provides a processor, comprising: an input circuit, an output circuit and a processing circuit. The processing circuit is used to receive a signal through the input circuit and transmit a signal through the output circuit, so that the processor executes the method in the first aspect.
[0032] In a fourth aspect, the present application provides a computer program product, comprising: a computer program (also referred to as code, or instruction), which enables a computer to execute the method in the first aspect when the computer program is executed.
[0033] In a fifth aspect, the present application provides a computer-readable storage medium, which stores a computer program (also referred to as code, or instructions). When the computer-readable storage medium is run on a data transmission device, the data transmission device executes the method in the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A schematic diagram of a data path provided in an embodiment of the present application;
[0035] Figure 2 A schematic flow chart of a data transmission method provided in an embodiment of the present application;
[0036] Figure 3A schematic diagram of the architecture of the application layer proxy provided in the embodiment of the present application;
[0037] Figure 4 A schematic diagram of a transport layer architecture provided in an embodiment of the present application;
[0038] Figure 5 A schematic flow chart of an information synchronization method provided in an embodiment of the present application;
[0039] Figure 6 A schematic structural diagram of a data transmission device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with the examples and drawings. The schematic implementation methods of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention. Any embodiment or design described as "example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized. "At least one" refers to one or more, and "multiple" refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that three relationships may exist, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following items (individuals)" or similar expressions thereof refer to any combination of these items, including any combination of single items (individuals) or plural items (individuals). For example, at least one of a, b and c can represent: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c. Where a, b and c can be single or multiple. The descriptions related to network element A sending a message, information or data to network element B, and network element B receiving a message, information or data from network element A, are intended to explain to which network element the message, information or data is to be sent, but do not limit whether they are sent directly or indirectly via other network elements. Descriptions such as "when...", "under the circumstances of...", "if" and "if" all mean that the device will make corresponding processing under certain objective circumstances, but do not limit the time, nor do they require the device to have a judgment action when implementing, nor do they mean that there are other limitations.
[0041] In addition, the architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of the architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0042] The following are the abbreviations and full English and Chinese names of some terms in this application: HTTP (Hypertext Transfer Protocol), TCP (Transmission Control Protocol), UDP (User Datagram Protocol), CDN (Content Delivery Network), IP (Internet Protocol), DPDK (Data Plane Development Kit), RPC (Remote Procedure Call), eBPF (extend Berkeley Packet Filter), fd (File Description), tx (Transmit), rx (Receive).
[0043] Figure 1 This is a schematic diagram of a data path in an embodiment of the present application. According to the general usage of the application layer proxy, the entire data path can be simplified as follows: Figure 1 The model. Figure 1 In the model shown, the module where the request is initiated is the data request end, which can also be called the client, and is responsible for generating request data (request) and sending it to the data transmission device; the module where the application layer proxy and the transport layer are located is the data transmission device, and the application layer proxy receives the request sent by the client through the transport layer, and then sends the request to the server through the transport layer. The module where the request is accepted is the server, which is used to receive the request, generate response data (response), and send the response to the request initiator through the data transmission device; compared with the existing application layer proxy, the application layer proxy in this application mainly processes the request data to ensure the control of the flow, and at the same time offloads the transmission of the response data to the transport layer to reduce the data copying process, thereby improving the overall performance of the system. In addition, Figure 1As shown, the information synchronization mechanism between the application layer proxy and the transport layer can be further used to ensure the detection of the response data by the application layer proxy and the transport layer information.
[0044] It should be understood that Figure 1 The architecture shown is only an exemplary description, and the network architecture applicable to the embodiments of the present application is not limited to this. Any architecture that can achieve the above functions is applicable to the embodiments of the present application.
[0045] Figure 2 2 is a schematic flow chart of a method 200 for data transmission provided by the present application. The method 200 includes at least part of the following contents:
[0046] S201: The application layer proxy sends the acquired connection information to the transport layer;
[0047] In one implementation, the application layer proxy establishes a connection with the client, obtains the client's request data, processes the data, then establishes a connection with the server according to the processing result, and sends the processed data as a new request to the server. The subsequent response process is the opposite.
[0048] In addition, to achieve fast data forwarding in the response phase, the application layer proxy notifies the transport layer of the correspondence between the two connections.
[0049] Figure 3 This is a schematic diagram of the application layer proxy architecture. Figure 3 The architecture of the application layer proxy part and the synchronization function information flow of the connection information are shown. The application layer proxy architecture is not a complete application layer proxy. It only shows some modules that enable the application layer proxy to have the ability to quickly forward data, as well as the relationship between them. The architecture mainly includes four modules: protocol parsing, routing module, connection creation and information synchronization. The protocol parsing module parses the received request data according to the protocol specification and obtains metadata (metadata), which is mainly the header information related to the protocol and the identification information of the connection, called fd1, which can also be called the identification information of the first connection. The routing module receives the metadata and selects the address information (host) of the destination server according to the routing rules. At the same time, in the embodiment of the present application, the connection identification information in the metadata is stored in the address information. After the connection creation module obtains the address information of the server, it establishes a connection with the specified server and obtains the identification information, called fd2, which can also be called the identification information of the second connection. At this time, the module obtains the corresponding relationship between the two connections according to fd1 and fd2. After the corresponding relationship is synchronized to the transport layer, the transport layer can find the connection information according to the specific fd, thereby realizing the interception and transmission of data.
[0050] The information synchronization module is used to collect information in the response phase so that the application agent can perform various subsequent statistical functions. These statistical results may affect the functions of other functional modules, such as the routing selection of the routing module. The transport layer determines the mapping relationship based on the connection information. The mapping relationship can also be called a corresponding relationship, that is, the corresponding relationship between the first connection to the data request end and the second connection to the server end;
[0051] S202: The transport layer copies the data requested by the data request end from the server end from the second memory in the transport layer associated with the second connection to the first memory in the transport layer associated with the first connection according to the mapping relationship, so that the data is transmitted from the first memory to the data request end.
[0052] The transport layer is used for data transmission, and it has no perception of the request data, so it usually does not know the correspondence between the new connection (fd2) and the original connection (fd1) in the application layer proxy, and thus cannot realize data transfer between the two at this layer. In the embodiment of the present application, by realizing the acquisition function of the connection mapping relationship at the application layer, the transport layer can further obtain the connection mapping relationship, and finally realize the transmission of the response data at the transport layer.
[0053] Figure 4 It is a schematic diagram of the transport layer architecture. The transport layer includes a transport protocol stack and a socket layer. The function of the transport layer is to process the data transmission protocol. The common protocol is the TCP / IP protocol stack. This part of the content can be processed according to the usual protocol. The socket layer completes the interactive operation of data, including the processing of the application layer protocol and the data interaction with other connections. In the embodiment of the present application, it is necessary to copy the response data from the rx memory connected to fd2 to the tx memory connected to fd1 at this layer. The operation of the copy process can use shared memory or be implemented by copying data from different memories.
[0054] The other two important modules involved in the socket layer are the connection mapping management module and the information synchronization module. The connection mapping management module is responsible for obtaining the connection mapping relationship from the application layer agent, and is also responsible for storing and managing it. The transport layer obtains the connection information and establishes a corresponding relationship. The mapping relationship is recorded in a specific location and waits for the query of the subsequent request process. After the response data is processed by the protocol stack, the connection mapping relationship is queried at the socket layer to obtain the connection data of the other end. The data is copied to the sending queue of the other end connection, and the other end connection is notified to send the data.
[0055] When the response data arrives, this module queries whether the corresponding connection information is returned, and then the data is copied to the tx memory of the query connection, waiting for the response data to be sent. The information synchronization module is responsible for collecting information in the response phase and synchronizing it to the application layer agent.
[0056] In an optional implementation, the method further includes S203: the transport layer synchronizes the key information of the data to the application layer agent.
[0057] Figure 5 This is a flow chart of an information synchronization method, which illustrates that the information synchronization mechanism between the application layer proxy and the transport layer can use an asynchronous event notification method. The asynchronous event notification method is only one of the methods for realizing that the transport layer synchronizes the key information of the data to the application layer proxy. The asynchronous event notification method includes two parts: information cache and event notification. The information cache is used to record the relevant control information of the response data, and the event notification is responsible for notifying the other party to perform the specified operation.
[0058] like Figure 5 As shown, the information synchronization method includes:
[0059] ① The transport layer stores the collected response information, also known as the key information of the data, in the shared memory;
[0060] ②The transport layer sends event notification information to the application layer proxy, notifying the application layer proxy that the response has arrived;
[0061] ③The application layer agent obtains key information of data from shared memory;
[0062] ④The application layer proxy sends a notification to the transport layer that it has obtained the response information.
[0063] The execution of information synchronization can be performed simultaneously with the transmission of response data by the transport layer, or after the transport layer completes the transmission of response data.
[0064] In addition, optionally, the method further includes step S204, in which data is transmitted from the first memory to the data requesting end. This step can be implemented by referring to the existing data transmission method, and will not be described in detail here.
[0065] Based on the above technical solution, the control and data are separated, and the application layer proxy request and response can be operated in different locations, thus providing a premise for the optimization of the application layer proxy. According to the request at the transport layer, the transmission operation is intercepted to avoid uploading data to the application layer proxy, eliminating multiple data copies and redundant data operations.
[0066] An embodiment of the present application also provides a data transmission device, comprising: at least one processor; a memory for storing instructions executable by the at least one processor; wherein the at least one processor is configured to execute the instructions to implement the above method disclosed in the embodiment of the present disclosure.
[0067] Figure 6 The structure diagram of a data transmission device provided by an exemplary embodiment of the present disclosure is shown in FIG. Figure 6 As shown, the data transmission device 600 includes at least one processor 601 and a memory 602 coupled to the processor 601. The processor 601 can execute corresponding steps in the above method disclosed in the embodiment of the present disclosure.
[0068] The processor 601 may also be referred to as a central processing unit (CPU), which may be an integrated circuit chip having signal processing capabilities. Each step in the method disclosed in the embodiment of the present disclosure may be completed by an integrated logic circuit of hardware in the processor 1801 or by instructions in the form of software. The processor 1801 may be a general-purpose processor, a digital signal processor (DSP), an ASIC, a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present disclosure may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a memory 602, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, or other mature storage media in the art. The processor 601 reads the information in the memory 602 and completes the steps of the method in combination with its hardware. In addition, the data transmission device may further include a transceiver 603 coupled to the processor 601 for receiving and sending information or data.
[0069] The embodiment of the present disclosure further provides a computer-readable storage medium, wherein when instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the above method disclosed in the embodiment of the present disclosure.
[0070] The computer-readable storage medium in the disclosed embodiments may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. The computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. More specifically, the computer-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0071] The computer-readable medium may be included in the data transmission device; or may exist independently without being assembled into the data transmission device.
[0072] The embodiments of the present disclosure further provide a computer program product, including a computer program, wherein when the computer program is executed by a processor, the above method disclosed in the embodiments of the present disclosure is implemented.
[0073] In the embodiments of the present disclosure, computer program codes for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server.
[0074] In this specification, adjectives such as first and second may be used only to distinguish one element or action from another element or action, without necessarily requiring or implying any actual such relationship or order. Where circumstances permit, reference to an element or component or step (etc.) should not be interpreted as being limited to only one of the elements, components, or steps, but may be one or more of the elements, components, or steps, etc.
[0075] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the hardware + program embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0076] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0077] Although the present application provides method operation steps as described in the embodiments or flowcharts, more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent the only execution order. When the actual device or client product is executed, it can be executed in the order of the method shown in the embodiments or the drawings or in parallel (for example, in a parallel processor or multi-threaded processing environment).
[0078] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions.
[0079] Although the present specification embodiment provides the method operation steps as described in the embodiment or flow chart, more or less operation steps may be included based on conventional or non-creative means. The order of steps listed in the embodiment is only one way in the order of execution of many steps, and does not represent a unique execution order. When the device or terminal product in practice is executed, it can be executed in sequence or in parallel (such as a parallel processor or a multi-threaded processing environment, or even a distributed data processing environment) according to the method shown in the embodiment or the accompanying drawings. The term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, product or equipment including a series of elements not only includes those elements, but also includes other elements not clearly listed, or also includes elements inherent to such process, method, product or equipment. In the absence of more restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or equipment including the elements.
[0080] For the convenience of description, the above devices are described in various modules according to their functions. Of course, when implementing the embodiments of this specification, the functions of each module can be implemented in the same or more software and / or hardware, or the module implementing the same function can be implemented by a combination of multiple sub-modules or sub-units. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0081] Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable program code, the controller can be made to implement the same function in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered as a hardware component, and the devices for implementing various functions included therein can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules for implementing the method and structures within the hardware component.
[0082] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0083] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0084] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0085] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0086] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0087] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0088] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, the embodiments of this specification may take the form of complete hardware embodiments, complete software embodiments or embodiments combining software and hardware. Moreover, the embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0089] The present specification embodiments may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present specification embodiments may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0090] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. In the description of this specification, the description of the reference terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiment of this specification. In this specification, the schematic representation of the above terms does not necessarily target the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, in the absence of contradiction, a person skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0091] The above is only an example of the embodiment of the present specification and is not intended to limit the embodiment of the present specification. For those skilled in the art, the embodiment of the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiment of the present specification shall be included in the scope of the claims of the embodiment of the present specification.
Claims
1. A method for data transmission, characterized in that: Applied to a data transmission device, the method comprises the following steps: The application layer proxy sends the acquired connection information to the transport layer; The transport layer determines a mapping relationship according to the connection information, wherein the mapping relationship is a corresponding relationship between a first connection to the data request end and a second connection to the server end; The transport layer copies the data requested by the data request end from the server end from the second memory in the transport layer associated with the second connection to the first memory in the transport layer associated with the first connection according to the mapping relationship, so that the data is transmitted from the first memory to the data request end; The application layer proxy sends the acquired connection information to the transport layer, including: The application layer proxy obtains metadata according to the request data from the data request end, wherein the metadata includes header information related to the transmission protocol and identification information of the first connection; The application layer proxy selects the address information of the destination server according to the routing rule, and stores the identification information of the connection in the metadata into the address information; The application layer proxy establishes a connection with the server end to obtain identification information of the second connection; According to the identification information of the first connection and the identification information of the second connection, a correspondence between the first connection and the second connection is obtained, and the correspondence is synchronized to the transport layer so that the transport layer obtains the connection information, wherein the connection information includes the identification information of the first connection and the second connection corresponding to the first connection.
2. The method according to claim 1, characterized in that The transport layer synchronizes key information of the data to the application layer agent, wherein the key information is response information collected by the transport layer.
3. The method according to claim 1 or 2, characterized in that: The method comprises: The transport layer stores the collected key information of the data in a shared memory, wherein the key information is the response information collected by the transport layer; The transport layer sends notification information to notify the application layer agent; After receiving the notification information, the application layer agent obtains key information of the data from the shared memory; The application layer agent notifies the transport layer that key information of the data has been obtained.
4. The method according to claim 1, characterized in that: The method comprises: The transport layer stores the mapping relationship; When the data reaches the transport layer, the transport layer queries the stored mapping relationship.
5. The method according to claim 1, characterized in that: The method comprises: The data is transmitted from the first memory to the data requesting end.
6. A data transmission device, characterized in that: It comprises a memory and a processor; the memory and the processor are coupled; the memory is used to store computer program code, and the computer program code includes computer instructions; wherein, when the processor executes the computer instructions, the data transmission device executes the data transmission method as described in any one of claims 1-5.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions; wherein, when the computer instructions are executed on a data transmission device, the data transmission device executes the data transmission method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Data transmission method, system, and proxy server
CN109088892A
Network function virtualization compute element image upgrade
US10958539B1
Computing system and method for intelligent ioe information framework
US20190158370A1
Container networking using communication tunnels
US20200036796A1
Data transmission method, system and proxy server
US20200358857A1
