摘要 |
A method for analyzing a Protocol Data Unit (PDU) of an internet Small Computer Systems Interface (iSCSI) is used for processing a data write request of the iSCSI. The method includes sending the data write request to a target; the target generating a Ready to Transfer (R2T) PDU according to the data write request, and transferring the R2T PDU to an initiator; the initiator generating multiple groups of Data Out PDUs, and writing a scatter/gather block in a target transfer tag of each Data Out PDU; the target finding the corresponding scatter/gather block according to the target transfer tag, and obtaining a host buffer from the scatter/gather block; the target executing a Direct Memory Access command, so as to directly write a payload content received by the target in the host buffer; and after the target completes the write request, the target sending out an RSP PDU to the initiator.
|