1、American National StandardDeveloped byfor Information Technology Fibre Channel Framing and Signaling-2(FC-FS-2)ANSI INCITS 424-2007ANSIINCITS424-2007ANSIINCITS 424-2007American National Standardfor Information Technology Fibre Channel Framing and Signaling-2(FC-FS-2)SecretariatInformation Technology
2、 Industry CouncilApproved February 1, 2007 American National Standards Institute, Inc.AbstractThis standard describes the framing and signaling requirements for Fibre Channel links. The PhysicalInterface requirements are described in Fibre Channel-Physical Interfaces (FC-PI-x). The Link Servicesrequ
3、irements are described in Fibre Channel-Link Services (FC-LS). This standard is recommended fornew implementations but does not obsolete the existing Fibre Channel standards.Approval of an American National Standard requires review by ANSI that therequirements for due process, consensus, and other c
4、riteria for approval havebeen met by the standards developer.Consensus is established when, in the judgement of the ANSI Board ofStandards Review, substantial agreement has been reached by directly andmaterially affected interests. Substantial agreement means much more thana simple majority, but not
5、 necessarily unanimity. Consensus requires that allviews and objections be considered, and that a concerted effort be madetowards their resolution.The use of American National Standards is completely voluntary; theirexistence does not in any respect preclude anyone, whether he has approvedthe standa
6、rds or not, from manufacturing, marketing, purchasing, or usingproducts, processes, or procedures not conforming to the standards.The American National Standards Institute does not develop standards andwill in no circumstances give an interpretation of any American NationalStandard. Moreover, no per
7、son shall have the right or authority to issue aninterpretation of an American National Standard in the name of the AmericanNational Standards Institute. Requests for interpretations should beaddressed to the secretariat or sponsor whose name appears on the titlepage of this standard.CAUTION NOTICE:
8、 This American National Standard may be revised orwithdrawn at any time. The procedures of the American National StandardsInstitute require that action be taken periodically to reaffirm, revise, orwithdraw this standard. Purchasers of American National Standards mayreceive current information on all
9、 standards by calling or writing the AmericanNational Standards Institute.American National StandardPublished byAmerican National Standards Institute, Inc.25 West 43rd Street, New York, NY 10036Copyright 2007 by Information Technology Industry Council (ITI)All rights reserved.No part of this publica
10、tion may be reproduced in anyform, in an electronic retrieval system or otherwise,without prior written permission of ITI, 1250 Eye Street NW, Washington, DC 20005. Printed in the United States of AmericaCAUTION: The developers of this standard have requested that holders of patents that may be re-q
11、uired for the implementation of the standard disclose such patents to the publisher. However, nei-ther the developers nor the publisher have undertaken a patent search in order to identify which, ifany, patents may apply to this standard. As of the date of publication of this standard, followingcall
12、s for the identification of patents that may be required for the implementation of the standard,notice of one or more such claims has been received. By publication of this standard, no positionis taken with respect to the validity of this claim or of any rights in connection therewith. The knownpate
13、nt holder(s) has (have), however, filed a statement of willingness to grant a license underthese rights on reasonable and nondiscriminatory terms and conditions to applicants desiring to ob-tain such a license. Details may be obtained from the publisher. No further patent search is con-ducted by the
14、 developer or publisher in respect to any standard it processes. No representation ismade or implied that this is the only license that may be required to avoid infringement in the use ofthis standard.iContentsPageForeword xxxvii1 Scope 12 References 12.1 Qualification and availability of references
15、 12.2 Approved references . 22.3 References under development 22.4 Other references . 33 Definitions, abbreviations, conventions and keywords . 43.1 Definitions . 43.2 Editorial conventions . 123.3 Abbreviations, acronyms, and symbols 133.3.1 Acronyms and other abbreviations . 133.3.2 Symbols 163.4
16、Keywords 164 Structure and Concepts 184.1 Introduction . 184.2 FC-1 general description . 194.3 FC-2 general description . 204.4 Physical model 214.5 Communication models 214.5.1 Introduction . 214.5.2 Hunt Group . 234.6 Bandwidth . 234.7 Topology . 234.7.1 Types 234.7.2 Point-to-point topology 234.
17、7.3 Fabric topology . 234.7.4 Arbitrated Loop topology . 244.8 Classes of service . 254.8.1 General . 254.8.2 Class 1 service - dedicated connection 254.8.3 Class 2 service - multiplex 264.8.4 Class 3 service - datagram . 264.8.5 Class 6 multicast connection . 264.9 Intermixing other classes with Cl
18、ass 1 or Class 6 . 264.10 General Fabric model . 274.10.1 General 274.10.2 Fabric Ports (Fx_Ports) . 294.10.3 Connection Service . 29iiPage4.10.4 Connectionless Service 304.11 Generic Services 304.12 Building Blocks 304.12.1 Building block hierarchy 304.12.2 Frame . 314.12.3 Sequence 314.12.3.1 Intr
19、oduction . 314.12.3.2 Sequence_Identifier (SEQ_ID) . 314.12.3.3 Sequence Status Blocks . 324.12.4 Exchange 324.12.4.1 Introduction . 324.12.4.2 Exchange_Identifiers (OX_ID and RX_ID) . 324.12.4.3 Association_Header 324.12.4.4 Exchange Status Blocks . 334.12.5 Protocols . 334.12.5.1 Primitive Sequenc
20、e protocols . 334.12.5.2 Fabric Login protocol 334.12.5.3 Nx_Port Login protocol . 334.12.5.4 Data transfer protocol . 334.12.5.5 Nx_Port Logout protocol . 334.12.5.6 Fabric Logout protocol . 334.13 Segmentation and reassembly of application data . 344.14 Error detection and recovery 345 FC-1 8B/10B
21、 transmission code . 355.1 Introduction . 355.2 Notation conventions 355.3 Character encoding and decoding 365.3.1 Introduction . 365.3.2 Transmission order . 365.3.3 Valid and invalid Transmission Characters . 375.3.3.1 Definitions . 375.3.3.2 Generating Transmission Characters . 435.3.3.3 Validity
22、 of received Transmission Characters . 435.4 Word encoding and decoding . 445.5 Ordered Sets 445.5.1 General . 445.5.2 Frame delimiters . 455.5.3 Primitive Signals . 475.5.3.1 Introduction . 475.5.3.2 Idle 475.5.3.3 Receiver_Ready (R_RDY) 485.5.3.4 Virtual Circuit Ready (VC_RDY) . 485.5.3.5 BB_SCs 4
23、85.5.3.6 BB_SCr . 485.5.3.7 SYNx, SYNy, SYNz 485.5.3.8 ARByx, ARB(val) 485.5.3.9 ARBff 48iiiPage5.5.3.10 CLS . 485.5.3.11 DHD 485.5.3.12 MRKtx . 485.5.3.13 OPNyx . 485.5.3.14 OPNyy . 495.5.3.15 OPNyr . 495.5.3.16 OPNfr 495.5.4 Primitive Sequences . 495.5.4.1 Introduction . 495.5.4.2 Not_Operational
24、(NOS) . 505.5.4.3 Offline (OLS) . 505.5.4.4 Link Reset (LR) . 505.5.4.5 Link Reset Response (LRR) . 505.5.4.6 Loop Initialization - F7, F7 . 505.5.4.7 Loop Initialization - F8, F7 . 505.5.4.8 Loop Initialization - F7, x . 505.5.4.9 Loop Initialization - F8, x . 515.5.4.10 Loop Initialization - reset
25、 . 515.5.4.11 Loop Initialization - - reset all 515.5.4.12 Loop Initialization - reserved . 515.5.4.13 Loop Port Bypass 515.5.4.14 Loop Port Bypass all . 515.5.4.15 Loop Port Enable 515.5.4.16 Loop Port Enable all 516 FC-1 Receiver State Diagram . 526.1 Introduction . 526.2 Receiver 526.2.1 Introduc
26、tion . 526.2.2 State Diagram Overview . 526.2.3 Operational and Not Operational conditions . 536.2.4 Word Synchronization Procedure . 546.2.4.1 Bit Synchronization . 546.2.4.2 Transmission Word synchronization . 546.2.4.2.1 Introduction 546.2.4.2.2 Achieving Word Synchronization . 546.2.4.2.3 Word a
27、lignment methods . 546.2.4.2.3.1 Continuous-mode alignment . 546.2.4.2.3.2 Explicit-mode alignment 556.2.5 Loss of Word Synchronization 556.2.5.1 Introduction . 556.2.5.2 Detection of Loss-of-Signal . 556.2.5.3 Detection of an invalid Transmission Word . 556.2.6 State transitions 556.2.6.1 Default S
28、tate . 556.2.6.2 Loss of Synchronization state . 556.2.6.3 Word Synchronization Acquired states . 566.2.6.3.1 Loss-of-Synchronization procedure 566.2.6.3.2 No Invalid Transmission Word Detected state 566.2.6.3.3 First Invalid Transmission Word Detected state 566.2.6.3.4 Second Invalid Transmission W
29、ord Detected state 56ivPage6.2.6.3.5 Third Invalid Transmission Word Detection state . 576.2.6.4 Reset state 577 FC_Port state machine . 587.1 State diagram . 587.2 Active State (AC) 587.3 Link Recovery 587.3.1 Link Recovery hierarchy . 587.3.2 LR Transmit State (LR1) . 587.3.2.1 General (while in t
30、he LR1 state) . 587.3.2.2 Class 1 (while in the LR1 state) 587.3.2.3 Class 2 and Class 3 (while in the LR1 state) 607.3.2.4 Class 6 (while in the LR1 state) 607.3.3 LR Receive State (LR2) 607.3.3.1 General (while in the LR2 state) . 607.3.3.2 Class 1 (while in the LR2 state) 607.3.3.3 Class 6 (while
31、 in the LR2 state) 607.3.4 LRR Receive State (LR3) . 607.3.4.1 General (while in the LR3 state) . 607.3.4.2 Class 1 and Class 6 behavior (while in the LR3 state) . 607.4 Link Failure . 617.4.1 NOS Receive State (LF1) . 617.4.2 NOS Transmit State (LF2) 617.5 Offline . 617.5.1 General . 617.5.2 OLS Tr
32、ansmit State (OL1) 617.5.3 OLS Receive State (OL2) . 627.5.4 Wait for OLS State (OL3) 627.6 Primitive Sequence Protocols . 627.6.1 Functions 627.6.2 Link Initialization Protocol . 627.6.3 Link Reset Protocol . 637.6.4 Link Failure Protocol . 637.6.5 Online-to-offline Protocol 638 Frame formats 648.1
33、 General frame format 648.2 Extended_Headers . 648.3 Frame transmission 648.4 Start-of-Frame (SOF) delimiter . 658.4.1 Introduction . 658.4.2 SOF Connect Class 1 or 6 (SOFc1) 658.4.3 SOF Initiate (SOFix) 658.4.3.1 Applicability . 658.4.3.2 SOF Initiate Class 1 or 6 (SOFi1) 658.4.3.3 SOF Initiate Cla
34、ss 2 (SOFi2) . 658.4.3.4 SOF Initiate Class 3 (SOFi3) . 658.4.4 SOF Normal (SOFnx) 65vPage8.4.4.1 Applicability . 658.4.4.2 SOF Normal Class 1 or 6 (SOFn1) 658.4.4.3 SOF Normal Class 2 (SOFn2) . 658.4.4.4 SOF Normal Class 3 (SOFn3) . 668.4.5 SOF Fabric (SOFf) 668.5 Frame_Header 668.6 Data Field 668.
35、7 CRC 668.8 End-of-Frame (EOF) delimiter . 678.8.1 Introduction . 678.8.2 Valid frame content . 678.8.2.1 EOF Normal (EOFn) 678.8.2.2 EOF Terminate (EOFt) 678.8.2.3 EOF Disconnect Terminate (EOFdt) (Class 1 or Class 6) . 678.8.3 Invalid frame content . 688.8.3.1 General . 688.8.3.2 End of Frame Abor
36、t (EOFa) 688.8.3.3 EOF Disconnect Terminate Invalid (EOFdti) (Class 1 and Class 6) 688.8.3.4 EOF Invalid (EOFni) 688.9 Frame field order . 698.10 Frame reception 708.10.1 Rules . 708.10.2 Frame validity 718.10.3 Invalid frame processing . 719 Frame_Header 729.1 Introduction . 729.2 Identification .
37、729.2.1 Frame identification 729.2.2 Sequence identification . 729.3 Routing Control (R_CTL) 739.3.1 Introduction . 739.3.2 ROUTING Field . 739.3.3 INFORMATION Field 739.4 Address identifiers (D_ID, S_ID) . 759.4.1 General . 759.4.2 Reserved address identifiers 769.4.3 Destination_ID (D_ID) . 769.4.
38、4 Source_ID (S_ID) 769.5 Class Specific Control (CS_CTL)/Priority 779.5.1 Introduction . 779.5.2 CS_CTL 779.5.2.1 General . 779.5.2.2 Class 1 and Class 6 779.5.2.3 Class 2 789.5.2.4 Class 3 789.5.3 Priority 79viPage9.5.3.1 Introduction . 799.5.3.2 Class 1 and Class 6 799.5.3.3 Class 2 and Class 3 80
39、9.6 Data structure type (TYPE) . 809.7 Frame Control (F_CTL) 829.7.1 Introduction . 829.7.2 Exchange Context 849.7.3 Sequence Context 849.7.4 First_Sequence . 849.7.5 Last_Sequence . 859.7.6 End_Sequence . 859.7.7 End_Connection (E_C) (Class 1 or 6) 859.7.8 CS_CTL/Priority Enable 859.7.9 Sequence In
40、itiative . 869.7.10 ACK_Form 869.7.11 Retransmitted Sequence 869.7.12 Unidirectional Transmit . 869.7.13 Continue Sequence Condition 879.7.14 Abort Sequence Condition 879.7.15 Relative offset present 899.7.16 Exchange reassembly 899.7.17 Fill Data Bytes . 899.7.18 F_CTL bits on Data frames . 909.7.1
41、9 F_CTL bits on Link_Control frames 919.8 Sequence_ID (SEQ_ID) . 939.9 Data Field Control (DF_CTL) 939.10 Sequence count (SEQ_CNT) . 949.11 Originator Exchange_ID (OX_ID) . 949.12 Responder Exchange_ID (RX_ID) 959.13 Parameter . 9510 Extended_Headers . 9610.1 Introduction . 9610.2 VFT_Header and Vir
42、tual Fabrics 9610.2.1 Overview . 9610.2.2 VF Capable N_Port Logical Model . 9810.2.3 Tagging Process . 9810.2.4 VFT_Header Format . 9910.3 Inter-Fabric Routing Extended Header (IFR_Header) 10010.3.1 Overview . 10010.3.2 IFR_Header format . 10110.4 Encapsulation Extended Header (Enc_Header) . 10211 O
43、ptional headers 10311.1 Introduction . 10311.2 ESP_Header . 105viiPage11.3 Network_Header . 10711.4 Association_Header 10711.4.1 Introduction . 10711.4.2 Process_Associators . 10911.4.2.1 Originator and Responder Process_Associators 10911.4.2.2 Multicast Process_Associator . 10911.4.2.3 Operation_As
44、sociators 10911.5 Device_Header . 10912 Data frames and responses 11012.1 Data frames . 11012.1.1 Introduction . 11012.1.2 Frame Delimiters . 11012.1.3 Addressing 11012.1.4 Data Field 11112.1.5 Payload size 11112.1.6 Responses 11112.1.6.1 Introduction . 11112.1.6.2 ACK frames - successful Data frame
45、 delivery . 11112.1.6.3 Link_Response frames - Unsuccessful Data frame delivery . 11212.2 Link_Control Frames . 11212.2.1 Introduction . 11212.2.2 Link_Continue function 11412.2.2.1 Introduction . 11412.2.2.2 Acknowledge (ACK) 11412.2.2.2.1 General . 11412.2.2.2.2 ACK_1 11512.2.2.2.3 ACK_0 11512.2.2
46、.2.4 Header definition for all ACK forms 11612.2.2.2.4.1 Addressing 11612.2.2.2.4.2 F_CTL . 11612.2.2.2.4.3 SEQ_ID . 11612.2.2.2.4.4 SEQ_CNT . 11612.2.2.2.4.5 Parameter field 11612.2.2.2.5 Responses . 11612.2.3 Link_Response . 11612.2.3.1 Introduction . 11612.2.3.2 Fabric Busy (F_BSY) 11712.2.3.2.1
47、Description . 11712.2.3.2.2 Responses . 11812.2.3.3 N_Port Busy (P_BSY) . 11812.2.3.3.1 Description . 11812.2.3.3.2 Responses . 12012.2.3.4 Reject (P_RJT, F_RJT) . 12012.2.3.4.1 Introduction . 12012.2.3.4.2 Parameter field . 12112.2.3.4.2.1 Reject Code format . 12112.2.3.4.2.2 Invalid D_ID . 12312.2
48、.3.4.2.3 Invalid S_ID . 12312.2.3.4.2.4 Nx_Port not available, temporary 123viiiPage12.2.3.4.2.5 Nx_Port not available, permanent . 12412.2.3.4.2.6 Class not supported 12412.2.3.4.2.7 Delimiter usage error . 12412.2.3.4.2.8 TYPE not supported 12412.2.3.4.2.9 Invalid Link_Control . 12412.2.3.4.2.10 I
49、nvalid R_CTL field 12412.2.3.4.2.11 Invalid F_CTL field 12412.2.3.4.2.12 Invalid OX_ID 12412.2.3.4.2.13 Invalid RX_ID 12412.2.3.4.2.14 Invalid SEQ_ID 12412.2.3.4.2.15 Invalid DF_CTL . 12412.2.3.4.2.16 Invalid SEQ_CNT 12412.2.3.4.2.17 Invalid Parameter field 12512.2.3.4.2.18 Exchange Error . 12512.2.3.4.2.19 Protocol Error 12512.2.3.4.2.20 Incorrect length . 12512.2.3.4.2.21 Unexpected ACK . 12512.2.3.4.2.22 Class of service not supported by entity at FF FF FEh . 12512.2.3.4.2.23 Login Required 12512.2.3.4.2.24 Excessive Sequences attempted 12512.2.3.4.2.25 Unable to Es