Data transmission method, computer equipment and medium
By using the identification parsing and recycling mechanism in data transmission, the problems of out-of-order transmission and excessive cache usage in multi-node data transmission are solved, and the data transmission performance and adaptability are improved.
Patent Information
- Application Number
- CN202410790854.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-19
AI Technical Summary
In a multi-node, multi-channel data transmission scenario, the existing technology reserves a large cache to cache feedback data packets, which results in excessive cache space usage and difficulty in adapting to out-of-order transmission and unpredictable processing and link delays. .
By adding the identifier to the transmission request at the sending end, parsing the identifier when the receiving end returns the packet, and writing the cache address to the address information cache, dynamic allocation of the cache is achieved, the return packet cache is reduced, and a recycling and recycling mechanism of the identifier is established, which is suitable for Out-of-order transmission.
Effectively identify the return packet address, reduce cache occupation, improve data transmission performance, solve out-of-order transmission and network congestion problems, and adapt to the feedback of large-scale data traffic.
Smart Images

Figure CN118368293B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data transmission method, computer equipment and medium. Background Art
[0002] With the development of technologies such as high-speed data transmission, data centers, and cloud computing, it is often necessary to transmit large-scale data traffic from one node to another, and part or even all of the transmitted data traffic may need to be fed back, that is, after the first node transmits data traffic to the second node, the second node needs to provide feedback data to the first node. Therefore, in complex application scenarios involving multiple nodes, multiple channels, and multiple data services, it is necessary to consider the situation of out-of-order transmission. For example, due to factors such as link delay and processing delay, the sent data packets and the feedback data packets are not one-to-one corresponding. In the prior art, a large cache is reserved to cache all feedback data packets, but this results in a large amount of cache space being occupied, which is not conducive to application promotion.
[0003] To this end, the present application provides a data transmission method, a computer device and a medium for addressing the technical difficulties in the prior art. Summary of the invention
[0004] In the first aspect, the present application provides a data transmission method. The data transmission method includes: adding a first identifier to a first transmission request through a first request processing unit of a first transmitting end, wherein the first transmission request is transmitted to a first receiving end and requires the first receiving end to return a first return packet corresponding to the first transmission request, and the first identifier comes from an identifier resource pool; transmitting the first transmission request through the first request processing unit, writing a first cache address to an address information cache, and writing the first identifier to a transmission identifier cache, wherein the first cache address is the address of the first return packet in a first data cache of the first transmitting end; receiving at least one return packet from the first receiving end through a first reordering unit of the first transmitting end, parsing the at least one return packet to determine the identifier of the transmission request corresponding to the at least one return packet, obtaining the cache address of the at least one return packet from the address information cache according to the identifier of the transmission request corresponding to the at least one return packet, and writing the at least one return packet to the first data cache according to the cache address of the at least one return packet.
[0005] Through the first aspect of the present application, it can be applied to technical fields such as high-speed data transmission, data centers, and cloud computing. It can deal with the problem of out-of-order transmission in applications such as data transmission of multiple nodes, multiple channels, and multiple data services. It can deal with the inconsistency between the order of transmission requests that require feedback sent from the sending end and the order of return packets sent from the receiving end. It can flexibly adapt to the situation where part or all of the feedback is required in large-scale data traffic, and it can also flexibly adapt to unpredictable processing delays and link delays. In the presence of out-of-order transmission, it can effectively identify the address of the return packet and store the return packet in the corresponding area, establish a recycling and recovery mechanism for the identifier, which is conducive to realizing dynamic allocation of cache, reducing return packet cache, making request bursts unrestricted, and improving transmission performance.
[0006] In a possible implementation of the first aspect of the present application, the at least one return packet includes the first return packet, and the first reordering unit of the first sending end, in response to receiving the first return packet, parses the first return packet to determine the first identifier, obtains the first cache address from the address information cache according to the first identifier, writes the first return packet to the first data cache according to the first cache address, and writes the first identifier to the identifier resource pool.
[0007] In a possible implementation manner of the first aspect of the present application, the first request processing unit is used to: after adding the first identifier to the first transmission request, remove the first identifier from the identifier resource pool.
[0008] In a possible implementation manner of the first aspect of the present application, the first reordering unit is used to: write the identifier of the transmission request corresponding to the at least one return packet into the identifier resource pool.
[0009] In a possible implementation of the first aspect of the present application, the first reordering unit is used to: after writing the at least one return packet to the first data cache, mark the identifier of the transmission request corresponding to the at least one return packet in the sending identification cache as returned.
[0010] In a possible implementation of the first aspect of the present application, the first reordering unit is also used to: determine whether each identifier in the sending identifier cache is marked as returned in a polling manner, and, based on at least one identifier marked as returned in the sending identifier cache, obtain a cache address corresponding to the at least one identifier from the address information cache, and then read data from the first data cache according to the cache address corresponding to the at least one identifier.
[0011] In a possible implementation of the first aspect of the present application, the first reordering unit is also used to: after reading data from the first data cache according to the cache address corresponding to the at least one identifier, write the at least one identifier to the identifier resource pool and remove the at least one identifier from the sending identifier cache.
[0012] In a possible implementation of the first aspect of the present application, the first request processing unit sends transmission requests corresponding to multiple identifiers in a first identifier order and writes the multiple identifiers to the sending identifier cache, and the first reordering unit reads data corresponding to the multiple identifiers from the first data cache in a second identifier order, and the first identifier order is the same as the second identifier order.
[0013] In a possible implementation manner of the first aspect of the present application, the first transmission request is a read request, the read request includes a read request address and a read request data length, and the first cache address is calculated based on the read request data length.
[0014] In a possible implementation manner of the first aspect of the present application, the identifiers in the identifier resource pool are sorted from small to large after the identifier resource pool is initialized, and the identifiers written into the sending identifier cache are sorted from small to large.
[0015] In a possible implementation of the first aspect of the present application, the number of identifiers in the identification resource pool after the identification resource pool is initialized is determined based on the link delay, and the number of identifiers in the identification resource pool after the identification resource pool is initialized limits the number of flight data, and the number of flight data is adjustable.
[0016] In a possible implementation manner of the first aspect of the present application, the identification resource pool and the sending identification buffer are both first-in-first-out memories.
[0017] In a possible implementation manner of the first aspect of the present application, the first data cache is a random access memory, and the identifier in the sending identifier cache is used as an index of the address information cache.
[0018] In a possible implementation manner of the first aspect of the present application, the capacity of the first data cache is determined based on the number of identifiers in the identifier resource pool after the identifier resource pool is initialized and the link delay.
[0019] In a possible implementation of the first aspect of the present application, the data transmission method also includes: when the first transmission request belongs to a data service with order preservation requirements and the second transmission request is the previous transmission request in the data service relative to the first transmission request, through the first request processing unit, after determining that the identification resource pool includes an identifier for the second transmission request, the first transmission request is transmitted.
[0020] In a possible implementation of the first aspect of the present application, the data transmission method is used for multiple senders to transmit data to at least one receiving end, the multiple senders share the identification resource pool, the sending identification cache and the address information cache, and the first sender is any one of the multiple senders.
[0021] In a possible implementation of the first aspect of the present application, the multiple sending ends include a second sending end, the second sending end includes a second request processing unit, a second reordering unit and a second data cache, and the second sending end is used to transmit data to the first receiving end.
[0022] In a possible implementation of the first aspect of the present application, the first transmitting end is used to transmit a third transmission request that does not require feedback to the first receiving end, and the third transmission request is a write request, and the write request includes a write request address, write request data, and write request data length.
[0023] In a second aspect, an embodiment of the present application further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements a method according to any one of the implementation modes of any of the above aspects when executing the computer program.
[0024] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on a computer device, the computer device executes a method according to any one of the implementation methods of any of the above aspects.
[0025] In a fourth aspect, an embodiment of the present application further provides a computer program product, which includes instructions stored on a computer-readable storage medium, and when the instructions are executed on a computer device, the computer device executes a method according to any one of the implementation methods of any of the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0027] Figure 1 A flowchart of a data transmission method provided in an embodiment of the present application;
[0028] Figure 2 A schematic diagram of a data transmission device at a sending end provided in an embodiment of the present application;
[0029] Figure 3 A schematic diagram of a data transmission device with multiple sending ends provided in an embodiment of the present application;
[0030] Figure 4 A schematic diagram of the structure of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] The embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0032] It should be understood that, in the description of this application, "at least one" means one or more, and "a plurality of" means two or more. In addition, unless otherwise specified, the words "first", "second", etc. are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order.
[0033] Figure 1 A flow chart of a data transmission method provided in an embodiment of the present application. Figure 1 As shown, the data transmission method includes the following steps.
[0034] Step S110: Add a first identifier to a first transmission request through a first request processing unit of a first sending end, wherein the first transmission request is transmitted to a first receiving end and requires the first receiving end to return a first return packet corresponding to the first transmission request, and the first identifier comes from an identifier resource pool.
[0035] Step S120: Transmit the first transmission request through the first request processing unit, write the first cache address to the address information cache, and write the first identifier to the sending identifier cache, wherein the first cache address is the address of the first return packet in the first data cache of the first sending end.
[0036] Step S130: Receive at least one return packet from the first receiving end through the first reordering unit of the first sending end, parse the at least one return packet to determine the identifier of the transmission request corresponding to the at least one return packet, obtain the cache address of the at least one return packet from the address information cache according to the identifier of the transmission request corresponding to the at least one return packet, and write the at least one return packet to the first data cache according to the cache address of the at least one return packet.
[0037] See also Figure 1 , Figure 1The data transmission method shown is used for data transmission from a first transmitting end to a first receiving end. For data transmission that requires feedback, the first transmitting end can also be understood as a requester, and the requester sends a transmission request for a return packet to a receiving end, that is, a first receiving end, and then, after receiving the transmission request, the receiving end returns the return packet, that is, the return data, to the requester. Therefore, for data transmission that requires feedback, that is, a transmission request for a return packet, the first transmitting end as a requester needs to obtain the cooperation of the receiving end, that is, the first receiving end, in order to obtain the required return data. In addition, for data transmission that does not require feedback, the first transmitting end directly transmits the data to the first receiving end, and feedback from the first receiving end is not required. In applications such as high-speed data transmission, data centers, and cloud computing, data transmission involving multiple nodes, multiple channels, and multiple data services is involved, such as transmitting data from one node to another, transmitting data from a server to a remote host, etc. These various data transmission scenarios require the transmission of large-scale data traffic, and part or all of the transmitted data traffic may require feedback. Considering that the processing time of the receiving end is difficult to predict, the order of the transmission requests that need feedback sent from the sending end may be inconsistent with the order of the return packets sent from the receiving end, that is, there is a situation of out-of-order transmission. In order to improve performance and solve congestion, it is necessary to support out-of-order transmission, so it is necessary to consider the situation that the order of the transmission requests that need feedback sent from the sending end is inconsistent with the order of the return packets sent from the receiving end. In addition, in actual applications, the number and proportion of transmission requests that need feedback in the data transmission from the first sending end to the first receiving end are difficult to predict and may change in real time with the evolution of time. Therefore, within a certain period of time, the transmission requests transmitted by the first sending end to the first receiving end may only be a small part of the transmission requests that need feedback (the rest are transmission requests that do not need feedback), or most of them may be transmission requests that need feedback. Therefore, it is difficult to predict the scale of out-of-order transmission in advance, that is, it is difficult to determine in advance the number of flight data, that is, the number of transmission requests that need to wait for feedback. This also means that the method of reserving cache space to cache all return packets leads to too much cache consumption. In addition, in order to improve the overall data transmission performance, for data transmission that requires feedback, under the premise of supporting out-of-order transmission, the order of the return packets after reordering is made consistent with the order of the transmission requests that require feedback, that is, the return packets are made to correspond to the requests one by one through reordering, which can improve the overall system performance. The following is a detailed description.
[0038] Continue reading Figure 1, in step S110, a first identifier is added to the first transmission request through the first request processing unit of the first transmitting end. The first transmission request is transmitted to the first receiving end and requires the first receiving end to return a first return packet corresponding to the first transmission request, and the first identifier comes from the identifier resource pool. Here, the first transmitting end and the first receiving end can correspond to internal chip transmission or external chip transmission. Therefore, the transmission medium between the first transmitting end and the first receiving end can be any suitable transmission medium, which can be wireless, wired or any suitable transmission mode, and can also adapt to any suitable transmission protocol, frequency, bandwidth, transmission rate, etc. Here, the first transmission request requires the first receiving end to return a first return packet corresponding to the first transmission request. Therefore, the first transmission request is a transmission request that requires feedback. The first transmitting end can be understood as a requester for the first transmission request. The requester sends the first transmission request that requires a return packet to the receiving end, that is, the first receiving end. Then, after receiving the first transmission request, the receiving end returns the first return packet, that is, the return data corresponding to the first transmission request, to the requester. The identification resource pool is a collection of idle identifications. When there are idle identifications in the identification resource pool, the idle identifications can be extracted from the identification resource pool and added to the first transmission request as the first identification. In this way, the first transmission request including the first identification therein is transmitted to the first receiving end, so that the subsequent feedback from the first receiving end, that is, the first return packet, can carry the first identification for subsequent processing flow.
[0039] Continue reading Figure 1In step S120, the first request processing unit transmits the first transmission request, writes the first cache address to the address information cache, and writes the first identifier to the sending identifier cache. The first cache address is the address of the first return packet in the first data cache of the first sending end. Here, the address information cache is used to store the address of the return packet corresponding to the transmitted transmission request that needs feedback in the first data cache. Therefore, whenever the first request processing unit transmits a transmission request that needs feedback, such as a first transmission request that requires the first receiving end to return the first return packet corresponding to the first transmission request, the first request processing unit calculates the cache size corresponding to the return packet of the current request when sending the request, and then calculates the address of the return packet in the first data cache, so that the address of the return packet in the first data cache can be determined by reading the address information cache later. In addition, the sending identifier cache is used to store the identifier of the transmitted transmission request that needs feedback, such as the first identifier of the first transmission request, so that the sending identifier cache can be read later to determine which transmission requests that need feedback have been sent out. In this way, the identification resource pool is used to record the idle identifier, that is, the identifier that is not currently occupied, and the sending identifier cache is used to record the identifier that has been occupied, so that a recycling and recycling mechanism for the identifier can be established. For transmission requests that require feedback, the first request processing unit obtains an idle identifier from the identifier resource pool and adds the idle identifier to the transmission request and sends it out together, and records the occupied identifier through the sending identifier cache, so that the identifier resource pool and the sending identifier cache can be used to confirm the identifier corresponding to the return packet later, thereby releasing the identifier for recycling and recovery purposes. In some embodiments, for transmission requests without return packets, the first request processing unit can be replaced by a write request, that is, the request recipient performs a write operation according to the write request. The write request may include a write request address, write request data, and a write request byte number, so that the requested recipient parses the write request and writes the write request data of the write request byte number to the corresponding write request address. In some embodiments, for a transmission request with a return packet, for example, a first transmission request requires the first receiving end to return a first return packet corresponding to the first transmission request, the first request processing unit can be replaced by a read request, that is, the request receiving party is requested to perform a read operation according to the read request and feedback the read data, and the read request may include a read request address, a read request byte number and an identifier (an idle identifier is extracted from an identifier resource pool), so that the requested receiving party parses the read request and reads the data of the read request byte number from the corresponding read request address and then returns the data and identifier. When the data and identifier are returned, because the first request processing unit has calculated the address of the return packet in the first data cache when sending the request and written the first cache address to the address information cache, the address of the return packet can be obtained by reading the address information cache and then storing the return packet in the corresponding area.
[0040] Continue reading Figure 1 In step S130, at least one return packet from the first receiving end is received through the first reordering unit of the first sending end, the at least one return packet is parsed to determine the identifier of the transmission request corresponding to the at least one return packet, the cache address of the at least one return packet is obtained from the address information cache according to the identifier of the transmission request corresponding to the at least one return packet, and the at least one return packet is written to the first data cache according to the cache address of the at least one return packet. In this way, after receiving the return packet from the first receiving end, the identifier of the transmission request corresponding to the return packet can be determined by parsing the return packet, and then the address of the return packet can be obtained by reading the address information cache and then the return packet can be stored in the corresponding area. As mentioned above, for the transmission request that needs feedback, the first request processing unit obtains the idle identifier from the identifier resource pool and adds the idle identifier to the transmission request and sends it out together, and records the occupied identifier through the sending identifier cache, so that the identifier resource pool and the sending identifier cache can be used to confirm the identifier corresponding to the return packet in the future, thereby releasing the identifier to achieve the purpose of recycling and recycling. In this way, by using the identification resource pool to record idle identifications, that is, identifications that are not currently occupied, and by using the sending identification cache to record identifications that have been occupied, a mechanism for recycling and recycling identifications can be established, and the identification resource pool and the sending identification cache can be used to confirm the identification corresponding to the return packet, thereby releasing the identification in order to achieve the purpose of recycling and recycling; when the data and the identification are returned, because the first request processing unit has calculated the address of the return packet in the first data cache when sending the request and written the first cache address to the address information cache, the address of the return packet can be obtained by reading the address information cache and then the return packet can be stored in the corresponding area; through the first reordering unit, the return packet is parsed to determine the identification of the transmission request corresponding to the return packet, and the corresponding cache address is obtained from the address information cache according to the identification and then written The return packet is sent to the first data cache, which means that the return packets can be received in any order, thereby supporting out-of-order transmission and being able to cope with the situation where the order of transmission requests requiring feedback sent from the first sending end is inconsistent with the order of return packets sent from the first receiving end; it should be understood that the recycling and recovery mechanism of the identifier is based on the identifier resource pool and the sending identifier cache, and the address of the return packet is calculated and written into the address information cache when sending the request. The identifier resource pool, the sending identifier cache and the address information cache are all accessed by the first sending end. Therefore, combined with the first request processing unit and the first reordering unit of the first sending end, these improvements are all implemented by the requesting party, such as the first sending end, and there is no need to reserve a large cache space to cache all return packets, which effectively improves data transmission performance and solves network congestion.
[0041] In conclusion, Figure 1 The data transmission method shown can be applied to technical fields such as high-speed data transmission, data centers, and cloud computing. It can deal with the problem of out-of-order transmission in applications such as data transmission of multiple nodes, multiple channels, and multiple data services. It can deal with the inconsistency between the order of transmission requests that require feedback sent from the sending end and the order of return packets sent from the receiving end. It can flexibly adapt to situations where part or all of large-scale data traffic requires feedback, and can also flexibly adapt to unpredictable processing delays and link delays. In the presence of out-of-order transmission, it can effectively identify the address of the return packet and store the return packet in the corresponding area, establish a recycling and recovery mechanism for the identifier, which is conducive to realizing dynamic allocation of cache, reducing return packet cache, making request bursts unrestricted, and improving transmission performance.
[0042] Figure 2 A schematic diagram of a data transmission device at a transmitting end provided in an embodiment of the present application. Figure 2 As shown, the first sending end 210 includes a first request processing unit 212, a first reordering unit 214, and a first data cache 216. The first sending end 210 can access the identification resource pool 202, the sending identification cache 204, and the address information cache 206. Figure 1 The data transmission method shown, Figure 2 The data transmission device of the transmitting end shown is used for data transmission from the first transmitting end 210 to the first receiving end 211. Specifically, Figure 2 The operation method of the data transmission device of the sending end shown includes: adding a first identifier to a first transmission request through a first request processing unit 212 of the first sending end 210, wherein the first transmission request is transmitted to the first receiving end 211 and requires the first receiving end 211 to return a first return packet corresponding to the first transmission request, and the first identifier comes from the identifier resource pool 202; transmitting the first transmission request through the first request processing unit 212, writing a first cache address to the address information cache 206, and writing the first identifier to the sending identifier cache 204, wherein the first cache address is the address of the first return packet in the first data cache 216 of the first sending end 210; receiving at least one return packet from the first receiving end 211 through a first reordering unit 214 of the first sending end 210, parsing the at least one return packet to determine the identifier of the transmission request corresponding to the at least one return packet, obtaining the cache address of the at least one return packet from the address information cache 206 according to the identifier of the transmission request corresponding to the at least one return packet, and writing the at least one return packet to the first data cache 216 according to the cache address of the at least one return packet.
[0043] See also Figure 2, through the first reordering unit 214, after receiving the return packet from the first receiving end 211, the identifier of the transmission request corresponding to the return packet can be determined by parsing the return packet, and then the address of the return packet can be obtained by reading the address information cache 206 and then the return packet can be stored in the corresponding area. For the transmission request that needs feedback, the first request processing unit 212 obtains the idle identifier from the identifier resource pool 202 and adds the idle identifier to the transmission request and sends it out together, and records the occupied identifier through the sending identifier cache 204, so that the identifier resource pool 202 and the sending identifier cache 204 can be used to confirm the identifier corresponding to the return packet in the future, thereby releasing the identifier to achieve the purpose of recycling and recovery. In this way, by using the identification resource pool 202 to record idle identification, that is, identification that is not currently occupied, and using the sending identification cache 204 to record identification that has been occupied, a recycling and recycling mechanism for identification can be established, and the identification resource pool 202 and the sending identification cache 204 can be used to confirm the identification corresponding to the return packet and release the identification to achieve the purpose of recycling and recycling; when the data and the identification are returned, because the first request processing unit 212 has calculated the address of the return packet in the first data cache 216 when sending the request and written the first cache address to the address information cache 206, the address of the return packet can be obtained by reading the address information cache 206 and then the return packet can be stored in the corresponding area; through the first reordering unit 214, the return packet is parsed to determine the identification of the transmission request corresponding to the return packet, and the corresponding cache address is obtained from the address information cache 206 according to the identification and then the return packet is written to the first Data cache 216, which means that the return packets can be received in any order, thus supporting out-of-order transmission, and can cope with the situation where the order of transmission requests requiring feedback sent from the first sending end 210 is inconsistent with the order of return packets sent from the first receiving end 211; it should be understood that the recycling and recycling mechanism of the identifier is based on the identifier resource pool 202 and the sending identifier cache 204, and the address of the return packet is calculated and written into the address information cache 206 when sending the request. The identifier resource pool 202, the sending identifier cache 204 and the address information cache 206 are all accessed by the first sending end 210. Therefore, combined with the first request processing unit 212 and the first reordering unit 214 of the first sending end 210, these improvements are all implemented by the requesting party, such as the first sending end 210, and there is no need to reserve a large cache space to cache all return packets, which effectively improves data transmission performance and solves network congestion.
[0044] In conclusion, Figure 2The data transmission device at the sending end shown can be applied to technical fields such as high-speed data transmission, data centers, and cloud computing. It can deal with the problem of out-of-order transmission in applications such as data transmission of multiple nodes, multiple channels, and multiple data services. It can deal with the inconsistency between the order of transmission requests that require feedback sent from the sending end and the order of return packets sent from the receiving end. It can flexibly adapt to situations where part or all of the large-scale data traffic requires feedback, and can also flexibly adapt to unpredictable processing delays and link delays. In the presence of out-of-order transmission, it can effectively identify the address of the return packet and store the return packet in the corresponding area, establish a recycling and recovery mechanism for the identifier, which is conducive to realizing dynamic allocation of cache, reducing return packet cache, making request bursts unrestricted, and improving transmission performance.
[0045] See also Figure 1 and Figure 2 In a possible implementation, the at least one return packet includes the first return packet, and the first reordering unit of the first sending end, in response to receiving the first return packet, parses the first return packet to determine the first identifier, obtains the first cache address from the address information cache according to the first identifier, writes the first return packet to the first data cache according to the first cache address, and writes the first identifier to the identifier resource pool. In this way, through the first reordering unit, after receiving the return packet from the first receiving end, the identifier of the transmission request corresponding to the return packet can be determined by parsing the return packet, and then the address of the return packet can be obtained by reading the address information cache and then the return packet can be stored in the corresponding area. The return packets can be received in any order, thus supporting out-of-order transmission, and can cope with the situation where the order of transmission requests requiring feedback sent from the first sending end is inconsistent with the order of return packets sent from the first receiving end; it should be understood that the recycling and recovery mechanism of the identifier is based on the identifier resource pool and the sending identifier cache, and the address of the return packet is calculated and written into the address information cache when sending the request. The identifier resource pool, the sending identifier cache and the address information cache are all accessed by the first sending end. Therefore, combined with the first request processing unit and the first reordering unit of the first sending end, these improvements are all implemented through the requesting party, such as the first sending end, and there is no need to reserve a large cache space to cache all return packets, which effectively improves data transmission performance and solves network congestion.
[0046] In a possible implementation, the first request processing unit is used to: after adding the first identifier to the first transmission request, remove the first identifier from the identifier resource pool. In this way, for the transmission request that requires feedback, the first request processing unit obtains an idle identifier from the identifier resource pool and adds the idle identifier to the transmission request and sends it out together, and records the occupied identifiers through the sending identifier cache, so that the identifier resource pool and the sending identifier cache can be used to confirm the identifier corresponding to the return packet later, thereby releasing the identifier to achieve the purpose of recycling and recovery. In this way, the identifier resource pool is used to record idle identifiers, that is, identifiers that are not currently occupied, and the sending identifier cache is used to record identifiers that have been occupied. A recycling and recovery mechanism for identifiers can be established, and the identifier resource pool and the sending identifier cache can be used to confirm the identifier corresponding to the return packet, thereby releasing the identifier to achieve the purpose of recycling and recovery.
[0047] In some embodiments, the first reordering unit is used to write the identifier of the transmission request corresponding to the at least one return packet into the identifier resource pool. In this way, the identifier resource pool is used to record the idle identifiers, that is, the identifiers that are not currently occupied, and the sending identifier cache is used to record the identifiers that have been occupied. A recycling and recycling mechanism for the identifiers can be established, and the identifier resource pool and the sending identifier cache can be used to confirm the identifier corresponding to the return packet so as to release the identifier in order to achieve the purpose of recycling and recycling.
[0048] In a possible implementation, the first reordering unit is used to: after writing the at least one return packet to the first data cache, mark the identifier of the transmission request corresponding to the at least one return packet in the sending identifier cache as returned. In this way, by using the identifier resource pool to record idle identifiers, that is, identifiers that are not currently occupied, and using the sending identifier cache to record identifiers that are already occupied, a recycling and recycling mechanism for identifiers can be established, and the identifier resource pool and the sending identifier cache can be used to confirm the identifier corresponding to the return packet and release the identifier to achieve the purpose of recycling and recycling. After writing the at least one return packet to the first data cache, the first reordering unit marks the identifier of the transmission request corresponding to the at least one return packet as returned. In this way, it can be determined whether the corresponding return packet with the identifier has been written into the first data cache by reading whether each identifier in the sending identifier cache is marked as returned, which is beneficial to data reordering.
[0049] In some embodiments, the first reordering unit is also used to: determine whether each identifier in the sending identifier cache is marked as returned in a polling manner, and, according to at least one identifier in the sending identifier cache that is marked as returned, obtain the cache address corresponding to the at least one identifier from the address information cache, and then read data from the first data cache according to the cache address corresponding to the at least one identifier. As mentioned above, after writing the at least one return packet to the first data cache, the first reordering unit marks the identifier of the transmission request corresponding to the at least one return packet as returned, so that it can be subsequently determined whether the corresponding return packet with the identifier has been written into the first data cache by reading whether each identifier in the sending identifier cache is marked as returned, which is beneficial to data reordering. Here, the first reordering unit waits for the identifier stored in the sending identifier cache to be marked as returned in a polling manner, or waits for the return mark of the identifier stored in the sending identifier cache to be set. When the identifier is marked as returned or the return mark of the identifier is set, this means that the corresponding return packet with the identifier has been written into the first data cache, so that the first reordering unit can use the identifier as an index again to obtain the cache address from the address information cache and then read the data from the first data cache. It should be understood that because the identifier order of reading the first data cache is consistent with the identifier order of the first request processing unit, this means that the data read in this way is the reordered data, that is, data reordering is achieved. In this way, support for out-of-order transmission is achieved, and the situation where the order of transmission requests that need feedback sent from the first sending end is inconsistent with the order of return packets sent from the first receiving end can be dealt with. In addition, in the case of out-of-order transmission, the return packets can be matched one-to-one with the requests, thereby improving data transmission performance and coping with network congestion problems.
[0050] In some embodiments, the first reordering unit is further used to: after reading data from the first data cache according to the cache address corresponding to the at least one identifier, write the at least one identifier to the identifier resource pool and remove the at least one identifier from the sending identifier cache. In this way, by using the identifier resource pool to record idle identifiers, that is, identifiers that are not currently occupied, and using the sending identifier cache to record identifiers that have been occupied, a recycling and recycling mechanism for identifiers can be established, and the identifier resource pool and the sending identifier cache can be used to confirm the identifier corresponding to the return packet so as to release the identifier in order to achieve the purpose of recycling and recycling.
[0051] In some embodiments, the first request processing unit sends transmission requests corresponding to multiple identifiers in a first identification order and writes the multiple identifiers to the sending identification cache, and the first reordering unit reads data corresponding to the multiple identifiers from the first data cache in a second identification order, and the first identification order is the same as the second identification order. In this way, the problem of inconsistency between the order of transmission requests that need to be fed back from the sending end and the order of return packets sent from the receiving end can be dealt with, and the situation that part or all of the large-scale data traffic needs to be fed back can be flexibly adapted. It can also flexibly adapt to unpredictable processing delays and link delays, effectively identify the address of the return packet in the case of out-of-order transmission and store the return packet in the corresponding area, and can be sent or returned in an out-of-order manner. By dynamically controlling the sending rate, data cache space can be saved, and data can be read from the data cache in the identification order of the sending transmission request. In the case of out-of-order transmission, the return packet can be matched one by one with the request, thereby improving data transmission performance and coping with network congestion problems.
[0052] In a possible implementation, the first transmission request is a read request, and the read request includes a read request address and a read request data length, and the first cache address is calculated based on the read request data length. In this way, for a read request, the receiver can convert the read request into a read of a memory unit. The read request data length can be the number of bytes of the read request. In this way, the requested receiver parses the read request and reads the data of the read request byte number from the corresponding read request address and then returns the data and the identifier. When the data and the identifier are returned, because the first request processing unit has calculated the address of the return packet in the first data cache when sending the request and written the first cache address to the address information cache, the address of the return packet can be obtained by reading the address information cache and then storing the return packet in the corresponding area.
[0053] In a possible implementation, the identifiers in the identifier resource pool are sorted from small to large after the identifier resource pool is initialized, and the identifiers written into the sending identifier cache are sorted from small to large. In this way, by sorting from small to large, and each identifier is unique, it helps to improve the processing efficiency using the identifier as an index, and subsequently provides it to the first request processing unit for writing and the first reordering unit for reading, which helps to improve the overall performance.
[0054] In a possible implementation, the number of identifiers in the identification resource pool after the identification resource pool is initialized is determined based on the link delay, and the number of identifiers in the identification resource pool after the identification resource pool is initialized limits the number of flight data, and the number of flight data is adjustable. In this way, a certain number of identifiers are initialized according to the link delay and performance requirements, and the number of identifiers corresponding to different links may be inconsistent. The longer the link delay, the more identifiers can be provided to ensure the transmission performance, that is, the total number of identifiers can be flexibly adjusted according to the specific link delay, that is, the number of flight data is adjusted. Here, the number of flight data means the number of transmission requests that need to wait for feedback, and the number of flight data is limited by the number of identifiers in the identification resource pool after the identification resource pool is initialized. The more flight data there are, the more transmission requests that are waiting for feedback that exist at the same time, so that higher link delays can be tolerated. As mentioned above, the identification resource pool is a collection of idle identifications. When there are idle identifications in the identification resource pool, the idle identifications can be extracted from the identification resource pool as the first identification and added to the first transmission request. In this way, the first transmission request including the first identification is transmitted to the first receiving end, so that the subsequent feedback from the first receiving end, that is, the first return packet, can carry the first identification for subsequent processing. Therefore, when sending a transmission request that requires feedback, it is necessary to determine whether there are idle identifications in the identification resource pool, and it is also necessary to consider whether there is enough space in the first data cache to cache subsequent return packets. In this way, by dynamically controlling the sending rate and dynamically allocating the cache, a certain number of identifications are initialized according to the actual delay, and the number of flight data is dynamically adjusted, it is possible to improve resource utilization by combining the actual available resources and needs.
[0055] In some embodiments, the identification resource pool and the sending identification buffer are both first-in-first-out memories. In this way, the total number of identifications can be flexibly adjusted according to the specific link delay, and the read and write efficiency can be improved by using the first-in-first-out structure.
[0056] In a possible implementation manner, the first data cache is a random access memory, and the identifier in the sending identifier cache is used as an index of the address information cache. In this way, the read and write efficiency is improved.
[0057] In some embodiments, the capacity of the first data cache is determined based on the number of identifiers in the identifier resource pool after the identifier resource pool is initialized and the link delay. When sending a transmission request that requires feedback, it is necessary to determine whether there are idle identifiers in the identifier resource pool, and it is also necessary to consider whether there is enough space in the first data cache to cache subsequent return packets. In this way, by dynamically controlling the sending rate and dynamically allocating the cache, a certain number of identifiers are initialized according to the actual delay, and the number of flight data is dynamically adjusted, it is possible to improve resource utilization by combining actual available resources and needs.
[0058] In a possible implementation, the data transmission method further includes: when the first transmission request belongs to a data service with an order preservation requirement and the second transmission request is a previous transmission request in the data service relative to the first transmission request, after determining that the identification resource pool includes an identifier corresponding to the second transmission request, the first transmission request is transmitted by the first request processing unit. In this way, support for data services with order preservation requirements is achieved, such as the calculation result of a function being a parameter of another function, or codes with internal logical dependencies.
[0059] In one possible implementation, the data transmission method is used for multiple senders to transmit data to at least one receiving end, and the multiple senders share the identification resource pool, the sending identification cache, and the address information cache, and the first sender is any sender among the multiple senders. In this way, it is applied to technical fields such as high-speed data transmission, data centers, and cloud computing, and can cope with out-of-order transmission in applications such as data transmission of multiple nodes, multiple channels, and multiple data services. Here, multiple senders can initiate read requests and write requests to multiple receiving ends. Each sender has its own request processing unit and reordering unit, and multiple senders share the same set of identification resource pools, sending identification caches, and address information caches. In this way, on the basis of parallel transmission and parallel reception, the overall resource utilization is improved through resource reuse.
[0060] In some embodiments, the multiple sending ends include a second sending end, the second sending end includes a second request processing unit, a second reordering unit and a second data cache, and the second sending end is used to transmit data to the first receiving end. In this way, on the basis of parallel sending and parallel receiving, the overall resource utilization is improved through resource reuse.
[0061] In a possible implementation manner, the first transmitting end is used to transmit a third transmission request that does not require feedback to the first receiving end, and the third transmission request is a write request, and the write request includes a write request address, write request data, and write request data length. In this way, for a transmission request without a return packet, the first request processing unit can be replaced by a write request, that is, requesting the receiving party to perform a write operation according to the write request, and the write request can include a write request address, write request data, and a write request byte number, so that the requested receiving party parses the write request and writes the write request byte number of the write request data to the corresponding write request address. For a transmission request with a return packet, for example, the first transmission request requires the first receiving end to return a first return packet corresponding to the first transmission request, the first request processing unit can be replaced by a read request, that is, requesting the receiving party to perform a read operation according to the read request and feedback the read data, and the read request can include a read request address, a read request byte number, and an identifier (extracting an idle identifier from an identifier resource pool), so that the requested receiving party parses the read request and reads the data of the read request byte number from the corresponding read request address and then returns the data and the identifier. When the data and identifier are returned, because the first request processing unit has calculated the address of the return packet in the first data cache and written the first cache address to the address information cache when sending the request, the address of the return packet can be obtained by reading the address information cache and then storing the return packet in the corresponding area. For a read request, the receiver can convert the read request into a read of the memory unit. The read request data length can be the number of bytes of the read request. In this way, the requested receiver parses the read request, reads the data of the read request bytes from the corresponding read request address, and then returns the data and identifier.
[0062] Figure 3 A schematic diagram of a data transmission device with multiple sending ends provided in an embodiment of the present application. Figure 1 The data transmission method shown, Figure 3 The schematic diagram shows that multiple sending ends can initiate read requests and write requests to multiple receiving ends. Specifically, Figure 1The data transmission method shown is used for multiple senders to transmit data to at least one receiving end, and the multiple senders share the identification resource pool 202, the sending identification cache 204 and the address information cache 206. The multiple senders include a first sender 210 and a second sender 250. The first sender 210 includes a first request processing unit 212, a first reordering unit 214 and a first data cache 216. The second sender 250 includes a second request processing unit 252, a second reordering unit 254 and a second data cache 256. In this way, it is applied to technical fields such as high-speed data transmission, data centers, and cloud computing, and can cope with out-of-order transmission in applications such as data transmission of multiple nodes, multiple channels, and multiple data services. Here, multiple senders can initiate read requests and write requests to multiple receiving ends. Each sender has its own request processing unit and reordering unit, and multiple senders share the same set of identification resource pools, sending identification caches, and address information caches. On the basis of parallel transmission and parallel reception, the overall resource utilization is improved through resource reuse.
[0063] Figure 4 4 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application, and the computing device 400 includes: one or more processors 410, a communication interface 420 and a memory 430. The processor 410, the communication interface 420 and the memory 430 are interconnected via a bus 440. Optionally, the computing device 400 may also include an input / output interface 450, and the input / output interface 450 is connected to an input / output device for receiving parameters set by a user, etc. The computing device 400 can be used to implement some or all of the functions of the device embodiment or system embodiment in the above-mentioned embodiment of the present application; the processor 410 can also be used to implement some or all of the operating steps of the method embodiment in the above-mentioned embodiment of the present application. For example, the specific implementation of the computing device 400 performing various operations can refer to the specific details in the above-mentioned embodiments, such as the processor 410 is used to perform some or all of the steps in the above-mentioned method embodiment or some or all of the operations in the above-mentioned method embodiment. For another example, in an embodiment of the present application, the computing device 400 may be used to implement part or all of the functions of one or more components in the above-mentioned apparatus embodiment. In addition, the communication interface 420 may be specifically used to perform the communication functions necessary to implement the functions of these apparatuses and components, and the processor 410 may be specifically used to perform the processing functions necessary to implement the functions of these apparatuses and components.
[0064] It should be understood that Figure 4The computing device 400 may include one or more processors 410, and the multiple processors 410 may provide processing capabilities in a parallel connection mode, a serial connection mode, a serial-parallel connection mode, or any connection mode, or the multiple processors 410 may form a processor sequence or a processor array, or the multiple processors 410 may be divided into a main processor and an auxiliary processor, or the multiple processors 410 may have different architectures such as a heterogeneous computing architecture. In addition, Figure 4 The computing device 400 shown in the figure, and the related structural description and functional description are exemplary and non-limiting. In some exemplary embodiments, the computing device 400 may include Figure 4 More or fewer components may be shown, or some components may be combined or separated, or may have a different arrangement of components.
[0065] The processor 410 may have a variety of specific implementation forms. For example, the processor 410 may include a central processing unit (CPU), a graphic processing unit (GPU), a neural-network processing unit (NPU), a tensor processing unit (TPU) or a data processing unit (DPU), etc., and the embodiment of the present application does not specifically limit it. The processor 410 may also be a single-core processor or a multi-core processor. The processor 410 may be a combination of a CPU and a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof. The processor 410 may also be implemented using a logic device with built-in processing logic alone, such as an FPGA or a digital signal processor (DSP). The communication interface 420 may be a wired interface or a wireless interface for communicating with other modules or devices. The wired interface may be an Ethernet interface, a local interconnect network (LIN), etc., and the wireless interface may be a cellular network interface or a wireless local area network interface, etc.
[0066] The memory 430 may be a non-volatile memory, such as a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The memory 430 may also be a volatile memory, which may be a random access memory (RAM) used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM). The memory 430 may also be used to store program codes and data, so that the processor 410 calls the program codes stored in the memory 430 to execute some or all of the operation steps in the above method embodiment, or to execute the corresponding functions in the above device embodiment. Figure 4 Show more or fewer components, or have different component configurations.
[0067] The bus 440 may be a peripheral component interconnect express (PCIe) bus, an extended industry standard architecture (EISA) bus, a unified bus (Ubus or UB), a compute express link (CXL), a cache coherent interconnect for accelerators (CCIX), etc. The bus 440 may be divided into an address bus, a data bus, a control bus, etc. In addition to the data bus, the bus 440 may also include a power bus, a control bus, and a status signal bus, etc. However, for the sake of clarity, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0068] The method and device provided in the embodiments of the present application are based on the same inventive concept. Since the principles of solving the problems in the methods and devices are similar, the embodiments, implementation methods, examples or implementation methods of the methods and devices can refer to each other, and the repeated parts will not be repeated. The embodiments of the present application also provide a system, which includes multiple computing devices, and the structure of each computing device can refer to the structure of the computing device described above. The functions or operations that can be implemented by the system can refer to the specific implementation steps in the above method embodiments and / or the specific functions described in the above device embodiments, which will not be repeated here.
[0069] The present application also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a computer device (such as one or more processors), the method steps in the above method embodiment can be implemented. The specific implementation of the processor of the computer-readable storage medium in executing the above method steps can refer to the specific operations described in the above method embodiment and / or the specific functions described in the above device embodiment, which will not be repeated here.
[0070] It should be understood by those skilled in the art that the embodiments of the present application may be provided as methods, systems, or computer program products. The present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. The embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any other combination. When implemented using software, the above embodiments may be implemented in whole or in part in the form of a computer program product. The present application may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. The computer program product includes one or more computer instructions. When the computer program instructions are loaded or executed on a computer, the process or function described in the embodiments of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. Computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. Computer-readable storage media can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media. Available media can be magnetic media (such as floppy disks, hard disks, tapes), optical media, or semiconductor media. Semiconductor media can be solid-state hard disks, random access memory, flash memory, read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only memory, registers, or any other form of suitable storage media.
[0071] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. Each process and / or block in the flowchart and / or block diagram, as well as the combination of the 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 generate 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 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in 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.
[0072] In the above embodiments, the descriptions of each embodiment have their own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments. Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. The steps in the method of the embodiment of the present application can be adjusted in order, merged or deleted according to actual needs; the modules in the system of the embodiment of the present application can be divided, merged or deleted according to actual needs. If these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.
Claims
1. A data transmission method, characterized in that: The data transmission method comprises: adding a first identifier to a first transmission request by a first request processing unit of a first transmitting end, wherein the first transmission request is transmitted to a first receiving end and requires the first receiving end to return a first return packet corresponding to the first transmission request, and the first identifier comes from an identifier resource pool; Transmitting the first transmission request, writing a first cache address to an address information cache, and writing the first identifier to a sending identifier cache through the first request processing unit, wherein the first cache address is an address of the first return packet in a first data cache of the first sending end; receiving, by means of a first reordering unit of the first transmitting end, at least one return packet from the first receiving end, parsing the at least one return packet to determine an identifier of a transmission request corresponding to the at least one return packet, obtaining a cache address of the at least one return packet from the address information cache according to the identifier of the transmission request corresponding to the at least one return packet, and writing the at least one return packet into the first data cache according to the cache address of the at least one return packet, The first reordering unit is used to: after writing the at least one return packet into the first data cache, mark the identifier of the transmission request corresponding to the at least one return packet in the sending identifier cache as returned, The first reordering unit is further used to: determine whether each identifier in the sending identifier cache is marked as returned in a polling manner, and, according to at least one identifier in the sending identifier cache marked as returned, obtain a cache address corresponding to the at least one identifier from the address information cache, and then read data from the first data cache according to the cache address corresponding to the at least one identifier. The first reordering unit is further configured to: after reading data from the first data cache according to the cache address corresponding to the at least one identifier, write the at least one identifier to the identifier resource pool and remove the at least one identifier from the sending identifier cache.
2. The data transmission method according to claim 1, characterized in that: The at least one return packet includes the first return packet. The first reordering unit of the first sending end, in response to receiving the first return packet, parses the first return packet to determine the first identifier, obtains the first cache address from the address information cache according to the first identifier, writes the first return packet to the first data cache according to the first cache address, and writes the first identifier to the identifier resource pool.
3. The data transmission method according to claim 1, characterized in that: The first request processing unit is configured to remove the first identifier from the identifier resource pool after adding the first identifier to the first transmission request.
4. The data transmission method according to claim 3, characterized in that: The first reordering unit is used to write the identifier of the transmission request corresponding to the at least one return packet into the identifier resource pool.
5. The data transmission method according to claim 1, characterized in that: The first request processing unit sends transmission requests corresponding to multiple identifiers in a first identifier order and writes the multiple identifiers to the sending identifier cache, and the first reordering unit reads data corresponding to the multiple identifiers from the first data cache in a second identifier order, and the first identifier order is the same as the second identifier order.
6. The data transmission method according to claim 1, characterized in that: The first transmission request is a read request, the read request includes a read request address and a read request data length, and the first cache address is calculated based on the read request data length.
7. The data transmission method according to claim 1, characterized in that: The identifiers in the identifier resource pool are sorted from small to large after the identifier resource pool is initialized, and the identifiers written into the sending identifier buffer are sorted from small to large.
8. The data transmission method according to claim 1, characterized in that: The number of identifiers in the identification resource pool after the identification resource pool is initialized is determined based on the link delay, and the number of identifiers in the identification resource pool after the identification resource pool is initialized limits the number of flight data, and the number of flight data is adjustable.
9. The data transmission method according to claim 8, characterized in that: The identification resource pool and the sending identification buffer are both first-in-first-out memories.
10. The data transmission method according to claim 1, characterized in that: The first data cache is a random access memory, and the identifier in the sending identifier cache is used as an index of the address information cache.
11. The data transmission method according to claim 10, characterized in that: The capacity of the first data cache is determined based on the number of identifiers in the identifier resource pool after the identifier resource pool is initialized and a link delay.
12. The data transmission method according to claim 1, characterized in that: The data transmission method further comprises: When the first transmission request belongs to a data service with an order preservation requirement and the second transmission request is the previous transmission request in the data service relative to the first transmission request, the first request processing unit transmits the first transmission request after determining that the identification resource pool includes an identifier corresponding to the second transmission request.
13. The data transmission method according to claim 1, characterized in that: The data transmission method is used for multiple senders to transmit data to at least one receiving end, the multiple senders share the identification resource pool, the sending identification cache and the address information cache, and the first sender is any one of the multiple senders.
14. The data transmission method according to claim 13, characterized in that: The multiple sending ends include a second sending end, the second sending end includes a second request processing unit, a second reordering unit and a second data cache, and the second sending end is used to transmit data to the first receiving end.
15. The data transmission method according to claim 1, characterized in that: The first transmitting end is used to transmit a third transmission request that does not require feedback to the first receiving end, and the third transmission request is a write request, and the write request includes a write request address, write request data, and write request data length.
16. A computer device, characterized in that: The computer device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 15 when executing the computer program.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, which, when executed on a computer device, cause the computer device to perform the method according to any one of claims 1 to 15.
Citation Information
Patent Citations
Method and apparatus for data receiving and caching, and communication system
CN105681222A
Out-of-order message rearrangement method and device, and storage medium
CN113676413A
Data processing method and device, electronic equipment and storage medium
CN114253718A
Method and system for reordering out-of-order response based on AXI protocol
CN116414767A
Read request processing method based on reordering buffer and related device
CN116955251A
