Data transmission method, data transmission system and data transmission device

By acquiring and utilizing data transmission identifiers and type reference identifiers in the data ordering queue, the system automatically identifies and transmits data of timed-out data types, thus solving the problem of data transmission instability caused by excessive single-core CPU resource utilization and achieving data transmission stability and integrity.

CN120675983BActive Publication Date: 2026-11-27HANGZHOU ALICLOUD FEITIAN INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410308963.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-18
Publication Date
2026-11-27
Estimated Expiration
2044-03-18

AI Technical Summary

Technical Problem

During data transmission, as the amount of data transmitted over the network increases and the transmission duration lengthens, the utilization rate of single-core CPU resources becomes too high, which can easily lead to packet loss during data transmission and affect the stability of data transmission.

Method used

By obtaining the data transmission identifier of the data to be transmitted and the type reference identifier in the data ordering queue, the data type of the data to be transmitted is determined. If the data type is a timeout data type, the data is transmitted according to the current transmission order. The time information stored in the data ordering queue is used to automatically identify and sort the data type.

Benefits of technology

When the processing unit has large latency jitter, it can accurately determine and transmit the data to be transmitted for timeout data types, ensuring the stability and integrity of data transmission and avoiding packet loss problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120675983B_ABST
    Figure CN120675983B_ABST
Patent Text Reader

Abstract

The embodiment of the present specification provides a data transmission method, a data transmission system and a data transmission device, wherein the data transmission method comprises: obtaining to-be-transmitted data, wherein the to-be-transmitted data is data processed by a processing unit in a plurality of original data, and the to-be-transmitted data carries a data transmission identifier; determining a data type of the to-be-transmitted data according to the data transmission identifier and a type reference identifier stored in a data sequence preserving queue, wherein the data sequence preserving queue comprises a plurality of storage units corresponding to the original data in one-to-one manner, the storage unit is used for storing a data identifier and time information of the original data, the plurality of storage units are arranged in sequence based on the time information, and the type reference identifier is obtained by screening the data identifier based on the time information; and in the case that the data type is an overtime data type, transmitting the to-be-transmitted data according to a current transmission order of the to-be-transmitted data. The data of the overtime data type is stably transmitted, and the integrity of the data transmission is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments in this specification relate to the field of computer technology, and in particular to data transmission methods, data transmission systems, and data transmission devices. Background Technology

[0002] With the development of computer technology, more and more computer technologies are being applied in the field of data transmission. In a computer system, the network interface card (NIC) acts as a bridge connecting the host and the network, responsible for realizing the data exchange process between the host's internal core processor (CPU), memory, and the external network.

[0003] However, during data transmission, as the amount of data transmitted over the network increases and the transmission duration lengthens, there is a risk of excessive utilization of single-core CPU resources, leading to packet loss and affecting the stability of data transmission. Therefore, a stable and complete data transmission solution is urgently needed. Summary of the Invention

[0004] In view of this, embodiments of this specification provide a data transmission method. One or more embodiments of this specification also relate to a data transmission system, a data transmission apparatus, a computing device, a computer-readable storage medium, and a computer program product, to address the technical deficiencies existing in the prior art.

[0005] According to a first aspect of the embodiments of this specification, a data transmission method is provided, comprising:

[0006] Acquire the data to be transmitted, wherein the data to be transmitted is the data processed by the processing unit from multiple raw data, and the data to be transmitted carries a data transmission identifier;

[0007] The data type of the data to be transmitted is determined based on the data transmission identifier and the type reference identifier stored in the data ordering queue. The data ordering queue includes multiple storage units that correspond one-to-one with the original data. The storage units are used to store the data identifier and time information of the original data. The multiple storage units are arranged in order based on the time information. The type reference identifier is obtained by filtering the data identifier based on the time information.

[0008] When the data type is a timeout data type, the data to be transmitted is transmitted according to the current transmission order of the data to be transmitted.

[0009] According to a second aspect of the embodiments of this specification, a data transmission system is provided, including a network interface card (NIC) and a processing unit;

[0010] The processing unit is used to process multiple raw data sets.

[0011] The network interface card (NIC) is used to acquire data to be transmitted. This data is the processed data from multiple raw data sets, and it carries a data transmission identifier. Based on the data transmission identifier and the type reference identifier stored in the data ordering queue, the data type of the data to be transmitted is determined. The data ordering queue includes multiple storage units corresponding one-to-one with the raw data. These storage units store the data identifier and time information of the raw data, and are arranged sequentially based on the time information. The type reference identifier is selected from the data identifiers based on the time information. In the case of a timeout data type, the data to be transmitted is transmitted according to its current transmission order.

[0012] According to a third aspect of the embodiments of this specification, a data transmission apparatus is provided, comprising:

[0013] The acquisition module is configured to acquire data to be transmitted, wherein the data to be transmitted is the data processed by the processing unit from multiple raw data, and the data to be transmitted carries a data transmission identifier;

[0014] The determination module is configured to determine the data type of the data to be transmitted based on the data transmission identifier and the type reference identifier stored in the data ordering queue. The data ordering queue includes multiple storage units that correspond one-to-one with the original data. The storage units are used to store the data identifier and time information of the original data. The multiple storage units are arranged in order based on the time information. The type reference identifier is obtained by filtering the data identifier based on the time information.

[0015] The transmission module is configured to transmit the data to be transmitted according to the current transmission order of the data to be transmitted when the data type is a timeout data type.

[0016] According to a fourth aspect of the embodiments of this specification, a computing device is provided, comprising:

[0017] Memory and processor;

[0018] The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions, which, when executed by the processor, implement the steps of the above-described data transmission method.

[0019] According to a fifth aspect of the embodiments of this specification, a computer-readable storage medium is provided that stores a computer program / instructions that, when executed by a processor, implement the steps of the above-described data transmission method.

[0020] According to a sixth aspect of the embodiments of this specification, a computer program product is provided, including a computer program / instructions that, when executed by a processor, implement the steps of the above-described data transmission method.

[0021] This specification provides a data transmission method according to one embodiment, comprising: acquiring data to be transmitted, wherein the data to be transmitted is data processed by a processing unit from multiple original data, and the data to be transmitted carries a data transmission identifier; determining the data type of the data to be transmitted based on the data transmission identifier and a type reference identifier stored in a data ordering queue, wherein the data ordering queue includes multiple storage units corresponding one-to-one with the original data, the storage units are used to store the data identifier and time information of the original data, the multiple storage units are arranged sequentially based on the time information, and the type reference identifier is selected from the data identifiers based on the time information; in the case of a timeout data type, transmitting the data to be transmitted according to the current transmission order of the data to be transmitted. By automatically identifying the data type of the data to be transmitted, even when the processing unit has large latency jitter, the data to be transmitted with a timeout data type can be accurately determined and transmitted, ensuring the stability and integrity of data transmission. Attached Figure Description

[0022] Figure 1 This is an architecture diagram of a data transmission system provided in one embodiment of this specification;

[0023] Figure 2 This is a flowchart illustrating a data transmission method provided in one embodiment of this specification;

[0024] Figure 3 This is a schematic diagram of a data order-preserving queue in a data transmission method provided in one embodiment of this specification;

[0025] Figure 4 This is an architecture diagram of another data transmission system provided in one embodiment of this specification;

[0026] Figure 5 This is a schematic diagram of the structure of a data transmission device provided in one embodiment of this specification;

[0027] Figure 6 This is a structural block diagram of a computing device provided in one embodiment of this specification. Detailed Implementation

[0028] Many specific details are set forth in the following description to provide a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this specification. Therefore, this specification is not limited to the specific implementations disclosed below.

[0029] The terminology used in one or more embodiments of this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of this specification. The singular forms “a,” “described,” and “the” as used in one or more embodiments of this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0030] It should be understood that although the terms first, second, etc., may be used to describe various information in one or more embodiments of this specification, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second without departing from the scope of one or more embodiments of this specification, and similarly, second may also be referred to as first. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to a determination."

[0031] Furthermore, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties. Moreover, the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.

[0032] First, the terms and concepts used in one or more embodiments of this specification will be explained.

[0033] Data forwarding plane: Also known as the data plane or forwarding plane, the data forwarding plane is the part of a network device (such as a router, switch, or virtual switch in a software-defined network) responsible for processing and forwarding data packets. Its main function is to process incoming data packets at high speed and without errors based on pre-defined rules (such as routing tables, forwarding tables, or flow tables), and determine from which interface these packets should be sent out to reach their destination.

[0034] Gateway: A gateway is a device or system used to connect two or more different networks and is responsible for transmitting data packets from one network to another, acting as a bridge and translator between different networks.

[0035] Cloud Gateway: A cloud gateway is a forwarding node of the data center gateway type and is a traffic aggregation point.

[0036] Load balancing: Load balancing refers to the even distribution of traffic across multiple computing devices.

[0037] Elephant flow scenario: The elephant flow scenario usually refers to a transmission process in network traffic that involves a huge amount of data and a long duration.

[0038] Programmable Gate Array (FPGA): A programmable gate array is an integrated circuit that allows users to configure and reprogram its internal logic functions as needed. A programmable gate array consists of a large number of basic programmable logic units, configurable input / output blocks, digital signal processing modules, embedded memory resources, and other advanced functional modules, and features programmability, flexibility, parallel processing capabilities, high performance, and low power consumption.

[0039] Hardware entries: Hardware entries are primarily used to perform high-speed packet processing and forwarding decisions. Compared to CPU software processing, hardware entries offer lower latency and higher throughput.

[0040] A message is a single unit of data transmitted at once. It is the basic unit of network communication, containing complete information transmitted from the source to the destination. Messages can contain any form of data, such as text, images, audio, or video, and have different representations and encapsulation structures at different layers of the network.

[0041] Structured Query Language (SQL): SQL is a database query and programming language used to access, query, update, and manage relational database systems.

[0042] Gateways may encounter various problems when transmitting data. Taking cloud gateways as an example, cloud gateways are the core forwarding nodes of cloud networks, characterized by statelessness and high throughput. Traditional data forwarding solutions are prone to single-core overload in heavy traffic scenarios, affecting the online stability of cloud network projects. While solutions based on programmable switching chips offer guaranteed performance, limitations in hardware entry resources and the impact of chip supply disruptions affect the project's ability to continuously evolve.

[0043] To address the aforementioned issues, this specification proposes a data transmission scheme for a gateway. The scheme involves acquiring data to be transmitted, where the data to be transmitted is processed data from multiple raw data sets, and the data carries a data transmission identifier. The data type of the data to be transmitted is determined based on the data transmission identifier and a type reference identifier stored in a data ordering queue. The data ordering queue includes multiple storage units corresponding one-to-one with the raw data sets. These storage units store the data identifiers and time information of the raw data, and are arranged sequentially based on the time information. The type reference identifier is selected from the data identifiers based on the time information. In the case of a timeout data type, the data to be transmitted is transmitted according to its current transmission order.

[0044] It should be noted that the data transmission scheme proposed in the embodiments of this specification can also be applied to the core nodes of the cloud gateway data forwarding plane, such as Internet Gateway (IGW), Carrier-grade Gateway (CGW), and Virtual Gateway (VGW) within a Virtual Private Cloud (VPC). This specification does not impose any limitations on this. By automatically identifying the data type of the data to be transmitted, even when the processing unit latency jitter is large, it can accurately determine and transmit data of timeout data types, ensuring the stability and integrity of data transmission.

[0045] This specification provides a data transmission method, and also relates to a data transmission system, a data transmission device, a computing device, and a computer-readable storage medium, which will be described in detail in the following embodiments.

[0046] See Figure 1 , Figure 1 This specification illustrates an architecture diagram of a data transmission system according to an embodiment of the present specification. The data transmission system may include a network interface card 100 and a processing unit 200.

[0047] Processing unit 200 is used to process multiple raw data;

[0048] Network interface card 100 is used to acquire data to be transmitted. The data to be transmitted is data processed by processing unit 200 from multiple original data. The data to be transmitted carries a data transmission identifier. The data type of the data to be transmitted is determined according to the data transmission identifier and the type reference identifier stored in the data ordering queue. The data ordering queue includes multiple storage units that correspond one-to-one with the original data. The storage units are used to store the data identifier and time information of the original data. The multiple storage units are arranged in order based on the time information. The type reference identifier is selected from the data identifiers based on the time information. In the case of a timeout data type, the data to be transmitted is transmitted according to the current transmission order of the data to be transmitted.

[0049] The solution implemented in this specification includes multiple storage units that correspond one-to-one with the original data in the data ordering queue. These storage units store the data identifiers and time information of the original data. The multiple storage units are arranged sequentially based on the time information. The type reference identifier is selected from the data identifiers based on the time information. By utilizing the data transmission identifier and the type reference identifier stored in the data ordering queue, the data type of the data to be transmitted can be automatically identified. Thus, even when the processing unit has significant latency jitter, the data of the timed-out data type to be transmitted can be accurately determined and transmitted, ensuring the stability and integrity of data transmission.

[0050] In one optional embodiment of this specification, the data transmission system may further include programmable components;

[0051] A programmable component is used to receive a data transmission identifier and a data ordering queue sent by a network interface card 100; determine the data type of the data to be transmitted based on the data transmission identifier and the type reference identifier stored in the data ordering queue; and send the data type of the data to be transmitted to the network interface card 100.

[0052] The network interface card 100 is also used to receive data types sent by programmable components, and, in the case of timeout data types, to transmit the data to be transmitted according to the current transmission order of the data to be transmitted.

[0053] By applying the solutions in the embodiments of this specification, the data transmission system can solve the elephant flow risk in traditional solutions by combining the programmability, high performance and flexibility of programmable components, while providing higher assurance in hardware entry specifications and evolution.

[0054] See Figure 2 , Figure 2 This specification illustrates a flowchart of a data transmission method according to an embodiment, which specifically includes the following steps:

[0055] Step 202: Obtain the data to be transmitted, wherein the data to be transmitted is the data processed by the processing unit from multiple original data, and the data to be transmitted carries a data transmission identifier.

[0056] In one or more optional embodiments of this specification, during data transmission, the network card can acquire the data to be transmitted and distribute and transmit the data.

[0057] Specifically, the data to be transmitted can be called a message to be transmitted. The data to be transmitted can be data from different scenarios, such as payment data in a financial scenario, game data in a gaming scenario, etc. Raw data refers to data that has not been processed by the processing unit; raw data becomes the data to be transmitted after processing by the processing unit. A processing unit refers to a physical core in a CPU, also called a core. The number of processing units can be one or multiple. It should be noted that in scenarios involving large-scale data transmission, a single core is highly susceptible to high load. To avoid this risk, preferably, the number of processing units in this embodiment is multiple, thereby reducing the load on a single core by distributing multiple raw data sets across multiple CPU processing units. The data transmission identifier can be called a data transmission sequence number (SN), used to uniquely identify the data to be transmitted. The data transmission identifier is usually a unique combination of numbers or letters.

[0058] In practical applications, there are various ways to acquire data to be transmitted, and the specific method should be selected according to the actual situation. This specification does not impose any limitations on these methods in the embodiments. In one possible implementation of this specification, the data to be transmitted can be received actively sent by the processing unit. In another possible implementation of this specification, a data acquisition instruction can be sent to the processing unit, and the data to be transmitted sent by the processing unit in response to the data acquisition instruction can be received.

[0059] It should be noted that the processing unit can acquire multiple raw data sets before processing them. There are various ways for the processing unit to acquire multiple raw data sets, and the specific method chosen depends on the actual situation; this specification does not limit this approach. In one possible implementation, multiple raw data sets can be read from a database. In another possible implementation, multiple raw data sets can be received from a network interface card (NIC).

[0060] In one optional embodiment of this specification, before acquiring the data to be transmitted, the following steps may be included:

[0061] Acquire multiple raw data sets, each of which carries a data identifier;

[0062] Multiple raw data sets are sent to the processing unit, and the time information for each raw data set to be sent is determined.

[0063] A data order-preserving queue is constructed based on the data identifiers and time information of multiple raw data.

[0064] Specifically, the data identifier is used to uniquely identify the original data. Time information refers to the time when the original data was sent to the processing unit, such as a timestamp. The data ordering queue is used to record the data identifier of the original data and the time information when the original data was sent to the processing unit.

[0065] It should be noted that there are multiple ways to acquire multiple raw data sets, and the specific method should be selected based on the actual situation. This specification does not impose any limitations on this method in the embodiments. In one possible implementation of this specification, multiple raw data sets can be read from other data acquisition devices or a database. In another possible implementation of this specification, multiple raw data sets can be received from a network port.

[0066] In practical applications, there are various ways to send multiple raw data sets to a processing unit, and the specific method chosen depends on the actual situation. This specification does not impose any limitations on this method. In one possible implementation, multiple raw data sets can be sent to one processing unit. In another possible implementation, multiple raw data sets can be sent to multiple processing units at a packet-by-packet granularity. For example, assume the CPU has four processing units: processing unit 0, processing unit 1, processing unit 2, and processing unit 3. The network card can send the first acquired raw data set to processing unit 0, the second acquired raw data set to processing unit 1, the third acquired raw data set to processing unit 2, and the fourth acquired raw data set to processing unit 3.

[0067] Furthermore, when the first raw data is sent to the processing unit, the current system time can be viewed, and the current system time can be used to determine the time information of the first raw data, wherein the first raw data is any one of multiple raw data.

[0068] It's worth noting that while the network interface card (NIC) sends multiple raw data packets to the processing unit, it can simultaneously build a local data ordering queue to record the data identifier and time information when the raw data is sent to the processing unit. See also... Figure 3 , Figure 3 This diagram illustrates a data ordering queue in a data transmission method according to an embodiment of this specification. The data ordering queue includes multiple storage units, each storing the data identifier and time information of a piece of raw data. When raw data is sent to the processing unit, the storage units in the data ordering queue record the data identifier and time information of that raw data. Figure 3As shown, the data order-preserving queue includes data identifiers and time information for each of the five original data sets: data identifier 1 and time information 1, data identifier 2 and time information 2, data identifier 3 and time information 3, data identifier 4 and time information 4, and data identifier 5 and time information 5. It should be noted that the data order-preserving queue also includes a first-type reference identifier and a second-type reference identifier.

[0069] The scheme described in this specification involves acquiring multiple raw data sets, each carrying a data identifier; sending the multiple raw data sets to a processing unit and determining the sending time information for each set; and constructing a data order-preserving queue based on the data identifiers and time information of the multiple raw data sets. By constructing the data order-preserving queue, it is possible to accurately identify data of timeout type to be transmitted and precisely transmit such data.

[0070] In one optional embodiment of this specification, sending multiple raw data to the processing unit as described above may include the following steps:

[0071] When there are multiple processing units, the processing status information of each processing unit is obtained separately;

[0072] Based on the processing status information, multiple raw data are sent to the corresponding processing units.

[0073] Specifically, the processing status information is used to describe the processing status of the processing unit, such as whether it is idle, whether it is busy, the amount of raw data to be processed, etc.

[0074] It should be noted that there are multiple ways to obtain the processing status information of multiple processing units, and the specific method should be selected according to the actual situation. This specification does not impose any limitations on these methods in the embodiments. In one possible implementation, the processing logs of the processing units can be parsed to obtain the processing status information of multiple processing units. In another possible implementation, a processing status information acquisition instruction can be sent to the processing units, and the processing status information sent by the processing units in response to the acquisition instruction can be received.

[0075] Furthermore, after obtaining the processing status information of multiple processing units, the processing units can be sorted according to their processing status from idle to busy, and the raw data can be preferentially distributed to the idle processing units.

[0076] By applying the scheme of the embodiments in this specification, when there are multiple processing units, the processing status information of each processing unit is obtained; based on the processing status information, multiple raw data are sent to the corresponding processing units. By considering the processing status information of multiple processing units, load balancing among the multiple processing units is achieved.

[0077] In one optional embodiment of this specification, after obtaining the data to be transmitted as described above, the following steps may also be included:

[0078] Obtain the order-keeping status information of the data to be transmitted;

[0079] If the order preservation status information indicates that the order preservation status of the data to be transmitted is invalid, the transmission of the data to be transmitted shall be stopped.

[0080] Specifically, the order status information can be called the order-preserving message indication (order_v ld), which is used to mark the order and validity of the data to be transmitted. There are multiple ways to obtain the order status information of the data to be transmitted; the specific method chosen depends on the actual situation, and this specification does not limit this approach. One possible implementation in this specification is that the data to be transmitted also carries order status information, which can be obtained directly. Another possible implementation in this specification is that the order status information of the data to be transmitted can be received from the user.

[0081] It should be noted that if the order-keeping status information indicates that the order-keeping status of the data to be transmitted is valid, it means that the data to be transmitted is ordered data, that is, data that is transmitted in sequence. In this case, the data type of the data to be transmitted can be determined based on the data transmission identifier and the type reference identifier stored in the data order queue. If the order-keeping status information indicates that the order-keeping status of the data to be transmitted is invalid, it means that the data to be transmitted is non-order data, that is, data that is not transmitted in sequence. In this case, it can be determined that the data to be transmitted is invalid data, and the data to be transmitted should be discarded and the transmission of the data to be transmitted should be stopped.

[0082] By applying the scheme of the embodiments in this specification, the order preservation status information of the data to be transmitted is obtained; if the order preservation status information indicates that the order preservation status of the data to be transmitted is invalid, the transmission of the data to be transmitted is stopped. By identifying illegal data, the transmission of illegal data is avoided, thereby improving the accuracy of data transmission.

[0083] Step 204: Determine the data type of the data to be transmitted based on the data transmission identifier and the type reference identifier stored in the data ordering queue. The data ordering queue includes multiple storage units that correspond one-to-one with the original data. The storage units are used to store the data identifier and time information of the original data. The multiple storage units are arranged in order based on the time information. The type reference identifier is selected from the data identifier based on the time information.

[0084] In one or more embodiments of this specification, after obtaining the data to be transmitted, the data type of the data to be transmitted can be further determined according to the data transmission identifier and the type reference identifier stored in the data ordering queue. The data to be transmitted is the data processed by the processing unit among multiple original data, and the data to be transmitted carries the data transmission identifier.

[0085] Specifically, the type reference identifier is used to determine the data type of the data to be transmitted. Data types include timeout data types and non-timeout data types. If the data type of the data to be transmitted is a timeout data type, it means the data is out of order and cannot be transmitted in order. If the data type of the data to be transmitted is a non-timeout data type, it means the data is normal and does not exceed the data transmission order range, and can still be transmitted in order.

[0086] In one optional embodiment of this specification, before determining the data type of the data to be transmitted based on the data transmission identifier and the type reference identifier stored in the data ordering queue, the type reference identifier can be obtained first. Before determining the data type of the data to be transmitted based on the data transmission identifier and the type reference identifier stored in the data ordering queue, the following steps may also be included:

[0087] Based on the time information, identify the first and second storage units in the data order preservation queue, wherein the first storage unit is located at the head of the data order preservation queue and the second storage unit is located at the tail of the data order preservation queue.

[0088] The data identifiers stored in the first storage unit and the data identifiers stored in the second storage unit are determined as type reference identifiers.

[0089] It should be noted that since the multiple storage units in the data ordering queue are arranged sequentially based on time information, the storage unit at the tail of the data ordering queue stores the earliest data identifier written to the queue, and the storage unit at the head of the queue stores the latest data identifier written to the queue. The data identifier stored in the first storage unit is a first-type reference identifier, and the data identifier stored in the second storage unit is a second-type reference identifier. The first-type reference identifier corresponds to the head pointer, and the second-type reference identifier corresponds to the tail pointer. The head pointer points to the data identifier and time information of the latest written original data in the data ordering queue, and the tail pointer points to the data identifier and time information of the earliest written original data in the data ordering queue, linked by the head and tail pointers.

[0090] The scheme implemented in this specification identifies a first storage unit and a second storage unit in a data ordering queue based on time information. The first storage unit is located at the head of the data ordering queue, and the second storage unit is located at the tail of the data ordering queue. The data identifiers stored in the first and second storage units are determined as type reference identifiers. By determining the type reference identifier based on the position of the storage unit in the data ordering queue, the accuracy of the type reference identifier is ensured.

[0091] In one optional embodiment of this specification, after determining the data identifier stored in the first storage unit and the data identifier stored in the second storage unit as the type reference identifier, the following steps may be further included:

[0092] Get the current time information;

[0093] Calculate the time difference based on the time information stored in the first storage unit and the current time information;

[0094] If the time difference is greater than the preset time difference, the first storage unit is removed from the data ordering queue, and the process returns to the step of identifying the first and second storage units in the data ordering queue to obtain the updated type reference identifier.

[0095] Specifically, the current time information refers to the current time information of the data transmission system, such as the current system timestamp. The time difference refers to the difference between the time represented by the time information stored in the first storage unit and the time represented by the current time information. The preset time difference is set according to the actual situation, and this specification does not limit it in any way.

[0096] In practical applications, there are multiple ways to obtain current time information, and the specific method chosen depends on the actual situation. This specification does not impose any limitations on these methods in its embodiments. One possible implementation of this specification involves using a time call function (such as the `time` function) to obtain the current time information. Another possible implementation involves using a structured query language to retrieve the current time information from a database.

[0097] It should be noted that if the time difference is less than or equal to the preset time difference, it means that the original data corresponding to the first storage unit is not data that has timed out and not returned. There is no need to pop the first storage unit from the order-keeping queue. As the original data is written to the data order-keeping queue, the first and second storage units in the data order-keeping queue can be identified in real time. If the time difference is greater than the preset time difference, it means that the original data corresponding to the first storage unit has not yet been returned from the processing unit and is data that has timed out and not returned. Therefore, the first storage unit can be popped from the order-keeping data queue and the type reference identifier can be updated.

[0098] The scheme described in this specification involves obtaining current time information; calculating the time difference based on the time information stored in the first storage unit and the current time information; and deleting the first storage unit from the data ordering queue if the time difference is greater than a preset time difference, then returning to the step of identifying the first and second storage units in the data ordering queue to obtain an updated type reference identifier. By using a preset time difference to update the data ordering queue in real time, the accuracy of the type reference identifier is ensured, achieving stable and complete data transmission.

[0099] In practical applications, the type reference identifier includes a first type reference identifier and a second type reference identifier. There are multiple ways to determine the data type of the data to be transmitted based on the data transmission identifier and the type reference identifier stored in the data ordering queue. The specific method should be selected according to the actual situation. This specification does not limit the specific methods used in this embodiment.

[0100] In one possible implementation of this specification, the time information corresponding to the first type reference identifier and the second type reference identifier can be obtained respectively; a time range can be determined based on the time information corresponding to the first type reference identifier and the second type reference identifier respectively; the time information of the data to be transmitted can be determined based on the data transmission identifier; and the data type of the data to be transmitted can be determined based on the time information and the time range of the data to be transmitted. If the time information of the data to be transmitted is not within the time range, the data type of the data to be transmitted is determined to be a timeout data type.

[0101] In another possible implementation of this specification, the type reference identifier includes a first type reference identifier and a second type reference identifier; determining the data type of the data to be transmitted based on the data transmission identifier and the type reference identifier stored in the data ordering queue may include the following steps:

[0102] The range of type reference identifiers is determined based on the first type reference identifier and the second type reference identifier stored in the data ordering queue;

[0103] The data type of the data to be transmitted is determined based on the data transmission identifier and the type reference identifier range.

[0104] It should be noted that since the multiple storage units in the data ordering queue are arranged in order based on time information, the storage units store the data identifiers of the original data. The type reference identifier range refers to the set consisting of the first type reference identifier, the second type reference identifier, and the data identifiers between the first type reference identifier and the second type reference identifier.

[0105] It should be noted that when determining the range of type reference identifiers based on the first type reference identifier and the second type reference identifier stored in the data ordering queue, the first type reference identifier, the second type reference identifier, and the data identifiers between the first type reference identifier and the second type reference identifier can be extracted, and all extracted identifiers can be integrated into a set, which is the range of type reference identifiers.

[0106] In practical applications, when determining the data type of the data to be transmitted based on the data transmission identifier and the type reference identifier range, it can be determined whether the data transmission identifier is within the type reference identifier range, and the data type of the data to be transmitted can be determined based on the determination result.

[0107] The scheme implemented in this specification determines the range of type reference identifiers based on the first and second type reference identifiers stored in the data ordering queue; and determines the data type of the data to be transmitted based on the data transmission identifier and the range of type reference identifiers. By automatically identifying the data type of the data to be transmitted, timeout data can be accurately identified, thereby enabling the transmission of timeout data, avoiding packet loss, and ensuring the stability and integrity of data transmission.

[0108] In one optional embodiment of this specification, determining the data type of the data to be transmitted based on the data transmission identifier and the type reference identifier range may include the following steps:

[0109] If the data transmission identifier is not within the range of the type reference identifier, the data type of the data to be transmitted is determined to be a timeout data type.

[0110] It should be noted that if the data transmission identifier is within the range of the type reference identifier, it means that the data to be transmitted has been returned normally from the processing unit, the data to be transmitted is non-timeout data, and the data type of the data to be transmitted is a non-timeout data type; if the data transmission identifier is not within the range of the type reference identifier, it means that the data to be transmitted has not been returned from the processing unit on time, it is timeout data, and the data type of the data to be transmitted is a timeout data type.

[0111] By applying the scheme of the embodiments in this specification, when the data transmission identifier is not within the range of the type reference identifier, the data type of the data to be transmitted is determined to be a timeout data type. By accurately determining the data type of the data to be transmitted using the type reference representation range, timeout data type data can be transmitted, avoiding packet loss issues and ensuring the stability and integrity of data transmission.

[0112] In one optional embodiment of this specification, since the programmable component has the characteristics of programmability, high performance, and flexibility, it can be invoked to determine the data type. That is, determining the data type of the data to be transmitted based on the data transmission identifier and the type reference identifier stored in the data ordering queue can include the following steps:

[0113] The programmable component is invoked to determine the data type of the data to be transmitted based on the data transmission identifier and the type reference identifier stored in the data ordering queue.

[0114] When the data type is a timeout data type, transmitting the data to be transmitted according to the current transmission order of the data to be transmitted may include the following steps:

[0115] It receives the data type sent by the programmable component, and if the data type is a timeout data type, it transmits the data to be transmitted according to the current transmission order of the data to be transmitted.

[0116] In practical applications, there are multiple ways to call programmable components to determine data types. The specific method should be selected according to the actual situation. This specification does not limit the specific methods used in this embodiment.

[0117] In one possible implementation of this specification, the network interface card (NIC) can send a type identification command to the programmable component. This command carries a data transmission identifier of the data to be transmitted and a type reference identifier stored in the data ordering queue. After receiving the data transmission identifier and the type reference identifier, the programmable component can determine the data type of the data to be transmitted based on these identifiers. Furthermore, the programmable component can send the data type of the data to be transmitted to the NIC, which, if the data type is a timeout data type, will transmit the data according to its current transmission order.

[0118] In another possible implementation of this specification, the network interface card (NIC) can send a programmable component invocation instruction to the processing unit. In response to the instruction, the processing unit sends a data transmission identifier of the data to be transmitted and a type reference identifier stored in the data ordering queue to the programmable component. Upon receiving these two identifiers, the programmable component can determine the data type of the data to be transmitted based on them. Furthermore, the programmable component can send the data type of the data to be transmitted to the NIC, which, if the data type is a timeout data type, will transmit the data according to its current transmission order.

[0119] In practical applications, programmable components can also be invoked to determine whether the order status of the data to be transmitted is invalid based on the order status information of the data to be transmitted.

[0120] The scheme described in this specification involves invoking a programmable component to determine the data type of the data to be transmitted based on the data transmission identifier and the type reference identifier stored in the data ordering queue. It then receives the data type sent by the programmable component and, if the data type is a timeout data type, transmits the data according to its current transmission order. By combining the programmability, high performance, and flexibility of the programmable component, the "elephant flow" risk in traditional solutions can be resolved, while providing higher assurance regarding hardware entry specifications and evolution.

[0121] Step 206: If the data type is a timeout data type, transmit the data to be transmitted according to the current transmission order of the data to be transmitted.

[0122] In one or more embodiments of this specification, data to be transmitted is obtained, wherein the data to be transmitted is data processed by a processing unit from multiple original data, and the data to be transmitted carries a data transmission identifier; after determining the data type of the data to be transmitted based on the data transmission identifier and the type reference identifier stored in the data ordering queue, further, in the case of a timeout data type, the data to be transmitted can be transmitted according to the current transmission order of the data to be transmitted, wherein the data ordering queue includes multiple storage units corresponding one-to-one with the original data, the storage units are used to store the data identifier and time information of the original data, the multiple storage units are arranged in order based on the time information, and the type reference identifier is obtained by filtering from the data identifier based on the time information.

[0123] Specifically, the current transmission order refers to the out-of-order transmission order obtained by inserting the data to be transmitted into the ordered order of the original data.

[0124] It should be noted that when the data type is a non-timeout data type, it means that the data transmission order maintains the original data's pre-order sequence. Therefore, the data to be transmitted can be transmitted according to its pre-order sequence, resolving the data out-of-order problem when different CPUs have different processing delays. When the data type is a timeout data type, it means that the data to be transmitted has disrupted the original data's pre-order sequence. In this case, the data to be transmitted can be transmitted according to its current transmission order, resolving the packet loss problem that may occur when the network card's pre-order sequence capability is insufficient.

[0125] The solution implemented in this specification includes multiple storage units that correspond one-to-one with the original data in the data ordering queue. These storage units store the data identifiers and time information of the original data. The multiple storage units are arranged sequentially based on the time information. The type reference identifier is selected from the data identifiers based on the time information. By utilizing the data transmission identifier and the type reference identifier stored in the data ordering queue, the data type of the data to be transmitted can be automatically identified. Thus, even when the processing unit has significant latency jitter, the data of the timed-out data type to be transmitted can be accurately determined and transmitted, ensuring the stability and integrity of data transmission.

[0126] See Figure 4 , Figure 4 This specification illustrates an architecture diagram of another data transmission system provided in one embodiment. The data transmission system includes a network interface card (NIC) and a host. The NIC includes a data receiving unit, a data distribution unit, a data ordering unit, a timeout detection unit, and a data sending unit. The data distribution unit and the data ordering unit can achieve load balancing of the processing units. The host includes multiple processing units (processing unit 0, processing unit 1, processing unit 2, and processing unit 3).

[0127] Data receiving unit: Receives multiple raw data sets, each of which carries a data identifier;

[0128] Data distribution unit: Distributes the raw data received from the network port among multiple processing units at a packet-by-packet granularity;

[0129] Data ordering unit: Records the data identifier and time information when the raw data is distributed to the processing unit, and sends the data identifier and ordering status information (whether it is an ordered message) to the processing unit. After processing the raw data, the processing unit sends the data to be transmitted (the raw data processed by the processing unit) along with the data identifier and ordering status information to the programmable component. Simultaneously, the data ordering unit can establish a local data ordering queue to store the data identifier and time information.

[0130] Timeout Detection Unit: This unit detects whether the data to be transmitted has exceeded the maximum time limit for maintaining order, i.e., whether the data type of the data to be transmitted is a timeout data type. Specifically, it maintains a head pointer for the earliest and latest written raw data in the data ordering queue, with the head pointer pointing to the latest written raw data and the tail pointer pointing to the earliest written raw data. Each storage unit in the data ordering queue maintains time information, which can be monitored in real time. If the time information exceeds a preset time difference compared to the current time information, it is considered that the raw data corresponding to that storage unit has timed out and has not been returned. The storage unit is then popped from the data ordering queue, and the head pointer is updated. The timeout detection unit can also determine whether the ordering status of the data to be transmitted is invalid based on the ordering status information of the data to be transmitted. If the ordering status of the data to be transmitted is invalid, the data to be transmitted is determined to be illegal data and is discarded.

[0131] Data transmission unit: When the data type is a non-timeout data type, the data to be transmitted is transmitted in the order it is in before transmission; when the data type is a timeout data type, the data to be transmitted is transmitted out of order according to the current transmission order, ensuring that no packets are lost.

[0132] Applying the solutions described in the embodiments of this specification, this specification proposes a data order preservation timeout prevention scheme between the network card and the host CPU. It designs a data order preservation timeout mechanism, a timeout identification mechanism, and an illegal data identification mechanism. Using the above mechanisms, under the conditions of limited network card cache capacity, large CPU latency jitter, and loss of order preservation information, it actively identifies the data to be transmitted that has timed out and transmits the data to be transmitted in an out-of-order manner, so as to ensure no packet loss, lossless project operation, and the stability and integrity of data transmission.

[0133] Corresponding to the above method embodiments, this specification also provides embodiments of data transmission devices. Figure 5 A schematic diagram of a data transmission apparatus according to one embodiment of this specification is shown. Figure 5 As shown, the device includes:

[0134] The acquisition module 502 is configured to acquire data to be transmitted, wherein the data to be transmitted is data processed by the processing unit from multiple raw data, and the data to be transmitted carries a data transmission identifier;

[0135] The determination module 504 is configured to determine the data type of the data to be transmitted based on the data transmission identifier and the type reference identifier stored in the data ordering queue. The data ordering queue includes multiple storage units that correspond one-to-one with the original data. The storage units are used to store the data identifier and time information of the original data. The multiple storage units are arranged in order based on the time information. The type reference identifier is obtained by filtering the data identifier based on the time information.

[0136] The transmission module 506 is configured to transmit the data to be transmitted according to the current transmission order of the data to be transmitted when the data type is a timeout data type.

[0137] Optionally, the determining module 504 is further configured to invoke the programmable component to determine the data type of the data to be transmitted based on the data transmission identifier and the type reference identifier stored in the data ordering queue; the transmitting module 506 is further configured to receive the data type sent by the programmable component, and, if the data type is a timeout data type, to transmit the data to be transmitted according to the current transmission order of the data to be transmitted.

[0138] Optionally, the device further includes: an identification module configured to identify a first storage unit and a second storage unit in a data ordering queue based on time information, wherein the first storage unit is located at the head of the data ordering queue and the second storage unit is located at the tail of the data ordering queue; and to determine the data identifier stored in the first storage unit and the data identifier stored in the second storage unit as a type reference identifier.

[0139] Optionally, the device further includes: a deletion module configured to acquire current time information; calculate a time difference based on the time information stored in the first storage unit and the current time information; if the time difference is greater than a preset time difference, delete the first storage unit from the data ordering queue, and return to the step of identifying the first and second storage units in the data ordering queue to obtain an updated type reference identifier.

[0140] Optionally, the type reference identifier includes a first type reference identifier and a second type reference identifier; the determining module 504 is further configured to determine a range of type reference identifiers based on the first type reference identifier and the second type reference identifier stored in the data ordering queue; and to determine the data type of the data to be transmitted based on the data transmission identifier and the range of type reference identifiers.

[0141] Optionally, the determining module 504 is further configured to determine that the data type of the data to be transmitted is a timeout data type if the data transmission identifier is not within the range of the type reference identifier.

[0142] Optionally, the device further includes: a construction module configured to acquire multiple raw data, wherein the raw data carries a data identifier; send the multiple raw data to the processing unit and determine the time information of the transmission of the multiple raw data respectively; and construct a data order-preserving queue based on the data identifier and time information of the multiple raw data.

[0143] Optionally, the building module is further configured to, when there are multiple processing units, acquire the processing status information of each of the multiple processing units; and, based on the processing status information, send multiple raw data to the corresponding processing units respectively.

[0144] Optionally, the device further includes: a stop module configured to acquire the sequence status information of the data to be transmitted; and to stop transmitting the data if the sequence status information indicates that the sequence status of the data to be transmitted is invalid.

[0145] The solution implemented in this specification includes multiple storage units that correspond one-to-one with the original data in the data ordering queue. These storage units store the data identifiers and time information of the original data. The multiple storage units are arranged sequentially based on the time information. The type reference identifier is selected from the data identifiers based on the time information. By utilizing the data transmission identifier and the type reference identifier stored in the data ordering queue, the data type of the data to be transmitted can be automatically identified. Thus, even when the processing unit has significant latency jitter, the data of the timed-out data type to be transmitted can be accurately determined and transmitted, ensuring the stability and integrity of data transmission.

[0146] The above is an illustrative scheme of a data transmission device according to this embodiment. It should be noted that the technical solution of this data transmission device and the technical solution of the data transmission method described above belong to the same concept. For details not described in detail in the technical solution of the data transmission device, please refer to the description of the technical solution of the data transmission method described above.

[0147] Figure 6 A structural block diagram of a computing device according to one embodiment of this specification is shown. The components of the computing device 600 include, but are not limited to, a memory 610 and a processor 620. The processor 620 is connected to the memory 610 via a bus 630, and a database 650 is used to store data.

[0148] The computing device 600 also includes an access device 640, which enables the computing device 600 to communicate via one or more networks 660. Examples of such networks include a Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the Internet. Access device 640 may include one or more of any type of wired or wireless network interface (e.g., a network interface card (NIC)), such as an IEEE 802.11 wireless local area network (WLAN) interface, a Wi-MAX (World Interoperability for Microwave Access) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, a Near Field Communication (NFC) interface, and so on.

[0149] In one embodiment of this specification, the above-described components of the computing device 600 and Figure 6 Other components, not shown, can also be connected to each other, for example, via a bus. It should be understood that... Figure 6 The block diagram of the computing device shown is for illustrative purposes only and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0150] The computing device 600 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or personal computers (PCs). The computing device 600 can also be a mobile or stationary server.

[0151] The processor 620 is used to execute computer programs / instructions, which, when executed by the processor, implement the steps of the above-described data transmission method.

[0152] The above is an illustrative scheme of a computing device according to this embodiment. It should be noted that the technical solution of this computing device and the technical solution of the above-described data transmission method belong to the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the above-described data transmission method.

[0153] An embodiment of this specification also provides a computer-readable storage medium storing a computer program / instructions that, when executed by a processor, implement the steps of the above-described data transmission method.

[0154] The above is an illustrative scheme of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium and the technical solution of the above-described data transmission method belong to the same concept, and all details not described in detail in the technical solution of the storage medium can be found in the description of the technical solution of the above-described data transmission method.

[0155] An embodiment of this specification also provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the steps of the above-described data transmission method.

[0156] The above is an illustrative scheme of a computer program product according to this embodiment. It should be noted that the technical solution of this computer program product and the technical solution of the above-described data transmission method belong to the same concept. For details not described in detail in the technical solution of the computer program product, please refer to the description of the technical solution of the above-described data transmission method.

[0157] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.

[0158] The computer instructions include computer program code, which may be in the form of source code, object code, executable file, or certain intermediate forms. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium may be appropriately added or removed according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media may not include electrical carrier signals and telecommunication signals.

[0159] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments in this specification are not limited to the described order of actions, because according to the embodiments in this specification, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the embodiments in this specification.

[0160] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0161] The preferred embodiments disclosed above are merely illustrative of this specification. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the embodiments described herein. These embodiments are selected and specifically described in this specification to better explain the principles and practical applications of the embodiments, thereby enabling those skilled in the art to better understand and utilize this specification. This specification is limited only by the claims and their full scope and equivalents.

Claims

1. A data transmission method, comprising: Acquire data to be transmitted, wherein the data to be transmitted is data processed by the processing unit from multiple original data, and the data to be transmitted carries a data transmission identifier; The data type of the data to be transmitted is determined based on the data transmission identifier and the type reference identifier stored in the data ordering queue. The data ordering queue includes multiple storage units corresponding one-to-one with the original data. Each storage unit stores the data identifier and time information of the original data. The multiple storage units are arranged sequentially based on the time information. The type reference identifier is obtained by filtering the data identifiers based on the time information. The type reference identifier includes a first type reference identifier and a second type reference identifier. Determining the data type of the data to be transmitted based on the data transmission identifier and the type reference identifier stored in the data ordering queue includes: determining a range of type reference identifiers based on the first and second type reference identifiers stored in the data ordering queue; determining the data type of the data to be transmitted based on the data transmission identifier and the range of type reference identifiers; and determining the data type of the data to be transmitted as a timeout data type if the data transmission identifier is not within the range of type reference identifiers. If the data type is a timeout data type, the data to be transmitted is transmitted according to the current transmission order of the data to be transmitted.

2. The data transmission method according to claim 1, wherein determining the data type of the data to be transmitted based on the data transmission identifier and the type reference identifier stored in the data ordering queue includes: The programmable component is invoked to determine the data type of the data to be transmitted based on the data transmission identifier and the type reference identifier stored in the data ordering queue. In the case where the data type is a timeout data type, transmitting the data to be transmitted according to the current transmission order of the data to be transmitted includes: The system receives the data type sent by the programmable component, and if the data type is a timeout data type, it transmits the data to be transmitted according to the current transmission order of the data to be transmitted.

3. The data transmission method according to claim 1, before determining the data type of the data to be transmitted based on the data transmission identifier and the type reference identifier stored in the data ordering queue, further comprising: Based on the time information, identify the first storage unit and the second storage unit in the data order preservation queue, wherein the first storage unit is located at the head of the data order preservation queue and the second storage unit is located at the tail of the data order preservation queue; The data identifiers stored in the first storage unit and the data identifiers stored in the second storage unit are determined as the type reference identifiers.

4. The data transmission method according to claim 3, after determining the data identifier stored in the first storage unit and the data identifier stored in the second storage unit as the type reference identifier, further includes: Get the current time information; Calculate the time difference based on the time information stored in the first storage unit and the current time information; If the time difference is greater than a preset time difference, the first storage unit is deleted from the data ordering queue, and the process returns to the step of identifying the first and second storage units in the data ordering queue to obtain an updated type reference identifier.

5. The data transmission method according to claim 1, further comprising, before acquiring the data to be transmitted: Acquire multiple raw data sets, wherein the raw data sets carry data identifiers; The plurality of raw data are sent to the processing unit, and the time information of the sending of the plurality of raw data is determined respectively; A data order-preserving queue is constructed based on the data identifiers of the multiple original data and the time information.

6. The data transmission method according to claim 5, wherein sending the plurality of raw data to the processing unit comprises: When there are multiple processing units, the processing status information of each of the multiple processing units is obtained respectively; Based on the processing status information, the multiple raw data are sent to the corresponding processing units.

7. The data transmission method according to claim 1, further comprising, after acquiring the data to be transmitted: Obtain the order-keeping status information of the data to be transmitted; If the order preservation status information indicates that the order preservation status of the data to be transmitted is invalid, the transmission of the data to be transmitted shall be stopped.

8. A data transmission system, comprising a network interface card (NIC) and a processing unit; The processing unit is used to process multiple raw data; The network interface card (NIC) is used to acquire the data to be transmitted, wherein... The data to be transmitted is the data processed by the processing unit from multiple raw data, and the data to be transmitted carries a data transmission identifier; The data type of the data to be transmitted is determined based on the data transmission identifier and the type reference identifier stored in the data ordering queue. The data ordering queue includes multiple storage units corresponding one-to-one with the original data. Each storage unit stores the data identifier and time information of the original data. The multiple storage units are arranged sequentially based on the time information. The type reference identifier is obtained by filtering the data identifiers based on the time information. The type reference identifier includes a first type reference identifier and a second type reference identifier. Determining the data type of the data to be transmitted based on the data transmission identifier and the type reference identifier stored in the data ordering queue includes: determining a range of type reference identifiers based on the first and second type reference identifiers stored in the data ordering queue; determining the data type of the data to be transmitted based on the data transmission identifier and the range of type reference identifiers; if the data transmission identifier is not within the range of type reference identifiers, determining the data type of the data to be transmitted as a timeout data type; and if the data type is a timeout data type, transmitting the data to be transmitted according to the current transmission order of the data to be transmitted.

9. A data transmission apparatus, comprising: The acquisition module is configured to acquire data to be transmitted, wherein the data to be transmitted is data processed by the processing unit from multiple raw data, and the data to be transmitted carries a data transmission identifier; The determining module is configured to determine the data type of the data to be transmitted based on the data transmission identifier and the type reference identifier stored in the data ordering queue. The data ordering queue includes multiple storage units corresponding one-to-one with the original data. Each storage unit stores the data identifier and time information of the original data. The multiple storage units are arranged sequentially based on the time information. The type reference identifier is obtained by filtering the data identifiers based on the time information. The type reference identifier includes a first type reference identifier and a second type reference identifier. Determining the data type of the data to be transmitted based on the data transmission identifier and the type reference identifier stored in the data ordering queue includes: determining a range of type reference identifiers based on the first and second type reference identifiers stored in the data ordering queue; determining the data type of the data to be transmitted based on the data transmission identifier and the range of type reference identifiers; and determining the data type of the data to be transmitted as a timeout data type if the data transmission identifier is not within the range of type reference identifiers. The transmission module is configured to transmit the data to be transmitted according to the current transmission order of the data to be transmitted when the data type is a timeout data type.

10. A computing device, comprising: Memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions, which, when executed by the processor, implement the steps of the data transmission method according to any one of claims 1 to 7.

11. A computer-readable storage medium storing a computer program / instructions that, when executed by a processor, implement the steps of the data transmission method according to any one of claims 1 to 7.

12. A computer program product comprising a computer program / instructions that, when executed by a processor, implement the steps of the data transmission method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Cloud gateway, method for network adapter and network adapter

    CN116633726A