1. Field of the Invention
This invention generally relates to systems and methods for implementing storage area networks. More specifically, this invention relates to a method and apparatus that enables seamless communication between an Infiniband network and one or more Fibre Channel networks by emulating the Fibre Channel network(s) as a subnet of the Infiniband network.
2. Description of Related Art
Internet working of high-performance computers has become the focus of much attention in the data communications industry. Performance improvements in processors and peripherals, along with the move to distributed architectures such as client/server configurations, have spawned increasingly data-intensive and high-speed networking applications, such as medical imaging, multimedia, and scientific visualization. Various protocols have been developed to provide the necessary communications capacity.
A protocol known as Fibre Channel can carry data at rates exceeding 2 Gbps in both directions simultaneously. The Fibre Channel protocol defines standard media and signaling conventions for transporting data in a serial fashion. It also provides an error correcting channel code and a frame structure for transporting the data. Further, the Fibre Channel protocol sets out a buffer-credit-based flow control methodology, and creates some common services (e.g., fabric controller, directory server). The Fibre Channel protocol can be applied to various network topologies including point-to-point, ring, and switched fabric. Details regarding the Fibre Channel protocol can be found online at www.fibrechannel.org.
Another, newer, protocol known as Infiniband can carry data at rates exceeding 2.5 Gbps in each direction. The Infiniband architecture is designed around a point-to-point, switched I/O fabric, that connects end node devices. Much like the Fibre Channel protocol, the Infiniband protocol defines standard media and signaling conventions for transporting data in a serial fashion, provides error detection codes and a packet structure for transporting the data, and creates some standard services (e.g., subnet manager, subnet administrator). Details regarding the Infiniband protocol can be found online at www.infinibandta.org.
While Inifiniband possesses similarities to Fibre Channel (e.g., both rely on structured serial communications, both provide standardized fabric management services, both support higher-level protocols such as SCSI (Small Computer Systems Interface), IP (Internet Protocol), and VDI (Virtual Device Interface), there are nevertheless many differences including different signaling protocols and different services. Both protocols may be employed to implement system area networks, and hence there exists a need for intercommunication between networks that use different protocols. For example, many customers would prefer to expand their existing networks with the latest technology and not have to start from scratch. Other customers just need low-latency communication between dissimilar networks. A method for integrating a Fibre Channel network into an Infiniband network is therefore highly desirable.
Accordingly, there is disclosed herein a system and method for providing transparent communications between an Infiniband (IB) network and a Fibre Channel (FC) network. In a preferred embodiment, the method comprises: (a) detecting FC node ports in the FC network; (b) creating virtual IB targets for each FC node port in the FC network; and (c) converting any non-management IB packets directed to the virtual IB targets into FC frames directed to the corresponding FC node port. The method may further comprise intercepting management packets directed to the virtual IB targets and responsively emulating a subnet management agent (SMA) or a general service agent (GSA) of the addressed virtual IB target.
The preferred embodiment further contemplates: (a) detecting IB channel adapters in the IB network; (b) creating a virtual FC target for each IB channel adapter in the IB network; and (c) converting any non-fabric FC frames directed to the virtual FC targets into IB packets directed to the corresponding IB channel adapter. Fabric frames directed to the virtual FC targets may be intercepted and handled appropriately.
The disclosed systems and methods may advantageously provide a protocol-transparent interface between IB and FC network devices.
Various aspects of the invention will become apparent upon reading the following detailed description and upon reference to the accompanying drawings in which:
While the invention is susceptible to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that the drawings and detailed description thereto are not intended to limit the invention to the particular form disclosed, but on the contrary, the intention is to cover all modifications, equivalents and alternatives falling within the spirit and scope of the present invention as defined by the appended claims.
Interfacing IB and FC Networks
A gateway is a device that allows communication between networks that use different communications protocols. An edge router is a gateway that also provides router functionality to one or more of the networks. The following description concerns a gateway that is preferably also an edge router. The gateway preferably couples between Infiniband and Fibre Channel networks, and it preferably makes all target devices in each network “Visible” to the other network(s). That is, Fibre Channel N_Ports (ports on end node devices) preferably appear to devices in the Infiniband network as remote Infiniband ports that are accessible using global addressing. Conversely, the Infiniband channel adapters preferably appear to devices in the Fibre Channel network as N_ports that are accessible using N_Port identifiers. The gateway itself preferably complies with management protocols of both Infiniband and Fibre Channel networks, presenting itself as a switch or router to the Infiniband network, and presenting itself as one or more F_Ports (expansion ports) to the Fibre Channel network.
Turning now to the figures,
An example of the two FC networks is shown in
The second FC fabric takes the form of four interconnected switches 204-210. The switch network couples the storage nodes 116-118 to the processor nodes 122-124 and to the gateway 102, and transports information frames between them all. Similarly, the IB fabric 104 (as shown in
Talkthrough
The gateway 102, through the use of virtual targets, may advantageously make the barrier between different network protocols “transparent”. An IB device can “talk” through the gateway to a FC device without regard to (and indeed, without being aware of) the fact that the FC device operates on the FC protocol. A FC device is able to talk to IB devices in the same manner. Further details of the manner in which the gateway provides transparent communication are provided in conjunction with the following discussion of the preferred gateway embodiment.
The gateway 102 also includes an IB router ASIC 404 that attaches to IB links. The IB router 404 preferably supports up to two 4x IB links. The IB router 404 couples the IB links together in the manner of a normal router, but also couples the IB links to the AP 406. The IB router provides the AP 406 with any packets directed to devices in the FC network or directed to the gateway itself and it accepts packets from the AP 406 and routes them to the appropriate destination in the IB network.
The AP 406 is a protocol conversion engine, i.e., it provides protocol conversion between IB and FC, which includes translating FC frames to IB packets and vice versa. Further, the AP 406 preferably translates the frame/packet addressing information as specified further below, before directing non-management frames to the Bloom 402 or non-management packets to router 404. Further, the AP 406 preferably implements FC administrative services and IB management agents as needed to carry out the management roles of a router and devices from the networks in the appropriate fashion.
For example, initiation and termination of connections in an IB network is performed by communication managers (CM) in the end nodes. When the gateway 102 makes a FC device “visible” to the IB network, it does so by creating a virtual IB version (hereafter, a virtual IB target) of that FC device. An IB device attempting to connect to the FC device will contact the CM of the corresponding virtual IB target. The AP 406 preferably emulates the CM of the virtual IB target to enable the connection. Once the CM of the virtual IB target receives a connection request, it requests a Queue Pair (QP) allocation for the connection. The CM then forwards the allocated QP information to the initiating IB host as part of connection establishment handshakes. Once the initiating IB host receives the reply, it completes the connection by sending a ready response. For connections initiated from the IB side, the CM preferably follows the Passive State Transition Table. Further details are available in section 12.9.6 “Communication Establishment—Passive” in Volume 1 of the Infiniband Specification v1.0.
AP 406 preferably takes the form of a field programmable gate array (FPGA), which is preferably provided with a fast memory 408 for speed-matching buffers. These buffers are used for buffering data being moved between the IB and FC networks. The chips of gateway 102 are shown in
Each of the routers 402, 404 maintains a table of destination addresses and the corresponding “direction” in which to send frames or packets having the specified destination addresses. The routers may also determine local addresses of the specified destination from specified global addresses, and add those to the packet or frame as appropriate. The AP 406 also maintains database tables to translate between addresses in the different network protocols. (The tables for AP 406 are stored in lookup RAM 408.) These tables may preferably be constructed by control module 410 in accordance with the protocols of the attached networks.
Control module 410 preferably includes a processor “complex” 412, i.e., one or more processors coupled to the AP 406 and the IB router 404. In the embodiment of
The software executing in control module 410 preferably models the gateway 102 as an IB router that is connected to IB fabric through real IB ports and that is connected to FC fabric through logical IB ports. To facilitate IB access to the FC network, the software creates a logical view of the FC fabric for IB Managers by configuring the AP 406 to simulate IB fabric elements. These simulated elements take the place of the FC fabric elements to create a seamless logical view of the IB network. This subsystem of the AP 406 is herein termed the Virtual Infiniband Agent (VIBA) subsystem 504 (see
VIBA 504 supports management datagram (MAD) queries, both direct-routed and LID (local identifier) routed. MADs are packets used for IB fabric management. A master subnet manager (SM) somewhere in the IB network is responsible for discovering the network topology, configuring each port with identifiers and partition keys, configuring each switch with a local identifier (LID) and forwarding database, and for serving as a directory. The VIBA 504 intercepts MAD queries directed to simulated IB fabric elements, and responds to those queries as the simulated elements would. Configuration information for the simulated elements is added to the database of simulated elements.
VIBA data access may be divided into two general categories: TB or FC access. An applications program interface (API) for IB access preferably exposes functions that the gateway's Common Agent Interface uses to interact with VIBA. The IB access API mainly deals with IB-related calls such as get/set (i.e., calls that get or set IB device parameters), but does not provide ability to add or create virtual elements. An FC access API exposes functions that an FC daemon on the gateway uses to create and maintain the VIBA database. It provides ability to create, add, and delete virtual elements so that VIBA can be properly manipulated when the daemon receives events from FC fabric. It also provides ability to internally retrieve and update virtual elements based on IB queries and sets.
The VIBA database is preferably organized as a tree structure, i.e., an internal data organization structure based on a flat VIBA topology. Virtual FC switches and end nodes are built in tree format based on the FC to IB port mapping method (described further below). This structure is created to facilitate traversing of virtual elements using direct routed addressing. For example, when traversing for port1-port4 direct routed addressing, software can simply follow the ‘void *port[1]’, and ‘void *port[4]’ to arrive at the desired switch or end node. The VIBA database preferably also includes a hash table, i.e., an internal data organization structure based on hashing of local identifiers (LID). The hash table contains entries that each point to a virtual FC switch or end node. This structure is created to facilitate LID routed addressing.
VIBA's main objective is to facilitate IB host access to FC devices. However, a certain level of mapping of IB hosts to FC space is also required to allow the gateway 102 to facilitate inter-network Communications initiated by FC devices. Accordingly, the software also configures the AP 406 to simulate FC fabric elements that replace the IB fabric to create a seamless logical view of the FC network. This subsystem of the AP 406 is herein termed the Virtual Fibre Channel (VFC) subsystem 506, which may also be implemented in a similar fashion to the VIBA database utility.
Thus, for example, frames received by AP 406 from the FC network will have source identification (S_ID) and destination identification (D_ID) fields containing PIDs of an actual FC source node and a simulated FC destination node. For frames traveling to the IB network, the packet translator subsystem 512 uses the LID/PID database to translate the source PID into the LID of the corresponding (simulated) IB host port, and to translate the destination PID into the LID of the corresponding (actual) IB host port. Similar conversion occurs for packets traveling in the opposite direction. The WWN and GUID fields are similarly treated.
Returning to VIBA subsystem 504, the IB simulations of the FC network are preferably created and connected using a Minimum Emulation Model. This model essentially virtualizes FC end nodes (i.e., N_Ports and NL_Ports) individually, and virtualizes the FC switch fabric as a whole. While the Virtual IB Targets (VIBT) have a one-to-one relationship to unique FC end nodes, virtual IB switches generally do not have a one-to-one relationship to unique FC switches. Virtual IB switches are preferably created based on the number of virtual targets, and are used to provide connection points for the virtual targets in a flat topology regardless of the underlying FC fabric topology.
FC to IB Mapping
In block 604, the AP creates just enough virtual IB switches to support the virtual IB targets. Each IB switch can have up to 256 ports, including port 0 which is reserved for the switch processor, and including port 1 which connects the switch to the gateway. Since IB only allows for one-to-one connection of end nodes, each IB switch can have up to 254 end nodes. Accordingly, VIBA must comply with a hard limitation of 254 virtual IB targets per virtual IB switch (VIBS). To determine the number of VIBS's, the AP 406 divides the number of VIBT's by 254, and rounds any non-integer value up to the next integer, thus performing the mathematical function ceil(N/254).
In block 608, the AP establishes switch port connections for each VIBS. The VIBT are preferably connected to the virtual IB switch ports in ascending order, starting with switch port 2, and progressing to higher port numbers. Then in block 610, the AP preferably connects the VIBS to the gateway ports in descending order, starting with the highest-numbered gateway port and progressing lower.
Note that the virtual port assignments are preferably semi-permanent. In other words, if a FC device leaves the network and later returns, it preferably is re-connected in its previous virtual location.
This then is the logical topology of router 102 and the attached FC fabric as it is presented to IB managers. VIBA may be implemented as a constantly updating database of FC elements in IB format. The VIBA may be separated into two components: a database and a FC event daemon.
The FC event daemon preferably initializes the VIBA database and updates the content based on events generated by the FC fabric. Such events may include RSCN (Registered State Change Notification), SCN (State Change Notification), etc. The VIBA database would contain an IB mapping of FC elements according to the FC mapping algorithm discussed earlier. The database is preferably optimized for both direct routed and LID routed MAD queries. For example, it may have a tree structure that is also tied to a LID-based hash table. Thus, the elements can easily be queried either by direct routed based addressing or LID based addressing.
The VIBA further maintains the configuration and state information for the virtual elements in the database so that it can emulate the various IB-specified agents for those elements. For example, the IB specification 1.0 Volume 1 requires that IB switch elements each implement a Subnet Management Agent (SMA) and two General Service Agents (GSA); namely, a Performance Management Agent (PMA), and a Baseboard Management Agent (BMA). Other general service agents, such as the Device Management Agent (DMA), Communication Manager (CM), SNMP Tunneling, Vendor Specific Agents, and Application Specific Agent, are optional for switch elements. The VIBA preferably supports full emulation of SMA, PMA, and BMA per each Emulated IB Switch. For virtual IB targets, the VIBA preferably implements a SMA, a PMA, a BMA, a DMA and a CM per Name Server (NS) entry in the FC fabric.
To implement these agents, the VIBA intercepts MAD queries from the IB network that are directed to the virtual IB elements, processes (and updates) the state information stored in the database, and transmits the appropriate MAD responses.
IB to FC Mapping
Turning now to
Beginning with block 802, the VFC subsystem of the AP creates a virtual NL_Port and FC target for each IB channel adapter in the IB network. Then in block 804, the AP creates enough virtual switches to accommodate the virtual FC targets.
The maximum number of available ports (neglecting any connection to the gateway 102) in a FC switch is 256. Each of those ports may be an arbitrated loop port (FL_Port), which can be connected to as many as 127 other devices. Accordingly, each virtual FC switch (again, neglecting any connection to gateway 102) can support up to 256*127=32,512 virtual FC targets. It may be desirable to allow for a connection to the gateway 102, either by treating the gateway as a loop port or by treating the gateway as a link port. In the first case, the switch can support up to 32,511 virtual targets. In the second case, the switch can support up to 32,385 virtual FC targets. However, in the preferred embodiment, no allowance is made for a connection to the gateway. Accordingly, in step 804, the number of virtual switches is determined by dividing the number of virtual FC targets by 32,512 and rounding any non-integer value up to the next integer, thus performing the mathematical function ceil(N/32,512).
In block 806 the virtual FC targets are coupled to the virtual FC switches in ascending order of switch port and loop position, starting with switch port 1, loop position 1, and filling the loop before progressing to the next higher switch port. If desired, the virtual switches can be coupled to the gateway ports in descending order, as illustrated by optional block 808. This is expected to be unnecessary for FC routing. The AP preferably routes the packets received from the FC network using LID/PID translation instead of port or DID translation.
In order to support IB device communications to a FC device, the response packets from the FC device need to be routed properly to the gateway using current FSPF (Fabric Shortest Path First) routing protocol. FSPF is based on the domain identification number (DID) of FC switches, and the FC standard allows only 239 such numbers. Accordingly, the number of virtual FC switches is minimized so as to minimally affect the FC network.
FC devices may inquire about IB devices through the FC name server. Accordingly, IB device information is gathered by the VFC subsystem, converted to FC conventions, and added to the name server in the FC fabric. In networks where the FC devices are not initiating inter-network communications (e.g., storage devices), this process may be limited to just those IB devices that initiate such communications. In those circumstances, the VFC subsystem gathers the name server information only when the IB device initiates communication using Communication Manager MADs. This may advantageously allow the port identifiers (PID) to be assigned based on availability of unused PIDs for the virtual switch DIDs allocated by VFC subsystem. If no more PIDs are available, then a new DID is allocated by VFC to provide additional PIDs.
Addressing Virtual Elements
Addressing within IB and FC are similar in that both networks have permanent and temporary addresses. In FC, the permanent address is WN. In IB, it is GUID. In FC, the temporary address is PID. In IB, it is LID. However, similarity ends there and there is no easy algorithm for address conversion. Therefore mapping databases 508, 510 are used to allocate and keep track of IB-FC addressing pairs.
In order to support management packet routing and data protocol conversion, mapping of LID-to/from-PD and GUID-to/from-WWN information is stored in utility databases. These databases are updated when Subnet Manager (SM) does LID assignments, or when the gateway 102 assigns Virtual WWN or Virtual GUID. The databases are also optimized to provide easy indexing using either protocol addressing.
When Virtual IB Targets and Emulated IB Switches are created, they are assigned Virtual GUIDs. The IB standard defines GUID as a 64-bit wide unique address in IB name space. Unfortunately, there isn't a very good way to convert real WWNs to Virtual GUIDs. Accordingly, the VIBA subsystem assigns “permanent” virtual GUIDs based on the following preferred template (other templates are possible):
IB LIDs for all IB devices (including virtual IB targets) are assigned by the service manager of the IB network during the normal course of network operations. The VIBA adds the LIDs of the virtual IB targets to the LID/PID database as they are received from the service manager.
When Virtual FC Targets and switches are created, they are assigned virtual WWNs. The FC standard defines WWN as a 64-bit wide unique address in FC name space. Again, unfortunately, there isn't a very good way to convert real GUIDs to Virtual WWNs. Thus, the VFC subsystem assigns “permanent” Virtual WWNs to based on the following preferred template (other templates are possible):
The VFC subsystem assigns PIDs to Virtual FC Targets based on the assigned DID of the Emulated FC Switch. Since all virtual FC targets are given (semi-)permanent locations, the VFC subsystem can determine the port number and arbitrated loop position number portions of the PIDs.
Zoning and Partitioning
Gateway 102, in making the IB network appear as an FC network and the FC network appear as an IB network, preferably preserves the zoning feature of the FC network and the partitioning feature of the IB network. Zoning and partitioning are conceptually similar. A partition is a set of IB channel adapters that are allowed to communicate with each other. Insofar as possible, a given channel adapter is unaware of any other channel adapters except the ones sharing membership in its partition. It is possible for channel adapters to be members of multiple partitions. Similarly, FC N_ports are isolated from any N_Ports not in the same zone, and N_Ports can be members of multiple zones. The differences lie in the implementation. IB partition implementation relies on the use of partition keys that are embedded in each packet to designate the partition membership of that packet. FC zone implementation relies on the use of zone membership lists maintained in the switches. VIBA is not easily able to correlate zoning configuration, which already exists, with the partition keys. Hence, integrating these two features to be managed as one at peer-to-peer level presents some challenges.
In the preferred embodiment, the gateway enforces IB specific partitions and (at least at the hardware level) neglects the FC zoning configurations. The Bloom 402 is preferably configured to ignore zone membership lists for FC frames provided to AP 406, so the FC zoning configuration will have no effect on FC frames that reach the gateway en route to the IB network. The VIBA subsystem 504 obtains and stores partition key information for its virtual IB devices in response to the IB network's SM partition key assignments, and the AP 406 inserts the appropriate partition keys in the IB packets provided to the IB router 404. The IB router 404 enforces the IB-specific partitions independent of FC zoning configurations. For example, a certain amount of partition checking is required for connections to be established. As part of connection request, the partition key to be used is forwarded. The Communication Manager for a virtual IB target will check to see if the partition key is allowed for the device. If no match, the connection request is rejected. If matched, connection handshake moves forward.
The FC zoning configuration, however, is not entirely ignored. Rather, it is translated into the IB domain and managed from there. In order to manage zoning from IB, each individual FC zone is translated into a partition key (P_Key) to be stored in VIBA subsystem 504 and “pushed” to the IB SM via a vendor-defined interface to the SM partition management function. The partition keys are later used by AP 406 and IB router 404 to enforce partitioning throughout the subnet. In this manner, zoning and partitioning can be managed at a peer-to-peer level to create a single subnet view of FC/IB zoning.
Meta-Zoning
In the preferred embodiment, the gateway preferably provides ways, such as CLI (command line interface), API (application program interface), etc, to create IB-FC meta-zoning where a user specifies groups of IB and FC devices that should have access to one another. Referring to
The gateway may then automatically propagate the meta-zoning configuration to FC zoning service and the IB subnet manager (SM). The creation of meta-zoning can be facilitated by the gateway providing a list of IB devices retrieved through Subnet Administration and a list of FC devices retrieved through Name Server. Accordingly, device discovery and virtual mapping is preferably done before any zoning takes place.
For greater efficiency, virtual addresses may be assigned to the identified devices after the meta-zoning has been configured. The list of FC targets to be virtualized can then be calculated based on zoning configuration. If any active or passive zoning configurations contain a virtual WWN of an IB host, all WWN or PID of the FC devices listed in the same zone are assigned Virtual GUID and virtualized by IBAV. If the zoning is disabled or zoning configurations do not contain any Virtual WWN, no devices are virtualized. The virtual WWNs of the IB devices to be mapped are used in setting up the FC zone configuration. IB partition configuration may proceed afterward.
Numerous variations and modifications will become apparent to those skilled in the art once the above disclosure is fully appreciated. It is intended that the following claims be interpreted to embrace all such variations and modifications.
The present application is a continuation of Ser. No. 10/208,377, filed Jul. 30, 2002, now U.S. Pat. No. 7,206,314 and entitled “Method and Apparatus for Transparent Communication Between A Fibre Channel Network and InfiniBand Network” invented by applicants Liao, Makishima, Green, Forbes, and Chung.
Number | Name | Date | Kind |
---|---|---|---|
6400730 | Latif et al. | Jun 2002 | B1 |
6671727 | Odenwald | Dec 2003 | B1 |
6683883 | Czeiger et al. | Jan 2004 | B1 |
6763419 | Hoese et al. | Jul 2004 | B2 |
7072970 | Georgiou et al. | Jul 2006 | B2 |
7206314 | Liao et al. | Apr 2007 | B2 |
7236496 | Chung et al. | Jun 2007 | B2 |
7299290 | Karpoff | Nov 2007 | B2 |
20020165978 | Chui | Nov 2002 | A1 |
20030012204 | Czeiger et al. | Jan 2003 | A1 |
20030093627 | Neal et al. | May 2003 | A1 |
20040022256 | Green | Feb 2004 | A1 |
20040024833 | Siddabathuni | Feb 2004 | A1 |
20040024911 | Chung et al. | Feb 2004 | A1 |
20060075191 | Lolayekar et al. | Apr 2006 | A1 |
Number | Date | Country | |
---|---|---|---|
20070201356 A1 | Aug 2007 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 10208377 | Jul 2002 | US |
Child | 11683517 | US |