Storage Area Network (SAN)
Storage Area Network (SAN)
Storage Area Network (SAN)
Outline
Shared Storage Architecture
Direct Access Storage (DAS)
SCSI
RAID
Network Attached Storage (NAS)
Storage Area Network (SAN)
Fiber Channel and
Fiber Channel Switch
2
Application
File/record layer
Database
(dbms)
File system
(FS)
Host
Network
Block
aggregation
Device
Block layer
4
2010+
Quick Overview
Storage
Type
Data
Transmissio
n
DAS
NAS
SAN
sectors
shared
files
blocks
TCP/IP,
IDE/SCSI
Ethernet
Fibre
Channel
Access
Mode
clients
or
servers
clients
or
servers
servers
Capacity
(bytes)
109
109 - 1012
1012
Complexity
Easy
Moderat
e
Difficult
DAS
NAS
FC-SAN
clients
servers
FC
Switch
storage
9
Used
IDE Disk Array
Small Server
SCSI
Channel
clients
Large Server
Used
Used
10
SCSI Distribution
Architecture
Client
(Initiator)
response
Storage Device
(Target)
12
SCSI Client/Server
Architecture
Client
(Host)
Server
(Storage
Device)
13
14
FCP
FCP FC
SCSI over
SCSI over FC
Network
Transport
iSCSI
iSCSI
SCSI over
TCP/IP
SCSI over TCP/IP
TCP
TCP
IP
IP
Physical
interface
Parallel SCSI
Parallel
SCSI
Interfaces
Interfaces
Fibre Channel
Fibre Channel
Ethernet
Ethernet
15
SCSI Domain
SCSI Service Delivery Subsystem
16
RAID Functions
Striping
Write consecutive logical byte/blocks on consecutive physical disks
Mirroring
Write the same block on two or more physical disks
Parity Calculation
Given N disks, N-1 consecutive blocks are data blocks, Nth block is for
parity
When any of the N-1 data blocks is altered, N-2 XOR calculations are
performed on these N-1 blocks
The Data Block(s) and Parity Block are written
Destroy one of these N blocks, and that block can be reconstructed
using N-2 XOR calculations on the remaining N-1 blocks
Destroy two or more blocks reconstruction is not possible
18
1 1 1
disk 1: odd bits
001
110
Example 2: 1 0 1 0 1 1
1 0
3k+1 bits
01
3k+2 bits
11
3k bits
11
RAID Types
RAID 0
Stripe with no parity (see next slide for figure)
RAID 1
Mirror two or more disks
RAID 3
Synchronous, Subdivided Block Access; Dedicated
Parity Drive
RAID 5
Like RAID 4, but parity striped across multiple drives
20
RAID 0
RAID
1
Disk Mirror
21
RAID
0+1
(or 1+0)
22
RAID 3
RAID
5
23
SMB
NetBIOS
TCP
IP
802.
3
26
NFS
TCP
IP
802.3
27
Clients
Servers
Storage Devices
28
Case Study
Product: MicroNet
ProtinumNAS
Storage: 1TB and more
Price: < $1,000
Protocol: CIFS/SMB,
RAID
29
Discussion
Need: a lot more storage (hundreds of GB)
and a scalable solution (~2 TB) for home
users
USB (USB 2.0) to a server, up to 480M bps
Firewire (IEEE 1394) to a server, up to 3.2G bps
SCSI to a server: up to 320MB (3208 bps)
NAS: no need for a server
SAN Benefits
Storage consolidation
Data sharing
Non-disruptive scalability for growth
Improved backup and recovery
Tape pooling
LAN-free and server-free data movement
High performance
High availability server clustering
Data integrity
Disaster tolerance
Ease of data migration
Cost-effectives (total cost of ownership)
32
Fibre Channel
Fiber Channel is well established in the open
systems environment as the underlining
architecture of the SAN.
Fibre Channel is structured with independent
layers, as are other networking protocols.
There are five layers, where 0 is the lowest
layer. The physical layers are 0 to 2. These
layers carry the physical attributes of the
network and transport the data created by
the higher level protocols, such as SCSI,
TCP/IP, or FICON.
34
FC Protocol Layers
Gbau
d
Gbau
d
FC Layers: 0 & 1
37
FC Layer 2
Port_ID Port_ID
38
FC Address
FC node a node has many ports
FC port the end point of a link (either
transmission or reception).
Port ID: a unique 24-bit address for a
port
In Frame Header (see Slide-49), there
are two fields: Source address
(transmission port) and Destination
address (reception port)
39
FC Port Naming
Fiber Channel
Host
N-Port
Fiber Channel
Switch
F-Port
E-Port
Fiber Channel
Switch
E-Port
F-Port
Fiber Channel
Stores
N-Port
41
FC Layers 3 & 4
(one)
42
SAN Topologies
Fibre Channel based networks
support three types of topologies:
Point-to-point
Loop (arbitrated) shared media
Switched
43
FC - Point-to-Point
Data
Data
SCSI
SCSI
FC
FC
45
Arbitrated Loop
Shared Media Transport
Similar in concept to shared Ethernet
Tx
Tx
Rx
Tx
Rx
Tx
Rx
47
48
RAID Controller
RAID Controller
SCSI Disks
Fibre Channel
Loop
49
Switched FC SAN
Fibre Channel-switches function in a manner
similar to traditional network switches to provide
increased bandwidth, scalable performance, an
increased number of devices, and, in some
cases, increased redundancy. Fibre Channelswitches vary in the number of ports and media
types they support.
Multiple switches can be connected to form a
switch fabric capable of supporting a large
number of host servers and storage subsystems
50
FC Switched SAN
Servers
Fiber Channel
Switch
Clients
Fiber Channel
Stores
51
Switch
Data
Storage
Device
Data
SCSI
SCSI
SCSI
FC
FC
FC
52
Fiber Channel
Switch
Clients
Fiber Channel
Stores
53
Repeat Overview
Storage
Type
Data
Transmissio
n
DAS
NAS
SAN
sectors
shared
files
blocks
TCP/IP,
IDE/SCSI
Ethernet
Fibre
Channel
Access
Mode
clients
or
servers
clients
or
servers
servers
Capacity
(bytes)
109
109 - 1012
1012
Complexity
Easy
Moderat
e
Difficult
54
55
Course Outline
IP over FC (RFC 2625)
IP-SAN
iSCCI (RFC 3720)
Storage Virtualization
56
SAN
FC-based
Storage
Device
Data
FC/IP
Gateway
Data
IP
IP
IP
IP
L2
L2
PHY
PHY
RFC
2625
FC
RFC
2625
FC
FC
SAN
58
FC/IP
Gateway
FC/IP
Gateway
Data
Data
IP
IP
IP
IP
IP
IP
L2
L2
L2
PHY
RFC
2625
FC
L2
PHY
RFC
2625
FC
PHY
PHY
FC
SAN
59
IP-SAN
60
61
IP Network Capabilities
62
IP-SAN Protocols
63
IP - SAN
IP
IP
FC
-SAN
Storage Devices
64
IP
IP
TCP
TCP
FCIP
FCIP FC
FC SCSI
SCSI
Data
Data
65
66
iSCSI Benefit
67
68
iSCSI
IP
FC
-SAN
iSCSI
IP
iSCSI
69
iSCSI
NFS
70
Conclusion:
1. Comparable performance in character read/write and
2. Significant advantage of iSCSI in block read (20-25%
71
72
73
Both iSCSI and SAN use Block I/O to transport data, whereas
NAS uses File I/O.
SAN offers better performance (c.f. NAS), but is more
expensive and requires a higher skill set to implement. iSCSI
and NAS offer better pricing and skills may already be in
place to implement them.
Both SAN and iSCSI offer the performance benefit of Block I/O.
74
FC over IP
SAN
Data
IP
SAN
SCSI
FCP
FC 0-2
Data
SCSI
FCIP
FC 02
FCIP
TCP
TCP
IP
IP
IP
L2
L2
L2
PHY
PHY
PHY
FC 02
FCP
FC 0-2
75
Storage Virtualization
PHYSICAL
LOGICAL
Virtualization
FC
-SAN
IP
Storage Virtualization
Definition: storage virtualization hides the
physical storage from applications on host
systems, and presents a simplified (logical)
view of storage resources to the applications.
Virtualization allows the application to
reference the storage resource by its common
name where the actual storage could be on a
complex, multilayered, multipath storage
networks.
RAID is an early example of storage
virtualization.
77
Virtualization Intelligence
Host-Based: storage virtualization could be
implemented on the host through Logical Volume
Management (LVM) which provides the logical view of
the storage to the host operating system.
Switch-based: intelligence of storage virtualization
could be implemented on the SAN switches. Each
server is assigned a Logical Unit Number (LUN) to
access the storage resources.
Switch-based virtualization could be in dual configuration for
high availability.
Pros: ease of configuration and management ;
redundancy/high availability
Cons: potential bottleneck on the switch; higher cost
78
Storage Virtualization
LVM
LVM
LUN
SAN Switch
RAID
RAID
JBOD
RAID
RAID
JBOD
79
SAN Challenges
Standards
ANSI T10 (SCSI) ANSI T11 (FC), IETF (IP-SAN),
Ethernet (IEEE 802.3), SNIA, etc.
Interoperability
High availability and data synchronization
between remote locations
Convergence
DAS, NAS, FC-SAN => IP-SAN
Management
Security
80
Summary
Needs for large storage continual growth
109 (G) => 1012 (T) => 1015 (P) => 1018 (E) .
81