1、American National StandardDeveloped byfor Information Technology Automation/Drive Interface Transport Protocol (ADT)ANSI INCITS 406-2005ANSIINCITS406-2005Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted witho
2、ut license from IHS-,-,-Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-ANSIINCITS 406-2005American National Standardfor Information Technology Automation/Drive Interface Transpo
3、rt Protocol (ADT)SecretariatInformation Technology Industry CouncilApproved May 19, 2005American National Standards Institute, Inc.AbstractThis standard specifies the transport requirements for the SCSI Automation/Drive interface device. Thisstandard permits the SCSI Automation/Drive interface devic
4、es to attach to application clients andprovides the definitions for their use.This standard does not contain material related to any command structure for Automation/Drive interfacedevices, that is used in conjunction with this standard. For reference to command structure, refer to ADC(see 2.3).Copy
5、right American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-Approval of an American National Standard requires review by ANSI that therequirements for due process, consensus, and other criteria
6、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 necessa
7、rily 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 standards or n
8、ot, 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 person shal
9、l 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: This Am
10、erican 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 standar
11、ds by calling or writing the AmericanNational Standards Institute.American National StandardPublished byAmerican National Standards Institute, Inc.25 West 43rd Street, New York, NY 10036Copyright 2005 by Information Technology Industry Council (ITI)All rights reserved.No part of this publication may
12、 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-quired fo
13、r 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, followingcalls for th
14、e 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 knownpatent holde
15、r(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 develop
16、er 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.Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo rep
17、roduction or networking permitted without license from IHS-,-,-iContentsPageForeword viiIntroduction .ix1 Scope. 12 References. 32.1 Normative references. 32.2 Approved references 32.3 References under development. 32.4 Other references 43 Definitions, symbols, abbreviations, and conventions . 53.1
18、Definitions 53.2 Symbols and abbreviations 73.3 Keywords . 83.4 Conventions. 93.5 Notation for Procedures and Functions . 103.6 State machine conventions 113.6.1 State machine conventions overview. 113.6.2 Sub-state machines . 113.6.3 Transitions . 123.6.4 Messages, requests, and event notifications
19、. 124 General 134.1 Architecture 134.2 Default operating parameters 144.3 ADT state machines. 144.3.1 Introduction 144.3.2 Port state machine. 144.3.2.1 Port state machine overview 144.3.2.2 P0:Initial state 154.3.2.3 P1:Login state 164.3.2.4 P2:Logged-In . 174.3.2.5 P3:Logged-Out state 174.3.3 Link
20、 negotiation state machine 184.3.3.1 Link negotiation state machine overview . 184.3.3.2 Precedence of port login exchanges 194.3.3.3 N0:Idle state. 204.3.3.4 N1:Negotiating state 204.3.3.5 N2:Accept Sent state . 214.3.3.6 N3:Accept ACK Sent state. 214.3.3.7 N4:Agreed state. 214.3.4 Transmitter stat
21、e machine . 224.3.4.1 Transmitter state machine overview 224.3.4.2 T0:Entering state 22Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-iiPage4.3.4.3 T1:Active state . 234.3.4.4 T
22、2:Paused state. 234.3.5 Transmitter error recovery state machine 234.3.5.1 Transmitter error recovery state machine overview. 234.3.5.2 TE0:Idle state. 244.3.5.3 TE1:Initiating Recovery state. 244.3.5.4 TE2:Retry Initiate Recovery state 254.3.6 Receiver error recovery state machine 254.3.6.1 Receive
23、r error recovery state machine overview. 254.3.6.2 R0:Idle state. 264.3.6.3 R1:Pending Recovery state . 264.3.6.4 R2:Recovering state 274.4 ACK Offset. 274.5 Frame Number Counters . 284.5.1 Frame Number Counters overview 284.5.2 Next Frame To Send counter 284.5.3 Expected Frame Number counter 284.6
24、Link layer error recovery 294.6.1 Error detection . 294.6.1.1 Error detection overview 294.6.1.2 Error detection by the frame sender 294.6.1.3 Error detection by the frame receiver 304.6.2 Error recovery 304.6.2.1 Corrupted frame. 304.6.2.2 Error recovery for symbol framing errors . 304.6.2.3 Recove
25、rable error 304.6.2.4 Retryable error. 314.6.2.5 Protocol error . 324.6.2.6 Resource limitation error 324.7 Hard reset 334.8 I_T nexus loss 334.9 Transport protocol variations from SAM-2 . 335 Physical layer. 355.1 Electrical Characteristics . 355.1.1 ADT compliance points 355.1.2 Cabling. 355.1.3 S
26、ense connection 355.1.4 Signal connection 365.1.5 Transmit-receive connection 375.2 Bus composition 385.3 Connector pin-out 396 Link layer . 406.1 Basic frame format. 406.2 Encoding 406.3 ADT frame header . 41Copyright American National Standards Institute Provided by IHS under license with ANSINot
27、for ResaleNo reproduction or networking permitted without license from IHS-,-,-iiiPage6.4 Checksum 426.5 Link service information units. 436.5.1 Link service frames overview . 436.5.2 Payload size type consistency 436.5.3 acknowledgment information units. 436.5.3.1 acknowledgment information units i
28、ntroduction . 436.5.3.2 ACK information unit 436.5.3.3 NAK information unit 446.5.3.4 Interleaving acknowledgment and other frame types. 456.5.4 Port login information unit 456.5.5 Port logout information unit 476.5.6 Pause information unit . 486.5.7 NOP information unit 486.5.8 Initiate Recovery in
29、formation unit. 496.5.9 Initiate Recovery ACK information unit 496.5.10 Initiate Recovery NAK information unit 496.5.11 Link service exchange lifetime . 496.5.11.1 Link service exchange types 496.5.11.2 Simple link service exchange lifetime 496.5.11.3 Negotiation exchange lifetime 497 Transport laye
30、r. 507.1 SCSI Encapsulation . 507.1.1 SCSI encapsulation overview 507.1.2 SCSI Command information unit 517.1.3 SCSI Task Management information unit 527.1.4 SCSI Response information unit 537.1.5 SCSI Transfer Ready information unit . 547.1.6 SCSI Data information unit. 557.1.7 SCSI encapsulation e
31、xchange lifetime. 567.1.8 Reception of Encapsulated SCSI Information Units in exceptional circumstances 567.2 Fast Access 567.2.1 Fast Access overview 567.2.2 Payload size type consistency 577.2.3 Request for VHF Data information unit 577.2.4 VHF Data information unit 577.2.5 AER information unit 57
32、7.2.6 AER Control information unit 577.2.7 Fast Access exchange lifetime. 587.2.7.1 Fast Access exchange types . 587.2.7.2 VHF Data exchange lifetime 587.2.7.3 AER Control exchange lifetime 587.2.7.4 AER exchange lifetime. 588 SCSI Application layer . 598.1 SCSI Transport protocol services overview
33、. 598.2 Transport layer protocol services to support Execute Command 618.2.1 Send SCSI Command transport protocol service 618.2.2 SCSI Command Received transport protocol service 628.2.3 Send Command Complete transport protocol service . 62Copyright American National Standards Institute Provided by
34、IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-ivPage8.2.4 Command Complete Received transport protocol service 638.2.5 Send Data-In transport protocol service 648.2.6 Data-In Delivered transport protocol service . 658.2.7 Receive Data-O
35、ut transport protocol service. 658.2.8 Data-Out Received transport protocol service. 668.2.9 Send Data-Out transport protocol service . 668.2.10 Data-Out Delivered transport protocol service. 678.2.11 Receive Data-In transport protocol service 678.2.12 Data-In Received transport protocol service 688
36、.3 Task management protocol services . 698.3.1 Send Task Management Request transport protocol service 698.3.2 Task Management Request Received transport protocol service . 698.3.3 Task Management Function Executed transport protocol service. 708.3.4 Received Task Management Function-Executed transp
37、ort protocol service . 708.4 SCSI mode parameters . 718.4.1 Disconnect-Reconnect mode page 718.4.2 Protocol-Specific Port mode page . 718.4.3 Protocol-Specific Logical Unit mode page . 71Tables1 ADT Compliance Points. 352 Sense connection output characteristics . 353 Signal connection output charact
38、eristics . 364 Signal connection input characteristics 365 Signal connection timing characteristics 366 Optional Tx-Rx Modulation Rates 377 ADT bus connections. 388 DT device ADT port connector pinout 399 Special characters . 4010 ADT frame header . 4111 Protocol field values. 4112 Link service info
39、rmation units 4313 NAK IU payload contents. 4414 NAK frame status code value 4415 Port Login IU payload contents 4616 Port Logout IU payload contents . 4817 SCSI protocol information units . 5018 SCSI Command IU payload contents 5119 Task attribute field values 5120 SCSI Task Management IU payload c
40、ontents. 52Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-vPage21 TASK MANAGEMENT FUNCTION values. 5222 SCSI Response IU payload contents. 5323 RESPONSE CODE values 5324 SCSI Tr
41、ansfer Ready IU payload contents 5425 SCSI Data IU payload contents . 5526 Fast Access protocol IUs . 5727 Remote procedure call mapping 6028 Extended remote procedure call mapping . 6129 Send SCSI Command transport layer protocol service arguments 6130 SCSI Command Received transport layer protocol
42、 service arguments . 6231 Send Command Complete transport layer protocol service arguments . 6332 Command Complete Received transport layer protocol service arguments . 6333 Send Data-In transport layer protocol service arguments 6534 Data-In Delivered transport layer protocol service arguments . 65
43、35 Receive Data-Out transport layer protocol service arguments 6636 Data-Out Received transport layer protocol service arguments 6637 Send Data-Out transport layer protocol service arguments . 6738 Data-Out Delivered transport layer protocol service arguments 6739 Receive Data-In transport layer pro
44、tocol service arguments . 6840 Data-In Received transport layer protocol service arguments . 6841 Send Task Management Request transport layer protocol service arguments 6942 Task Management Request Received transport layer protocol service arguments 6943 Task Management Function Executed transport
45、layer protocol service arguments 7044 Received Task Management Function-Executed transport layer protocol service arguments 71Figures1 General Document Structure of SCSI 22 State machine conventions 113 Example Media Changer application of ADT . 134 Port State Machine Diagram 155 Link Negotiation St
46、ate Diagram . 19Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-viPage6 Transmitter State Diagram. 227 Transmitter Error Recovery State Diagram . 248 Receiver Error Recovery Stat
47、e Diagram . 269 Minimum acknowledgment time-out period . 2910 Vhysteresis definition. 3711 Asynchronous Transmission Format . 3812 Basic ADT frame format 40Annexes A SCSI transport protocol service examples. 73A.1 Introduction 73A.2 SCSI command with no data phase 73A.3 SCSI Command with data in 73A
48、.4 SCSI Command with data out . 76B Error detection and recovery action examples 78B.1 Introduction 78B.2 Receiver-detected retryable error 79B.3 Receiver-detected retryable error with multiple active IUs 80B.4 Lost IU with no further traffic 81B.5 Lost ACK with recovery driven by out-of-order ACK 8
49、2B.6 Lost IU with recovery driven by out-of-order NAK . 83B.7 Lost NAK with recovery driven by timeout 84B.8 Non-retryable error 85B.9 Lost ACK with errors on next IU 86B.10 Delayed response with recovery driven by timeout . 87C Link negotiation examples . 88C.1 Introduction 88C.2 Field values common to all frames 88C.3 DT device initiates a login after power-up 88C.4 Automation device in