Skip to content

Research notes / Storage networking

iSCSI identity, sessions and recovery: what a second portal does not prove

Published / Updated / Specification review

Two advertised iSCSI portals do not by themselves prove two usable paths, two independent failure domains or transparent recovery. Names, endpoints, sessions and recovery capabilities describe different parts of the system.

The same Ethernet cable can carry different storage transports

First identify the payload and transport. An Ethernet connection alone does not establish which storage login, recovery or congestion rules apply.

Transport architecture, not a performance or reliability ranking.
ProtocolWhat it carriesBoundary to inspect
Traditional iSCSISCSI commands, data and responses over TCP/IP.Initiator-target sessions and negotiated connections; iSER adds RDMA-assisted placement. [1, sections 4.1 and 4.2.9]
FCoEFibre Channel frames directly in Ethernet.FC virtual links and fabric login, not a TCP session. [11]
FCIPFibre Channel frames over TCP/IP.Connections joining FC fabric islands, not iSCSI sessions. [12, sections 4-5]

FIP handles FCoE discovery, fabric-login exchanges and virtual-link maintenance. Link-up is not proof that these stages completed. [11] DCB groups Ethernet enhancements: PFC, bandwidth assignment through Enhanced Transmission Selection and neighbor configuration exchange have distinct jobs. [15]

Lossless does not mean stall-free

PFC targets congestion drops using per-priority control on full-duplex links, not individual-flow scheduling. Its scope does not establish end-to-end integrity or persistent writes. [13] Link-local pauses can propagate congestion across multiple links. [14]

Zhu et al.'s SIGCOMM 2015 study demonstrates a victim flow slowed by congestion outside its path through cascading pauses. Section 2.2 uses a three-tier, 40 Gbit/s RoCEv2 testbed; this is evidence about shared-priority coupling, not an FCoE benchmark or a universal throughput prediction. [16, figures 2-4]

A no-drop queue can deliberately drop

Cisco's Nexus 9000 NX-OS 10.5(x) guide documents a PFC watchdog that drops traffic after detecting a persistently stuck no-drop queue. This release-specific recovery behavior is not a requirement for all PFC implementations. Check the supported platform, watchdog state and counters before treating a no-drop label as evidence of zero loss. [14, watchdog workflow]

Hesela's inspection checklist: record VLAN/priority mapping, FIP login and virtual-link state, pause and watchdog events, then the application's result. Do not diagnose deadlock from a pause counter alone. No switch or failure-injection experiment was performed for this review.

Identify the node before counting its addresses

Traditional iSCSI carries the SCSI command model over TCP; iSER adds an RDMA-assisted mode. Its node name is independent of network location: one node can have several addresses, and several nodes can share an address. IQN is one naming format, not a synonym for every valid iSCSI name; EUI and NAA formats also exist. [1, sections 4.2.7 and 4.4.1]

An IQN's date describes the naming authority's domain ownership, not the node's age. [1, section 4.2.7.4] The domain appears reversed; any local suffix is assigned within that authority's namespace. [10, section 1.1] DNS resolution is unnecessary and the suffix is optional. [1, section 4.2.7.4]

Keep protocol identity, endpoint and logical-unit evidence separate.
ObjectWhat it identifiesDo not infer
Node nameThe logical initiator or target node.A particular NIC, IP address or authenticated connection.
Target portalAn IP address and listening TCP port. An initiator portal is identified by its IP address.An independent storage copy or failure domain.
Portal group / TPGTPortals capable of coordinating a session; the tag is scoped to its target node.That every advertised portal is currently connected.

The identity definitions follow RFC 7143 sections 2.2, 4.4.1 and 13.9; the last column states Hesela's operational implications. A target portal group tag of zero is valid. Do not confuse this tag with a logical unit number or treat the same tag on different target nodes as a global identifier. [1]

One session can contain several connections

A normal iSCSI session maps to a SCSI initiator-target nexus. Its TCP connections carry iSCSI PDUs and have connection identifiers scoped to that session. Multiple-connection support is subject to the negotiated MaxConnections limit, whose default is one. [1, sections 4.2.1, 11.12.7 and 13.2]

Session continuation is not session reinstatement. For a fixed InitiatorName, TargetName and target portal group, an existing ISID plus TSIH=0 requests session reinstatement and terminates old active tasks. The same ISID and a matching nonzero TSIH select the existing session: a new CID adds a connection; an existing CID replaces one. Below recovery level 2, connection reinstatement also terminates that connection's active tasks. [1, sections 6.3.1, 6.3.4-6.3.5] A reconnect is therefore not proof of preserved work.

This is not interchangeable with a host multipath stack using separate sessions to reach a logical unit. When reviewing a diagram, ask whether two drawn lines mean two connections in one session, two sessions, or merely two discovered addresses. The drawing alone cannot establish independent switches, controllers, power supplies or data copies.

Discovery is a separate session type. It is restricted to discovery exchanges and logout, uses one connection and requires ErrorRecoveryLevel=0. It does not carry normal SCSI I/O. [1, sections 4.3 and 13.21] In Open-iSCSI's documented manual discovery workflow, discovered targets become database records; they are not yet logged in. [2, section 7.2]

Command order is not completion order

CmdSN orders command delivery across the session; StatSN numbers responses within one connection. Neither counter measures persistence. Immediate commands do not advance CmdSN. [1, sections 4.2.2.1-4.2.2.2]

Illustrative trace, not a capture: connection A carries command 100, while connection B carries command 101. Sorting packets from B alone cannot reconstruct the session's command stream. Likewise, comparing A's status 900 with B's status 20 cannot establish which application operation completed first. Preserve session and connection identity when analysing captures; correlate commands with their task tags.

Command delivery order also does not impose a general order on SCSI responses across connections; special response-fence rules cover specified cases. [1, section 4.2.2.3] Keep this separate from the application's transaction and durability contract.

Recovery level describes capabilities, not a service guarantee

ErrorRecoveryLevel is negotiated for the session using the lower of the offered values, with a default of zero. Supporting level 0 is mandatory; levels 1 and 2 are optional. Higher levels include lower-level capabilities. [1, sections 7.1.5 and 13.20]

RFC 7143 capability hierarchy, not a ranking of application availability.
LevelAdded capabilityImportant boundary
0Recovery by rebuilding the session.Outstanding tasks are aborted, not transparently preserved.
1Recovery from digest failures within a command or connection.Not the cross-connection recovery of level 2.
2Connection recovery, including task allegiance reassignment.Not a bound on application delay or proof of media persistence.

Session recovery closes the session's TCP connections and terminates outstanding commands before a new session is established. Also, the RFC's command-PDU retry mechanism fills command-sequence gaps; it is not permission to replay arbitrary failed application operations. [1, sections 7.1.4.4 and 7.2.1]

Hesela's interpretation: report the negotiated level alongside the host driver and target implementation, not as a stand-alone availability score. After an ambiguous completion, use the application's own recovery contract. See timeouts and uncertain write completion and fencing stale writers.

Check authentication, digests and confidentiality separately

A successful CHAP login does not encrypt subsequent storage traffic. Mutual CHAP adds target authentication; iSCSI requires different secrets for the two authentication directions. That is distinct from protecting packets after login. [4, sections 2.4 and 3.1]

Three different checks, not interchangeable security settings.
MechanismPurposeInspect
CHAPLogin authentication.Which direction was authenticated, without recording secrets.
HeaderDigest / DataDigestCorruption detection with CRC32C.Each connection's negotiated values, not just CRC32C support.
IPsecPacket protection according to the selected security association.Actual protected endpoints, policy and confidentiality transform.

The digest keys default to None and are connection-scoped. Negotiated digests apply in Full Feature Phase, not to Login Phase PDUs. Header and data checks are separate; the standard CRC32C checks do not authenticate a sender or encrypt content. [1, section 13.1]

Open-iSCSI's pinned configuration distinguishes CRC32C,None, which permits no digest, from a CRC32C-only offer. It also separates discovery credentials from normal-session credentials. Check the running connection and authentication outcome, not only a configuration example. [5]

IPsec itself does not imply encryption: a security association using NULL encryption can provide authentication and integrity without confidentiality. RFC 7146 updates RFC 3723's IPsec requirements; their historical algorithm lists are not a present-day cipher-selection guide. [6, section 2.2] Record the implemented policy and protection endpoints before describing a storage path as encrypted. This is a specification review, not a tested secure configuration.

With iSER, follow the data-placement direction

iSER retains iSCSI's SCSI command model but adds RDMA-assisted data placement. It is a protocol using RDMA, not a synonym for RDMA or NVMe/RDMA. A SCSI read and an RDMA Read name operations at different layers.

RFC 7145 sections 1.4 and 9.5.1: direction relative to the SCSI initiator and target.
SCSI dataiSER transferWho moves it?
Read resultRDMA WriteTarget places bytes in the initiator's advertised buffer.
Solicited write dataRDMA ReadTarget fetches bytes from the initiator's advertised buffer.
Immediate write dataSend with the SCSI CommandInitiator includes bytes with its command.
Other unsolicited write dataSend with SCSI Data-OutInitiator sends the permitted unsolicited bytes.

Thus, not all write data is fetched with RDMA Read. [7, sections 1.4 and 9.5.1] These are protocol operations, not captured traffic or measured transfer costs.

Confirm the session mode before interpreting a digest

RDMAExtensions defaults to No. Both peers must agree to Yes on the leading connection; later connections inherit the session-wide mode. Discovery sessions cannot negotiate it. For iSER, HeaderDigest=None and DataDigest=None are required because the RDMA-capable protocol supplies error detection. The same digest values therefore need different interpretation depending on the transport. [7, sections 5.1, 6.1 and 6.3]

Track buffer access separately from command success

An STag identifies a tagged memory buffer; offset and length describe the advertised range. It is not a LUN, disk address or user credential. [8, section 2.3] Buffer bounds, access rights and protection context remain relevant even when a tag is valid. Memory-access authorization does not replace peer authentication or packet confidentiality. [9, sections 5.3, 5.4 and 6.2.1]

RFC 7145 recommends normal-completion invalidation with SHOULD, not an unconditional MUST. Remote invalidation is optional. When an STag is expected to be invalid after task completion, the initiator must check that state and invalidate locally if necessary. Valid cached tags can extend remote-access exposure beyond a task. Do not assume every completion automatically expires every tag. [7, sections 1.5.1, 8.3.2 and 11]

For an incident record, add the negotiated mode, RDMA provider and buffer-registration/invalidation policy to the session evidence. Successful placement in memory alone does not demonstrate persistent storage, and an error-detection check alone does not establish encryption. Neither the protocol name nor this transfer table predicts a universal latency advantage.

Route to a region without claiming to move its data

dm-switch addresses a different question from ordinary path load balancing: which array member should receive this region's I/O? Its documented layout puts region selection above per-member multipath devices. Alternative member paths can rely on array-side forwarding; the design is not a recipe for treating unrelated disks as interchangeable copies. [17]

For target-relative sector x, the selected path receives x + path_offset. A 128-sector region is 65,536 bytes. The following integer examples retain the logical address instead of packing successive regions together on each destination. [18, switch_map]

Worked addresses in 512-byte sectors, not captured I/O. Every example selects path 1 with starting offset 2,048; the first two are the last and first sectors of adjacent regions.
Target-relative sectorRegion (128 sectors)Backing sector
25512,303
25622,304
38322,431

Configuration errors need reconciliation: with three paths, the message arguments 0:1 1:3 change region 0 before rejecting path 3. Linux v6.12 applies entries in sequence, without rollback, and its status output omits the live region map. Retain the intended mapping outside the device and do not infer unchanged state from failure. [18, process_set_region_mappings and switch_status]

Relocation needs an additional consistency protocol

The BORG research system illustrates the missing responsibility: its reconfigurator actually copies blocks, holds writes to a source LBA during movement and updates an indirection map. Its persistent map also records recovery state. Those mechanisms, described in FAST 2009, are not supplied merely by selecting a different dm-switch path. [19, sections 3.2-5.1]

This comparison concerns mechanisms, not equivalent implementations or a reproduced performance result. The address model and its tests use integer arithmetic only. They do not simulate kernel concurrency, message parsing, array forwarding or crash recovery.

Collect observations from the layer that owns them

The pinned Open-iSCSI README documents these read-only inspection commands. They are examples, not output from a live Hesela test:

iscsiadm -m session -P 2
iscsiadm -m session -P 3

Print level 2 includes iSCSI parameters; level 3 adds SCSI information such as LUNs and device state. A stored node record is not evidence of a running session. [2, section 5]

Open-iSCSI's replacement_timeout controls waiting before affected commands fail upward. Relogin attempts can continue after this timer expires; command retries and multipath queueing have separate effects. Do not read it as a universal application failover duration or prescribe one value for every deployment. [2, section 8.1]

A useful incident record

  • Record target identity, portal addresses, TPGT, sessions, connections and logical-unit identity separately.
  • Record negotiated parameters, host/driver/target versions and multipath policy, without credentials.
  • Time the injected or observed fault, its detection, reconnection, resumed I/O and the application's final outcome separately.
  • State what was checked after recovery: readable data, acknowledged writes, ordering, or a full application transaction.

This is a proposed evidence checklist, not a measured result. A successful reconnect alone cannot answer the last question. Continue with flush/FUA persistence boundaries and the distinct NVMe-oF transport architecture.

A historical speedup needs its experimental boundary

Joglekar, Kounavis and Berry's FAST '05 study investigated software CRC and data-copy costs. Its often-quoted 1.4 to 3.6 Gbit/s result is a projected stack throughput from a user-level fast-path sandbox that could not send traffic to real peers. The sandbox used a 1.7 GHz Pentium M; the optimizations combined Slicing-by-8 CRC with interleaved copying. [3, sections 3-5.2, figure 17]

A separate networked test replaced only the CRC algorithm in a UNH iSCSI stack on Linux 2.4.20: a 3 GHz single-processor Xeon initiator, three targets and gigabit NICs. At the paper's 8KB I/O point, the authors reported 15% higher normalized throughput. That is a different experiment, not confirmation of a 2.6-fold live-storage speedup. [3, section 5.2]

Validate before exposing the destination buffer

Section 3.3 also identifies a correctness boundary: interleaving copy and CRC is compatible with intermediate validation buffers, but copying unchecked bytes directly into application or file-cache buffers can expose corrupted data before rejection. The optimization is unsuitable where that exposure cannot be tolerated. [3, section 3.3]

For a design review, ask who can read the destination before validation finishes and what happens on a digest mismatch. This is an implementation question, not evidence that every current iSCSI stack has this defect. Compare checksum coverage and identity with the SCSI command and response layers.

Neither result predicts present-day hardware or tests failover. Hesela's practical inference: name the measured layer, baseline, workload and enabled integrity checks before comparing speedups. These are published results, not a benchmark reproduced here.

Method and limitations

Primary-source specification review of RFC 7143 and implementation-documentation review of Open-iSCSI README at commit a65ce4b1858c175d0351c5760015a9ab70212c93. Examples and the incident checklist are explanatory, not collected observations. Historical performance evidence is checked against Joglekar, Kounavis and Berry (FAST 2005), distinguishing its sandbox projection from its networked Linux test. Protection boundaries also follow RFC 3723, RFC 7146 and the Open-iSCSI configuration at the same pinned revision. iSER data placement and buffer lifetime follow RFC 7145, RFC 5040 and RFC 5042. Transport boundaries use RFC 3821, IEEE DCB/PFC scope pages and release-specific Cisco guides. Zhu et al. (SIGCOMM 2015) section 2.2 supplies historical RoCEv2 evidence about pause propagation, not a reproduced FCoE experiment. Region routing follows pinned Linux v6.12 dm-switch documentation and source; BORG (FAST 2009), sections 3.2-5.1, supplies a contrasting relocation protocol. The linked integer model checks address arithmetic, not kernel execution.

No target, failure injection, failover-duration or durability experiment was performed. RFC capabilities do not establish support in a particular host driver, target or deployment. The Open-iSCSI reference is pinned to a source revision; deployed distributions and offload drivers may differ. This review does not claim that all iSCSI software supports multiple connections or optional recovery levels.

Primary sources

  1. RFC 7143: iSCSI (Consolidated), sections 2.2, 4.2.1-4.2.2.3, 4.2.7, 4.3, 4.4.1, 7.1.4-7.2.1 and 13.2, 13.9, 13.20-13.21; digest negotiation, section 13.1; login identity and reinstatement, sections 6.3.1, 6.3.4-6.3.5 and 11.12.5-11.13.3
  2. Open-iSCSI README, pinned commit a65ce4b: session inspection, discovery and recovery timers (sections 5, 7.2 and 8.1)
  3. Abhijeet Joglekar, Michael E. Kounavis and Frank L. Berry: A Scalable and High Performance Software iSCSI Implementation, USENIX FAST 2005, sections 3-5.2
  4. RFC 3723: iSCSI authentication and security issues, sections 2.4 and 3.1
  5. Open-iSCSI configuration at a65ce4b: authentication scopes and digest preferences
  6. RFC 7146: updated IPsec requirements, section 2.2 (confidentiality transforms)
  7. RFC 7145: iSER transfer model, negotiation and STag lifetime, sections 1.4-1.5, 5.1, 6.1, 6.3, 8.3.2, 9.5.1 and 11
  8. RFC 5040: RDMA buffer and Steering Tag terminology, section 2.3
  9. RFC 5042: RDMA security services and buffer access controls, sections 5.3-5.4 and 6.2.1
  10. RFC 3721: constructing IQNs; section 1.1 (domain ownership and local naming authority)
  11. Cisco MDS 9000 FCoE Configuration Guide, Release 8.x: FCoE, FIP and frame formats
  12. RFC 3821: Fibre Channel Over TCP/IP (FCIP), sections 4-5
  13. IEEE 802.1Qbb: Priority-based Flow Control, project scope
  14. Cisco Nexus 9000 NX-OS QoS Guide, Release 10.5(x): Configuring Priority Flow Control
  15. IEEE 802.1: Addressing and Data Center Bridging, enhancement roles
  16. Zhu et al., Congestion Control for Large-Scale RDMA Deployments, SIGCOMM 2015, section 2.2 and Figures 2-4. DOI 10.1145/2785956.2787484.
  17. Linux v6.12: dm-switch region routing and two-tier multipath layout
  18. Linux v6.12: switch_map, process_set_region_mappings and switch_status
  19. Bhadkamkar et al., BORG: Block-reORGanization for Self-optimizing Storage Systems, FAST 2009, sections 3.2-5.1

Sources accessed on the dates recorded in the metadata; transport and PFC references checked 2 November 2026. Definitions are paraphrased; explanatory implications and the checklist are Hesela's synthesis.

Published by Hesela team · Published · Updated

Report a correction · Editorial standards · Reuse guidance

Change history

: first published.

: latest recorded update. A detailed change note is not available for this revision.

New-publication RSS · Correction RSS

Cite this page
Hesela team. iSCSI identity, sessions and recovery: what a second portal does not prove. Hesela. 2026-12-01. https://hesela.com/analyses/iscsi-identity-sessions-recovery/