Documente Academic
Documente Profesional
Documente Cultură
pdobrins@brocade.com +7-985-922-61-33
19 2008
Brocade
E P
19 2008
Brocade
19 2008
Brocade
SN IA
Business Solutions
Fi e br
FC-GS
FC-FLA
IA
li Al an
FC
FC-CT
ce
FC-AL
Product Interoperability
FC-FG
FC-LS
Industry Standards
ANSI
19 2008 Brocade
DMTF IETF
5
Multimode Fiber
19 2008 Brocade
Single-mode Fiber
2008 Brocade Communications Systems , Inc. All Rights Reser ved.
Multimode fibre carries numerous modes, or frequencies, and carries short-wave laser light. Single-mode fibre has a smaller core that allows only one mode of light and carries long-wave laser light. Signal loss is caused by dispersion and attenuation. Specific regions in the optical spectrum, windows, have low optical attenuation. 850nm, 1310nm, 1550nm, and 1625nm. Optical power budgets, or link loss budgets, measured in decibels (dBs), are used to manage optical signal loss.
19 2008 Brocade
2008 Brocade Communications Systems , Inc. All Rights Reser ved.
LC Optical Connector
- Standard on 2 Gb/s Switches - Becoming More Popular - Bonded or Unbonded - Usually Purchased as Duplex Cab le Shown as Bonded Duplex
SC Optical Connector
- Standard on 1 Gb/s Switches - Most Widely Used Connector - Bonded or Unbonded - Single or Duplex Cab le Shown as Bonded Duplex
HSSDC GBIC
HSSDC2 SFP
Fibre HBA
19 2008
Brocade
Maximum Distance 9um N/A N/A N/A N/A N/A 30km 50, 80,100km 25km 40km
10
50um/500MHz (OM2) 500m 300m 150m 50m 82m N/A N/A N/A N/A
50um/2000M Hz (OM3) 860m 500m 380m 150m 300m N/A N/A N/A N/A
1 2 4 8 10 2 4 8 10
Brocade
Short Wavelength (SWL) Optic (780 nm 850 nm laser, 50/62.5 m Multimode) Long Wavelength (LWL) Optic (1310 nm laser, 9 m Single-mode) Extended Long Wavelength (ELWL) Optic (1550 nm laser, 9 m Single-Mode) Passive Copper Active Copper
Brocade
2008 Brocade Communications Systems , Inc. All Rights Reser ved.
11
Fibre Channel
Fibre Channel Protocol Layers
Audio/Video Common transport for upper-layer protocols FC-4 Channels Networks FC Services
Streams
IPI
SCSI
HIPPI
SBCCS
802.2
IP
BB
FC - CT
FC-3
Common Services
FC-2
FC-1
FC - PH
FC-0
133 Mbaud
266 Mbaud
531 Mbaud
1,063 Mbaud
2,125 Mbaud
4,250 Mbaud
8,500 Mbaud
10.63 Gbaud
Media:
19 2008
Brocade
12
13
Hardware
19 2008
Brocade
Fibre Channel
Arbitrated Loop
Fibre Channel Arbitrated Loop - the transmit of each port is connected to the receive of the next port Reduced cost path into FC SCSI Replacement May use FC Hub technology Easy for vendors to develop Difficult for customers to deploy Limited possible ports (126) plus the Loop Master (FL_Port) Lower overall throughput 100/200MB maximum bandwidth Limited any to any connectivity - ports on the loop have to arbitrate for control of the loop in order to be able to communicate with a another port on the loop. While this communication is happening all other ports are waiting to get their turn. Primitive flow control causing QOS issues FC-AL was developed to fill the gap between the limited capabilities of point-topoint and the relatively expensive switched fabric. Since only two devices can communicate at a time, the loop is a blocking topology, which means the bandwidth is shared between all devices on the loop.
19 2008 Brocade
2008 Brocade Communications Systems , Inc. All Rights Reser ved.
15
Fibre Channel
Switched Fabric
Large connectivity on nonshared media, which allows concurrent communicating pairs Highest performance level High scalability Good fault isolation Embedded management and services
19 2008
Brocade
16
FC Protocol Levels
ULP
EXCHA NGE (Transaction) EXCHA NGE (Transaction) EXCHA NGE (Transaction)
Sequence
Last Sequence
FC-3
Frame 1
Frame 2
Frame
Data Data Word Word
Frame n-1
Frame n
FC-2
SO F O rde red Se t
Data Word
Data Word
EO F O rde red Se t
8B/10B
8B/10B Characte r
8B/10B Characte r
8B/10B Characte r
FC-1
Characte r
FC-0
bit bit bit bit bit bit bit bit bit bit bit bit bit bit bit bit bit bit bit bit bit bit bit k l m n o p q r s t u v w x y z a b c d e f g
19 2008
Brocade
17
Initiator Node
Target Node SI
Frame Frame
SR Sequence 1 SI
Request Write to Send Chunk Request
Sequence 2 SR
Frames
Exchange
SI SR
Frame
Sequence 3
Sequence 4
SR
SI
19 2008
Brocade
18
* De pends
Exchange ox_id
d ata 1 [se q_ cn t 0
on free buffe rs (i.e. 10MB should be writte n but only 2MB free buffe rs avail. 2MB is se nt back and afte r 2MB the nex t x _fe r ready is sent)
d ata n [se q_ cn t n -1
eq good [s s ta tus
_cn t 0]
19 2008
Brocade
19
Initiator Node SI
Frame Frames
SR
SI
Sequence 3
SR
Frame
SI
19 2008
Brocade
20
19 2008
Brocade
21
Switch
write req (BB -1 )
) ( BB+1 r_rd y x _fe r x _fe r BB-1) rd y ( BB-1) rd y (
Target
If
BB=0 (i.e. lost r_rdy frames) the link will be reseted by sending LinkCreditReset (LR) and LinkCreditResetResponse (LRR).
sequence
sequence
da ta 1( BB - 1)
) ( BB+1 r_rd y
da ta n (BB 1)
r_rd y ) ( BB+1
sequence
da ta n (BB 1)
) ( BB+1 r_rd y -1) od ( B B tus go s ta
sequence
19 2008
Brocade
22
Fibre Channel
Frame Format
FRAME
C E R O C F 4 4
S O F 4
HEADER
PAYLOAD
24
Up to 2112
2148 Bytes
Word H E A D E R Payload
19 2008
Bits 23-16
Bits 7-0
0 1 2 3 4 5 6-n
SEQ_CNT RX_ID
Brocade
23
Fibre Channel
Classes of Service There are 6 classes of service
Class 1 Dedicated connection port to port with ack. It takes all the bandwidth until one port does a port logoff Class 2 It is is connectionless with ack: one <-> many. No bandwidth is allocated or guaranteed. IP uses this class. > Supported by Brocade Class 3 It is connectionless with no ack: buffer to buffer flow control. Errors are handled at higher level. No bandwidth is allocated or guaranteed. FCP uses this Class. > Supported by Brocade Class 4 It is connection oriented with ack. Ues virtual circuites. Can allocate requested amount of bandwidth (used in video) Class 6 Multicast, also known as uni-directional dedicated connection with ack used sometimes in avionics Class F Switch to switch. It is connectionless with ack. > Supported by Brocade
19 2008 Brocade
2008 Brocade Communications Systems , Inc. All Rights Reser ved.
24
16 Avail.
Buffer-toBuffer-to-Buffer Credits are not negotiated! And each receiver on the fiber cable can state a different value!
2008 Brocade Communications Systems , Inc. All Rights Reser ved.
19 2008
Brocade
25
BB Credits BB Credits
BB Credits
ISL
Server BB Credits Director BB Credits Director BB Credits Storage
19 2008
Brocade
26
0.5 BB Credit/Km
1 BB Credit/Km
2 BB Credit/Km
8 Gbps or 800 MBps 10 Gbps or 1000 MBps
4 BB Credit/Km
6 BB Credit/Km
0 km
19 2008
1km
Brocade
2 km
3 km
4 km
27
19 2008
Brocade
28
Fibre Channel
Buffer Credits
S O F HEADER PAYLOAD C E R O C F
BUFFER CREDIT
Buffer credits determine the amount of data in transit at any time. A buffer credit allows a device to send a frame before an R_RDY (receiver ready) is received. As the data requirements increase, so should the buffer credits. The physics of light dictate that a fiber has a latency of 5ns/meter, or 5usec/km. The round-trip latency over 10km would be 100usec. The longer the distance, the more credits needed. When talking about speeds of 2Gbps, the credits must be doubled, since the time is halved. HBAs need to be able to support high numbers of credits. Some HBAs store I/O information, others relay it to the server. This can add to the throughput latency. More expensive HBAs will have a context cache to hold such information.
19 2008 Brocade
2008 Brocade Communications Systems , Inc. All Rights Reser ved.
29
19 2008
Brocade
30
19 2008
Brocade
31
19 2008
Brocade
32
Fibre Channel
Port Types
Device Ports
N_Port - Node Port, a Fabric device directly attached NL_Port - Node Loop Port, a device attached to a loop
Switch Ports
U_Port - Universal Port, a port waiting to become some other port type G_Port - Generic Port, a port waiting to be an E or F_Port F_Port - Fabric Port, a port to which an N_Port attaches FL_Port Fabric Loop Port, a port to which a loop attaches E_Port Expansion port used for inter-switch links
19 2008
Brocade
33
Fibre Channel
Expansion Port E_Port
Allows two switches to be connected to create a multi-switch Fabric Connections are called ISLs (Inter Switch Links) Also used to create trunks (eight ISLs combined) Supports 16 virtual channels per ISL
19 2008
Brocade
34
Fibre Channel
Brocade Specialization Virtual Channels
Switch
19 2008
Brocade
35
Fibre Channel
Brocade Specialization Virtual Channels (Cont.)
Each physical link is partitioned into eight virtual channels Each VC has independent flow control Bottlenecks on one VC do not impact other VCs An anti-starvation mechanism prevents blocking
Initiators E_Port
E_Port
Targets
19 2008
Brocade
36
PORT ID: XX YY ZZ where: XX Domain is a value between 0x1 to 0xEF YY ZZ is the port number (0-255) is the AL_PA for a loop device or 00 for a F_Port or any Value for NPIV
19 2008
Brocade
37
Fibre Channel
Address Scheme
NN NN 00
Where NN NN 00 = the address of any Fabric-attached device that has logged into the Fabric. These devices use all 24 bits of the address.
LL LL PP
Where LL LL is assigned by the Fabric at login; and PP = the local loop address (AL_PA). These devices use all 24 bits of the address, and the last 8 bits is the AL_PA.
38
19 2008
Brocade
Fibre Channel
Addressing Examples
Private 00 00 CA NL NL NL Fabric 09 04 00 04 05 06 07 F N Public 09 0E 04 Public 09 01 01
FC-AL
FL NL
FL 00 01 02 03 15 14 13 12
Switch Domain #9
11 10 09 08
Private 00 00 08
F N
Fabric 09 0A 00
39
19 2008
Brocade
Fabric Controller
SCR registrations, RSCN messages delivery
FSPF Routing
Scalability and Cascading, Any port to any port Redundant, No single points of failure
Zoning
WWN and Port based Software and Hardware Enforcement
19 2008 Brocade
2008 Brocade Communications Systems , Inc. All Rights Reser ved.
41
Fibre Channel
Recognizing Well Known Fabric Addresses
19 2008
Brocade
42
19 2008
Brocade
43
Port attributes
Port Identifier (Native port address ID) Port Name (World Wide Name) Class of Service (2, 3) FC-4 Types (SCSI, IP) Port Type (N, NL) Symbolic Port Name (free-form information)
Node attributes
Node Name (World Wide Name) Fibre Channel IP Address Initial Process Associator Symbolic Node Name (free-form information)
19 2008 Brocade
2008 Brocade Communications Systems , Inc. All Rights Reser ved.
44
19 2008
Brocade
45
HBAs need to be good citizens to work properly with the Name Server. The attributes of a good citizen are:
- It supports RSCNs - It queries the Name Server for available ports - It accesses only ports that are defined by the Name Server
Functional View
Fabric Controller
19 2008
Brocade
46
The switch will deliver an RSCN to an Nx_Port only if the following happens: The Nx_Port has registered (using SCR) to receive RSCNs The Nx_Port is still logged into the Fabric The registration function matches the RCSN Type The domain and area fields of the affected Nx_Port are different from the destination Nx_Port
Sent to an end device at most once every 500 ms Three formats of RSCNs: Single PID (same as existing behavior) Multiple PID (multiple PIDs are aggregated into one payload) Fabric RSCN (single fabric format RSCN sent)
19 2008 Brocade
2008 Brocade Communications Systems , Inc. All Rights Reser ved.
47
SCN State Change Notification, used for internal state change notifications only. This is the switch logging that the port is online or is an Fx_Port. SCR State Change Registration, issued (requested) by an Nx_Port. RSCN Registered State Change Notification, issued (responded) by the Fabric or an N_Port.
19 2008
Brocade
48
Inter-switch Links (ISLs) E_Port-to-E_Port links Communicates using Class F service Will be segmented if link parameters are incompatible Principal Switch Selected when the fabric initializes, before routing is established Manages the assignment of unique domain IDs Provides time synchronization to all other switches in the fabric Principal ISL ISL used to communicate between the Principal Switch and other switches in the fabric
19 2008
Brocade
50
Domain 4
Domain 3
Domain 6
Domain 2
Domain 5
Domain 1
19 2008
Brocade
51
Domain 4
52
12 3
14 7 13
11
19 2008
Brocade
53
A route is a map to reach the next hop between an input port and an output E_Port
Domain 1 14 7 Domain 3 13
12 3 Domain 2 11
13 4
19 2008
Brocade
54
Routing Algorithm Uses cost/weight and bandwidth Can apply static routes if needed
Automatic Failover Fault detection 150ms Self heals in 500ms Alternate route live in 650ms
19 2008
Brocade
55
19 2008
56
The routing policy is responsible for selecting a route based on one of two user-selected routing policies
Port-based Routing Exchange-based Routing
2 Gbit/sec ASIC routing is handled by the Fabric Shortest Path First (FSPF) protocol and uses only the port-based routing policy 4 and 8 Gbit/sec ASICs use the FSPF protocol and either portbased routing or exchange-based routing (default) Each switch has its own routing policy Different policies can exist in the same fabric
19 2008 Brocade
2008 Brocade Communications Systems , Inc. All Rights Reser ved.
57
FSPF calculates the cost of each link and determines the lowest cost path
Within each switch, the input port from the source is assigned to an output port toward the destination (a route) Routes are allocated via round-robin assignment Chosen routes are used until one of the devices in the fabric goes offline or the fabric changes Changes in fabric, when Dynamic Load Sharing is enabled, cause FSPF to recalculate the routes and may reassign the output port to better distribute devices across equal cost routes
Dynamic Load Sharing (DLS) and In-Order Delivery (IOD) options 2 Gbit/sec ASICs support only the port-based routing policy 4 and 8 Gbit/sec ASICs support port-based routing and exchange-based routing
19 2008 Brocade
2008 Brocade Communications Systems , Inc. All Rights Reser ved.
58
Round robin allocates a route from shortest equivalent paths based on link cost FSPF default link costs 1000 at 1 Gbit/sec 500 at 2 / 4 / 8 Gbit/sec
19 2008
Brocade
59
Source ID and destination domain are used to allocate routes Devices are round-robin allocated to available equal cost routes It is possible to have congestion, if too many high I/O requiring devices are allocated to a single route
19 2008
Brocade
60
Frames in an exchange are identified by common characteristics called frame parameters Exchange-based routing policy exchange frame parameters include: (DID/SID/OXID)
The default policy on 4 / 8 Gbit/sec switches Available on 4 / 8 Gbit/sec switches only
Cannot create static routes DLS always is enabled and it cannot be switched off
19 2008 Brocade
2008 Brocade Communications Systems , Inc. All Rights Reser ved.
61
19 2008
Brocade
62
Paths and link connections can be verified using switchshow, fcping, and pathinfo The FSPF protocol determines routing on a local basis Fabric topology information is known at every switch displayed with urouteshow, topologyshow & other routehelp commands No global, edge-to-edge routing table is maintained For a listing of route-related commands use routehelp
19 2008
Brocade
63
dlsSet This command allows load sharing to take place when a fabric change occurs. dlsReset This command prevents load sharing from taking place when a fabric change occurs. dlsShow This command displays the state of the Dynamic Load Sharing option.
19 2008 Brocade
2008 Brocade Communications Systems , Inc. All Rights Reser ved.
64
00 01 02 03 15 14 13 12 11 10 09 08 04 05 06 07 15 14 13 12
00 01 02 03 04 05 06 07 11 10 09 08
65
00 01 02 03 15 14 13 12 11 10 09 08 04 05 06 07 15 14 13 12
00 01 02 03 04 05 06 07 11 10 09 08
Host 2 (Off-Line)
Host 1
19 2008 Brocade
2008 Brocade Communications Systems , Inc. All Rights Reser ved.
66
00 01 02 03 15 14 13 12 11 10 09 08 04 05 06 07 15 14 13 12
00 01 02 03 04 05 06 07 11 10 09 08
Host 2 (Off-Line)
Host 1
19 2008 Brocade
2008 Brocade Communications Systems , Inc. All Rights Reser ved.
67
iodSet This command enforces in-order delivery of frames during fabric topology changes. iodReset This command allows out-of-order delivery of frames during fabric topology changes. iodShow This command indicates if IOD is turned on or not.
19 2008
Brocade
68
Host 3
00 01 02 03 15 14 13 12 11 10 09 08 04 05 06 07 15 14 13 12
00 01 02 03 04 05 06 07 11 10 09 08
Host 2
1
Frames In Queue
Host 1
19 2008 Brocade
2008 Brocade Communications Systems , Inc. All Rights Reser ved.
69
Host 3
00 01 02 03 15 14 13 12 11 10 09 08 04 05 06 07 15 14 13 12
00 01 02 03 04 05 06 07 11 10 09 08
Host 2 (Off-Line)
1
Frames In Queue
Host 1
19 2008 Brocade
2008 Brocade Communications Systems , Inc. All Rights Reser ved.
70
Host 3
00 01 02 03 15 14 13 12 11 10 09 08 04 05 06 07
00 01 02 03 15 14 13 12 11 10 09 08 04 05 06 07
Host 2 (Off-Line)
1
Frames In Queue
Host 1
19 2008 Brocade
2008 Brocade Communications Systems , Inc. All Rights Reser ved.
71
linkCost <port #>,<value> sw2:admin> linkCost 3,250 The default metrics are:
1000 at 1 Gbps 500 at 2/4/8 Gbps
19 2008
Brocade
72
Domain 1 has 3 routes to Domain 3 2 routes have total metric = 500 1 route has total metric = 1000 (never used) Only routes with least total metric will be kept in routing tables
0 50
00 01 02 03 15 14 13 12 Domain 2 11 10 09 08 04 05 06 07
00 01 02 03 15 14 13 12 Domain 3 11 10 09 08 04 05 06 07
500
73
04 05 06 07
Command invoked from Domain 1: sw1:admin>linkCost 10,250 Command invoked from Domain 2: sw2:admin>linkCost 7,250
0 50 0 50
00 01 02 03 15 14 13 12 Domain 2 11 10 09 08 04 05 06 07
00 01 02 03 15 14 13 12 Domain 3 11 10 09 08 04 05 06 07
250
74
04 05 06 07
0 50 0 50
00 01 02 03 15 14 13 12 Domain 2 11 10 09 08 04 05 06 07
00 01 02 03 15 14 13 12 Domain 3 11 10 09 08 04 05 06 07
250 500
75
19 2008
ycnetaL latoT
~4-13,000 Micro-seconds
2 microseconds ~1000
microseconds
76
SAN Design
Geographical considerations
Storage over MAN/WAN
78
Fabric Zoning
The server in the red zone sees one loop of disks The server in the blue zone sees two storage arrays The server in the green zone sees one loop and one array No server sees loop 2
19 2008 Brocade
2008 Brocade Communications Systems , Inc. All Rights Reser ved.
79
Hardware Enforcement
Available through ASIC hardware logic checking Denies illegal access from bad citizens More secure then session
19 2008
Brocade
80
19 2008
Brocade
81
Condor-ASIC
82
Optical Budget
Basic Optical Budget = Output Power Input Sensitivity
This is a parameter used in the design of optical transmission networks. It is the difference between output power level of the source and the receiver sensitivity. It is generally measured in dB (Decibel). Pout = -15 dBm R = -22 dBm
Budget = 7 dB (28km/1550nm)
19 2008
Fiber attenuation (Loss = 0.25db/km for 1550nm) Splices Patch Panels/Connectors (add 0.5db per connector) Optical components (filters, amplifiers, etc) Bends in fiber Contamination (dirt/oil on connectors)
Brocade
2008 Brocade Communications Systems , Inc. All Rights Reser ved.
83