This application provides a
data transmission method, a
network interface card (NIC) for a data receiving end, an electronic device, and a storage medium. The
data transmission method is applied to the NIC of the data receiving end. The NIC writes data to the
host memory of the data receiving end via a
bus. The
data transmission method includes: if the
bus bandwidth resources required for the NIC to write the target data to the
host memory exceed the
bus bandwidth resources available to the NIC, then writing a portion of the target data to the NIC's NIC buffer; the NIC buffer includes a first memory buffer configured for the NIC based on its on-
chip memory and a second memory buffer configured for the NIC based on its onboard memory; the data sending end sends the target data to the data receiving end via
remote direct memory access; and a portion of the data is written from the NIC buffer to the
host memory. The solution of this application can better avoid data
packet loss problems when facing sudden traffic surges.