RDMA (Remote Direct Memory Access)-based data access method in fiber channel environment

The invention discloses a RDMA (Remote Direct Memory Access)-based data access method in a fiber channel environment. The method specifically comprises the following steps of: (1) performing internal memory registration on an initiator and a destination, namely, respectively locking the data buffer areas of the user spaces in the initiator and the destination into own kernel space internal memory; (2) initiating a read-write request by the initiator; (3) receiving and processing the read-write request by the destination, specifically, receiving a transmitted FCP-CMND protocol frame, parsing the received FCP-CMND protocol frame to get the read-write information, wherein the reading information comprises the read-write block device, the read-write first address and the read-write length, then, executing read-write operation according to the read-write information, and finally returning back a result state frame to the initiator by the destination after finishing the read-write operation; and (4) receiving the state frame by the initiator, and finishing the data access. In the method, the RDMA technology is used in the fiber channel environment, so that overhead of system internal memory bandwidth and processor caused by data access can be reduced effectively, and the data storage performance is improved greatly.