iSCSI Session
An iSCSI session is a protocol association between an initiator and a target that groups TCP connections and, for a normal session, represents a SCSI I_T nexus.
A session normally has one or more TCP connections, each with its own connection ID; connections can be added or removed without making the session and a connection the same object. The initiator name plus ISID identifies the SCSI initiator port, and the target name plus TPGT identifies the SCSI target port. [1] [2]
MaxConnections is a session-wide negotiated limit whose default is 1 and whose result is the lower offered value, so multiple-connection capability must not be assumed. [3]
A normal session can carry SCSI commands for logical units; a discovery session is restricted to target discovery and logout, has MaxConnections equal to 1 and uses ErrorRecoveryLevel 0. [4] A failed session can temporarily retain state without an active connection under the recovery rules. [5] The paired analysis distinguishes connections within one session from separate sessions. [6]
Login identity: ISID is initiator-selected; TSIH is target-assigned. A new-session login sends TSIH=0; successful final login supplies a nonzero handle. [7] Within the same InitiatorName, TargetName and target portal group, an existing ISID with TSIH=0 requests session reinstatement, terminating the old session's active tasks. With the same ISID and a matching nonzero TSIH, a new CID adds a connection; an existing CID reinstates it. These identifiers do not authenticate the initiator. [8] [9] [10]
Below ErrorRecoveryLevel 2, connection reinstatement terminates the old connection's active tasks. At level 2 it enables later task reassignment; it does not itself establish that the work completed. [11]
Relations
- related
- iSCSI, SCSI initiator and target, Logical unit number (LUN), iSCSI Node Name, iSCSI Portal Group, iSCSI Connection, iSCSI Error Recovery Level, iSCSI Command Sequence Number, iSCSI Status Sequence Number
Citations
- RFC 7143: Layers and Sessions; section 4.2.1
- RFC 7143: SCSI Architecture Model; section 4.4.2
- RFC 7143: MaxConnections; section 13.2
- RFC 7143: SessionType; section 13.21
- RFC 7143: Session Continuation and Failure; section 6.3.6
- Hesela: iSCSI identity, sessions and recovery
- RFC 7143: ISID and TSIH; sections 11.12.5-11.12.6 and 11.13.3
- RFC 7143: scoped login identity decision table; section 6.3.1
- RFC 7143: session reinstatement terminates active tasks; section 6.3.5
- RFC 7143: in-band initiator-target authentication; section 9.2
- RFC 7143: connection reinstatement and task reassignment; section 6.3.4