Académique Documents
Professionnel Documents
Culture Documents
* SCSI is a Block I/O protocol. The Initiator always sends the command, reads or
writes data blocks to the Target and receives a final Response
* SCSI protocol layer sits between the operating system and the peripheral
resources, it has different functional components
The bus represents one of several potential SCSI interfaces installed in the host,
each supporting a separate string of disks.
The target represents a single disk controller on the string. And the LUN
designation allows for additional disks governed by a controller � for example, a
RAID device.
SCSI Operation
--------------
SCSI specifies three phases of operation
* Command � send the required command and parameters via a Command Descriptor
Block (CDB)
* Data � Transfer data in accordance with the command
* Response � Receive confirmation of command execution
Every communication between SCSI Initiator and SCSI Target is formed by sequences
of events called bus phases. Each phase has a purpose and is linked to other phases
to execute
SCSI commands and transfer data and messages back and forth.
The majority of the SCSI protocol is controlled by the SCSI Initiator. The SCSI
Target is usually passive and waits for a command.
Only the SCSI initiator can initiate a SCSI operation, by selecting a SCSI Target
and sending a CDB (Command Descriptor Block) to it.
If the CDB contains a Read command, the SCSI Target moves its heads into position
and retrieves the data from its disk sectors. This data is returned to the SCSI
Initiator.
If the CDB contains a Write Command, the SCSI Target prepares its buffers and
returns a Xfer- Rdy. When the SCSI Initiator receives Xfer-Rdy it can commence
writing data.
Finally, when the operation is complete, the SCSI Target returns a Response to
indicate a successful (or unsuccessful) data transfer.
-----
The Logical Block Address is an absolute address of where the first block should be
written (or read) on the disk.
LBA 00 is the first sector on the disk volume or LUN, LBA 01 is the second sector
and so on, until we reach the last sector of the disk volume or LUN.
When the CDB is sent to a block device (Disk), blocks are always 512 Bytes long.
The Transfer Length contains the number of 512 Byte blocks to be transferred.
When the CDB is sent to a streaming device (Tape), the block length is negotiated.
The Transfer Length contains the number of blocks to be transferred.
CDBs can be different sizes � 6Byte CDB, 10 Byte CDB, 12 Byte CDB, 16 Byte CDB etc.
to accommodate larger disk volumes, or transfer lengths. 10 Byte CDBs are common
SCSI Commands
-------------
The following commands are of particular interest:
- REPORT LUNS How many LUNs do you have?
- INQUIRY What device are you?
- TEST UNIT READY Is the LUN available?
- REPORT CAPACITY What size is each LUN?
Traditional storage technologies, such as SCSI, are designed for controlled, local
environments.
They support few devices and only short distances, but they deliver data quickly
and reliably.
Traditional data network technologies, such as Ethernet, are designed for chaotic,
distributed
environments. They support many devices and long distances, but delivery of data
can be
delayed (Latency)
FC combines the best of both worlds. It supports many devices and longer distances,
and it
provides reliable and efficient data delivery with high throughput and low latency.
Like SCSI, Fibre Channel is a Block I/O protocol, delivering data blocks (usually
512 Bytes
long) between devices in the same Fabric.
Point-to-Point
--------------
* Exactly two FC ports connected together. Both devices have exclusive access to
the full link bandwidth
Arbitrated Loop
* Up to 126 FC ports connected together on a Private Loop (not connected
to a FC Switch)
* Up to 127 FC ports connected together on a Public Loop (connected via
a FL port on a FC Switch)
* All devices share the available bandwidth around the loop, therefore
a practical limit might only be 20 or so devices.
* The topology of choice for FC SANs. Each connected device has access to full
bandwidth on its link through the switch port it is connected to.
* The FC SAN can be expanded by adding more switches and increasing the number of
ports for connected devices.
* The FC 24 bit addressing scheme allows for potentially 16,500,000 devices to be
connected. A realistic number is a few thousand. This is because there can only be
a
maximum 239 switches in a single fabric and most switches today have a small
number of ports each.
* Each FC switch must provide �services� for management of the SAN. These
services include a Name Server, Domain Manager, FSPF Topology Database, Zoning
Server, Time Server etc.