FCoE协议FIP模块的设计与实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
随着网络信息化的不断发展,信息系统中的关键业务数据已成为重要的资产。对关键的业务数据进行备份保护也变的更加重要。从90年代后期人们开始寻找存储网络化和智能化的方法,希望通过提高存储自身的数据管理能力,独立于主机系统之外,以网络方式连接主机和存储系统,以设备资源透明的方式为计算机提供数据服务,从而将数据管理的部分从应用负荷沉重的主机中分离出来。FC协议的目的正是通过SAN(存储局域网)的建立实现了这一分离过程。
     在计算与存储分离的实践中,人们逐渐发现性能、容量这些比较显而易见的存储系统要求,并不是对一个独立存储系统的全部要求。要达到存储系统独立的数据管理目标,对存储系统特性有如下要求:可靠性、可扩展性、兼容性、可管理型、性能和功能。
     FC协议目的是提供比以太网和TCP/IP协议更高速、高效的大数据传输性能。它的本质是一套提供高速传输的硬件与传输协议的集合。FC在存储局域网中的应用非常广泛,但是FC网络的缺点是设备成本高而且扩展性比较差。这样就出现了FCoE协议。通过FCoE协议借助以太网承载FC协议的应用实现I/O整合,从而达到减少投入成本的目的。要实现以太网承载FC协议,就必须让各个节点同交换机建立一条如光缆一样的点到点的通信信道,这就需要节点同交换机之间进行报文协商,然后建立起一条节点与交换机之间的虚链路。FIP协议正是用于虚链路的建立,维护及删除等各个过程。
     本文的主要目的是介绍FC项目中实现FIP模块的方法。为此本文首先对FC协议进行了简要的概述包括FC概况、一些基本概念的解释以及项目的基本介绍,其次主要描述了FCoE协议也包括相关的概念以及其实现的相关思路主要是三大模块FIP.FCM和VFC.紧接着详细的描述了FCoE协议的子协议FIP协议,此部分是该论文的重点,首先对FIP协议进行简单的介绍,包括FIP协议的作用与相关的报文的格式。接着按照软件工程的流程对FIP模块进行了功能需求分析,对需要实现FIP模块的各个功能点进行了描述,这里主要包括FIP模块的各个报文:请求发现报文、发现通告报文、FLOGI报文、LOGO报文、FKA报文、Clear报文。其中包括这些报文的含义,作用以及这些报文是如何在节点与交换机之间进行交互的,又是如何通过这些报文建立节点与交换机之间的信道通路即前面所说的虚链路。之后,本文针对FIP模块的功能需求对FIP模块的设计与实现进行了介绍,这部分主要包括两方面设计:一个是功能分解的设计;另一个是数据结构的设计。通过这两方面的设计对FIP模块的实现做详细的说明。最后对FIP模块的实现进行对应的测试,通过测试验证设计与实现的正确性。
With the continuous development of information technologies, critical business data in information systems has become an important asset. Data backup of critical business also become more important. From the late 90s people started looking for storage networking and intelligent way, hopes to improve its data storage management capabilities, independent of the host system, the network-connected hosts and storage systems to equipment for the computer resources in a transparent manner provide data services to some of the data management burden from the application of the heavy separate host. The purpose of FC protocol is through establishing the SAN (Storage Area Network) to achieve this separation.
     In the practice of separating the storage and the calculation, people gradually found that the performance of the storage capacity of these more obvious the system requirements, not on a separate storage system, all the requirements. To achieve independent data storage system management objectives, on the storage system features the following requirements:reliability, scalability, compatibility, easy to manage, high performance and functionality.
     FC protocol aims to provide more rapid and more efficient performance of large data transfers than the Ethernet and TCP/IP protocol. Its essence is a high-speed transmission of a collection of hardware and transmission protocols. FC protocol is widely used in SAN applications, but the disadvantage of FC network equipment costs are high and relatively poor scalability. This appeared FCoE protocol. Ethernet FCoE protocol through carrying FC protocol to Ethernet to achieve I/O integration, and thus to reduce the input cost. To achieve this aim, each node must be allowed to build a switch, such as fiber optic cable using the point to point communication channel, which requires the node use packet consult with the switch, and then set up the virtual link between a node and switch. FIP protocol is used for virtual link establish maintenance, delete process and so on.
     The main purpose of this paper is to introduce the project to achieve FCoE's FIP modules. To this start this paper introduce the FC protocol, including a brief overview of FC Profiles, the interpretation of some basic concepts and a basic introduction to the project, followed by the main description of the FCoE protocol also includes the related concepts and ideas related to its implementation are the three main modules FIP, FCM, and VFC. Followed by a detailed description of the FCoE protocol sub-agreement FIP agreement, this section is the focus of the paper, first, a simple description of FIP Agreement, including the role of FIP Agreement and related message formats. Then in accordance with the software engineering process of the FIP module functional requirements analysis, on the requirements to achieve functional point of FIP module described here includes all FIP module message: Discover solicit message and Discover advertisement packet, FLOGI packet, LOGO packet, FKA packet, Clear packet. Including the meaning of these messages, the function of these messages and how these messages corporate between the nodes and interact with the switch, but also introduce how to build the virtual channel link through these messages between nodes and switches. After the functional requirements description for the FIP module the paper introduce the design and implementation of FIP module, which mainly consists of two parts of the design:the design of a functional decomposition; the other is the data structure. Through both the design of the FIP module, the paper gives the detailed implement of the FIP module. Finally, FIP module test, the function of test is to verify the correctness of the design and implementation.
引文
[1]严蔚敏,吴伟民数据结构(C语言版)清华大学出版社2007年
    [2]姜宁康,时成阁 网络存储导论清华大学出版社2007年
    [3]张冬 大话存储-网路存储系统原理精解与最佳实践清华大学出版社2008年
    [4]W.Richard Stevens著,范建华等译TCP/IP详解(卷1:协议)机械工业出版社2007年
    [5]谢希仁 计算机网络(第5版) 电子工业出版社2008年
    [6]谭浩强 C程序设计教程清华大学出版社2007年
    [7]普雷斯曼 著,郑人杰 等译 软件工程:实践者的研究方法(原书第6版)机械工业出版社2007年
    [8]朱少民 软件测试方法和技术清华大学出版社2005年
    [9]王晓东 计算机算法设计与分析 电子工业出版社2007年
    [10]布劳德 著,李仁发 等译 软件设计—从程序设计到体系结构 电子工业出版社2007年
    [11]InterNational Committee for Information Technology Standards FC-BB-5 Rev 1.03-2008 FIBRE CHANNEL BACKBONE-5 American, American National Standards Institute,2008
    [12]InterNational Committee for Information Technology Standards FC-SW-5 Rev 8.3-2008 FIBRE CHANNEL Switch Fabric-5 American, American National Standards Institute,2008