This invention relates to communications over Storage Area Networks (SANs), and more particularly, to the encapsulating of Serial Advanced Technology Attachment (SATA) Frame Information Structures (FISs) into Fibre Channel (FC) frames for transmission over FC SANs that utilize SATA disk drives.
Conventional FC SANs. FC is a serial transport protocol that was developed for carrying other transport protocols. In conventional SANs, FC carries Small Computer System Interconnect (SCSI), which is a parallel protocol. In other words, parallel SCSI commands are encapsulated within FC frames and transported over FC links in FC SANs.
FC-ATA SANs. FC drives offer the best performance, but are expensive. Therefore, less expensive (but lower performance) Advanced Technology Attachment (ATA) drives of the type commonly used in desktop or notebook computers have been used in place of FC drives, or along with FC drives in what is referred to as tiered storage. The ATA drives may be Parallel Advanced Technology Attachment (PATA) or Serial Advanced Technology Attachment (SATA) drives. FIG. I illustrates a SAN in which one of the disk drive enclosures 108 contain PATA drives 120 rather than FC drives. PATA drives require a FC-to-PATA bridge 116, which is relatively expensive and effectively makes the PATA disk drives 120 appear as SCSI drives to the RAID controller 104. In other words, the RAID controllers 104 send FC encapsulated SCSI commands to the disk drive enclosures, and receive FC encapsulated SCSI commands from the disk drive enclosures, and the conversion between FC and PATA occurs in the bridge 116, transparent to the RAID controllers 104 and the rest of the SAN 100. Because PATA drives are different from FC drives in terms of interfaces, error recovery and discovery, FC-to-PATA bridges are designed to be specific to a particular type of PATA drive. As a consequence, every time a new PATA drive is developed, the FC-to-PATA bridge may require modification.
In disk drive technology, as well as in transport technology, there are speed and cable distance benefits to utilizing serial protocols rather than parallel protocols. SATA drives, the serial counterpart to PATA drives, are therefore now being contemplated as an upgrade to PATA. SATA was envisioned for consumer applications.
SAS-SATA SANs. FC, as described above, is a serial transport protocol that has historically been used for carrying the SCSI protocol in enterprise applications over large connectivity spaces. Serial Attached SCSI (SAS) is a relatively new serial protocol intended to replace parallel SCSI within an enterprise host or computer. Both FC and SAS use 8b10b encoding and similar ordered sets, and both are high performance and expensive. SAS includes several protocols. One such protocol is the Simple Management Protocol (SMP), a protocol for device-to-device management that enables each entity to communicate with other entities regarding management aspects.
To take advantage of lower cost SATA drives, SATA drives have been utilized alongside higher cost, higher performance SAS drives in SAS networks (a SAS network including the initiator, target, and any attached expander devices). As mentioned above, tiered storage is the concept of having different types of drives in the same network (e.g. some 73 GByte FC drives and some 200-500 GByte SATA drives), each for a different purpose.
Unlike FC, which is a loop technology where drives share a common infrastructure, SAS is a point-to-point technology. SAS employs a shared infrastructure with the ability to create a point-to-point connection between two devices through which data may be transferred without interruption. Similar to FC, SAS goes through a discovery process where the first SAS entity that is discovered is the SAS expander 208. The number of ports in the SAS expander 208 is also discovered. Each port is then discovered in turn by the initiator, and the device connected to each port is determined (e.g. a SAS device). For example, if a SAS discovery ordered set is sent to a SAS drive, the SAS drive returns an affirmative response indicating that it is a SAS drive. However, if the SAS ordered set is sent to a SATA drive, nothing is returned. Similarly, if a SATA discovery ordered set is sent to a SATA drive, the SATA drive returns an affirmative response, indicating that it is a SATA drive. From that point forward, the initiator communicates with the device as a SATA device.
In the simplified ladder diagram of
Because of the reliability, speed and cable distance benefits inherent in FC, and the lower cost of SATA drives, there is a need to utilize SATA drives in FC SANs that have historically utilized SCSI drives. Conventional solutions for utilizing SATA drives in FC SANs provide a conversion interface, or bridge, between the FC link and the SATA device. These conversion interfaces terminate all FC exchanges and initiate corresponding SATA exchanges at or near the targets. These bridging solutions require a bridge unit per SATA device or a bridge per SATA enclosure and as a result become a prohibitively expensive solution in a SAN environment. In addition, all error cases must be dealt with at or near the drive level. In the other direction, SATA exchanges are also terminated and FC exchanges are created and sent to the FC initiator. Because the FC to SATA translation is performed independently at each SATA drive or enclosure, there is no clean way of performing this conversion and the approach is prone to performance and interoperability issues. Error recovery in FC is also much different than SATA. The interface must now deal with the differences, which adds complexity and additional cost to the system.
Therefore, there is a need to be able to utilize SATA drives while preserving the FC infrastructure and FC transport to the greatest extent possible to minimize the changes needed to legacy FC SANs. There is a further need to move the translation and protocol handling into the RAID controllers, which is a much more cost effective solution because the RAID controllers can perform the protocol translation for a large number of drives.
Embodiments of the present invention are directed to enabling SATA drives to be utilized in FC SANs. As mentioned above, SATA drives are also now being contemplated as an upgrade to PATA in FC SANs. FC remains advantageous as a transport protocol because it can be transmitted over long distances (thousands of meters) compared to SATA (one meter), and 126 drives can be addressed per FC loop or greater than 16 million drives in FC fabrics. Therefore, to send data to a SATA drive over a FC SAN, a host sends SCSI commands encapsulated in FC frames over a standard FC link to a Fibre Channel Attached SATA Tunneling (FAST) enabled RAID controller, where the SCSI commands are de-encapsulated from the FC frames and translated to SATA FISs. The SATA FISs are then encapsulated into FC frames. The IOC that performs these functions is referred to as a FAST IOC. The SATA-encapsulated FC frames are sent to multiple disk drive enclosures over another standard FC link. The FC frames are then de-encapsulated by FAST switches in disk drive enclosures to retrieve the SATA FISs. SATA FISs are up to 8k bytes in size and FC Frames payloads are a maximum or 2k bytes. Since a SATA FIS can be larger than the maximum FC frame size, multiple frames are used to send SATA FISs as required. On the FAST switches the multiple frames are received and the SATA FIS is reconstructed and the SATA FISs are sent to the SATA drives over a SATA connection. The sequence count of each frame is incremented sequentially to identify SATA devices that are FAST-enabled by the FAST switches are referred to herein as FAST devices.
The only elements in the FC SAN which require modification to support the FAST protocol are the FAST IOC and FAST switch. Existing investments in drivers and FC infrastructure can be preserved, although in alternative embodiments the FAST IOC functionality could be implemented in the IOC's drivers. The existing FC infrastructure can remain unmodified while new SATA connect capabilities are added to the SAN.
In the following description of preferred embodiments, reference is made to the accompanying drawings which form a part hereof, and in which it is shown by way of illustration specific embodiments in which the invention may be practiced. It is to be understood that other embodiments may be utilized and structural changes may be made without departing from the scope of the preferred embodiments of the present invention.
FC-SATA SANs.
The SCSI commands 306 are then passed from the processor 326 over a custom interface 328 (which may include, but is not limited to a PCI bus) to FAST-enabled IOCs 304. The FAST IOCs 304 contain the same hardware as conventional FC IOCs, but include additional firmware 302 to allow it to handle both FC and SATA according to embodiments of the present invention. SCSI commands 306 from processor 326 are converted in SCSI-to-SATA translation firmware 308 to SATA FISs. In alternative embodiments, the SCSI-to-SATA translation may be performed by the processor 326 rather than in the FAST IOC 304. The SATA FISs are then encapsulated by FAST encapsulation firmware 312 into FC frames. In particular, each 8 kByte SATA FIS is encapsulated into four 2 kByte FC frames along with modifications to the header in the FC frames that enable the SATA-encapsulated FC frames to traverse a FC link. The FAST IOC 304 then sends the FC frames out over a FC link 346 via a FC port 344.
The FC frames are received by FAST switches 340 in disk drive enclosures 332, which are utilized instead of FC-to-SATA bridges. Because FC-to-SATA bridges are no longer required, the problem of new SATA drive types requiring reworking the FC-to-SATA bridge disappears. The drives can be presented as pure ATA throughout the SAN, while using FC as the transport. The FAST switches 340 include a FAST engine 352, which de-encapsulates the FC frames to retrieve the SATA FISs, handles initialization, sequences, exchanges, and all of the low-level FC commands and structures. Note that conventional FC switches only route frames between the initiator and target (which handle all exchanges themselves). However, because SATA drives do not utilize the concept of exchanges, the FAST switches in embodiments of the present invention are responsible for creating and terminating exchanges. The de-encapsulated SATA FISs are then communicated over a pure SATA connection 348 to the SATA drives 342.
Note that the front end devices 350 and the SAN 300 are not aware of the existence of the back end devices 338. For example, when host 330 sends SCSI data to a particular logical drive, it acts as a front-end initiator and sends the FC-encapsulated SCSI data to a virtual address associated with one of the ports 336 and a FC IOC controller 322 connected to that port 336, which acts as a front-end target. Unknown to the host 330, the processor 326 performing the RAID function identifies multiple addresses in multiple disk drive enclosures 332, and sends the SCSI data to one or more FAST IOCs 304, which act as back-end initiators. The FAST IOCs 304 translate the SCSI data into SATA FISs, encapsulate the SATA FISs into FC frames, and send the FC frames to those multiple addresses in multiple disk drive enclosures 332, which act as back-end targets. This process is referred to as virtualizing the storage. The processor 326 maintains the association between the virtual address and the addresses in the multiple disk drive enclosures, so that when a request to read that data is received from the host 330, the data can be pulled out of the multiple disk drive enclosures and sent back to the host 330.
The reverse of the above-described process is employed when a SATA drive 342 sends SATA FISs back to the host 330. Thus, when SATA FISs are to be sent from a SATA drive 342 to the RAID controller 320, the SATA FISs are sent over the SATA connection 348 to the FAST switch 340, where it is encapsulated in FC frames. The FAST switch 340 then transmits the FC frames over the FC link 346 to the RAID controller 320, where they are received by the FAST IOC 304. The FAST IOC 304 receives the FC frames, de-encapsulates the frames to retrieve the SATA FISs, and performs a SATA to SCSI translation 308 so that the RAID controller will see the target drive 342 as a SCSI device. The SCSI commands are sent to the processor 326 over PCI bus 328, which performs the RAID function and identifies the hosts (initiators) for which the SCSI data is destined. The SCSI data is then sent to the FC IOCs 322 over PCI bus 324, where they are encapsulated into FC frames and sent to the appropriate hosts over the fabric 318. The hosts then de-encapsulate the FC frames to retrieve the SCSI commands.
The benefit of performing the encapsulation/de-encapsulation and the SATA/SCSI translation in the FAST IOC 304 is that other than the addition of the FAST IOC 304, legacy RAID controllers 320 need not be changed to support SATA commands. Because the RAID function implemented by processor 326 has been extensively developed for FC drives implementing the SCSI protocol, embodiments of the present invention retain the FC link 346 between the RAID controller 320 and the multiple disk drive enclosures 332, even though the FC frames are now encapsulating SATA FISs. The conversion from FC to SATA is pushed down to the FAST switches 340 in the disk drive enclosures 332. However, in alternative embodiments, the conversion from SCSI to SATA could occur in the FAST IOCs 304 or even in the processor 326. In either case, the FAST IOCs 304 would then communicate SATA FISs to the disk drive enclosures 332 over a pure FC connection. In general, the SCSI/SATA translation and FAST encapsulation could occur anywhere on the initiator side of a FC link, while the FAST de-encapsulation/encapsulation could occur anywhere on the target side of the FC link.
A primary difference between SAS-SATA SANs described above and embodiments of the present invention is that in SAS-SATA SANs, there is a mixture of SATA FISs and SAS in the interconnect, while in the present invention, everything in the interconnect is FC. There are no SATA FISs, just FC frames with SATA FISs encapsulated within them.
In alternative embodiments of the present invention, a host may encapsulate SATA FISs in FC frames and pass these frames to a RAID controller, where the SATA FISs may either be de-encapsulated, virtualized and re-encapsulated into FC frames destined for multiple SATA drives in the back end, or simply passed through the RAID controller and sent directly to SATA drives through the FC network.
FC discovery. As illustrated in the sequence or ladder diagram of
However, initiators 502 that are FAST-compatible will then send a FAST PRLI frame 514 to the device 504, requesting the FAST characteristics of the device. It should be understood that a capability within FC referred to as a vendor-unique field may be used to identify the FAST PRLI frame 504. In alternative embodiments, a command code may be assigned to the FAST PRLI frame 504 to make it a normal FC command. Because the device 504 is a FAST device, a FAST PRLI accept frame 516 will be returned to the initiator 502, indicating to the initiator that the device is a FAST device. At this point the initiator 502 knows that if FC frames are received from a target that returned a FC PRLI accept frame 512, the frames contain encapsulated SCSI commands, and if FC frames are received from a target that returned a FAST PRLI accept frame 516, the frames contain encapsulated SATA FISs. Note that each pair of frames in
By way of comparison with SATA tunneling in SAS, the type of connection is detected is SAS during out-of-band signaling, and it is automatically configured to be either an STP or SAS interface. In SAS, the link is turned off for a period of time, and an envelope detector is used to determine periods of activity when data is being sent, and where there is inactivity, a few commands are sent, such as reinitialize (which is like a LIP in FC), wake up, power down, a signature frame is sent with device specific information, etc. This same out of band signaling is used in the embodiments of the present invention to initialize the SATA targets.
Exchange establishment. A FC exchange is a mechanism that two FC ports use to identify transactions between them. An N_Port may have multiple exchanges open simultaneously, allowing it to multiplex operations and take advantage of the periods of inactivity that occur when the other device is processing/retrieving information. For example, a RAID controller may have multiple front-end hosts asking for data. An initiator on the back end of the RAID controller (e.g. FAST IOC 304 in FIG. 3) may therefore need to request data from a number of different drives, all of which is destined for different hosts on the front end. To allow the initiator to efficiently process the response data and identify the host to which the response data is to be returned, an Originator eXchange IDentifier (OXID) is used. By looking at the OXID in the header of a FC frame being returned by a drive, the initiator knows which host to return the response data.
While the dual exchanges are open, multiple SATA-encapsulated FC frames 610 can be passed between the initiator 602 and the target 608. To tear the exchange down, the initiator 602 sends another unsolicited control frame 612 which is an empty frame that has its “last of sequence bit” asserted in the header, and the FAST switch responds with a solicited control frame 614 acknowledging receipt of the last frame in the sequence. The FAST switch is also allowed to tear down the sequence on its own initiative by sending the solicited control frame 614 to the initiator 602 with “last of sequence bit” set. The initiator 602 will respond with an unsolicited control frame 612 with “last of sequence bit” set.
Referring now to
SATA FIS exchanges.
The unsolicited data frame 804 contains a host-to-device register FIS, which indicates to the drive whether the request is a read, write, request for status, and the like. The drives have a register interface, and this register is set differently, depending on whether it is a read, a write, a request for status, and the like.
SATA provides a number of ways to perform read and write operations. One way is PIO. Another way is Direct Memory Access (DMA) (
Frame definitions. As mentioned above, following initialization, the initiators will begin discovery of all devices in the configuration. This discovery begins with an N_Port login, or PLOGI, which is required by the standards. The PLOGI allows two N_Ports (the initiator and the target) to establish a session and exchange identities and service parameters. Table 1 shows the frame format of the PLOGI as well as the expected values for the fields. The values shown in the table are exemplary and for reference only. Note that the node name and port name are generated by the FAST switch using the switch serial number stored in an EEPROM and the port number of the SATA drive being emulated.
For PLOGI accept frames from targets to initiators, note that the following table shows the PLOGI response to a PLOGI. XX in Table 2 below is used for undefined. entries per the FC standard. Those items listed as “Same as PLOGI” will use the same value provided in the PLOGI.
For PRLI (FCP-2) frames from initiators to targets, note that the PRLI is second phase of discovery. The process login is used to establish and manage a session between the initiator and target. The PRLI contains the service parameters to be used for the communication. See Table 3 below.
For PRLI_Reject (FCP-2) frames from targets to initiators, note that because Non-FAST IOCs may be connected to FAST based enclosures, it is important to provide a mechanism to stop the non-FAST IOC from attempting to repeatedly communicate with the FAST targets. When the non-FAST IOC receives a Link Service ReJecT (LS_RJT) in response to the PRLI, the device will not be logged into the target and then not communicate with the target. See Table 4 below.
For PRLI (FAST) frames from initiators to targets, note that when a FAST IOC receives the FC-4 PRLI LS_RJT, it will initiate a FAST PRLI to determine if the device is in fact a SATA device that is capable of FAST. This frame is modeled from the FC PRLI and contains all the same fields. The significant differences in the frame are the change of the type code to the FAST type code and the change of the service parameter to FAST. See Table 5 below.
The service parameter page for FAST PRLI and Response is as follows in Table 6 below.
For PRLI_Accept (FAST) frames from targets to initiators, note that the FAST PRLI accept is also modeled after the PRLI accept. This frame indicates to the Host that the attached storage is a SATA drive connected to a FAST capable switch. See Table 7 below.
Although the present invention has been fully described in connection with embodiments thereof with reference to the accompanying drawings, it is to be noted that various changes and modifications will become apparent to those skilled in the art. Such changes and modifications are to be understood as being included within the scope of the present invention as defined by the appended claims.
Number | Name | Date | Kind |
---|---|---|---|
6425034 | Steinmetz | Jul 2002 | B1 |
6643693 | Reynolds et al. | Nov 2003 | B1 |
6683883 | Czeiger et al. | Jan 2004 | B1 |
6732104 | Weber | May 2004 | B1 |
6763419 | Hoese et al. | Jul 2004 | B2 |
6970974 | Isobe et al. | Nov 2005 | B2 |
7051147 | Hoese et al. | May 2006 | B2 |
7103686 | Lin | Sep 2006 | B1 |
7111087 | Jiang et al. | Sep 2006 | B2 |
7120705 | Arai | Oct 2006 | B2 |
7155546 | Seto | Dec 2006 | B2 |
7167929 | Steinmetz et al. | Jan 2007 | B2 |
7206875 | Marushak et al. | Apr 2007 | B2 |
7234023 | Abe et al. | Jun 2007 | B2 |
7308534 | Mimatsu | Dec 2007 | B2 |
7310696 | Haechten et al. | Dec 2007 | B1 |
7328392 | Chikusa et al. | Feb 2008 | B2 |
7330950 | Matsunami et al. | Feb 2008 | B2 |
7330999 | Davies et al. | Feb 2008 | B2 |
7350022 | Mizuno et al. | Mar 2008 | B2 |
7353321 | Steinmetz et al. | Apr 2008 | B2 |
7360010 | Ghaffari et al. | Apr 2008 | B2 |
7370128 | Douglas et al. | May 2008 | B2 |
7370139 | Bashford et al. | May 2008 | B2 |
7392333 | Chiu | Jun 2008 | B2 |
7412573 | Uratani et al. | Aug 2008 | B2 |
7423354 | Suzuki et al. | Sep 2008 | B2 |
7447233 | Narad et al. | Nov 2008 | B2 |
7500047 | Tyndall et al. | Mar 2009 | B1 |
7506078 | Wootten et al. | Mar 2009 | B2 |
7516272 | Felton et al. | Apr 2009 | B2 |
7523235 | Nemazie et al. | Apr 2009 | B2 |
7523236 | Nemazie et al. | Apr 2009 | B1 |
7523258 | Suzuki et al. | Apr 2009 | B2 |
7526587 | Nemazie et al. | Apr 2009 | B2 |
7565566 | Davies et al. | Jul 2009 | B2 |
7568056 | Danilak | Jul 2009 | B2 |
7634614 | Steinmetz et al. | Dec 2009 | B2 |
7685335 | Arndt et al. | Mar 2010 | B2 |
7689744 | McCarty et al. | Mar 2010 | B1 |
7711805 | Dale | May 2010 | B1 |
7711871 | Haechten et al. | May 2010 | B1 |
20020144046 | Hooper, III | Oct 2002 | A1 |
20040010545 | Pandya | Jan 2004 | A1 |
20040010612 | Pandya | Jan 2004 | A1 |
20040148460 | Steinmetz et al. | Jul 2004 | A1 |
20040158669 | Weng et al. | Aug 2004 | A1 |
20040205288 | Ghaffari et al. | Oct 2004 | A1 |
20050060538 | Beverly | Mar 2005 | A1 |
20050102468 | Delaney et al. | May 2005 | A1 |
20050102479 | Innan et al. | May 2005 | A1 |
20050144490 | Igari | Jun 2005 | A1 |
20050289262 | Sutardja | Dec 2005 | A1 |
20060168371 | Chiu | Jul 2006 | A1 |
20060242312 | Crespi | Oct 2006 | A1 |
Number | Date | Country |
---|---|---|
WO-2006110844 | Oct 2006 | WO |
WO-2006110844 | Oct 2006 | WO |
Number | Date | Country | |
---|---|---|---|
20060242312 A1 | Oct 2006 | US |