{
  "slug": "iscsi-session",
  "term": "iSCSI Session",
  "aliases": [],
  "definition": "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.",
  "note": "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. [layers] [mapping]\n\nMaxConnections 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. [connections]\n\nA 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. [type] A failed session can temporarily retain state without an active connection under the recovery rules. [continuation] The paired analysis distinguishes connections within one session from separate sessions. [analysis]\n\nLogin identity: ISID is initiator-selected; TSIH is target-assigned. A new-session login sends TSIH=0; successful final login supplies a nonzero handle. [login-handle] 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. [login-start] [reinstatement] [authentication]\n\nBelow 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. [connection-reinstatement]",
  "status": "shipping",
  "advantages": [],
  "limitations": [],
  "related": [
    "iscsi",
    "initiator-target",
    "logical-unit-number",
    "iscsi-node-name",
    "iscsi-portal-group",
    "iscsi-connection",
    "iscsi-error-recovery-level",
    "iscsi-cmdsn",
    "iscsi-statsn"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "citations": [
    {
      "id": "layers",
      "title": "RFC 7143: Layers and Sessions; section 4.2.1",
      "url": "https://www.rfc-editor.org/rfc/rfc7143.html#section-4.2.1",
      "accessed": "2026-10-17"
    },
    {
      "id": "mapping",
      "title": "RFC 7143: SCSI Architecture Model; section 4.4.2",
      "url": "https://www.rfc-editor.org/rfc/rfc7143.html#section-4.4.2",
      "accessed": "2026-10-17"
    },
    {
      "id": "connections",
      "title": "RFC 7143: MaxConnections; section 13.2",
      "url": "https://www.rfc-editor.org/rfc/rfc7143.html#section-13.2",
      "accessed": "2026-10-17"
    },
    {
      "id": "type",
      "title": "RFC 7143: SessionType; section 13.21",
      "url": "https://www.rfc-editor.org/rfc/rfc7143.html#section-13.21",
      "accessed": "2026-10-17"
    },
    {
      "id": "continuation",
      "title": "RFC 7143: Session Continuation and Failure; section 6.3.6",
      "url": "https://www.rfc-editor.org/rfc/rfc7143.html#section-6.3.6",
      "accessed": "2026-10-17"
    },
    {
      "id": "analysis",
      "title": "Hesela: iSCSI identity, sessions and recovery",
      "url": "https://hesela.com/analyses/iscsi-identity-sessions-recovery/",
      "accessed": "2026-10-17"
    },
    {
      "id": "login-handle",
      "title": "RFC 7143: ISID and TSIH; sections 11.12.5-11.12.6 and 11.13.3",
      "url": "https://www.rfc-editor.org/rfc/rfc7143.html#section-11.13.3",
      "accessed": "2026-10-27"
    },
    {
      "id": "login-start",
      "title": "RFC 7143: scoped login identity decision table; section 6.3.1",
      "url": "https://www.rfc-editor.org/rfc/rfc7143.html#section-6.3.1",
      "accessed": "2026-10-27"
    },
    {
      "id": "reinstatement",
      "title": "RFC 7143: session reinstatement terminates active tasks; section 6.3.5",
      "url": "https://www.rfc-editor.org/rfc/rfc7143.html#section-6.3.5",
      "accessed": "2026-10-27"
    },
    {
      "id": "authentication",
      "title": "RFC 7143: in-band initiator-target authentication; section 9.2",
      "url": "https://www.rfc-editor.org/rfc/rfc7143.html#section-9.2",
      "accessed": "2026-10-27"
    },
    {
      "id": "connection-reinstatement",
      "title": "RFC 7143: connection reinstatement and task reassignment; section 6.3.4",
      "url": "https://www.rfc-editor.org/rfc/rfc7143.html#section-6.3.4",
      "accessed": "2026-10-28"
    }
  ],
  "updated": "2026-10-28"
}
