Beruflich Dokumente
Kultur Dokumente
Overview
Historical Background What is Fibre Channel? FC Hardware Topologies and Addressing The FC Protocol How fast is it? Why is it better than iSCSI?
Fibre Channel
The Basics
FC Hardware Overview
Host Bus Adapters (HBAs) Interface PCI, SBUS, XIO64, etc. with FC Integrate SRAM frame buffers and RISC processors to ofoad framing, segmentation, etc. Hubs Make a logical ring topology physically appear as a star topology Automatically detect failed or unplugged devices and route the ring around them
FC Hardware Overview
Gigabit Interface Connectors (GBICs) Abstract the technical details related to cable type and laser type from expensive I/O processors Hot-swappable Available in two form factors Legacy (GBIC) Small Form-factor Pluggable (SFP) Available in a variety of connector types Make transition to new cable technologies cheaper
FC Hardware Overview
Switches Incorporate large buffers to ensure long-distance links for metropolitan-area SANs are not starved Handle load balancing and route determination across inter-switch links Provide fabric name services to aid in service location Include zoning capabilites to enforce security policies
Hardware Manufacturers
HBAs Emulex, Qlogic, JNI, LSI Logic, Sun Microsystems Switches Brocade, McData, Ancor/Qlogic, Cisco GBICs IBM, Finisar, AMP, Stratos Lightwave, Methode Routers and Gateways Pathlight, ADIC, Cisco, Qlogic
Fibre Channel
Public Addressing
Every port has a 48-bit hardware address, called a World-Wide Port Name (WWPN) Each node in the system has a World-Wide Node Name (WWNN) Frames are routed based upon source and destination WWPN values in frame headers WWNNs help facilitate multipathing technologies by revealing an N:1 mapping
Arbitrated Loops
Serial Ring Topology Loop Initialization Primitive (LIP) is used to establish and maintain loop An initiator must acquire the loop, and thus form a bidirectional symmetric logical link with another node on the ring Only one pair of nodes per loop can communicate at a time Stability can be disrupted by LIP storms Loop can be constructed using TX simplex cabling, or using hubs RX
Switched Fabric
One or more switches interconnected by Inter-Switch Links (ISLs) Each port is congured by the administrator for a specic mode of operation Switches provide zones (similar to IEEE 802.1Q VLANs) to allow coexistence of multiple security domains Service discovery is aided by the fabric name services that run on every switch WWNs are used to address targets, so much larger networks are possible
Node
Switch
Switch
NL_Port
FL_Port
F_Port
Node
Node
Node
NL_Port
NL_Port
N_Port
Switch 1
Switch 2
Switch 3
Switch 2
Switch 1
Switch 3
Switch 4
Switch 1
Switch 2
Edge Switches
Switch 3
Switch 4
Switch 5
Fibre Channel
The Protocol
FC Protocol Stack
FC0 Physical Layer Handled by GBIC electronics FC1 8b/10b encoding layer developed by IBM Necessary for receiver clock recovery Encoding tries to keep the ratio of 0s to 1s near 1 Limits same bit run length to 5 Detects single-bit errors
FC Protocol Stack
FC1 268 of 1024 values are valid 256 data values 12 control values Start of Frame (SOF), End of Frame (EOF), Idle, Receiver Ready (R_RDY), etc. FC2 Framing, Segmentation, Reassembly Flow Control Layer
FC Protocol Stack
FC3 FC Services Layer Facilitates broadcasting and multicasting Provides hunt groups, e.g. routing to a free port Provides striping across multiple ports Attempts to provide a topology-agnostic view of the network to anything above it in the stack FC4 Mapping to Upper Layer Protocol (ULP)
Frame Types
Link Control Frame Provides for ow control Examples include ACK for class 1 or 2 frames Contains no payload Data Frame Provides for data transport services Examples include encapsulated protocol data Contains a payload of 02112 bytes
Frame Contents
Start of Frame Sequence (4 bytes) Frame Header (24 bytes) Payload (02112 bytes) Cyclic Redundancy Checksum (4 bytes) End of Frame Sequence (4 bytes)
Originator Exchange ID
Parameter
Fibre Channel
Service Class 1
Stateful connection between two N_Ports Frames are received in-order ACK link control frames are used for ow control Full channel bandwidth is guaranteed End-to-end ow control is used If HBA supports Intermix mode, unrelated Class 2 and 3 frames can be interleaved with the class 1 stream
Service Class 2
Connectionless Unordered delivery is possible Multi-mode ow control Buffer-to-buffer by fabric-generated R_RDY frames End-to-end by N_Ports sending ACKs Fabric may multiplex/demultiplex frames in transit Fabric attempts to notify originator of non-delivery
Service Class 3
Connectionless Unordered delivery is possible Delivery is not guaranteed Buffer-to-buffer ow control via fabric-generated R_RDY frames No notication to originator of dropped frames Fabric may multiplex/demultiplex frames in transit
Service Class 4
Not dened in ANSI FC-PH; classes 46 are discussed vaguely on the internet Stateful virtual circuit Frames are delivered in-order Delivery is guaranteed Provides a fractional-bandwidth virtual circuit Meant for isochronous data services No know implementations
Flow Control
Each port has a pool of frame buffers Qlogic switches statically assign buffers to each port Thus, they have the lowest latency in the industry Long-distance ports can steal buffers from adjacent ports, at the expense of deactivating them Brocade switches have a global frame buffer pool
Flow Control
Each frame buffer is referred to as a credit A port may send as many frames as it has available credits before receiving an ACK Thus, link distances are effectively limited by the number of available buffer credits at each end of the link
Flow Control
End-to-End Flow Control Class 1 and Class 2 frames use this Implemented as an ACK frame A single ACK may acknowledge, one, multiple sequential, or all frames in a sequence Buffer-to-Buffer Flow Control Class 2 and Class 3 frames use this Implemented as an R_RDY frame One R_RDY is required per received frame
Fibre Channel
(1)
Examples
Bypass Card Bypass Card Bypass Card Loop A GBIC
Disk 2
Disk 1
Disk 0
Fibre JBOD
Bypass Card
Bypass Card
Bypass Card
Loop B GBIC
Examples
Typical Redundant Fibre RAID System
Fabric A Fabric B
Host Loop A
Host Loop B
Controller A
Controller B
Disk Loop A
Disk Loop B
JBOD
JBOD
JBOD
JBOD
Examples
Simple Fibre Channel Fabric
JBOD
Fibre Hub
Loop A
JBOD
Fabric Switch
Public RAID Controller(s)
Examples
Simple Redundant Fibre Channel Fabric
Public Initiator Public Initiator Private Initiator JBOD
Fabric Switch
Loop A
Public JBOD
JBOD
Fabric Switch
Private JBOD
Loop B JBOD
Fibre Channel
Conclusions
Conclusions
The FC protocol is nally reaching maturity Fibre Channel has become the standard SAN interconnect technology No replacement technologies are going to be available in the next few years iSCSI is only a replacement for FC in lower-end installations where performance and stability are less critical
References
ANSI FC-PH Specication, Revision 4.3 LSI Logic LSIFC909 Architecture Manual Qlogic SAN Management Users Guide Qlogic Sanbox-16HA Users Guide
http://hsi.web.cern.ch/HSI/fcs/spec/ overview.html http://www.nersc.gov/jed/ Presentations/net-tutorial
Fibre Channel