SCSI Commands Overview

Slides:



Advertisements
Similar presentations
Computer-System Structures Er.Harsimran Singh
Advertisements

System Integration and Performance
INPUT-OUTPUT ORGANIZATION
File Systems.
Avishai Wool lecture Introduction to Systems Programming Lecture 8 Input-Output.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
CS 153 Design of Operating Systems Spring 2015
SBP/2 over IEEE-1394 and future 1394 specifications Contact Info: Christopher Lee University of New Hampshire InterOperability Lab -
DIRECT MEMORY ACCESS CS 147 Thursday July 5,2001 SEEMA RAI.
+======-========-========-========-========-========-========-========-========+ | Bit| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |Byte | | | | | | | | | |======+=======================================================================|
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
CS 333 Introduction to Operating Systems Class 18 - File System Performance Jonathan Walpole Computer Science Portland State University.
Computer System Overview
1 Storage Hierarchy Cache Main Memory Virtual Memory File System Tertiary Storage Programs DBMS Capacity & Cost Secondary Storage.
Hugo HEPiX Fall 2005 Testing High Performance Tape Drives HEPiX FALL 2005 Data Services Section.
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
15-Oct-2007 External Path Protection Discussion By Curtis E. Stevens.
I/O Tanenbaum, ch. 5 p. 329 – 427 Silberschatz, ch. 13 p
INPUT-OUTPUT ORGANIZATION
SHARKFEST '08 | Foothill College | March 31 - April 2, 2008 File and Disk Sharing Protocols April 2, 2008 Richard Sharpe Senior Software Engineer | Data.
Layers of a DBMS Query optimization Execution engine Files and access methods Buffer management Disk space management Query Processor Query execution plan.
Mass Storage Media Locking By Curtis E. Stevens WD.
1 Input/Output. 2 Principles of I/O Hardware Some typical device, network, and data base rates.
General System Architecture and I/O.  I/O devices and the CPU can execute concurrently.  Each device controller is in charge of a particular device.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 17 Disk Storage, Basic File Structures, and Hashing.
Chapter 1 Computer System Overview Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William.
Segmentation & O/S Input/Output Chapter 4 & 5 Tuesday, April 3, 2007.
CHAPTER 2: COMPUTER-SYSTEM STRUCTURES Computer system operation Computer system operation I/O structure I/O structure Storage structure Storage structure.
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 2: Computer-System Structures Computer System Operation I/O Structure.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Principles of I/0 hardware.
Chapter 2: Computer-System Structures
Thanks to Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2 Computer-System Structures n Computer System Operation n I/O Structure.
1 CSE Department MAITSandeep Tayal Computer-System Structures Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection.
Ihr Logo Operating Systems Internals & Design Principles Fifth Edition William Stallings Chapter 1 Computer System Overview.
CS414 Review Session.
Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection Network Structure.
Storage and Indexes Introduction to Databases Computer Science 557 Instructor: Joe Bockhorst University of Wisconsin - Milwaukee.
Improving Networks Worldwide. UNH InterOperability Lab Serial Attached SCSI (SAS) Clause 7.
Microsoft’s Concerns about Pioneer Proposal 21-Feb-2008.
Computer Foundations Dr. John P. Abraham Professor UTPA.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 2 Computer-System Structures Slide 1 Chapter 2 Computer-System Structures.
CS333 Intro to Operating Systems Jonathan Walpole.
Chapter 5 Input/Output 5.1 Principles of I/O hardware
Introduction: Memory Management 2 Ideally programmers want memory that is large fast non volatile Memory hierarchy small amount of fast, expensive memory.
4P13 Week 12 Talking Points Device Drivers 1.Auto-configuration and initialization routines 2.Routines for servicing I/O requests (the top half)
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
Chapter 2: Computer-System Structures(Hardware) or Architecture or Organization Computer System Operation I/O Structure Storage Structure Storage Hierarchy.
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
DATA MANAGEMENT 1) File StructureFile Structure 2) Physical OrganisationPhysical Organisation 3) Logical OrganisationLogical Organisation 4) File OrganisationFile.
What Should a DBMS Do? Store large amounts of data Process queries efficiently Allow multiple users to access the database concurrently and safely. Provide.
1 Chapter 11 I/O Management and Disk Scheduling Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and.
Jonathan Walpole Computer Science Portland State University
Chapter 2: Computer-System Structures(Hardware)
Chapter 2: Computer-System Structures
Tape Drive Testing IBM 3592.
Tape Drive Testing.
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
CS703 - Advanced Operating Systems
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
Disk Storage, Basic File Structures, and Hashing
Disk Storage, Basic File Structures, and Buffer Management
Forensic Concept of Data
Computer-System Architecture
Module 2: Computer-System Structures
Operating Systems Chapter 5: Input/Output Management
Module 2: Computer-System Structures
Chapter 2: Computer-System Structures
Chapter 2: Computer-System Structures
Module 2: Computer-System Structures
Module 2: Computer-System Structures
Presentation transcript:

SCSI Commands Overview UNH InterOperability Lab SCSI Commands Overview

Presentation Topics Command Summary Select Command Explanations Additional Sense Codes and Qualifiers

CDB Command Data Block Commands are defined with CDBs Each command has its own CDB CDBs defined by various SCSI Standards Fixed and variable length variations In SAS: Encapsulated in a command frame

SCSI Command Sets SPC-4 SCSI Primary Commands Version 4 Commands universal to all device types SBC-3 SCSI Block Command Version 3 Commands specific to block devices (hard disks) SSC-2 SCSI Streaming Commands Version 2 Commands specific to streaming devices (tape drives) MMC-4 SCSI Multi Media Commands Version 4 Commands specific to multimedia devices (CD/DVD)

Common SCSI Commands in SAS Read Commands READ (6) (SSC and SBC)* READ (10) (SBC) READ (12) (SBC) READ (16) (SBC) READ (32) (SBC) *Different field definitions, same CDB Length

Command SCSI Commands in SAS Write Commands WRITE (6) (SSC and SBC)* WRITE (10) (SBC) WRITE (12) (SBC) WRITE (16) (SBC) WRITE (32) (SBC) *Different Field Definitions, same CDB Length

Diagnostic and Initialization Commands READ BUFFER (SPC) WRITE BUFFER (SPC) INQUIRY (SPC) TEST UNIT READY (SPC) MODE SENSE (SPC) MODE SELECT (SPC) LOG SENSE (SPC) LOG SELECT (SPC) READ ATTRIUBUTE (SPC) REPORT LUNS (SPC)

Block Specific Commands READ CAPACITY VERIFY WRITE AND VERIFY READ LONG WRITE LONG Many more…

Streaming Specific Commands LOAD UNLOAD LOCATE (16) PREVENT ALLOW MEDIUM REMOVAL READ BLOCK LIMITS READ POSITION REWIND SET CAPACITY SPACE (16)

READ (16) Command OP Code: 88h Specifies the command RD Protect: Various settings regarding the write protection checking

READ (16) Command DPO – Disable Page Out Bit Used to optimize caching onboard the target device Set to 1 tells the target that data at this Logical Block Address is not likely to be accessed again in the near future and that the target can remove it from its local cache

READ (16) Command FUA and FUA_NV – Force Unit Access (Non-Volatile) Used to override the targets internal caching and force it to access the media

READ (16) Command Logical Block Address (LBA) The address on the medium that the initiator would like to read Internally, the target converts the LBA to a (Cylinder, Sector, Head) address – Transparent to the computer system and user

READ (16) Command Transfer Length Specifies the length in contiguous logical units to be transferred in this command Logical unit is typically 512-bytes (1 Block)

READ (16) Command Restricted for MMC-4 Used for the MMC-4 Version of this command

READ (16) Command Group Number Used to collect performance statistics of different groups of commands Application A’s performance vs. Applications B’s performance

READ (16) Command Control Standard SCSI Control Bytes Defined in SAM-4 Has a consistently defined meaning across all commands\ Found only on fixed-length CDB commands

WRITE (16) Command OP Code: 8Ah Specifies the command WD Protect: Various settings regarding the write protection checking

WRITE (16) Command DPO – Disable Page Out Bit Used to optimize caching onboard the target device Set to 1 tells the target that data at this Logical Block Address is not likely to be accessed again in the near future and that the target can remove it from its local cache

WRITE (16) Command FUA and FUA_NV – Force Unit Access (Non-Volatile) Used to override the targets internal caching and force it to access the media

WRITE (16) Command Logical Block Address (LBA) The address on the medium that the initiator would like to read Internally, the target converts the LBA to a (Cylinder, Sector, Head) address – Transparent to the computer system and user

WRITE (16) Command Transfer Length Specifies the length in contiguous logical units to be transferred in this command Logical unit is typically 512-bytes (1 Block)

WRITE (16) Command Restricted for MMC-4 Used for the MMC-4 Version of this command

WRITE (16) Command Group Number Used to collect performance statistics of different groups of commands Application A’s performance vs. Applications B’s performance

WRITE (16) Command Control Standard SCSI Control Bytes Defined in SAM-4 Has a consistently defined meaning across all commands\ Found only on fixed-length CDB commands

TEST UNIT READY Command OP Code: 00h Specifies the command Control Bits are typically zero Defined in SAM-4 Result: 6 Byte CDB consisting of entirely 0s

TEST UNIT READY Command Also: CHECK CONDITION – NOT READY – POWER ON OCCURED

INQUIRY Command OP Code: 12h Specifies the Command EVPD: Enable Vital Product Data Set to zero, the device returns standard inquiry data Set to one, enables the page code field

INQUIRY Command Page Code: Specifies the page code to return. Pages are defined in SAM-4, SPC-4, and technology specific standards Allocation Length specifies the length of inquiry data the initiator is prepared to accept in bytes

REPORT LUNS Command OP Code: A0h Specifies the command Select Report:

REPORT LUNS Command Allocation Length should be at least 16 bytes If the allocation length is insufficient to report all the LUNs on the device, the device shall report only what it is able to report

Additional Sense Codes Values returned in a Response Frame (SAS) in the event that a command could not be completed So many possible problems that a qualifier is used to expand the pool of possible returns

Additional Sense Codes Examples ASC: 0x00 ASCQ: 0x06 I/O Process Terminated ASC: 0x04 ASCQ: 0x11 Logical Unit Not Ready, Notify (Enable Spinup) Required ASC: 0x4B ASCQ: 0x03 ACK/NAK Timeout