Printer Friendly
The Free Library
5,667,288 articles and books
Member login
User name  
Password 
 
Join us Forgot password?

The challenges of testing SATA and SAS: part 3: testing wide SAS.


One of the first obstacles to testing SAS (1) (SAS Institute Inc., Cary, NC, www.sas.com) A software company that specializes in data warehousing and decision support software based on the SAS System. Founded in 1976, SAS is one of the world's largest privately held software companies. See SAS System.  devices is getting an analyzer connected into the point-to-point bus. The similarities between SAS and FC have made it possible to borrow from Fibre Channel techniques, but making sure the analyzer can adapt may still require special cables.

SAS specifies four different types of cables and connectors. There are single-link, dual-link and four-link cables designed for use inside an enclosure. There is also a four-link connector specified for external use, such as connecting a server to an external RAID box. Since SAS analyzers today use the single-link connector, connecting an analyzer to a dual-link or four-link bus requires special adapter cables. Fortunately, these are the same cables used in standard SAS storage applications so they are starting to become available from cable manufacturers.

[FIGURE 1 OMITTED]

The single-link connector (Fig. 1) is the same as the SATA (Serial ATA) A serial version of the ATA (IDE) interface, which has been the de facto standard hard disk interface for desktop PCs for more than two decades. The original Parallel ATA (PATA) interface was launched in 1986.  connector and is manufactured by many different companies. The dual-link connector (Fig. 2) is new and physically similar to the SATA/SAS single-link connector, but adds additional pins on the unused opposite side, providing for a redundant set of connections between the drive and host in case the primary physical connection goes bad.

SCSI SCSI
 in full Small Computer System Interface

Once common standard for connecting peripheral devices (disks, modems, printers, etc.) to small and medium-sized computers. SCSI has given way to faster standards, such as Firewire and USB.
 marketing departments have always maintained that a significant differentiator between ATA (1) (AT Attachment) The specification for IDE drives. See IDE.

(2) See analog telephone adapter.

ATA - Advanced Technology Attachment
 and SCSI drives is reliability, and the redundancy of the new dual-link connector for SAS is further proof of this difference going forward. The internal four-link connector (Fig. 3) is just like a very-wide SATA connector. RAID applications inside the box will use the internal four-link connector. The external four-link connector is based on the same MicroGiga connector used by 4x Infiniband, but uses jackscrews instead of the quick-release latches that Infiniband cables use. External four-link SAS applications include expanders and RAID boxes.

Testing "What If" Scenarios

SAS provides an unusual level of flexibility when it comes to some of its handshaking Signals transmitted back and forth over a communications network that establish a valid connection between two stations.

1. handshaking - Predetermined hardware or software activity designed to establish or maintain two machines or programs in synchronisation.
 using primitives. Table 1 shows some areas where SAS state machines are more flexible than their FC equivalents.

The flexibility of SAS primitives makes it difficult to verify that a SAS device is robust enough to support the primitives, no matter when they occur. Typically, those designing SAS silicon will make or buy the simulation code they need to verify the RTL (Register Transfer Level) A high-level hardware description language (HDL) for defining digital circuits. The circuits are described as a collection of registers, Boolean equations, control logic such as "if-then-else" statements as well as complex event sequences;  (Register Transfer Level) code, ensuring that the different scenarios have been verified.

[FIGURE 2 OMITTED]

One company that develops and sells SAS protocol verification tools is Perfectus (Santa Clara Santa Clara, city, Cuba
Santa Clara (sän`tä klä`rä), city (1994 est. pop. 217,000), capital of Villa Clara prov., central Cuba.
, CA). Their verification engine generates the packets and primitives in software to test all the possible timing and sequence possibilities. The Perfectus SAS verification tests are also translated to the Data Transit PacketMaker hardware for verification of the final device--not just a simulation. Figure 4 shows the sequence for verifying RTL prior to finalizing the hardware, and later verifying the final hardware with the same tests.

[FIGURE 3 OMITTED]

Perfectus tests are categorized cat·e·go·rize  
tr.v. cat·e·go·rized, cat·e·go·riz·ing, cat·e·go·riz·es
To put into a category or categories; classify.



cat
 according to according to
prep.
1. As stated or indicated by; on the authority of: according to historians.

2. In keeping with: according to instructions.

3.
 the different protocol layers of PHY See physical layer and physical. , Link, Transport, and Command. They give the developer the ability to adjust a variety of test 'knobs' which vary the timings and occurrences of SAS Errors, OOB OOB Out-Of-Band
OOB Out-Of-Bounds
OOB Old Orchard Beach (Maine)
OOB Out of Body (experience)
OOB Order Of Battle
OOB Out of Box (software implementation projects) 
, Primitives, and Frames within legal specifications, or beyond specifications if the user chooses. The test case generation is coupled with a protocol checker check·er  
n.
1.
a. One, such as an inspector or examiner, that checks.

b. One that receives items for temporary safekeeping or for shipment: a baggage checker.

2.
, which analyzes a device's response to the generated traffic to determine if the device followed protocol. The protocol checker is implemented in software and verifies both the simulated results of the pre-silicon design, and the actual results of the final hardware as received by the PacketMaker.

[FIGURE 4 OMITTED]

Table 2 shows the tests performed in each protocol category by the combination of the Perfectus verification engine and the Data Transit PacketMaker.

[FIGURE 5 OMITTED]

Obstacles to Analyzing Wide SAS

Wide SAS uses multiple links in order to handle multiple commands simultaneously. In this multi-link environment, each link carries the data for a different command. The links cannot be aggregated to achieve higher bandwidth for a single command, but multi-lane performance gains can be achieved at the application layer when a host adapter Also called a "controller" or "host bus adapter," it is a device that connects one or more peripheral units to a computer. It is typically an expansion card that plugs into the bus. IDE and SCSI are examples of peripheral interfaces that call their controllers host adapters. See host.  breaks a data request into multiple commands, using a different link for each command. Thus, the data can be sent down multiple lanes simultaneously even though commands can only be issued on one lane at a time.

Certain features of wide SAS make it impossible to analyze each link as a distinct SAS bus using a single-link SAS analyzer. On a wide SAS bus, a command will be issued on whichever link is available, rather than waiting for a specific link, which would add more latency.

One of the difficulties of analyzing commands on a wide SAS bus is that the connection on one link can be closed before the data transfer for that command is complete, such as when the drive empties its buffer and closes the connection in order to free-up the link while it refills its buffer.

In this example, the original link may be busy when the drive is ready to continue, so a different link is opened in order to continue the transfer. Thus, the command was executed using different links at different times, preventing a single-link analyzer from capturing all the data associated with a command.

Special analyzers, such as the Data Transit 4x-SAS Analyzer (Fig. 5), can simultaneously capture and correlate all the links, putting commands back together even if they used multiple links before completing. The following trace display (Fig. 6) shows how the analyzer correlates the data from multiple links into a single display. The display allows the user to display the traffic in a time-ordered, command-ordered, or connection-ordered format.

DVDs, CD-ROMs on SAS/SATA Bus

Hard drives supporting SATA are shipping in volume, but CD and DVD drives DVD drives come in a variety of speeds and options. The original drive (1x) transferred data at 1.35MB per second. By doubling the spindle speed (RPMs) for 2x drives, the transfer rate increased to 2.7MB/sec and has been increasing ever since.  are just now in development. The new CD/DVD drives for SATA will continue to use the ATAPI (AT Attachment Packet Interface) The specification for ATA (IDE) tape drives and CD-ROMs. See IDE.

ATAPI - AT Attachment Packet Interface
 protocol as they did on parallel ATA See PATA. , even though ATAPI adds a significant amount of protocol complexity.

The ATAPI protocol is necessary for compatibility with existing host drivers, just as it was necessary when the first SCSI CD-ROM drives CD-ROM drives, which today typically means a CD-RW drive that is a combo CD-ROM, CD-R and CD-RW drive, come in a variety of speeds. The original drive (1x) transferred data at 150KB per second.  made the transition to the low-cost parallel ATA bus. The history of CD and DVD DVD: see digital versatile disc.
DVD
 in full digital video disc or digital versatile disc

Type of optical disc. The DVD represents the second generation of compact-disc (CD) technology.
 interfaces is interesting because it demonstrates how much protocol baggage current devices must carry in the name of driver compatibility.

The original CD-ROM drives were SCSI devices, and using them on a PC required the purchase of a SCSI host adapter The controlling electronics for SCSI contained on a printed circuit board that plugs into the computer's motherboard. A SCSI host adapter is often called a "SCSI controller." See SCSI. . Later, in order to eliminate the extra cost of the host adapter, the ATAPI specification was added to the ATA standard as a method for transmitting SCSI commands across ATA hardware by encapsulating or packetizing much of the SCSI protocol into standard ATA data transfers.

[FIGURE 6 OMITTED]

CD-ROM drives were then able to use their tried-and-true SCSI command set on the pervasive PC architecture while eliminating the cost of a SCSI host adapter. The encapsulation (1) In object technology, the creation of self-contained modules that contain both the data and the processing. See object-oriented programming.

(2) The transmission of one network protocol within another.
 adds overhead, but for optical drives in the PC market, price is much more important than performance.

[FIGURE 7 OMITTED]

Figure 7 shows the interface migration of low-cost CD-ROM drives from SCSI to ATA to SATA. Today, even though SATA is already a packetized interface and it would be a much simpler protocol to discontinue the encapsulation of SCSI commands into ATA data transfers, the ATAPI encapsulation will still be used so that the OS and its drivers won't see a difference between a Parallel ATA DVD drive and a SATA DVD drive.

Protocol Analyzers used with the new generation of SATA optical drives must support the ATAPI protocol with special decoding de·code  
tr.v. de·cod·ed, de·cod·ing, de·codes
1. To convert from code into plain text.

2. To convert from a scrambled electronic signal into an interpretable one.

3.
 and triggering functions. In the future, CD/DVD drives designed for performance instead of low cost will become available with a SAS interface instead of ATAPI over SATA. Figure 8 shows a state listing of an ATAPI protocol SCSI command encapsulated into a SATA data transfer.

Conclusion

SAS presents a number of special challenges and obstacles to engineers working with this new storage technology: Cabling and the multi-lane data paths characteristic of SAS being just two of them. Overcoming these challenges takes knowledge and the right test tools.

[FIGURE 8 OMITTED]
Table 1

                 Feature                           SAS

Primitives start with pos or neg disparity  YES

Allows deletable primitives in frames       YES-ALIGNs

Allows credit primitives in frames          YES-R--RDYs

Handshake primitives in frames              YES-ACK, NAK

Zero primitives between frames              SOF can follow EOF

                 Feature                             Fibre Channel

Primitives start with pos or neg disparity  NO-Must start with neg
                                            disparity

Allows deletable primitives in frames       IDLE not allowed in Frames

Allows credit primitives in frames          R--RDY not allowed in Frames

Handshake primitives in frames              ACK Frame instead of
                                            primitive

Zero primitives between frames              Must transmit 6 IDLEs
                                            between

Table 2

      PHY               LINK           TRANSPORT

OOB Signals       Primitives        FIS construction
SASRESET,                           and decomposition
SASINIT and
SASWAKE

Host Phy          Disparity         All FIS types
Initialization                      transmission and
State Machine                       reception checking

Device Phy        Data and CRC      Host and Device
Initialization                      Transport State
State Machine                       Machines

Power Management  Link Idle,        Transport Layer
State Machines    Transmit,         Error Handling
(Host/Device)     Recieve and
                  Power Management
                  State Machines

Phy Layer Error   Link Layer Error
Handling Testing  Handling Testing

      PHY             COMMAND

OOB Signals       Power-on,
SASRESET,         Deviceidle and
SASINIT and       Reset protocol
SASWAKE

Host Phy          PIO & DMA data-in
Initialization    and data-out
State Machine     protocol

Device Phy        Read and Write
Initialization    DMA-queued
State Machine

Power Management  Command Layer
State Machines    Error Handling
(Host/Device)

Phy Layer Error
Handling Testing


Parts 1 and 2 of this article appeared in the January and February issues of CTR See click-through rate. . To obtain copies of CTR, please contact the circulation dept.: renee_hieblinger@wwpi.com

Dale Smith Dale Smith may refer to:
  • Dale Smith (poet), poet
  • Paul Dale Smith, playwright and author known for his work on Doctor Who spin-offs
  • Dale Smith (The Bill), a fictional character on the television series The Bill
 is CTO (Chief Technical Officer) The executive responsible for the technical direction of an organization. See CIO and salary survey.  and founder of Data Transit Corporation (San Jose San Jose, city, United States
San Jose (sănəzā`, săn hōzā`), city (1990 pop. 782,248), seat of Santa Clara co., W central Calif.; founded 1777, inc. 1850.
, CA)

www.datatransit.com
COPYRIGHT 2004 West World Productions, Inc.
No portion of this article can be reproduced without the express written permission from the copyright holder.
Copyright 2004, Gale Group. All rights reserved. Gale Group is a Thomson Corporation Company.

 Reader Opinion

Title:

Comment:



 

Article Details
Printer friendly Cite/link Email Feedback
Title Annotation:Connectivity; Serial Adapted SCSI
Author:Smith, Dale
Publication:Computer Technology Review
Geographic Code:1USA
Date:Mar 1, 2004
Words:1594
Previous Article:Transitioning to SAS technology: a comprehensive comparison between SAS and parallel storage.(Connectivity)(Serial Attached SCSI)
Next Article:Data protection strategies: are they too complex?(Storage Management)
Topics:



Related Articles
SATA vs. PATA: the reality of Serial and Parallel ATA. (Serial ATA).
Engineering challenges to storage system protocols: diagnosing problems involving multiple protocols presents complex engineering...
Serial attached SCSI and serial ATA seek their levels.(Storage Networking)(Small computer system interface)(Advanced Technology Attachment)
Transitioning to SAS technology: a comprehensive comparison between SAS and parallel storage.(Connectivity)(Serial Attached SCSI)
PMC-Sierra announces SAS expander family for server storage applications.
SAS: reinventing flexible storage in the enterprise.(SCSI Trade Association)(Serial Attached SCSI)
SAS/SATA plugfest.(Connectivity)
SCSI finally gains serial attachment [SAS] ... after decades of steady progress.(HOT New Technologies)(Small Computer System Interface)
SATA opens its doors to tape.(Disaster Recovery & Backup/Restore)(Serial Advanced Technology Attachment (hard disk interface) )
SAS I/O performance: unprecedented flexibility in I/O bandwidth selection.

Terms of use | Copyright © 2009 Farlex, Inc. | Feedback | For webmasters | Submit articles