Data transmission method and system
A data transmission method and technology of a data transmission system, applied in the field of data transmission, can solve the problems of low success rate of continuous memory application, inability to obtain expected cache size, underutilization of host system memory resources, etc., so as to improve the success rate of application Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] This embodiment records the working process of the data transmission method of the present invention in detail, and the uplink DMA transmission is controlled by an I / O device (such as a PCIE hardware device). When the host loads the driver, it starts working according to the following steps:
[0043] Step 1. Calculate the number of indexes based on the preset cache size S and the average packet length P, and then calculate the size I of the index memory block (I = (S / P) × U) according to the size U of the index unit, and follow the This size first applies for index memory blocks.
[0044] Each index unit needs information such as the length of the data packet, the serial number of the data memory block where the data packet is located, the offset address of the starting position of the data packet, the effective mark of the index unit, and the end mark of the index unit. The functions of these information are as follows:
[0045] Data packet length: record the length ...
Embodiment 2
[0087] This embodiment describes the data transmission system of the present invention, which includes a host and I / O devices connected to the host. Wherein, the host includes:
[0088] The index memory application unit is used to calculate the index number S / P according to the preset cache size S and the average packet length P, and then calculate the size of the index memory block I = (S / P) × U according to the size U of the index unit , and apply for an index memory block according to this size;
[0089] The data memory application unit is used to calculate the number of data memory blocks to be allocated N = S / M according to the preset cache size S and the size of each data memory block M, and apply for N blocks according to the preset data block size M data memory block;
[0090] The memory allocation information sending unit is used to write the initial physical address and length of the index memory block and the initial physical address of all data memory blocks...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


