1、American National StandardDeveloped byfor Information Technology SCSI Architecture Model - 5 (SAM-5)INCITS 515-2016INCITS 515-2016INCITS 515-2016American National Standardfor Information Technology SCSI Architecture Model - 5 (SAM-5)SecretariatInformation Technology Industry CouncilApproved August 2
2、9, 2016American National Standards Institute, Inc.AbstractThis standard specifies the SCSI Architecture Model. The purpose of the architecture is to provide acommon basis for the coordination of SCSI standards and to specify those aspects of SCSI I/O systembehavior that are independent of a particul
3、ar technology and common to all implementations.Approval of an American National Standard requires review by ANSI that therequirements for due process, consensus, and other criteria for approval havebeen met by the standards developer.Consensus is established when, in the judgement of the ANSI Board
4、 ofStandards Review, substantial agreement has been reached by directly andmaterially affected interests. Substantial agreement means much more thana simple majority, but not necessarily unanimity. Consensus requires that allviews and objections be considered, and that a concerted effort be madetowa
5、rds their resolution.The use of American National Standards is completely voluntary; theirexistence does not in any respect preclude anyone, whether he has approvedthe standards or not, from manufacturing, marketing, purchasing, or usingproducts, processes, or procedures not conforming to the standa
6、rds.The American National Standards Institute does not develop standards andwill in no circumstances give an interpretation of any American NationalStandard. Moreover, no person shall have the right or authority to issue aninterpretation of an American National Standard in the name of the AmericanNa
7、tional Standards Institute. Requests for interpretations should beaddressed to the secretariat or sponsor whose name appears on the titlepage of this standard.CAUTION NOTICE: This American National Standard may be revised orwithdrawn at any time. The procedures of the American National StandardsInst
8、itute require that action be taken periodically to reaffirm, revise, orwithdraw this standard. Purchasers of American National Standards mayreceive current information on all standards by calling or writing the AmericanNational Standards Institute.American National StandardPublished byAmerican Natio
9、nal Standards Institute, Inc.25 West 43rd Street, New York, NY 10036Copyright 2016 by Information Technology Industry Council (ITI)All rights reserved.No part of this publication may be reproduced in anyform, in an electronic retrieval system or otherwise,without prior written permission of ITI, 110
10、1 K Street NW, Suite 610, 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-quired for the implementation of the standard disclose such patents to the publisher. However, nei-ther the developers
11、 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, followingcalls for the identification of patents that may be required for the implementation of the standard,notice of one or more
12、 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 knownpatent holder(s) has (have), however, filed a statement of willingness to grant a license underthese rights on reasonable
13、 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 developer or publisher in respect to any standard it processes. No representation ismade or implied that this is the
14、 only license that may be required to avoid infringement in the use ofthis standard.iContentsPageForeword . xiIntroduction.xviSCSI standards familyxvi1 Scope. 12 Normative references. 23 Definitions, symbols, abbreviations, and conventions 23.1 Definitions. 23.2 Symbols and Acronyms 133.2.1 Abbrevia
15、tions 133.2.2 Units 133.3 Keywords 143.4 Editorial conventions 153.5 Numeric and character conventions. 163.5.1 Numeric conventions 163.5.2 Byte encoded character strings conventions 163.6 UML notation conventions 173.6.1 Notation conventions overview . 173.6.2 Constraint and note conventions 173.6.
16、3 Class diagram conventions. 183.6.4 Object diagram conventions . 233.7 State machine conventions 253.7.1 State machine conventions overview 253.7.2 Transitions 263.7.3 Messages, requests, indications, confirmations, responses, and event notifications. 263.7.4 State machine counters, timers, and var
17、iables. 273.8 Bit and byte ordering 273.9 Notation for procedure calls 294 SCSI architecture model 304.1 Introduction. 304.2 Compliance requirements. 304.3 The SCSI distributed service model . 324.4 The SCSI client-server model. 334.4.1 SCSI client-server model overview. 334.4.2 Synchronizing client
18、 and server changes . 344.4.3 Server request/response ordering 344.5 The SCSI structural model . 354.6 SCSI classes 364.6.1 SCSI classes overview . 364.6.2 SCSI Domain class. 374.6.3 Service Delivery Subsystem class 384.6.4 SCSI Device class 384.6.4.1 SCSI Device class overview 384.6.4.2 SCSI Device
19、 Name attribute . 394.6.5 SCSI Port class. 404.6.5.1 SCSI Port class overview 404.6.5.2 Relative Port Identifier attribute. 414.6.6 SCSI Target Port class . 414.6.6.1 SCSI Target Port class overview. 41ii4.6.6.2 Target Port Identifier attribute 414.6.6.3 Target Port Name attribute 424.6.6.4 Send Dat
20、a-In operation . 424.6.6.5 Receive Data-Out operation 424.6.6.6 Terminate Data Transfer operation . 424.6.6.7 Send Command Complete operation 424.6.6.8 Task Management Function Executed operation 424.6.7 Task Router class . 424.6.7.1 Task Router class overview 424.6.7.2 Route Command operation . 434
21、.6.7.3 Route Task Management Function operation . 434.6.7.4 Reroute Conglomerate Command operation 444.6.7.5 Reroute Conglomerate Task Management Functions operation. 444.6.7.6 Stop Conglomerate Task Management Functions Rerouting operation . 454.6.8 SCSI Initiator Port class 454.6.8.1 SCSI Initiato
22、r Port class overview . 454.6.8.2 Initiator Port Identifier attribute 464.6.8.3 Initiator Port Name attribute 464.6.8.4 Send SCSI Command operation. 464.6.8.5 Send Task Management Request operation. 464.6.8.6 Get Initiator Port Identifier operation . 464.6.8.7 Get Initiator Port Name operation 464.6
23、.9 SCSI Target Device class. 474.6.10 Logical Unit Conglomerate class 484.6.11 Level 1 Hierarchical Logical Unit class . 494.6.12 Level 2 Hierarchical Logical Unit class . 514.6.13 Level 3 Hierarchical Logical Unit class . 514.6.14 Level 4 Hierarchical Logical Unit class . 514.6.15 Hierarchical Logi
24、cal Unit class 514.6.16 Management Logical Unit class 524.6.17 Well Known Logical Unit class 524.6.18 Logical Unit class 524.6.18.1 Logical Unit class overview . 524.6.18.2 LUN attribute . 544.6.18.3 Logical Unit Name attribute. 554.6.18.4 Dependent Logical Unit attribute. 554.6.18.5 Device Type att
25、ribute 554.6.19 Device Server class 554.6.19.1 Device Server class overview . 554.6.19.2 Data-In Delivered operation 564.6.19.3 Data-Out Received operation 564.6.19.4 Data Transfer Terminated operation . 564.6.20 Copy Manager class . 564.6.20.1 Copy Manager class overview 564.6.20.2 Create ROD Token
26、 operation 564.6.20.3 Process ROD Token operation . 564.6.21 Task Manager class 564.6.21.1 Task Manager class overview. 564.6.21.2 SCSI Command Received operation 574.6.21.3 Task Management Request Received operation 574.6.21.4 Data Transfer Terminated operation . 574.6.21.5 Nexus Loss operation 574
27、.6.21.6 Transport Reset operation. 574.6.21.7 Power Loss Expected operation 574.6.22 Task Set class. 574.6.23 Command class 574.6.23.1 Command class overview . 57iii4.6.23.2 I_T_L Nexus attribute 584.6.23.3 Command Identifier attribute. 584.6.23.4 Task Attribute attribute 584.6.23.5 CDB attribute. 5
28、84.6.23.6 CRN attribute. 584.6.23.7 Command Priority attribute 584.6.23.8 Status attribute 584.6.23.9 Sense Data attribute 584.6.23.10 Sense Data Length attribute 584.6.23.11 Service Response attribute . 584.6.23.12 Status Qualifier attribute 584.6.23.13 First Burst Enabled attribute 594.6.23.14 Dev
29、ice Server Buffer attribute . 594.6.23.15 Application Client Buffer Offset attribute . 594.6.23.16 Request Byte Count attribute 594.6.23.17 Delivery Result attribute 594.6.24 Task Management Function class 594.6.24.1 Task Management Function class overview . 594.6.24.2 Function Identifier attribute
30、594.6.24.3 I_T Nexus attribute 594.6.24.4 I_T_L Nexus attribute 594.6.24.5 Command Identifier attribute. 604.6.24.6 Service Response attribute . 604.6.24.7 Additional Response Information attribute 604.6.25 Administrative Logical Unit class 604.6.25.1 Administrative Logical Unit class overview 604.6
31、.25.2 Rerouted commands and task management functions. 604.6.25.2.1 Overview 604.6.25.2.2 Commands rerouted due to incorrect logical unit selection. 604.6.25.2.3 Command rerouting in response to an administrative logical unit request 614.6.25.2.4 Task management function rerouting in response to an
32、administrative logical unit request 624.6.26 Subsidiary Logical Unit class 624.6.26.1 Subsidiary Logical Unit class overview . 624.6.26.2 Binding attribute 624.6.26.3 Host Bind Identifier attribute 624.6.27 SCSI Initiator Device class 634.6.28 Application Client class. 644.6.28.1 Application Client
33、class overview 644.6.28.2 Command Complete Received operation . 644.6.28.3 Received Task Management Function Executed operation 644.6.28.4 Nexus Loss operation 654.6.28.5 Transport Reset operation. 654.6.29 Application Client Task Management Function class . 654.6.29.1 Application Client Task Manage
34、ment Function class overview. 654.6.29.2 Function Identifier attribute 654.6.29.3 I_T Nexus attribute 654.6.29.4 I_T_L Nexus attribute 654.6.29.5 Command Identifier attribute. 654.6.29.6 Service Response attribute . 654.6.29.7 Additional Response Information attribute 654.6.30 Application Client Tas
35、k Set class 664.6.31 Application Client Command class . 664.6.31.1 Application Client Command class overview. 664.6.31.2 I_T_L Nexus attribute 664.6.31.3 Command Identifier attribute. 664.6.31.4 CDB attribute. 674.6.31.5 Task Attribute attribute 67iv4.6.31.6 Status attribute 674.6.31.7 Service Respo
36、nse attribute . 674.6.31.8 Data-In Buffer attribute 674.6.31.9 Data-In Buffer Size attribute 674.6.31.10 Data-Out Buffer attribute . 684.6.31.11 Data-Out Buffer Size attribute . 684.6.31.12 CRN attribute. 684.6.31.13 Command Priority attribute 684.6.31.14 First Burst Enabled attribute 684.6.31.15 Se
37、nse Data attribute 684.6.31.16 Sense Data Length attribute 684.6.31.17 Status Qualifier attribute 684.6.32 Discovery class. 684.6.32.1 Discovery class overview 684.6.32.2 I_T Nexus attribute 694.6.32.3 I_T_L Nexus attribute 694.6.32.4 Return I_T Nexus operation 694.6.32.5 Return I_T_L Nexus operatio
38、n 694.7 Logical unit number (LUN) 694.7.1 Introduction . 694.7.2 Logical unit representation format. 704.7.3 LUNs overview 704.7.4 Minimum LUN addressing requirements. 704.7.5 Single level LUN structure 714.7.6 Complex LUN structures. 744.7.6.1 Complex LUN structures overview 744.7.6.2 Logical unit
39、conglomerate LUN structure 744.7.6.3 Hierarchical LUN structure 754.7.7 Addressing methods . 784.7.7.1 Simple logical unit addressing method 784.7.7.2 Peripheral device addressing method. 784.7.7.3 Flat space addressing method 804.7.7.4 Logical unit addressing method. 814.7.7.5 Extended logical unit
40、 addressing. 824.7.7.5.1 Well known logical unit addressing 854.7.7.5.2 Extended flat space addressing method 864.7.7.5.3 Long extended flat space addressing method. 864.7.7.5.4 Logical unit not specified addressing. 874.8 SCSI ports 874.8.1 SCSI port configurations. 874.8.2 SCSI devices with multip
41、le SCSI ports . 884.8.3 SCSI target device with multiple SCSI ports structure 894.8.4 SCSI initiator device with multiple SCSI initiator ports structure. 904.8.5 SCSI device with multiple SCSI ports structure 904.8.6 SCSI initiator device view of SCSI target device with multiple SCSI target ports. 9
42、14.8.7 SCSI target device view of a SCSI initiator device with multiple SCSI initiator ports 944.9 The SCSI model for distributed communications . 955 SCSI command model . 1005.1 The Execute Command procedure call 1005.2 Command descriptor block (CDB) 1015.3 Status . 1035.3.1 Status codes . 1035.3.2
43、 Status qualifier 1045.3.3 Status precedence 1075.4 SCSI transport protocol services for SCSI commands. 1075.4.1 SCSI transport protocol services for SCSI commands overview 107v5.4.2 Command and status SCSI transport protocol services . 1085.4.2.1 Command and status SCSI transport protocol services
44、overview 1085.4.2.2 Send SCSI Command SCSI transport protocol service request . 1085.4.2.3 SCSI Command Received SCSI transport protocol service indication . 1085.4.2.4 Send Command Complete SCSI transport protocol service response . 1095.4.2.5 Command Complete Received SCSI transport protocol servi
45、ce confirmation 1095.4.3 Data transfer SCSI transport protocol services. 1105.4.3.1 Introduction 1105.4.3.2 Data-In delivery service. 1125.4.3.2.1 Send Data-In SCSI transport protocol service request 1125.4.3.2.2 Data-In Delivered SCSI transport protocol service confirmation . 1125.4.3.3 Data-Out de
46、livery service 1125.4.3.3.1 Receive Data-Out SCSI transport protocol service request 1125.4.3.3.2 Data-Out Received SCSI transport protocol service confirmation. 1135.4.3.4 Terminate Data Transfer service. 1135.4.3.4.1 Terminate Data Transfer SCSI transport protocol service request 1135.4.3.4.2 Data
47、 Transfer Terminated SCSI transport protocol service confirmation 1145.5 Command lifetime. 1145.6 Aborting commands 1155.7 Command processing example 1215.8 Commands that complete with CHECK CONDITION status 1225.8.1 Overview. 1225.8.2 Handling commands when ACA is not in effect 1225.8.3 Aborting co
48、mmands terminated with a CHECK CONDITION status without establishing an ACA 1235.9 Auto contingent allegiance (ACA). 1235.9.1 ACA overview . 1235.9.2 Establishing an ACA . 1235.9.3 Handling new commands received on the faulted I_T nexus when ACA is in effect 1245.9.4 Handling new commands received o
49、n non-faulted I_T nexuses when ACA is in effect . 1245.9.4.1 Command processing that is permitted for commands received on a non-faulted I_T nexuses during ACA 1245.9.4.2 Handling new commands received on non-faulted I_T nexuses when ACA is in effect 1245.9.5 Clearing an ACA condition 1255.10 Overlapped commands 1265.11 Incorrect logical unit numbers for commands. 1275.12 Task attribute exception conditions 1275.13 Sense data . 1285.13.1 Command terminated sense data or polled sense data . 1285.13.2 Command completed sense data . 1285.14 Unit attention conditions . 1285.14.1 Unit attention