iscsi-session · shipping

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.

Related Observatory article: Read on hesela.com

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

  1. RFC 7143: Layers and Sessions; section 4.2.1 (accessed 2026-10-17)
  2. RFC 7143: SCSI Architecture Model; section 4.4.2 (accessed 2026-10-17)
  3. RFC 7143: MaxConnections; section 13.2 (accessed 2026-10-17)
  4. RFC 7143: SessionType; section 13.21 (accessed 2026-10-17)
  5. RFC 7143: Session Continuation and Failure; section 6.3.6 (accessed 2026-10-17)
  6. Hesela: iSCSI identity, sessions and recovery (accessed 2026-10-17)
  7. RFC 7143: ISID and TSIH; sections 11.12.5-11.12.6 and 11.13.3 (accessed 2026-10-27)
  8. RFC 7143: scoped login identity decision table; section 6.3.1 (accessed 2026-10-27)
  9. RFC 7143: session reinstatement terminates active tasks; section 6.3.5 (accessed 2026-10-27)
  10. RFC 7143: in-band initiator-target authentication; section 9.2 (accessed 2026-10-27)
  11. RFC 7143: connection reinstatement and task reassignment; section 6.3.4 (accessed 2026-10-28)

JSON: /data/terms/iscsi-session.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. iSCSI Session. Hesela. 2026-10-28. https://hesela.dev/terms/iscsi-session/