command-descriptor-block · shipping · also CDB, SCSI CDB

Command descriptor block (CDB)

A command descriptor block (CDB) is the byte-encoded description of a SCSI command.

Related Observatory article: Read on hesela.com

Command and data: The CDB identifies a command and is distinct from its associated data payload. Common fixed-length formats are 6, 10, 12 and 16 bytes; the operation and command set determine the layout. [1] [2]

Interpretation: Decode the command using the applicable device command set, such as SBC for block devices or SSC for sequential-access devices. A shared SCSI transport does not make their operations interchangeable. [3]

Transfer counts: For direct-access block devices, legacy READ(6) uses a one-byte transfer-length field where zero specifies 256 logical blocks. READ(10) uses a two-byte block count where zero requests no logical blocks. These are requested block counts, not CDB byte lengths or proof of completed transfer. Linux v6.12 decodes the two forms accordingly. [4] [5]

Measurement: The sg_read zero-block mode times command overhead using READ(10), READ(12) or READ(16). Its completed-command rate does not establish a user-data byte rate; READ(6) does not share that zero-block interpretation. [6]

Relations

related
SCSI, SCSI initiator and target, Logical unit number (LUN), SCSI CHECK CONDITION

Citations

  1. SNIA dictionary: Command Descriptor Block (accessed 2026-10-20)
  2. Linux SCSI Interfaces Guide: protocol versus bus and subsystem layers (accessed 2026-10-20)
  3. T10: SCSI standards architecture and command families (accessed 2026-10-20)
  4. Seagate SCSI Commands Reference Manual, Rev. L (2020), sections 3.17-3.18 (accessed 2026-10-28)
  5. Linux v6.12: scsi_trace_rw6 and scsi_trace_rw10 transfer-count decoding (accessed 2026-10-28)
  6. sg3_utils v1.48: sg_read(8), zero-block command-overhead timing (accessed 2026-10-28)
Sources & caveats
  • The listed fixed lengths are examples, not an exhaustive limit on SCSI command formats.
  • The zero-count contrast concerns direct-access block commands, not tape READ(6). The cited manual labels block READ(6) obsolete; support is not implied for every device. [4]

JSON: /data/terms/command-descriptor-block.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Command descriptor block (CDB). Hesela. 2026-10-28. https://hesela.dev/terms/command-descriptor-block/