In recent years, with heated discussions of the concept of cloud storage and therapid development of cloud storage technology, network storage technology has alsobeen attracted more and more attentions. And Storage Area Network (SAN) technologyis the one that can not be ignored. Storage area network is a storage architecture thatconnects servers and external storage devices to a network, with the advantage of largecapacity, high performance and high reliability. FC SAN is based on Fibre Channel andhas been currently widely used in large enterprise-class storage solutions.Although the demand for storage has been increasing, the domestic research inthis area is still relatively small, and very few products can be used for practicalapplications. Therefore, this subject focuses on the driver of Fibre Channel host busadapter (FC HBA), hoping to make a useful contribution in this regard. Fibre ChannelHBA is indispensable equipment for server to access to FC SAN. It provides thephysical connection between server’s internal I/O channel (usually PCI) and thestorage system I/O channel (ie, the Fibre Channel).Firstly, this thesis detailedly analyzed the principles and protocols related to theFibre Channel HBA, including in the SCSI protocol in the top level, the Fibre ChannelProtocol in the bottom level, and the Fibre Channel Protocol for SCSI which is themapping layer. Then the design of the driver was completed in the existing conditionsof the underlying hardware. The design conformed to the functionality of the FibreChannel HBA, and was divided into multiple modules which were elaborated in thisthesis. In specific implementation, the Xilinx FPGA development board (ml555) waschosen as the underlying hardware platform. Driver code for the2.6.31kernel versionof the Linux operating systemto was written, with detailed statement of theimplementation. Finally, according to the design and implementation, a testenvironment was built to test the functionality of the Fibre Channel HBA driver,focusing on testing the read and write performance, and test results were analyzed. |