Thursday, 16 February 2012

SCSI 101 Q&A


·         Q. 1. What does the term "SCSI" mean?
Answer: The term "SCSI" is an acronym for Small Computer System Interface. In the 1970s the name was appropriate. Today, SCSI is used for PCs, workstations, servers, mainframes, supercomputers.
·         Q. 2. What is SCSI?
Answer: The Small Computer System Interface is a high-speed, intelligent peripheral I/O bus with a device independent protocol. It allows different peripheral devices and hosts to be interconnected on the same bus. Depending on the type of SCSI, you may have up to 8 or 16 devices connected to the SCSI bus. The number of devices can be dramatically expanded by the use of LUNs (Logic Unit Numbers). There must be at least one initiator (usually a host) and one target (a peripheral device) on a bus. There is a large variety of peripheral devices available for SCSI, including hard disk drives, floppy drives, CDs, optical storage devices, tape drives, printers and scanners to name a few. There are many implementations of SCSI starting with SCSI-1 to SCSI-2 to SCSI-3 including, Narrow, Wide, Fast, Ultra, Ultra-2 and Ultra160 SCSI. The SCSI specifications are approved and issued by ANSI and are developed by the X3T10 SCSI Committee.

·         Q. 3. What can I do with SCSI?
Answer: SCSI provides a high-speed, intelligent interface that allows an easy connection for up to 16 devices (8 devices for Narrow SCSI) on a single bus. These devices may be hard disks, floppy disks, CDs, tape drives, printers and scanners to name a few. Peripherals may be mounted in the computer or in an external enclosure. Total SCSI cable length is dependent on the type of SCSI.
·         Q. 4. I seem to remember hearing the term SASI in the past. What is it?
Answer: SASI is the acronym for Shugart Associates System Interface. It was developed in the 1970s by Shugart, at the time a dominant manufacturer of disk drives. It was meant to be an intelligent interface for disk drives only. Offering only 8-bit (Narrow), single-ended, asynchronous operation, by today's standards it was very slow (1.5 Mbytes per second). The standard connector for in-cabinet cabling is the non-shielded, 50-pin, female, low-density, connector having two rows of 25 pins each on 0.1 inch spacing. The standard connector for cabling outside the cabinet is the shielded, 50-pin, male, "centronics" type connector. In 1981 Shugart and NCR submitted SASI to the ANSI committee X3T9.2 as an open architecture I/O bus for disk drives. ANSI accepted the project, changed the name to Small Computer System Interface and added some major improvements to the specification. It was approved in 1986 by ANSI as document IEEE X3.131-1986. Today it is called SCSI-1. SASI is now long obsolete and, although many aspects of SCSI were backward compatible with SASI, it is very problematic.
·         Q. 5. Does SCSI work in both directions?
Answer: Yes. SCSI is a bi-directional bus and will not work at all if it does not work in both directions. That also means that SCSI expanders such as a single-ended (SE) to differential converter will work as a SE to differential or a differential to SE converter. In other words, it does not make any difference if the initiator is on the SE side or on the differential side of the expander.
·         Q. 6. What are the differences between SCSI-1 and SCSI-2?
Answer: The initial implementation of SCSI (now called SCSI-1) was designed primarily for Narrow (8-bit), single-ended, synchronous or asynchronous disk drives and was very limited relative to today's SCSI. It includes synchronous and asynchronous data transfers at speeds up to 5 Mbytes/sec. Only passive termination was defined. It did not include definitions of a device independent interface. The standard connectors are the familiar 50-pin, female, low-density (0.1 inch spacing), non-shielded connector (now termed the non-shielded Alternative 2, A-connector) for internal wiring and the equally familiar 50-pin, male, shielded "centronics" type connector for external wiring (now termed the shielded, Alternative 2, A-connector). This "centronics" type connector is frequently called the "SCSI-1 connector". 5 Mbyte/sec SCSI is termed "Slow" SCSI. SCSI cable lengths may be up to 6 meters (20 ft) for Slow SCSI. Even before X3.131-1986 was officially accepted by ANSI, the SCSI committee went to work on improving it.

Released by the ANSI Committee as specification IEEE X3.131-1994, SCSI-2 is also a complete, stand-alone document. Arguably the most significant addition of SCSI-2 is the expanded definition of the common command set (CCS) providing a common software interface for all disk drives and many peripherals other than disk drives. SCSI-2 defines the differential interface and the 16-bit and 32-bit "Wide" data bus; doubles data throughput to 10 Megatransfers per second (called "Fast" SCSI), which translates to 10 Mbytes/sec for Narrow (8-bit) SCSI and 20 Mbytes/sec for Wide (16-bit) SCSI; adds the smaller 50-pin, high density, micro-D connector (termed Alternative 1, A-connector); and terms all 50-pin cables "A" cables. This 50-pin high-density connector is commonly called the "SCSI-2 connector". SCSI-2 recommends active terminators in place of passive terminators for the single-ended bus. Backward compatible to SCSI-1. Note that in SCSI-2 the 16-bit bus requires two cables (one "A" cable and one "B" cable) to make a connection. This seriously limited growth of the Wide bus. SCSI-2 maximum recommended single-ended SCSI cable length is up to 3 m (10 ft) for Fast SCSI. Differential cable length is 25 m (82 ft) for Fast or Slow SCSI.
·         Q. 7. What are the differences between SCSI-2 and SCSI-3?
Answer: SCSI-3 changes the complete SCSI document structure and is no longer one document but a collection of documents, each with its own revision number. Some of these documents are the SCSI Primary Command (SPC) set layer, SCSI Block Commands (SBC) for hard disk interface, SCSI Stream Commands (SSC) for tape drives, SCSI Controller Commands (SCC) for RAID arrays, Multimedia Commands (MMC) , Media Changer Commands (MCC) and the SCSI Enclosure Services (SES) commands. For a complete overview see the SCSI Architecture Model (SAM) on the T10 Committee Website.

Let's take a look at some other important SCSI-3 documents:

§         SPI
The SCSI Parallel Interface (SPI) defines the electrical signals and connections for parallel SCSI. A very quickly adapted new feature defined in SCSI-3 is the 68-pin, high density, micro-D connector for 16-bit Wide SCSI (termed the Alternative 3, P-connector). The SCSI specification terms cables with this connector the "P" cable. This connector eliminates the necessity of using two cables for 16-bit SCSI and gave a tremendous boost to the growth of Wide SCSI. It is commonly referred to as the "SCSI-3" connector.

There are several revisions of the SPI document. SPI includes Fast SCSI data transfer speeds up to 10 Megatransfers (20 Mbytes/sec for 16-bit). The Ultra SCSI (Fast-20) modification of SPI includes doubling the data throughput to 20 Megatransfers/sec (40 Mbytes/sec for 16-bit). Ultra SCSI speeds reduce the maximum single-ended cable length to 1.5 m (5 ft) with 5 or more devices and 3 m (10 ft) for systems having up to 4 devices. The maximum recommended differential cable length remains at 25 m (82 ft).

§         SPI-2
SPI-2 doubles bus speed again to the Ultra 2 (Fast-40) SCSI data throughput of 40 Megatransfers/s (80 Mbytes/s for 16-bit). To attain this speed, a new electrical interface is defined. This interface uses 3 V logic instead of TTL voltage levels and is known as Low Voltage Differential (LVD) SCSI. The older TTL based differential SCSI is now called High Voltage Differential (HVD) and it is not compatible with LVD signals. Most LVD device interfaces are designed as LVD/SE.

Multimode operates at the LVD voltage levels and bus speed as long as all devices connected are LVD. Connecting a single-ended device to a multimode LVD bus causes all LVD/SE devices to switch to the single-ended interface. It will then operate at a maximum of 20 Megatransfers/sec (40 Mbytes/sec for 16-bit) with single-ended cable length limitations. Connecting an HVD device to an LVD bus will cause the bus to shut down. LVD cable length is specified as 12 m (40 ft). For a single initiator-single target application this length may be increased to as much as 25 m (82 ft). Note that single-ended signals cannot be used for bus speeds greater than Ultra SCSI (Fast-20).

The low power requirements of the LVD interface allow the differential drivers to be included on the interface ASIC. Not having to place external driver chips on the PCB reduces the amount of PCB real estate required and reduces the cost of the board design.

Another new feature of SPI-2 is the SCSI Interlock Protocol (SIP) which defines the parallel command set. Also, SPI-2 adds two new SCSI connectors:
§         The 80-pin Single Connector Attachment (SCA-2) connector (termed the non-shielded Alternative 4, P-connector) that includes the 16-bit SCSI signals as well as power for the peripheral. This connector is designed for hot swapping of peripherals in SCSI backplanes.
§         The Very High Density Cable Interconnect (VHDCI) connector (termed the shielded Alternative 4, P-connector) is a small connector that allows as many as four separate 68-pin Wide SCSI connectors to be placed on one standard width PC backplate. Some of the newer LVD host adapters include this connector.

SPI-2 is a complete stand-alone document for all parallel interfaces up to Ultra 2 (Fast-40) SCSI and does not refer to older documents. To do this, it has incorporated the 50-conductor "A" cables defined in SCSI-2 and the 68-conductor "P" cables defined in the original SPI document.

§         SPI-3
SPI-3 again doubles the SCSI bus speed to Ultra 3 (also known as Ultra160 and Fast-80) providing SCSI bus speeds up to 80 Megatransfers/sec (160 Mbytes/sec for 16-bit). For this speed, clocking on both the rising and falling edges of the REQ and ACK clock is required. This is called Double Transition (DT) clocking and is defined for the 16-bit bus only.

SPI-3 also includes a 32-bit CRC (Cyclic Redundancy Check) for better data security and Domain Validation. Domain Validation is new for peripheral buses. Basically, SCSI Domain Validation will not accept a negotiated data throughput speed until a validation test is performed. To perform this test, the initiator sends out a Write Buffer command to the target at the full data throughput. The initiator will then read the data back to see that it is correct. If it is not, the initiator will switch to the next lower speed and perform the test again. When the test passes, that speed is compatible with both the initiator and the target and is used for data transfers between the two devices.

SPI-3 is also a complete document defining parallel SCSI interfaces up to 80 Megatransfers/sec and does not refer to previous SCSI documents. SPI-3 obsoletes HVD and 32-bit data bus designs. For specifications of the HVD and 32-bit bus, refer to SPI-2. The maximum cable length for Ultra 3 SCSI is 12 m (40 ft) or 25 meters (82 ft) for point-to-point applications.

Ultra 160 (U160/m) is a sub-set of Fast-80 that includes Double Transition clocking, CRC and parts of Domain Validation. It is not yet a recognized form of SCSI.
§         EPI
For Paralan a very significant development released in the Enhanced Parallel Interface (EPI) is the documentation of SCSI Expanders, Bridging Expanders, Switches and some connectors not otherwise documented. This finally incorporates into the SCSI specification the types of products that Paralan has been designing, marketing and selling for years. EPI also describes the design of SCSI systems, defining the electrical specifications for cable lengths and loads. Also included is a description of how to work with both Wide (16-bit) and Narrow (8-bit) devices on the same SCSI bus.

·         Q. 8. What is the difference between single-ended and differential SCSI?
Answer: Single-ended and differential are two methods of placing SCSI signals on the cabling. Single-ended uses one wire driven against ground and the signal is the voltage difference between that wire and ground. The differential interface drives two wires. The signal is the voltage difference between the two wires. Single-ended and differential are not directly compatible. (It should be noted that HVD and LVD are also not directly compatible). They can be interconnected by the use of a SCSI expander called a Single-ended to Differential Converter. Single-ended cable lengths are 6 to 1.5 meters (20 to 5 ft), decreasing with increasing data throughput, while differential (HVD and LVD) offers cable lengths to 25 meters (82 ft), regardless of the speed of the bus.
·         Q. 9. What is meant by "Narrow" SCSI?
Answer: Narrow SCSI is the term that is used for 8-bit SCSI. It can usually be identified by 50-pin connectors.
·         Q. 10. What is meant by "Wide" SCSI?
Answer: Wide SCSI is the term that is used for 16-bit SCSI. It can usually be identified by 68-pin connectors. From SCSI-2 until the SPI-3 document in SCSI-3, this term also applied to 32-bit SCSI. SPI-3 obsoleted the 32-bit SCSI bus.(cntd..)

1 comment: