Internet Engineering Task Force (IETF)                             M. Ko
Request for Comments: 7145
Obsoletes: 5046                                             A. Nezhinsky
Category: Standards Track                                       Mellanox
ISSN: 2070-1721                                               April 2014
        
Internet Engineering Task Force (IETF)                             M. Ko
Request for Comments: 7145
Obsoletes: 5046                                             A. Nezhinsky
Category: Standards Track                                       Mellanox
ISSN: 2070-1721                                               April 2014
        

Internet Small Computer System Interface (iSCSI) Extensions for the Remote Direct Memory Access (RDMA) Specification

远程直接内存访问(RDMA)规范的Internet小型计算机系统接口(iSCSI)扩展

Abstract

摘要

Internet Small Computer System Interface (iSCSI) Extensions for Remote Direct Memory Access (RDMA) provides the RDMA data transfer capability to iSCSI by layering iSCSI on top of an RDMA-Capable Protocol. An RDMA-Capable Protocol provides RDMA Read and Write services, which enable data to be transferred directly into SCSI I/O Buffers without intermediate data copies. This document describes the extensions to the iSCSI protocol to support RDMA services as provided by an RDMA-Capable Protocol.

用于远程直接内存访问(RDMA)的Internet小型计算机系统接口(iSCSI)扩展通过将iSCSI分层到支持RDMA的协议之上,为iSCSI提供了RDMA数据传输能力。支持RDMA的协议提供RDMA读写服务,使数据能够直接传输到SCSI I/O缓冲区,而无需中间数据拷贝。本文档介绍了iSCSI协议的扩展,以支持支持支持RDMA的协议提供的RDMA服务。

This document obsoletes RFC 5046.

本文件废除RFC 5046。

Status of This Memo

关于下段备忘

This is an Internet Standards Track document.

这是一份互联网标准跟踪文件。

This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 5741.

本文件是互联网工程任务组(IETF)的产品。它代表了IETF社区的共识。它已经接受了公众审查,并已被互联网工程指导小组(IESG)批准出版。有关互联网标准的更多信息,请参见RFC 5741第2节。

Information about the current status of this document, any errata, and how to provide feedback on it may be obtained at http://www.rfc-editor.org/info/rfc7145.

有关本文件当前状态、任何勘误表以及如何提供反馈的信息,请访问http://www.rfc-editor.org/info/rfc7145.

Copyright Notice

版权公告

Copyright (c) 2014 IETF Trust and the persons identified as the document authors. All rights reserved.

版权所有(c)2014 IETF信托基金和确定为文件作者的人员。版权所有。

This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.

本文件受BCP 78和IETF信托有关IETF文件的法律规定的约束(http://trustee.ietf.org/license-info)自本文件出版之日起生效。请仔细阅读这些文件,因为它们描述了您对本文件的权利和限制。从本文件中提取的代码组件必须包括信托法律条款第4.e节中所述的简化BSD许可证文本,并提供简化BSD许可证中所述的无担保。

Table of Contents

目录

   1. Introduction ....................................................5
      1.1. Motivation .................................................5
      1.2. iSCSI/iSER Layering ........................................6
      1.3. Architectural Goals ........................................7
      1.4. Protocol Overview ..........................................7
      1.5. RDMA Services and iSER .....................................9
           1.5.1. STag ................................................9
           1.5.2. Send ...............................................10
           1.5.3. RDMA Write .........................................11
           1.5.4. RDMA Read ..........................................11
      1.6. SCSI Read Overview ........................................11
      1.7. SCSI Write Overview .......................................12
   2. Definitions and Acronyms .......................................12
      2.1. Definitions ...............................................12
      2.2. Acronyms ..................................................18
      2.3. Conventions ...............................................20
   3. Upper-Layer Interface Requirements .............................20
      3.1. Operational Primitives offered by iSER ....................21
           3.1.1. Send_Control .......................................21
           3.1.2. Put_Data ...........................................21
           3.1.3. Get_Data ...........................................22
           3.1.4. Allocate_Connection_Resources ......................22
           3.1.5. Deallocate_Connection_Resources ....................23
           3.1.6. Enable_Datamover ...................................23
           3.1.7. Connection_Terminate ...............................23
           3.1.8. Notice_Key_Values ..................................24
           3.1.9. Deallocate_Task_Resources ..........................24
      3.2. Operational Primitives Used by iSER .......................24
           3.2.1. Control_Notify .....................................25
           3.2.2. Data_Completion_Notify .............................25
           3.2.3. Data_ACK_Notify ....................................25
        
   1. Introduction ....................................................5
      1.1. Motivation .................................................5
      1.2. iSCSI/iSER Layering ........................................6
      1.3. Architectural Goals ........................................7
      1.4. Protocol Overview ..........................................7
      1.5. RDMA Services and iSER .....................................9
           1.5.1. STag ................................................9
           1.5.2. Send ...............................................10
           1.5.3. RDMA Write .........................................11
           1.5.4. RDMA Read ..........................................11
      1.6. SCSI Read Overview ........................................11
      1.7. SCSI Write Overview .......................................12
   2. Definitions and Acronyms .......................................12
      2.1. Definitions ...............................................12
      2.2. Acronyms ..................................................18
      2.3. Conventions ...............................................20
   3. Upper-Layer Interface Requirements .............................20
      3.1. Operational Primitives offered by iSER ....................21
           3.1.1. Send_Control .......................................21
           3.1.2. Put_Data ...........................................21
           3.1.3. Get_Data ...........................................22
           3.1.4. Allocate_Connection_Resources ......................22
           3.1.5. Deallocate_Connection_Resources ....................23
           3.1.6. Enable_Datamover ...................................23
           3.1.7. Connection_Terminate ...............................23
           3.1.8. Notice_Key_Values ..................................24
           3.1.9. Deallocate_Task_Resources ..........................24
      3.2. Operational Primitives Used by iSER .......................24
           3.2.1. Control_Notify .....................................25
           3.2.2. Data_Completion_Notify .............................25
           3.2.3. Data_ACK_Notify ....................................25
        
           3.2.4. Connection_Terminate_Notify ........................26
      3.3. iSCSI Protocol Usage Requirements .........................26
   4. Lower-Layer Interface Requirements .............................27
      4.1. Interactions with the RCaP Layer ..........................27
      4.2. Interactions with the Transport Layer .....................28
   5. Connection Setup and Termination ...............................28
      5.1. iSCSI/iSER Connection Setup ...............................28
           5.1.1. Initiator Behavior .................................30
           5.1.2. Target Behavior ....................................31
           5.1.3. iSER Hello Exchange ................................33
      5.2. iSCSI/iSER Connection Termination .........................36
           5.2.1. Normal Connection Termination at the Initiator .....36
           5.2.2. Normal Connection Termination at the Target ........36
           5.2.3. Termination without Logout Request/Response PDUs ...37
   6. Login/Text Operational Keys ....................................38
      6.1. HeaderDigest and DataDigest ...............................38
      6.2. MaxRecvDataSegmentLength ..................................38
      6.3. RDMAExtensions ............................................39
      6.4. TargetRecvDataSegmentLength ...............................40
      6.5. InitiatorRecvDataSegmentLength ............................41
      6.6. OFMarker and IFMarker .....................................41
      6.7. MaxOutstandingUnexpectedPDUs ..............................41
      6.8. MaxAHSLength ..............................................42
      6.9. TaggedBufferForSolicitedDataOnly ..........................43
      6.10. iSERHelloRequired ........................................43
   7. iSCSI PDU Considerations .......................................44
      7.1. iSCSI Data-Type PDU .......................................44
      7.2. iSCSI Control-Type PDU ....................................45
      7.3. iSCSI PDUs ................................................45
           7.3.1. SCSI Command .......................................45
           7.3.2. SCSI Response ......................................47
           7.3.3. Task Management Function Request/Response ..........49
           7.3.4. SCSI Data-out ......................................50
           7.3.5. SCSI Data-in .......................................51
           7.3.6. Ready To Transfer (R2T) ............................53
           7.3.7. Asynchronous Message ...............................55
           7.3.8. Text Request and Text Response .....................55
           7.3.9. Login Request and Login Response ...................55
           7.3.10. Logout Request and Logout Response ................56
           7.3.11. SNACK Request .....................................56
           7.3.12. Reject ............................................56
           7.3.13. NOP-Out and NOP-In ................................57
   8. Flow Control and STag Management ...............................57
      8.1. Flow Control for RDMA Send Messages .......................57
           8.1.1. Flow Control for Control-Type PDUs from the
                  Initiator ..........................................58
           8.1.2. Flow Control for Control-Type PDUs from the
                  Target .............................................60
        
           3.2.4. Connection_Terminate_Notify ........................26
      3.3. iSCSI Protocol Usage Requirements .........................26
   4. Lower-Layer Interface Requirements .............................27
      4.1. Interactions with the RCaP Layer ..........................27
      4.2. Interactions with the Transport Layer .....................28
   5. Connection Setup and Termination ...............................28
      5.1. iSCSI/iSER Connection Setup ...............................28
           5.1.1. Initiator Behavior .................................30
           5.1.2. Target Behavior ....................................31
           5.1.3. iSER Hello Exchange ................................33
      5.2. iSCSI/iSER Connection Termination .........................36
           5.2.1. Normal Connection Termination at the Initiator .....36
           5.2.2. Normal Connection Termination at the Target ........36
           5.2.3. Termination without Logout Request/Response PDUs ...37
   6. Login/Text Operational Keys ....................................38
      6.1. HeaderDigest and DataDigest ...............................38
      6.2. MaxRecvDataSegmentLength ..................................38
      6.3. RDMAExtensions ............................................39
      6.4. TargetRecvDataSegmentLength ...............................40
      6.5. InitiatorRecvDataSegmentLength ............................41
      6.6. OFMarker and IFMarker .....................................41
      6.7. MaxOutstandingUnexpectedPDUs ..............................41
      6.8. MaxAHSLength ..............................................42
      6.9. TaggedBufferForSolicitedDataOnly ..........................43
      6.10. iSERHelloRequired ........................................43
   7. iSCSI PDU Considerations .......................................44
      7.1. iSCSI Data-Type PDU .......................................44
      7.2. iSCSI Control-Type PDU ....................................45
      7.3. iSCSI PDUs ................................................45
           7.3.1. SCSI Command .......................................45
           7.3.2. SCSI Response ......................................47
           7.3.3. Task Management Function Request/Response ..........49
           7.3.4. SCSI Data-out ......................................50
           7.3.5. SCSI Data-in .......................................51
           7.3.6. Ready To Transfer (R2T) ............................53
           7.3.7. Asynchronous Message ...............................55
           7.3.8. Text Request and Text Response .....................55
           7.3.9. Login Request and Login Response ...................55
           7.3.10. Logout Request and Logout Response ................56
           7.3.11. SNACK Request .....................................56
           7.3.12. Reject ............................................56
           7.3.13. NOP-Out and NOP-In ................................57
   8. Flow Control and STag Management ...............................57
      8.1. Flow Control for RDMA Send Messages .......................57
           8.1.1. Flow Control for Control-Type PDUs from the
                  Initiator ..........................................58
           8.1.2. Flow Control for Control-Type PDUs from the
                  Target .............................................60
        
      8.2. Flow Control for RDMA Read Resources ......................61
      8.3. STag Management ...........................................62
           8.3.1. Allocation of STags ................................62
           8.3.2. Invalidation of STags ..............................62
   9. iSER Control and Data Transfer .................................64
      9.1. iSER Header Format ........................................64
      9.2. iSER Header Format for iSCSI Control-Type PDU .............65
      9.3. iSER Header Format for iSER Hello Message .................67
      9.4. iSER Header Format for iSER HelloReply Message ............68
      9.5. SCSI Data Transfer Operations .............................69
           9.5.1. SCSI Write Operation ...............................69
           9.5.2. SCSI Read Operation ................................70
           9.5.3. Bidirectional Operation ............................70
   10. iSER Error Handling and Recovery ..............................71
      10.1. Error Handling ...........................................71
           10.1.1. Errors in the Transport Layer .....................71
           10.1.2. Errors in the RCaP Layer ..........................72
           10.1.3. Errors in the iSER Layer ..........................73
           10.1.4. Errors in the iSCSI Layer .........................75
      10.2. Error Recovery ...........................................76
           10.2.1. PDU Recovery ......................................77
           10.2.2. Connection Recovery ...............................77
   11. Security Considerations .......................................78
   12. IANA Considerations ...........................................79
   13. References ....................................................79
      13.1. Normative References .....................................79
      13.2. Informative References ...................................80
   Appendix A. Summary of Changes from RFC 5046 ......................81
   Appendix B. Message Format for iSER ...............................83
   B.1. iWARP Message Format for iSER Hello Message ..................83
   B.2. iWARP Message Format for iSER HelloReply Message .............84
   B.3. iSER Header Format for SCSI Read Command PDU .................85
   B.4. iSER Header Format for SCSI Write Command PDU ................86
   B.5. iSER Header Format for SCSI Response PDU .....................87
   Appendix C. Architectural discussion of iSER over InfiniBand ......88
   C.1. Host Side of iSCSI and iSER Connections in InfiniBand ........88
   C.2. Storage Side of iSCSI and iSER Mixed Network Environment .....89
   C.3. Discovery Processes for an InfiniBand Host ...................89
   C.4. IBTA Connection Specifications ...............................90
   Appendix D. Acknowledgments .......................................90
        
      8.2. Flow Control for RDMA Read Resources ......................61
      8.3. STag Management ...........................................62
           8.3.1. Allocation of STags ................................62
           8.3.2. Invalidation of STags ..............................62
   9. iSER Control and Data Transfer .................................64
      9.1. iSER Header Format ........................................64
      9.2. iSER Header Format for iSCSI Control-Type PDU .............65
      9.3. iSER Header Format for iSER Hello Message .................67
      9.4. iSER Header Format for iSER HelloReply Message ............68
      9.5. SCSI Data Transfer Operations .............................69
           9.5.1. SCSI Write Operation ...............................69
           9.5.2. SCSI Read Operation ................................70
           9.5.3. Bidirectional Operation ............................70
   10. iSER Error Handling and Recovery ..............................71
      10.1. Error Handling ...........................................71
           10.1.1. Errors in the Transport Layer .....................71
           10.1.2. Errors in the RCaP Layer ..........................72
           10.1.3. Errors in the iSER Layer ..........................73
           10.1.4. Errors in the iSCSI Layer .........................75
      10.2. Error Recovery ...........................................76
           10.2.1. PDU Recovery ......................................77
           10.2.2. Connection Recovery ...............................77
   11. Security Considerations .......................................78
   12. IANA Considerations ...........................................79
   13. References ....................................................79
      13.1. Normative References .....................................79
      13.2. Informative References ...................................80
   Appendix A. Summary of Changes from RFC 5046 ......................81
   Appendix B. Message Format for iSER ...............................83
   B.1. iWARP Message Format for iSER Hello Message ..................83
   B.2. iWARP Message Format for iSER HelloReply Message .............84
   B.3. iSER Header Format for SCSI Read Command PDU .................85
   B.4. iSER Header Format for SCSI Write Command PDU ................86
   B.5. iSER Header Format for SCSI Response PDU .....................87
   Appendix C. Architectural discussion of iSER over InfiniBand ......88
   C.1. Host Side of iSCSI and iSER Connections in InfiniBand ........88
   C.2. Storage Side of iSCSI and iSER Mixed Network Environment .....89
   C.3. Discovery Processes for an InfiniBand Host ...................89
   C.4. IBTA Connection Specifications ...............................90
   Appendix D. Acknowledgments .......................................90
        

Table of Figures

图表

   Figure 1. Example of iSCSI/iSER Layering in Full Feature Phase .....6
   Figure 2. iSER Header Format ......................................64
   Figure 3. iSER Header Format for iSCSI Control-Type PDU ...........65
   Figure 4. iSER Header Format for iSER Hello Message ...............67
   Figure 5. iSER Header Format for iSER HelloReply Message ..........68
   Figure 6. SendSE Message Containing an iSER Hello Message .........83
   Figure 7. SendSE Message Containing an iSER HelloReply Message ....84
   Figure 8. iSER Header Format for SCSI Read Command PDU ............85
   Figure 9. iSER Header Format for SCSI Write Command PDU ...........86
   Figure 10. iSER Header Format for SCSI Response PDU ...............87
   Figure 11. iSCSI and iSER on IB ...................................88
   Figure 12. Storage Controller with TCP, iWARP, and IB Connections .89
        
   Figure 1. Example of iSCSI/iSER Layering in Full Feature Phase .....6
   Figure 2. iSER Header Format ......................................64
   Figure 3. iSER Header Format for iSCSI Control-Type PDU ...........65
   Figure 4. iSER Header Format for iSER Hello Message ...............67
   Figure 5. iSER Header Format for iSER HelloReply Message ..........68
   Figure 6. SendSE Message Containing an iSER Hello Message .........83
   Figure 7. SendSE Message Containing an iSER HelloReply Message ....84
   Figure 8. iSER Header Format for SCSI Read Command PDU ............85
   Figure 9. iSER Header Format for SCSI Write Command PDU ...........86
   Figure 10. iSER Header Format for SCSI Response PDU ...............87
   Figure 11. iSCSI and iSER on IB ...................................88
   Figure 12. Storage Controller with TCP, iWARP, and IB Connections .89
        
1. Introduction
1. 介绍
1.1. Motivation
1.1. 动机

The iSCSI protocol ([iSCSI]) is a mapping of the SCSI Architecture Model (see [SAM5] and [iSCSI-SAM]) over the TCP protocol. SCSI commands are carried by iSCSI requests, and SCSI responses and status are carried by iSCSI responses. Other iSCSI protocol exchanges and SCSI Data are also transported in iSCSI PDUs.

iSCSI协议([iSCSI])是SCSI体系结构模型(请参阅[SAM5]和[iSCSI SAM])在TCP协议上的映射。SCSI命令由iSCSI请求承载,SCSI响应和状态由iSCSI响应承载。其他iSCSI协议交换和SCSI数据也在iSCSI PDU中传输。

Out-of-order TCP segments in the Traditional iSCSI model have to be stored and reassembled before the iSCSI protocol layer within an end node can place the data in the iSCSI buffers. This reassembly is required because not every TCP segment is likely to contain an iSCSI header to enable its placement and TCP itself does not have a built-in mechanism for signaling ULP (Upper Level Protocol) message boundaries to aid placement of out-of-order segments. This TCP reassembly at high network speeds is quite counterproductive for the following reasons: wasted memory bandwidth in data copying, need for reassembly memory, wasted CPU cycles in data copying, and the general store-and-forward latency from an application perspective.

在终端节点内的iSCSI协议层将数据放入iSCSI缓冲区之前,必须存储和重新组装传统iSCSI模型中的无序TCP段。之所以需要重新组装,是因为并非每个TCP段都可能包含一个iSCSI报头以支持其放置,而且TCP本身没有一个内置机制,用于向ULP(上层协议)消息边界发送信号以帮助放置无序段。这种在高网络速度下进行的TCP重组会产生相反的效果,原因如下:数据复制中浪费的内存带宽、重组内存的需要、数据复制中浪费的CPU周期,以及应用程序角度的一般存储和转发延迟。

The generic term RDMA-Capable Protocol (RCaP) is used to refer to protocol stacks that provide the Remote Direct Memory Access (RDMA) functionality, such as iWARP and InfiniBand.

通用术语支持RDMA的协议(RCaP)用于指提供远程直接内存访问(RDMA)功能的协议栈,如iWARP和InfiniBand。

With the availability of RDMA-Capable Controllers within a host system, it is appropriate for iSCSI to be able to exploit the direct data placement function of the RDMA-Capable Controller like other applications.

由于主机系统中提供了支持RDMA的控制器,iSCSI可以像其他应用程序一样利用支持RDMA的控制器的直接数据放置功能。

iSCSI Extensions for RDMA (iSER) is designed precisely to take advantage of generic RDMA technologies -- iSER's goal is to permit iSCSI to employ direct data placement and RDMA capabilities using a generic RDMA-Capable Controller. In summary, the iSCSI/iSER protocol stack is designed to enable scaling to high speeds by relying on a generic data placement process and RDMA technologies and products that enable direct data placement of both in-order and out-of-order data.

用于RDMA的iSCSI扩展(iSER)正是为了利用通用RDMA技术而设计的—iSER的目标是允许iSCSI使用支持RDMA的通用控制器来采用直接数据放置和RDMA功能。总之,iSCSI/iSER协议栈的设计目的是通过依赖通用数据放置过程以及RDMA技术和产品来实现高速扩展,这些技术和产品可以直接放置有序和无序数据。

This document describes iSER as a protocol extension to iSCSI, both for convenience of description and also because it is true in a very strict protocol sense. However, it is to be noted that iSER is in reality extending the connectivity of the iSCSI protocol defined in [iSCSI], and the name "iSER" reflects this reality.

本文档将iSER描述为iSCSI的协议扩展,这既是为了便于描述,也是因为它在非常严格的协议意义上是正确的。但是,需要注意的是,iSER实际上是在扩展[iSCSI]中定义的iSCSI协议的连接性,而名称“iSER”反映了这一现实。

When the iSCSI protocol as defined in [iSCSI] (i.e., without the iSER enhancements) is intended in the rest of the document, the term "Traditional iSCSI" is used to make the intention clear.

当本文档其余部分打算使用[iSCSI]中定义的iSCSI协议(即,没有iSeries增强功能)时,使用术语“传统iSCSI”来明确其意图。

This document obsoletes RFC 5046. See Appendix A for the list of changes from RFC 5046.

本文件废除RFC 5046。RFC 5046的变更清单见附录A。

1.2. iSCSI/iSER Layering
1.2. iSCSI/iSER分层

iSCSI Extensions for RDMA (iSER) is layered between the iSCSI layer and the RCaP layer.

RDMA的iSCSI扩展(iSER)分层在iSCSI层和RCaP层之间。

         +--------------------------------------------------------+
         |                        SCSI                            |
         +--------------------------------------------------------+
         |                        iSCSI                           |
   DI -> +--------------------------------------------------------+
         |                         iSER                           |
         +-------+--------------------------+---------------------+
         | RDMAP |                          |                     |
         +-------+      InfiniBand          |                     |
         |  DDP  |       Reliable           |       Other         |
         +-------+       Connected          |        RDMA         |
         |  MPA  |       Transport          |       Capable       |
         +-------+        Service           |       Protocol      |
         |  TCP  |                          |                     |
         +-------+--------------------------+---------------------+
         |  IP   | InfiniBand Network Layer | Other Network Layer |
         +-------+--------------------------+---------------------+
        
         +--------------------------------------------------------+
         |                        SCSI                            |
         +--------------------------------------------------------+
         |                        iSCSI                           |
   DI -> +--------------------------------------------------------+
         |                         iSER                           |
         +-------+--------------------------+---------------------+
         | RDMAP |                          |                     |
         +-------+      InfiniBand          |                     |
         |  DDP  |       Reliable           |       Other         |
         +-------+       Connected          |        RDMA         |
         |  MPA  |       Transport          |       Capable       |
         +-------+        Service           |       Protocol      |
         |  TCP  |                          |                     |
         +-------+--------------------------+---------------------+
         |  IP   | InfiniBand Network Layer | Other Network Layer |
         +-------+--------------------------+---------------------+
        

Figure 1: Example of iSCSI/iSER Layering in Full Feature Phase

图1:完整功能阶段的iSCSI/iSER分层示例

Figure 1 shows an example of the relationship between SCSI, iSCSI, iSER, and the different RCaP layers. For TCP, the RCaP is iWARP. For InfiniBand, the RCaP is the Reliable Connected Transport Service. Note that the iSCSI layer as described here supports the RDMA Extensions as used in iSER.

图1显示了SCSI、iSCSI、iSER和不同RCaP层之间关系的示例。对于TCP,RCaP是iWARP。对于InfiniBand,RCaP是可靠的连接传输服务。请注意,此处描述的iSCSI层支持iSER中使用的RDMA扩展。

1.3. Architectural Goals
1.3. 建筑目标

This section summarizes the architectural goals that guided the design of iSER.

本节总结了指导iSER设计的体系结构目标。

1. Provide an RDMA data transfer model for iSCSI that enables direct in-order or out-of-order data placement of SCSI data into pre-allocated SCSI buffers while maintaining in-order data delivery.

1. 提供一种用于iSCSI的RDMA数据传输模型,该模型支持将SCSI数据直接按顺序或按顺序放置到预先分配的SCSI缓冲区中,同时保持有序的数据传输。

2. Do not require any major changes to the SCSI Architecture Model [SAM5] and SCSI command set standards.

2. 不需要对SCSI体系结构模型[SAM5]和SCSI命令集标准进行任何重大更改。

3. Utilize the existing iSCSI infrastructure (sometimes referred to as "iSCSI ecosystem") including but not limited to MIB, bootstrapping, negotiation, naming and discovery, and security.

3. 利用现有的iSCSI基础架构(有时称为“iSCSI生态系统”),包括但不限于MIB、引导、协商、命名和发现以及安全性。

4. Enable a session to operate in the Traditional iSCSI data transfer mode if iSER is not supported by either the initiator or the target. (Do not require iSCSI Full Feature Phase interoperability between an end node operating in Traditional iSCSI mode and an end node operating in iSER-assisted mode.)

4. 如果启动器或目标不支持iSER,则启用会话以传统iSCSI数据传输模式运行。(在以传统iSCSI模式运行的终端节点和以iSER辅助模式运行的终端节点之间不需要iSCSI全功能阶段互操作性。)

5. Allow initiator and target implementations to utilize generic RDMA-Capable Controllers such as RNICs or to implement iSCSI and iSER in software. (Do not require iSCSI- or iSER-specific assists in the RCaP implementation or RDMA-Capable Controller.)

5. 允许启动器和目标实现使用支持RDMA的通用控制器(如RNIC),或在软件中实现iSCSI和iSER。(在RCaP实施或支持RDMA的控制器中,不需要特定于iSCSI或iSER的协助。)

6. Implement a lightweight Datamover protocol for iSCSI with minimal state maintenance.

6. 使用最少的状态维护为iSCSI实施轻量级Datamover协议。

1.4. Protocol Overview
1.4. 协议概述

Consistent with the architectural goals stated in Section 1.3, the iSER protocol does not require changes in the iSCSI ecosystem or any related SCSI specifications. The iSER protocol defines the mapping of iSCSI PDUs to RCaP Messages in such a way that it is entirely feasible to realize iSCSI/iSER implementations that are based on generic RDMA-Capable Controllers. The iSER protocol layer requires minimal state maintenance to assist a connection during the iSCSI Full Feature Phase, besides being oblivious to the notion of an iSCSI session. The crucial protocol aspects of iSER may be summarized as follows:

与第1.3节中所述的体系结构目标一致,iSER协议不需要更改iSCSI生态系统或任何相关的SCSI规范。iSER协议定义了iSCSI PDU到RCaP消息的映射,从而完全可以实现基于支持RDMA的通用控制器的iSCSI/iSER实现。iSER协议层除了不考虑iSCSI会话的概念外,还需要最少的状态维护来帮助在iSCSI完整功能阶段进行连接。iSER的关键协议方面可总结如下:

1. iSER-assisted mode is negotiated during the iSCSI login in the leading connection for each session, and an entire iSCSI session can only operate in one mode (i.e., a connection in a session cannot operate in iSER-assisted mode if a different connection of the same session is already in Full Feature Phase in the Traditional iSCSI mode).

1. iSER辅助模式在每个会话的主要连接中的iSCSI登录期间协商,并且整个iSCSI会话只能在一种模式下运行(即,如果同一会话的不同连接在传统iSCSI模式下已经处于全功能阶段,则会话中的连接不能在iSER辅助模式下运行)。

2. Once in iSER-assisted mode, all iSCSI interactions on that connection use RCaP Messages.

2. 一旦进入iSER辅助模式,该连接上的所有iSCSI交互都将使用RCaP消息。

3. A Send Message is used for carrying an iSCSI control-type PDU preceded by an iSER header. See Section 7.2 for more details on iSCSI control-type PDUs.

3. 发送消息用于承载前面带有iSER标头的iSCSI控制类型PDU。有关iSCSI控制类型PDU的更多详细信息,请参见第7.2节。

4. RDMA Write, RDMA Read Request, and RDMA Read Response Messages are used for carrying control and all data information associated with the iSCSI data-type PDUs (i.e., SCSI Data-In PDUs and R2T PDUs). iSER does not use SCSI Data-Out PDUs for solicited data, and SCSI Data-Out PDUs for unsolicited data are not treated as iSCSI data-type PDUs by iSER because RDMA is not used. See Section 7.1 for more details on iSCSI data-type PDUs.

4. RDMA写入、RDMA读取请求和RDMA读取响应消息用于承载与iSCSI数据类型PDU(即PDU和R2T PDU中的SCSI数据)相关的控制和所有数据信息。iSER不将SCSI数据输出PDU用于请求数据,并且iSER不将用于非请求数据的SCSI数据输出PDU视为iSCSI数据类型PDU,因为未使用RDMA。有关iSCSI数据类型PDU的更多详细信息,请参见第7.1节。

5. The target drives all data transfer (with the exception of iSCSI unsolicited data) for SCSI writes and SCSI reads, by issuing RDMA Read Requests and RDMA Writes, respectively.

5. 目标通过分别发出RDMA读取请求和RDMA写入,驱动SCSI写入和SCSI读取的所有数据传输(iSCSI未经请求的数据除外)。

6. RCaP is responsible for ensuring data integrity. (For example, iWARP includes a CRC-enhanced framing layer called MPA on top of TCP; and for InfiniBand, the CRCs are included in the Reliable Connection mode). For this reason, iSCSI header and data digests are negotiated to "None" for iSCSI/iSER sessions.

6. RCaP负责确保数据完整性。(例如,iWARP在TCP之上包括一个称为MPA的CRC增强帧层;对于InfiniBand,CRC包括在可靠连接模式中)。因此,iSCSI头和数据摘要对于iSCSI/iSER会话协商为“无”。

7. The iSCSI error recovery hierarchy defined in [iSCSI] is fully supported by iSER. (However, see Section 7.3.11 on the handling of SNACK Request PDUs.)

7. iSER完全支持[iSCSI]中定义的iSCSI错误恢复层次结构。(但是,请参见第7.3.11节关于零食请求PDU的处理。)

8. iSER requires no changes to iSCSI security and text mode negotiation mechanisms.

8. iSER不需要更改iSCSI安全和文本模式协商机制。

Note that Traditional iSCSI implementations may have to be adapted to employ iSER. It is expected that the adaptation when required is likely to be centered around the upper-layer interface requirements of iSER (Section 3).

请注意,传统的iSCSI实施可能必须进行调整以使用iSER。预计需要时的适配可能以iSER的上层接口需求为中心(第3节)。

1.5. RDMA Services and iSER
1.5. RDMA服务和iSER

iSER is designed to work with software and/or hardware protocol stacks providing the protocol services defined in RCaP documents such as [RDMAP], [IB], etc. The following subsections describe the key protocol elements of RCaP services on which iSER relies.

iSER设计用于使用软件和/或硬件协议栈,提供RCaP文档(如[RDMAP]、[IB]等)中定义的协议服务。以下小节描述iSER所依赖的RCaP服务的关键协议元素。

1.5.1. STag
1.5.1. 雄鹿

An STag is the identifier of an I/O Buffer unique to an RDMA-Capable Controller that the iSER layer Advertises to the remote iSCSI/iSER node in order to complete a SCSI I/O.

STag是支持RDMA的控制器特有的I/O缓冲区的标识符,iSER层向远程iSCSI/iSER节点播发该控制器,以完成SCSI I/O。

In iSER, Advertisement is the act of informing the target by the initiator that an I/O Buffer is available at the initiator for RDMA Read or RDMA Write access by the target. The initiator Advertises the I/O Buffer by including the STag and the Base Offset in the header of an iSER Message containing the SCSI Command PDU to the target. The buffer length is as specified in the SCSI Command PDU.

在iSER中,播发是由发起方通知目标方在发起方有I/O缓冲区可供目标方进行RDMA读或RDMA写访问的行为。启动器通过在包含SCSI命令PDU的iSER消息头中包含STag和基偏移量来播发I/O缓冲区到目标。缓冲区长度在SCSI命令PDU中指定。

The iSER layer at the initiator Advertises the STag and the Base Offset for the I/O Buffer of each SCSI I/O to the iSER layer at the target in the iSER header of a Send Message containing the SCSI Command PDU, unless the I/O can be completely satisfied by unsolicited data alone. The SendSE Message should be used if supported by the RCaP layer (e.g., iWARP).

启动器处的iSER层在包含SCSI命令PDU的发送消息的iSER报头中将每个SCSI I/O的I/O缓冲区的STag和基偏移播发到目标处的iSER层,除非仅通过未经请求的数据即可完全满足I/O。如果RCaP层(如iWARP)支持,则应使用SendSE消息。

The iSER layer at the target provides the STag for the I/O Buffer that is the Data Sink of an RDMA Read Operation (Section 1.5.4) to the RCaP layer on the initiator node -- i.e., this is completely transparent to the iSER layer at the initiator.

目标端的iSER层为作为RDMA读取操作(第1.5.4节)的数据接收器的I/O缓冲区向发起方节点上的RCaP层提供STag——即,这对发起方端的iSER层是完全透明的。

The iSER layer at the initiator SHOULD invalidate the Advertised STag upon a normal completion of the associated task. The Send with Invalidate Message, if supported by the RCaP layer (e.g., iWARP), can be used for automatic invalidation when it is used to carry the SCSI Response PDU. There are two exceptions to this automatic invalidation -- bidirectional commands and abnormal completion of a command. The iSER layer at the initiator SHOULD explicitly invalidate the STag in these two cases. That iSER layer MUST check that STag invalidation has occurred whenever receipt of a Send with Invalidate message is the expected means of causing an STag to be invalidated, and it MUST perform the STag invalidation if the STag has not already been invalidated (e.g., because a Send Message was used instead of Send with Invalidate).

启动器处的iSER层应在相关任务正常完成时使播发的STag无效。如果RCaP层(例如iWARP)支持发送带失效消息,则当它用于承载SCSI响应PDU时,可用于自动失效。这种自动失效有两个例外——双向命令和命令异常完成。在这两种情况下,启动器处的iSER层应该显式地使STag无效。iSER层必须检查STag失效是否已发生,只要接收到带失效的发送消息是导致STag失效的预期方式,并且如果STag尚未失效(例如,因为使用了发送消息而不是带失效的发送消息),iSER层必须执行STag失效。

If the Advertised STag is not invalidated as recommended in the foregoing paragraph (e.g., in order to cache the STag for future reuse), the I/O Buffer remains exposed to the network for access by the RCaP. Such an I/O Buffer is capable of being read or written by the RCaP outside the scope of the iSCSI operation for which it was originally established; this fact has both robustness and security considerations. The robustness considerations are that the system containing the iSER initiator may react poorly to an unexpected modification of its memory. For the security considerations, see Section 11.

如果公布的STag没有按照前面段落中的建议失效(例如,为了缓存STag以供将来重用),则I/O缓冲区仍然暴露于网络以供RCaP访问。这种I/O缓冲区能够由RCaP在最初为其建立的iSCSI操作范围之外读取或写入;这一事实同时考虑了健壮性和安全性。健壮性考虑是,包含iSER启动器的系统可能对其内存的意外修改反应不良。有关安全方面的考虑,请参见第11节。

1.5.2. Send
1.5.2. 邮寄

Send is the RDMA Operation that is not addressed to an Advertised buffer and uses Untagged buffers as the message is received.

Send是一种RDMA操作,它不寻址到播发的缓冲区,并在接收消息时使用未标记的缓冲区。

The iSER layer at the initiator uses the Send Operation to transmit any iSCSI control-type PDU to the target. As an example, the initiator uses Send Operations to transfer iSER Messages containing SCSI Command PDUs to the iSER layer at the target.

启动器处的iSER层使用发送操作将任何iSCSI控制类型的PDU传输到目标。例如,启动器使用发送操作将包含SCSI命令PDU的iSER消息传输到目标的iSER层。

An iSER layer at the target uses the Send Operation to transmit any iSCSI control-type PDU to the initiator. As an example, the target uses Send Operations to transfer iSER Messages containing SCSI Response PDUs to the iSER layer at the initiator.

目标位置的iSER层使用发送操作将任何iSCSI控制类型的PDU传输到启动器。例如,目标使用发送操作将包含SCSI响应PDU的iSER消息传输到启动器的iSER层。

For interoperability, iSER implementations SHOULD accept and correctly process SendSE and SendInvSE messages. However, SendSE and SendInvSE messages are to be regarded as optimizations or enhancements to the basic Send Message, and their support may vary by RCaP protocol and specific implementation. In general, these messages SHOULD NOT be used, unless the RCaP requires support for them in all implementations. If these messages are used, the implementation SHOULD be capable of reverting to use of Send in order to work with a receiver that does not support these messages. Attempted use of these messages with a peer that does not support them may result in a fatal error that closes the RCaP connection. For example, these messages SHOULD NOT be used with the InfiniBand RCaP because InfiniBand does not require support for them in all cases. New iSER implementations SHOULD use Send (and not SendSE or SendInvSE) unless there are compelling reasons for doing otherwise. Similarly, iSER implementations SHOULD NOT rely on events triggered by SendSE and SendInvSE, as these messages may not be used.

为了实现互操作性,iSER实现应该接受并正确处理SendSE和SendInvSE消息。但是,SendSE和SendInvSE消息被视为对基本发送消息的优化或增强,它们的支持可能因RCaP协议和具体实现而异。通常,不应使用这些消息,除非RCaP要求在所有实现中支持这些消息。如果使用了这些消息,则实现应该能够恢复到使用Send,以便与不支持这些消息的接收器一起工作。试图将这些消息用于不支持它们的对等方可能会导致致命错误,从而关闭RCaP连接。例如,这些消息不应与InfiniBand RCaP一起使用,因为InfiniBand并不要求在所有情况下都支持它们。新的iSER实现应该使用Send(而不是SendSE或SendInvSE),除非有令人信服的理由这样做。类似地,iSER实现不应依赖于SendSE和SendInvSE触发的事件,因为这些消息可能不会被使用。

1.5.3. RDMA Write
1.5.3. RDMA写入

RDMA Write is the RDMA Operation that is used to place data into an Advertised buffer at the Data Sink. The Data Source addresses the Message using an STag and a Tagged Offset that are valid on the Data Sink.

RDMA写入是RDMA操作,用于将数据放入数据接收器的播发缓冲区。数据源使用在数据接收器上有效的STag和标记偏移量对消息进行寻址。

The iSER layer at the target uses the RDMA Write Operation to transfer the contents of a local I/O Buffer to an Advertised I/O Buffer at the initiator. The iSER layer at the target uses the RDMA Write to transfer the whole data or part of the data required to complete a SCSI Read command.

目标端的iSER层使用RDMA写操作将本地I/O缓冲区的内容传输到发起端的播发I/O缓冲区。目标服务器的iSER层使用RDMA写入来传输完成SCSI读取命令所需的全部或部分数据。

The iSER layer at the initiator does not employ RDMA Writes.

启动器处的iSER层不采用RDMA写入。

1.5.4. RDMA Read
1.5.4. RDMA读取

RDMA Read is the RDMA Operation that is used to retrieve data from an Advertised buffer at the Data Source. The sender of the RDMA Read Request addresses the Message using an STag and a Tagged Offset that are valid on the Data Source in addition to providing a valid local STag and Tagged Offset that identify the Data Sink.

RDMA Read是用于从数据源的播发缓冲区检索数据的RDMA操作。RDMA读取请求的发送方使用在数据源上有效的STag和标记偏移量对消息进行寻址,此外还提供识别数据接收器的有效本地STag和标记偏移量。

The iSER layer at the target uses the RDMA Read Operation to transfer the contents of an Advertised I/O Buffer at the initiator to a local I/O Buffer at the target. The iSER layer at the target uses the RDMA Read to fetch whole or part of the data required to complete a SCSI Write Command.

目标端的iSER层使用RDMA读取操作将发起端的播发I/O缓冲区的内容传输到目标端的本地I/O缓冲区。目标的iSER层使用RDMA Read获取完成SCSI写入命令所需的全部或部分数据。

The iSER layer at the initiator does not employ RDMA Reads.

启动器处的iSER层不采用RDMA读取。

1.6. SCSI Read Overview
1.6. SCSI读取概述

The iSER layer at the initiator receives the SCSI Command PDU from the iSCSI layer. The iSER layer at the initiator generates an STag for the I/O Buffer of the SCSI Read and Advertises the buffer by including the STag and the Base Offset as part of the iSER header for the PDU. The iSER Message is transferred to the target using a Send Message. The SendSE Message should be used if supported by the RCaP layer (e.g., iWARP).

启动器处的iSER层从iSCSI层接收SCSI命令PDU。启动器处的iSER层为SCSI读取的I/O缓冲区生成STag,并通过将STag和基偏移量作为PDU iSER头的一部分来播发缓冲区。iSER消息使用发送消息传输到目标。如果RCaP层(如iWARP)支持,则应使用SendSE消息。

The iSER layer at the target uses one or more RDMA Writes to transfer the data required to complete the SCSI Read.

目标的iSER层使用一个或多个RDMA写入来传输完成SCSI读取所需的数据。

The iSER layer at the target uses a Send Message to transfer the SCSI Response PDU back to the iSER layer at the initiator. The iSER layer at the initiator invalidates the STag and notifies the iSCSI layer of

目标端的iSER层使用发送消息将SCSI响应PDU传输回启动器端的iSER层。启动器处的iSER层使STag无效,并通知iSCSI层

the availability of the SCSI Response PDU. The Send with Invalidate Message, if supported by the RCaP layer (e.g., iWARP), can be used for automatic invalidation of the STag.

SCSI响应PDU的可用性。如果RCaP层(如iWARP)支持,则发送失效消息可用于STag的自动失效。

1.7. SCSI Write Overview
1.7. SCSI写入概述

The iSER layer at the initiator receives the SCSI Command PDU from the iSCSI layer. If solicited data transfer is involved, the iSER layer at the initiator generates an STag for the I/O Buffer of the SCSI Write and Advertises the buffer by including the STag and the Base Offset as part of the iSER header for the PDU. The iSER Message is transferred to the target using a Send Message. The SendSE Message should be used if supported by the RCaP layer (e.g., iWARP).

启动器处的iSER层从iSCSI层接收SCSI命令PDU。如果涉及请求的数据传输,则启动器处的iSER层为SCSI写入的I/O缓冲区生成STag,并通过将STag和基偏移量作为PDU iSER头的一部分来播发缓冲区。iSER消息使用发送消息传输到目标。如果RCaP层(如iWARP)支持,则应使用SendSE消息。

The iSER layer at the initiator may optionally send one or more non-immediate unsolicited data PDUs to the target using Send Messages.

启动器处的iSER层可以使用发送消息选择性地向目标发送一个或多个非即时非请求数据PDU。

If solicited data transfer is involved, the iSER layer at the target uses one or more RDMA Reads to transfer the data required to complete the SCSI Write.

如果涉及请求的数据传输,目标的iSER层将使用一个或多个RDMA读取来传输完成SCSI写入所需的数据。

The iSER layer at the target uses a Send Message to transfer the SCSI Response PDU back to the iSER layer at the initiator. The iSER layer at the initiator invalidates the STag and notifies the iSCSI layer of the availability of the SCSI Response PDU. The Send with Invalidate Message, if supported by the RCaP layer (e.g., iWARP), can be used for automatic invalidation of the STag.

目标端的iSER层使用发送消息将SCSI响应PDU传输回启动器端的iSER层。启动器处的iSER层使STag失效,并通知iSCSI层SCSI响应PDU的可用性。如果RCaP层(如iWARP)支持,则发送失效消息可用于STag的自动失效。

2. Definitions and Acronyms
2. 定义和首字母缩略词
2.1. Definitions
2.1. 定义

Advertisement (Advertised, Advertise, Advertisements, Advertises) -- The act of informing a remote iSER (iSCSI Extensions for RDMA) layer that a local node's buffer is available to it. A node makes a buffer available for incoming RDMA Read Request Message or incoming RDMA Write Message access by informing the remote iSER layer of the Tagged Buffer identifiers (STag, Base Offset, and buffer length). Note that this Advertisement of Tagged Buffer information is the responsibility of the iSER layer on either end and is not defined by the RDMA-Capable Protocol. A typical method would be for the iSER layer to embed the Tagged Buffer's STag, Base Offset, and buffer length in a message destined for the remote iSER layer.

播发(播发、播发、播发、播发)--通知远程iSER(RDMA的iSCSI扩展)层本地节点的缓冲区可用的行为。节点通过向远程iSER层通知标记的缓冲区标识符(STag、基偏移量和缓冲区长度),使缓冲区可用于传入RDMA读取请求消息或传入RDMA写入消息访问。请注意,标记缓冲区信息的发布是两端iSER层的责任,不由支持RDMA的协议定义。典型的方法是iSER层将标记缓冲区的STag、基偏移量和缓冲区长度嵌入到发送给远程iSER层的消息中。

Base Offset - A value when added to the Buffer Offset forms the Tagged Offset.

基本偏移量-添加到缓冲区偏移量时形成标记偏移量的值。

Completion (Completed, Complete, Completes) - Completion is defined as the process by which the RDMA-Capable Protocol layer informs the iSER layer that a particular RDMA Operation has performed all functions specified for the RDMA Operation.

完成(Completed,Complete,Completed)-完成定义为支持RDMA的协议层通知iSER层特定RDMA操作已执行为RDMA操作指定的所有功能的过程。

Connection - A connection is a logical bidirectional communication channel between the initiator and the target, e.g., a TCP connection. Communication between the initiator and the target occurs over one or more connections. The connections carry control messages, SCSI commands, parameters, and data within iSCSI Protocol Data Units (iSCSI PDUs).

连接-连接是启动器和目标之间的逻辑双向通信通道,例如TCP连接。启动器和目标之间的通信通过一个或多个连接进行。这些连接在iSCSI协议数据单元(iSCSI PDU)中承载控制消息、SCSI命令、参数和数据。

Connection Handle - An information element that identifies the particular iSCSI connection and is unique for a given iSCSI layer and the underlying iSER layer. Every invocation of an Operational Primitive is qualified with the Connection Handle.

连接句柄—标识特定iSCSI连接的信息元素,对于给定iSCSI层和底层iSER层是唯一的。操作原语的每次调用都使用连接句柄限定。

Data Sink - The peer receiving a data payload. Note that the Data Sink can be required to both send and receive RCaP (RDMA-Capable Protocol) Messages to transfer a data payload.

数据接收器-接收数据有效负载的对等方。请注意,数据接收器可能需要发送和接收RCaP(支持RDMA的协议)消息以传输数据有效负载。

Data Source - The peer sending a data payload. Note that the Data Source can be required to both send and receive RCaP Messages to transfer a data payload.

数据源-发送数据有效负载的对等方。请注意,可以要求数据源发送和接收RCaP消息以传输数据有效负载。

Datamover Interface (DI) - The interface between the iSCSI layer and the Datamover Layer as described in [DA].

Datamover接口(DI)-iSCSI层和Datamover层之间的接口,如[DA]中所述。

Datamover Layer - A layer that is directly below the iSCSI layer and above the underlying transport layers. This layer exposes and uses a set of transport-independent Operational Primitives for the communication between the iSCSI layer and itself. The Datamover layer, operating in conjunction with the transport layers, moves the control and data information on the iSCSI connection. In this specification, the iSER layer is the Datamover layer.

Datamover层—位于iSCSI层正下方和底层传输层之上的层。该层公开并使用一组独立于传输的操作原语,用于iSCSI层与自身之间的通信。Datamover层与传输层一起工作,移动iSCSI连接上的控制和数据信息。在本规范中,iSER层是Datamover层。

Datamover Protocol - A Datamover protocol is the wire protocol that is defined to realize the Datamover-layer functionality. In this specification, the iSER protocol is the Datamover protocol.

Datamover协议—Datamover协议是为实现Datamover层功能而定义的有线协议。在本规范中,iSER协议是Datamover协议。

Inbound RDMA Read Queue Depth (IRD) - The maximum number of incoming outstanding RDMA Read Requests that the RDMA-Capable Controller can handle on a particular RCaP Stream at the Data Source. For some RDMA-Capable Protocol layers, the term "IRD" may be known by a different name. For example, for InfiniBand, the equivalent to IRD is the Responder Resources.

Inbound RDMA Read Queue Depth(IRD)—支持RDMA的控制器可以在数据源的特定RCaP流上处理的最大未完成RDMA读取请求数。对于一些支持RDMA的协议层,术语“IRD”可以用不同的名称来表示。例如,对于InfiniBand,与IRD等效的是响应者资源。

I/O Buffer - A buffer that is used in a SCSI Read or Write operation so SCSI data may be sent from or received into that buffer.

I/O缓冲区—在SCSI读写操作中使用的缓冲区,以便SCSI数据可以从该缓冲区发送或接收。

iSCSI - The iSCSI protocol as defined in [iSCSI] is a mapping of the SCSI Architecture Model of SAM-5 over TCP.

iSCSI—在[iSCSI]中定义的iSCSI协议是SAM-5的SCSI体系结构模型在TCP上的映射。

iSCSI control-type PDU - Any iSCSI PDU that is not an iSCSI data-type PDU and also not a SCSI Data-Out PDU carrying solicited data is defined as an iSCSI control-type PDU. Specifically, it is to be noted that SCSI Data-Out PDUs for unsolicited data are defined as iSCSI control-type PDUs.

iSCSI控制类型PDU—任何不是iSCSI数据类型PDU,也不是承载请求数据的SCSI数据输出PDU的iSCSI PDU都定义为iSCSI控制类型PDU。具体而言,需要注意的是,用于非请求数据的SCSI数据输出PDU被定义为iSCSI控制类型PDU。

iSCSI data-type PDU - An iSCSI data-type PDU is defined as an iSCSI PDU that causes data transfer via RDMA operations at the iSER layer, transparent to the remote iSCSI layer, to take place between the peer iSCSI nodes on a Full Feature Phase iSCSI connection. An iSCSI data-type PDU, when requested for transmission by the sender iSCSI layer, results in the associated data transfer without the participation of the remote iSCSI layer, i.e., the PDU itself is not delivered as-is to the remote iSCSI layer. The following iSCSI PDUs constitute the set of iSCSI data-type PDUs -- SCSI Data-In PDU and R2T PDU.

iSCSI数据类型PDU—iSCSI数据类型PDU定义为iSCSI PDU,它通过iSER层的RDMA操作(对远程iSCSI层透明)在全功能阶段iSCSI连接上的对等iSCSI节点之间进行数据传输。当发送方iSCSI层请求传输iSCSI数据类型PDU时,会导致相关数据传输而无需远程iSCSI层参与,即PDU本身不会按原样传送到远程iSCSI层。以下iSCSI PDU构成了一组iSCSI数据类型PDU——PDU和R2T PDU中的SCSI数据。

iSCSI Layer - A layer in the protocol stack implementation within an end node that implements the iSCSI protocol and interfaces with the iSER layer via the Datamover Interface.

iSCSI层—终端节点内协议栈实现中的一层,用于实现iSCSI协议并通过Datamover接口与iSER层接口。

iSCSI PDU (iSCSI Protocol Data Unit) - The iSCSI layer at the initiator and the iSCSI layer at the target divide their communications into messages. The term "iSCSI Protocol Data Unit" (iSCSI PDU) is used for these messages.

iSCSI PDU(iSCSI协议数据单元)—启动器的iSCSI层和目标的iSCSI层将其通信划分为消息。术语“iSCSI协议数据单元”(iSCSI PDU)用于这些消息。

iSCSI/iSER Connection - An iSER-assisted iSCSI connection. An iSCSI connection that is not iSER assisted always maps onto a TCP connection at the transport level. But an iSER-assisted iSCSI connection may not have an underlying TCP connection. For some RCaP implementations (e.g., iWARP), an iSER-assisted iSCSI connection has an underlying TCP connection. For other RCaP implementations (e.g., InfiniBand), there is no underlying TCP connection. (In the specific example of InfiniBand [IB], an iSER-assisted iSCSI connection is directly mapped onto the InfiniBand Reliable Connection-based (RC) channel.)

iSCSI/iSER连接—iSER辅助的iSCSI连接。非iSER辅助的iSCSI连接始终在传输级别映射到TCP连接。但是iSER辅助的iSCSI连接可能没有底层TCP连接。对于某些RCaP实现(例如iWARP),iSER辅助的iSCSI连接具有底层TCP连接。对于其他RCaP实现(例如InfiniBand),没有底层TCP连接。(在InfiniBand[IB]的特定示例中,iSER辅助的iSCSI连接直接映射到InfiniBand可靠连接(RC)通道。)

iSCSI/iSER Session - An iSER-assisted iSCSI session. All connections of an iSCSI/iSER session are iSCSI/iSER connections.

iSCSI/iSER会话—iSER辅助的iSCSI会话。iSCSI/iSER会话的所有连接都是iSCSI/iSER连接。

iSER - iSCSI Extensions for RDMA, the protocol defined in this document.

iSER-用于RDMA的iSCSI扩展,本文档中定义的协议。

iSER-assisted - A term generally used to describe the operation of iSCSI when the iSER functionality is also enabled below the iSCSI layer for the specific iSCSI/iSER connection in question.

iSER辅助—一个术语,通常用于描述在特定iSCSI/iSER连接的iSCSI层下启用iSER功能时的iSCSI操作。

iSER-IRD - This variable represents the maximum number of incoming outstanding RDMA Read Requests that the iSER layer at the initiator grants on a particular RCaP Stream.

iSER IRD-此变量表示启动器的iSER层在特定RCaP流上授予的最大传入未完成RDMA读取请求数。

iSER-ORD - This variable represents the maximum number of outstanding RDMA Read Requests that the iSER layer can initiate on a particular RCaP Stream. This variable is maintained only by the iSER layer at the target.

iSER ORD-此变量表示iSER层可以在特定RCaP流上启动的未完成RDMA读取请求的最大数量。此变量仅由目标的iSER层维护。

iSER Layer - The layer that implements the iSCSI Extensions for RDMA (iSER) protocol.

iSER层—实现RDMA(iSER)协议的iSCSI扩展的层。

iWARP - A suite of wire protocols comprising of [RDMAP], [DDP], and [MPA] when layered above [TCP]. [RDMAP] and [DDP] may be layered above SCTP or other transport protocols.

iWARP—一套有线协议,在[TCP]之上分层时由[RDMAP]、[DDP]和[MPA]组成。[RDMAP]和[DDP]可以分层在SCTP或其他传输协议之上。

Local Mapping - A task state record maintained by the iSER layer that associates the Initiator Task Tag to the Local STag(s). The specifics of the record structure are implementation dependent.

本地映射—iSER层维护的任务状态记录,它将启动器任务标记与本地STag关联。记录结构的细节取决于实现。

Local Peer - The implementation of the RDMA-Capable Protocol on the local end of the connection. Used to refer to the local entity when describing protocol exchanges or other interactions between two nodes.

本地对等-在连接的本地端实现支持RDMA的协议。在描述两个节点之间的协议交换或其他交互时,用于引用本地实体。

Node - A computing device attached to one or more links of a network. A node in this context does not refer to a specific application or protocol instantiation running on the computer. A node may consist of one or more RDMA-Capable Controllers installed in a host computer.

节点-连接到网络的一个或多个链路的计算设备。此上下文中的节点不引用计算机上运行的特定应用程序或协议实例化。节点可以由安装在主机中的一个或多个支持RDMA的控制器组成。

Operational Primitive - An Operational Primitive is an abstract functional interface procedure that requests another layer to perform a specific action on the requestor's behalf or notifies the other layer of some event. The Datamover Interface between an iSCSI layer and a Datamover layer within an iSCSI end node uses a set of Operational Primitives to define the functional interface between the two layers. Note that not every invocation of an Operational Primitive may elicit a response from the requested layer. A full discussion of the Operational Primitive types and request-response semantics available to iSCSI and iSER can be found in [DA].

操作原语-操作原语是一个抽象的功能接口过程,它请求另一层代表请求者执行特定操作,或通知另一层某个事件。iSCSI层和iSCSI终端节点内的Datamover层之间的Datamover接口使用一组操作原语定义两层之间的功能接口。请注意,并不是每次调用操作原语都会从请求的层引发响应。有关iSCSI和iSER可用的操作原语类型和请求-响应语义的完整讨论,请参见[DA]。

Outbound RDMA Read Queue Depth (ORD) - The maximum number of outstanding RDMA Read Requests that the RDMA-Capable Controller can initiate on a particular RCaP Stream at the Data Sink. For some RDMA-Capable Protocol layer, the term "ORD" may be known by a different name. For example, for InfiniBand, the equivalent to ORD is the Initiator Depth.

Outbound RDMA Read Queue Depth(ORD)-支持RDMA的控制器可以在数据接收器的特定RCaP流上启动的未完成RDMA读取请求的最大数量。对于一些支持RDMA的协议层,术语“ORD”可以用不同的名称来表示。例如,对于InfiniBand,与ORD等效的是启动器深度。

Phase Collapse - Refers to the optimization in iSCSI where the SCSI status is transferred along with the final SCSI Data-In PDU from a target. See Section 4.2 in [iSCSI].

阶段崩溃-指iSCSI中的优化,其中SCSI状态与PDU中来自目标的最终SCSI数据一起传输。请参见[iSCSI]中的第4.2节。

RCaP Message - One or more packets of the network layer that constitute a single RDMA operation or a part of an RDMA Read Operation of the RDMA-Capable Protocol. For iWARP, an RCaP Message is known as an RDMAP Message.

RCaP消息-构成单个RDMA操作或支持RDMA协议的RDMA读取操作的一部分的网络层的一个或多个数据包。对于iWARP,RCaP消息称为RDMAP消息。

RCaP Stream - A single bidirectional association between the peer RDMA-Capable Protocol layers on two nodes over a single transport-level stream. For iWARP, an RCaP Stream is known as an RDMAP Stream, and the association is created following a successful Login Phase during which iSER support is negotiated.

RCaP流-在单个传输级流上,两个节点上支持RDMA的对等协议层之间的单个双向关联。对于iWARP,RCaP流被称为RDMAP流,关联是在成功登录阶段之后创建的,在此阶段,iSER支持被协商。

RDMA-Capable Protocol (RCaP) - The protocol or protocol suite that provides a reliable RDMA transport functionality, e.g., iWARP, InfiniBand, etc.

支持RDMA的协议(RCaP)-提供可靠RDMA传输功能的协议或协议套件,例如iWARP、InfiniBand等。

RDMA-Capable Controller - A network I/O adapter or embedded controller with RDMA functionality. For example, for iWARP, this could be an RNIC, and for InfiniBand, this could be a HCA (Host Channel Adapter) or TCA (Target Channel Adapter).

支持RDMA的控制器-具有RDMA功能的网络I/O适配器或嵌入式控制器。例如,对于iWARP,这可能是一个RNIC,对于InfiniBand,这可能是一个HCA(主机通道适配器)或TCA(目标通道适配器)。

RDMA-enabled Network Interface Controller (RNIC) - A network I/O adapter or embedded controller with iWARP functionality.

支持RDMA的网络接口控制器(RNIC)-具有iWARP功能的网络I/O适配器或嵌入式控制器。

RDMA Operation - A sequence of RCaP Messages, including control messages, to transfer data from a Data Source to a Data Sink. The following RDMA Operations are defined -- RDMA Write Operation, RDMA Read Operation, and Send Operation.

RDMA操作-一系列RCaP消息,包括控制消息,用于将数据从数据源传输到数据接收器。定义了以下RDMA操作——RDMA写操作、RDMA读操作和发送操作。

RDMA Protocol (RDMAP) - A wire protocol that supports RDMA Operations to transfer ULP data between a Local Peer and the Remote Peer as described in [RDMAP].

RDMA协议(RDMAP)-一种支持RDMA操作的有线协议,用于在本地对等方和远程对等方之间传输ULP数据,如[RDMAP]中所述。

RDMA Read Operation - An RDMA Operation used by the Data Sink to transfer the contents of a Data Source buffer from the Remote Peer to a Data Sink buffer at the Local Peer. An RDMA Read operation consists of a single RDMA Read Request Message and a single RDMA Read Response Message.

RDMA读取操作—数据接收器使用的一种RDMA操作,用于将数据源缓冲区的内容从远程对等方传输到本地对等方的数据接收器缓冲区。RDMA读取操作由单个RDMA读取请求消息和单个RDMA读取响应消息组成。

RDMA Read Request - An RCaP Message used by the Data Sink to request the Data Source to transfer the contents of a buffer. The RDMA Read Request Message describes both the Data Source and the Data Sink buffers.

RDMA Read Request—数据接收器用于请求数据源传输缓冲区内容的RCaP消息。RDMA读取请求消息描述数据源和数据接收器缓冲区。

RDMA Read Response - An RCaP Message used by the Data Source to transfer the contents of a buffer to the Data Sink, in response to an RDMA Read Request. The RDMA Read Response Message only describes the Data Sink buffer.

RDMA Read Response(RDMA读取响应)—数据源用于响应RDMA读取请求,将缓冲区内容传输到数据接收器的RCaP消息。RDMA读取响应消息仅描述数据接收器缓冲区。

RDMA Write Operation - An RDMA Operation used by the Data Source to transfer the contents of a Data Source buffer from the Local Peer to a Data Sink buffer at the Remote Peer. The RDMA Write Message only describes the Data Sink buffer.

RDMA写入操作—数据源用于将数据源缓冲区的内容从本地对等方传输到远程对等方的数据接收器缓冲区的RDMA操作。RDMA写入消息仅描述数据接收器缓冲区。

Remote Direct Memory Access (RDMA) - A method of accessing memory on a remote system in which the local system specifies the remote location of the data to be transferred. Employing an RDMA-Capable Controller in the remote system allows the access to take place without interrupting the processing of the CPU(s) on the system.

远程直接内存访问(RDMA)—一种访问远程系统内存的方法,其中本地系统指定要传输的数据的远程位置。在远程系统中使用支持RDMA的控制器允许在不中断系统上CPU处理的情况下进行访问。

Remote Mapping - A task state record maintained by the iSER layer that associates the Initiator Task Tag to the Advertised STag(s) and the Base Offset(s). The specifics of the record structure are implementation dependent.

远程映射—由iSER层维护的任务状态记录,它将启动器任务标记与播发的STag和基本偏移量相关联。记录结构的细节取决于实现。

Remote Peer - The implementation of the RDMA-Capable Protocol on the opposite end of the connection. Used to refer to the remote entity when describing protocol exchanges or other interactions between two nodes.

远程对等-在连接的另一端实现支持RDMA的协议。在描述两个节点之间的协议交换或其他交互时,用于指代远程实体。

SCSI Layer - This layer builds/receives SCSI CDBs (Command Descriptor Blocks) and sends/receives them with the remaining command execute [SAM5] parameters to/from the iSCSI layer.

SCSI层—此层构建/接收SCSI CDB(命令描述符块),并将其与剩余的命令执行[SAM5]参数一起发送/接收到iSCSI层。

Send - An RDMA Operation that transfers the content of a buffer from the Local Peer to an untagged buffer at the Remote Peer.

发送-一种RDMA操作,将缓冲区的内容从本地对等方传输到远程对等方的未标记缓冲区。

SendInvSE Message - A Send with Solicited Event and Invalidate Message.

SendInvSE消息-包含请求事件和无效消息的发送。

SendSE Message - A Send with Solicited Event Message.

SendSE Message-发送请求的事件消息。

Sequence Number (SN) - DataSN for a SCSI Data-In PDU and R2TSN for an R2T PDU. The semantics for both types of sequence numbers are as defined in [iSCSI].

序列号(SN)-PDU中SCSI数据的DataSN和R2T PDU的R2TSN。这两种序列号的语义如[iSCSI]中所定义。

Session, iSCSI Session - The group of connections that link an initiator SCSI port with a target SCSI port form an iSCSI session (equivalent to a SCSI Initiator-Target (I-T) nexus). Connections can be added to and removed from a session even while the I-T nexus is intact. Across all connections within a session, an initiator sees one and the same target.

会话,iSCSI会话—将启动器SCSI端口与目标SCSI端口链接起来形成iSCSI会话的连接组(相当于SCSI启动器目标(I-T)nexus)。即使I-T连接完好无损,也可以在会话中添加和删除连接。在会话中的所有连接中,启动器都会看到同一个目标。

Steering Tag (STag) - An identifier of a Tagged Buffer on a node (Local or Remote) as defined in [RDMAP] and [DDP]. For other RDMA-Capable Protocols, the Steering Tag may be known by different names but will be referred to herein as STags. For example, for InfiniBand, a Remote STag is known as an R-Key, and a Local STag is known as an L-Key, and both will be considered STags.

转向标签(STag)-[RDMAP]和[DDP]中定义的节点(本地或远程)上标记缓冲区的标识符。对于其他支持RDMA的协议,转向标签可以用不同的名称来表示,但在本文中称为STAG。例如,对于InfiniBand,远程STag称为R密钥,本地STag称为L密钥,两者都将被视为STag。

Tagged Buffer - A buffer that is explicitly Advertised to the iSER layer at the remote node through the exchange of an STag, Base Offset, and length.

标记缓冲区—通过交换STag、基偏移量和长度,显式播发到远程节点的iSER层的缓冲区。

Tagged Offset - The offset within a Tagged Buffer.

标记的偏移-标记的缓冲区内的偏移。

Traditional iSCSI - Refers to the iSCSI protocol as defined in [iSCSI] (i.e., without the iSER enhancements).

传统iSCSI—指[iSCSI]中定义的iSCSI协议(即,没有iSeries增强功能)。

Untagged Buffer - A buffer that is not explicitly Advertised to the iSER layer at the remode node.

未标记缓冲区-未在remode节点显式播发到iSER层的缓冲区。

2.2. Acronyms
2.2. 缩略词

Acronym Definition

首字母缩略词定义

   --------------------------------------------------------------
        
   --------------------------------------------------------------
        

AHS Additional Header Segment

AHS附加头段

BHS Basic Header Segment

基本头段

CO Connection Only

仅限联合连接

CRC Cyclic Redundancy Check

循环冗余校验

DDP Direct Data Placement Protocol

直接数据放置协议

DI Datamover Interface

DI数据移动器接口

HCA Host Channel Adapter

主机通道适配器

IANA Internet Assigned Numbers Authority

IANA互联网分配号码管理局

IB InfiniBand

IB InfiniBand

IETF Internet Engineering Task Force

因特网工程任务组

I/O Input - Output

I/O输入-输出

IO Initialize Only

仅初始化IO

IP Internet Protocol

网际协议

IPoIB IP over InfiniBand

InfiniBand上的IPoIB IP

IPsec Internet Protocol Security

IPsec因特网协议安全

iSER iSCSI Extensions for RDMA

用于RDMA的iSER iSCSI扩展

ITT Initiator Task Tag

ITT启动器任务标记

LO Leading Only

LO仅领先

MPA Marker PDU Aligned Framing for TCP

TCP的MPA标记PDU对齐帧

NOP No Operation

没有手术

NSG Next Stage (during the iSCSI Login Phase)

NSG下一阶段(在iSCSI登录阶段)

PDU Protocol Data Unit

协议数据单元

R2T Ready To Transfer

R2T准备转移

R2TSN Ready To Transfer Sequence Number

R2TSN准备传输序列号

RCaP RDMA-Capable Protocol

支持RCaP RDMA的协议

RDMA Remote Direct Memory Access

远程直接内存访问

RDMAP Remote Direct Memory Access Protocol

RDMAP远程直接内存访问协议

RFC Request For Comments

征求意见

RNIC RDMA-enabled Network Interface Controller

RNIC支持RDMA的网络接口控制器

SAM5 SCSI Architecture Model - 5

SAM5 SCSI体系结构模型-5

SCSI Small Computer System Interface

小型计算机系统接口

SNACK Selective Negative Acknowledgment - also

选择性否定确认-也包括

Sequence Number Acknowledgement for data

数据的序列号确认

STag Steering Tag

STag转向标签

SW Session Wide

软件会话范围

TCA Target Channel Adapter

目标信道适配器

TCP Transmission Control Protocol

TCP传输控制协议

TMF Task Management Function

任务管理功能

TTT Target Transfer Tag

目标转移标签

ULP Upper Level Protocol

ULP上层协议

2.3. Conventions
2.3. 习俗

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119].

本文件中的关键词“必须”、“不得”、“必需”、“应”、“不应”、“应”、“不应”、“建议”、“可”和“可选”应按照[RFC2119]中所述进行解释。

3. Upper-Layer Interface Requirements
3. 上层接口要求

This section discusses the upper-layer interface requirements in the form of an abstract model of the required interactions between the iSCSI layer and the iSER layer. The abstract model used here is derived from the architectural model described in [DA]. [DA] also provides a functional overview of the interactions between the iSCSI layer and the Datamover layer as intended by the Datamover Architecture.

本节以iSCSI层和iSER层之间所需交互的抽象模型的形式讨论上层接口需求。此处使用的抽象模型源自[DA]中描述的体系结构模型。[DA]还提供了数据移动器体系结构预期的iSCSI层和数据移动器层之间交互的功能概述。

The interface requirements are specified by Operational Primitives. An Operational Primitive is an abstract functional interface procedure between the iSCSI layer and the iSER layer that requests one layer to perform a specific action on behalf of the other layer or notifies the other layer of some event. Whenever an Operational Primitive in invoked, the Connection_Handle qualifier is used to identify a particular iSCSI connection. For some Operational Primitives, a Data_Descriptor is used to identify the iSCSI/SCSI data buffer associated with the requested or completed operation.

接口要求由操作原语指定。操作原语是iSCSI层和iSER层之间的抽象功能接口过程,它请求一层代表另一层执行特定操作,或通知另一层某个事件。每当调用中的操作原语时,都会使用连接句柄限定符来标识特定的iSCSI连接。对于某些操作原语,数据描述符用于标识与请求的或完成的操作相关联的iSCSI/SCSI数据缓冲区。

The abstract model and the Operational Primitives defined in this section facilitate the description of the iSER protocol. In the rest of the iSER specification, the compliance statements related to the use of these Operational Primitives are only for the purpose of the

本节中定义的抽象模型和操作原语便于描述iSER协议。在iSER规范的其余部分中,与这些操作原语的使用相关的符合性声明仅用于

required interactions between the iSCSI layer and the iSER layer. Note that the compliance statements related to the Operational Primitives in the rest of this specification only mandate functional equivalence on implementations, but do not put any requirements on the implementation specifics of the interface between the iSCSI layer and the iSER layer.

iSCSI层和iSER层之间所需的交互。请注意,本规范其余部分中与操作原语相关的合规性声明仅要求实现功能等效,但没有对iSCSI层和iSER层之间接口的实现细节提出任何要求。

Each Operational Primitive is invoked with a set of qualifiers which specify the information context for performing the specific action being requested of the Operational Primitive. While the qualifiers are required, the method of realizing the qualifiers (e.g., by passing synchronously with invocation, or by retrieving from task context, or by retrieving from shared memory, etc.) is implementation dependent.

使用一组限定符调用每个操作原语,这些限定符指定执行操作原语请求的特定操作的信息上下文。虽然需要限定符,但实现限定符的方法(例如,通过调用同步传递,或通过从任务上下文检索,或通过从共享内存检索等)取决于实现。

3.1. Operational Primitives offered by iSER
3.1. iSER提供的操作原语

The iSER protocol layer MUST support the following Operational Primitives to be used by the iSCSI protocol layer.

iSER协议层必须支持iSCSI协议层使用的以下操作原语。

3.1.1. Send_Control
3.1.1. 发送控制

Input qualifiers: Connection_Handle, BHS and AHS (if any) of the iSCSI PDU, PDU-specific qualifiers

输入限定符:iSCSI PDU的连接句柄、BHS和AHS(如果有)、PDU特定限定符

Return results: Not specified

返回结果:未指定

This is used by the iSCSI layers at the initiator and the target to request the outbound transfer of an iSCSI control-type PDU (see Section 7.2). Qualifiers that only apply for a particular control-type PDU are known as PDU-specific qualifiers, e.g., ImmediateDataSize for a SCSI Write command. For details on PDU-specific qualifiers, see Section 7.3. The iSCSI layer can only invoke the Send_Control Operational Primitive when the connection is in iSER-assisted mode.

发起方和目标方的iSCSI层使用此功能请求iSCSI控制类型PDU的出站传输(请参阅第7.2节)。仅适用于特定控制类型PDU的限定符称为特定于PDU的限定符,例如SCSI写入命令的ImmediateDataSize。有关PDU特定限定符的详细信息,请参阅第7.3节。iSCSI层只能在连接处于iSER辅助模式时调用发送控制操作原语。

3.1.2. Put_Data
3.1.2. 输入数据

Input qualifiers: Connection_Handle, content of a SCSI Data-In PDU header, Data_Descriptor, Notify_Enable

输入限定符:连接句柄、PDU头中SCSI数据的内容、数据描述符、通知启用

Return results: Not specified

返回结果:未指定

This is used by the iSCSI layer at the target to request the outbound transfer of data for a SCSI Data-In PDU from the buffer identified by the Data_Descriptor qualifier. The iSCSI layer can only invoke the Put_Data Operational Primitive when the connection is in iSER-assisted mode.

这被目标的iSCSI层用于从data_描述符限定符标识的缓冲区请求PDU中SCSI数据的出站传输。iSCSI层只能在连接处于iSER辅助模式时调用Put_数据操作原语。

The Notify_Enable qualifier is used to indicate to the iSER layer whether or not it should generate an eventual local completion notification to the iSCSI layer. See Section 3.2.2 on Data_Completion_Notify for details.

Notify_Enable限定符用于向iSER层指示是否应向iSCSI层生成最终的本地完成通知。有关详细信息,请参见第3.2.2节“数据完成通知”。

3.1.3. Get_Data
3.1.3. 获取数据

Input qualifiers: Connection_Handle, content of an R2T PDU, Data_Descriptor, Notify_Enable

输入限定符:连接句柄、R2T PDU的内容、数据描述符、通知启用

Return results: Not specified

返回结果:未指定

This is used by the iSCSI layer at the target to request the inbound transfer of solicited data requested by an R2T PDU into the buffer identified by the Data_Descriptor qualifier. The iSCSI layer can only invoke the Get_Data Operational Primitive when the connection is in iSER-assisted mode.

目标端的iSCSI层使用此命令请求将R2T PDU请求的请求数据传入数据描述符限定符标识的缓冲区。iSCSI层只能在连接处于iSER辅助模式时调用Get_数据操作原语。

The Notify_Enable qualifier is used to indicate to the iSER layer whether or not it should generate the eventual local completion notification to the iSCSI layer. See Section 3.2.2 on Data_Completion_Notify for details.

Notify_Enable限定符用于向iSER层指示是否应向iSCSI层生成最终的本地完成通知。有关详细信息,请参见第3.2.2节“数据完成通知”。

3.1.4. Allocate_Connection_Resources
3.1.4. 分配连接资源

Input qualifiers: Connection_Handle, Resource_Descriptor (optional)

输入限定符:连接\句柄、资源\描述符(可选)

Return results: Status

返回结果:状态

This is used by the iSCSI layers at the initiator and the target to request the allocation of all connection resources necessary to support RCaP for an operational iSCSI/iSER connection. The iSCSI layer may optionally specify the implementation-specific resource requirements for the iSCSI connection using the Resource_Descriptor qualifier.

这由启动器和目标的iSCSI层用于请求分配所有必要的连接资源,以支持RCaP以实现可操作的iSCSI/iSER连接。iSCSI层可以选择使用资源描述符限定符为iSCSI连接指定特定于实现的资源要求。

A return result of Status=success means the invocation succeeded, and a return result of Status=failure means that the invocation failed. If the invocation is for a Connection_Handle for which an earlier invocation succeeded, the request will be ignored by the iSER layer and the result of Status=success will be returned. Only one Allocate_Connection_Resources Operational Primitive invocation can be outstanding for a given Connection_Handle at any time.

返回结果Status=success表示调用成功,返回结果Status=failure表示调用失败。如果调用是针对先前调用成功的连接句柄,iSER层将忽略该请求,并返回Status=success的结果。在任何时候,对于给定的连接句柄,只能有一个分配连接资源操作原语调用未完成。

3.1.5. Deallocate_Connection_Resources
3.1.5. 取消分配\u连接\u资源

Input qualifiers: Connection_Handle

输入限定符:连接\u句柄

Return results: Not specified

返回结果:未指定

This is used by the iSCSI layers at the initiator and the target to request the deallocation of all connection resources that were allocated earlier as a result of a successful invocation of the Allocate_Connection_Resources Operational Primitive.

这被启动器和目标的iSCSI层用来请求解除分配由于成功调用Allocate_connection_resources操作原语而先前分配的所有连接资源。

3.1.6. Enable_Datamover
3.1.6. 启用数据移动器

Input qualifiers: Connection_Handle, Transport_Connection_Descriptor, Final Login_Response_PDU (optional)

输入限定符:连接\句柄、传输\连接\描述符、最终登录\响应\ PDU(可选)

Return results: Not specified

返回结果:未指定

This is used by the iSCSI layers at the initiator and the target to request that iSER-assisted mode be used for the connection. The Transport_Connection_Descriptor qualifier is used to identify the specific connection associated with the Connection_Handle. The iSCSI layer can only invoke the Enable_Datamover Operational Primitive when there was a corresponding prior resource allocation.

这由启动器和目标的iSCSI层用于请求将iSER辅助模式用于连接。传输\连接\描述符限定符用于标识与连接\句柄关联的特定连接。iSCSI层只能在有相应的先前资源分配时调用Enable_Datamover操作原语。

The Final_Login_Response_PDU input qualifier is applicable only for a target and contains the final Login Response PDU that concludes the iSCSI Login Phase.

最终登录响应PDU输入限定符仅适用于目标,并包含结束iSCSI登录阶段的最终登录响应PDU。

3.1.7. Connection_Terminate
3.1.7. 连接终止

Input qualifiers: Connection_Handle

输入限定符:连接\u句柄

Return results: Not specified

返回结果:未指定

This is used by the iSCSI layers at the initiator and the target to request that a specified iSCSI/iSER connection be terminated and all associated connection and task resources be freed. When this Operational Primitive invocation returns to the iSCSI layer, the iSCSI layer may assume full ownership of all iSCSI-level resources, e.g., I/O Buffers, associated with the connection.

启动器和目标的iSCSI层使用此命令来请求终止指定的iSCSI/iSER连接并释放所有关联的连接和任务资源。当此操作原语调用返回到iSCSI层时,iSCSI层可能会承担与连接相关的所有iSCSI级别资源(例如I/O缓冲区)的完全所有权。

3.1.8. Notice_Key_Values
3.1.8. 注意\u键\u值

Input qualifiers: Connection_Handle, number of keys, list of Key-Value pairs

输入限定符:连接句柄、键数、键值对列表

Return results: Not specified

返回结果:未指定

This is used by the iSCSI layers at the initiator and the target to request the iSER layer to take note of the specified Key-Value pairs that were negotiated by the iSCSI peers for the connection.

这被启动器和目标的iSCSI层用来请求iSER层记录iSCSI对等方为连接协商的指定键值对。

3.1.9. Deallocate_Task_Resources
3.1.9. 解除分配任务资源

Input qualifiers: Connection_Handle, ITT

输入限定符:连接句柄,ITT

Return results: Not specified

返回结果:未指定

This is used by the iSCSI layers at the initiator and the target to request the deallocation of all RCaP-specific resources allocated by the iSER layer for the task identified by the ITT qualifier. The iSER layer may require a certain number of RCaP-specific resources associated with the ITT for each new iSCSI task. In the normal course of execution, these task-level resources in the iSER layer are assumed to be transparently allocated on each task initiation and deallocated on the conclusion of each task as appropriate. In exception scenarios where the task does not conclude with a SCSI Response PDU, the iSER layer needs to be notified of the individual task terminations to aid its task-level resource management. This Operational Primitive is used for this purpose and is not needed when a SCSI Response PDU normally concludes a task. Note that RCaP-specific task resources are deallocated by the iSER layer when a SCSI Response PDU normally concludes a task, even if the SCSI status was not success.

发起方和目标方的iSCSI层使用此命令请求解除分配iSER层为ITT限定符标识的任务分配的所有RCaP特定资源。对于每个新的iSCSI任务,iSER层可能需要一定数量的与ITT相关联的RCaP特定资源。在正常执行过程中,假定iSER层中的这些任务级资源在每个任务启动时透明分配,并在每个任务结束时酌情取消分配。在任务未以SCSI响应PDU结束的异常情况下,需要通知iSER层各个任务的终止,以帮助其任务级资源管理。此操作原语用于此目的,在SCSI响应PDU正常结束任务时不需要此原语。请注意,当SCSI响应PDU正常结束任务时,即使SCSI状态不是success,iSER层也会释放RCaP特定的任务资源。

3.2. Operational Primitives Used by iSER
3.2. iSER使用的操作原语

The iSER layer MUST use the following Operational Primitives offered by the iSCSI protocol layer when the connection is in iSER-assisted mode.

当连接处于iSER辅助模式时,iSER层必须使用iSCSI协议层提供的以下操作原语。

3.2.1. Control_Notify
3.2.1. 控制通知

Input qualifiers: Connection_Handle, an iSCSI control-type PDU

输入限定符:连接\ U句柄,iSCSI控制类型PDU

Return results: Not specified

返回结果:未指定

This is used by the iSER layers at the initiator and the target to notify the iSCSI layer of the availability of an inbound iSCSI control-type PDU. A PDU is described as "available" to the iSCSI layer when the iSER layer notifies the iSCSI layer of the reception of that inbound PDU, along with an implementation-specific indication as to where the received PDU is.

发起方和目标方的iSER层使用此命令通知iSCSI层入站iSCSI控制类型PDU的可用性。当iSER层通知iSCSI层接收到该入站PDU时,PDU被描述为对iSCSI层“可用”,并带有关于接收到的PDU所在位置的特定于实现的指示。

3.2.2. Data_Completion_Notify
3.2.2. 数据完成通知

Input qualifiers: Connection_Handle, ITT, SN

输入限定符:连接句柄、ITT、SN

Return results: Not specified

返回结果:未指定

This is used by the iSER layer to notify the iSCSI layer of the completion of the outbound data transfer that was requested by the iSCSI layer only if the invocation of the Put_Data Operational Primitive (see Section 3.1.2) was qualified with Notify_Enable set. SN refers to the DataSN associated with the SCSI Data-In PDU.

iSER层使用它来通知iSCSI层,只有在调用Put_数据操作原语(参见第3.1.2节)符合notify_Enable set时,iSCSI层才请求完成出站数据传输。SN是指与PDU中的SCSI数据关联的数据SN。

This is used by the iSER layer to notify the iSCSI layer of the completion of the inbound data transfer that was requested by the iSCSI layer only if the invocation of the Get_Data Operational Primitive (see Section 3.1.3) was qualified with Notify_Enable set. SN refers to the R2TSN associated with the R2T PDU.

iSER层使用它来通知iSCSI层,只有在调用Get_数据操作原语(参见第3.1.3节)符合notify_Enable set的条件时,iSCSI层才请求完成入站数据传输。SN是指与R2T PDU关联的R2TSN。

3.2.3. Data_ACK_Notify
3.2.3. 数据确认通知

Input qualifier: Connection_Handle, ITT, DataSN

输入限定符:连接句柄、ITT、DataSN

Return results: Not specified

返回结果:未指定

This is used by the iSER layer at the target to notify the iSCSI layer of the arrival of the data acknowledgement (as defined in [iSCSI]) requested earlier by the iSCSI layer for the outbound data transfer via an invocation of the Put_Data Operational Primitive where the A-bit in the SCSI Data-In PDU is set to one. See Section 7.3.5. DataSN refers to the expected DataSN of the next SCSI Data-In PDU that immediately follows the SCSI Data-In PDU with the A-bit set to which this notification corresponds, with semantics as defined in [iSCSI].

目标端的iSER层使用此命令通知iSCSI层,iSCSI层通过调用Put_数据操作原语(其中PDU中的SCSI数据中的A位设置为1)请求数据确认(如[iSCSI]中定义)的到达,以进行出站数据传输。见第7.3.5节。DataSN是指紧跟在PDU中的SCSI数据之后的PDU中的下一个SCSI数据的预期DataSN,该数据的A位设置与此通知对应,语义如[iSCSI]中所定义。

3.2.4. Connection_Terminate_Notify
3.2.4. 连接\u终止\u通知

Input qualifiers: Connection_Handle

输入限定符:连接\u句柄

Return results: Not specified

返回结果:未指定

This is used by the iSER layers at the initiator and the target to notify the iSCSI layer of the unsolicited termination or failure of an iSCSI/iSER connection. The iSER layer MUST deallocate the connection and task resources associated with the terminated connection before the invocation of this Operational Primitive. Note that the Connection_Terminate_Notify Operational Primitive is not invoked when the termination of the connection was earlier requested by the local iSCSI layer.

发起方和目标方的iSER层使用此消息通知iSCSI层iSCSI/iSER连接的非请求终止或故障。iSER层必须在调用此操作原语之前解除分配与终止连接关联的连接和任务资源。请注意,当本地iSCSI层先前请求终止连接时,不会调用Connection_Terminate_Notify操作原语。

3.3. iSCSI Protocol Usage Requirements
3.3. iSCSI协议使用要求

To operate in iSER-assisted mode, the iSCSI layers at both the initiator and the target MUST negotiate the RDMAExtensions key (see Section 6.3) to "Yes" on the leading connection. If the RDMAExtensions key is not negotiated to "Yes", then iSER-assisted mode MUST NOT be used. If the RDMAExtensons key is negotiated to "Yes", but the invocation of the Allocate_Connection_Resources Operational Primitive to the iSER layer fails, the iSCSI layer MUST fail the iSCSI Login process or terminate the connection as appropriate. See Section 10.1.3.1 for details.

要在iSER辅助模式下运行,发起方和目标方的iSCSI层必须在主要连接上将RDMAExtensions密钥(参见第6.3节)协商为“是”。如果RDMAExtensions密钥未协商为“是”,则不得使用iSER辅助模式。如果RDMAEXTENSON密钥协商为“是”,但向iSER层调用Allocate_Connection_Resources操作原语失败,则iSCSI层必须使iSCSI登录过程失败,或视情况终止连接。详见第10.1.3.1节。

If the RDMAExtensions key is negotiated to "Yes", the iSCSI layer MUST satisfy the following protocol usage requirements from the iSER protocol:

如果RDMAExtensions密钥协商为“是”,则iSCSI层必须满足iSER协议的以下协议使用要求:

1. The iSCSI layer at the initiator MUST set ExpDataSN to zero in Task Management Function Requests for Task Allegiance Reassignment for read/bidirectional commands, so as to cause the target to send all unacknowledged read data.

1. 启动器的iSCSI层必须在任务管理功能请求中将EXPDASCN设置为零,以便为读取/双向命令重新分配任务忠诚,从而使目标发送所有未确认的读取数据。

2. The iSCSI layer at the target MUST always return the SCSI status in a separate SCSI Response PDU for read commands, i.e., there MUST NOT be a "phase collapse" in concluding a SCSI Read Command.

2. 目标位置的iSCSI层必须始终在单独的SCSI响应PDU中为读取命令返回SCSI状态,即在结束SCSI读取命令时不得出现“阶段崩溃”。

3. The iSCSI layers at both the initiator and the target MUST support the keys as defined in Section 6 on Login/Text Operational Keys. If used as specified, these keys MUST NOT be answered with NotUnderstood, and the semantics as defined MUST be followed for each iSER-assisted connection.

3. 启动器和目标的iSCSI层都必须支持第6节“登录/文本操作密钥”中定义的密钥。如果按规定使用,这些键不能用NotUnderstanding来回答,并且每个iSER辅助连接都必须遵循定义的语义。

4. The iSCSI layer at the initiator MUST NOT issue SNACKs for PDUs.

4. 启动器处的iSCSI层不得为PDU发出零食。

4. Lower-Layer Interface Requirements
4. 低层接口要求
4.1. Interactions with the RCaP Layer
4.1. 与RCaP层的相互作用

The iSER protocol layer is layered on top of an RCaP layer (see Figure 1) and the following are the key features that are assumed to be supported by any RCaP layer:

iSER协议层分层在RCaP层之上(见图1),以下是假定任何RCaP层都支持的关键功能:

* The RCaP layer supports all basic RDMA operations, including the RDMA Write Operation, RDMA Read Operation, and Send Operation.

* RCaP层支持所有基本RDMA操作,包括RDMA写入操作、RDMA读取操作和发送操作。

* The RCaP layer provides reliable, in-order message delivery and direct data placement.

* RCaP层提供可靠、有序的消息传递和直接的数据放置。

* When the iSER layer initiates an RDMA Read Operation following an RDMA Write Operation on one RCaP Stream, the RDMA Read Response Message processing on the remote node will be started only after the preceding RDMA Write Message payload is placed in the memory of the remote node.

* 当iSER层在一个RCaP流上的RDMA写入操作之后启动RDMA读取操作时,只有在将前面的RDMA写入消息有效负载放入远程节点的内存中之后,远程节点上的RDMA读取响应消息处理才会启动。

* The RCaP layer encapsulates a single iSER Message into a single RCaP Message on the Data Source side. The RCaP layer decapsulates the iSER Message before delivering it to the iSER layer on the Data Sink side.

* RCaP层在数据源端将单个iSER消息封装为单个RCaP消息。RCaP层在将iSER消息传送到数据接收器侧的iSER层之前,对其进行去封装。

* For an RCaP layer that supports the Send with Invalidate Message (e.g., iWARP), when the iSER layer provides the STag to be remotely invalidated to the RCaP layer for a Send with Invalidate Message, the RCaP layer uses this STag as the STag to be invalidated in the Send with Invalidate Message.

* 对于支持失效发送消息的RCaP层(例如,iWARP),当iSER层为失效发送消息的RCaP层提供要远程失效的STag时,RCaP层使用该STag作为失效发送消息中要失效的STag。

* The RCaP layer uses the STag and Tagged Offset provided by the iSER layer for the RDMA Write and RDMA Read Request Messages.

* RCaP层使用iSER层为RDMA写入和RDMA读取请求消息提供的STag和标记偏移量。

* When the RCaP layer delivers the content of an RDMA Send Message to the iSER layer, the RCaP layer provides the length of the RDMA Send Message. This ensures that the iSER layer does not have to carry a length field in the iSER header.

* 当RCaP层将RDMA发送消息的内容传递到iSER层时,RCaP层提供RDMA发送消息的长度。这确保iSER层不必在iSER头中携带长度字段。

* When the RCaP layer delivers the Send Message to the iSER layer, it notifies the iSER layer with the mechanism provided on that interface.

* 当RCaP层将发送消息传递给iSER层时,它会使用该接口上提供的机制通知iSER层。

* For an RCaP layer that supports the Send with Invalidate Message (e.g., iWARP), when the RCaP layer delivers a Send with Invalidate Message to the iSER layer, it passes the value of the STag that was invalidated.

* 对于支持使用无效消息发送的RCaP层(例如,iWARP),当RCaP层将使用无效消息发送的消息传递给iSER层时,它会传递已无效的STag的值。

* The RCaP layer propagates all status and error indications to the iSER layer.

* RCaP层将所有状态和错误指示传播到iSER层。

* For a transport layer that operates in byte stream mode such as TCP, the RCaP implementation supports the enabling of the RDMA mode after connection establishment and the exchange of Login parameters in byte stream mode. For a transport layer that provides message delivery capability such as [IB], the RCaP implementation supports the direct use of the messaging capability by the iSCSI layer for the Login Phase after connection establishment and before enabling iSER-assisted mode. (In the specific example of InfiniBand [IB], the iSCSI layer uses IB messages to transfer iSCSI PDUs for the Login Phase after connection establishment and before enabling iSER-assisted mode.)

* 对于在字节流模式(如TCP)下运行的传输层,RCaP实现支持在建立连接后启用RDMA模式,并在字节流模式下交换登录参数。对于提供消息传递功能(如[IB])的传输层,RCaP实现支持iSCSI层在建立连接后和启用iSER辅助模式之前的登录阶段直接使用消息传递功能。(在InfiniBand[IB]的特定示例中,iSCSI层使用IB消息在连接建立之后和启用iSER辅助模式之前的登录阶段传输iSCSI PDU。)

* Whenever the iSER layer terminates the RCaP Stream, the RCaP layer terminates the associated connection.

* 每当iSER层终止RCaP流时,RCaP层终止关联的连接。

4.2. Interactions with the Transport Layer
4.2. 与传输层的相互作用

After the iSER connection is established, the RCaP layer and the underlying transport layer are responsible for maintaining the connection and reporting to the iSER layer any connection failures.

iSER连接建立后,RCaP层和底层传输层负责维护连接并向iSER层报告任何连接故障。

5. Connection Setup and Termination
5. 连接设置和终止
5.1. iSCSI/iSER Connection Setup
5.1. iSCSI/iSER连接设置

During connection setup, the iSCSI layer at the initiator is responsible for establishing a connection with the target. After the connection is established, the iSCSI layers at the initiator and the target enter the Login Phase using the same rules as outlined in [iSCSI]. The connection transitions into the iSCSI Full Feature Phase in iSER-assisted mode following a successful login negotiation between the initiator and the target in which iSER-assisted mode is negotiated and the connection resources necessary to support RCaP have been allocated at both the initiator and the target. The same connection MUST be used for both the iSCSI Login Phase and the subsequent iSER-assisted Full Feature Phase.

在连接设置过程中,启动器处的iSCSI层负责与目标建立连接。建立连接后,启动器和目标的iSCSI层使用与[iSCSI]中所述相同的规则进入登录阶段。在发起方和目标方之间协商成功登录后,连接过渡到iSER辅助模式下的iSCSI全功能阶段,iSER辅助模式在该阶段中进行协商,并且已在发起方和目标方分配了支持RCaP所需的连接资源。iSCSI登录阶段和随后的iSER辅助全功能阶段必须使用相同的连接。

For a transport layer that operates in byte stream mode such as TCP, the RCaP implementation supports the enabling of the RDMA mode after connection establishment and the exchange of Login parameters in byte stream mode. For a transport layer that provides message delivery capability such as [IB], the RCaP implementation supports the use of the messaging capability by the iSCSI layer directly for the Login Phase after connection establishment before enabling iSER-assisted mode.

对于在字节流模式(如TCP)下运行的传输层,RCaP实现支持在建立连接后启用RDMA模式,并在字节流模式下交换登录参数。对于提供消息传递功能(如[IB])的传输层,RCaP实现支持iSCSI层在启用iSER辅助模式之前,在连接建立后的登录阶段直接使用消息传递功能。

iSER-assisted mode MUST NOT be enabled unless it is negotiated on the leading connection during the LoginOperationalNegotiation stage of the iSCSI Login Phase. iSER-assisted mode is negotiated using the RDMAExtensions=<boolean-value> key. Both the initiator and the target MUST exchange the RDMAExtensions key with the value set to "Yes" to enable iSER-assisted mode. If both the initiator and the target fail to negotiate the RDMAExtensions key set to "Yes", then the connection MUST continue with the login semantics as defined in [iSCSI]. If the RDMAExtensions key is not negotiated to Yes, then for some RCaP implementation (such as [IB]), the existing connection may need to be torn down and a new connection may need to be established in TCP-capable mode. (For InfiniBand, this will require a connection like [IPoIB].)

iSER辅助模式不得启用,除非在iSCSI登录阶段的LoginOperationalNegotiation阶段在主要连接上协商。iSER辅助模式使用RDMAExtensions=<boolean value>键协商。发起方和目标方都必须交换RDMAExtensions密钥,其值设置为“是”,以启用iSER辅助模式。如果启动器和目标都未能协商设置为“是”的RDMAExtensions密钥,则连接必须按照[iSCSI]中定义的登录语义继续。如果RDMAExtensions密钥未协商为“是”,则对于某些RCaP实现(如[IB]),可能需要断开现有连接,并且可能需要在支持TCP的模式下建立新连接。(对于InfiniBand,这将需要类似[IPoIB]的连接。)

iSER-assisted mode is defined for a Normal session only, and the RDMAExtensions key MUST NOT be negotiated for a Discovery session. Discovery sessions are always conducted using the transport layer as described in [iSCSI].

iSER辅助模式仅为正常会话定义,不得为发现会话协商RDMAExtensions密钥。发现会话始终使用[iSCSI]中所述的传输层进行。

An iSER-enabled node is not required to initiate the RDMAExtensions key exchange if its preference is for the Traditional iSCSI mode. The RDMAExtensions key, if offered, MUST be sent in the first available Login Response or Login Request PDU in the LoginOperationalNegotiation stage. This is due to the fact that the value of some Login parameters might depend on whether or not iSER-assisted mode is enabled.

如果支持iSER的节点首选传统iSCSI模式,则无需启动RDMAExtensions密钥交换。RDMAExtensions密钥(如果提供)必须在LoginOperationalNegotiation阶段的第一个可用登录响应或登录请求PDU中发送。这是因为某些登录参数的值可能取决于是否启用iSER辅助模式。

iSER-assisted mode is a session-wide attribute. If both the initiator and the target negotiated RDMAExtensions="Yes" on the leading connection of a session, then all subsequent connections of the same session MUST enable iSER-assisted mode without having to exchange RDMAExtensions keys during the iSCSI Login Phase. Conversely, if both the initiator and the target failed to negotiate RDMAExtensions to "Yes" on the leading connection of a session, then the RDMAExtensions key MUST NOT be negotiated further on any additional subsequent connection of the session.

iSER辅助模式是会话范围的属性。如果发起方和目标方在会话的主要连接上协商RDMAExtensions=“Yes”,则同一会话的所有后续连接必须启用iSER辅助模式,而无需在iSCSI登录阶段交换RDMAExtensions密钥。相反,如果发起方和目标方都未能在会话的主要连接上将RDMAExtensions协商为“是”,则不得在会话的任何其他后续连接上进一步协商RDMAExtensions密钥。

When the RDMAExtensions key is negotiated to "Yes", the HeaderDigest and the DataDigest keys MUST be negotiated to "None" on all iSCSI/iSER connections participating in that iSCSI session. This is because, for an iSCSI/iSER connection, RCaP is responsible for providing error detection that is at least as good as a 32-bit CRC for all iSER Messages. Furthermore, all SCSI Read data are sent using RDMA Write Messages instead of the SCSI Data-In PDUs, and all solicited SCSI Write data are sent using RDMA Read Response Messages instead of the SCSI Data-Out PDUs. HeaderDigest and DataDigest that apply to iSCSI PDUs would not be appropriate for RDMA Read and RDMA Write operations used with iSER.

当RDMAExtensions密钥协商为“是”时,参与该iSCSI会话的所有iSCSI/iSER连接上的HeaderDigest和DataDigest密钥必须协商为“无”。这是因为,对于iSCSI/iSER连接,RCaP负责为所有iSER消息提供至少相当于32位CRC的错误检测。此外,所有SCSI读取数据都使用RDMA写入消息而不是PDU中的SCSI数据发送,所有请求的SCSI写入数据都使用RDMA读取响应消息而不是SCSI数据输出PDU发送。适用于iSCSI PDU的HeaderDigest和DataDigest不适用于iSER使用的RDMA读取和RDMA写入操作。

5.1.1. Initiator Behavior
5.1.1. 引发剂行为

If the outcome of the iSCSI negotiation is to enable iSER-assisted mode, then on the initiator side, prior to sending the Login Request with the T (Transit) bit set to one and the NSG (Next Stage) field set to FullFeaturePhase, the iSCSI layer SHOULD request the iSER layer to allocate the connection resources necessary to support RCaP by invoking the Allocate_Connection_Resources Operational Primitive. The connection resources required are defined by the implementation and are outside the scope of this specification. The iSCSI layer may invoke the Notice_Key_Values Operational Primitive before invoking the Allocate_Connection_Resources Operational Primitive to request the iSER layer to take note of the negotiated values of the iSCSI keys for the connection. The specific keys to be passed in as input qualifiers are implementation dependent. These may include, but are not limited to, MaxOutstandingR2T and ErrorRecoveryLevel.

如果iSCSI协商的结果是启用iSER辅助模式,则在启动器端,在发送登录请求之前,T(传输)位设置为1,NSG(下一阶段)字段设置为FullFeaturePhase,iSCSI层应通过调用allocate_connection_resources操作原语请求iSER层分配支持RCaP所需的连接资源。所需的连接资源由实现定义,不在本规范的范围内。iSCSI层可以在调用Allocate_Connection_Resources操作原语之前调用Notice_Key_Values操作原语,以请求iSER层记录连接iSCSI密钥的协商值。作为输入限定符传入的特定键取决于实现。这些可能包括但不限于MaxOutstandingR2T和ErrorRecoveryLevel。

Among the connection resources allocated at the initiator is the Inbound RDMA Read Queue Depth (IRD). As described in Section 9.5.1, R2Ts are transformed by the target into RDMA Read operations. IRD limits the maximum number of simultaneously incoming outstanding RDMA Read Requests per an RCaP Stream from the target to the initiator. The required value of IRD is outside the scope of the iSER specification. The iSER layer at the initiator MUST set IRD to 1 or higher if R2Ts are to be used in the connection. However, the iSER layer at the initiator MAY set IRD to zero based on implementation configuration; setting IRD to zero indicates that no R2Ts will be used on that connection. Initially, the iSER-IRD value at the initiator SHOULD be set to the IRD value at the initiator and MUST NOT be more than the IRD value.

在启动器上分配的连接资源中包括入站RDMA读取队列深度(IRD)。如第9.5.1节所述,目标将R2T转换为RDMA读取操作。IRD限制每个RCaP流从目标到启动器的同时传入未完成RDMA读取请求的最大数量。IRD的要求值超出iSER规范的范围。如果要在连接中使用R2T,则启动器处的iSER层必须将IRD设置为1或更高。然而,启动器处的iSER层可基于实现配置将IRD设置为零;将IRD设置为零表示不会在该连接上使用R2T。最初,启动器上的iSER IRD值应设置为启动器上的IRD值,且不得超过IRD值。

On the other hand, the Outbound RDMA Read Queue Depth (ORD) MAY be set to zero since the iSER layer at the initiator does not issue RDMA Read Requests to the target.

另一方面,出站RDMA读取队列深度(ORD)可以设置为零,因为启动器处的iSER层不会向目标发出RDMA读取请求。

Failure to allocate the requested connection resources locally results in a login failure, and its handling is described in Section 10.1.3.1.

未能在本地分配请求的连接资源会导致登录失败,其处理方法见第10.1.3.1节。

The iSER layer MUST return a success status to the iSCSI layer in response to the Allocate_Connection_Resources Operational Primitive.

iSER层必须向iSCSI层返回成功状态,以响应分配连接资源操作原语。

After the target returns the Login Response with the T bit set to one and the NSG field set to FullFeaturePhase, and a Status-Class of 0x00 (Success), the iSCSI layer MUST invoke the Enable_Datamover Operational Primitive with the following qualifiers. (See Section 10.1.4.6 for the case when the Status-Class is not Success.)

目标返回登录响应后,T位设置为1,NSG字段设置为FullFeaturePhase,状态类为0x00(成功),iSCSI层必须使用以下限定符调用Enable_Datamover操作原语。(有关状态类不成功的情况,请参见第10.1.4.6节。)

a. Connection_Handle that identifies the iSCSI connection.

a. 连接\标识iSCSI连接的U句柄。

b. Transport_Connection_Descriptor that identifies the specific transport connection associated with the Connection_Handle.

b. 传输连接描述符,用于标识与连接句柄关联的特定传输连接。

The iSER layer MUST send the iSER Hello Message as the first iSER Message only if iSERHelloRequired is negotiated to "Yes". See Section 5.1.3 on iSER Hello Exchange.

仅当ISHELLOREQUIRED协商为“是”时,iSER层必须将iSER Hello消息作为第一条iSER消息发送。请参阅iSER Hello Exchange的第5.1.3节。

If the iSCSI layer on the initiator side allocates the connection resources to support RCaP only after it receives the final Login Response PDU from the target, then it may not be able to handle the number of unexpected iSCSI control-type PDUs (as declared by the MaxOutstandingUnexpectedPDUs key from the initiator) that can be sent by the target before the buffer resources are allocated at the initiator side. In this case, the iSERHelloRequired key SHOULD be negotiated to "Yes" so that the initiator can allocate the connection resources before sending the iSER Hello Message. See Section 5.1.3 for more details.

如果启动器端的iSCSI层仅在从目标接收到最终登录响应PDU后才分配连接资源以支持RCaP,则它可能无法处理意外iSCSI控制类型PDU的数量(由启动器的MaxOutstandingUnexpectedPDU密钥声明)可以在启动器端分配缓冲区资源之前由目标发送的。在这种情况下,ISHELLOREQUIRED密钥应协商为“是”,以便启动器可以在发送ISHELLO消息之前分配连接资源。详见第5.1.3节。

5.1.2. Target Behavior
5.1.2. 目标行为

If the outcome of the iSCSI negotiation is to enable iSER-assisted mode, then on the target side, prior to sending the Login Response with the T (Transit) bit set to one and the NSG (Next Stage) field set to FullFeaturePhase, the iSCSI layer MUST request the iSER layer to allocate the resources necessary to support RCaP by invoking the Allocate_Connection_Resources Operational Primitive. The connection resources required are defined by implementation and are outside the scope of this specification. Optionally, the iSCSI layer may invoke the Notice_Key_Values Operational Primitive before invoking the Allocate_Connection_Resources Operational Primitive to request the iSER layer to take note of the negotiated values of the iSCSI keys for the connection. The specific keys to be passed in as input qualifiers are implementation dependent. These may include, but not limited to, MaxOutstandingR2T and ErrorRecoveryLevel.

如果iSCSI协商的结果是启用iSER辅助模式,则在目标端,在发送登录响应之前,T(传输)位设置为1,NSG(下一阶段)字段设置为FullFeaturePhase,iSCSI层必须通过调用allocate_Connection_resources操作原语请求iSER层分配支持RCaP所需的资源。所需的连接资源由实现定义,不在本规范的范围内。可选地,iSCSI层可以在调用Allocate_Connection_Resources操作原语之前调用Notice_Key_Values操作原语,以请求iSER层记录用于连接的iSCSI密钥的协商值。作为输入限定符传入的特定键取决于实现。这些可能包括但不限于MaxOutstandingR2T和ErrorRecoveryLevel。

Premature allocation of RCaP connection resources can expose an iSER target to a resource exhaustion attack on those resources via multiple iSER connections that progress only to the point at which the implementation allocates the RCaP connection resources. The countermeasure for this attack is initiator authentication; the iSCSI

过早分配RCaP连接资源会使iSER目标通过多个iSER连接受到资源耗尽攻击,这些iSER连接只会发展到实现分配RCaP连接资源的点。针对这种攻击的对策是发起方身份验证;iSCSI

layer MUST NOT request the iSER layer to allocate the connection resources necessary to support RCaP until the iSCSI layer is sufficiently far along in the iSCSI Login Phase that it is reasonably certain that the peer side is not an attacker. In particular, if the Login Phase includes a SecurityNegotiation stage, the iSCSI layer MUST defer the connection resource allocation (i.e., invoking the Allocate_Connection_Resources Operational Primitive) to the LoginOperationalNegotiation stage ([iSCSI]) so that the resource allocation occurs after the authentication phase is completed.

层不得请求iSER层分配支持RCaP所需的连接资源,直到iSCSI层在iSCSI登录阶段足够远,可以合理地确定对等方不是攻击者。特别是,如果登录阶段包括SecurityNegotiation阶段,iSCSI层必须将连接资源分配(即调用Allocate_connection_Resources操作原语)推迟到LoginOperational协商阶段([iSCSI]),以便在身份验证阶段完成后进行资源分配。

Among the connection resources allocated at the target is the Outbound RDMA Read Queue Depth (ORD). As described in Section 9.5.1, R2Ts are transformed by the target into RDMA Read operations. The ORD limits the maximum number of simultaneously outstanding RDMA Read Requests per RCaP Stream from the target to the initiator. Initially, the iSER-ORD value at the target SHOULD be set to the ORD value at the target.

在目标上分配的连接资源中包括出站RDMA读取队列深度(ORD)。如第9.5.1节所述,目标将R2T转换为RDMA读取操作。ORD限制从目标到启动器的每个RCaP流同时未完成的RDMA读取请求的最大数量。最初,目标处的iSER ORD值应设置为目标处的ORD值。

On the other hand, the IRD at the target MAY be set to zero since the iSER layer at the target does not expect RDMA Read Requests to be issued by the initiator.

另一方面,目标处的IRD可以设置为零,因为目标处的iSER层不期望发起方发出RDMA读取请求。

Failure to allocate the requested connection resources locally results in a login failure, and its handling is described in Section 10.1.3.1.

未能在本地分配请求的连接资源会导致登录失败,其处理方法见第10.1.3.1节。

If the iSER layer at the target is successful in allocating the connection resources necessary to support RCaP, the following events MUST occur in the specified sequence:

如果目标的iSER层成功分配支持RCaP所需的连接资源,则必须按指定顺序发生以下事件:

1. The iSER layer MUST return a success status to the iSCSI layer in response to the Allocate_Connection_Resources Operational Primitive.

1. iSER层必须向iSCSI层返回成功状态,以响应分配连接资源操作原语。

2. The iSCSI layer MUST invoke the Enable_Datamover Operational Primitive with the following qualifiers:

2. iSCSI层必须使用以下限定符调用Enable_Datamover操作原语:

a. Connection_Handle that identifies the iSCSI connection.

a. 连接\标识iSCSI连接的U句柄。

b. Transport_Connection_Descriptor that identifies the specific transport connection associated with the Connection_Handle.

b. 传输连接描述符,用于标识与连接句柄关联的特定传输连接。

c. The final transport-layer (e.g., TCP) message containing the Login Response with the T bit set to one and the NSG field set to FullFeaturePhase.

c. 最后一个传输层(如TCP)消息,包含登录响应,T位设置为1,NSG字段设置为FullFeaturePhase。

3. The iSER layer MUST send the final Login Response PDU in the native transport mode to conclude the iSCSI Login Phase. If the underlying transport is TCP, then the iSER layer MUST send the final Login Response PDU in byte stream mode.

3. iSER层必须以本机传输模式发送最终登录响应PDU,以结束iSCSI登录阶段。如果底层传输是TCP,那么iSER层必须以字节流模式发送最终登录响应PDU。

4. After receiving the iSER Hello Message from the initiator, the iSER layer MUST respond with the iSER HelloReply Message to be sent as the first iSER Message if iSERHelloRequired is negotiated to "Yes". If the iSER layer receives an iSER Hello Message when iSERHelloRequired is negotiated to "No", then this MUST be treated as an iSER protocol error. See Section 5.1.3 on iSER Hello Exchange for more details.

4. 从启动器接收iSER Hello消息后,如果ISHELLOREQUIRED协商为“是”,则iSER层必须以iSER HelloReply消息作为第一条iSER消息进行响应。如果iSER层在ISHELLOREQUIRED协商为“否”时收到iSER Hello消息,则必须将其视为iSER协议错误。有关更多详细信息,请参阅iSER Hello Exchange的第5.1.3节。

Note: In the above sequence, the operations as described in items 3 and 4 MUST be performed atomically for iWARP connections. Failure to do this may result in race conditions.

注:在上述顺序中,对于iWARP连接,必须以原子方式执行第3项和第4项中所述的操作。不这样做可能会导致比赛条件。

5.1.3. iSER Hello Exchange
5.1.3. 伊瑟尔你好交换

If iSERHelloRequired is negotiated to "Yes", the first iSER Message sent by the iSER layer at the initiator to the target MUST be the iSER Hello Message. The iSER Hello Message is used by the iSER layer at the initiator to declare iSER parameters to the target. See Section 9.3 on iSER Header Format for iSER Hello Message. Conversely, if iSERHelloRequired is negotiated to "No", then the iSER layer at the initiator MUST NOT send an iSER Hello Message.

如果ISHELLOREQUIRED协商为“是”,则iSER层在启动器处向目标发送的第一条iSER消息必须是iSER Hello消息。iSER Hello消息由发起方的iSER层用于向目标声明iSER参数。有关iSER Hello消息,请参见第9.3节iSER头格式。相反,如果ISHELLOREQUIRED协商为“否”,则发起方的iSER层不得发送iSER Hello消息。

In response to the iSER Hello Message, the iSER layer at the target MUST return the iSER HelloReply Message as the first iSER Message sent by the target if iSERHelloRequired is negotiated to "Yes". The iSER HelloReply Message is used by the iSER layer at the target to declare iSER parameters to the initiator. See Section 9.4 on iSER Header Format for iSER HelloReply Message. If the iSER layer receives an iSER Hello Message when iSERHelloRequired is negotiated to "No", then this MUST be treated as an iSER protocol error. See Section 10.1.3.4 on iSER Protocol Errors on for more details.

为了响应iSER Hello消息,如果ISHELLOREQUIRED协商为“是”,则目标的iSER层必须将iSER HelloReply消息作为目标发送的第一条iSER消息返回。目标的iSER层使用iSER HelloReply消息向启动器声明iSER参数。有关iSER HelloReply消息,请参见第9.4节iSER头格式。如果iSER层在ISHELLOREQUIRED协商为“否”时收到iSER Hello消息,则必须将其视为iSER协议错误。有关更多详细信息,请参阅关于iSER协议错误的第10.1.3.4节。

In the iSER Hello Message, the iSER layer at the initiator declares the iSER-IRD value to the target.

在iSER Hello消息中,启动器处的iSER层向目标声明iSER IRD值。

Upon receiving the iSER Hello Message, the iSER layer at the target MUST set the iSER-ORD value to the minimum of the iSER-ORD value at the target and the iSER-IRD value declared by the initiator. In order to free up the unused resources, the iSER layer at the target MAY adjust (lower) its ORD value to match the iSER-ORD value if the iSER-ORD value is smaller than the ORD value at the target.

收到iSER Hello消息后,目标的iSER层必须将iSER ORD值设置为目标的iSER ORD值和启动器声明的iSER IRD值中的最小值。为了释放未使用的资源,如果iSER ORD值小于目标的ORD值,则目标的iSER层可以调整(降低)其ORD值以匹配iSER ORD值。

In the iSER HelloReply Message, the iSER layer at the target declares the iSER-ORD value to the initiator.

在iSER HelloReply消息中,目标的iSER层向启动器声明iSER ORD值。

Upon receiving the iSER HelloReply Message, the iSER layer at the initiator MAY adjust (lower) its IRD value to match the iSER-ORD value in order to free up the unused resources, if the iSER-ORD value declared by the target is smaller than the iSER-IRD value declared by the initiator.

在接收到iSER HelloReply消息后,如果目标声明的iSER ORD值小于启动器声明的iSER IRD值,则启动器处的iSER层可以调整(降低)其IRD值以匹配iSER ORD值,以便释放未使用的资源。

It is an iSER-level negotiation failure if the iSER parameters declared in the iSER Hello Message by the initiator are unacceptable to the target. This includes the following:

如果发起方在iSER Hello消息中声明的iSER参数对目标不可接受,则为iSER级协商失败。这包括:

* The initiator-declared iSER-IRD value is greater than 0, and the target-declared iSER-ORD value is 0.

* 启动器声明的iSER IRD值大于0,目标声明的iSER ORD值为0。

* The initiator-supported and the target-supported iSER protocol versions do not overlap.

* 受支持的启动器和受支持的目标iSER协议版本不重叠。

See Section 10.1.3.2 on the handling of the error situation.

关于错误情况的处理,见第10.1.3.2节。

An initiator that conforms to [RFC5046] allocates connection resources before sending the Login Request with the T (Transit) bit set to one and the NSG (Next Stage) field set to FullFeaturePhase. (For brevity, this is referred to as "early" connection allocation.) The current iSER specification relaxes this requirement to allow an initiator to allocate connection resources after it receives the final Login Response PDU from the target. (For brevity, this is referred to as "late" connection allocation.) An initiator that employs "late" connection allocation may encounter problems (e.g., RCaP connection closure) with a target that sends unexpected iSCSI PDUs immediately upon transitioning to Full Feature Phase, as allowed by the negotiated value of the MaxOutstandingUnexpectedPDUs key. The only way to prevent this situation in full generality is to use iSER Hello Messages, as they enable the initiator to allocate its connection resources before sending its iSER Hello Message. The iSERHelloRequired key is used by the initiator to determine if it is dealing with a target that supports the iSER Hello exchanges. Fortunately, known iSER target implementations do not take full advantage of the number of allowed unexpected PDUs immediately upon transitioning into Full Feature Phase, thus enabling an initiator workaround that involves a smaller quantity of connection resources prior to Full Feature Phase, as explained further below.

符合[RFC5046]的启动器在发送登录请求之前分配连接资源,T(传输)位设置为1,NSG(下一阶段)字段设置为FullFeaturePhase。(为简洁起见,这称为“早期”连接分配。)当前的iSER规范放宽了这一要求,允许启动器在从目标接收到最终登录响应PDU后分配连接资源。(为简洁起见,这称为“延迟”连接分配。)采用“延迟”连接分配的启动器可能会遇到问题(例如,RCaP连接关闭),目标在过渡到全功能阶段后立即发送意外的iSCSI PDU,MaxOutstandingUnexpectedPDU密钥的协商值允许。全面防止这种情况的唯一方法是使用iSER Hello消息,因为它们使启动器能够在发送iSER Hello消息之前分配其连接资源。启动器使用ISHELLOREQUIRED密钥来确定它是否正在处理支持iSER Hello交换的目标。幸运的是,已知的iSER目标实现没有在过渡到完整功能阶段时立即充分利用允许的意外PDU的数量,因此启用了在完整功能阶段之前涉及少量连接资源的启动器解决方案,如下所述。

In the following summary, where "late" connection allocation is practiced, an initiator that follows [RFC5046] is referred to as an "old" initiator; otherwise, it is referred to as a "new" initiator. Similarly, a target that does not support the iSERHelloRequired key

在以下总结中,在实践“延迟”连接分配的情况下,跟随[RFC5046]的启动器被称为“旧”启动器;否则,它被称为“新”启动器。类似地,不支持ISHELLOREQUIRED密钥的目标

(and responds with "NotUnderstood" when negotiating the iSERHelloRequired key) is referred to as an "old" target; otherwise, it is referred to as a "new" target. Note that an "old" target can still support the iSER Hello exchanges, but this fact is not known by the initiator. A "new" target can also respond with "No" when negotiating the iSERHelloRequired key. In this case, its behavior with respect to "late" connection allocation is similar to an "old" target.

(并在协商ISHELLOR所需密钥时以“未理解”回应)被称为“旧”目标;否则,它被称为“新”目标。请注意,“旧”目标仍然可以支持iSER Hello交换,但发起者不知道这一事实。协商ISHELLOR所需密钥时,“新”目标也可以回答“否”。在这种情况下,它关于“延迟”连接分配的行为类似于“旧”目标。

A "new" initiator will work fine with a "new" target.

“新”启动器可以与“新”目标配合使用。

For an "old" initiator and an "old" target, the failure by the initiator to handle the number of unexpected iSCSI control-type PDUs that are sent by the target before the buffer resources are allocated at the initiator can result in the failure of the iSER session caused by closure of the underlying RCaP connection. For the "old" target, there is a known implementation that sends one unexpected iSCSI control-type PDU after sending the final Login Response and then waits awhile before sending the next one. This tends to alleviate somewhat the buffer allocation problem at the initiator.

对于“旧”启动器和“旧”目标,在启动器分配缓冲区资源之前,如果启动器未能处理目标发送的意外iSCSI控制类型PDU数量,可能会导致iSER会话失败,原因是基础RCaP连接关闭。对于“旧”目标,已知的实现是在发送最终登录响应后发送一个意外的iSCSI控制类型PDU,然后在发送下一个响应之前等待一段时间。这有助于在一定程度上缓解启动器处的缓冲区分配问题。

For a "new" initiator and an "old" target, the failure by the initiator to handle the number of unexpected iSCSI control-type PDUs that are sent by the target before the buffer resources are allocated at the initiator can result in the failure of the iSER session caused by closure of the underlying RCaP connection. A "new" initiator MAY choose to terminate the connection; otherwise, it SHOULD do one of the following:

对于“新”启动器和“旧”目标,如果在启动器上分配缓冲区资源之前,启动器未能处理目标发送的意外iSCSI控制类型PDU的数量,则可能会导致iSER会话失败,原因是基础RCaP连接关闭。“新”启动器可以选择终止连接;否则,它应执行以下操作之一:

1. Allocate the connection resources before sending the final Login Request PDU.

1. 在发送最终登录请求PDU之前分配连接资源。

2. Allocate one or more buffers for receiving unexpected control-type PDUs from the target before sending the final Login Request PDU. This reduces the possibility of the unexpected control-type PDUs causing the RCaP connection to close before the connection resources have been allocated.

2. 在发送最终登录请求PDU之前,分配一个或多个缓冲区以从目标接收意外的控制类型PDU。这降低了意外控制类型PDU导致RCaP连接在分配连接资源之前关闭的可能性。

For an "old" initiator and a "new" target, if the iSERHelloRequired key is not negotiated, a "new" target MUST still respond with the iSER HelloReply Message when it receives the iSER Hello Message. If the iSERHelloRequired key is negotiated to "No" or "NotUnderstood", a "new" target MAY choose to terminate the connection; otherwise, it SHOULD delay sending any unexpected control-type PDUs until one of the following events has occurred:

对于“旧”启动器和“新”目标,如果未协商ISHELLOREQUIRED密钥,“新”目标在收到iSER Hello消息时仍必须使用iSER HelloReply消息进行响应。如果ISHELLOR所需密钥协商为“否”或“未理解”,则“新”目标可以选择终止连接;否则,它应延迟发送任何意外的控件类型PDU,直到发生以下事件之一:

1. A PDU is received from the initiator after it sends the final Login Response PDU.

1. 在发起方发送最终登录响应PDU后,将从发起方接收PDU。

2. A system-configurable timeout period (say, one second) has expired.

2. 系统可配置的超时时间(例如,1秒)已过期。

5.2. iSCSI/iSER Connection Termination
5.2. iSCSI/iSER连接终止
5.2.1. Normal Connection Termination at the Initiator
5.2.1. 启动器处的正常连接终止

The iSCSI layer at the initiator terminates an iSCSI/iSER connection normally by invoking the Send_Control Operational Primitive qualified with the Logout Request PDU. The iSER layer at the initiator MUST use a Send Message to send the Logout Request PDU to the target. The SendSE Message should be used if supported by the RCaP layer (e.g., iWARP). After the iSER layer at the initiator receives the Send Message containing the Logout Response PDU from the target, it MUST notify the iSCSI layer by invoking the Control_Notify Operational Primitive qualified with the Logout Response PDU.

启动器处的iSCSI层通常通过调用使用注销请求PDU限定的发送控制操作原语来终止iSCSI/iSER连接。启动器处的iSER层必须使用发送消息将注销请求PDU发送到目标。如果RCaP层(如iWARP)支持,则应使用SendSE消息。在启动器的iSER层从目标接收到包含注销响应PDU的发送消息后,它必须通过调用由注销响应PDU限定的Control_notify Operational原语来通知iSCSI层。

After the iSCSI logout process is complete, the iSCSI layer at the target is responsible for closing the iSCSI/iSER connection as described in Section 5.2.2. After the RCaP layer at the initiator reports that the connection has been closed, the iSER layer at the initiator MUST deallocate all connection and task resources (if any) associated with the connection, and invalidate the Local Mappings (if any) before notifying the iSCSI layer by invoking the Connection_Terminate_Notify Operational Primitive.

iSCSI注销过程完成后,目标位置的iSCSI层负责关闭iSCSI/iSER连接,如第5.2.2节所述。在启动器上的RCaP层报告连接已关闭后,启动器上的iSER层必须解除分配与连接关联的所有连接和任务资源(如果有),并使本地映射(如果有)无效,然后通过调用连接终止通知操作原语通知iSCSI层。

5.2.2. Normal Connection Termination at the Target
5.2.2. 目标上的正常连接终止

Upon receiving the Send Message containing the Logout Request PDU, the iSER layer at the target MUST notify the iSCSI layer at the target by invoking the Control_Notify Operational Primitive qualified with the Logout Request PDU. The iSCSI layer completes the logout process by invoking the Send_Control Operational Primitive qualified with the Logout Response PDU. The iSER layer at the target MUST use a Send Message to send the Logout Response PDU to the initiator. The SendSE Message should be used if supported by the RCaP layer (e.g., iWARP). After the iSCSI logout process is complete, the iSCSI layer

接收到包含注销请求PDU的发送消息后,目标的iSER层必须通过调用注销请求PDU限定的Control_notify Operational原语来通知目标的iSCSI层。iSCSI层通过调用使用注销响应PDU限定的发送控制操作原语来完成注销过程。目标的iSER层必须使用发送消息将注销响应PDU发送给启动器。如果RCaP层(如iWARP)支持,则应使用SendSE消息。iSCSI注销过程完成后,iSCSI层

at the target MUST request the iSER layer at the target to terminate the RCaP Stream by invoking the Connection_Terminate Operational Primitive.

目标的iSER层必须通过调用Connection_terminate操作原语请求目标的iSER层终止RCaP流。

As part of the termination process, the RCaP layer MUST close the connection. When the RCaP layer notifies the iSER layer after the RCaP Stream and the associated connection are terminated, the iSER layer MUST deallocate all connection and task resources (if any) associated with the connection, and invalidate the Local and Remote Mappings (if any).

作为终止过程的一部分,RCaP层必须关闭连接。当RCaP层在RCaP流和关联连接终止后通知iSER层时,iSER层必须解除分配与连接关联的所有连接和任务资源(如果有),并使本地和远程映射(如果有)无效。

5.2.3. Termination without Logout Request/Response PDUs
5.2.3. 无注销请求/响应PDU的终止
5.2.3.1. Connection Termination Initiated by the iSCSI layer
5.2.3.1. 由iSCSI层启动的连接终止

The Connection_Terminate Operational Primitive MAY be invoked by the iSCSI layer to request the iSER layer to terminate the RCaP Stream without having previously exchanged the Logout Request and Logout Response PDUs between the two iSCSI/iSER nodes. As part of the termination process, the RCaP layer will close the connection. When the RCaP layer notifies the iSER layer after the RCaP Stream and the associated connection are terminated, the iSER layer MUST perform the following actions.

iSCSI层可以调用Connection_Terminate操作原语,请求iSER层终止RCaP流,而无需事先在两个iSCSI/iSER节点之间交换注销请求和注销响应PDU。作为终止过程的一部分,RCaP层将关闭连接。当RCaP层在RCaP流和相关连接终止后通知iSER层时,iSER层必须执行以下操作。

If the Connection_Terminate Operational Primitive is invoked by the iSCSI layer at the target, then the iSER layer at the target MUST deallocate all connection and task resources (if any) associated with the connection, and invalidate the Local and Remote Mappings (if any).

如果目标的iSCSI层调用了Connection_Terminate操作原语,则目标的iSER层必须取消分配与该连接关联的所有连接和任务资源(如果有),并使本地和远程映射(如果有)无效。

If the Connection_Terminate Operational Primitive is invoked by the iSCSI layer at the initiator, then the iSER layer at the initiator MUST deallocate all connection and task resources (if any) associated with the connection, and invalidate the Local Mappings (if any).

如果启动器上的iSCSI层调用了Connection_Terminate操作原语,则启动器上的iSER层必须取消分配与该连接关联的所有连接和任务资源(如果有),并使本地映射(如果有)无效。

5.2.3.2. Connection Termination Notification to the iSCSI layer
5.2.3.2. 到iSCSI层的连接终止通知

If the iSCSI/iSER connection is terminated without the invocation of Connection_Terminate from the iSCSI layer, the iSER layer MUST notify the iSCSI layer that the iSCSI/iSER connection has been terminated by invoking the Connection_Terminate_Notify Operational Primitive.

如果iSCSI/iSER连接在没有从iSCSI层调用connection\u Terminate的情况下终止,则iSER层必须通过调用connection\u Terminate\u notify Operational原语通知iSCSI层iSCSI/iSER连接已终止。

Prior to invoking Connection_Terminate_Notify, the iSER layer at the target MUST deallocate all connection and task resources (if any) associated with the connection, and invalidate the Local and Remote Mappings (if any).

在调用Connection_Terminate_Notify之前,目标的iSER层必须解除分配与连接关联的所有连接和任务资源(如果有),并使本地和远程映射(如果有)无效。

Prior to invoking Connection_Terminate_Notify, the iSER layer at the initiator MUST deallocate all connection and task resources (if any) associated with the connection, and invalidate the Local Mappings (if any).

在调用Connection_Terminate_Notify之前,启动器上的iSER层必须解除分配与连接关联的所有连接和任务资源(如果有),并使本地映射(如果有)无效。

If the remote iSCSI/iSER node initiated the closing of the connection (e.g., by sending a TCP FIN or TCP RST), the iSER layer MUST notify the iSCSI layer after the RCaP layer reports that the connection is closed by invoking the Connection_Terminate_Notify Operational Primitive.

如果远程iSCSI/iSER节点启动了连接关闭(例如,通过发送TCP FIN或TCP RST),则iSER层必须在RCaP层通过调用连接终止通知操作原语报告连接关闭后通知iSCSI层。

Another example of a connection termination without a preceding logout is when the iSCSI layer at the initiator does an implicit logout (connection reinstatement).

未事先注销的连接终止的另一个示例是启动器的iSCSI层执行隐式注销(连接恢复)。

6. Login/Text Operational Keys
6. 登录/文本操作键

Certain iSCSI login/text operational keys have restricted usage in iSER, and additional keys are used to support the iSER protocol functionality. All other keys defined in [iSCSI] and not discussed in this section may be used on iSCSI/iSER connections with the same semantics.

某些iSCSI登录/文本操作密钥在iSER中的使用受到限制,其他密钥用于支持iSER协议功能。[iSCSI]中定义且本节中未讨论的所有其他密钥可在具有相同语义的iSCSI/iSER连接上使用。

6.1. HeaderDigest and DataDigest
6.1. HeaderDigest和DataDigest

Irrelevant when: RDMAExtensions=Yes

当:RDMAExtensions=Yes时不相关

Negotiations resulting in RDMAExtensions=Yes for a session imply HeaderDigest=None and DataDigest=None for all connections in that session and override the settings, whether default or configured.

对于会话,导致RDMAExtensions=Yes的协商意味着该会话中所有连接的HeaderDigest=None和DataDigest=None,并覆盖默认或配置的设置。

6.2. MaxRecvDataSegmentLength
6.2. MaxRecvDataSegmentLength

For an iSCSI connection belonging to a session in which RDMAExtensions=Yes was negotiated on the leading connection of the session, MaxRecvDataSegmentLength need not be declared in the Login Phase, and MUST be ignored if it is declared. Instead, InitiatorRecvDataSegmentLength (as described in Section 6.5) and TargetRecvDataSegmentLength (as described in Section 6.4) keys are negotiated. The values of the local and remote MaxRecvDataSegmentLength are derived from the InitiatorRecvDataSegmentLength and TargetRecvDataSegmentLength keys.

对于属于会话的会话的iSCSI连接,其中在会话的主要连接上协商了RDMAExtensions=Yes,则无需在登录阶段声明MaxRecvDataSegmentLength,如果声明MaxRecvDataSegmentLength,则必须忽略它。相反,InitiatorRecvDataSegmentLength(如第6.5节所述)和TargetRecvDataSegmentLength(如第6.4节所述)密钥是协商的。本地和远程MaxRecvDataSegmentLength的值来自InitiatorRecvDataSegmentLength和TargetRecvDataSegmentLength键。

In the Full Feature Phase, the initiator MUST consider the value of its local MaxRecvDataSegmentLength (that it would have declared to the target) as having the value of InitiatorRecvDataSegmentLength, and the value of the remote MaxRecvDataSegmentLength (that would have been declared by the target) as having the value of

在整个特征阶段,发起人必须考虑其本地Max ReVDATA数据长度(它将已经声明给目标)的值,因为它具有RealActuvReDeaseGeMeTeNT的值,并且远程MaxRecvDataSegmentLength(该值已经被目标声明)的值作为值。

TargetRecvDataSegmentLength. Similarly, the target MUST consider the value of its local MaxRecvDataSegmentLength (that it would have declared to the initiator) as having the value of TargetRecvDataSegmentLength, and the value of the remote MaxRecvDataSegmentLength (that would have been declared by the initiator) as having the value of InitiatorRecvDataSegmentLength.

TargetRecvDataSegmentLength。类似地,目标必须考虑其本地Max ReVDATA数据长度(它将已经声明给发起人)的值,作为目标RealVDATA数据长度的值,而远程MaxRecvDataSegmentLength的值(这将由发起人声明)具有初始值RealReValDeaseGeMeTrand的值。

Note that RFC 3720 requires that when a target receives a NOP-Out request with a valid Initiator Task Tag, it responds with a NOP-In with the same Initiator Task Tag that was provided in the NOP-Out request. Furthermore, it returns the first MaxRecvDataSegmentLength bytes of the initiator-provided Ping Data. Since there is no MaxRecvDataSegmentLength common to the initiator and the target in iSER, the length of the data sent with the NOP-Out request MUST NOT exceed InitiatorMaxRecvDataSegmentLength.

注意,RFC 3720要求当目标接收到具有有效启动器任务标记的NOP Out请求时,它使用NOP In和NOP Out请求中提供的相同启动器任务标记进行响应。此外,它还返回启动器提供的Ping数据的第一个MaxRecvDataSegmentLength字节。由于iSER中的启动器和目标没有共同的MaxRecvDataSegmentLength,因此随NOP Out请求发送的数据长度不得超过InitiatorMaxRecvDataSegmentLength。

The MaxRecvDataSegmentLength key is applicable only for iSCSI control-type PDUs.

MaxRecvDataSegmentLength密钥仅适用于iSCSI控制类型PDU。

6.3. RDMAExtensions
6.3. RDMAExtensions

Use: LO (leading only)

使用:LO(仅前导)

Senders: Initiator and Target

发件人:启动器和目标

Scope: SW (session-wide)

范围:软件(会话范围)

   RDMAExtensions=<boolean-value>
        
   RDMAExtensions=<boolean-value>
        

Irrelevant when: SessionType=Discovery

当:SessionType=Discovery时不相关

Default is No

默认为否

Result function is AND

结果函数为和

This key is used by the initiator and the target to negotiate the support for iSER-assisted mode. To enable the use of iSER-assisted mode, both the initiator and the target MUST exchange RDMAExtensions=Yes. iSER-assisted mode MUST NOT be used if either the initiator or the target offers RDMAExtensions=No.

发起方和目标方使用此密钥协商对iSER辅助模式的支持。要启用iSER辅助模式,发起方和目标方必须交换RDMAExtensions=Yes。如果发起方或目标方提供RDMAExtensions=No,则不得使用iSER辅助模式。

An iSER-enabled node is not required to initiate the RDMAExtensions key exchange if it prefers to operate in the Traditional iSCSI mode. However, if the RDMAExtensions key is to be negotiated, an initiator MUST offer the key in the first Login Request PDU in the LoginOperationalNegotiation stage of the leading connection, and a target MUST offer the key in the first Login Response PDU with which it is allowed to do so (i.e., the first Login Response PDU issued

如果启用iSER的节点希望在传统iSCSI模式下运行,则无需启动RDMAExtensions密钥交换。但是,如果要协商RDMAExtensions密钥,则发起方必须在前导连接的LoginOperationalNegotiation阶段的第一个登录请求PDU中提供密钥,目标方必须在允许其这样做的第一个登录响应PDU中提供密钥(即,发出的第一个登录响应PDU)

after the first Login Request PDU with the C bit set to zero) in the LoginOperationalNegotiation stage of the leading connection. In response to the offered key=value pair of RDMAExtensions=yes, an initiator MUST respond in the next Login Request PDU with which it is allowed to do so, and a target MUST respond in the next Login Response PDU with which it is allowed to do so.

在前导连接的LoginOperationalNegotiation阶段的第一个登录请求(C位设置为零的PDU)之后。为了响应提供的key=value对RDMAExtensions=yes,发起方必须在允许其这样做的下一个登录请求PDU中响应,目标方必须在允许其这样做的下一个登录响应PDU中响应。

Negotiating the RDMAExtensions key first enables a node to negotiate the optimal value for other keys. Certain iSCSI keys such as MaxBurstLength, MaxOutstandingR2T, ErrorRecoveryLevel, InitialR2T, ImmediateData, etc., may be negotiated differently depending on whether the connection is in Traditional iSCSI mode or iSER-assisted mode.

协商RDMAExtensions密钥首先使节点能够协商其他密钥的最佳值。某些iSCSI密钥(如MaxBurstLength、MaxOutstandingR2T、ErrorRecoveryLevel、InitialR2T、ImmediateData等)的协商方式可能会有所不同,具体取决于连接处于传统iSCSI模式还是iSER辅助模式。

6.4. TargetRecvDataSegmentLength
6.4. TargetRecvDataSegmentLength

Use: IO (Initialize only)

使用:IO(仅初始化)

Senders: Initiator and Target

发件人:启动器和目标

Scope: CO (connection-only)

经营范围:CO(仅限连接)

Irrelevant when: RDMAExtensions=No

当:RDMAExtensions=No时不相关

   TargetRecvDataSegmentLength=<numerical-value-512-to-(2**24-1)>
        
   TargetRecvDataSegmentLength=<numerical-value-512-to-(2**24-1)>
        

Default is 8192 bytes

默认值为8192字节

Result function is minimum

结果函数是最小的

This key is relevant only for the iSCSI connection of an iSCSI session if RDMAExtensions=Yes was negotiated on the leading connection of the session. It is used by the initiator and the target to negotiate the maximum size of the data segment that an initiator may send to the target in an iSCSI control-type PDU in the Full Feature Phase. For SCSI Command PDUs and SCSI Data-Out PDUs containing non-immediate unsolicited data to be sent by the initiator, the initiator MUST send all non-Final PDUs with a data segment size of exactly TargetRecvDataSegmentLength whenever the PDUs constitute a data sequence whose size is larger than TargetRecvDataSegmentLength.

如果在iSCSI会话的主要连接上协商了RDMAExtensions=Yes,则此密钥仅与该会话的iSCSI连接相关。启动器和目标使用它来协商在完整功能阶段,启动器可以通过iSCSI控制类型PDU向目标发送的数据段的最大大小。对于包含要由启动器发送的非即时非请求数据的SCSI命令PDU和SCSI数据输出PDU,只要PDU构成的数据序列的大小大于TargetRecvDataSegmentLength,则启动器必须发送数据段大小正好为TargetRecvDataSegmentLength的所有非最终PDU。

6.5. InitiatorRecvDataSegmentLength
6.5. InitiatorRecvDataSegmentLength

Use: IO (Initialize only)

使用:IO(仅初始化)

Senders: Initiator and Target

发件人:启动器和目标

Scope: CO (connection-only)

经营范围:CO(仅限连接)

Irrelevant when: RDMAExtensions=No

当:RDMAExtensions=No时不相关

   InitiatorRecvDataSegmentLength=<numerical-value-512-to-(2**24-1)>
        
   InitiatorRecvDataSegmentLength=<numerical-value-512-to-(2**24-1)>
        

Default is 8192 bytes

默认值为8192字节

Result function is minimum

结果函数是最小的

This key is relevant only for the iSCSI connection of an iSCSI session if RDMAExtensions=Yes was negotiated on the leading connection of the session. It is used by the initiator and the target to negotiate the maximum size of the data segment that a target may send to the initiator in an iSCSI control-type PDU in the Full Feature Phase.

如果在iSCSI会话的主要连接上协商了RDMAExtensions=Yes,则此密钥仅与该会话的iSCSI连接相关。发起方和目标方使用它协商目标方可在完整功能阶段通过iSCSI控制类型PDU发送给发起方的数据段的最大大小。

6.6. OFMarker and IFMarker
6.6. Marker和IFMarker的定义

Irrelevant when: RDMAExtensions=Yes

当:RDMAExtensions=Yes时不相关

Negotiations resulting in RDMAExtensions=Yes for a session imply OFMarker=No and IFMarker=No for all connections in that session and override the settings, whether default or configured.

对于会话,导致RDMAExtensions=Yes的协商意味着该会话中所有连接的marker=No和IFMarker=No,并覆盖默认或配置的设置。

6.7. MaxOutstandingUnexpectedPDUs
6.7. 最大未预期PDU

Use: LO (leading only), Declarative

用法:LO(仅前导),声明性

Senders: Initiator and Target

发件人:启动器和目标

Scope: SW (session-wide)

范围:软件(会话范围)

Irrelevant when: RDMAExtensions=No

当:RDMAExtensions=No时不相关

   MaxOutstandingUnexpectedPDUs=
      <numerical-value-from-2-to-(2**32-1) | 0>
        
   MaxOutstandingUnexpectedPDUs=
      <numerical-value-from-2-to-(2**32-1) | 0>
        

Default is 0

默认值为0

This key is used by the initiator and the target to declare the maximum number of outstanding "unexpected" iSCSI control-type PDUs that it can receive in the Full Feature Phase. It is intended to allow the receiving side to determine the amount of buffer resources needed beyond the normal flow control mechanism available in iSCSI. An initiator or target should select a value such that it would not impose an unnecessary constraint on the iSCSI layer under normal circumstances. The value of 0 is defined to indicate that the declarer has no limit on the maximum number of outstanding "unexpected" iSCSI control-type PDUs that it can receive. See Sections 8.1.1 and 8.1.2 for the usage of this key. Note that iSER Hello and HelloReply Messages are not iSCSI control-type PDUs and are not affected by this key.

启动器和目标使用此密钥来声明在完整功能阶段可接收的最大未完成“意外”iSCSI控制类型PDU数。其目的是允许接收端确定超出iSCSI中可用的正常流量控制机制所需的缓冲区资源量。启动器或目标应选择一个值,以便在正常情况下不会对iSCSI层施加不必要的约束。定义值0表示申报人对其可以接收的未完成“意外”iSCSI控制类型PDU的最大数量没有限制。有关此键的用法,请参见第8.1.1节和第8.1.2节。请注意,iSER Hello和HelloReply消息不是iSCSI控制类型PDU,不受此密钥的影响。

For interoperability with implementations based on [RFC5046], this key SHOULD be negotiated because the default value of 0 in [RFC5046] is problematic for most implementations as it does not impose a bound on resources consumable by unexpected PDUs.

对于与基于[RFC5046]的实现的互操作性,应协商此密钥,因为[RFC5046]中的默认值0对于大多数实现是有问题的,因为它不会对意外PDU消耗的资源施加限制。

6.8. MaxAHSLength
6.8. 最大长度

Use: LO (leading only), Declarative

用法:LO(仅前导),声明性

Senders: Initiator and Target

发件人:启动器和目标

Scope: SW (session-wide)

范围:软件(会话范围)

Irrelevant when: RDMAExtensions=No

当:RDMAExtensions=No时不相关

   MaxAHSLength=<numerical-value-from-2-to-(2**32-1) | 0>
        
   MaxAHSLength=<numerical-value-from-2-to-(2**32-1) | 0>
        

Default is 256

默认值为256

This key is used by the initiator and target to declare the maximum size of AHS in an iSCSI control-type PDU that it can receive in the Full Feature Phase. It is intended to allow the receiving side to determine the amount of resources needed for receive buffering. An initiator or target should select a value such that it would not impose an unnecessary constraint on the iSCSI layer under normal circumstances. The value of 0 is defined to indicate that the declarer has no limit on the maximum size of AHS in iSCSI control-type PDUs that it can receive.

启动器和目标使用此密钥来声明iSCSI控制类型PDU中可在完整功能阶段接收的AHS的最大大小。其目的是允许接收侧确定接收缓冲所需的资源量。启动器或目标应选择一个值,以便在正常情况下不会对iSCSI层施加不必要的约束。定义值0表示申报人对其可以接收的iSCSI控制类型PDU中AHS的最大大小没有限制。

For interoperability with implementations based on [RFC5046], an initiator or target MAY terminate the connection if it anticipates MaxAHSLength to be greater than 256 and the key is not understood by its peer.

对于基于[RFC5046]的实现的互操作性,如果启动器或目标预期MaxAhslLength大于256,并且其对等方不理解密钥,则可以终止连接。

6.9. TaggedBufferForSolicitedDataOnly
6.9. TaggedBufferForSolicitedDataOnly

Use: LO (leading only), Declarative

用法:LO(仅前导),声明性

Senders: Initiator

发送方:发起方

Scope: SW (session-wide)

范围:软件(会话范围)

   RDMAExtensions=<boolean-value>
        
   RDMAExtensions=<boolean-value>
        

Irrelevant when: RDMAExtensions=No

当:RDMAExtensions=No时不相关

Default is No

默认为否

This key is used by the initiator to declare to the target the usage of the Write Base Offset in the iSER header of an iSCSI control-type PDU. When set to No, the Base Offset is associated with an I/O buffer that contains all the write data, including both unsolicited and solicited data. When set to Yes, the Base Offset is associated with an I/O buffer that only contains solicited data.

启动器使用此密钥向目标声明iSCSI控制类型PDU的iSER标头中写入基偏移量的使用情况。当设置为“否”时,基偏移量与包含所有写入数据(包括未请求和请求的数据)的I/O缓冲区相关联。当设置为“是”时,基本偏移量与仅包含请求数据的I/O缓冲区相关联。

6.10. iSERHelloRequired
6.10. 他需要什么

Use: LO (leading only), Declarative

用法:LO(仅前导),声明性

Senders: Initiator

发送方:发起方

Scope: SW (session-wide)

范围:软件(会话范围)

   RDMAExtensions=<boolean-value>
        
   RDMAExtensions=<boolean-value>
        

Irrelevant when: RDMAExtensions=No

当:RDMAExtensions=No时不相关

Default is No

默认为否

This key is relevant only for the iSCSI connection of an iSCSI session if RDMAExtensions=Yes was negotiated on the leading connection of the session. It is used by the initiator to declare to the target whether the iSER Hello Exchange is required. When set to Yes, the iSER layers MUST perform the iSER Hello Exchange as described in Section 5.1.3. When set to No, the iSER layers MUST NOT perform the iSER Hello Exchange.

如果在iSCSI会话的主要连接上协商了RDMAExtensions=Yes,则此密钥仅与该会话的iSCSI连接相关。启动器使用它向目标声明是否需要iSER Hello交换。当设置为“是”时,iSER层必须按照第5.1.3节所述执行iSER Hello交换。当设置为“否”时,iSER层不得执行iSER Hello交换。

7. iSCSI PDU Considerations
7. iSCSI PDU注意事项

When a connection is in the iSER-assisted mode, two types of message transfers are allowed between the iSCSI layer (at the initiator) and the iSCSI layer (at the target). These are known as the iSCSI data-type PDUs and the iSCSI control-type PDUs, and these terms are described in the following sections.

当连接处于iSER辅助模式时,iSCSI层(在启动器处)和iSCSI层(在目标处)之间允许两种类型的消息传输。这些称为iSCSI数据类型PDU和iSCSI控制类型PDU,以下各节将介绍这些术语。

7.1. iSCSI Data-Type PDU
7.1. iSCSI数据类型PDU

An iSCSI data-type PDU is defined as an iSCSI PDU that causes data transfer, transparent to the remote iSCSI layer, to take place between the peer iSCSI nodes in the Full Feature Phase of an iSCSI/iSER connection. An iSCSI data-type PDU, when requested for transmission by the iSCSI layer in the sending node, results in the data's transfer without the participation of the iSCSI layers at the sending and the receiving nodes. This is due to the fact that the PDU itself is not delivered as-is to the iSCSI layer in the receiving node. Instead, the data transfer operations are transformed into the appropriate RDMA operations, which are handled by the RDMA-Capable Controller. The set of iSCSI data-type PDUs consists of SCSI Data-In PDUs and R2T PDUs.

iSCSI数据类型PDU定义为iSCSI PDU,它在iSCSI/iSER连接的全功能阶段,使对等iSCSI节点之间进行对远程iSCSI层透明的数据传输。当发送节点中的iSCSI层请求传输时,iSCSI数据类型PDU会导致数据传输,而发送节点和接收节点上的iSCSI层不参与。这是因为PDU本身没有按原样传递到接收节点中的iSCSI层。相反,数据传输操作被转换为适当的RDMA操作,由支持RDMA的控制器处理。iSCSI数据类型PDU集由PDU和R2T PDU中的SCSI数据组成。

If the invocation of the Operational Primitive by the iSCSI layer to request the iSER layer to process an iSCSI data-type PDU is qualified with Notify_Enable set, then upon completing the RDMA operation, the iSER layer at the target MUST notify the iSCSI layer at the target by invoking the Data_Completion_Notify Operational Primitive qualified with the ITT and SN. There is no data completion notification at the initiator since the RDMA operations are completely handled by the RDMA-Capable Controller at the initiator and the iSER layer at the initiator is not involved with the data transfer associated with iSCSI data-type PDUs.

如果iSCSI层调用操作原语请求iSER层处理iSCSI数据类型PDU符合Notify_Enable set,则在完成RDMA操作后,目标位置的iSER层必须通过调用ITT和SN限定的Data_Completion_notify Operational原语来通知目标位置的iSCSI层。由于RDMA操作完全由启动器上支持RDMA的控制器处理,并且启动器上的iSER层不涉及与iSCSI数据类型PDU关联的数据传输,因此启动器上没有数据完成通知。

If the invocation of the Operational Primitive by the iSCSI layer to request the iSER layer to process an iSCSI data-type PDU is qualified with Notify_Enable cleared, then upon completing the RDMA operation, the iSER layer at the target MUST NOT notify the iSCSI layer at the target and MUST NOT invoke the Data_Completion_Notify Operational Primitive.

如果iSCSI层调用操作原语以请求iSER层处理iSCSI数据类型PDU符合已清除Notify_Enable的条件,则在完成RDMA操作后,目标上的iSER层不得通知目标上的iSCSI层,也不得调用Data_Completion_notify Operational原语。

If an operation associated with an iSCSI data-type PDU fails for any reason, the contents of the Data Sink buffers associated with the operation are considered indeterminate.

如果与iSCSI数据类型PDU关联的操作因任何原因失败,则与该操作关联的数据接收器缓冲区的内容将被视为不确定。

7.2. iSCSI Control-Type PDU
7.2. iSCSI控制类型PDU

Any iSCSI PDU that is not an iSCSI data-type PDU and also not a SCSI Data-Out PDU carrying solicited data is defined as an iSCSI control-type PDU. The iSCSI layer invokes the Send_Control Operational Primitive to request the iSER layer to process an iSCSI control-type PDU. iSCSI control-type PDUs are transferred using Send Messages of RCaP. Specifically, it is to be noted that SCSI Data-Out PDUs carrying unsolicited data are defined as iSCSI control-type PDUs. See Section 7.3.4 on the treatment of SCSI Data-Out PDUs.

任何不是iSCSI数据类型PDU,也不是承载请求数据的SCSI数据输出PDU的iSCSI PDU都被定义为iSCSI控制类型PDU。iSCSI层调用发送控制操作原语,请求iSER层处理iSCSI控制类型PDU。iSCSI控制类型PDU使用RCaP的发送消息进行传输。具体而言,需要注意的是,携带未经请求数据的SCSI数据输出PDU被定义为iSCSI控制类型PDU。有关SCSI数据输出PDU的处理,请参见第7.3.4节。

When the iSER layer receives an iSCSI control-type PDU, it MUST notify the iSCSI layer by invoking the Control_Notify Operational Primitive qualified with the iSCSI control-type PDU.

当iSER层接收到iSCSI控制类型PDU时,它必须通过调用iSCSI控制类型PDU限定的control_notify Operational原语来通知iSCSI层。

7.3. iSCSI PDUs
7.3. iSCSI协议数据单元

This section describes the handling of each of the iSCSI PDU types by the iSER layer. The iSCSI layer requests the iSER layer to process the iSCSI PDU by invoking the appropriate Operational Primitive. A Connection_Handle MUST qualify each of these invocations. In addition, the BHS and the optional AHS of the iSCSI PDU as defined in [iSCSI] MUST qualify each of the invocations. The qualifying Connection_Handle, the BHS, and the AHS are not explicitly listed in the subsequent sections.

本节介绍iSER层对每种iSCSI PDU类型的处理。iSCSI层通过调用适当的操作原语请求iSER层处理iSCSI PDU。连接句柄必须限定每个调用。此外,[iSCSI]中定义的iSCSI PDU的BHS和可选AHS必须限定每次调用。后续章节中未明确列出合格连接手柄、BHS和AHS。

7.3.1. SCSI Command
7.3.1. SCSI命令

Type: control-type PDU

类型:控制类型PDU

PDU-specific qualifiers (for SCSI Write or bidirectional command): ImmediateDataSize, UnsolicitedDataSize, DataDescriptorOut

PDU特定的限定符(用于SCSI写入或双向命令):立即tasize、未经请求的DataSize、DataDescriptorRout

PDU-specific qualifiers (for SCSI Read or bidirectional command): DataDescriptorIn

PDU特定限定符(用于SCSI读取或双向命令):DataDescriptor

The iSER layer at the initiator MUST send the SCSI command in a Send Message to the target. The SendSE Message should be used if supported by the RCaP layer (e.g., iWARP).

启动器处的iSER层必须在发送消息中将SCSI命令发送到目标。如果RCaP层(如iWARP)支持,则应使用SendSE消息。

For a SCSI Write or bidirectional command, the iSCSI layer at the initiator MUST invoke the Send_Control Operational Primitive as follows:

对于SCSI写入或双向命令,启动器处的iSCSI层必须调用Send_Control操作原语,如下所示:

* If there is immediate data to be transferred for the SCSI write or bidirectional command, the qualifier ImmediateDataSize MUST be used to define the number of bytes of immediate unsolicited data to be sent with the write or bidirectional command, and the qualifier DataDescriptorOut MUST be used to define the initiator's I/O Buffer containing the SCSI Write data.

* 如果SCSI写入或双向命令需要传输即时数据,则必须使用限定符ImmediatedTaskize来定义随写入或双向命令发送的即时未经请求数据的字节数,必须使用限定符DataDescriptorRout来定义包含SCSI写入数据的启动器的I/O缓冲区。

* If there is unsolicited data to be transferred for the SCSI Write or bidirectional command, the qualifier UnsolicitedDataSize MUST be used to define the number of bytes of immediate and non-immediate unsolicited data for the command. The iSCSI layer will issue one or more SCSI Data-Out PDUs for the non-immediate unsolicited data. See Section 7.3.4 on SCSI Data-Out.

* 如果SCSI写入或双向命令需要传输未经请求的数据,则必须使用限定符UnsolicitedDataSize来定义命令的即时和非即时未经请求数据的字节数。iSCSI层将为非即时未经请求的数据发出一个或多个SCSI数据输出PDU。有关SCSI数据输出,请参见第7.3.4节。

* If there is solicited data to be transferred for the SCSI Write or bidirectional command, as indicated when the Expected Data Transfer Length in the SCSI Command PDU exceeds the value of UnsolicitedDataSize, the iSER layer at the initiator MUST do the following:

* 如果SCSI写入或双向命令需要传输请求的数据,如SCSI命令PDU中的预期数据传输长度超过UnsolicitedDataSize值时所示,则启动器的iSER层必须执行以下操作:

a. It MUST allocate a Write STag for the I/O Buffer defined by the qualifier DataDescriptorOut. DataDescriptorOut describes the I/O buffer starting with the immediate unsolicited data (if any), followed by the non-immediate unsolicited data (if any) and solicited data. When TaggedBufferForSolicitedDataOnly is negotiated to No, the Base Offset is associated with this I/O Buffer. When TaggedBufferForSolicitedDataOnly is negotiated to Yes, the Base Offset is associated with an I/O Buffer that contains only solicited data.

a. 它必须为限定符DataDescriptorRout定义的I/O缓冲区分配写STag。DataDescriptorRout描述I/O缓冲区,首先是即时未请求的数据(如果有),然后是非即时未请求的数据(如果有)和请求的数据。当taggedbufferforsoliciteddata only协商为No时,基偏移量与此I/O缓冲区相关联。当TaggedBufferForSolicitedDataOnly协商为Yes时,基偏移量与仅包含请求数据的I/O缓冲区相关联。

b. It MUST establish a Local Mapping that associates the Initiator Task Tag (ITT) to the Write STag.

b. 它必须建立一个本地映射,将启动器任务标记(ITT)与写入STag相关联。

c. It MUST Advertise the Write STag and the Base Offset to the target by sending them in the iSER header of the iSER Message (the payload of the Send Message of RCaP) containing the SCSI Write or bidirectional command PDU. The SendSE Message should be used if supported by the RCaP layer (e.g., iWARP). See Section 9.2 on iSER Header Format for iSCSI Control-Type PDU.

c. 它必须通过在包含SCSI写入或双向命令PDU的iSER消息(RCaP的发送消息的有效负载)的iSER头中发送写入STag和基偏移量来向目标播发写入STag和基偏移量。如果RCaP层(如iWARP)支持,则应使用SendSE消息。有关iSCSI控制类型PDU的iSER标头格式,请参阅第9.2节。

For a SCSI Read or bidirectional command, the iSCSI layer at the initiator MUST invoke the Send_Control Operational Primitive qualified with DataDescriptorIn, which defines the initiator's I/O Buffer for receiving the SCSI Read data. The iSER layer at the initiator MUST do the following:

对于SCSI读取或双向命令,启动器的iSCSI层必须调用使用DataDescriptorIn限定的Send_Control操作原语,该原语定义启动器的I/O缓冲区以接收SCSI读取数据。启动器上的iSER层必须执行以下操作:

a. It MUST allocate a Read STag for the I/O Buffer and note the Base Offset for this I/O Buffer.

a. 它必须为I/O缓冲区分配一个读STag,并记录该I/O缓冲区的基本偏移量。

b. It MUST establish a Local Mapping that associates the Initiator Task Tag (ITT) to the Read STag.

b. 它必须建立一个本地映射,将启动器任务标记(ITT)与读取STag相关联。

c. It MUST Advertise the Read STag and the Base Offset to the target by sending them in the iSER header of the iSER Message (the payload of the Send Message of RCaP) containing the SCSI Read or bidirectional command PDU. The SendSE Message should be used if supported by the RCaP layer (e.g., iWARP). See Section 9.2 on iSER Header Format for iSCSI Control-Type PDU.

c. 它必须通过在包含SCSI读取或双向命令PDU的iSER消息(RCaP的发送消息的有效负载)的iSER头中发送读取STag和基本偏移量来向目标播发读取STag和基本偏移量。如果RCaP层(如iWARP)支持,则应使用SendSE消息。有关iSCSI控制类型PDU的iSER标头格式,请参阅第9.2节。

If the amount of unsolicited data to be transferred in a SCSI Command exceeds TargetRecvDataSegmentLength, then the iSCSI layer at the initiator MUST segment the data into multiple iSCSI control-type PDUs, with the data segment length in all generated PDUs (except the last one) having exactly the size TargetRecvDataSegmentLength. The data segment length of the last iSCSI control-type PDU carrying the unsolicited data can be up to TargetRecvDataSegmentLength.

如果要在SCSI命令中传输的未经请求的数据量超过TargetRecvDataSegmentLength,则启动器处的iSCSI层必须将数据分段到多个iSCSI控制类型PDU中,所有生成的PDU(最后一个除外)中的数据段长度正好与TargetRecvDataSegmentLength的大小相同。承载未经请求数据的最后一个iSCSI控制类型PDU的数据段长度可以达到TargetRecvDataSegmentLength。

When the iSER layer at the target receives the SCSI Command, it MUST establish a Remote Mapping that associates the ITT to the Base Offset(s) and the Advertised STag(s) in the iSER header. The Write STag is used by the iSER layer at the target in handling the data transfer associated with the R2T PDU(s) as described in Section 7.3.6. The Read STag is used in handling the SCSI Data-In PDU(s) from the iSCSI layer at the target as described in Section 7.3.5.

当目标的iSER层接收到SCSI命令时,它必须建立一个远程映射,将ITT与iSER头中的基本偏移量和播发STag相关联。如第7.3.6节所述,目标iSER层在处理与R2T PDU相关的数据传输时使用写STag。如第7.3.5节所述,Read STag用于处理来自目标iSCSI层的PDU中的SCSI数据。

7.3.2. SCSI Response
7.3.2. SCSI响应

Type: control-type PDU

类型:控制类型PDU

PDU-specific qualifiers: DataDescriptorStatus

PDU特定限定符:DataDescriptorStatus

The iSCSI layer at the target MUST invoke the Send_Control Operational Primitive qualified with DataDescriptorStatus, which defines the buffer containing the sense and response information. The iSCSI layer at the target MUST always return the SCSI status for a SCSI command in a separate SCSI Response PDU. "Phase collapse" for

目标位置的iSCSI层必须调用使用DataDescriptorStatus限定的Send_Control操作原语,该原语定义包含检测和响应信息的缓冲区。目标的iSCSI层必须始终在单独的SCSI响应PDU中返回SCSI命令的SCSI状态。“相位崩溃”用于

transferring SCSI status in a SCSI Data-In PDU MUST NOT be used. The iSER layer at the target sends the SCSI Response PDU according to the following rules:

不得使用在PDU中传输SCSI数据中的SCSI状态。目标的iSER层根据以下规则发送SCSI响应PDU:

* If no STags were Advertised by the initiator in the iSER Message containing the SCSI command PDU, then the iSER layer at the target MUST send a Send Message containing the SCSI Response PDU. The SendSE Message should be used if supported by the RCaP layer (e.g., iWARP).

* 如果启动器在包含SCSI命令PDU的iSER消息中未播发STAG,则目标的iSER层必须发送包含SCSI响应PDU的发送消息。如果RCaP层(如iWARP)支持,则应使用SendSE消息。

* If the initiator Advertised a Read STag in the iSER Message containing the SCSI Command PDU, then the iSER layer at the target MUST send a Send Message containing the SCSI Response PDU. The header of the Send Message MUST carry the Read STag to be invalidated at the initiator. The Send with Invalidate Message, if supported by the RCaP layer (e.g., iWARP), can be used for the automatic invalidation of the STag.

* 如果启动器在包含SCSI命令PDU的iSER消息中公布了Read STag,则目标的iSER层必须发送包含SCSI响应PDU的发送消息。发送消息的标头必须包含要在启动器处失效的读取STag。如果RCaP层(例如iWARP)支持,则发送失效消息可用于STag的自动失效。

* If the initiator Advertised only the Write STag in the iSER Message containing the SCSI command PDU, then the iSER layer at the target MUST send a Send Message containing the SCSI Response PDU. The header of the Send Message MUST carry the Write STag to be invalidated at the initiator. The Send with Invalidate Message, if supported by the RCaP layer (e.g., iWARP), can be used for the automatic invalidation of the STag.

* 如果启动器在包含SCSI命令PDU的iSER消息中仅公布写入STag,则目标的iSER层必须发送包含SCSI响应PDU的发送消息。发送消息的报头必须包含要在启动器处失效的写入STag。如果RCaP层(例如iWARP)支持,则发送失效消息可用于STag的自动失效。

When the iSCSI layer at the target invokes the Send_Control Operational Primitive to send the SCSI Response PDU, the iSER layer at the target MUST invalidate the Remote Mapping before transferring the SCSI Response PDU to the initiator.

当目标的iSCSI层调用Send_Control Operational原语发送SCSI响应PDU时,目标的iSER层必须在将SCSI响应PDU传输到启动器之前使远程映射无效。

Upon receiving a Send Message containing the SCSI Response PDU from the target, the iSER layer at the initiator MUST invalidate the STag(s) specified in the header. (If a Send with Invalidate Message is supported by the RCaP layer (e.g., iWARP) and is used to carry the SCSI Response PDU, the RCaP layer at the initiator will invalidate the STag. The iSER layer at the initiator MUST ensure that the correct STag is invalidated. If both the Read and the Write STags were Advertised earlier by the initiator, then the iSER layer at the initiator MUST explicitly invalidate the Write STag upon receiving the Send with Invalidate Message because the header of the Send with Invalidate Message can only carry one STag (in this case, the Read STag) to be invalidated.)

从目标接收到包含SCSI响应PDU的发送消息后,启动器的iSER层必须使标头中指定的STag无效。(如果RCaP层(例如iWARP)支持发送失效消息)和用于承载SCSI响应PDU,启动器处的RCaP层将使STag无效。启动器处的iSER层必须确保正确的STag无效。如果启动器较早地播发了读和写STag,则启动器处的iSER层必须在r时显式使写STag无效接收发送失效消息,因为发送失效消息的头只能携带一个要失效的STag(在本例中为读取STag)

The iSER layer at the initiator MUST ensure the invalidation of the STag(s) used in a command before notifying the iSCSI layer at the initiator by invoking the Control_Notify Operational Primitive qualified with the SCSI Response. This precludes the possibility of

启动器上的iSER层必须确保命令中使用的STag无效,然后通过调用SCSI响应限定的Control_Notify Operational原语通知启动器上的iSCSI层。这就排除了

using the STag(s) after the completion of the command; such use would cause data corruption.

命令完成后使用STag;这种使用会导致数据损坏。

When the iSER layer at the initiator receives a Send Message containing the SCSI Response PDU, it SHOULD invalidate the Local Mapping. The iSER layer MUST ensure that all local STag(s) associated with the ITT are invalidated before notifying the iSCSI layer of the SCSI Response PDU by invoking the Control_Notify Operational Primitive qualified with the SCSI Response PDU.

当启动器的iSER层接收到包含SCSI响应PDU的发送消息时,它应该使本地映射无效。iSER层必须确保在通过调用SCSI响应PDU限定的Control_Notify Operational原语通知iSCSI层SCSI响应PDU之前,与ITT相关联的所有本地STag均无效。

7.3.3. Task Management Function Request/Response
7.3.3. 任务管理功能请求/响应

Type: control-type PDU

类型:控制类型PDU

PDU-specific qualifiers (for TMF Request): DataDescriptorOut, DataDescriptorIn

PDU特定限定符(用于TMF请求):DataDescriptorRout、DataDescriptorIn

The iSER layer MUST use a Send Message to send the Task Management Function Request/Response PDU. The SendSE Message should be used if supported by the RCaP layer (e.g., iWARP).

iSER层必须使用发送消息发送任务管理功能请求/响应PDU。如果RCaP层(如iWARP)支持,则应使用SendSE消息。

For the Task Management Function Request with the TASK REASSIGN function, the iSER layer at the initiator MUST do the following:

对于具有任务重新分配功能的任务管理功能请求,启动器的iSER层必须执行以下操作:

* It MUST use the ITT as specified in the Referenced Task Tag from the Task Management Function Request PDU to locate the existing STags (if any) in the Local Mappings.

* 它必须使用任务管理功能请求PDU中引用的任务标记中指定的ITT来定位本地映射中的现有STAG(如果有)。

* It MUST invalidate the existing STags (if any) and the Local Mappings.

* 它必须使现有stag(如果有)和本地映射无效。

* It MUST allocate a Read STag for the I/O Buffer and note the Base Offset associated with the I/O Buffer as defined by the qualifier DataDescriptorIn if the Send_Control Operational Primitive invocation is qualified with DataDescriptorIn.

* 它必须为I/O缓冲区分配一个读取STag,并注意与限定符DataDescriptorIn定义的I/O缓冲区相关联的基偏移量(如果Send_Control Operational Primitive调用使用DataDescriptorIn限定)。

* It MUST allocate a Write STag for the I/O Buffer and note the Base Offset associated with the I/O Buffer as defined by the qualifier DataDescriptorOut if the Send_Control Operational Primitive invocation is qualified with DataDescriptorOut.

* 如果发送控制操作原语调用使用DataDescriptorRout限定,则必须为I/O缓冲区分配写STag,并注意与限定符DataDescriptorRout定义的I/O缓冲区相关联的基偏移量。

* If STags are allocated, it MUST establish new Local Mapping(s) that associate the ITT to the allocated STag(s).

* 如果分配了STag,则必须建立新的本地映射,将ITT与分配的STag相关联。

* It MUST Advertise the STags and the Base Offsets, if allocated, to the target in the iSER header of the Send Message carrying the iSCSI PDU, as described in Section 9.2. The SendSE Message should be used if supported by the RCaP layer (e.g., iWARP).

* 如第9.2节所述,它必须在承载iSCSI PDU的发送消息的iSER头中将STAG和基本偏移量(如果已分配)通告给目标。如果RCaP层(如iWARP)支持,则应使用SendSE消息。

For the Task Management Function Request with the TASK REASSIGN function for a SCSI Read or bidirectional command, the iSCSI layer at the initiator MUST set ExpDataSN to zero since the data transfer and acknowledgements happen transparently to the iSCSI layer at the initiator. This provides the flexibility to the iSCSI layer at the target to request transmission of only the unacknowledged data as specified in [iSCSI].

对于具有SCSI读取或双向命令的任务重新分配功能的任务管理功能请求,启动器的iSCSI层必须将EXPDASN设置为零,因为数据传输和确认对启动器的iSCSI层是透明的。这为目标位置的iSCSI层提供了灵活性,可以请求仅传输[iSCSI]中指定的未确认数据。

When the iSER layer at the target receives the Task Management Function Request with the TASK REASSIGN function, it MUST do the following:

当目标的iSER层通过任务重新分配功能接收到任务管理功能请求时,它必须执行以下操作:

* It MUST use the ITT as specified in the Referenced Task Tag from the Task Management Function Request PDU to locate the Local and Remote Mappings (if any).

* 它必须使用任务管理功能请求PDU中引用的任务标记中指定的ITT来定位本地和远程映射(如果有)。

* It MUST invalidate the local STags (if any) associated with the ITT.

* 必须使与ITT相关的本地STAG(如有)无效。

* It MUST replace the Base Offset(s) and the Advertised STag(s) in the Remote Mapping with the Base Offset(s) and the Advertised STag(s) in the iSER header. The Write STag is used in the handling of the R2T PDU(s) from the iSCSI layer at the target as described in Section 7.3.6. The Read STag is used in the handling of the SCSI Data-In PDU(s) from the iSCSI layer at the target as described in Section 7.3.5.

* 它必须用iSER头中的基本偏移量和播发STag替换远程映射中的基本偏移量和播发STag。如第7.3.6节所述,写入STag用于从目标iSCSI层处理R2T PDU。如第7.3.5节所述,Read STag用于处理来自目标iSCSI层的PDU中的SCSI数据。

7.3.4. SCSI Data-Out
7.3.4. SCSI数据输出

Type: control-type PDU

类型:控制类型PDU

PDU-specific qualifiers: DataDescriptorOut

PDU特定限定符:DataDescriptorRout

The iSCSI layer at the initiator MUST invoke the Send_Control Operational Primitive qualified with DataDescriptorOut, which defines the initiator's I/O Buffer containing unsolicited SCSI Write data.

启动器的iSCSI层必须调用使用DataDescriptorRout限定的Send_Control操作原语,该原语定义启动器的I/O缓冲区,其中包含未经请求的SCSI写入数据。

If the amount of unsolicited data to be transferred as SCSI Data-Out exceeds TargetRecvDataSegmentLength, then the iSCSI layer at the initiator MUST segment the data into multiple iSCSI control-type PDUs, where the DataSegmentLength has the value of TargetRecvDataSegmentLength in all generated PDUs except the last one. The DataSegmentLength of the last iSCSI control-type PDU carrying the unsolicited data can be up to TargetRecvDataSegmentLength. The iSCSI layer at the target MUST perform the reassembly function for the unsolicited data.

如果要作为SCSI数据输出传输的未经请求的数据量超过TargetRecvDataSegmentLength,则启动器处的iSCSI层必须将数据分段为多个iSCSI控制类型PDU,其中DataSegmentLength在所有生成的PDU中的值为TargetRecvDataSegmentLength,但最后一个PDU除外。承载未经请求的数据的最后一个iSCSI控制类型PDU的DataSegmentLength可以达到TargetRecvDataSegmentLength。目标位置的iSCSI层必须对未经请求的数据执行重新组装功能。

For unsolicited data, the iSER layer at the initiator MUST use a Send Message to send the SCSI Data-Out PDU. If the F bit is set to 1, the SendSE Message should be used if supported by the RCaP layer (e.g., iWARP).

对于未经请求的数据,启动器处的iSER层必须使用发送消息将SCSI数据发送到PDU。如果F位设置为1,则如果RCaP层(例如iWARP)支持,则应使用SendSE消息。

Note that for solicited data, the SCSI Data-Out PDUs are not used since R2T PDUs are not delivered to the iSCSI layer at the initiator; instead, R2T PDUs are transformed by the iSER layer at the target into RDMA Read operations. (See Section 7.3.6.)

请注意,对于请求的数据,不会使用SCSI数据输出PDU,因为R2T PDU不会在启动器处传递到iSCSI层;相反,R2T PDU由目标的iSER层转换为RDMA读取操作。(见第7.3.6节。)

7.3.5. SCSI Data-In
7.3.5. 中的SCSI数据

Type: data-type PDU

类型:数据类型PDU

PDU-specific qualifiers: DataDescriptorIn

PDU特定限定符:DataDescriptorIn

When the iSCSI layer at the target is ready to return the SCSI Read data to the initiator, it MUST invoke the Put_Data Operational Primitive qualified with DataDescriptorIn, which defines the SCSI Data-In buffer. See Section 7.1 on the general requirement on the handling of iSCSI data-type PDUs. SCSI Data-In PDU(s) are used in SCSI Read data transfer as described in Section 9.5.2.

当目标的iSCSI层准备将SCSI读取数据返回到启动器时,它必须调用使用DataDescriptorIn限定的Put_数据操作原语,该原语定义缓冲区中的SCSI数据。有关iSCSI数据类型PDU处理的一般要求,请参见第7.1节。如第9.5.2节所述,PDU中的SCSI数据用于SCSI读取数据传输。

The iSER layer at the target MUST do the following for each invocation of the Put_Data Operational Primitive:

目标的iSER层必须为每次调用Put_数据操作原语执行以下操作:

1. It MUST use the ITT in the SCSI Data-In PDU to locate the remote Read STag and the Base Offset in the Remote Mapping. The Remote Mapping was established earlier by the iSER layer at the target when the SCSI Read Command was received from the initiator.

1. 它必须使用PDU中SCSI数据中的ITT来定位远程映射中的远程读取STag和基本偏移量。当从启动器接收到SCSI Read命令时,iSER层在目标上较早地建立了远程映射。

2. It MUST generate and send an RDMA Write Message containing the read data to the initiator.

2. 它必须生成包含读取数据的RDMA写入消息并发送给启动器。

a. It MUST use the remote Read STag as the Data Sink STag of the RDMA Write Message.

a. 它必须使用远程读取STag作为RDMA写入消息的数据接收器STag。

b. It MUST add the Buffer Offset from the SCSI Data-In PDU to the Base Offset from the Remote Mapping as the Data Sink Tagged Offset of the RDMA Write Message.

b. 它必须将PDU中SCSI数据的缓冲区偏移量添加到远程映射的基偏移量,作为RDMA写入消息的数据接收器标记偏移量。

c. It MUST use DataSegmentLength from the SCSI Data-In PDU to determine the amount of data to be sent in the RDMA Write Message.

c. 它必须使用PDU中SCSI数据的DataSegmentLength来确定RDMA写入消息中要发送的数据量。

3. It MUST associate the DataSN and ITT from the SCSI Data-In PDU with the RDMA Write operation. If the Put_Data Operational Primitive invocation was qualified with Notify_Enable set, then

3. 它必须将PDU中SCSI数据的DataSN和ITT与RDMA写入操作相关联。如果Put_数据操作原语调用通过Notify_Enable集合限定,则

when the iSER layer at the target receives a completion from the RCaP layer for the RDMA Write Message, the iSER layer at the target MUST notify the iSCSI layer by invoking the Data_Completion_Notify Operational Primitive qualified with the DataSN and ITT. Conversely, if the Put_Data Operational Primitive invocation was qualified with Notify_Enable cleared, then the iSER layer at the target MUST NOT notify the iSCSI layer on completion and MUST NOT invoke the Data_Completion_Notify Operational Primitive.

当目标的iSER层从RCaP层接收到RDMA写入消息的完成时,目标的iSER层必须通过调用Data_completion_notify操作原语通知iSCSI层,该原语由DataSN和ITT限定。相反,如果Put_数据操作原语调用在Notify_Enable清除时合格,则目标的iSER层不得在完成时通知iSCSI层,也不得调用Data_completion_Notify操作原语。

When the A-bit is set to one in the SCSI Data-In PDU, the iSER layer at the target MUST notify the iSCSI layer at the target when the data transfer is complete at the initiator. To perform this additional function, the iSER layer at the target can take advantage of the operational ErrorRecoveryLevel if previously disclosed by the iSCSI layer via an earlier invocation of the Notice_Key_Values Operational Primitive. There are two approaches that can be taken:

当PDU中的SCSI数据中的A位设置为1时,目标的iSER层必须在启动器的数据传输完成时通知目标的iSCSI层。要执行此附加功能,目标的iSER层可以利用operational ErrorRecoveryLevel(如果iSCSI层先前通过先前调用Notice_Key_Values操作原语公开)。可以采取两种方法:

1. If the iSER layer at the target knows that the operational ErrorRecoveryLevel is 2, or if the iSER layer at the target does not know the operational ErrorRecoveryLevel, then the iSER layer at the target MUST issue a zero-length RDMA Read Request Message following the RDMA Write Message. When the iSER layer at the target receives a completion for the RDMA Read Request Message from the RCaP layer, implying that the RDMA-Capable Controller at the initiator has completed processing the RDMA Write Message due to the completion ordering semantics of RCaP, the iSER layer at the target MUST notify the iSCSI layer at the target by invoking the Data_ACK_Notify Operational Primitive qualified with ITT and DataSN (see Section 3.2.3).

1. 如果目标的iSER层知道operational ErrorRecoveryLevel为2,或者如果目标的iSER层不知道operational ErrorRecoveryLevel,则目标的iSER层必须在RDMA写入消息之后发出零长度RDMA读取请求消息。当目标的iSER层接收到来自RCaP层的RDMA读取请求消息的完成,这意味着由于RCaP的完成顺序语义,发起方的支持RDMA的控制器已经完成了对RDMA写入消息的处理,目标公司的iSER层必须通过调用ITT和DataSN限定的数据确认通知操作原语通知目标公司的iSCSI层(见第3.2.3节)。

2. If the iSER layer at the target knows that the operational ErrorRecoveryLevel is 1, then the iSER layer at the target MUST do one of the following:

2. 如果目标的iSER层知道operational ErrorRecoveryLevel为1,则目标的iSER层必须执行以下操作之一:

a. It MUST notify the iSCSI layer at the target by invoking the Data_ACK_Notify Operational Primitive qualified with ITT and DataSN (see Section 3.2.3) when it receives the local completion from the RCaP layer for the RDMA Write Message. This is allowed since digest errors do not occur in iSER (see Section 10.1.4.2) and a CRC error will cause the connection to be terminated and the task to be terminated anyway. The local RDMA Write completion from the RCaP layer guarantees that the RCaP layer will not access the I/O Buffer again to transfer the data associated with that RDMA Write operation.

a. 当接收到来自RCaP层的RDMA写入消息本地完成时,必须通过调用ITT和DataSN(见第3.2.3节)鉴定的Data_ACK_notify操作原语通知目标iSCSI层。这是允许的,因为iSER中不会出现摘要错误(请参见第10.1.4.2节),CRC错误将导致连接终止,任务也将终止。来自RCaP层的本地RDMA写入完成可确保RCaP层不会再次访问I/O缓冲区以传输与该RDMA写入操作相关的数据。

b. Alternatively, it MUST use the same procedure for handling the data transfer completion at the initiator as for ErrorRecoveryLevel 2.

b. 或者,它必须使用与ErrorRecoveryLevel 2相同的程序在启动器处处理数据传输完成。

It should be noted that the iSCSI layer at the target cannot set the A-bit to 1 if the ErrorRecoveryLevel=0.

需要注意的是,如果ErrorRecoveryLevel=0,则目标的iSCSI层无法将A位设置为1。

SCSI status MUST always be returned in a separate SCSI Response PDU. The S bit in the SCSI Data-In PDU MUST always be set to zero. There MUST NOT be a "phase collapse" in the SCSI Data-In PDU.

SCSI状态必须始终在单独的SCSI响应PDU中返回。PDU中SCSI数据中的S位必须始终设置为零。PDU中的SCSI数据中不得存在“阶段崩溃”。

Since the RDMA Write Message only transfers the data portion of the SCSI Data-In PDU but not the control information in the header, such as ExpCmdSN, if timely updates of such information are crucial, the iSCSI layer at the initiator MAY issue NOP-Out PDUs to request the iSCSI layer at the target to respond with the information using NOP-In PDUs.

由于RDMA写入消息仅传输PDU中SCSI数据的数据部分,而不传输标头中的控制信息,例如ExpCmdSN,因此如果及时更新此类信息至关重要,则发起方的iSCSI层可能会发出NOP Out PDU,以请求目标方的iSCSI层使用PDU中的NOP响应信息。

7.3.6. Ready To Transfer (R2T)
7.3.6. 准备转移(R2T)

Type: data-type PDU

类型:数据类型PDU

PDU-specific qualifiers: DataDescriptorOut

PDU特定限定符:DataDescriptorRout

In order to send an R2T PDU, the iSCSI layer at the target MUST invoke the Get_Data Operational Primitive qualified with DataDescriptorOut, which defines the I/O Buffer for receiving the SCSI Write data from the initiator. See Section 7.1 on the general requirements on the handling of iSCSI data-type PDUs.

为了发送R2T PDU,目标位置的iSCSI层必须调用使用DataDescriptorRout限定的Get_数据操作原语,该原语定义用于从启动器接收SCSI写入数据的I/O缓冲区。有关iSCSI数据类型PDU处理的一般要求,请参见第7.1节。

The iSER layer at the target MUST do the following for each invocation of the Get_Data Operational Primitive:

目标的iSER层必须为每次调用Get_数据操作原语执行以下操作:

1. It MUST ensure a valid local STag for the I/O Buffer and a valid Local Mapping. This may involve allocating a valid local STag and establishing a Local Mapping.

1. 它必须确保I/O缓冲区的有效本地STag和有效的本地映射。这可能涉及分配有效的本地STag和建立本地映射。

2. It MUST use the ITT in the R2T to locate the remote Write STag and the Base Offset in the Remote Mapping. The Remote Mapping was established earlier by the iSER layer at the target when the iSER Message containing the Advertised Write STag, the Base Offset, and the SCSI Command PDU for a SCSI Write or bidirectional command was received from the initiator.

2. 它必须使用R2T中的ITT来定位远程映射中的远程写入STag和基偏移量。当从启动器接收到包含播发写STag、基偏移量和SCSI写入或双向命令的SCSI命令PDU的iSER消息时,远程映射由目标的iSER层更早地建立。

3. If the iSER-ORD value at the target is set to zero, the iSER layer at the target MUST terminate the connection and free up the resources associated with the connection (as described in Section 5.2.3) if it received the R2T PDU from the iSCSI layer at the

3. 如果目标服务器上的iSER ORD值设置为零,则目标服务器上的iSER层必须终止连接,并释放与连接相关的资源(如第5.2.3节所述),前提是它从目标服务器上的iSCSI层接收到R2T PDU

target. Upon termination of the connection, the iSER layer at the target MUST notify the iSCSI layer at the target by invoking the Connection_Terminate_Notify Operational Primitive.

目标连接终止后,目标的iSER层必须通过调用connection_Terminate_notify操作原语通知目标的iSCSI层。

4. If the iSER-ORD value at the target is set to greater than 0, the iSER layer at the target MUST transform the R2T PDU into an RDMA Read Request Message. While transforming the R2T PDU, the iSER layer at the target MUST ensure that the number of outstanding RDMA Read Request Messages does not exceed the iSER-ORD value. To transform the R2T PDU, the iSER layer at the target:

4. 如果目标的iSER ORD值设置为大于0,则目标的iSER层必须将R2T PDU转换为RDMA读取请求消息。在转换R2T PDU时,目标的iSER层必须确保未完成RDMA读取请求消息的数量不超过iSER ORD值。要转换R2T PDU,目标上的iSER层:

a. MUST derive the local STag and local Tagged Offset from the DataDescriptorOut that qualified the Get_Data invocation.

a. 必须从限定Get_数据调用的DataDescriptorRout派生本地STag和本地标记偏移量。

b. MUST use the local STag as the Data Sink STag of the RDMA Read Request Message.

b. 必须使用本地STag作为RDMA读取请求消息的数据接收器STag。

c. MUST use the local Tagged Offset as the Data Sink Tagged Offset of the RDMA Read Request Message.

c. 必须使用本地标记的偏移量作为RDMA读取请求消息的数据接收器标记的偏移量。

d. MUST use the Desired Data Transfer Length from the R2T PDU as the RDMA Read Message Size of the RDMA Read Request Message.

d. 必须使用来自R2T PDU的所需数据传输长度作为RDMA读取请求消息的RDMA读取消息大小。

e. MUST use the remote Write STag as the Data Source STag of the RDMA Read Request Message.

e. 必须使用远程写入STag作为RDMA读取请求消息的数据源STag。

f. MUST add the Buffer Offset from the R2T PDU to the Base Offset from the Remote Mapping as the Data Source Tagged Offset of the RDMA Read Request Message.

f. 必须将R2T PDU的缓冲区偏移量添加到远程映射的基本偏移量,作为RDMA读取请求消息的数据源标记偏移量。

5. It MUST associate the R2TSN and ITT from the R2T PDU with the RDMA Read operation. If the Get_Data Operational Primitive invocation was qualified with Notify_Enable set, then when the iSER layer at the target receives a completion from the RCaP layer for the RDMA Read operation, the iSER layer at the target MUST notify the iSCSI layer by invoking the Data_Completion_Notify Operational Primitive qualified with the R2TSN and ITT. Conversely, if the Get_Data Operational Primitive invocation was qualified with Notify_Enable cleared, then the iSER layer at the target MUST NOT notify the iSCSI layer on completion and MUST NOT invoke the Data_Completion_Notify Operational Primitive.

5. 它必须将R2T PDU的R2TSN和ITT与RDMA读取操作相关联。如果Get_数据操作原语调用通过Notify_Enable set限定,则当目标iSER层从RCaP层接收到RDMA读取操作的完成时,目标iSER层必须通过调用R2TSN和ITT限定的Data_COMPLICATION_Notify操作原语来通知iSCSI层。相反,如果Get_Data OPERATION原语调用在Notify_Enable清除时被限定,则目标的iSER层不得在完成时通知iSCSI层,也不得调用Data_completion_Notify OPERATION原语。

When the RCaP layer at the initiator receives a valid RDMA Read Request Message, it will return an RDMA Read Response Message containing the solicited write data to the target. When the RCaP layer at the target receives the RDMA Read Response Message from the initiator, it will place the solicited data in the I/O Buffer referenced by the Data Sink STag in the RDMA Read Response Message.

当启动器处的RCaP层接收到有效的RDMA读取请求消息时,它将向目标返回包含请求的写入数据的RDMA读取响应消息。当目标的RCaP层从发起方接收到RDMA读取响应消息时,它会将请求的数据放在RDMA读取响应消息中数据接收器STag引用的I/O缓冲区中。

Since the RDMA Read Request Message from the target does not transfer the control information in the R2T PDU such as ExpCmdSN, if timely updates of such information are crucial, the iSCSI layer at the initiator MAY issue NOP-Out PDUs to request the iSCSI layer at the target to respond with the information using NOP-In PDUs.

由于来自目标的RDMA读取请求消息不会传输R2T PDU(如ExpCmdSN)中的控制信息,因此,如果及时更新此类信息至关重要,则启动器处的iSCSI层可能会发出NOP Out PDU,以请求目标处的iSCSI层使用NOP in PDU响应信息。

Similarly, since the RDMA Read Response Message from the initiator only transfers the data but not the control information normally found in the SCSI Data-Out PDU, such as ExpStatSN, if timely updates of such information are crucial, the iSCSI layer at the target MAY issue NOP-In PDUs to request the iSCSI layer at the initiator to respond with the information using NOP-Out PDUs.

类似地,由于来自启动器的RDMA读取响应消息仅传输SCSI数据输出PDU中通常存在的数据,而不传输控制信息,例如ExpStatSN,如果及时更新此类信息至关重要,目标位置的iSCSI层可能会发出NOP In PDU,以请求启动器位置的iSCSI层使用NOP Out PDU响应信息。

7.3.7. Asynchronous Message
7.3.7. 异步消息

Type: control-type PDU

类型:控制类型PDU

PDU-specific qualifiers: DataDescriptorSense

PDU特定限定符:DataDescriptorSense

The iSCSI layer MUST invoke the Send_Control Operational Primitive qualified with DataDescriptorSense, which defines the buffer containing the sense and iSCSI event information. The iSER layer MUST use a Send Message to send the Asynchronous Message PDU. The SendSE Message should be used if supported by the RCaP layer (e.g., iWARP).

iSCSI层必须调用使用DataDescriptorSense限定的Send_Control操作原语,该原语定义包含检测和iSCSI事件信息的缓冲区。iSER层必须使用发送消息来发送异步消息PDU。如果RCaP层(如iWARP)支持,则应使用SendSE消息。

7.3.8. Text Request and Text Response
7.3.8. 文本请求和文本响应

Type: control-type PDU

类型:控制类型PDU

PDU-specific qualifiers: DataDescriptorTextOut (for Text Request), DataDescriptorIn (for Text Response)

PDU特定的限定符:DataDescriptorTextOut(用于文本请求)、DataDescriptorIn(用于文本响应)

The iSCSI layer MUST invoke the Send_Control Operational Primitive qualified with DataDescriptorTextOut (or DataDescriptorIn), which defines the Text Request (or Text Response) buffer. The iSER layer MUST use Send Messages to send the Text Request (or Text Response PDUs). The SendSE Message should be used if supported by the RCaP layer (e.g., iWARP).

iSCSI层必须调用使用DataDescriptorTextOut(或DataDescriptorIn)限定的发送控制操作原语,该原语定义文本请求(或文本响应)缓冲区。iSER层必须使用发送消息来发送文本请求(或文本响应PDU)。如果RCaP层(如iWARP)支持,则应使用SendSE消息。

7.3.9. Login Request and Login Response
7.3.9. 登录请求和登录响应

During the login negotiation, the iSCSI layer interacts with the transport layer directly, and the iSER layer is not involved. See Section 5.1 on iSCSI/iSER Connection Setup. If the underlying transport is TCP, the Login Request PDUs and the Login Response PDUs are exchanged when the connection between the initiator and the target is still in the byte stream mode.

在登录协商期间,iSCSI层直接与传输层交互,iSER层不参与。请参阅关于iSCSI/iSER连接设置的第5.1节。如果底层传输是TCP,则当启动器和目标之间的连接仍处于字节流模式时,将交换登录请求PDU和登录响应PDU。

The iSCSI layer MUST NOT send a Login Request (or a Login Response) PDU during the Full Feature Phase. A Login Request (or a Login Response) PDU, if used, MUST be treated as an iSCSI protocol error. The iSER layer MAY reject such a PDU from the iSCSI layer with an appropriate error code. If a Login Request PDU is received by the iSCSI layer at the target, it MUST respond with a Reject PDU with a reason code of "protocol error".

在完整功能阶段,iSCSI层不得发送登录请求(或登录响应)PDU。登录请求(或登录响应)PDU(如果使用)必须视为iSCSI协议错误。iSER层可以使用适当的错误代码从iSCSI层拒绝此类PDU。如果目标上的iSCSI层接收到登录请求PDU,则它必须以拒绝PDU响应,原因码为“协议错误”。

7.3.10. Logout Request and Logout Response
7.3.10. 注销请求和注销响应

Type: control-type PDU

类型:控制类型PDU

PDU-specific qualifiers: None

PDU特定限定符:无

The iSER layer MUST use a Send Message to send the Logout Request or Logout Response PDU. The SendSE Message should be used if supported by the RCaP layer (e.g., iWARP). Sections 5.2.1 and 5.2.2 describe the handling of the Logout Request and the Logout Response at the initiator and the target and the interactions between the initiator and the target to terminate a connection.

iSER层必须使用发送消息发送注销请求或注销响应PDU。如果RCaP层(如iWARP)支持,则应使用SendSE消息。第5.2.1节和第5.2.2节描述了注销请求和注销响应在发起方和目标方的处理,以及发起方和目标方之间终止连接的交互。

7.3.11. SNACK Request
7.3.11. 快餐请求

Since HeaderDigest and DataDigest must be negotiated to "None", there are no digest errors when the connection is in iSER-assisted mode. Also, since RCaP delivers all messages in the order they were sent, there are no sequence errors when the connection is in iSER-assisted mode. Therefore, the iSCSI layer MUST NOT send SNACK Request PDUs. A SNACK Request PDU, if used, MUST be treated as an iSCSI protocol error. The iSER layer MAY reject such a PDU from the iSCSI layer with an appropriate error code. If a SNACK Request PDU is received by the iSCSI layer at the target, it MUST respond with a Reject PDU with a reason code of "protocol error".

由于HeaderDigest和DataDigest必须协商为“无”,因此当连接处于iSER辅助模式时,不会出现摘要错误。此外,由于RCaP按照发送顺序发送所有消息,因此当连接处于iSER辅助模式时,不会出现序列错误。因此,iSCSI层不能发送零食请求PDU。零食请求PDU(如果使用)必须视为iSCSI协议错误。iSER层可以使用适当的错误代码从iSCSI层拒绝此类PDU。如果目标iSCSI层接收到零食请求PDU,它必须使用拒绝PDU进行响应,原因码为“协议错误”。

7.3.12. Reject
7.3.12. 拒绝

Type: control-type PDU

类型:控制类型PDU

PDU-specific qualifiers: DataDescriptorReject

PDU特定限定符:DataDescriptorReject

The iSCSI layer MUST invoke the Send_Control Operational Primitive qualified with DataDescriptorReject, which defines the Reject buffer. The iSER layer MUST use a Send Message to send the Reject PDU. The SendSE Message should be used if supported by the RCaP layer (e.g., iWARP).

iSCSI层必须调用使用DataDescriptorReject限定的Send_Control操作原语,该原语定义拒绝缓冲区。iSER层必须使用发送消息发送拒绝PDU。如果RCaP层(如iWARP)支持,则应使用SendSE消息。

7.3.13. NOP-Out and NOP-In
7.3.13. 不进不出

Type: control-type PDU

类型:控制类型PDU

PDU-specific qualifiers: DataDescriptorNOPOut (for NOP-Out), DataDescriptorNOPIn (for NOP-In)

PDU特定限定符:DataDescriptorNOPOut(用于NOP Out)、DataDescriptorNOPIn(用于NOP In)

The iSCSI layer MUST invoke the Send_Control Operational Primitive qualified with DataDescriptorNOPOut (or DataDescriptorNOPIn), which defines the Ping (or Return Ping) data buffer. The iSER layer MUST use Send Messages to send the NOP-Out (or NOP-In) PDU. The SendSE Message should be used if supported by the RCaP layer (e.g., iWARP).

iSCSI层必须调用使用DataDescriptorNoput(或DataDescriptorNOPIn)限定的Send_Control操作原语,该原语定义Ping(或Return Ping)数据缓冲区。iSER层必须使用发送消息来发送NOP Out(或NOP In)PDU。如果RCaP层(如iWARP)支持,则应使用SendSE消息。

8. Flow Control and STag Management
8. 流量控制和STag管理
8.1. Flow Control for RDMA Send Messages
8.1. RDMA发送消息的流控制

Send Messages in RCaP are used by the iSER layer to transfer iSCSI control-type PDUs. Each Send Message in RCaP consumes an Untagged Buffer at the Data Sink. However, neither the RCaP layer nor the iSER layer provides an explicit flow control mechanism for the Send Messages. Therefore, the iSER layer SHOULD provision enough Untagged buffers for handling incoming Send Messages to prevent buffer exhaustion at the RCaP layer. If buffer exhaustion occurs, it may result in the termination of the connection.

iSER层使用RCaP中的发送消息来传输iSCSI控制类型PDU。RCaP中的每个发送消息都会消耗数据接收器上的未标记缓冲区。但是,RCaP层和iSER层都没有为发送消息提供显式的流控制机制。因此,iSER层应该提供足够的未标记缓冲区来处理传入的发送消息,以防止RCaP层的缓冲区耗尽。如果缓冲区耗尽,则可能导致连接终止。

An implementation may choose to satisfy the buffer requirement by using a common buffer pool shared across multiple connections, with usage limits on a per-connection basis and usage limits on the buffer pool itself. In such an implementation, exceeding the buffer usage limit for a connection or the buffer pool itself may trigger interventions from the iSER layer to replenish the buffer pool and/or to isolate the connection causing the problem.

实现可以选择通过使用跨多个连接共享的公共缓冲池来满足缓冲区需求,每个连接的使用限制和缓冲池本身的使用限制。在这种实现中,超过连接或缓冲池本身的缓冲区使用限制可能触发来自iSER层的干预,以补充缓冲池和/或隔离导致问题的连接。

iSER also provides the MaxOutstandingUnexpectedPDUs key to be used by the initiator and the target to declare the maximum number of outstanding "unexpected" control-type PDUs that it can receive. It is intended to allow the receiving side to determine the amount of buffer resources needed beyond the normal flow control mechanism available in iSCSI.

iSER还提供MaxOutstandingUnexpectedPDU密钥,供启动器和目标使用,以声明它可以接收的最大未完成“意外”控制类型PDU数。其目的是允许接收端确定超出iSCSI中可用的正常流量控制机制所需的缓冲区资源量。

The buffer resources required at both the initiator and the target as a result of control-type PDUs sent by the initiator are described in Section 8.1.1. The buffer resources required at both the initiator and target as a result of control-type PDUs sent by the target are described in Section 8.1.2.

由于启动器发送的控制类型PDU,启动器和目标所需的缓冲区资源在第8.1.1节中进行了描述。第8.1.2节描述了目标发送的控制类型PDU在启动器和目标上所需的缓冲区资源。

8.1.1. Flow Control for Control-Type PDUs from the Initiator
8.1.1. 来自启动器的控制类型PDU的流控制

The control-type PDUs that can be sent by an initiator to a target can be grouped into the following categories:

启动器可以向目标发送的控制类型PDU可分为以下类别:

1. Regulated: Control-type PDUs in this category are regulated by the iSCSI CmdSN window mechanism, and the immediate flag is not set.

1. 受监管:此类别中的控制类型PDU由iSCSI CmdSN窗口机制监管,且未设置立即标志。

2. Unregulated but Expected: Control-type PDUs in this category are not regulated by the iSCSI CmdSN window mechanism but are expected by the target.

2. 不受监管但应为:此类别中的控制类型PDU不受iSCSI CmdSN窗口机制监管,但目标系统应为此类PDU。

3. Unregulated and Unexpected: Control-type PDUs in this category are not regulated by the iSCSI CmdSN window mechanism and are "unexpected" by the target.

3. 不受监管和意外:此类别中的控制类型PDU不受iSCSI CmdSN窗口机制的监管,并且由目标“意外”。

8.1.1.1. Control-Type PDUs from the Initiator in the Regulated Category
8.1.1.1. 来自受监管类别中启动器的控制类型PDU

Control-type PDUs that can be sent by the initiator in this category are regulated by the iSCSI CmdSN window mechanism, and the immediate flag is not set.

此类别中的启动器可以发送的控制类型PDU由iSCSI CmdSN窗口机制调节,并且未设置立即标志。

The queuing capacity required of the iSCSI layer at the target is described in Section 4.2.2.1 of [iSCSI]. For each of the control-type PDUs that can be sent by the initiator in this category, the initiator MUST provision for the buffer resources required for the corresponding control-type PDU sent as a response from the target. The following is a list of the PDUs that can be sent by the initiator and the PDUs that are sent by the target in response:

[iSCSI]的第4.2.2.1节描述了目标位置iSCSI层所需的排队容量。对于此类别中的启动器可以发送的每个控制类型PDU,启动器必须为作为目标响应发送的相应控制类型PDU提供所需的缓冲区资源。以下是可由启动器发送的PDU和由目标发送的响应PDU的列表:

a. When an initiator sends a SCSI Command PDU, it expects a SCSI Response PDU from the target.

a. 当启动器发送SCSI命令PDU时,它期望目标发送SCSI响应PDU。

b. When the initiator sends a Task Management Function Request PDU, it expects a Task Management Function Response PDU from the target.

b. 当启动器发送任务管理功能请求PDU时,它期望目标发送任务管理功能响应PDU。

c. When the initiator sends a Text Request PDU, it expects a Text Response PDU from the target.

c. 当发起方发送文本请求PDU时,它期望来自目标的文本响应PDU。

d. When the initiator sends a Logout Request PDU, it expects a Logout Response PDU from the target.

d. 当发起方发送注销请求PDU时,它期望目标方发送注销响应PDU。

e. When the initiator sends a NOP-Out PDU as a ping request with ITT != 0xffffffff and TTT = 0xffffffff, it expects a NOP-In PDU from the target with the same ITT and TTT as in the ping request.

e. 当启动器发送NOP Out PDU作为带有ITT的ping请求时!=0xFFFFFF和TTT=0xffffffff,它期望目标PDU中的NOP与ping请求中的ITT和TTT相同。

The response from the target for any of the PDUs enumerated here may alternatively be in the form of a Reject PDU sent before the task is active, as described in Section 7.3 of [iSCSI].

目标对此处列举的任何PDU的响应也可以是在任务激活之前发送的拒绝PDU的形式,如[iSCSI]第7.3节所述。

8.1.1.2. Control-Type PDUs from the Initiator in the Unregulated but Expected Category

8.1.1.2. 来自发起程序的控制类型PDU属于不受监管但符合要求的类别

For the control-type PDUs in the Unregulated but Expected category, the amount of buffering resources required at the target can be predetermined. The following is a list of the PDUs in this category:

对于未监管但预期类别中的控制类型pdu,可以预定目标所需的缓冲资源量。以下是此类PDU的列表:

a. SCSI Data-Out PDUs are used by the initiator to send unsolicited data. The amount of buffer resources required by the target can be determined using FirstBurstLength. Note that SCSI Data-Out PDUs are not used for solicited data since the R2T PDU, which is used for solicitation, is transformed into RDMA Read operations by the iSER layer at the target. See Section 7.3.4.

a. SCSI数据输出PDU由启动器用于发送未经请求的数据。目标所需的缓冲区资源量可以使用FirstBurstLength确定。请注意,SCSI数据输出PDU不用于请求数据,因为用于请求的R2T PDU由目标iSER层转换为RDMA读取操作。见第7.3.4节。

b. A NOP-Out PDU with TTT != 0xffffffff is sent as a ping response by the initiator to the NOP-In PDU sent as a ping request by the target.

b. 带有TTT的NOP Out PDU!=0xFFFFFF由发起方作为ping响应发送给目标方作为ping请求发送的PDU中的NOP。

8.1.1.3. Control-Type PDUs from the Initiator in the Unregulated and Unexpected Category

8.1.1.3. 来自发起程序的控制类型PDU属于不受监管和意外类别

PDUs in the Unregulated and Unexpected category are PDUs with the immediate flag set. The number of PDUs that are in this category and can be sent by an initiator is controlled by the value of MaxOutstandingUnexpectedPDUs declared by the target. (See Section 6.7.) After a PDU in this category is sent by the initiator, it is outstanding until it is retired. At any time, the number of outstanding unexpected PDUs MUST NOT exceed the value of MaxOutstandingUnexpectedPDUs declared by the target.

未监管和意外类别中的PDU是设置了立即标志的PDU。此类别中可由启动器发送的PDU数量由目标声明的MaxOutstandingUnexpectedPDU值控制。(参见第6.7节。)发起人发送此类PDU后,该PDU将一直处于未完成状态,直至失效。任何时候,未完成的意外PDU的数量都不得超过目标声明的MaxOutstandingUnexpectedPDU的值。

The target uses the value of MaxOutstandingUnexpectedPDUs that it declared to determine the amount of buffer resources required for control-type PDUs in this category that can be sent by an initiator. For the initiator, for each of the control-type PDUs that can be sent in this category, the initiator MUST provision for the buffer resources if required for the corresponding control-type PDU that can be sent as a response from the target.

目标使用它声明的MaxOutstandingUnexpectedPDU的值来确定发起程序可以发送的此类控制类型PDU所需的缓冲区资源量。对于启动器,对于可在此类别中发送的每个控制类型PDU,如果需要,启动器必须为可作为目标响应发送的相应控制类型PDU提供缓冲区资源。

An outstanding PDU in this category is retired as follows. If the CmdSN of the PDU sent by the initiator in this category is x, the PDU is outstanding until the initiator sends a non-immediate control-type

该类别中的一个优秀PDU退役如下。如果此类别中的启动器发送的PDU的CmdSN为x,则在启动器发送非立即控制类型之前,PDU处于未完成状态

PDU on the same connection with CmdSN = y (where y is at least x) and the target responds with a control-type PDU on any connection where ExpCmdSN is at least y+1.

同一连接上的PDU的CmdSN=y(其中y至少为x),并且目标在任何连接上以控制类型PDU响应,其中ExpCmdSN至少为y+1。

When the number of outstanding unexpected control-type PDUs equals MaxOutstandingUnexpectedPDUs, the iSCSI layer at the initiator MUST NOT generate any unexpected PDUs, which otherwise it would have generated, even if the unexpected PDU is intended for immediate delivery.

当未完成的意外控制类型PDU的数量等于MaxOutstandingUnexpectedPDU时,启动器处的iSCSI层不得生成任何未完成的PDU,否则它会生成任何未完成的PDU,即使未完成的PDU打算立即交付。

8.1.2. Flow Control for Control-Type PDUs from the Target
8.1.2. 来自目标的控制类型PDU的流控制

Control-type PDUs that can be sent by a target and are expected by the initiator are listed in the Regulated category. (See Section 8.1.1.1.)

可由目标发送且启动器预期的控制类型PDU列在受监管类别中。(见第8.1.1.1节。)

For the control-type PDUs that can be sent by a target and are unexpected by the initiator, the number is controlled by MaxOutstandingUnexpectedPDUs declared by the initiator. (See Section 6.7.) After a PDU in this category is sent by a target, it is outstanding until it is retired. At any time, the number of outstanding unexpected PDUs MUST NOT exceed the value of MaxOutstandingUnexpectedPDUs declared by the initiator. The initiator uses the value of MaxOutstandingUnexpectedPDUs that it declared to determine the amount of buffer resources required for control-type PDUs in this category that can be sent by a target. The following is a list of the PDUs in this category and the conditions for retiring the outstanding PDU:

对于可由目标发送且启动器未预料到的控制类型PDU,其数量由启动器声明的MaxOutstandingUnexpectedPDU控制。(参见第6.7节。)目标公司发送此类PDU后,该PDU将一直处于未完成状态,直至其退役。任何时候,未完成的意外PDU的数量都不得超过启动器声明的MaxOutstandingUnexpectedPDU的值。启动器使用其声明的MaxOutstandingUnexpectedPDU值来确定目标可以发送的此类控制类型PDU所需的缓冲区资源量。以下是此类PDU的列表,以及退役未完成PDU的条件:

a. For an Asynchronous Message PDU with StatSN = x, the PDU is outstanding until the initiator sends a control-type PDU with ExpStatSN set to at least x+1.

a. 对于StatSN=x的异步消息PDU,在启动器发送ExpStatSN设置为至少x+1的控制类型PDU之前,PDU是未完成的。

b. For a Reject PDU with StatSN = x, which is sent after a task is active, the PDU is outstanding until the initiator sends a control-type PDU with ExpStatSN set to at least x+1.

b. 对于StatSN=x的拒绝PDU(在任务激活后发送),PDU处于未完成状态,直到启动器发送ExpStatSN设置为至少x+1的控制类型PDU。

c. For a NOP-In PDU with ITT = 0xffffffff and StatSN = x, the PDU is outstanding until the initiator responds with a control-type PDU on the same connection where ExpStatSN is at least x+1. But if the NOP-In PDU is sent as a ping request with TTT != 0xffffffff, the PDU can also be retired when the initiator sends a NOP-Out PDU with the same ITT and TTT as in the ping request. Note that when a target sends a NOP-In PDU as a ping request, it must provision a buffer for the NOP-Out PDU sent as a ping response from the initiator.

c. 对于ITT=0xFFFFFF且StatSN=x的PDU中的NOP,PDU是未完成的,直到启动器在同一连接上使用控制类型PDU进行响应,其中ExpStatSN至少为x+1。但是如果PDU中的NOP作为带有TTT的ping请求发送0xFFFFFF,当启动器发送NOP Out PDU时,PDU也可以失效,其ITT和TTT与ping请求中的相同。请注意,当目标以ping请求的形式发送NOP-In-PDU时,它必须为作为ping响应从启动器发送的NOP-Out PDU提供缓冲区。

When the number of outstanding unexpected control-type PDUs equals MaxOutstandingUnexpectedPDUs, the iSCSI layer at the target MUST NOT generate any unexpected PDUs, which otherwise it would have generated, even if its intent is to indicate an iSCSI error condition (e.g., Asynchronous Message, Reject). Task timeouts, as in the initiator's waiting for a command completion or other connection and session-level exceptions, will ensure that correct operational behavior will result in these cases despite not generating the PDU. This rule overrides any other requirements elsewhere that require that a Reject PDU MUST be sent.

当未完成的意外控制类型PDU的数量等于MaxOutstandingUnexpectedPDU时,目标的iSCSI层不得生成任何意外PDU,否则它会生成任何意外PDU,即使其目的是指示iSCSI错误情况(例如,异步消息、拒绝)。任务超时,如启动器等待命令完成或其他连接和会话级别异常,将确保在这些情况下,即使不生成PDU,也会导致正确的操作行为。此规则覆盖其他任何要求必须发送拒绝PDU的要求。

(Implementation note: SCSI task timeout and recovery can be a lengthy process and hence SHOULD be avoided by proper provisioning of resources.)

(实施说明:SCSI任务超时和恢复可能是一个漫长的过程,因此应通过适当的资源调配来避免。)

(Implementation note: To ensure that the initiator has a means to inform the target that outstanding PDUs have been retired, the target should reserve the last unexpected control-type PDU allowable by the value of MaxOutstandingUnexpectedPDUs declared by the initiator for sending a NOP-In ping request with TTT != 0xffffffff to allow the initiator to return the NOP-Out ping response with the current ExpStatSN.)

(实施说明:为确保发起方有办法通知目标方未完成的PDU已失效,目标方应保留发起方声明的MaxOutstandingUnexpectedPDU值允许的最后一个意外控制类型PDU,用于发送TTT!=0xffffffff的NOP In ping请求,以允许发起方使用当前ExpStatSN返回NOP Out ping响应。)

8.2. Flow Control for RDMA Read Resources
8.2. RDMA读取资源的流控制

If iSERHelloRequired is negotiated to "Yes", then the total number of RDMA Read operations that can be active simultaneously on an iSCSI/iSER connection depends on the amount of resources allocated as declared in the iSER Hello exchange described in Section 5.1.3. Exceeding the number of RDMA Read operations allowed on a connection will result in the connection being terminated by the RCaP layer. The iSER layer at the target maintains the iSER-ORD to keep track of the maximum number of RDMA Read Requests that can be issued by the iSER layer on a particular RCaP Stream.

如果ISHELLOREQUIRED协商为“是”,则iSCSI/iSER连接上可同时激活的RDMA读取操作总数取决于在第5.1.3节所述的iSER Hello exchange中声明的分配资源量。超过连接上允许的RDMA读取操作数将导致连接被RCaP层终止。目标的iSER层维护iSER ORD,以跟踪iSER层在特定RCaP流上可以发出的最大RDMA读取请求数。

During connection setup (see Section 5.1), iSER-IRD is known at the initiator and iSER-ORD is known at the target after the iSER layers at the initiator and the target have respectively allocated the connection resources necessary to support RCaP, as directed by the Allocate_Connection_Resources Operational Primitive from the iSCSI layer before the end of the iSCSI Login Phase. In the Full Feature Phase, if iSERHelloRequired is negotiated to "Yes", then the first message sent by the initiator is the iSER Hello Message (see Section 9.3), which contains the value of iSER-IRD. In response to the iSER Hello Message, the target sends the iSER HelloReply Message (see Section 9.4), which contains the value of iSER-ORD. The iSER layer at both the initiator and the target MAY adjust (lower) the resources associated with iSER-IRD and iSER-ORD, respectively, to match the

在连接设置期间(参见第5.1节),在启动器和目标的iSER层分别分配了支持RCaP所需的连接资源后,启动器和目标的iSER IRD和iSER ORD是已知的,在iSCSI登录阶段结束之前,按照iSCSI层的Allocate_Connection_Resources操作原语的指示。在完整功能阶段,如果ISHELLOREQUIRED协商为“是”,则发起方发送的第一条消息是iSER Hello消息(参见第9.3节),其中包含iSER IRD的值。作为对iSER Hello消息的响应,目标发送iSER HelloReply消息(参见第9.4节),其中包含iSER ORD的值。发起方和目标方的iSER层都可以分别调整(降低)与iSER IRD和iSER ORD相关联的资源,以匹配

iSER-ORD value declared in the HelloReply Message. The iSER layer at the target MUST control the flow of the RDMA Read Request Messages so that it does not exceed the iSER-ORD value at the target.

在HelloReply消息中声明的iSER ORD值。目标位置的iSER层必须控制RDMA读取请求消息的流,以使其不超过目标位置的iSER ORD值。

If iSERHelloRequired is negotiated to "No", then the maximum number of RDMA Read operations that can be active is negotiated via other means outside the scope of this document. For example, in InfiniBand, iSER connection setup uses InfiniBand Connection Manager (CM) Management Datagrams (MADs), with additional iSER information exchanged in the private data.

如果ISHELLOREQUIRED协商为“否”,则可激活的RDMA读取操作的最大数量通过本文档范围之外的其他方式协商。例如,在InfiniBand中,iSER连接设置使用InfiniBand连接管理器(CM)管理数据报(MAD),并在专用数据中交换额外的iSER信息。

8.3. STag Management
8.3. 雄鹿管理

An STag is an identifier of a Tagged Buffer used in an RDMA operation. If the STags are exposed on the wire by being Advertised in the iSER header or declared in the header of an RCaP Message, then the allocation and the subsequent invalidation of the STags are as specified in this document.

STag是RDMA操作中使用的标记缓冲区的标识符。如果STAG通过在iSER报头中公布或在RCaP消息的报头中声明而在线路上公开,则STAG的分配和随后的失效如本文档所述。

8.3.1. Allocation of STags
8.3.1. 牡鹿的分配

When the iSCSI layer at the initiator invokes the Send_Control Operational Primitive to request the iSER layer at the initiator to process a SCSI Command, zero, one, or two STags may be allocated by the iSER layer. See Section 7.3.1 for details. The number of STags allocated depends on whether the command is unidirectional or bidirectional and whether or not solicited write data transfer is involved.

当启动器的iSCSI层调用Send_Control操作原语以请求启动器的iSER层处理SCSI命令时,iSER层可以分配零、一或两个stag。详见第7.3.1节。分配的stag数量取决于命令是单向的还是双向的,以及是否涉及请求的写数据传输。

When the iSCSI layer at the initiator invokes the Send_Control Operational Primitive to request the iSER layer at the initiator to process a Task Management Function Request with the TASK REASSIGN function, besides allocating zero, one, or two STags, the iSER layer MUST invalidate the existing STags (if any) associated with the ITT. See Section 7.3.3 for details.

当启动器的iSCSI层调用Send_Control操作原语请求启动器的iSER层使用任务重新分配功能处理任务管理功能请求时,除了分配零、一或两个stag外,iSER层还必须使与ITT关联的现有stag(如果有)无效。详见第7.3.3节。

The iSER layer at the target allocates a local Data Sink STag when the iSCSI layer at the target invokes the Get_Data Operational Primitive to request the iSER layer to process an R2T PDU. See Section 7.3.6 for details.

当目标的iSCSI层调用Get_数据操作原语请求iSER层处理R2T PDU时,目标的iSER层分配本地数据接收器STag。详见第7.3.6节。

8.3.2. Invalidation of STags
8.3.2. 雄鹿无效

The invalidation of the STags at the initiator at the completion of a unidirectional or bidirectional command when the associated SCSI Response PDU is sent by the target is described in Section 7.3.2.

第7.3.2节描述了当目标发送相关SCSI响应PDU时,在完成单向或双向命令时,启动器上的STAG失效。

When a unidirectional or bidirectional command concludes without the associated SCSI Response PDU being sent by the target, the iSCSI layer at the initiator MUST request the iSER layer at the initiator to invalidate the STags by invoking the Deallocate_Task_Resources Operational Primitive qualified with ITT. In response, the iSER layer at the initiator MUST locate the STags (if any) in the Local Mapping. The iSER layer at the initiator MUST invalidate the STags (if any) and the Local Mapping.

当单向或双向命令结束时,目标没有发送相关的SCSI响应PDU,则启动器的iSCSI层必须请求启动器的iSER层通过调用ITT限定的解除分配任务资源操作原语使STAG无效。作为响应,启动器处的iSER层必须在本地映射中找到stag(如果有)。启动器处的iSER层必须使STAG(如果有)和本地映射无效。

For an RDMA Read operation used to realize a SCSI Write data transfer, the iSER layer at the target SHOULD invalidate the Data Sink STag at the conclusion of the RDMA Read operation referencing the Data Sink STag (to permit the immediate reuse of buffer resources).

对于用于实现SCSI写入数据传输的RDMA读取操作,目标的iSER层应在引用数据接收器STag的RDMA读取操作结束时使数据接收器STag失效(以允许立即重用缓冲区资源)。

For an RDMA Write operation used to realize a SCSI Read data transfer, the Data Source STag at the target is not declared to the initiator and is not exposed on the wire. Invalidation of the STag is thus not specified.

对于用于实现SCSI读取数据传输的RDMA写入操作,目标上的数据源STag不向启动器声明,也不在线路上公开。因此,未规定STag的失效。

When a unidirectional or bidirectional command concludes without the associated SCSI Response PDU being sent by the target, the iSCSI layer at the target MUST request the iSER layer at the target to invalidate the STags by invoking the Deallocate_Task_Resources Operational Primitive qualified with ITT. In response, the iSER layer at the target MUST locate the local STags (if any) in the Local Mapping. The iSER layer at the target MUST invalidate the local STags (if any) and the Local Mapping.

当单向或双向命令结束而目标没有发送相关的SCSI响应PDU时,目标的iSCSI层必须请求目标的iSER层通过调用ITT限定的解除分配任务资源操作原语使STAG无效。作为响应,目标的iSER层必须在本地映射中定位本地stag(如果有)。目标的iSER层必须使本地stag(如果有)和本地映射无效。

9. iSER Control and Data Transfer
9. iSER控制和数据传输

For iSCSI data-type PDUs (see Section 7.1), the iSER layer uses RDMA Read and RDMA Write operations to transfer the solicited data. For iSCSI control-type PDUs (see Section 7.2), the iSER layer uses Send Messages of RCaP.

对于iSCSI数据类型PDU(请参阅第7.1节),iSER层使用RDMA读取和RDMA写入操作来传输请求的数据。对于iSCSI控制类型PDU(参见第7.2节),iSER层使用RCaP的发送消息。

9.1. iSER Header Format
9.1. iSER头格式

An iSER header MUST be present in every Send Message of RCaP. The iSER header is located in the first 28 bytes of the message payload of the Send Message of RCaP, as shown in Figure 2.

RCaP的每个发送消息中都必须存在iSER头。iSER报头位于RCaP发送消息的消息有效负载的前28个字节中,如图2所示。

    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Opcode|                  Opcode Specific Fields               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                    Opcode Specific Fields (32 bits)           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                    Opcode Specific Fields (64 bits)           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                    Opcode Specific Fields (32 bits)           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                    Opcode Specific Fields (64 bits)           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        
    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Opcode|                  Opcode Specific Fields               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                    Opcode Specific Fields (32 bits)           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                    Opcode Specific Fields (64 bits)           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                    Opcode Specific Fields (32 bits)           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                    Opcode Specific Fields (64 bits)           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        

Figure 2: iSER Header Format

图2:iSER头格式

Opcode - Operation Code: 4 bits

操作码-操作码:4位

The Opcode field identifies the type of iSER Messages:

操作码字段标识iSER消息的类型:

              0001b = iSCSI control-type PDU
        
              0001b = iSCSI control-type PDU
        
              0010b = iSER Hello Message
        
              0010b = iSER Hello Message
        
              0011b = iSER HelloReply Message
        
              0011b = iSER HelloReply Message
        

All other Opcodes are unassigned.

所有其他操作码均未分配。

9.2. iSER Header Format for iSCSI Control-Type PDU
9.2. iSCSI控制类型PDU的iSER标头格式

The iSER layer uses Send Messages of RCaP to transfer iSCSI control-type PDUs (see Section 7.2). The message payload of each of the Send Messages of RCaP used for transferring an iSER Message contains an iSER Header followed by an iSCSI control-type PDU.

iSER层使用RCaP的发送消息来传输iSCSI控制类型PDU(参见第7.2节)。用于传输iSER消息的每个RCaP发送消息的消息负载包含iSER头,后跟iSCSI控制类型PDU。

The iSER header in a Send Message of RCaP carrying an iSCSI control-type PDU MUST have the format as described in Figure 3.

承载iSCSI控制类型PDU的RCaP发送消息中的iSER头必须具有图3中所述的格式。

    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |       |W|R|                                                   |
   | 0001b |S|S|                  Reserved                         |
   |       |V|V|                                                   |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                            Write STag                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                         Write Base Offset                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                             Read STag                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                         Read Base Offset                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        
    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |       |W|R|                                                   |
   | 0001b |S|S|                  Reserved                         |
   |       |V|V|                                                   |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                            Write STag                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                         Write Base Offset                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                             Read STag                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                         Read Base Offset                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        

Figure 3: iSER Header Format for iSCSI Control-Type PDU

图3:iSCSI控制类型PDU的iSER头格式

WSV - Write STag Valid flag: 1 bit

WSV-写入STag有效标志:1位

This flag indicates the validity of the Write STag field and the Write Base Offset field of the iSER Header. If set to one, the Write STag field and the Write Base Offset field in this iSER Header are valid. If set to zero, the Write STag field and the Write Base Offset field in this iSER Header MUST be ignored at the receiver. The Write STag Valid flag is set to one when there is solicited data to be transferred for a SCSI Write or bidirectional command, or when there are non-immediate unsolicited and solicited data to be transferred for the referenced task specified in a Task Management Function Request with the TASK REASSIGN function.

此标志指示iSER头的写入STag字段和写入基偏移量字段的有效性。如果设置为1,则此iSER标头中的写入STag字段和写入基偏移量字段有效。如果设置为零,则必须在接收器处忽略此iSER标头中的写入STag字段和写入基址偏移字段。当SCSI写入或双向命令需要传输请求数据时,或当任务管理功能请求中使用任务重新分配功能指定的引用任务需要传输非即时非请求和请求数据时,Write STag Valid标志设置为1。

RSV - Read STag Valid flag: 1 bit

RSV-读取STag有效标志:1位

This flag indicates the validity of the Read STag field and the Read Base Offset field of the iSER Header. If set to one, the Read STag field and the Read Base Offset field in this iSER Header

此标志指示iSER标头的读取STag字段和读取基准偏移字段的有效性。如果设置为1,则表示此iSER标头中的读取STag字段和读取基本偏移量字段

are valid. If set to zero, the Read STag field and the Read Base Offset field in this iSER Header MUST be ignored at the receiver. The Read STag Valid flag is set to one for a SCSI Read or bidirectional command, or a Task Management Function Request with the TASK REASSIGN function.

是有效的。如果设置为零,则必须在接收器处忽略此iSER标头中的读取STag字段和读取基准偏移字段。对于SCSI读取或双向命令,或具有任务重新分配功能的任务管理功能请求,Read STag Valid标志设置为1。

Write STag - Write Steering Tag: 32 bits

写入STag-写入转向标记:32位

This field contains the Write STag when the Write STag Valid flag is set to one. For a SCSI Write or bidirectional command, the Write STag is used to Advertise the initiator's I/O Buffer containing the solicited data. For a Task Management Function Request with the TASK REASSIGN function, the Write STag is used to Advertise the initiator's I/O Buffer containing the non-immediate unsolicited data and solicited data. This Write STag is used as the Data Source STag in the resultant RDMA Read operation(s). When the Write STag Valid flag is set to zero, this field MUST be set to zero and ignored on receive.

当Write STag Valid标志设置为1时,此字段包含Write STag。对于SCSI写入或双向命令,Write STag用于公布包含请求数据的启动器的I/O缓冲区。对于具有任务重新分配功能的任务管理功能请求,Write STag用于公布启动器的I/O缓冲区,其中包含非即时非请求数据和请求数据。此写入STag用作结果RDMA读取操作中的数据源STag。当Write STag Valid标志设置为零时,此字段必须设置为零,并在接收时忽略。

Write Base Offset: 64 bits

写基偏移量:64位

This field contains the Base Offset associated with the I/O Buffer for the SCSI Write command when the Write STag Valid flag is set to one. When the Write STag Valid flag is set to zero, this field MUST be set to zero and ignored on receive.

当Write STag Valid标志设置为1时,此字段包含与SCSI Write命令的I/O缓冲区关联的基本偏移量。当Write STag Valid标志设置为零时,此字段必须设置为零,并在接收时忽略。

Read STag - Read Steering Tag: 32 bits

读取STag-读取转向标签:32位

This field contains the Read STag when the Read STag Valid flag is set to one. The Read STag is used to Advertise the initiator's Read I/O Buffer of a SCSI Read or bidirectional command, or a Task Management Function Request with the TASK REASSIGN function. This Read STag is used as the Data Sink STag in the resultant RDMA Write operation(s). When the Read STag Valid flag is zero, this field MUST be set to zero and ignored on receive.

当Read STag Valid标志设置为1时,此字段包含Read STag。Read STag用于通告启动器的SCSI读取或双向命令的读取I/O缓冲区,或具有任务重新分配功能的任务管理功能请求。此读取STag用作结果RDMA写入操作中的数据接收器STag。当Read STag Valid标志为零时,此字段必须设置为零,并在接收时忽略。

Read Base Offset: 64 bits

读取基偏移量:64位

This field contains the Base Offset associated with the I/O Buffer for the SCSI Read command when the Read STag Valid flag is set to one. When the Read STag Valid flag is set to zero, this field MUST be set to zero and ignored on receive.

当Read STag Valid标志设置为1时,此字段包含与SCSI Read命令的I/O缓冲区关联的基本偏移量。当Read STag Valid标志设置为零时,此字段必须设置为零,并在接收时忽略。

Reserved:

保留:

Reserved fields MUST be set to zero on transmit and MUST be ignored on receive.

保留字段在传输时必须设置为零,在接收时必须忽略。

9.3. iSER Header Format for iSER Hello Message
9.3. iSER Hello消息的iSER头格式

An iSER Hello Message MUST only contain the iSER header, which MUST have the format as described in Figure 4. If iSERHelloRequired is negotiated to "Yes", then iSER Hello Message is the first iSER Message sent on the RCaP Stream from the iSER layer at the initiator to the iSER layer at the target.

iSER Hello消息必须只包含iSER头,其格式必须如图4所示。如果ISHELLOREQUIRED协商为“是”,则iSER Hello消息是在RCaP流上从启动器的iSER层发送到目标的iSER层的第一条iSER消息。

       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |       |       |       |       |                               |
      | 0010b | Rsvd  | MaxVer| MinVer|           iSER-IRD            |
      |       |       |       |       |                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                           Reserved                            |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      |                           Reserved                            |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                           Reserved                            |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      |                           Reserved                            |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |       |       |       |       |                               |
      | 0010b | Rsvd  | MaxVer| MinVer|           iSER-IRD            |
      |       |       |       |       |                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                           Reserved                            |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      |                           Reserved                            |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                           Reserved                            |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      |                           Reserved                            |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        

Figure 4: iSER Header Format for iSER Hello Message

图4:iSER Hello消息的iSER头格式

MaxVer - Maximum Version: 4 bits

MaxVer-最大版本:4位

This field specifies the maximum version of the iSER protocol supported. It MUST be set to 10 to indicate the version of the specification described in this document.

此字段指定支持的iSER协议的最大版本。必须将其设置为10,以指示本文档中描述的规范版本。

MinVer - Minimum Version: 4 bits

MinVer-最小版本:4位

This field specifies the minimum version of the iSER protocol supported. It MUST be set to 10 to indicate the version of the specification described in this document.

此字段指定支持的iSER协议的最低版本。必须将其设置为10,以指示本文档中描述的规范版本。

iSER-IRD: 16 bits

iSER IRD:16位

This field contains the value of the iSER-IRD at the initiator.

此字段包含启动器上iSER IRD的值。

Reserved (Rsvd):

预留(Rsvd):

Reserved fields MUST be set to zero on transmit and MUST be ignored on receive.

保留字段在传输时必须设置为零,在接收时必须忽略。

9.4. iSER Header Format for iSER HelloReply Message
9.4. iSER HelloReply消息的iSER头格式

An iSER HelloReply Message MUST only contain the iSER header, which MUST have the format as described in Figure 5. If iSERHelloRequired is negotiated to "Yes", then the iSER HelloReply Message is the first iSER Message sent on the RCaP Stream from the iSER layer at the target to the iSER layer at the initiator.

iSER HelloReply消息必须仅包含iSER头,其格式必须如图5所示。如果ISHELLOREQUIRED协商为“是”,则iSER HelloReply消息是在RCaP流上从目标iSER层发送到启动器iSER层的第一条iSER消息。

    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |       |     |R|       |       |                               |
   | 0011b |Rsvd |E| MaxVer| CurVer|           iSER-ORD            |
   |       |     |J|       |       |                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           Reserved                            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                           Reserved                            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           Reserved                            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                           Reserved                            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        
    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |       |     |R|       |       |                               |
   | 0011b |Rsvd |E| MaxVer| CurVer|           iSER-ORD            |
   |       |     |J|       |       |                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           Reserved                            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                           Reserved                            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           Reserved                            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                           Reserved                            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        

Figure 5: iSER Header Format for iSER HelloReply Message

图5:iSER HelloReply消息的iSER头格式

REJ - Reject flag: 1 bit

REJ-拒绝标志:1位

This flag indicates whether the target is rejecting this connection. If set to one, the target is rejecting the connection.

此标志指示目标是否拒绝此连接。如果设置为1,则目标拒绝连接。

MaxVer - Maximum Version: 4 bits

MaxVer-最大版本:4位

This field specifies the maximum version of the iSER protocol supported. It MUST be set to 10 to indicate the version of the specification described in this document.

此字段指定支持的iSER协议的最大版本。必须将其设置为10,以指示本文档中描述的规范版本。

CurVer - Current Version: 4 bits

CurVer-当前版本:4位

This field specifies the current version of the iSER protocol supported. It MUST be set to 10 to indicate the version of the specification described in this document.

此字段指定支持的iSER协议的当前版本。必须将其设置为10,以指示本文档中描述的规范版本。

iSER-ORD: 16 bits

iSER ORD:16位

This field contains the value of the iSER-ORD at the target.

此字段包含目标的iSER ORD值。

Reserved (Rsvd):

预留(Rsvd):

Reserved fields MUST be set to zero on transmit and MUST be ignored on receive.

保留字段在传输时必须设置为零,在接收时必须忽略。

9.5. SCSI Data Transfer Operations
9.5. SCSI数据传输操作

The iSER layer at the initiator and the iSER layer at the target handle each SCSI Write, SCSI Read, and bidirectional operation as described below.

启动器的iSER层和目标的iSER层处理每个SCSI写入、SCSI读取和双向操作,如下所述。

9.5.1. SCSI Write Operation
9.5.1. SCSI写操作

The iSCSI layer at the initiator MUST invoke the Send_Control Operational Primitive to request the iSER layer at the initiator to send the SCSI Write Command. The iSER layer at the initiator MUST request the RCaP layer to transmit a Send Message with the message payload consisting of the iSER header followed by the SCSI Command PDU and immediate data (if any). The SendSE Message should be used if supported by the RCaP layer (e.g., iWARP). If there is solicited data, the iSER layer MUST Advertise the Write STag and the Base Offset in the iSER header of the Send Message, as described in Section 9.2. Upon receiving the Send Message, the iSER layer at the target MUST notify the iSCSI layer at the target by invoking the Control_Notify Operational Primitive qualified with the SCSI Command PDU. See Section 7.3.1 for details on the handling of the SCSI Write Command.

启动器上的iSCSI层必须调用Send_Control操作原语,以请求启动器上的iSER层发送SCSI写入命令。启动器处的iSER层必须请求RCaP层发送一条发送消息,消息有效负载由iSER头、SCSI命令PDU和即时数据(如果有)组成。如果RCaP层(如iWARP)支持,则应使用SendSE消息。如果存在请求的数据,iSER层必须在发送消息的iSER报头中公布写STag和基偏移量,如第9.2节所述。接收到发送消息后,目标的iSER层必须通过调用SCSI命令PDU限定的Control_notify Operational原语来通知目标的iSCSI层。有关SCSI写入命令处理的详细信息,请参阅第7.3.1节。

For the non-immediate unsolicited data, the iSCSI layer at the initiator MUST invoke a Send_Control Operational Primitive qualified with the SCSI Data-Out PDU. Upon receiving each Send Message containing the non-immediate unsolicited data, the iSER layer at the target MUST notify the iSCSI layer at the target by invoking the Control_Notify Operational Primitive qualified with the SCSI Data-Out PDU. See Section 7.3.4 for details on the handling of the SCSI Data-Out PDU.

对于非即时未经请求的数据,启动器处的iSCSI层必须调用使用SCSI数据输出PDU限定的发送控制操作原语。在接收到包含非即时非请求数据的每个发送消息后,目标的iSER层必须通过调用与SCSI data Out PDU一起限定的Control_notify Operational原语来通知目标的iSCSI层。有关SCSI数据输出PDU处理的详细信息,请参阅第7.3.4节。

For the solicited data, when the iSCSI layer at the target has an I/O Buffer available, it MUST invoke the Get_Data Operational Primitive qualified with the R2T PDU. See Section 7.3.6 for details on the handling of the R2T PDU.

对于请求的数据,当目标的iSCSI层具有可用的I/O缓冲区时,它必须调用使用R2T PDU限定的Get_数据操作原语。有关R2T PDU处理的详细信息,请参见第7.3.6节。

When the data transfer associated with this SCSI Write operation is complete, the iSCSI layer at the target MUST invoke the Send_Control Operational Primitive when it is ready to send the SCSI Response PDU. Upon receiving a Send Message containing the SCSI Response PDU, the iSER layer at the initiator MUST notify the iSCSI layer at the initiator by invoking the Control_Notify Operational Primitive qualified with the SCSI Response PDU. See Section 7.3.2 for details on the handling of the SCSI Response PDU.

当与此SCSI写入操作相关联的数据传输完成时,目标的iSCSI层必须在准备发送SCSI响应PDU时调用Send_Control操作原语。接收到包含SCSI响应PDU的发送消息后,启动器上的iSER层必须通过调用SCSI响应PDU限定的Control_notify操作原语来通知启动器上的iSCSI层。有关SCSI响应PDU处理的详细信息,请参阅第7.3.2节。

9.5.2. SCSI Read Operation
9.5.2. SCSI读取操作

The iSCSI layer at the initiator MUST invoke the Send_Control Operational Primitive to request the iSER layer at the initiator to send the SCSI Read Command. The iSER layer at the initiator MUST request the RCaP layer to transmit a Send Message with the message payload consisting of the iSER header followed by the SCSI Command PDU. The SendSE Message should be used if supported by the RCaP layer (e.g., iWARP). The iSER layer at the initiator MUST Advertise the Read STag and the Base Offset in the iSER header of the Send Message, as described in Section 9.2. Upon receiving the Send Message, the iSER layer at the target MUST notify the iSCSI layer at the target by invoking the Control_Notify Operational Primitive qualified with the SCSI Command PDU. See Section 7.3.1 for details on the handling of the SCSI Read Command.

启动器上的iSCSI层必须调用Send_Control操作原语,以请求启动器上的iSER层发送SCSI读取命令。启动器处的iSER层必须请求RCaP层发送一条发送消息,消息有效负载由iSER头和SCSI命令PDU组成。如果RCaP层(如iWARP)支持,则应使用SendSE消息。如第9.2节所述,发起方的iSER层必须在发送消息的iSER头中公布读取STag和基偏移量。接收到发送消息后,目标的iSER层必须通过调用SCSI命令PDU限定的Control_notify Operational原语来通知目标的iSCSI层。有关SCSI读取命令处理的详细信息,请参阅第7.3.1节。

When the requested SCSI data is available in the I/O Buffer, the iSCSI layer at the target MUST invoke the Put_Data Operational Primitive qualified with the SCSI Data-In PDU. See Section 7.3.5 for details on the handling of the SCSI Data-In PDU.

当请求的SCSI数据在I/O缓冲区中可用时,目标的iSCSI层必须调用在PDU中使用SCSI数据限定的Put_数据操作原语。有关PDU中SCSI数据处理的详细信息,请参见第7.3.5节。

When the data transfer associated with this SCSI Read operation is complete, the iSCSI layer at the target MUST invoke the Send_Control Operational Primitive when it is ready to send the SCSI Response PDU. The SendInvSE Message should be used if supported by the RCaP layer (e.g., iWARP). Upon receiving the Send Message containing the SCSI Response PDU, the iSER layer at the initiator MUST notify the iSCSI layer at the initiator by invoking the Control_Notify Operational Primitive qualified with the SCSI Response PDU. See Section 7.3.2 for details on the handling of the SCSI Response PDU.

当与此SCSI读取操作相关联的数据传输完成时,目标的iSCSI层必须在准备发送SCSI响应PDU时调用Send_Control操作原语。如果RCaP层(如iWARP)支持,则应使用SendInvSE消息。接收到包含SCSI响应PDU的发送消息后,启动器上的iSER层必须通过调用SCSI响应PDU限定的Control_notify操作原语来通知启动器上的iSCSI层。有关SCSI响应PDU处理的详细信息,请参阅第7.3.2节。

9.5.3. Bidirectional Operation
9.5.3. 双向操作

The initiator and the target handle the SCSI Write and the SCSI Read portions of this bidirectional operation the same as described in Sections 9.5.1 and 9.5.2, respectively.

启动器和目标分别按照第9.5.1节和第9.5.2节中的描述处理此双向操作的SCSI写入和SCSI读取部分。

10. iSER Error Handling and Recovery
10. iSER错误处理和恢复

RCaP provides the iSER layer with reliable in-order delivery. Therefore, the error management needs of an iSER-assisted connection are somewhat different than those of a Traditional iSCSI connection.

RCaP为iSER层提供可靠的订单交付。因此,iSER辅助连接的错误管理需求与传统iSCSI连接有所不同。

10.1. Error Handling
10.1. 错误处理

iSER error handling is described in the following sections, classified loosely based on the sources of errors:

iSER错误处理在以下章节中进行了描述,并根据错误来源进行了松散分类:

1. Those originating at the transport layer (e.g., TCP).

1. 源于传输层(如TCP)的协议。

2. Those originating at the RCaP layer.

2. 源于RCaP层的。

3. Those originating at the iSER layer.

3. 那些源于iSER层的。

4. Those originating at the iSCSI layer.

4. 源于iSCSI层的。

10.1.1. Errors in the Transport Layer
10.1.1. 传输层中的错误

If the transport layer is TCP, then TCP packets with detected errors are silently dropped by the TCP layer and result in retransmission at the TCP layer. This has no impact on the iSER layer. However, connection loss (e.g., link failure) and unexpected termination (e.g., TCP graceful or abnormal close without the iSCSI Logout exchanges) at the transport layer will cause the iSCSI/iSER connection to be terminated as well.

如果传输层是TCP,则TCP层会自动丢弃检测到错误的TCP数据包,并导致TCP层的重新传输。这对iSER层没有影响。但是,传输层的连接丢失(例如,链路故障)和意外终止(例如,TCP正常关闭或在没有iSCSI注销交换的情况下异常关闭)也会导致iSCSI/iSER连接终止。

10.1.1.1. Failure in the Transport Layer Before RCaP Mode is Enabled
10.1.1.1. 启用RCaP模式前传输层出现故障

If the connection is lost or terminated before the iSCSI layer invokes the Allocate_Connection_Resources Operational Primitive, the login process is terminated and no further action is required.

如果连接在iSCSI层调用Allocate_connection_Resources操作原语之前丢失或终止,则登录过程将终止,无需进一步操作。

If the connection is lost or terminated after the iSCSI layer has invoked the Allocate_Connection_Resources Operational Primitive, then the iSCSI layer MUST request the iSER layer to deallocate all connection resources by invoking the Deallocate_Connection_Resources Operational Primitive.

如果在iSCSI层调用Allocate_connection_Resources操作原语后连接丢失或终止,则iSCSI层必须通过调用deallocate_connection_Resources操作原语请求iSER层取消分配所有连接资源。

10.1.1.2. Failure in the Transport Layer After RCaP Mode is Enabled
10.1.1.2. 启用RCaP模式后传输层出现故障

If the connection is lost or terminated after the iSCSI layer has invoked the Enable_Datamover Operational Primitive, the iSER layer MUST notify the iSCSI layer of the connection loss by invoking the Connection_Terminate_Notify Operational Primitive. Prior to invoking the Connection_Terminate_Notify Operational Primitive, the iSER layer MUST perform the actions described in Section 5.2.3.2.

如果在iSCSI层调用Enable_Datamover操作原语后连接丢失或终止,iSER层必须通过调用connection_Terminate_notify操作原语通知iSCSI层连接丢失。在调用连接终止通知操作原语之前,iSER层必须执行第5.2.3.2节中描述的操作。

10.1.2. Errors in the RCaP Layer
10.1.2. RCaP层中的错误

The RCaP layer does not have error recovery operations built in. If errors are detected at the RCaP layer, the RCaP layer will terminate the RCaP Stream and the associated connection.

RCaP层没有内置错误恢复操作。如果在RCaP层检测到错误,RCaP层将终止RCaP流和相关连接。

10.1.2.1. Errors Detected in the Local RCaP Layer
10.1.2.1. 在本地RCaP层中检测到错误

If an error is encountered at the local RCaP layer, the RCaP layer MAY send a Send Message to the Remote Peer to report the error if possible. (For iWARP, see [RDMAP] for the list of errors where a Terminate Message is sent.) The RCaP layer is responsible for terminating the connection. After the RCaP layer notifies the iSER layer that the connection is terminated, the iSER layer MUST notify the iSCSI layer by invoking the Connection_Terminate_Notify Operational Primitive. Prior to invoking the Connection_Terminate_Notify Operational Primitive, the iSER layer MUST perform the actions described in Section 5.2.3.2.

如果在本地RCaP层遇到错误,RCaP层可能会向远程对等方发送发送消息以报告错误(如果可能)。(对于iWARP,请参阅[RDMAP]了解发送终止消息时的错误列表。)RCaP层负责终止连接。RCaP层通知iSER层连接已终止后,iSER层必须通过调用connection_Terminate_notify操作原语通知iSCSI层。在调用连接终止通知操作原语之前,iSER层必须执行第5.2.3.2节中描述的操作。

10.1.2.2. Errors Detected in the RCaP Layer at the Remote Peer
10.1.2.2. 在远程对等机的RCaP层中检测到错误

If an error is encountered at the RCaP layer at the Remote Peer, the RCaP layer at the Remote Peer may send a Send Message to report the error if possible. If it is unable to send a Send Message, the connection is terminated. This is treated the same as a failure in the transport layer after RDMA is enabled, as described in Section 10.1.1.2.

如果远程对等方的RCaP层遇到错误,则远程对等方的RCaP层可能会发送发送消息以报告错误(如果可能)。如果无法发送发送消息,则连接将终止。如第10.1.1.2节所述,在启用RDMA后,这被视为传输层中的故障。

If an error is encountered at the RCaP layer at the Remote Peer and it is able to send a Send Message, the RCaP layer at the Remote Peer is responsible for terminating the connection. After the local RCaP layer notifies the iSER layer that the connection is terminated, the iSER layer MUST notify the iSCSI layer by invoking the Connection_Terminate_Notify Operational Primitive. Prior to invoking the Connection_Terminate_Notify Operational Primitive, the iSER layer MUST perform the actions described in Section 5.2.3.2.

如果远程对等方的RCaP层遇到错误,并且能够发送发送消息,则远程对等方的RCaP层负责终止连接。在本地RCaP层通知iSER层连接已终止后,iSER层必须通过调用connection_Terminate_notify操作原语通知iSCSI层。在调用连接终止通知操作原语之前,iSER层必须执行第5.2.3.2节中描述的操作。

10.1.3. Errors in the iSER Layer
10.1.3. iSER层中的错误

The error handling due to errors at the iSER layer is described in the following sections.

iSER层错误导致的错误处理将在以下部分中描述。

10.1.3.1. Insufficient Connection Resources to Support RCaP at Connection Setup

10.1.3.1. 连接资源不足,无法在连接设置时支持RCaP

After the iSCSI layer at the initiator invokes the Allocate_Connection_Resources Operational Primitive during the iSCSI login negotiation phase, if the iSER layer at the initiator fails to allocate the connection resources necessary to support RCaP, it MUST return a status of failure to the iSCSI layer at the initiator. The iSCSI layer at the initiator MUST terminate the connection as described in Section 5.2.3.1.

在iSCSI登录协商阶段,发起方的iSCSI层调用Allocate_Connection_Resources操作原语后,如果发起方的iSER层未能分配支持RCaP所需的连接资源,则它必须向发起方的iSCSI层返回失败状态。启动器处的iSCSI层必须按照第5.2.3.1节所述终止连接。

After the iSCSI layer at the target invokes the Allocate_Connection_Resources Operational Primitive during the iSCSI login negotiation phase, if the iSER layer at the target fails to allocate the connection resources necessary to support RCaP, it MUST return a status of failure to the iSCSI layer at the target. The iSCSI layer at the target MUST send a Login Response with a Status-Class of 0x03 (Target Error), and a Status-Code of 0x02 (Out of Resources). The iSCSI layers at the initiator and the target MUST terminate the connection as described in Section 5.2.3.1.

在iSCSI登录协商阶段,目标的iSCSI层调用Allocate_Connection_Resources操作原语后,如果目标的iSER层未能分配支持RCaP所需的连接资源,则必须向目标的iSCSI层返回失败状态。目标位置的iSCSI层必须发送状态类为0x03(目标错误)和状态代码为0x02(资源不足)的登录响应。启动器和目标的iSCSI层必须按照第5.2.3.1节所述终止连接。

10.1.3.2. iSER Negotiation Failures
10.1.3.2. iSER协商失败

If iSERHelloRequired is negotiated to "Yes" and the RCaP or iSER related parameters declared by the initiator in the iSER Hello Message are unacceptable to the iSER layer at the target, the iSER layer at the target MUST set the Reject (REJ) flag, as described in Section 9.4, in the iSER HelloReply Message. The following are the cases when the iSER layer MUST set the REJ flag to 1 in the HelloReply Message:

如果ISHELLOREQUIRED协商为“是”,且目标iSER层无法接受发起方在iSER Hello消息中声明的RCaP或iSER相关参数,则目标iSER层必须在iSER HelloReply消息中设置拒绝(REJ)标志,如第9.4节所述。以下是iSER层必须在HelloReply消息中将REJ标志设置为1的情况:

* The initiator-declared iSER-IRD value is greater than 0, and the target-declared iSER-ORD value is 0.

* 启动器声明的iSER IRD值大于0,目标声明的iSER ORD值为0。

* The initiator-supported and the target-supported iSER protocol versions do not overlap.

* 受支持的启动器和受支持的目标iSER协议版本不重叠。

After requesting the RCaP layer to send the iSER HelloReply Message, the handling of the error situation is the same as that for iSER format errors as described in Section 10.1.3.3.

在请求RCaP层发送iSER HelloReply消息后,错误情况的处理与第10.1.3.3节中描述的iSER格式错误的处理相同。

10.1.3.3. iSER Format Errors
10.1.3.3. iSER格式错误

The following types of errors in an iSER header are considered format errors:

iSER标头中的以下类型错误被视为格式错误:

* Illegal contents of any iSER header field

* 任何iSER头字段的非法内容

* Inconsistent field contents in an iSER header

* iSER标头中的字段内容不一致

* Length error for an iSER Hello or HelloReply Message (see Sections 9.3 and 9.4)

* iSER Hello或HelloReply消息的长度错误(参见第9.3和9.4节)

When a format error is detected, the following events MUST occur in the specified sequence:

检测到格式错误时,必须按指定顺序发生以下事件:

1. The iSER layer MUST request the RCaP layer to terminate the RCaP Stream. The RCaP layer MUST terminate the associated connection.

1. iSER层必须请求RCaP层终止RCaP流。RCaP层必须终止相关连接。

2. The iSER layer MUST notify the iSCSI layer of the connection termination by invoking the Connection_Terminate_Notify Operational Primitive. Prior to invoking the Connection_Terminate_Notify Operational Primitive, the iSER layer MUST perform the actions described in Section 5.2.3.2.

2. iSER层必须通过调用connection_Terminate_notify操作原语通知iSCSI层连接终止。在调用连接终止通知操作原语之前,iSER层必须执行第5.2.3.2节中描述的操作。

10.1.3.4. iSER Protocol Errors
10.1.3.4. iSER协议错误

If iSERHelloRequired is negotiated to "Yes", then the first iSER Message sent by the iSER layer at the initiator MUST be the iSER Hello Message (see Section 9.3). In this case the first iSER Message sent by the iSER layer at the target MUST be the iSER HelloReply Message (see Section 9.4). Failure to send the iSER Hello or HelloReply Message, as indicated by the wrong Opcode in the iSER header, is a protocol error. Conversely, if the iSER Hello Message is sent by the iSER layer at the initiator when iSERHelloRequired is negotiated to "No", the iSER layer at the target MAY treat this as a protocol error or respond with an iSER HelloReply Message. The handling of iSER protocol errors is the same as that for iSER format errors as described in Section 10.1.3.3.

如果ISHELLOREQUIRED协商为“是”,则iSER层在启动器处发送的第一条iSER消息必须是iSER Hello消息(参见第9.3节)。在这种情况下,iSER层在目标位置发送的第一条iSER消息必须是iSER HelloReply消息(参见第9.4节)。未能发送iSER Hello或HelloReply消息(如iSER头中的错误操作码所示)是一个协议错误。相反,如果当ISHELLOREQUIRED协商为“否”时,发起方的iSER层发送iSER Hello消息,则目标方的iSER层可将此视为协议错误,或使用iSER HelloReply消息进行响应。iSER协议错误的处理与第10.1.3.3节所述iSER格式错误的处理相同。

If the sending side of an iSER-enabled connection acts in a manner not permitted by the negotiated or declared login/text operational key values as described in Section 6, this is a protocol error and the receiving side MAY handle this the same as for iSER format errors as described in Section 10.1.3.3.

如果启用iSER的连接的发送端以第6节中所述协商或声明的登录/文本操作键值不允许的方式进行操作,则这是一个协议错误,接收方可以按照第10.1.3.3节中所述的iSER格式错误处理此错误。

10.1.4. Errors in the iSCSI Layer
10.1.4. iSCSI层中的错误

The error handling due to errors at the iSCSI layer is described in the following sections. For error recovery, see Section 10.2.

以下各节介绍了iSCSI层错误导致的错误处理。有关错误恢复,请参见第10.2节。

10.1.4.1. iSCSI Format Errors
10.1.4.1. iSCSI格式错误

When an iSCSI format error is detected, the iSCSI layer MUST request the iSER layer to terminate the RCaP Stream by invoking the Connection_Terminate Operational Primitive. For more details on connection termination, see Section 5.2.3.1.

当检测到iSCSI格式错误时,iSCSI层必须通过调用Connection_terminate操作原语请求iSER层终止RCaP流。有关连接终端的更多详细信息,请参见第5.2.3.1节。

10.1.4.2. iSCSI Digest Errors
10.1.4.2. iSCSI摘要错误

In the iSER-assisted mode, the iSCSI layer will not see any digest error because both the HeaderDigest and the DataDigest keys are negotiated to "None".

在iSER辅助模式下,iSCSI层将不会看到任何摘要错误,因为HeaderDigest和DataDigest密钥都协商为“无”。

10.1.4.3. iSCSI Sequence Errors
10.1.4.3. iSCSI序列错误

For Traditional iSCSI, sequence errors are caused by dropped PDUs due to header or data digest errors. Since digests are not used in iSER-assisted mode and the RCaP layer will deliver all messages in the order they were sent, sequence errors will not occur in iSER-assisted mode.

对于传统iSCSI,序列错误是由于标头或数据摘要错误导致PDU丢失而导致的。由于摘要不在iSER辅助模式下使用,并且RCaP层将按照发送顺序发送所有消息,因此在iSER辅助模式下不会发生序列错误。

10.1.4.4. iSCSI Protocol Error
10.1.4.4. iSCSI协议错误

When the iSCSI layer handles certain protocol errors by dropping the connection, the error handling is the same as that for iSCSI format errors as described in Section 10.1.4.1.

当iSCSI层通过断开连接来处理某些协议错误时,错误处理与第10.1.4.1节中描述的iSCSI格式错误相同。

When the iSCSI layer uses the iSCSI Reject PDU and response codes to handle certain other protocol errors, no special handling at the iSER layer is required.

当iSCSI层使用iSCSI拒绝PDU和响应代码来处理某些其他协议错误时,不需要在iSER层进行特殊处理。

10.1.4.5. SCSI Timeouts and Session Errors
10.1.4.5. SCSI超时和会话错误

This is handled at the iSCSI layer, and no special handling at the iSER layer is required.

这是在iSCSI层处理的,不需要在iSER层进行特殊处理。

10.1.4.6. iSCSI Negotiation Failures
10.1.4.6. iSCSI协商失败

For negotiation failures that happen during the Login Phase at the initiator after the iSCSI layer has invoked the Allocate_Connection_Resources Operational Primitive and before the Enable_Datamover Operational Primitive has been invoked, the iSCSI layer MUST request the iSER layer to deallocate all connection

对于在iSCSI层调用Allocate_Connection_Resources操作原语之后和Enable_Datamover操作原语之前在启动器的登录阶段发生的协商失败,iSCSI层必须请求iSER层取消分配所有连接

resources by invoking the Deallocate_Connection_Resources Operational Primitive. The iSCSI layer at the initiator MUST terminate the connection.

通过调用Deallocate_Connection_resources操作原语来释放资源。启动器上的iSCSI层必须终止连接。

For negotiation failures during the Login Phase at the target, the iSCSI layer can use a Login Response with a Status-Class other than 0 (success) to terminate the Login Phase. If the iSCSI layer has invoked the Allocate_Connection_Resources Operational Primitive and has not yet invoked the Enable_Datamover Operational Primitive, the iSCSI layer at the target MUST request the iSER layer at the target to deallocate all connection resources by invoking the Deallocate_Connection_Resources Operational Primitive. The iSCSI layer at both the initiator and the target MUST terminate the connection.

对于目标登录阶段的协商失败,iSCSI层可以使用状态类不是0(成功)的登录响应来终止登录阶段。如果iSCSI层已调用Allocate_Connection_Resources操作原语,但尚未调用Enable_Datamover操作原语,则目标的iSCSI层必须通过调用deallocate_Connection_Resources操作原语请求目标的iSER层释放所有连接资源。启动器和目标上的iSCSI层都必须终止连接。

During the iSCSI Login Phase, if the iSCSI layer at the initiator receives a Login Response from the target with a Status-Class other than 0 (Success) after the iSCSI layer at the initiator has invoked the Allocate_Connection_Resources Operational Primitive, the iSCSI layer MUST request the iSER layer to deallocate all connection resources by invoking the Deallocate_Connection_Resources Operational Primitive. The iSCSI layer MUST terminate the connection in this case.

在iSCSI登录阶段,如果在启动器的iSCSI层调用Allocate_Connection_Resources操作原语后,启动器的iSCSI层从目标接收到状态类不是0(成功)的登录响应,iSCSI层必须通过调用deallocate_connection_resources操作原语请求iSER层释放所有连接资源。在这种情况下,iSCSI层必须终止连接。

For negotiation failures during the Full Feature Phase, the error handling is left to the iSCSI layer and no special handling at the iSER layer is required.

对于完整功能阶段中的协商失败,错误处理留给iSCSI层,不需要在iSER层进行特殊处理。

10.2. Error Recovery
10.2. 错误恢复

Error recovery requirements of iSCSI/iSER are the same as that of Traditional iSCSI. All three ErrorRecoveryLevels as defined in [iSCSI] are supported in iSCSI/iSER.

iSCSI/iSER的错误恢复要求与传统iSCSI相同。iSCSI/iSER支持[iSCSI]中定义的所有三个ErrorRecoveryLevel。

* For ErrorRecoveryLevel 0, session recovery is handled by iSCSI and no special handling by the iSER layer is required.

* 对于ErrorRecoveryLevel 0,会话恢复由iSCSI处理,不需要iSER层进行特殊处理。

* For ErrorRecoveryLevel 1, see Section 10.2.1 on PDU Recovery.

* 有关ErrorRecoveryLevel 1,请参见第10.2.1节PDU恢复。

* For ErrorRecoveryLevel 2, see Section 10.2.2 on Connection Recovery.

* 有关ErrorRecoveryLevel 2,请参阅第10.2.2节“连接恢复”。

The iSCSI layer may invoke the Notice_Key_Values Operational Primitive during connection setup to request the iSER layer to take note of the value of the operational ErrorRecoveryLevel, as described in Sections 5.1.1 and 5.1.2.

如第5.1.1和5.1.2节所述,iSCSI层可在连接设置期间调用Notice_Key_Values Operational原语,请求iSER层记录Operational ErrorRecoveryLevel的值。

10.2.1. PDU Recovery
10.2.1. PDU恢复

As described in Sections 10.1.4.2 and 10.1.4.3, digest and sequence errors will not occur in the iSER-assisted mode. If the RCaP layer detects an error, it will close the iSCSI/iSER connection, as described in Section 10.1.2. Therefore, PDU recovery is not useful in the iSER-assisted mode.

如第10.1.4.2节和第10.1.4.3节所述,iSER辅助模式下不会出现摘要和序列错误。如果RCaP层检测到错误,它将关闭iSCSI/iSER连接,如第10.1.2节所述。因此,PDU恢复在iSER辅助模式下没有用处。

The iSCSI layer at the initiator SHOULD disable iSCSI timeout-driven PDU retransmissions.

启动器处的iSCSI层应禁用iSCSI超时驱动的PDU重新传输。

10.2.2. Connection Recovery
10.2.2. 连接恢复

The iSCSI layer at the initiator MAY reassign connection allegiance for non-immediate commands that are still in progress and are associated with the failed connection by using a Task Management Function Request with the TASK REASSIGN function. See Section 7.3.3 for more details.

启动器处的iSCSI层可以通过使用任务管理功能请求和任务重新分配功能,为仍在进行且与失败连接相关联的非即时命令重新分配连接忠诚。详见第7.3.3节。

When the iSCSI layer at the initiator does a task reassignment for a SCSI Write command, it MUST qualify the Send_Control Operational Primitive invocation with DataDescriptorOut, which defines the I/O Buffer for both the non-immediate unsolicited data and the solicited data. This allows the iSCSI layer at the target to use recovery R2Ts to request data originally sent as unsolicited and solicited from the initiator.

当启动器的iSCSI层为SCSI写入命令执行任务重新分配时,它必须使用DataDescriptorRout来限定Send_Control操作原语调用,DataDescriptorRout定义了非即时非请求数据和请求数据的I/O缓冲区。这允许目标位置的iSCSI层使用恢复R2T来请求最初作为未经请求发送并从启动器请求的数据。

When the iSCSI layer at the target accepts a reassignment request for a SCSI Read command, it MUST request the iSER layer to process SCSI Data-In for all unacknowledged data by invoking the Put_Data Operational Primitive. See Section 7.3.5 on the handling of SCSI Data-In.

当目标的iSCSI层接受SCSI Read命令的重新分配请求时,它必须通过调用Put_Data OPERATION原语请求iSER层处理所有未确认数据的SCSI数据。请参阅第7.3.5节中有关SCSI数据处理的内容。

When the iSCSI layer at the target accepts a reassignment request for a SCSI Write command, it MUST request the iSER layer to process a recovery R2T for any non-immediate unsolicited data and any solicited data sequences that have not been received by invoking the Get_Data Operational Primitive. See Section 7.3.6 on the handling of Ready To Transfer (R2T).

当目标位置的iSCSI层接受SCSI写入命令的重新分配请求时,它必须请求iSER层通过调用Get_数据操作原语来处理任何非即时未请求数据和任何未接收到的请求数据序列的恢复R2T。见第7.3.6节,关于准备转移(R2T)的处理。

The iSCSI layer at the target MUST NOT issue recovery R2Ts on an iSCSI/iSER connection for a task for which the connection allegiance was never reassigned. The iSER layer at the target MAY reject such a recovery R2T received via the Get_Data Operational Primitive invocation from the iSCSI layer at the target, with an appropriate error code.

对于从未重新分配连接忠诚度的任务,目标位置的iSCSI层不得在iSCSI/iSER连接上发出恢复R2T。目标的iSER层可能会拒绝通过Get_Data Operational原语调用从目标的iSCSI层接收的恢复R2T,并返回相应的错误代码。

The iSER layer at the target will process the requests invoked by the Put_Data and Get_Data Operational Primitives for a reassigned task in the same way as for the original commands.

目标的iSER层将以与原始命令相同的方式处理由Put_数据和Get_数据调用的请求,用于重新分配的任务。

11. Security Considerations
11. 安全考虑

When iSER is layered on top of an RCaP layer and provides the RDMA extensions to the iSCSI protocol, the security considerations of iSER are the same as that of the underlying RCaP layer. For iWARP, this is described in [RDMAP] and [RDDPSEC], plus the updates to both of those RFCs that are contained in [IPSEC-IPS].

当iSER分层在RCaP层之上并为iSCSI协议提供RDMA扩展时,iSER的安全注意事项与底层RCaP层的安全注意事项相同。对于iWARP,[RDMAP]和[RDDPSEC]中描述了这一点,以及[IPSEC-IPS]中包含的对这两个RFC的更新。

Since iSER-assisted iSCSI protocol is still functionally iSCSI from a security considerations perspective, all of the iSCSI security requirements as described in [iSCSI] apply. If iSER is layered on top of a non-IP-based RCaP layer, all the security protocol mechanisms applicable to that RCaP layer are also applicable to an iSCSI/iSER connection. If iSER is layered on top of a non-IP protocol, the IPsec mechanism as specified in [iSCSI] MUST be implemented at any point where the iSER protocol enters the IP network (e.g., via gateways), and the non-IP protocol SHOULD implement (optional to use) a packet-by-packet security protocol equal in strength to the IPsec mechanism specified by [iSCSI].

由于从安全考虑的角度来看,iSER辅助的iSCSI协议在功能上仍然是iSCSI,因此[iSCSI]中描述的所有iSCSI安全要求都适用。如果iSER分层在非基于IP的RCaP层之上,则适用于该RCaP层的所有安全协议机制也适用于iSCSI/iSER连接。如果iSER是在非IP协议之上分层的,则[iSCSI]中指定的IPsec机制必须在iSER协议进入IP网络的任何点(例如,通过网关)实施,并且非IP协议应实施(可选使用)与[iSCSI]指定的IPsec机制强度相等的逐包安全协议.

In order to protect target RCaP connection resources from possible resource exhaustion attacks, allocation of such resources for a new connection MUST be delayed until it is reasonably certain that the new connection is not part of a resource exhaustion attack (e.g., until after the SecurityNegotiation stage of Login); see Section 5.1.2.

为了保护目标RCaP连接资源免受可能的资源耗尽攻击,必须延迟为新连接分配此类资源,直到合理确定新连接不是资源耗尽攻击的一部分(例如,直到登录的安全协商阶段之后);见第5.1.2节。

A valid STag exposes I/O Buffer resources to the network for access via the RCaP. The security measures for the RCAP and iSER described in the above paragraphs can be used to protect data in an I/O buffer from undesired disclosure or modification, and these measures are of heightened importance for implementations that retain (e.g., cache) STags for use in multiple tasks (e.g., iSCSI I/O operations) because the resources are exposed to the network for a longer period of time.

有效的STag向网络公开I/O缓冲区资源,以便通过RCaP进行访问。上述段落中描述的RCAP和iSER的安全措施可用于保护I/O缓冲区中的数据不受意外披露或修改的影响,这些措施对于保留(例如缓存)STAG以用于多个任务(例如iSCSI I/O操作)的实现具有更高的重要性因为资源暴露于网络的时间更长。

A complementary means of controlling I/O Buffer resource exposure is invalidation of the STag after completion of the associated task, as specified in Section 1.5.1. The use of Send with Invalidate messages (which cause remote STag invalidation) is OPTIONAL, therefore the iSER layer MUST NOT rely on use of a Send with Invalidate by its Remote Peer to cause local STag invalidation. If an STag is expected to be invalid after completion of a task, the iSER layer MUST check the STag and invalidate it if it is still valid.

控制I/O缓冲区资源暴露的一种补充方法是在相关任务完成后使STag失效,如第1.5.1节所述。使用Send with Invalidate消息(导致远程STag无效)是可选的,因此iSER层不能依赖远程对等方使用Send with Invalidate来导致本地STag无效。如果一个STag在任务完成后被认为是无效的,iSER层必须检查该STag,如果它仍然有效,则使其无效。

12. IANA Considerations
12. IANA考虑

IANA has added the following entries to the "iSCSI Login/Text Keys" registry:

IANA已将以下条目添加到“iSCSI登录/文本键”注册表中:

MaxAHSLength, RFC 7145

最大长度,RFC 7145

TaggedBufferForSolicitedDataOnly, RFC 7145

TaggedBufferForSolicitedDataOnly,RFC 7145

iSERHelloRequired, RFC 7145

ISHELLOR要求,RFC 7145

IANA has updated the following entries in the "iSCSI Login/Text Keys" registry to reference this RFC.

IANA已更新“iSCSI登录/文本键”注册表中的以下条目,以引用此RFC。

InitiatorRecvDataSegmentLength

InitiatorRecvDataSegmentLength

MaxOutstandingUnexpectedPDUs

最大未预期PDU

RDMAExtensions

RDMAExtensions

TargetRecvDataSegmentLength

TargetRecvDataSegmentLength

IANA has also changed the reference to RFC 5046 for the "iSCSI Login/Text Keys" registry to refer to this RFC.

IANA还更改了“iSCSI登录/文本键”注册表对RFC 5046的引用,以引用此RFC。

IANA has updated the registrations of the iSER Opcodes 1-3 in the "iSER Opcodes" registry to reference this RFC. IANA has also changed the reference to RFC 5046 for the "iSER Opcodes" registry to refer to this RFC.

IANA已更新“iSER操作码”注册表中iSER操作码1-3的注册,以引用此RFC。IANA还更改了“iSER操作码”注册表对RFC 5046的引用,以引用此RFC。

13. References
13. 工具书类
13.1. Normative References
13.1. 规范性引用文件

[RFC5046] Ko, M., Chadalapaka, M., Hufferd, J., Elzur, U., Shah, H., and P. Thaler, "Internet Small Computer System Interface (iSCSI) Extensions for Remote Direct Memory Access (RDMA)", RFC 5046, October 2007.

[RFC5046]Ko,M.,Chadalapaka,M.,Hufferd,J.,Elzur,U.,Shah,H.,和P.Thaler,“远程直接内存访问(RDMA)的互联网小型计算机系统接口(iSCSI)扩展”,RFC 5046,2007年10月。

[iSCSI] Chadalapaka, M., Satran, J., Meth, K., and D. Black, "Internet Small Computer System Interface (iSCSI) Protocol (Consolidated)", RFC 7143, April 2014.

[iSCSI]Chadalapaka,M.,Satran,J.,Meth,K.,和D.Black,“互联网小型计算机系统接口(iSCSI)协议(整合)”,RFC 71432014年4月。

[RDMAP] Recio, R., Metzler, B., Culley, P., Hilland, J., and D. Garcia, "A Remote Direct Memory Access Protocol Specification", RFC 5040, October 2007.

[RDMAP]Recio,R.,Metzler,B.,Culley,P.,Hilland,J.,和D.Garcia,“远程直接内存访问协议规范”,RFC 50402007年10月。

[DDP] Shah, H., Pinkerton, J., Recio, R., and P. Culley, "Direct Data Placement over Reliable Transports", RFC 5041, October 2007.

[DDP]Shah,H.,Pinkerton,J.,Recio,R.,和P.Culley,“可靠传输上的直接数据放置”,RFC 50412007年10月。

[MPA] Culley, P., Elzur, U., Recio, R., Bailey, S., and J. Carrier, "Marker PDU Aligned Framing for TCP Specification", RFC 5044, October 2007.

[MPA]Culley,P.,Elzur,U.,Recio,R.,Bailey,S.,和J.Carrier,“TCP规范的标记PDU对齐框架”,RFC 5044,2007年10月。

[RDDPSEC] Pinkerton, J. and E. Deleganes, "Direct Data Placement Protocol (DDP) / Remote Direct Memory Access Protocol (RDMAP) Security", RFC 5042, October 2007.

[RDDPSEC]Pinkerton,J.和E.Deleganes,“直接数据放置协议(DDP)/远程直接内存访问协议(RDMAP)安全”,RFC 50422007年10月。

[TCP] Postel, J., "Transmission Control Protocol", STD 7, RFC 793, September 1981.

[TCP]Postel,J.,“传输控制协议”,STD 7,RFC 793,1981年9月。

[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997.

[RFC2119]Bradner,S.,“RFC中用于表示需求水平的关键词”,BCP 14,RFC 2119,1997年3月。

[IPSEC-IPS] Black, D. and P. Koning, "Securing Block Storage Protocols over IP: RFC 3723 Requirements Update for IPsec v3", RFC 7146, April 2014.

[IPSEC-IPS]Black,D.和P.Koning,“通过IP保护块存储协议:IPSEC v3的RFC 3723要求更新”,RFC 7146,2014年4月。

13.2. Informative References
13.2. 资料性引用

[SAM5] INCITS Technical Committee T10, "SCSI Architecture Model - 5 (SAM-5)", T10/BSR INCITS 515 rev 04, Committee Draft.

[SAM5]INCITS技术委员会T10,“SCSI架构模型-5(SAM-5)”,T10/BSR INCITS 515版本04,委员会草案。

[iSCSI-SAM] Knight, F. and M. Chadalapaka, "Internet Small Computer System Interface (iSCSI) SCSI Features Update", RFC 7144, April 2014.

[iSCSI SAM]Knight,F.和M.Chadalapaka,“互联网小型计算机系统接口(iSCSI)SCSI功能更新”,RFC 71442014年4月。

[DA] Chadalapaka, M., Hufferd, J., Satran, J., and H. Shah, "DA: Datamover Architecture for the Internet Small Computer System Interface (iSCSI)", RFC 5047, October 2007.

[DA]Chadalapaka,M.,Hufferd,J.,Satran,J.,和H.Shah,“DA:互联网小型计算机系统接口(iSCSI)的数据移动器体系结构”,RFC 5047,2007年10月。

[IB] InfiniBand Architecture Specification Volume 1 Release 1.2, October 2004

[IB]InfiniBand体系结构规范第1卷第1.2版,2004年10月

[IPoIB] Chu, J. and V. Kashyap, "Transmission of IP over InfiniBand (IPoIB)", RFC 4391, April 2006.

[IPoIB]Chu,J.和V.Kashyap,“InfiniBand上的IP传输(IPoIB)”,RFC 4391,2006年4月。

Appendix A. Summary of Changes from RFC 5046
附录A.RFC 5046变更汇总

All changes are backward compatible with RFC 5046 except for item #8, which reflects all known implementations of iSER, each of which has implemented this change, despite its absence in RFC 5046. As a result, a hypothetical implementation based on RFC 5046 will not interoperate with an implementation based on this version of the specification.

所有变更都与RFC 5046向后兼容,但第8项除外,该项反映了iSER的所有已知实现,尽管RFC 5046中没有该变更,但每个iSER都实现了该变更。因此,基于RFC 5046的假设实现将无法与基于此版本规范的实现进行互操作。

1. Removed the requirement that a connection be opened in "normal" TCP mode and transitioned to zero-copy mode. This allows the specification to conform to existing implementations for both InfiniBand and iWARP. Changes were made in Sections 1, 3.1.6, 4.2, 5.1, 5.1.1, 5.1.2, 5.1.3, 10.1.3.4, and 11.

1. 删除了在“正常”TCP模式下打开连接并转换为零拷贝模式的要求。这使得规范符合InfiniBand和iWARP的现有实现。对第1、3.1.6、4.2、5.1、5.1.1、5.1.2、5.1.3、10.1.3.4和11节进行了更改。

2. Added a clause in Section 6.2 to clarify that MaxRecvDataSegmentLength must be ignored if it is declared in the Login Phase.

2. 在第6.2节中添加了一个条款,以澄清如果在登录阶段声明MaxRecvDataSegmentLength,则必须忽略它。

3. Added a clause in Section 6.2 to clarify that the initiator must not send more than InitiatorMaxRecvDataSegmentLength worth of data when a NOP-Out request is sent with a valid Initiator Task Tag. Since InitiatorMaxRecvDataSegmentLength can be smaller than TargetMaxRecvDataSegmentLength, returning the original data in the NOP-Out request in this situation can overflow the receive buffer unless the length of the data sent with the NOP-Out request is less than InitiatorMaxRecvDataSegmentLength.

3. 在第6.2节中添加了一个条款,以澄清当使用有效的启动器任务标记发送NOP Out请求时,启动器发送的数据不得超过InitiatorMaxRecvDataSegmentLength值。由于InitiatorMaxRecvDataSegmentLength可以小于TargetMaxRecvDataSegmentLength,因此在这种情况下,在NOP Out请求中返回原始数据可能会使接收缓冲区溢出,除非随NOP Out请求发送的数据长度小于InitiatorMaxRecvDataSegmentLength。

4. Added a SHOULD negotiate recommendation for MaxOutstandingUnexpectedPDUs in Section 6.7.

4. 在第6.7节中增加了应协商建议的MaxOutstandingUnexpectedPDU。

5. Added MaxAHSLength key in Section 6.8 to set a limit on the AHS Length. This is useful when posting receive buffers in knowing what the maximum possible message length is in a PDU that contains AHS.

5. 在第6.8节中添加了MaxAHSLength键,以设置AHS长度的限制。这在发布接收缓冲区时非常有用,可以了解包含AHS的PDU中可能的最大消息长度。

6. Added TaggedBufferForSolicitedDataOnly key in Section 6.9 to indicate how the memory region will be used. An initiator can treat the memory regions intended for unsolicited and solicited data differently and can use different registration modes. In contrast, RFC 5046 treats the memory occupied by the data as a contiguous (or virtually contiguous, by means of scatter-gather mechanisms) and homogenous region. Adding a new key will allow different memory models to be accommodated. Changes were also made in Section 7.3.1.

6. 在第6.9节中添加了TaggedBufferForSolicitedDataOnly键,以指示如何使用内存区域。发起者可以不同地对待用于未经请求和请求的数据的存储器区域,并且可以使用不同的注册模式。相反,RFC 5046将数据占用的内存视为连续(或通过分散-聚集机制虚拟连续)和同质区域。添加一个新键将允许适应不同的内存型号。第7.3.1节中也进行了更改。

7. Added iSERHelloRequired key in Section 6.10 to allow an initiator to allocate connection resources after the login process by requiring the use of the iSER Hello messages before sending iSCSI PDUs. The default is "No" since iSER Hello messages have not been implemented and are not in use. Changes were made in Sections 5.1.1, 5.1.2, 5.1.3, 8.2, 9.3, 9.4, 10.1.3.2, and 10.1.3.4.

7. 在第6.10节中添加了ISHELLOR所需密钥,以允许启动器在发送iSCSI PDU之前,通过要求使用iSER Hello消息,在登录过程后分配连接资源。默认值为“否”,因为iSER Hello消息尚未实现且未被使用。对第5.1.1、5.1.2、5.1.3、8.2、9.3、9.4、10.1.3.2和10.1.3.4节进行了更改。

8. Added two 64-bit fields in iSER header in Section 9.2 for the Read Base Offset and the Write Base Offset to accommodate a non-zero Base Offset. This allows one implementation such as the Open Fabrics Enterprise Distribution (OFED) stack to be used in both the InfiniBand and the iWARP environment.

8. 在第9.2节的iSER头中添加了两个64位字段,用于读取基址偏移量和写入基址偏移量,以适应非零基址偏移量。这允许在InfiniBand和iWARP环境中同时使用一种实现,如开放式结构企业分发(OFED)堆栈。

Changes were made in the definitions of Base Offset, Advertisement, and Tagged Buffer. Changes were also made in Sections 1.5.1, 1.6, 1.7, 7.3.1, 7.3.3, 7.3.5, 7.3.6, 9.1, 9.3, 9.4, 9.5.1, and 9.5.2. This change is not backward compatible with RFC 5046, but it was part of all known implementations of iSER at the time this document was developed.

对基偏移、播发和标记缓冲区的定义进行了更改。第1.5.1、1.6、1.7、7.3.1、7.3.3、7.3.5、7.3.6、9.1、9.3、9.4、9.5.1和9.5.2节也进行了更改。此更改与RFC 5046不向后兼容,但在开发本文档时,它是iSER所有已知实现的一部分。

9. Remove iWARP-specific behavior. Changes were made in the definitions of RDMA Operation and Send Message Type.

9. 删除iWARP特定的行为。对RDMA操作和发送消息类型的定义进行了更改。

Clarifications were added in Section 1.5.2 on the use of SendSE and SendInvSE. These clarifications reflect a removal of the requirements in RFC 5046 for the use of these messages, as implementations have not followed RFC 5046 in this area. Changes affecting Send with Invalidate were made in Sections 1.5.1, 1.6, 1.7, 4.1, and 7.3.2. Changes affecting Terminate were made in Sections 10.1.2.1 and 10.1.2.2. Changes were made in Appendix B to remove iWARP headers.

第1.5.2节中增加了关于SendSE和SendInvSE使用的澄清。这些澄清反映了对RFC 5046中使用这些消息的要求的删除,因为在这一领域的实现没有遵循RFC 5046。第1.5.1节、第1.6节、第1.7节、第4.1节和第7.3.2节中对使用Invalidate发送进行了更改。第10.1.2.1节和第10.1.2.2节中做出了影响终止的变更。附录B中进行了更改,以删除iWARP标题。

10. Removed denial-of-service descriptions for the initiator in Section 5.1.1 since they are applicable for the target only.

10. 删除了第5.1.1节中针对启动器的拒绝服务描述,因为它们仅适用于目标。

11. Clarified in Section 1.5.1 that STag invalidation is the initiator's responsibility for security reasons, and the initiator cannot rely on the target using an Invalidate version of Send. Added text in Section 11 on Stag invalidation.

11. 在第1.5.1节中阐明,出于安全原因,STag失效是发起方的责任,发起方不能依赖目标方使用失效版本的Send。在第11节中添加了关于Stag无效的文本。

Appendix B. Message Format for iSER
附录B.iSER的消息格式

This section is for information only and is NOT part of the standard.

本节仅供参考,不属于本标准的一部分。

B.1. iWARP Message Format for iSER Hello Message
B.1. iSER Hello消息的iWARP消息格式

The following figure depicts an iSER Hello Message encapsulated in an iWARP SendSE Message.

下图描述了封装在iWARP SendSE消息中的iSER Hello消息。

    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |         MPA Header            |  DDP Control  | RDMA Control  |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                        Reserved                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                       (Send) Queue Number                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                 (Send) Message Sequence Number                |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                      (Send) Message Offset                    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | 0010b | Zeros | 0001b | 0001b |           iSER-IRD            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           All Zeros                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                           All Zeros                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           All Zeros                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                           All Zeros                           |
        
    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |         MPA Header            |  DDP Control  | RDMA Control  |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                        Reserved                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                       (Send) Queue Number                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                 (Send) Message Sequence Number                |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                      (Send) Message Offset                    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | 0010b | Zeros | 0001b | 0001b |           iSER-IRD            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           All Zeros                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                           All Zeros                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           All Zeros                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                           All Zeros                           |
        
   |                           MPA CRC                             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        
   |                           MPA CRC                             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        

Figure 6: SendSE Message Containing an iSER Hello Message

图6:包含iSER Hello消息的SendSE消息

B.2. iWARP Message Format for iSER HelloReply Message
B.2. iSER HelloReply消息的iWARP消息格式

The following figure depicts an iSER HelloReply Message encapsulated in an iWARP SendSE Message. The Reject (REJ) flag is set to zero.

下图描述了封装在iWARP SendSE消息中的iSER HelloReply消息。拒绝(REJ)标志设置为零。

    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |         MPA Header            |  DDP Control  | RDMA Control  |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                        Reserved                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                       (Send) Queue Number                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                 (Send) Message Sequence Number                |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                      (Send) Message Offset                    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | 0011b |Zeros|0| 0001b | 0001b |           iSER-ORD            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           All Zeros                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                           All Zeros                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           All Zeros                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                           All Zeros                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           MPA CRC                             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        
    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |         MPA Header            |  DDP Control  | RDMA Control  |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                        Reserved                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                       (Send) Queue Number                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                 (Send) Message Sequence Number                |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                      (Send) Message Offset                    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | 0011b |Zeros|0| 0001b | 0001b |           iSER-ORD            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           All Zeros                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                           All Zeros                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           All Zeros                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                           All Zeros                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           MPA CRC                             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        

Figure 7: SendSE Message Containing an iSER HelloReply Message

图7:包含iSER HelloReply消息的SendSE消息

B.3. iSER Header Format for SCSI Read Command PDU
B.3. SCSI读取命令PDU的iSER头格式

The following figure depicts a SCSI Read Command PDU embedded in an iSER Message. For this particular example, in the iSER header, the Write STag Valid flag is set to zero, the Read STag Valid flag is set to one, the Write STag field is set to all zeros, the Write Base Offset field is set to all zeros, the Read STag field contains a valid Read STag, and the Read Base Offset field contains a valid Base Offset for the Read Tagged Buffer.

下图描述了嵌入iSER消息中的SCSI读取命令PDU。对于此特定示例,在iSER标头中,写入STag有效标志设置为零,读取STag有效标志设置为一,写入STag字段设置为全零,写入基偏移字段设置为全零,读取STag字段包含有效的读取STag,读取基准偏移量字段包含读取标记缓冲区的有效基准偏移量。

    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | 0001b |0|1|                  All zeros                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                         All Zeros                             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                         All Zeros                             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                         Read STag                             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                       Read Base Offset                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                       SCSI Read Command PDU                   |
   //                                                             //
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        
    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | 0001b |0|1|                  All zeros                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                         All Zeros                             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                         All Zeros                             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                         Read STag                             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                       Read Base Offset                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                       SCSI Read Command PDU                   |
   //                                                             //
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        

Figure 8: iSER Header Format for SCSI Read Command PDU

图8:SCSI读取命令PDU的iSER头格式

B.4. iSER Header Format for SCSI Write Command PDU
B.4. SCSI写入命令PDU的iSER头格式

The following figure depicts a SCSI Write Command PDU embedded in an iSER Message. For this particular example, in the iSER header, the Write STag Valid flag is set to one, the Read STag Valid flag is set to zero, the Write STag field contains a valid Write STag, the Write Base Offset field contains a valid Base Offset for the Write Tagged Buffer, the Read STag field is set to all zeros since it is not used, and the Read Base Offset field is set to all zeros.

下图描述了嵌入iSER消息中的SCSI写入命令PDU。对于此特定示例,在iSER标头中,写入STag有效标志设置为1,读取STag有效标志设置为0,写入STag字段包含有效写入STag,写入基偏移量字段包含写入标记缓冲区的有效基偏移量,读取STag字段由于未使用而设置为全零,读取基准偏移字段设置为全零。

    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | 0001b |1|0|                  All zeros                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                        Write STag                             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                      Write Base Offset                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                         All Zeros                             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                         All Zeros                             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                       SCSI Write Command PDU                  |
   //                                                             //
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        
    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | 0001b |1|0|                  All zeros                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                        Write STag                             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                      Write Base Offset                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                         All Zeros                             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                         All Zeros                             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                       SCSI Write Command PDU                  |
   //                                                             //
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        

Figure 9: iSER Header Format for SCSI Write Command PDU

图9:SCSI写入命令PDU的iSER头格式

B.5. iSER Header Format for SCSI Response PDU
B.5. SCSI响应PDU的iSER头格式

The following figure depicts a SCSI Response PDU embedded in an iSER Message:

下图描述了嵌入iSER消息中的SCSI响应PDU:

    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | 0001b |0|0|                  All Zeros                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           All Zeros                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                           All Zeros                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           All Zeros                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                           All Zeros                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                       SCSI Response PDU                       |
   //                                                             //
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        
    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | 0001b |0|0|                  All Zeros                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           All Zeros                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                           All Zeros                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           All Zeros                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   |                           All Zeros                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                       SCSI Response PDU                       |
   //                                                             //
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        

Figure 10: iSER Header Format for SCSI Response PDU

图10:SCSI响应PDU的iSER头格式

Appendix C. Architectural Discussion of iSER over InfiniBand
附录C.InfiniBand上iSER的架构讨论

This section explains how an InfiniBand network (with Gateways) would be structured. It is informational only and is intended to provide insight on how iSER is used in an InfiniBand environment.

本节介绍InfiniBand网络(带网关)的结构。本文仅供参考,旨在深入了解iSeries在InfiniBand环境中的使用方式。

C.1. Host Side of iSCSI and iSER Connections in InfiniBand
C.1. InfiniBand中iSCSI和iSER连接的主机端

Figure 11 defines the topologies in which iSCSI and iSER will be able to operate on an InfiniBand Network.

图11定义了iSCSI和iSER能够在InfiniBand网络上运行的拓扑。

   +---------+ +---------+ +---------+ +---------+ +--- -----+
   |  Host   | |  Host   | |   Host  | |   Host  | |   Host  |
   |         | |         | |         | |         | |         |
   +---+-+---+ +---+-+---+ +---+-+---+ +---+-+---+ +---+-+---+
   |HCA| |HCA| |HCA| |HCA| |HCA| |HCA| |HCA| |HCA| |HCA| |HCA|
   +-v-+ +-v-+ +-v-+ +-v-+ +-v-+ +-v-+ +-v-+ +-v-+ +-v-+ +-v-+
     |----+------|-----+-----|-----+-----|-----+-----|-----+---> To IB
   IB|        IB |        IB |        IB |        IB |    SubNet2 SWTCH
   +-v-----------v-----------v-----------v-----------v---------+
   |                  InfiniBand Switch for Subnet1            |
   +---+-----+--------+-----+--------+-----+------------v------+
       | TCA |        | TCA |        | TCA |            |
       +-----+        +-----+        +-----+            | IB
      /  IB   \      /  IB   \      /       \     +--+--v--+--+
     |  iSER   |    |  iSER   |    |  IPoIB  |    |  | TCA |  |
     | Gateway |    | Gateway |    | Gateway |    |  +-----+  |
     |   to    |    |   to    |    |   to    |    | Storage   |
     |  iSCSI  |    |  iSER   |    |   IP    |    | Controller|
     |   TCP   |    |  iWARP  |    |Ethernet |    +-----+-----+
     +---v-----|    +---v-----|    +----v----+
         | EN           | EN            | EN
         +--------------+---------------+----> to IP based storage
           Ethernet links that carry iSCSI or iWARP
        
   +---------+ +---------+ +---------+ +---------+ +--- -----+
   |  Host   | |  Host   | |   Host  | |   Host  | |   Host  |
   |         | |         | |         | |         | |         |
   +---+-+---+ +---+-+---+ +---+-+---+ +---+-+---+ +---+-+---+
   |HCA| |HCA| |HCA| |HCA| |HCA| |HCA| |HCA| |HCA| |HCA| |HCA|
   +-v-+ +-v-+ +-v-+ +-v-+ +-v-+ +-v-+ +-v-+ +-v-+ +-v-+ +-v-+
     |----+------|-----+-----|-----+-----|-----+-----|-----+---> To IB
   IB|        IB |        IB |        IB |        IB |    SubNet2 SWTCH
   +-v-----------v-----------v-----------v-----------v---------+
   |                  InfiniBand Switch for Subnet1            |
   +---+-----+--------+-----+--------+-----+------------v------+
       | TCA |        | TCA |        | TCA |            |
       +-----+        +-----+        +-----+            | IB
      /  IB   \      /  IB   \      /       \     +--+--v--+--+
     |  iSER   |    |  iSER   |    |  IPoIB  |    |  | TCA |  |
     | Gateway |    | Gateway |    | Gateway |    |  +-----+  |
     |   to    |    |   to    |    |   to    |    | Storage   |
     |  iSCSI  |    |  iSER   |    |   IP    |    | Controller|
     |   TCP   |    |  iWARP  |    |Ethernet |    +-----+-----+
     +---v-----|    +---v-----|    +----v----+
         | EN           | EN            | EN
         +--------------+---------------+----> to IP based storage
           Ethernet links that carry iSCSI or iWARP
        

Figure 11: iSCSI and iSER on IB

图11:IB上的iSCSI和iSER

In Figure 11, the Host systems are connected via the InfiniBand Host Channel Adapters (HCAs) to the InfiniBand links. With the use of IB switch(es), the InfiniBand links connect the HCA to InfiniBand Target Channel Adapters (TCAs) located in gateways or Storage Controllers. An iSER-capable IB-IP Gateway converts the iSER Messages encapsulated in IB protocols to either standard iSCSI, or iSER Messages for iWARP. An [IPoIB] Gateway converts the InfiniBand [IPoIB] protocol to IP protocol, and in the iSCSI case, permits iSCSI to be operated on an IB Network between the Hosts and the [IPoIB] Gateway.

在图11中,主机系统通过InfiniBand主机通道适配器(HCA)连接到InfiniBand链路。通过使用IB交换机(es),InfiniBand链路将HCA连接到位于网关或存储控制器中的InfiniBand目标通道适配器(TCA)。支持iSER的IB-IP网关将封装在IB协议中的iSER消息转换为标准iSCSI或iWARP的iSER消息。[IPoIB]网关将InfiniBand[IPoIB]协议转换为IP协议,在iSCSI情况下,允许在主机和[IPoIB]网关之间的IB网络上操作iSCSI。

C.2. Storage Side of iSCSI and iSER Mixed Network Environment
C.2. iSCSI和iSER混合网络环境的存储端

Figure 12 shows a storage controller that has three different portal groups: one supporting only iSCSI (TPG-4), one supporting iSER/iWARP or iSCSI (TPG-2), and one supporting iSER/IB (TPG-1). Here, "TPG" stands for "Target Portal Group".

图12显示了具有三个不同入口组的存储控制器:一个仅支持iSCSI(TPG-4),一个支持iSER/iWARP或iSCSI(TPG-2),以及一个支持iSER/IB(TPG-1)。这里,“TPG”代表“目标门户组”。

                  |                |                |
                  |                |                |
            +--+--v--+----------+--v--+----------+--v--+--+
            |  | IB  |          |iWARP|          | EN  |  |
            |  |     |          | TCP |          | NIC |  |
            |  |(TCA)|          | RNIC|          |     |  |
            |  +-----|          +-----+          +-----+  |
            |   TPG-1            TPG-2            TPG-4   |
            |  9.1.3.3          9.1.2.4          9.1.2.6  |
            |                                             |
            |                  Storage Controller         |
            |                                             |
            +---------------------------------------------+
        
                  |                |                |
                  |                |                |
            +--+--v--+----------+--v--+----------+--v--+--+
            |  | IB  |          |iWARP|          | EN  |  |
            |  |     |          | TCP |          | NIC |  |
            |  |(TCA)|          | RNIC|          |     |  |
            |  +-----|          +-----+          +-----+  |
            |   TPG-1            TPG-2            TPG-4   |
            |  9.1.3.3          9.1.2.4          9.1.2.6  |
            |                                             |
            |                  Storage Controller         |
            |                                             |
            +---------------------------------------------+
        

Figure 12: Storage Controller with TCP, iWARP, and IB Connections

图12:具有TCP、iWARP和IB连接的存储控制器

The normal iSCSI portal group advertising processes (via the Service Location Protocol (SLP), Internet Storage Name Service (iSNS), or SendTargets) are available to a Storage Controller.

存储控制器可以使用正常的iSCSI门户组发布过程(通过服务位置协议(SLP)、Internet存储名称服务(iSNS)或SendTargets)。

C.3. Discovery Processes for an InfiniBand Host
C.3. InfiniBand主机的发现过程

An InfiniBand Host system can gather portal group IP addresses from SLP, iSNS, or the SendTargets discovery processes by using TCP/IP via [IPoIB]. After obtaining one or more remote portal IP addresses, the Initiator uses the standard IP mechanisms to resolve the IP address to a local outgoing interface and the destination hardware address (Ethernet MAC or InfiniBand Global Identifier (GID) of the target or a gateway leading to the target). If the resolved interface is an [IPoIB] network interface, then the target portal can be reached through an InfiniBand fabric. In this case, the Initiator can establish an iSCSI/TCP or iSCSI/iSER session with the Target over that InfiniBand interface, using the hardware address (InfiniBand GID) obtained through the standard Address Resolution Protocol (ARP) processes.

InfiniBand主机系统可以通过[IPoIB]使用TCP/IP从SLP、iSNS或SendTargets发现进程收集门户组IP地址。获得一个或多个远程门户IP地址后,启动器使用标准IP机制将IP地址解析为本地传出接口和目标硬件地址(目标或通向目标的网关的以太网MAC或InfiniBand全局标识符(GID))。如果解析的接口是[IPoIB]网络接口,则可以通过InfiniBand结构访问目标门户。在这种情况下,启动器可以使用通过标准地址解析协议(ARP)进程获得的硬件地址(InfiniBand GID),通过该InfiniBand接口与目标建立iSCSI/TCP或iSCSI/iSER会话。

If more than one IP address is obtained through the discovery process, the Initiator should select a Target IP address that is on the same IP subnet as the Initiator, if one exists. This will avoid a potential overhead of going through a gateway when a direct path exists.

如果通过发现过程获得多个IP地址,则启动器应选择与启动器位于同一IP子网上的目标IP地址(如果存在)。这将避免在存在直接路径时通过网关的潜在开销。

In addition, a user can configure manual static IP route entries if a particular path to the target is preferred.

此外,如果首选到目标的特定路径,用户可以配置手动静态IP路由条目。

C.4. IBTA Connection Specifications
C.4. IBTA连接规范

It is outside the scope of this document, but it is expected that the InfiniBand Trade Association (IBTA) has or will define:

这不在本文件的范围内,但预计InfiniBand贸易协会(IBTA)已经或将定义:

* The iSER ServiceID

* iSER服务ID

* A means for permitting a Host to establish a connection with a peer InfiniBand end-node, and that peer indicating when that end-node supports iSER, so the Host would be able to fall back to iSCSI/TCP over [IPoIB].

* 一种允许主机与对等InfiniBand端节点建立连接的方法,该对等节点指示该端节点何时支持iSER,以便主机能够通过[IPoIB]退回到iSCSI/TCP。

* A means for permitting the Host to establish connections with IB iSER connections on storage controllers or IB iSER-connected Gateways in preference to IPoIB-connected Gateways/Bridges or connections to Target Storage Controllers that also accept iSCSI via [IPoIB].

* 一种允许主机与存储控制器上的IB iSER连接或IB iSER连接的网关建立连接的方法,优先于IPoIB连接的网关/网桥或与也通过[IPoIB]接受iSCSI的目标存储控制器的连接。

* A means for combining the IB ServiceID for iSER and the IP port number such that the IB Host can use normal IB connection processes, yet ensure that the iSER target peer can actually connect to the required IP port number.

* 一种将iSER的IB ServiceID与IP端口号相结合的方法,以便IB主机可以使用正常的IB连接过程,同时确保iSER目标对等方可以实际连接到所需的IP端口号。

Appendix D. Acknowledgments
附录D.确认书

The authors acknowledge the following individuals for identifying implementation issues and/or suggesting resolutions to the issues clarified in this document: Robert Russell, Arne Redlich, David Black, Mallikarjun Chadalapaka, Tom Talpey, Felix Marti, Robert Sharp, Caitlin Bestler, Hemal Shah, Spencer Dawkins, Pete Resnick, Ted Lemon, Pete McCann, and Steve Kent. Credit also goes to the authors of the original iSER Specification [RFC5046], including Michael Ko, Mallikarjun Chadalapaka, John Hufferd, Uri Elzur, Hemal Shah, and Patricia Thaler. This document benefited from all of their contributions.

作者确认以下人员确定了本文件中澄清的问题的实施问题和/或建议解决方案:Robert Russell、Arne Redlich、David Black、Mallikarjun Chadalapaka、Tom Talpey、Felix Marti、Robert Sharp、Caitlin Bestler、Hemal Shah、Spencer Dawkins、Pete Resnick、Ted Lemon、Pete McCann、,还有史蒂夫·肯特。最初的iSER规范[RFC5046]的作者也功不可没,包括Michael Ko、Mallikarjun Chadalapaka、John Hufferd、Uri Elzur、Hemal Shah和Patricia Thaler。这份文件得益于他们的所有贡献。

Authors' Addresses

作者地址

Michael Ko

高国兴

   EMail: mkosjc@gmail.com
        
   EMail: mkosjc@gmail.com
        

Alexander Nezhinsky Mellanox Technologies 13 Zarchin St. Raanana 43662 Israel

Alexander Nezhinsky Mellanox Technologies 13 Zarchin St.Raanana 43662以色列

   Phone: +972-74-712-9000
   EMail: alexandern@mellanox.com, nezhinsky@gmail.com
        
   Phone: +972-74-712-9000
   EMail: alexandern@mellanox.com, nezhinsky@gmail.com