Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1
Agenda
Basics
Open Systems Architecture Basics
I/O Subsystem
Block vs. File Storage
SCSI Basics
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 2
Definitions
Definitions can very from Customer to Customer
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 3
STORAGE PROTOCOLS
FC/FC-AL/FC-SW
ESCON/FICON
Infiniband
CIFS
NFS*
FCoE
FCoTR
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 4
Protocol Comparisons
iSCSI, FCIP, iFCP, FCoE, FC, SRP
SCSI Layer
FCIP iFCP
Encapsulation
Layer
TCP TCP TCP
IP IP IP FCoE
Base DCB
Ethernet FC IB
Transport
Physical Media
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 5
STORAGE : The Usual
Suspects
Hosts
Edge Switches
Core/Director Switches
Modular Storage
Frame Storage
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 6
NICs, HBAs, CNAs, HCAs, Mezzanine Cards
Cards that go inside servers of all types
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 7
Fixed Port & Director Class Switches
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 8
Storage Arrays
Modular vs. Frame
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 9
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 10
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 11
Basic System Architecture
A Simplified Look at Open Systems
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 12
Basic System Architecture
The Hardware
CPU
Memory
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 13
Basic System Architecture
The Hardware
Persistent Storage
CPU
Connected to system bus via hi-speed PCIe switch
PCIe is a switched architecture, not a shared bus like old legacy PCI
Memory
systems
Each lane of PCIe is 2.5Gbps (An 8-lane PCIe device has 20Gbps bandwidth
available.)
Storage
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production
14
Basic System Architecture
The Hardware
Storage
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 15
Basic System Architecture
The Operating System
Operating System
I/O subsystem abstracts complexities of Kernel Mode
where to locate resources from apps.
Network Storage (NAS) I/O Subsystem
File Based, not Block
Slower speed, higher latencies due to
network packet loss, latency, and heavy
protocol stack (CIFS/NFS, TCP/IP.)
Local Network
Storage Storage (NAS)
Local Block Storage
Very low latency, high speed channel
directly to block resources.
CIFS/SAMBA NFS
SCSI protocol used
Block Storage Windows Unix
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 16
Local Storage
SCSI
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 17
Local Storage
SCSI
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 18
Local Storage
SCSI
SCSI Commands
#2 Software Command Set SCSI Physical
Very mature, very stable
SCSI Read
SCSI Write
Etc.
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 19
A Word About Block Storage
Remove Gracefully
It can be very bad when block storage
suddenly disappears.
Operating systems cache writes before
flushing them to disk (this speeds things
up).
Some filesystems try to minimize risk by
journaling.
Sudden removal can mean corrupt
application data or corrupt filesystem.
Youve seen this if youve ever
improperly removed a USB drive from a
Unix/Linux machine.
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 20
Ramification
Corrupt Filesystem
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 21
SAN Primer for LAN Professionals
Essential Understanding of SAN Concepts
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 22
Block Storage Networking
Enables Consolidation, Optimization
Operating System
those resources are actually Kernel Mode
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 23
Networking SCSI
SCSI Commands Get Serialized Network Protocol Fibre Channel
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 24
Block Storage Networking
Enables Consolidation, Optimization
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 25
Block Storage Networking
Enables Consolidation, Optimization
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 26
Block Storage Networking
Enables Consolidation, Optimization
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 27
Block Storage Networking
Enables Consolidation, Optimization
Storage Array
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 28
Block Storage Networking
Enables Consolidation, Optimization
Now that storage is consolidated, we
can:
Give servers exactly what they need
Take snapshots
Remotely mirror drives to other data
centersmuch more!
SCSI/FC
Network
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 29
Block Storage Networking
Enables Consolidation, Optimization
SCSI/FC
Network
SCSI/FC
Network
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 31
Block Storage Networking
Enables Consolidation, Optimization
There is potential for data corruption
on a wide scale - corrupt files, corrupt
file systems, corrupt application data,
OS blue-screens, core dumps, loss of
boot drives, etc.
SCSI/FC
Network
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 32
Block Storage Networking
Enables Consolidation, Optimization
Consider that all VMs boot from SAN
storage resources.
SCSI/FC
Network
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 33
SAN Basics
LAN / SAN Comparison
LAN SAN
If the LAN goes down, everyone is If the SAN network goes down, no
generally happy when the network one is happy when it comes back
comes back online. online.
Hey my phone works again, and I SAN network outages can cause
can get to Google! This is great!
data center-wide corruption and
can require many hours (or days)
to restore once the SAN network
comes back online. This is why we
dont build one SAN network we
always build two.
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 34
SAN Basics
LAN / SAN Comparison
LAN SAN
LANs get most of their best SANs are always fully redundant
features when they are a single (air gap) for enterprise
network. applicationsalways.
Active/Active NIC-teaming from Gets the benefits of consolidated
servers storage while mitigating the risk of
LAG across switches widespread outage due to code
errors, hardware problems, or
etc. human errors.
Allows maintenance windows
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 35
SAN Basics
LAN / SAN Comparison
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 36
SAN Design Principles
Redundancy
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 37
How Does An Operating System Address Storage?
Classic Device Hierarchy
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 38
How Does An Operating System Address Storage?
Classic Device Hierarchy
For example, a disk (LUN) might If the server sees a LUN down
be: c2t0l5 two separate paths, it will think
there are two LUNs instead of one.
Multipath I/O drivers MUST be
Controller 2 (HBA 2), Target 2 (SCSI installed on the host to correct this
Target 2), LUN 5 (Logical Unit double-vision to avoid
Number 5 think partition) corruption.
Most modern O/Ss have MPIO by
default.
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 39
SAN Basics
LAN / SAN Comparison
LAN SAN
Nodes use Network Interface Nodes use Host Bus Adapters
Cards (NIC) with 48-bit MAC (HBA) with 64-bit World Wide
Addresses. Names (WWN).
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 40
Fibre Channel Host Bus Adapters
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 41
Fibre Channel Host Bus Adapters
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 42
Fibre Channel Addressing
WWNs and Port IDs
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 43
Fixed & Dynamic Address Formatting
WWNs and Port IDs (PIDs)
Vendor-specific
10:00:00:60:69:00:60:02
Every fabric device (HBA, switch, director,
IEEE format storage device) has one or more 64-bit WWN
Node WWN: 1 = b0001 0000 addresses.
Port WWN: 2 = b0010 0000 Uses an IEEE-assigned addressing scheme.
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 44
SAN Basics
LAN and SAN Comparisons
LAN SAN
In a LAN, it is possible to have All connections in a SAN are point-
shared media to-point.
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 45
SAN Basics
LAN / SAN Comparison
LAN SAN
L2 Ethernet does not guaranty FC is considered lossless. This
delivery of frames. Frame drop is achieved by careful flow control.
can happen by congested end
devices, or switches. Receiving device always in charge
of flow.
Flow control is based on credits.
If I give you 4 credits, you may
send me 4 frames.
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 46
SAN Basics
LAN / SAN Comparison
LAN SAN
Nodes communicate with nodes. Nodes distinctly categorized into
two groups:
Host (initiator)
Storage (target)
Hosts do not communicate with
other hosts on a SANthey only
communicate with storage targets.
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 47
SAN Basics
LAN / SAN Comparison
LAN SAN
Networks provide any-to-any Networks connect many-to-few.
connectivity
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 48
SAN
The Basics
SAN
Important zoning and masking tools
SAN
in the SAN and target systems make
certain that each host only sees
what it thinks is a simple SCSI
channel with a small number of
attached drives (LUNs).
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 49
SAN
The Basics
Initiator (SCSI Adapter/Controller)
SCSI
Terminology
Server
LUN (logical Unit Number)
50
(Partition)
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production
LUN Masking
(Array Tool)
SAN
The Basics
Initiator (HBA) Storage Array
How does it
look on a SAN?
FC SAN
Server
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production
SAN
The Basics
SAN
Storage Array
Although a SAN may have many
hundreds of initiators and targets,
each host must only see its own
storage, not other hosts or other SAN
systems storage.
An exception is when certain server clustering
tools are being use. In this case multiple
servers may see the same storage pool.
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 52
SAN Basics
LAN / SAN Comparison
LAN SAN
For the most part, LANs are In a Brocade SAN, the network
painstakingly, manually ports configure themselves. It is
configuredport by port. plug and play.
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 53
Fibre Channel Port Types
Understanding the Basics
FC SAN
Fibre Channel SANs have
several different port
types. N-Port F-Port
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 54
Fabric Port Initialization
Self-Configuring Ports
U_Port What do I want to be when
After speed I grow up?
negotiation, a switch
y/n Is something plugged into the port?
port will figure out what no
device is plugged in yes
(i.e. a host, or another FL_Port y/n Do you want to talk loop?
switch). yes
no
It will then G_Port Im waiting for someone to talk to me
automatically configure
the appropriate port
fabric Are you a switch/director or a fabric point-to-
type to accommodate F_Port pt-to-pt point device?
that device. Switch/director
E_Port
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 55
SAN Basics
LAN / SAN Comparison
LAN SAN
A Layer 2 LAN uses broadcasts There are no broadcasts.
and must deal with unknown
destination addresses. Nodes must login to the fabric and
register themselves before any
Must listen to traffic to learn MAC traffic may flow, ergo the SAN
addresses knows where everything is located.
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 56
SAN Basics
LAN / SAN Comparison
LAN SAN
In a layer 2 LAN, you have to worry Since its inception 14 years ago,
about loops. Fibre Channel has incorporated layer
3 style intelligence at layer 2 ergo,
no loop concerns at all.
A protocol similar to OSPF is used in
layer 2 FC called FSPF, or Fabric
Shortest Path First and it is an open
standard (ANSI T11 fc-sw-5).
Effortless L2 equal-cost multi-pathing
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 57
FC SAN = All Links Active And Forwarding
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 58
FSPF
Determining Paths
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 59
FSPF
Basics
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 60
FSPF
Determining Paths
Starting Ending
Operation Process
Condition Condition
1. Perform Initial HELLO The Switch originating HLO SW_ISL frames are Two way
Exchange the HELLO has a valid exchanged on the link until each communication has
Domain_ID. Switch has received a HELLO with been established
a valid neighbor Domain field.
2. Perform Initial Database Two way LSU SW_ISL frames are Link State Databases
Exchange communication has exchanged containing the Initial have been exchanged.
been established. database.
3. Running State Initial Database Routes are calculated and set up FSPF routes are fully
Exchange completed. within each Switch. Links are functional.
maintained by sending HELLOs
every Hello_Interval. Link
databases are maintained by
flooding link updates as
appropriate.
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 61
Principal Switch; Principal ISLs
Special Paths for Class F Traffic
Principal Switch:
Ensures No Domain ID Conflicts
Time Sync, etc.
Principal ISLs
Establish a Path to Principal
Switch (Principal Links)
Used for FSPF link-state updates,
etc.
Note: SAN traffic can use all links, these
links are only special because they are
designated for fabric-stabilization traffic
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 62
Dynamic Path Selection
Sharing the Load across FSPF Paths
SCSI
Frames
Frames
FC
FC
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 63
Dynamic Path Selection
Sharing the Load across FSPF Paths
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 64
SAN Basics
LAN / SAN Comparison
LAN SAN
Nodes communicate with nodes. Nodes are intrinsically aware of
They are unaware of switching the network infrastructure. They
infrastructure. have conversations with the
network; they rely on the network
for device discovery, change
notification, etc.
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 65
Fibre Channel Services
Understanding the Basics
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 66
Port IDs for Fabric Services
Fibre Channel Well-Known Addresses
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 67
Fabric Login Port
PID=FFFFFE
Fabric Login
FLOGI
The Process of Device Initialization DID=FFFFFE FC SAN
SID=000000
First, the host sends a
HBA F-Port
FLOGI (Fabric Login) to FFFFFE
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 68
Fabric Login Port
PID=FFFFFE
Fabric Login
FLOGI Acc
The Process of Device Initialization DID=010100 FC SAN
SID=FFFFFE
The Fabric Login port
HBA F-Port
responds with the hosts FFFFFE
newly-assigned PID.
Now the host has its PID!
In this case its x010100.
PID tells us:
Domain of the switch its
plugged into is x01
Its physical port number is
x01
(Not hard and fast rule
though)
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 69
Fabric Name Service
PID=FFFFFC
Name Service
The Process of Device Initialization FC SAN
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 70
Fabric Controller
PID=FFFFFD
Fabric Controller
The Process of Device Initialization FC SAN
(FFFFFD).
It registers for State
Change Notification.
Mr. Fabric Controller, if
anything changes in this
network [that I need to know
about] please notify me I am
Registering for State Change
Notification (RSCN).
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 71
Fabric Controller
The Process of Device Initialization FC SAN
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 72
Fabric Controller
The Process of Device Initialization FC SAN
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 73
Fabric Controller
The Process of Device Initialization FC SAN
F-Port N-Port
Queries the NS for
updated list of available
devices
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 74
Fabric Controller
The Process of Device Initialization FC SAN
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 75
Fabric Controller
The Process of Device Initialization FC SAN
F-Port N-Port
Once logged in, the host
can perform a SCSI probe
to detect Logical Unit
Numbers (LUNs).
Once SCSI probe is
complete, the storage can
be formatted with a file
system and mounted by the
hosts operating system.
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 76
Much More
Weve Only Scratched The Surface
There is a lot more to it, but this is a good baseline from which to work.
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 77
DCB and Fibre Channel over Ethernet
One Cable to Rule Them All, One Cable to Bind Them..
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 79
Data Center Bridging (DCB)
The New Sheriff In Town
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 80
Standard SAN vs. Converged SAN
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 81
Example Environment
6 IP Connections and 2 FC per Server
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 82
Same Example Environment
360 Host Side Cables Removed
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 83
Major DCB Enhancements to Ethernet
Whats New?
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 84
DCB Protocol Support
Ethernet DCB
IEEE 802.1Q VLAN Tagging Yes Yes
IEEE 802.1v VLAN Classification by Protocol &
Yes Yes
Port
IEEE 802.1p CoS Yes Yes
802.1x Network Access Control Yes Yes
IEEE 802.1D STP Yes Yes
IEEE 802.1W RSTP Yes Yes
IEEE 802.1s MSTP Yes Yes
IEEE 802.3ad LAG Yes Yes
IEEE 802.3x Flow Control (Link Level Pause
Yes No
Frames)
IEEE 802.1Qbb Priority Flow Control No Yes
IEEE 802.1AB Link Layer Discovery Protocol Yes Yes
IEEE 802.1Qaz DCBX and ETS No Yes
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 85
Priority Flow Control (PFC)
802.1Qbb
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 86
Enhanced Transmission Selection (ETS)
802.1Qbb
Enhanced Transmission
Selection allows
multiple protocols, or
traffic flows, to have
different, or varying,
portions of the
bandwidth available on
the transmission link IP b/w % FCoE b/w %
assigned to them. Ex: 60% Ex: 40%
Think QoS with priority
grouping.
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production
DCBX Operation
LLDP is a one-way,
DCBX
unacknowledged protocol
Feature
DCBX
DCBX builds on top of LLDP to Feature
DCBX
provide SeqNo and AckNo to Feature
create a reliable two-way remoteFeatureChanged
SyncNo, AckNo
handshake
In addition to the LLDP TLVs,
LLDP
DCBX defines an additional TLV DCBX Ext
that contains ETS, PFC, and Control MIB
application configuration
information somethingChangedLocal somethingChangedRemote
LLDP
LLDP MIB
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 88
DCBX Operation
somethingChangedLocal somethingChangedRemote
LLDP
LLDP MIB
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 89
DCBX Configuration via Willing Option
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 90
DCB Initialization
1. Driver Driver
Initialization Initialization
Ethernet Link
MAC MAC
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 91
24 Embedded FCoE Ports (6 shown)
Fibre Channel
NIC MAC
NIC
CNA
Server
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production
FIP Overview
VLAN Discovery Phase
1. CNA sends VLAN Discovery Request to the All-
FCoE Forwarders multicast address
01-10-18-01-00-02
NIC MAC
NIC
CNA
Server
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production
FIP Overview
VLAN Discovery Phase
2. FCF responds with VLAN Discovery response
frame with FCoE-enabled vlans.
Server
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production
24 Embedded FCoE Ports (6 shown)
Fibre Channel
NIC MAC
NIC
CNA
Server
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production
24 Embedded FCoE Ports (6 shown)
Fibre Channel
Server
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production
24 Embedded FCoE Ports (6 shown)
Fibre Channel
FIP FLOGI
NIC MAC
NIC
CNA
Server
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production
24 Embedded FCoE Ports (6 shown)
1 0 (lowest) Background
0 1 Best Effort
2 2 Excellent Effort
Traffic stops on
3 3 Critical Applications
PC Network Traffic 5
6
5
6
Voice, < 10 ms latency
Internetwork Control
all related
P
Priority
Characteristics
7 7 (highest) Network Control
Class3 link
connections
1
0 (lowest)
Background
0
1
Best Effort
FCoE
FC 1G 2G 4G 8G 16G 32G
(Fibre Channel)
1994 1996 1998 2000 2002 2004 2006 2008 2010 2012 2014 2016
FC and Ethernet evolved in parallel paths with FC dominating storage SANs and Ethernet
supporting IP networking
Lossless Ethernet & FCoE open the door for server I/O consolidation
2012 Brocade Communications Systems, Inc. A "Thanks for All the Fish" Production 100