| With the rapid development of the Internet, network information resource is growing explosively, but the traditional DAS(Direct Attached Storage) model can not help the business store, access and manage data efficiently now. SAN (Storage Area Network) as a specialized network for data transition between server and storage system, has many advantages such as high speed, high reliability, good scalability and simple management, so it has been widely used in the data center presently.FC (Fibre Channel) protocol developed by the American National Standards Institute, has high speed, high reliability, low latency and high throughput feature. FC protocol integrates channel technology and network technology, supporting the transmission of SCSI, IPI, HIPPI, IP and high-level protocols. FC can provide network users with a high-speed, reliable and security and stable data transmission. The based on FC SAN has been popular in the enterprises.With the popularity of Gigabit Ethernet cards, a new Fibre Channel standard called FCoE (Fibre Channel over Ethernet) is promoted to develop now, which attempts to transit the SAN data by Ethernet, integrating LAN and SAN in the data center. FCF (FCoE Forwarder) switch as the core equipment of the successful deployment of FCoE technology must be able to support both the TCP/IP protocol and the FC protocol.Exchange is designed as a processing mechanism of sending and receiving FC packets in FC protocol. In this paper, the idea of software engineering is used to complete the analysis, design and implementation of the module. Firstly, this paper discusses the processing mechanism of sending and receiving packets in Exchange module and divides the main functional requirement points. Secondly, based on the analysis of the packets processing mechanism, in accordance with the functions of different, the Exchange module is divided into four sub-modules for the design and implementation. This paper also defines major functions of the sub-modules to implement the requirements. Finally, this paper introduces the testing technology and test environment, lists the test case and completes unit testing and integration testing based on the idea of software testing. |