With the development of computer, Internet, e-commerce and e-government, more and more information is digitized, this information needs to be stored for a long time and be searched in a quick way. At the same time, it put forward higher demand for the data storage capacity, speed and safety. Web servers need to store more and more information, which cause the growth of server storage capacity.When internal storage capacity of these servers can not meet the needs of growth of information, it require "externalization". In order to solve this problem, the technologies of storage develop from local storage to network storage.In storage networks, FCoE has been considered as a dominant storage and transport protocol, which will topple down the current pattern of the storage network infrastructure. FCoE equipment will reduce the number of data centers.At the same time it will also make full use of the benefits of the Fibre Channel and the centralized storage. Because large companies have invested billions of dollars each year for Fibre Channel storage, FCoE will bring obvious benefits for these data centers of large companies. In summary, the use of Fibre Channel over Ethernet is a good idea.At present, most of the FCoE SAN routers and switches are made in foreign companies. The research on this field is relatively trivial. The research on the FCoE switch in this article appears to be more innovative and practical. This thesis mainly discusses the design and implementation of negotiation control and port state machine modules in the software system of FCoE switch.This article first analyzes the FC protocol and the FCoE protocol, and then it does a further detailed research on the negotiation process control and the port state machine modules with the method of software engineering. First of all, this article made a detailed needs analysis of the two modules, identified the specific negotiation process. In the link negotiation, there are all kinds of negotiation processes and different port state migration.Only when each of the two ports negotiations are succeed, can it communicate. So it is important to research these two modules. The analysis of these two modules laid a solid foundation for the design and implementation of future system. Second, this article made decomposition for the two modules, divided the sub-module, identified specific technical solutions and implementation steps. Finally it set up a test environment and completed unit test, integration test and system test. These tests ensure the quality of the software system and make sure that the software system can correct and trouble-free run. |