US 12,487,963 B2
Data transmission method, chip, and device
Weibin Lin, Hangzhou (CN); Yaoguo Hu, Shenzhen (CN); and Shengyu Shen, Hangzhou (CN)
Assigned to Huawei Technologies Co., Ltd., Shenzhen (CN)
Filed by HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed on Jan. 5, 2023, as Appl. No. 18/150,647.
Application 18/150,647 is a continuation of application No. PCT/CN2021/088771, filed on Apr. 21, 2021.
Claims priority of application No. 202010639909.7 (CN), filed on Jul. 6, 2020; and application No. 202110080370.0 (CN), filed on Jan. 21, 2021.
Prior Publication US 2023/0153264 A1, May 18, 2023
Int. Cl. G06F 15/173 (2006.01); H04L 67/1097 (2022.01)
CPC G06F 15/17331 (2013.01) [H04L 67/1097 (2013.01)] 13 Claims
OG exemplary drawing
 
1. A data transmission method comprising:
obtaining, by a network interface card of a source device, a first notification message, wherein the first notification message indicates that a first to-be-processed remote direct memory access (RDMA) request exists in a first queue of the source device, and the first queue is used to store a request of a first service application of the source device;
obtaining, by the network interface card, a second notification message, wherein the second notification message indicates that a second to-be-processed RDMA request exists in a second queue of the source device, and the second queue is used to store a request of a second service application of the source device;
determining, by the network interface card, a processing sequence of the first queue and the second queue according to a service level of the first service application and a service level of the second service application;
determining, by the network interface card according to a specified rule, a storage manner in which a context of the first queue is stored in a storage apparatus of the network interface card, wherein the context of the first queue indicates an identifier of the destination device and an identifier of a queue associated with the first queue in the destination device;
obtaining, by the network interface card, the context of the first queue; and
storing, by the network interface card, the context of the first queue in the storage apparatus of the network interface card in accordance with the storage manner; and
sending, by the network interface card, the first to-be-processed RDMA request and the second to-be-processed RDMA request to a destination device according to the processing sequence, wherein the determining, by the network interface card according to the specified rule, the storage manner in which the context of the first queue is stored in the storage apparatus comprises one of:
(1) determining, by the network interface card based on an operation type of the to-be-processed RDMA request in the first queue, the storage manner in which the context of the first queue is stored in the storage apparatus, wherein the operation type comprises a persistent collective operation;
(2) comparing, by the network interface card, a size of a data packet in the to-be-processed RDMA request in the first queue with a first threshold; and
determining, by the network interface card based on a comparison result, the storage manner in which the context of the first queue is stored in the storage apparatus; and
(3) comparing, by the network interface card, a usage frequency of the first queue with a second threshold, wherein the first queue comprises a plurality of work queue elements (WQEs), each WQE is used to store one to-be-processed RDMA request, and the usage frequency is used to identify a quantity of to-be-processed RDMA requests stored within a first time threshold in the elements of the first queue; and
determining, by the network interface card based on a comparison result, the storage manner in which the context of the first queue is stored in the storage apparatus.