SAN Original
-
Upload
manas-bholo -
Category
Documents
-
view
216 -
download
0
Transcript of SAN Original
-
8/4/2019 SAN Original
1/40
Storage Area Network,an Introduction of basic
conceptsAntonella Corno CCIEStorage CM
-
8/4/2019 SAN Original
2/40
Summary
What is a SAN
Basic Building Blocks of a SAN
A zoom into the Storage Architectures
SAN elements and architecture Basic Protocols and Mechanisms
Who is who: Standardization Bodies andIndustry Organizations
-
8/4/2019 SAN Original
3/40
Summary
What is a SAN
Basic Building Blocks of a SAN
A zoom into the Storage Architectures
SAN elements and architecture Basic Protocols and Mechanisms
Who is who: Standardization Bodies andIndustry Organizations
-
8/4/2019 SAN Original
4/40
Definition
A SAN (Storage Area Network) is a networkdesigned to transfer data from servers totargets, and it is alternative to a directlyattached target architecture, or to a DAS
architecture, where the storage is connected tothe servers on general purpose networks
Additional definitions of a SAN imply that theSAN should also be highly performing, andshould be such to enable storage devices to
communicate with one another and withcomputer systems
-
8/4/2019 SAN Original
5/40
Different technologies
Multiple technology can be used when buildinga SAN; traditionally the dominant technology isFiber Channel, but IP based solutions are also
quite popular for specific applications
The concept of SAN is also independent fromthe devices that are attached to it. Can bedisks, tapes, RAIDs, file servers, or other
-
8/4/2019 SAN Original
6/40
SAN and NAS: network andnode
SAN vs NAS: while a SAN is a networkconnecting storage subsystems, the NAS
is a storage subsystem, making use of ageneral purpose network.
The SAN is an extension of the diskchannel outside the server, while the NASis a disk subsystem connected to the
servers, in most cases via an IP network.
-
8/4/2019 SAN Original
7/40
Summary
What is a SAN
Basic Building Blocks of SAN
A zoom into the Storage Architectures
SAN elements and architecture Basic Protocols and Mechanisms
Who is who: Standardization Bodies andIndustry Organizations
-
8/4/2019 SAN Original
8/40
SAN interconnections
As said, different technologies can be used tointerconnect the network nodes, extending theDisk interface outside the server
Fiber Channel is a dedicated channel based high
performance and highly available network basedon Fiber Channel Protocols
iSCSI is SCSI protocol carried over an IP network.In this case the network infrastructure can beshared with other applications
SCSI network is an extension of the internal SCSIbus, used for short distances due to its parallelarchitecture
-
8/4/2019 SAN Original
9/40
Initiator and Target in FCSANs
Fiber Channel Node: can be the source or thedestination of information
If the node is an Initiator (source), it is usuallyconnected to the network via an HBA (Host Bus
Adaptor), which is the physical connectioninterface, and can be based either on electrical or(more often) optical technology
If the node is a target (destination), it can be aJBOD (Just a Bunch of Disks), a RAID (Redundant
Array of Independent Disks), or a Storage array
-
8/4/2019 SAN Original
10/40
Hard Drives
The basic storage element is an Hard Drive.They are made into complex devicescomposed of platters, heads, cylinders andtracks
The Logical Block Addressing (LBA)addresses the sector within the disk. Moderndrives have 512 byte sectors
File systems arrange files into sectors sothat they can be stored and retrieved
The File system usually deals with clusters ofblocks and uses a FAT (File Allocation Table)to map a file to the sectors
-
8/4/2019 SAN Original
11/40
FATCluster Free / Next / Final LBA
0 1 0
1 5 4
10 14 40
11 free 44
12 free 48
13 free 52
14 final 56
62 free 248
63 free 252
File Allocation Table
-
8/4/2019 SAN Original
12/40
JBODs and RAIDs
While a Jbod is a group of disks packaged in anenclosure and connected via a FC loop, a RAID isa more sophisticated device, that may improveperformance and/or reliability of the storagedevice
RAID is improving performances reading/writinginformation from a set of disks at the same time,and reliability adding parity and/or mirroringinformation on multiple disks of the array
RAID can be performed in HW via a controllerembedded in the enclosure or software on thehost
-
8/4/2019 SAN Original
13/40
RAID 0 or striping
Data are split onto different disks forperformance increase: performancesdepend on information unit size vs stripesize
No redundancy added Cost is limited (no additional hardware)
-
8/4/2019 SAN Original
14/40
RAID 1 - mirroring
Data are replicatedon multiple disks forredundancy
Performance may beimpacted if copy isdone serially
Increase of costproportional to theamount ofredundancy
More complexalgorithm to managemultiple copies
-
8/4/2019 SAN Original
15/40
RAID 3
Data protection via ECC(Error Correction Controlcode)
Good redundancy
Performance not changedfor reads but lower forwrites since the ECC needto be calculated
Cost is only 1 extra diskfor the entire logical array
-
8/4/2019 SAN Original
16/40
RAID 5
Data protection withECC, but parity isspread on the array
Good redundancy Same speed reads,
slower writes
One disk per array of
added cost
-
8/4/2019 SAN Original
17/40
Summary
What is a SAN
Basic Building Blocks of a SAN
A zoom into the Storage Architectures
SAN elements and architecture Basic Protocols and Mechanisms
Who is who: Standardization Bodies andIndustry Organizations
-
8/4/2019 SAN Original
18/40
RAID array vs DAS vs NAS vsSAN (I)
A RAID array is an enclosure containinga set of disks and a RAID controllerproviding in hardware the features of aRAID 0 5 and usually some cachingengine
A DAS (Direct Attached Storage) is anarchitecture for which the storage isprivately attached to the servers:
cannot be shared, it is hard to scale,expensive and complex to manage. 80%of the market it is still DAS
-
8/4/2019 SAN Original
19/40
RAID array vs DAS vs NAS vsSAN (II)
NAS (Netwrok Attached Storage) is anarchitecture for which the storage isattached to the servers via a multi-purpose network, and it is accessed at afile level via protocols like CIFS or NFS
The network is usually an IP network
TCP can be tuned to optimize storagetransport
-
8/4/2019 SAN Original
20/40
DAS vs NAS architecture
FC
Clients
Direct AttachedStorage
Application
Servers
Win2k Linux Unix Unix
Tape
FC
LinuxWin2k
SCSI
LAN
Application
ServersNAS Appliances
orNAS Head Ends
Generic GenericWin2k Linux Unix
LAN
-
8/4/2019 SAN Original
21/40
SAN architecture
Storage is accessedat block level not atfile level
Very high
performances Storage is shared
Good managementtools
Interoperabilityissues
Storage Area Network (SAN)
DatabaseServers
BlockStorageDevices
FibreChannel
SAN
Clients
LAN
-
8/4/2019 SAN Original
22/40
Summary
What is a SAN
Basic Building Blocks of a SAN
A zoom into the Storage Architectures
SAN elements and architecture Basic Protocols and Mechanisms
Who is who: Standardization Bodies andIndustry Organizations
-
8/4/2019 SAN Original
23/40
SAN
SAN is the convergence of an almost-error-free, very reliable interface and theadvantage of a networking infrastructure
It takes advantage of a controlled andreliable data transfer interface and addsthe capability of switching and sharingproper of the networks
Relies on at least 10 to -12 errorprobability infrastructure
-
8/4/2019 SAN Original
24/40
SAN basic requirements
The concept of SAN is to bring a block levelinterface on a very reliable support, and addthe advantages of a networkinginfrastructure
Need to be scalable in terms of speed, fastand efficient getting rid of all the low levelerror recovery mechanisms: will treat theerrors as exceptions at application orfirmward level
Allow extensions like long distance, multiprotocol support (SCSI, ESCON, TCP/IP..), relyon great simple connectivity
-
8/4/2019 SAN Original
25/40
SAN supported topologies:point to point
Point to point is thesimplest topology forvery limitedconnectivity needs
It guarantees in orderdelivery and fullbandwidth access
The application canhandle any multipathconnectivity to a set ofdisks in case this isprovided, since noother elements arepresent in this topology
TX TX
RX RX
-
8/4/2019 SAN Original
26/40
SAN supported topologies:arbitrated loop
Designed to scale to a limited number of nodes(up to 127)
Low cost (no interconnecting devices needed)
Arbitration protocol is designed to manage
media sharing across nodes; may be disruptivewhen a node gets added/removed from loop andloop initialization protocol kicks in
A arbitrating hub can be used instead of adistributed protocol
Each node can bea server or a storage devic
-
8/4/2019 SAN Original
27/40
SAN supported topologies:switched fabric
In a switched fabric topology,switching element get addedto the nodes to allowinterconnections via point-to-point links
Extended number of devices(potentially thousands) andgreater distances can beachieved
Scalable, robust and reliablearchitecture, but the cost of
the interconnection devicesadds on Switched Topology
BlockStorageDevices
FibreChannelSAN
-
8/4/2019 SAN Original
28/40
-
8/4/2019 SAN Original
29/40
Fiber Channel and theothers
Fiber Channel and SCSI: they are notalternatives: FC will act as a transport layerfor SCSI, amongst other protocols
Fiber Channel and IP: sometimes that are
alternatives, sometimes not. While FC isused instead of a TCP/IP network to connectreliable the servers to the storage, IP canstill be used to extend FC networks overlong geographical distance; in turn in someapplications, FC can be used to carry IPtraffic (mostly for in-band management)
-
8/4/2019 SAN Original
30/40
FC protocols and services
FC offers a layer 2 transport service, and uses layer 3services to provide it, and to map upper layer protocolslike SCSI, HIPPI, IP or others
FC0 defines the physical interface (data rates,connectors, media, distances, power and so on
FC1 deals with encoding/decoding of bits on the physicalinterface and low level signalling
FC2 defines framing and classes of services
FC3 provides common services like multicasting orpossibly encryption
FC4 maps upper layer protocols onto Fiber Channel FC-0 to 2 are the core of the FC link protocol, and will be
examined in more detail in the next set of slides
-
8/4/2019 SAN Original
31/40
FC0: physical interface
FC supports many different variations of physicalinterfaces: Electrical and Optical both Multi Modeand Single Mode. They vary in terms of cost andperformances (distance and speed)
The basic physical access to a FC port is so calledGBIC (Gigabit Interface Connector) which is a hot
swappable connector supporting all types of media,and comes in different form factors. The MIA(Media Interface Adaptor) is an electrical DB-9 tooptical interface converter, that can be appliedexternally to the enclosure (disk or host)
Fiber channel connections are always bi-directional,
point to point, serial. No drops or taps areconsidered in FC All links should be capable of BER (Bit Error Rate)
of 10 to -12 or less
-
8/4/2019 SAN Original
32/40
FC-1: Line encoding
FC-1 is in charge of bit transmission on the line. Since FC usesa serial transmission, an encoding in needed in order totransmit the clock signal along with the data. This is achievedmapping any pattern of 8 bits into a 10 bit pattern that willguarantee enough signal transitions, and so enough clocksignal power on the line. The clock signal is filtered andrecovered at the receiving point, and the bits are decoded
Not all the possible 10 bits sequences are used: only the onesthat guarantee enough transitions are allowed. The others areinvalid chars. Each 8 bits char has 2 coding on 2 10 bit patternswith opposite disparity (numbers of 0s and 1s), or 1 coding ifthe 10 bit pattern has no disparity (Same number of 0s and 1s)
To avoid accumulation of DC at the receiver, the encoderremembers every time it has transmitted a char with disparity
(different numbers of ones and zeros) and will send the nextchar coded with opposite disparity. This mechanism is calledrunning disparity
-
8/4/2019 SAN Original
33/40
-
8/4/2019 SAN Original
34/40
FC-1: Transmission wordsand Ordered sets
The transmitted words are composed by asequence of 4 characters.
The first character of the sequence will tell ifthe remaining three need to be interpreted ascontrol signals or data. If it is a K28.5 then thenext 3 char are to be considered signals, andthe word is called ordered set
The ordered set are divided into PrimitiveSignals (fill words and non-fill words), Framedelimiters (SOF and EOF) and Primitive
Seqiences (if they are repeated multiple timeon the line like NOS, OLS, LR, LRR, LIP, LPB,LPE)
-
8/4/2019 SAN Original
35/40
FC-2: the frames
Before any data is echanged, a sessionneed to be established between the endports, FC-2 is in charge of login session
Once the link is established, FC-2 willhandle frames by using sequences andexchanges
FC-2 is also defining the frame format forFC
It also handles flow control and class ofservices
-
8/4/2019 SAN Original
36/40
FC-2 Session
Before any data can be exchanged between endpoints, a session need to be established. Duringlogin the end nodes enchange information likeidentification, credits (number of outstandingframes supported)
When the session is not needed, it gets cleared by alogout operation
Within the session each operation happens withinan exchange, that is a set of frames logicallyrelated to each other (example all the framesimplementing a SCSI operation)
A set of frames that constitutes a high-level
protocol information unit, is grouped into asequence. An exchange can host multiplesequences
An FC frame is 2112 bytes long, and containsaddressing fields as well as control fields likeexchange ID, sequence ID
-
8/4/2019 SAN Original
37/40
FC-2: flow control
Flow control is performed in FC via use of Credits.
At the beginning of a transmission session, the twoend point will negotiate how many frames the sendercan send before they get acknowledged by thereceiver (end to end credits end to end flow
control)
If there are connection elements in between the twoend point the credits will also be negotiated at eachlink (buffer to buffer credits)
Each end point of a link will acknowledge receipt of
the frames sending back credits (link by link or endto end) to the sender, which is now allowed to sendmore frames
-
8/4/2019 SAN Original
38/40
FC switching fabricarchitecture services
FC switching fabric relies upon a number ofsoftware applications to deliver the transportservices to the mapped upper level protocols
Amongst the many the most relevant ones are
Zoning, Alias services, Domain Controller, NameServer, FSPF
Those services allow the fabric to function withno disruption, and maintain a consistent set ofdistributed information across the nodes of the
fabric, and the end nodes (hosts and storage)
-
8/4/2019 SAN Original
39/40
Summary
What is a SAN
Basic Building Blocks of a SAN
A zoom into the Storage Architectures
SAN elements and architecture Basic Protocols and Mechanisms
Who is who: Standardization Bodies andIndustry Organizations
-
8/4/2019 SAN Original
40/40
Standardization Bodies andIndustry Organizations
FC is standardized by ANSI, in T11 committee (www.T11.org)
SCSI is standardized by ANSI, in T10 committee (www.T10.org)
IETF is dealing with iSCSI, FCIP, IPFC (IP/FC protocols) requestsfor comments (RFC) (www.ietf.org)
SNIA is the Storage Networking Industry Association and it isnot in charge of standardization (www.snia.org)
FCIA is the Fiber Channel Industry Association and it is not incharge of standardization (www.fibrechannel.org)
UNH is University of New Hampshire, and it is traditionallyinvolved with interoperability third party testing. It is not astandard body (http://www.unh.edu)