iscsi — Port 3260 48-Byte BHS Login, SCSI Read/Write & NOPs
- Default Port / Protocol
- TCP 3260
- Host Endpoint Rule
- Dual-Stack IPv4/IPv6
- Wireshark Display Filter
- iscsi
- Standards & Specs
- RFC 7143, RFC 3720, SAM-5
What It Does on the Wire
Every iSCSI PDU starts with a strict 48-byte Basic Header Segment on TCP 3260 — iscsi builds IQN login key-value pairs, lun-addressed SCSI commands, itt/cmdsn/statsn counters, and nop keepalives.
Internet Small Computer Systems Interface (iscsi, RFC 7143 / RFC 3720) transports block-level SCSI commands, NVMe/hypervisor datastore I/O, and cluster shared volumes across IP storage networks on TCP port 3260. Every iSCSI Protocol Data Unit begins with a 48-byte Basic Header Segment (BHS) containing a 6-bit Opcode (plus I Immediate bit), Flags (Final 0x80, Read/Write, Transit/Continue), 24-bit DataSegmentLength (padded to 4-byte boundaries), 64-bit LUN, Initiator Task Tag (itt), CmdSN, ExpStatSN / StatSN, and 16-byte SCSI Command Descriptor Blocks (CDBs) or key=value Login/Text operational parameters.
FrameAssembly packs exact 48-byte BHS frames + 4-byte padded InitiatorName / TargetName IQN text segments over stateful 4-tuple TCP (3260).
Dedicated Storage VLAN & Jumbo-Frame (MTU 9000) SAN Audits
Validate dedicated storage VLANs (vlan 200 pcp 4 df) and firewall ACLs on TCP 3260 for VMware ESXi, Proxmox, Ceph, NetApp, and Pure Storage iSCSI initiators.
Unauthorized IQN Target Discovery (SendTargets) Detection
Simulate lateral-movement reconnaissance where a compromised host sends iscsi login or iscsi text PDUs probing storage targets (iqn.2026-01.corp.san:...) without CHAP credentials.
CmdSN / StatSN Ordering & SCSI Check-Condition Lab Traces
Script iscsi write -> data -> response (status 0x02 Check Condition vs 0x00 Good) sequences with explicit itt, cmdsn, and statsn counters.
RFC Wire Header Layout (iscsi)
Select any 32-bit wire word or field slice below to inspect which .frasm modifiers control those octets and what defaults the compiler writes.
Minimal Quickstart (iscsi_quickstart.frasm)
Select Preview Packets to compile in-browser and inspect timestamps + wire byte lengths, or open directly in the Playground.
host esxi_host { ip 10.70.20.11 }
host san_target { ip 10.70.20.50 }
compile {
esxi_host -> san_target tcp syn srcport 51320 dstport 3260 win 65535 mss 8960 wait 1ms
esxi_host <- san_target tcp syn ack win 65535 mss 8960 wait 1ms
esxi_host -> san_target tcp ack wait 1ms
esxi_host -> san_target iscsi login initiator "iqn.2026-01.corp.vm:esxi01" target "iqn.2026-01.corp.san:datastore01" itt 1 cmdsn 1 wait 2ms
esxi_host <- san_target iscsi response opcode 0x23 itt 1 statsn 1 status 0
}Handled Automatically on the Wire
- Defaults to stateful TCP port
3260(psh ack, automaticseq/acknumprogression across 48-byte BHS + padded data segments). - Formats null-delimited
InitiatorName=<iqn>andTargetName=<iqn>operational key-value pairs onlogin(0x03), writing unpaddedDataSegmentLengthinto BHS bytes 5..7 while zero-padding the wire segment to 4-byte alignment. - Populates 10-byte SCSI
READ(10)(0x28) andWRITE(10)(0x2a) CDBs insideSCSI Command(0x01) BHS headers usinglunandoffsetLBA.
Storage VLAN 200 iSCSI Session Login, SCSI READ(10) Data-In & NOP-Out Ping
Establishes an iSCSI Full Feature Phase session over VLAN 200, executes a SCSI READ on LUN 1 (offset 4096), returns SCSI Data-In (0x25) with status completion, and exchanges NOP-Out / NOP-In keepalives.
host hv_node01 { ip 172.18.200.11 mac 00:25:b5:01:00:11 }
host flash_san { ip 172.18.200.80 mac 00:25:b5:02:00:80 }
compile {
hv_node01 -> flash_san tcp syn srcport 54320 dstport 3260 vlan 200 pcp 4 df wait 1ms
hv_node01 <- flash_san tcp syn ack vlan 200 pcp 4 df wait 1ms
hv_node01 -> flash_san tcp ack vlan 200 pcp 4 df wait 1ms
// 1. iSCSI Login Request (0x03) -> Login Response (0x23, StatusClass=0 Success)
hv_node01 -> flash_san iscsi login initiator "iqn.2026-01.internal.hv:node01" target "iqn.2026-01.internal.san:lun-db01" itt 0x1001 cmdsn 1 vlan 200 pcp 4 wait 2ms
hv_node01 <- flash_san iscsi response opcode 0x23 itt 0x1001 statsn 1 status 0 vlan 200 pcp 4 wait 2ms
// 2. SCSI READ(10) Command on LUN 1 at LBA 4096 -> Data-In (0x25) + SCSI Response (0x21)
hv_node01 -> flash_san iscsi read lun 1 itt 0x1002 cmdsn 2 statsn 1 offset 4096 vlan 200 pcp 4 wait 1ms
hv_node01 <- flash_san iscsi data opcode 0x25 lun 1 itt 0x1002 statsn 2 payload "BLOCK-SECTOR-4096-DATA" vlan 200 pcp 4 wait 1ms
hv_node01 <- flash_san iscsi response lun 1 itt 0x1002 statsn 3 status 0 vlan 200 pcp 4 wait 10ms
// 3. iSCSI NOP-Out (0x00) -> NOP-In (0x20) storage fabric liveness check
hv_node01 -> flash_san iscsi nop itt 0x1003 cmdsn 3 statsn 3 vlan 200 pcp 4 wait 1ms
hv_node01 <- flash_san iscsi response opcode 0x20 itt 0x1003 statsn 4 vlan 200 pcp 4
}# 1. Eyeball relative timestamps, ports & wire lengths in your terminal
frameassembly show iscsi_san_read_cycle.frasm
# 2. Compile .frasm -> classic .pcap, nanosecond .pcapng, or pipe via '-'
frameassembly iscsi_san_read_cycle.frasm iscsi_san_read_cycle.pcap
frameassembly iscsi_san_read_cycle.frasm iscsi_san_read_cycle.pcapng
# 3. Round-trip .pcap <-> .frasm whenever you want to scrub or tweak an existing capture
frameassembly reverse iscsi_san_read_cycle.pcap iscsi_san_read_cycle_edited.frasm
# 4. Verify dissected protocol fields in tshark
tshark -r iscsi_san_read_cycle.pcap -Y "iscsi"All iscsi Keywords & Header Options
Every sub-keyword and header option is lowercase [a-z0-9]+ with zero underscores — mix and match them in any order after iscsi:
src_host -> dst_host iscsi [login | logout | read | write | nop | response | data | text | cmd "<text>"] [opcode <0..63>] [initiator "<text>"] [target "<text>"] [lun <0..65535>] [itt <number>] [cmdsn <number>] [statsn <number>] [status <0..255>] [flags <0..255>] [offset <number>]| Keyword / Option | Accepted Value | Default | Effect on Packet |
|---|---|---|---|
| login | logout | read | write | nop | response | data | text | cmd "<text>" | iSCSI BHS PDU type shorthand | nop (0x00) | Selects 0x00 NOP-Out, 0x01 SCSI Command (read/write), 0x03 Login Request, 0x04 Text Request, 0x05 SCSI Data-Out, 0x06 Logout, 0x21 SCSI Response, 0x23 Login Response, or 0x25 SCSI Data-In. |
| opcode <0..63> | 6-bit RFC 7143 BHS Opcode override | Derived from command keyword | Explicitly sets byte 0 (0x20 NOP-In, 0x21 SCSI Resp, 0x23 Login Resp, 0x24 Text Resp, 0x25 Data-In, 0x31 R2T). |
| initiator "<text>" | target "<text>" | iSCSI Qualified Name (IQN / EUI) strings | "iqn.2026-01.com.example:initiator" / "...:target" | Appends InitiatorName="<text>" |