You are on page 1of 196

ICSNS

Implementing Cisco Storage Networking Solutions


Volume 3
Version 3.0

Student Guide
Text Part Number: 67-2461-01

DISCLAIMER WARRANTY: THIS CONTENT IS BEING PROVIDED AS IS. CISCO MAKES AND YOU RECEIVE NO WARRANTIES IN CONNECTION WITH THE CONTENT PROVIDED HEREUNDER, EXPRESS, IMPLIED, STATUTORY OR IN ANY OTHER PROVISION OF THIS CONTENT OR COMMUNICATION BETWEEN CISCO AND YOU. CISCO SPECIFICALLY DISCLAIMS ALL IMPLIED WARRANTIES, INCLUDING WARRANTIES OF MERCHANTABILITY, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. This learning product may contain early release content, and while Cisco believes it to be accurate, it falls subject to the disclaimer above.

Table of Contents
Volume 3 Appendix A: The Fibre Channel Protocol
Overview Module Objectives

AA-1
AA-1 AA-1

The SCSI Protocol


Overview Objectives SCSI Protocol Overview SCSI Architecture Model SCSI Parallel Technology Multidrop Topology and Addressing SCSI Operation SCSI Commands and Status SCSI Messages Error Handling Summary

AA-3
AA-3 AA-3 AA-4 AA-7 AA-10 AA-11 AA-13 AA-15 AA-18 AA-19 AA-20

FC Protocol Concepts
Overview Objectives Fibre Channel Overview Fibre Channel: The Best of Both Worlds Advantages of Serial Architecture Fibre Channel Performance Fibre Channel Topologies What is the Point-to-Point Topology? What is the Arbitrated Loop Topology? What is the Switched Fabric Topology? Fibre Channel Ports Fibre Channel HBAs Fibre Channel Classes of Service Summary

AA-21
AA-21 AA-21 AA-22 AA-23 AA-24 AA-25 AA-29 AA-30 AA-31 AA-32 AA-34 AA-36 AA-37 AA-39

FC Layers
Overview Objectives Fibre Channel Layers FC-0: Physical Interface FC-1: Encoding FC-2: Framing and Flow Control FC-3: Common Services FC-4: Upper-Layer Protocol Interfaces Fibre Channel Data Constructs Fibre Channel Frames Frame Headers SCSI-FCP Operations Link Services Types of Link Services Basic Link Services Extended Link Services Summary

AA-41
AA-41 AA-41 AA-42 AA-44 AA-46 AA-49 AA-50 AA-51 AA-53 AA-54 AA-56 AA-58 AA-60 AA-61 AA-62 AA-63 AA-64

FC Flow Control
Overview Objectives Fibre Channel Flow Control Credit-Based Flow Control Types of Flow Control

AA-65
AA-65 AA-65 AA-66 AA-67 AA-68

Buffer-to-Buffer Flow Control and End to End Flow Control Credit Management Methods The Base Credit Management Method Allocating Buffer Credits Example Example (Cont.) Example (Cont.) Example (Cont.) Fibre Channel Addressing The Switched Fabric Address Space The FC-AL Address Space World-Wide Names Summary

AA-69 AA-71 AA-72 AA-73 AA-74 AA-75 AA-76 AA-77 AA-79 AA-79 AA-81 AA-82 AA-84

FC Login
Overview Objectives Fabric Login Port Login Port and Address Discovery Process Login Loop Initialization and Arbitration The Loop Initialization Protocol The Loop Arbitration Protocol The Loop Port State Machine Summary

AA-85
AA-85 AA-85 AA-86 AA-94 AA-97 AA-98 AA-103 AA-103 AA-103 AA-105 AA-106

FC Error Recovery
Overview Objectives FC-1 Errors R_T_TOV FC-2 Errors E_D_TOV Sequence Recovery R_A_TOV SCSI-FCP Error Recovery Summary

AA-107
AA-107 AA-107 AA-108 AA-109 AA-111 AA-113 AA-114 AA-117 AA-118 AA-122

FC Switched Fabric
Overview Objectives Fabric Configuration Overview FSPF FSPF Protocol Operations Stage 1The Hello Protocol Stage 2Initial Database Synchronization Stage 3Database Maintenance Stage 4Path Discovery Stage 5Path Computation Limitations of FSPF The RSCN Process Fabric State Changes The RSCN Process Standard Fabric Services The Domain Manager The Name Server Name Server Operations The Management Server Well-Known Addresses Summary
ii Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

AA-125
AA-125 AA-125 AA-126 AA-128 AA-130 AA-131 AA-133 AA-133 AA-135 AA-135 AA-137 AA-139 AA-139 AA-139 AA-143 AA-144 AA-145 AA-146 AA-147 AA-148 AA-149
2007 Cisco Systems, Inc.

Appendix B: Installation and Configuration Reference


Overview Module Objectives

AB-1
AB-1 AB-1

Switch Hardware Installation Reference


Overview Installation Guidelines Cabinet and Rack Options Configuring Power Supplies Installing Fan Modules Supervisor and Line Card Modules Installation Summary

AB-3
AB-3 AB-4 AB-8 AB-12 AB-26 AB-30 AB-40

2007 Cisco Systems, Inc.

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

iii

iv

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Appendix A

The Fibre Channel Protocol


Overview
This appendix provides an overview of the SCSI and Fibre Channel protocols.

Module Objectives
Upon completing this module, you will be able to describe the SCSI and Fibre Channel protocols. This includes being able to meet these objectives: Describe the basic characteristics of the SCSI protocol Explain the role of Fibre Channel in a storage environment Describe the Fibre Channel layered model, data constructs, SCSI-FCP read and write operations, and Link Services Explain Fibre Channel flow control and addressing Describe the Fibre Channel device login process Explain how Fibre Channel recovers from errors Describe the Fibre Channel Switched Fabric protocol

AA-2

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Lesson 1

The SCSI Protocol


Overview
The Fibre Channel Protocol (FCP) is based on the serial Small Computer Systems Interface (SCSI) protocol. This lesson covers the fundamentals of the SCSI protocol family.

Objectives
Upon completing this lesson, you will be able to describe the basic characteristics of the SCSI protocol. This includes being able to meet these objectives: Explain the function of the SCSI protocol in a storage environment Describe the SCSI architecture model Explain the operations and limitations of SCSI parallel technology Describe the SCSI operational phases Identify the most common SCSI commands and status messages Explain the role of SCSI messages in error handling

SCSI Protocol Overview


This topic provides an overview of SCSI technology.

SCSI Protocol Overview


SCSI performs passing commands, status, and block data between initiators and targets SCSI is a hierarchy of functions to assemble raw data blocks into application readable files
Initiator Target

Requests Responses

LUNs

Application Client

Device Server
Tasks

Delivery Subsystem Parallel or FCP or IP


2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.07-4

The Small Computer System Interface (SCSI) performs the heavy lifting of passing commands, status, and block data between platforms and storage devices. One function of operating systems is to hide the complexity of the computing environment from the end user. Management of system resources including , memory, peripheral devices, display, context switching between concurrent applications, and son on, are generally concealed behind the user interface. The internal operations of the OS must be robust, closely monitor changes of state, ensure that transactions are completed within the allowable time frames, and automatically initiate recovery or retires in the event of incomplete or failed procedures. For I/O operations for peripheral devices such as disk, tape, optical storage, printers, and scanners, these functions are provided by the SCSI protocol, typically embedded in a device driver or logic onboard a host adapter. Because the SCSI protocol layer sits between the operating system and the peripheral resources, it has different functional components. Applications typically access data as files or records. Although these may be ultimately stored on disk or tape media in the form of data blocks, retrieval of the file requires a hierarchy of functions to assemble raw data blocks into a coherent file that can be manipulated by an application. SCSI architecture defines the relationship between initiators (hosts) and targets (for example, disks) as a client/server exchange. The SCSI-3 application client resides in the host and represents the upper layer application, file system, and operating system I/O requests. The SCSI-3 device server sits in the target device, responding to requests.

AA-4

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

SCSI Protocol Overview (Cont.)


Hierarchy of logical-to-physical SCSI mapping
User Applications
File System or Database Operating System Volume Management Block Transition Storage Network Interface Storage Network Transport Physical Layer

Files or Records
Files or Records Files or Records Logical Drives SCSI Mapping Device Driver SCSI Command or Data Interconnect

The file system presents an abstraction of data to the user application. Physical storage devices are presented as an abstraction to the file system.
2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.07-5

When a user application opens a file, a series of processes are launched that rely on lower SCSI commands and controls to transport the appropriate data blocks from storage safely into memory. A translation between file representation and block I/O thus occurs in the file system layer. Just as the file system presents an abstraction of data to the user application, the physical storage devices are presented as an abstraction to the file system. An E: drive in Windows or a /dev/dsk2 in UNIX may be a single disk, a partition on a larger disk, or a striped array of multiple disks. The file system depends on a volume management function to present sometimes diverse storage devices as coherent and easily addressable resources. Device virtualization turns physical storage into logical storage, and assumes the intricate tasks necessary for placement of data blocks on disks. This file/block translation and mapping function can be as sophisticated as a separate volume management application or as straightforward as an adaptor card device driver interface to an operating systems disk utility. This hierarchy of logical abstractions descends to the physical world of actual SCSI devices and their connectivity to the host system. Common access methods at the OS level allow uniform treatment of SCSI devices regardless of their physical attachment. In saving a file, the file system does not need to be concerned with whether the logical drive identifier fronts a direct SCSI-attached unit, a Fibre Channel array or an IP storage device somewhere on the Gigabit Ethernet network. Regardless of the underlying plumbing, the operating systems view of the physical storage is defined by the bus/target/LUN triad inherited from parallel SCSI technology. The mapping between the bus/target/LUN designation and the logical drive identifier provides the portal between physical devices and the upper layer file system. Because Fibre Channel and IP storage are serial transports and have no bus component, the bus identifier is fabricated for compatibility with the operating systems SCSI nomenclature. Two IP storage NICs in a single server, for example, may have different bus designations to mimic SCSI adapter configuration.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-5

The bus/target/LUN identifier may be further mapped to the addressing requirements of a specific transport. FCP, for example, maps bus/target/LUN to a device identification (ID)/LUN pair. Consequently, the representation of physical storage has two components: 1. One directed to the operating system, to establish a familiar, addressable entity based on the SCSI triad 2. The other is directed at the specific transport, to accommodate the addressing requirements of that topology

AA-6

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

SCSI Architecture Model


This topic reviews the Layers of the SCSI Architecture Model.

SCSI Architecture Model


Application Layer CAM

SCSI Architecture Model

SBC Shared Command Set

SSC

SES

SMC

SPC

Transport Protocol SPI Physical Interconnect

SBP

SSP

FCP

IEEE 1394

SSA

FC-PH

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-7

The SCSI Architecture Model (SAM) consists of four layers of functionality: 1. The physical interconnect layer specifies the characteristics of the physical SCSI link: FC-PH is the physical interconnect specification for Fibre Channel. Serial Storage Architecture (SSA) is a storage bus aimed primarily at the server market. IEEE1394 is the FireWire specification. SCSI-3 Parallel Interface (SPI) is the specification used for parallel SCSI buses.

2. The transport protocol layer defines the protocols used for session management: FCP is the transport protocol specification for Fibre Channel. Serial Storage Protocol (SSP) is the transport protocol used by SSA devices. Serial Bus Protocol (SBP) is the transport protocol used by IEEE1394 devices.

3. The shared command set layer consists of command sets for accessing storage resources: SCSI Primary Commands (SPC) are common to all SCSI devices. SCSI Block Commands (SBC) are used with block-oriented devices, such as disks. SCSI Stream Commands (SBC) are used with stream-oriented devices, such as tapes. SCSI Media Changer Commands (SMC) are used to implement media changers, such as robotic tape libraries and CD-ROM carousels.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-7

SCSI Enclosure Services (SES) defines commands used to monitor and manage SCSI device enclosures, such as RAID arrays.

4. The SCSI Common Access Method (CAM) defines the SCSI device driver application programming interface (API).

AA-8

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

SCSI Architecture Model (cont.)


SPC
*SCSI-3 *SCSI-3 Class Drivers Class Drivers SCSI Serial Bus SCSI Serial Bus Protocol (SBP-2) Protocol (SBP-2) Port Driver Port Driver

SCSI Parallel SCSI Parallel Port Driver Port Driver

SCSI-3 FCP SCSI-3 FCP Port Driver Port Driver

iSCSI IP iSCSI IP Port Driver Port Driver

SAS SAS Port Driver Port Driver

SCSI Parallel SCSI Parallel Port Port

Fibre Channel Fibre Channel Port Port

Ethernet Ethernet Port Port

SAS Serial SAS Serial Port Port

IEEE-1394 IEEE-1394 (Firewire) (Firewire) Port Port

FC
SCSI Card FC Card NIC

Serial Attached SCSI Interface

Firewire Interface

*SCSI-3: Separation of physical interface, transport protocols, and SCSI Command Set
2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.07-8

The SCSI_3 family of standards introduced several new variations of SCSI commands and a protocol, including serial SCSI-3 and special command sets for streaming and media handling required for tape. As shown in the diagram, the command layer is independent of the protocol layer, which is required to carry SCSI-3 commands between devices. This enables more flexibility in substituting different transports beneath the SCSI-3 command interface to the operating system.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-9

SCSI Parallel Technology


This topic reviews parallel-bus SCSI technology and explains why SCSI has been supplanted by Fibre Channel in high-performance environments.

SCSI Parallel Technology


SCSI uses a parallel architecture in which data is sent simultaneously over multiple wires. SCSI is half-duplexdata travels in one direction at a time. On a SCSI bus, a device must assume exclusive control over the bus in order to communicate. (SCSI is sometimes referred to as a simplex channel because only one device can transmit at a time).

Half-duplex Parallel Shared bus

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-10

The bus/target/LUN triad is defined from parallel SCSI technology. The bus represents one of several potential SCSI interfaces installed in the host, each supporting a separate string of disks. The target represents a single disk controller on the string. And the LUN designation allows for additional disks governed by a controller for example, a RAID device. The following are characteristics of parallel SCSI technology: SCSI uses a parallel architecture in which data is sent simultaneously over multiple wires. SCSI is half-duplexdata travels in one direction at a time. On a SCSI bus, a device must assume exclusive control over the bus in order to communicate. (SCSI is sometimes referred to as a simplex channel because only one device can transmit at a time).

AA-10

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Multidrop Topology and Addressing


Multidrop Topology

Data/Address Bus

Terminator

SCSI Initiator (I/O Adapter)


Interface Interface

Control Signals
Interface

ID ID

ID ID

ID ID

7
Priority
2007 Cisco Systems, Inc. All rights reserved.

ID ID

ICSNS v3.07-11

Multidrop Topology and Addressing


All of the devices on a SCSI bus are connected to a single cable. This is called a multidrop topology: Data bits are sent in parallel on separate wires. Control signals are sent on a separate set of wires. Only one device at a time can transmita transmitting device has exclusive use of the bus. A special circuit called a terminator must be installed at the end of the cable. The cable must be terminated to prevent unwanted electrical effects from corrupting the signal. A multidrop topology has inherent limitations: Parallel transmission of data bits allows more data to be sent in a given time period but complicates transmitter-receiver synchronization. The fact that control signals, such as clock signals, are sent on a separate set of wires also makes synchronization more difficult. It is an inefficient way to use the available bandwidth, because only one communication session can exist at a time. Termination circuits are built into most SCSI devices, but the administrator often has to set a jumper on the device to enable termination. Incorrect cable termination can cause either a severe failure or intermittent, difficult-totrace errors.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-11

Multidrop Topology and Addressing (Cont.)


Addressing
Data/Address Bus

Terminator

SCSI Initiator (I/O Adapter)


Interface Interface

Control Signals
Interface

LUN 0 LUN 1 LUN 2 LUN 3

LUN 0 LUN 1

LUN 0 LUN 1 LUN 2 LUN 3

Address = BUS : Target ID : LUN


2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.07-12

SCSI was designed to support a few devices at most, so its device addressing scheme is fairly simpleand not very flexible. SCSI devices use hard addressing: Each device has a series of jumpers that determine the devices physical address, or SCSI ID. The ID is software-configurable on some devices. Each device must have a unique ID. Before adding a device to the cable, the administrator must know the ID of every other device connected to the cable and choose a unique ID for this new device. The ID of each device determines its priority on the bus. For example, the SCSI target with ID 7 always has a higher priority than the SCSI initiator with ID 6. Because each device must have exclusive use of the bus while it is transmitting, ID 6 must wait until ID 7 has finished transmitting. Fixed priority makes it more difficult for administrators to control performance and quality-of-service.

AA-12

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

SCSI Operation
This topic provides an overview of SCSI protocol operations.

SCSI Operation
SCSI includes three phases of operation:
Command send the required command and parameters via a Command Descriptor Block (CDB) Data Transfer data in accordance with the command Status Receive confirmation of command execution Target
FC

Initiator

FC
HBA

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-14

Every communication on the SCSI bus is formed by sequences of events called bus phases. Each phase has a purpose and is linked to other phases to execute SCSI commands and transfer data and messages back and forth. The majority of the SCSI protocol is controlled by the target. The initiator only initiates a SCSI task by selecting a target. Once the target is selected, it (the target) controls the bus. It does this by picking up the command from the initiator, executing it and delivering a status back to the initiator.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-13

SCSI Operation (Cont.)


SCSI Bus Arbitration: Arbitrate for the SCSI Bus and take control SCSI Device Selection: Address the target by its SCSI ID and select it
SCSI Read CMD (28h)
HBA

FC

FC

Connectio n , Arbitra te and sele ct

SCSI Command:

Command

Send required command and parameters via a Command Descriptor Block (CDB) SCSI Data (optional): Transfer Data in accordance with the command SCSI Status or Response: Receive confirmation of command execution SCSI Message: Send Command Complete message Release the Bus
2007 Cisco Systems, Inc. All rights reserved.

Phase

e Data In Phas

DATA

Status Phas

RSP

Disconnect
ICSNS v3.07-15

A simple SCSI task can be described by using the following example. 1. The host adapter is the initiator. A host adapter wants to read a logical block of data from a disk drive. 2. The host adapter waits until the bus is free. 3. When the bus is free, the host adapter uses the arbitration phase to acquire initial control over the bus. 4. The disk drive that will be the target is selected. The disk accepts the selection by taking over control of the bus. 5. The host sends a SCSI READ command to the disk. 6. The disk picks up the command from the host adapter. The disk reads its data from the media and enters the data phase to send it across the bus to the host adapter 7. After the data transfer, the disk enters a status phase and sends the status code GOOD. 8. The SCSI task is finished, so the disk sends a COMMAND COMPLETE message to the host adapter and releases the bus to the BUS FREE phase.

AA-14

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

SCSI Commands and Status


A simple SCSI task can be described by using the following example. 1. The host adapter is the initiator. A host adapter wants to read a logical block of data from a disk drive. 2. The host adapter waits until the bus is free. 3. When the bus is free, the host adapter uses the arbitration phase to acquire initial control over the bus. 4. The disk drive that will be the target is selected. The disk accepts the selection by taking over control of the bus. 5. The host sends a SCSI READ command to the disk. 6. The disk picks up the command from the host adapter. The disk reads its data from the media and enters the data phase to send it across the bus to the host adapter 7. After the data transfer, the disk enters a status phase and sends the status code GOOD. 8. The SCSI task is finished, so the disk sends a COMMAND COMPLETE message to the host adapter and releases the bus to the BUS FREE phase.

SCSI Commands and Status


SCSI Command Descriptor Block (CDB)

Byte 0 1 2 3 4 5 6 7 8 9

0
First Byte Operation Code

Group Code

Command Code

Service Action Reserved Logical Block Address MSB Logical Block Address Logical Block Address Logical Block Address Reserved MSB Transfer Length Transfer Length Control

Transfer Data starting at this LBA

LSB Number of SCSI Blocks to be transferred LSB Last Byte Control Byte

A command is executed by sending a CDB to a target.


2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.07-17

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-15

SCSI commands are built from a common structure: Operation Code byte N bytes of parameters Control byte The Operation Code consists of a Group Code and a command Code Group Code establishes the total command length. Command Code establishes the command function. The number of bytes of parameters (N) can be determined from the Operation Code byte which is located in byte 0 of the Command Descriptor Block (CDB). The Control Byte, which is located in the last byte of a Command Descriptor Block, contains control bits that define the behavior of the command.

AA-16

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

SCSI Commands and Status (cont.)


Op Code 00h 03H 12h 15h 18h 1Ah 1Ch 1Dh 39h 3Ah 3Bh 3Ch 4Ch 4Dh 55h 5Ah Command Name Test Unit Ready Request Sense Inquiry Mode Select Copy Mode Sense Receive Diagnostic Results Send Diagnostic Compare Copy and Verify Write Buffer Read Buffer Log Select Log Sense Mode Select Mode Sense Hex 00 02 04 08 10 14 18 28 30 .. Status Good Check Condition Condition Met Busy Intermediate Intermediate-Condition Met Reservation Conflict Task Set Full ACA Active

Standard SCSI commands are used on all devices. After a SCSI command is sent to a target, the initiator expects a status.

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-18

SCSI defines commands for all devices as well as commands for specific devices. For example: The OpCode for the General Command Write Buffer is 3Bh. The OpCode for the General Command Read Buffer is 3Ch. The OpCode for the Disk Command Write(6) is 0Ah, Write(10) is 2Ah. The OpCode for the Disk Command Read(6) is 08h, Read(10) is 28h. The numbers in the parenthesis (6) and (10) refer to the type of CDB utilized.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-17

SCSI Messages
This topic introduces the functions of SCSI messages.

SCSI Messages
SCSI messages are an additional way in which the initiator and the target communicate with each other.
Some SCSI transmission parameters are not tied to a specific command, but to the relationship between a specific initiator and target. Transfer speed Data width Other asynchronous events such as: To abort a SCSI command that is currently executed by a target RESTORE POINTERS

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-20

SCSI messages are an additional way in which the initiator and the target communicate with each other. Some SCSI transmission parameters are not tied to a specific command, but to the relationship between a specific initiator and target: Transfer speed Data width Other asynchronous events such as: To abort a SCSI command that is currently executed by a target RESTORE POINTERS

AA-18

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

SCSI Messages (Cont.)


Error Handling:
Parity Bit Used for each group of eight data bits Receiving device calculates and compares the parity Device that detected the parity error forces a retransmission: RESTORE POINTERS message U160 supports CRC

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-21

Error Handling
Parallel SCSI is not as efficient in detecting transmission errors as, LAN protocols or SAN protocols. SCSI uses a parity bit. The receiving device calculates the parity and compares it with the parity bit. If they dont match, a parity error has occurred. Consequently, the device that detected the parity error sends a RESTORE POINTERS message that causes the data transfer counter to be reset to the value at the last disconnect so that the transfer of data is repeated from that point on.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-19

Summary
This topic summarizes the key points that were discussed in this lesson.

Summary
The SCSI protocol was originally based on parallel technology and modeled after a bus topology. The SCSI Architecture Model is a reference for the SCSI functional layers and the SCSI Transport Interfaces. To communicate, the SCSI protocol operates in phases. The SCSI protocol has a set of command codes and status codes. SCSI messages are used for error handling.

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-22

AA-20

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Lesson 2

FC Protocol Concepts
Overview
Fibre Channel (FC) has characteristics of both I/O channels and data networks, and this unique blend of features is what makes FC ideal for storage area networks (SANs). This lesson takes a close look at the features and capabilities of FC, and compares these features and capabilities with those of traditional I/O channels such as SCSI, and data networks such as Ethernet and ATM.

Objectives
Upon completing this lesson, you will be able to explain the role of Fibre Channel in a storage environment. This includes being able to meet these objectives: Describe the basic characteristics of Fibre Channel Describe Fibre Channel performance characteristics Identify the three basic Fibre Channel topologies Define a Fibre Channel port Explain the functions of a Fibre Channel HBA Explain the Fibre Channel Classes of Service

Fibre Channel Overview


This topic describes FC as a data transport technology that is well-suited to storage networks.

Fibre Channel Overview


Fibre Channel is a technology for transporting data between devices Fibre Channel is the transport technology most commonly used for SANs today
FC

FC
HBA

FC
HBA

FC

IP Network
FC
HBA

Fibre Channel Fabric

FC

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-4

FC is a technology for transporting data between devices. It is the network interconnect technology that is most commonly used for SANs today. Traditional storage technologies, such as SCSI, are designed for controlled, local environments. They support few devices and only short distances, but they deliver data quickly and reliably. Traditional data network technologies, such as Ethernet, are designed for chaotic, distributed environments. They support many devices and long distances, but delivery of data can be delayed. FC combines the best of both worlds. It supports many devices and longer distances, and it provides reliable data delivery In the diagram, the network on the right, consisting of servers and storage devices, is an FC SAN. The SAN consists of servers and storage devices connected by an FC network.

AA-22

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Fibre Channel: The Best of Both Worlds

FC
HBA

I/O Channel

Fibre Channel
Many devices Dynamic Low latency Long distances Hardware-based delivery management

Network
Many devices Dynamic

x Few devices x Static


Low latency

x High latency
Long distances

x Short distances
Hardware-based delivery management
2007 Cisco Systems, Inc. All rights reserved.

x Software-based

delivery management
ICSNS v3.07-5

Fibre Channel: The Best of Both Worlds


This section compares FC capabilities to traditional I/O buses and data networks. FC is designed to incorporate the best features of both channel and network architectures: FCs serial architecture allows it to support many devices and flexible configurations. Like a network, FC is designed to dynamically adjust to changing environments. For example, FC allows devices to be added to the SAN with minimal disruption to ongoing communication sessions. Storage networks are generally somewhat simpler and more stable than data networks (such as the Internet). Therefore, FC compromises between flexibility and efficiency in order to minimize end-to-end latency. FCs serial architecture supports long distances at high speeds. FC HBAs incorporate application-specific integrated circuits (ASICs) that perform delivery management services in hardware, minimizing host CPU load and further reducing latency.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-23

Advantages of Serial Architecture


Benefits of serial architectures:
Reduces the cost and complexity of cabling Use either copper cables or optical fiber Clock synchronization and data transmission are performed in one signal Simplifies product design, allowing faster evolution:
Wire speed of SCSI increases by 2x Wire speed of Ethernet and FC increases by 10x

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-6

Advantages of Serial Architecture


In a serial data transmission, the data bits are sent sequentially along a single wire. This architecture offers several advantages over the parallel architecture: A serial architecture reduces the cost and complexity of cabling. Unlike SCSI, FC does not require terminators, and it uses a network architecture (hubs and switches) rather than a multidrop (single cable) architecture. Serial networks can use either copper cables or optical fiber. This allows customers to choose cheaper copper cables where distance is not a requirement, and to choose more expensive optical cable when longer distances must be supported. Because clock synchronization and data transmission are performed in one signal, rather than on separate wires, synchronization can be more easily maintained at higher link rates and longer distances. Overall, a serial architecture simplifies product design, allowing faster evolution. For example, the wire speed of SCSI doubles with each release, while the wire speed of Ethernet and FC increases by a factor of 10 with each release. One of the most significant advantages of serial networks is that serial networks can support longer link distances. A single-mode fiber optic FC or Gigabit Ethernet link can support links over 400 times as long as on the longest SCSI bus.

AA-24

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Fibre Channel Performance


This section describes the performance characteristics of FC technology and compares to bus as well as networking technologies.

Fibre Channel Performance


Bandwidth: Mode: Maximum # of Nodes: Link Distance: Reliability: 100,200, 400, 1000 MBps (sustained, each direction) Full duplex, serial 126 arbitrated loop ~16 million switched fabric Up to 30 m/link copper Up to 10 km/link optical Bit Error Ratio < 10-12

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-8

The performance characteristics of FCs are as follows: Bandwidth: 100, 200, 400, and 1000 MBps (sustained, each direction) Mode: Full duplex, serial Maximum number of nodes: 126 for arbitrated loop, >16 million for switched fabric Link Distance: Up to 30 m/link copper, to 10 km/link optical Bit Error Ratio (BER): < 10-12 Note that 100MBps, 200MBps, 400MBps, and 1000MBps are the half-duplex rates for Fibre Channel, but Fibre Channel is actually a full-duplex technology. In other words, Fibre Channel supports up to 1000MBps between two ports in both directions simultaneously.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-25

Fibre Channel Performance (Cont.)


The Bit Error Ratio (BER) is calculated by dividing the number of erroneous bits by the total number of bits transmitted A BER of 10-12 corresponds to one error every 8 minutes at 2 Gbps Due to some stringent applications, the industry is working on a BER of 10-15, or one error every 5.5 days at 2 Gbps

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-9

The Bit Error Ratio (BER) is calculated by dividing the number of erroneous bits by the total number of bits transmitted, received, or processed over some stipulated period. For example, 2.5 erroneous bits out of 100,000 bits transmitted would be 2.5 divided by 100,000 or 2.5 105. The minimum and maximum values of average received power range determine the input power range required to maintain a BER less than 10-12. This value takes into account worst case signal characteristics. A BER of 10-12 corresponds to one error every 8 minutes at 2Gbps. This might seem like a very low error rate, but due to some stringent applications, the industry is working on achieving a BER of 10-15, which results in one error every 5.5 days at 2Gbps.

AA-26

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Fibre Channel Performance (Cont.)


SCSI Bus Fibre Channel 100, 200, 400, 1000 MBps (sustained) Full duplex, serial, packet-based 126 arbitrated loop >16 million switched
Up to 30m copper Up to 10Km optical Layered (SCSI, IP, FICON, ESCON, etc.)
ICSNS v3.07-10

Bandwidth:
Mode: Maximum # of Nodes: Link Distance: Protocol Model:
2007 Cisco Systems, Inc. All rights reserved.

20-320 MBps (burst) Half duplex, parallel, shared bus 16 1.525m Monolithic (SCSI)

The table compares the characteristics of FC to those of SCSI. Significant differences between FC and SCSI include: Bandwidth: FC is capable of delivering the published data rates in a sustained manner. The maximum SCSI bit rate is the peak rate, and cannot be sustained for long periods of time. Mode: SCSI uses a parallel bus, with half duplex capability (transmission in one direction at a time), while the FC serial connection has full duplex capability. Maximum number of nodes: 16 for SCSI, up to 16 million for FC. The SCSI cable length limitations results in a maximum link distance of 25 meters, while FC, using optical cable, has a maximum link distance of 10 kilometers. Software protocols: FC supports multiple protocols simultaneously. A version of the SCSI command set is often used on FC SANs, but the same SAN can simultaneously carry IP traffic and other protocols. Note that the storage market typically measures data rates in megabytes-per-second (MBps), whereas the network market typically measures data rates in megabits-per-second (Mbps) or gigabits-per-second (Gbps). The Fibre Channel market measures data rates in both MBps and Gbps, so you must be able to quickly translate between both units of measure. In Fibre Channel, 100MBps equals 1Gbps. Note that this conversion assumes that each byte equals 10 bits. This is actually trueFibre Channel uses a bit encoding scheme in which each 8-bit byte is encoded as 10 bits for transmission.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-27

Fibre Channel Performance (Cont.)


Gigabit Ethernet Fibre Channel 100, 200, 400, 1000 MBps (sustained) Full duplex, serial, packet-based ~ 95% 30m copper 10Km optical Layered
ICSNS v3.07-11

Bandwidth:
Mode: Average Continuous Data Flow: Link Distance: Protocol Model:
2007 Cisco Systems, Inc. All rights reserved.

1000 MBps (burst) Full duplex, serial, packet-based ~ 40% 100m copper 5Km optical Layered

The table compares the characteristics of FC to those of Gigabit Ethernet. One notable difference is in the Average Continuous Data Flow of each network. This figure represents how well the different technologies utilize their link bandwidth, and is stated as a percentage of the maximum link bandwidth. Ethernet has significant system overheads in processing the data from high speed links, so the Average Continuous Data Flow is typically far less than the maximum bandwidth. FC, however, maximizes efficiency by implementing many functions in hardware instead of in its software drivers, and is able to achieve an Average Continuous Data Flow of up to 95 percent of maximum bandwidth. Note that all link distances stated here are according to the specifications. Many vendors support longer distances. For example, Finisar sells long-wave GBICs that support up to 30km on single-mode optical fiber. FC and Gigabit Ethernet support similar link distances. However, IP is the most common protocol used on Ethernet networks, and there is a global WAN infrastructure that supports IP, so people tend to think of Ethernet as spanning longer distances than FC. FCs distance barrier is not its physical specification but its incompatibility with the global IP infrastructure. Today, however, emerging technologies like FCIP allow IP networks to carry FC data, breaking down that distance barrier.

AA-28

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Fibre Channel Topologies


This section defines and compares the three FC topologies.

Fibre Channel Topologies


FC
FC

FC
HBA

FC

FC
HBA

Point-to-Point

HBA

FC
HBA

FC
HBA

FC
HBA

FC
HBA

FC
HBA

FC
HBA

FC
FC
HBA

FC
HBA

FC

FC
HBA

Arbitrated Loop
2007 Cisco Systems, Inc. All rights reserved.

Switched Fabric
ICSNS v3.07-13

Fibre Channel Protocol includes three basic SAN topologies: Point-to-point Arbitrated loop Switched fabric

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-29

What Is the Point-to-Point Topology?


Dedicated 1-to-1 connection between two nodes This is really a DAS architecture, but offers better performance and flexibility than SCSI
FC

FC
HBA

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-14

What is the Point-to-Point Topology?


The Point-to-Point topology is the simplest FC storage configuration. As its name suggests, a Point-to-Point configuration is a 1-to-1 connection between a host and a storage device. The preceding graphic illustrates an example of the simplest Point-to-Point implementation: one server connected via an FC link to a storage device.

AA-30

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

What Is the Arbitrated Loop Topology?


Limitations of Arbitrated Loops
Performance:
One data path means only one pair of devices can communicate at a time: shared bandwidth Higher latency than fabrics

Scalability:
127 addressable ports:
126 available for nodes 1 reserved for fabric-attach port
FC
HBA

FC
HBA

FC
HBA

About a dozen nodes in practice

Hub
FC
HBA

Reliability:
If one device fails, the entire loop can fail
2007 Cisco Systems, Inc. All rights reserved.

FC

FC
HBA

ICSNS v3.07-15

What is the Arbitrated Loop Topology?


The key characteristics of the Arbitrated Loop topology are: All servers can have access to all storage. I/O speeds depend upon the location of the initiator and target in the loop. Arbitrated loops are practical for 12 or fewer devices. The key limitations of the Arbitrated Loop topology are: Loops suffer from poor performance. Because there is only one data path, only one pair of devices can communicate at a time. This means that all the devices on the loop must share the available bandwidth. Loops have a higher latency than fabrics. Devices must negotiate for control of the loop. Loops are not very scalable. Because loops were designed to support a small number of devices, the FC-AL protocol provides only 127 unique addresses: 126 addresses are usable for nodes (hosts and storage devices), and 1 address is reserved for attaching the loop to an FC switched fabric. In reality, only about a dozen devices can be connected in a loop before performance drops below acceptable levels. Loop configurations are susceptible to device failures.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-31

What Is the Switched Fabric Topology?


FC FC HBA FC FC FC HBA

FC

FC HBA

FC

FC HBA

FC HBA

FC FC HBA

FC FC FC

FC
HBA

FC
HBA

FC
HBA

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-16

What is the Switched Fabric Topology?


The Switched Fabric topology incorporates a high-bandwidth FC switch, instead of a hub, to handle data traffic among host and storage devices. The diagram illustrates a sample switched fabric topology. The scalability of the fabric is indicated by the fact that multiple switches can be linked together to support many devices.

AA-32

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

The FC Switched Fabric Protocol (FC-SW)


Supports multiple conversations at full link speed Allows over 16,000,000 device addresses Enhanced management capabilities:
Security services Multicast and broadcast Remote management

The majority of modern organizations choose to implement a fabric

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-17

The Fibre Channel Switched Fabric (FC-SW) protocol differs from the arbitrated loop topology in several important ways: Switches can support multiple simultaneous conversations. Each conversation between two devices can use the full link bandwidth. The FC-SW device addressing scheme allows over 16,000,000 ports. Existing implementations can support hundreds and even thousands of nodes using large directorclass switches. The FC-SW protocol defines several management services that increase the scalability, manageability, and security of the SAN. Due to the limitations of the Arbitrated Loop topology, the majority of modern organizations choose to implement a Switched Fabric topology because it offers greater scalability, performance, reliability, and manageability.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-33

Fibre Channel Ports


This section describes an FC port, and the role it plays in a SAN.

Fibre Channel Ports


Ports are intelligent interface points on the Fibre Channel network:
Embedded in an I/O adapter Embedded in an array or tape controller Embedded in a fabric switch Ports understand Fibre Channel Ports

FC
FC FC

HBA

Tape device

Server

I/O Adapter

Switch

Array controller

Storage
ICSNS v3.07-19

2007 Cisco Systems, Inc. All rights reserved.

In data networking terminology, ports are often thought of as just physical interfaces where you plug in the cable. In FC, however, ports are intelligent interfaces, responsible for actively performing critical network functions. The preceding graphic contains several ports. There are ports in the host I/O adapter (host bus adapter [HBA]), ports in the switch, and ports in the storage devices. FC terminology differentiates between several different types of ports, each of which performs a specific role on the SAN. You will encounter these terms often as you continue to learn about FC, so it is important that you learn to recognize the different port types. In addition to the common ports defined for FC, Cisco has developed some proprietary port types.

AA-34

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Fibre Channel Ports (Cont.)


NL_Ports
FC
HBA

FC

Hub Storage Array

Host

FL_Port

Standard Ports
E_Ports

N_Port
FC
HBA

F_Port

FC

Host

B_Port

E_Port

Storage Array

2007 Cisco Systems, Inc. All rights reserved.

WAN Bridge

ICSNS v3.07-20

An N_Port (Node Port) is a port on a node that connects to a fabric: I/O adapters and array controllers contain one or more N_Ports N_Ports can also directly connect two nodes in a point-to-point topology An F_Port (Fabric Port) is a port on a switch that connects to an N_Port. An E_Port (Expansion Port) is a port on a switch that connects to an E_Port on another switch. An FL_Port (Fabric Loop Port) is a port on a switch that connects to an arbitrated loop. Logically, an FL_Port is considered part of both the fabric and the loop. FL_Ports are always physically located on the switch. Note that FC hubs, although they obviously have physical interfaces, do not contain FC ports. Hubs are basically just passive signal splitters and amplifiers. They do not actively participate in the operation of the network. On an arbitrated loop, the node ports manage all FC operations. Not all switches support FL_Port operation. For example, some McDATA switches do not support FL_Port operation. An NL_Port (Node Loop Port) is a port on a node that connects to another port in an arbitrated loop topology. There are two types of NL_Ports: Private NL_Ports can communicate only with other loop ports. Public NL_Ports can communicate with other loop ports and with N_Ports on an attached fabric. Note that the term L_Port (Loop Port) is sometimes used to refer to any port on an arbitrated loop topology. L_Port can mean either FL_Port or NL_Port. In reality, there is no such thing as an L_Port.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-35

Fibre Channel HBAs


This section describes typical and differentiating features of HBAs.

Fibre Channel HBAs

OS

OS

Ethernet NIC Flow Control Sequencing Segmentation Error Correction

I/O Subsystem

I/O Subsystem

TCP Driver

FC Driver

Fibre Channel HBA Flow Control Sequencing Segmentation Error Correction


ICSNS v3.07-22

HBA

2007 Cisco Systems, Inc. All rights reserved.

HBAs are I/O adapters that are designed to maximize performance by performing protocol processing functions in silicon. HBAs are roughly analogous to network interface cards, but HBAs are optimized for storage networks, and provide features that are specific to storage. The figure contrasts HBAs with NICs, illustrating that HBAs offload protocol processing functions into silicon. With NICs, protocol processing functions such as flow control, sequencing, segmentation and reassembly, and error correction are performed by software drivers. HBAs offload these protocol processing functions onto the HBA hardware itselfusually some combination of an application-specific integrated circuit (ASIC) and firmware. Offloading these functions is necessary to provide the performance required by storage networks. NICs can utilize over 80 percent of a servers CPU capacity (measured with a 1Ghz Intel Pentium CPU) to deliver 50-80MBps on a Gigabit Ethernet link. I/O processing adds considerable real cost to what may appear to be an inexpensive NIC. HBAs manage I/O transactions with little or no involvement of the server CPU. FC HBAs can provide throughput at nearly 95 percent of link speed with less than 10 percent server CPU utilization.

AA-36

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Fibre Channel Classes of Service


This section identifies the Classes of Service that are commonly used on FC SANs and are supported by commercially available FC products.

Fibre Channel Classes of Service


Characteristics
Class 1 Class 2 Class 3 Class 4 Class 6 Class F
Connection-oriented Confirmed delivery Packet-switched Confirmed delivery Packet-switched No delivery confirmation

Use
Specialized applications; not widely supported Generally supported but not widely used Most commonly used Class of Service

Fractional bandwidth virtual circuit Specialized applications; not Confirmed delivery supported in SAN products Connection-oriented multicast Confirmed delivery Packet-switched Confirmed delivery Specialized applications; not supported in SAN products Used for inter-switch communication
ICSNS v3.07-24

2007 Cisco Systems, Inc. All rights reserved.

The table displays uses of the FC Classes of Service: Few commercially available FC SAN products currently support Class 1. Many FC products support Class 2, but it is not widely used. Class 3 is by far the most commonly used Class of Service on fabrics, and it is often the only class supported on arbitrated loops. All FC SAN products support Class 3. No commercially available FC SAN products currently support Class 4. No commercially available FC SAN products currently support Class 6. Class F is always used for inter-switch communication. Note that Class 5 is not yet defined. Class 5 was intended to enable isochronous transactions by multiple ports, but has not been completed. An isochronous connection is one in which bandwidth and data delivery rate are guaranteed. Class 5 would be appropriate for video delivery services.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-37

Fibre Channel Classes of Service


Attribute Connection Oriented Packet-switched Bandwidth Reserved Guaranteed Latency Guaranteed Delivery Order Delivery Confirmation Class 1 Class 2 Class 3 Class 4 Class 6
Yes No 100% Yes Yes Yes No Yes No No No Yes No Yes No No No No Yes No
Fractional Yes(QoS)

Yes No 100% Yes Yes Yes

Yes Yes

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-25

The preceding table summarizes the features of the Classes of Service. Although Classes 2 and 3 are the only options currently available in Fibre Channel products today, customers might have specialized applications that call for the features of other classesand might be willing to investigate specialized products that support those applications.

AA-38

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Summary
This topic summarizes the key points that were discussed in this lesson.

Summary
Fibre Channel supports many devices, dynamic network reconfiguration, low latency, long distances, and hardware-based delivery management. Fibre Channel currently supports 100, 200, 400 and 1000 MBps. The Fibre Channel Protocol supports three topologies: Point to Point, Arbitrated Loop and Switched Fabric. Ports are intelligent interface points on the Fibre Channel network. Fibre Channel HBAs offload flow control, sequencing, segmentation, and error correction into the HBA hardware, increasing performance. Fibre Channel has defined classes of service similar to the Class of Service models in LAN networks, however the Fibre Channel implementation is different.

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-26

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-39

AA-40

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Lesson 3

FC Layers
Overview
Like nearly all modern networks, Fibre Channel (FC) is designed with a modular, layered architecture. This architecture is designed to carry other protocols, as well as new native protocols. A layered architecture provides benefits for both vendors and users because it enhances the clarity and flexibility of the architecture. This lesson describes the five layers of the FC layered model, and the upper layer protocols that FC supports.

Objectives
Upon completing this lesson, you will be able to describe the Fibre Channel layered model, data constructs, SCSI-FCP read and write operations, and Link Services. This includes being able to meet these objectives: Describe the FC layered model Describe the Fibre Channel Data constructs Describe SCSI-FCP protocol operations Describe Link Services

Fibre Channel Layers


This section introduces the FC layered architecture.

Fibre Channel Layers


OSI Layers
Fibre Channel
NTFS CIFS NFS DAFS ... SCSI IP VI HiPPI ...

IP
Application Presentation Session Transport Network
IP IPX ... HTTP FTP SNMP ... TCP SPX ...

Logical Physical Fibre Channel

Data link Physical

Ethernet

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-4

The OSI model defines seven layers of functionality for network protocols. While FC does not map directly to the OSI model, it does use a layered model. FCs lower layers relate closely to the lower layers of OSI: FC defines the lower three layers (approximately) of the OSI model: Physical, Data link, and Network Other protocols, such as SCSI, are responsible for the upper layers If you are familiar with data networking, you probably understand the difference between physical-layer protocols, such as Ethernet, and logical-layer protocols, such as TCP and IP: Ethernet defines how data is physically transmitted. Protocols like TCP and IP define aspects of the network such as flow control and addressing. The preceding graphic shows that FC defines both the physical layer and part of the logical layer, and then interfaces with ULPs that perform the functions of the upper layers of the OSI model.

AA-42

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Fibre Channel Layers (Cont.)

Upper-layer protocols FC-4 FC-3 Common Services FC-2 Framing and flow control
FC-FS

FC-1 Encoding FC-0 Physical interface


FC-PI

NTFS CIFS NFS DAFS ...

SCSI IP VI HiPPI ...

Fibre Channel

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-5

The five layers of FC are: FC-0: Physical interface, transmission and signaling FC-1: 8b/10b encode/decode, link control, ordered set specifications FC-2: Framing, flow control, exchange/sequence management FC-3: Application-specific layer for fabric services FC-4: Upper-layer protocol mapping specification The lower three layers (FC-0, FC-1, and FC-2) are collectively known as the FC Physical Layer (FC-PH), even though they also implement logical functions such as framing and flow control. The FC-3 layer provides a framework for implementing new SAN-wide services, while the FC4 layer interfaces with the ULPs and maps them to the FC. The FC-PH specification was the original document that defined layers FC-0, FC-1, and FC-2. The final version of the FC-PH specification was FC-PH-3. However, FC-PH was then superceded by two additional documents: Fibre Channel Physical Interface (FC-PI) defines FC-0. Fibre Channel Framing and Signaling (FC-FS) defines FC-1 and FC-2

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-43

FC-0: Physical Interface


FC-0 specifies the physical characteristics of the data link:
Cables and connectors Transmitter and receiver functions Signaling protocol
ULPs
FC-4 FC-3 Common Services FC-2 Framing and flow control FC-1 Encoding FC-0 Physical interface FC-FS

FC-PI
ICSNS v3.07-6

2007 Cisco Systems, Inc. All rights reserved.

FC-0: Physical Interface


The FC-0 layer specifies the characteristics of the physical links. FC-0 is responsible for: Specifying signaling protocols for transmitting and receiving a signal at different transfer rates Specifying data rates and maximum transmission distances

AA-44

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Optical Media Types


TwinAx, QuadAx Coaxial Shielded Twisted Pair
1Gb 2Gb 4Gb 1Gb 2Gb 4Gb 1Gb 2Gb 4Gb
30km
2007 Cisco Systems, Inc. All rights reserved.

33m 59m 30m100m 300m 150m 70m 500m 300m 150m 10km 10km 10km is supported by some manufacturers
ICSNS v3.07-7

Electrical Cables

Multimode 62.5 Multimode 50 Single-mode 9

Optical Cables

Optical media types: Multimode fiber uses a 780nm short-wave laser. Single-mode fiber uses a 1300nm long-wave laser. Maximum link distances vary by data rate. The current specification states a minimum 2m distance for optical fiber. This is to allow for a build-up of photons that occur in the first 2m of cable after the laser fires, and, in multimode cables, to eliminate problems associated with some modes of light which, due to their steep angle of reflection, do not travel very far down the cable.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-45

FC-1: Encoding
FC-1 defines the bit encoding scheme:
Encoding and decoding of serial signals Bit-level error detection Clock synchronization Link initialization and recovery
ULPs
FC-4 FC-3 Common Services FC-2 Framing and flow control FC-1 Encoding FC-0 Physical interface FC-FS

FC-PI
ICSNS v3.07-8

2007 Cisco Systems, Inc. All rights reserved.

FC-1: Encoding
The FC-1 layer specifies how data is encoded at the bit and byte levels for transmission across the link. FC-1 is responsible for: Taking data from the transmitters I/O bus and encoding into a serial signal for transmission Taking a serialized signal and decoding it into a signal that can be sent to the receivers I/O bus Bit-level error detection Clock synchronization between the transmitter and receiver Link initialization and recovery

AA-46

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

FC-1: Encoding (Cont.)


Each 8-bit data byte is encoded into a 10-bit character before it is transmitted over the link:

8b/10b Encoder

Parallel/Serial Converter (SERDES)

Transmitter

Tx Byte

Parallel Input

Serial Output

Media Output

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-9

The preceding diagram shows the FC-1 encoding process: The data from the transmitting I/O bus is encoded using the 8b/10b encoding scheme. The parallel data is converted to serial format. The serial data is transmitted across a link. The receive end decodes the serial data and forwards it to the receivers I/O bus.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-47

FC-1: Encoding (Cont.)


8b/10b Encoding Scheme:
Transmission Characters always have either:
6 ones and 4 zeros = Positive disparity 4 ones and 6 zeros = Negative disparity 5 ones and 5 zeros = Neutral disparity Byte Bits Encoded Disparity

0xDF

11011111 6

1010110110 0101000110

+ -

31 = D31.6
ICSNS v3.07-10

2007 Cisco Systems, Inc. All rights reserved.

Transmission characters always have either: Positive disparity: 6 ones and 4 zeros Negative disparity: 4 ones and 6 zeros Neutral disparity: 5 ones and 5 zeros The 8b/10b scheme defines multiple transmission characters for each 8-bit data byte. Because the encoder can choose between multiple 10-bit representations for each 8-bit byte, it can balance the number of ones and zeros in the data stream. The imbalance between the number of 1s and 0sknown as the running disparityis continually reevaluated. To balance the number of ones and zeros, every transmitted byte is encoded into one of two possible 10-bit representations depending on the current running disparity. In the FC-1 specification, every 10-bit character is represented using a special notation: Dxx.y: Used for data characters that map to 8-bit characters; xx is the decimal value of the lowest 5 bits and y is the decimal value of the highest bits. Kxx.y: Used for special control characters; xx and y are defined as for data characters.

AA-48

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

FC-2: Framing and Flow Control


FC-2 defines the structure, organization, and delivery of the data:
Constructs and manages frames Inserts addressing and header information Manages flow control Frame error detection
FC-4 FC-3 Common Services FC-2 Framing and flow control FC-1 Encoding FC-0 Physical interface FC-FS

ULPs

FC-PI
ICSNS v3.07-11

2007 Cisco Systems, Inc. All rights reserved.

FC-2: Framing and Flow Control


The FC-2 layer specifies how the data is packaged for transmission: To transport a stream of data from one port to another, the data must be packaged into discrete packets, or frames. At the receiving end, the data must then be extracted from the frames. A frame carries identification information, such as addressing information and information that identifies how the network should serve, deliver and respond to this particular frame. The FC-2 layer is responsible for inserting this information into each frame. The flow of frames across the network must be also be controlled so that the sending port does not send data faster than the receiving port can receive it. The FC-2 layer performs this flow control function by initiating or preventing transfer of frames. FC-2 is also responsible for detecting frame-level errors. FC-2 is the workhorse of FC. It is the most complex of the FC layers.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-49

FC-3: Common Services


FC-3 is an expandable layer that is designed to support services, such as:
Name server Secure key server Management server Time server

Future services?
Compression Encryption Link multiplexing
FC-4

ULPs

FC-3 Common Services FC-2 Framing and flow control FC-1 Encoding FC-0 Physical interface FC-FS

FC-PI
ICSNS v3.07-12

2007 Cisco Systems, Inc. All rights reserved.

FC-3: Common Services


The FC-3 layer defines a generalized structure for implementing new services: Generic services are functions that can span multiple ports and can be applied to multiple upper-layer protocols. FC defines generic fabric services that include a name server, a secure key distribution server, a management server, and a time server. Examples of potential future services include data compression, encryption services, or multiplexing multiple links to form one aggregated virtual link. Generic services use the Fibre Channel Common Transport (FC-CT) protocol to communicate and distribute functions between switches.

AA-50

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

FC-4: Upper-Layer Protocol Interfaces


FC-4 maps upper-layer protocols to the FC protocol:
SCSI, HiPPI, ESCON/FICON for storage IP, VI, ATM and others Allows multiple protocols to be transported over the same physical interface
ULPs
FC-4 FC-3 Common Services FC-2 Framing and flow control FC-1 Encoding FC-0 Physical interface FC-FS

FC-PI
ICSNS v3.07-13

2007 Cisco Systems, Inc. All rights reserved.

FC-4: Upper-Layer Protocol Interfaces


The FC-4 layer defines how the ULPs map to the lower layers of FC. It allows multiple protocols to be transported over the same physical interface. FC-4 makes sure that the ULP data or commands are broken down appropriately and packaged correctly into FC frames. When a sender transmits a block of data: The FC-4 layer receives the data from the ULP drivers and passes the data down to the FC3 layer. The FC-3 layer performs any required manipulation on the data, such as compressing or encrypting the data, or it simply passes the data directly to the FC-2 layer. The FC-2 layer then packages the data into frames and passes it down to the FC-1 layer. The FC-1 layer encodes each byte into 10-bit characters using the 8b/10b scheme and passes the data down to the FC-0 layer. The FC-0 layer encodes the data into physical signals and transmits those signals across the link. Only the FC-4 layer needs to know which ULP is used. The protocol-independence of the FC-3 through FC-0 layers allows FC to be easily adapted to new ULPs.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-51

FC-4: Upper-Layer Protocol Interfaces (Cont.)


95% of FC network utilization is for SCSI applications
SCSI-3 FICON, ESCON IEEE 802.2 LLC IP HiPPI ATM, SONET

FCPSCSI

FC-SB-2

FC-LE

FC-IP

FC-FP

FC-BB-2

FC-3 Common Services FC-2 Framing and Flow Control FC-1 Encoding FC-0 Physical interface
2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.07-14

The Small Computer System Interface (SCSI) command set is widely used among storage devices. Even though SCSI bus technology is not suitable for SANs, the SCSI command set is well-suited for many types of storage applications. The use of the SCSI command set enables the use of inexpensive SCSI disks and SCSI tape drives in FC SAN storage devices. SCSI-FCP also enables compatibility with existing operating systems and legacy storage applications. In fact, most operating systems and applications are not aware of the FC SANFC devices appear to the host and its applications as SCSI devices. The mapping of the SCSI protocol to FC is called SCSI-Fibre Channel Protocol (SCSI-FCP), or sometimes simply FCP. SCSI-FCP is the ULP command set used on most FC SANs. SCSIFCP provides the command set for reading and writing data to and from storage devices. The fact that FC supports a wide range of protocols allows FC to meet the needs of diverse applications and integrate with heterogeneous platforms. FC supports the following existing ULP protocols: The Enterprise Systems Connection (ESCON) protocol is a storage interconnect used in IBM mainframe computing environments. The Fibre Connection (FICON) protocol allows ESCON assets to be used within an FC SAN infrastructure. The FC-SB-2 standard maps FICON to FC-2. The IEEE 802.2 standard defines the generic logical link control (LLC) layer in the OSI Reference Model. The FC-LE standard helps map IEEE 802.2-based protocols to FC. IP is the protocol that drives the Internet. FC-IP allows FC to carry the IP protocol. Servers can use IP to communicate with each other over the SAN. High Performance Parallel Interface (HiPPI) connects devices at short distances and high speeds. HiPPI is used primarily to connect supercomputers and to provide high-speed backbones for LANs. The FC-FP standard maps HiPPI to FC. The FC-BB-2 standard enables FC to exchange data with ATM and Synchronous Optical Network (SONET) networks for long-haul transport of FC data.
AA-52 Implementing Cisco Storage Networking Solutions (ICSNS) v3.0 2007 Cisco Systems, Inc.

Fibre Channel Data Constructs


This section describes the Fibre Channel Data constructs: Frames, Sequences, Exchanges, and Ordered Sets.

Fibre Channel Data Constructs


Word Exchange Frame Sequence
FC

FC

HBA

Initiator

Target

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-16

The preceding graphic shows a transaction between a host (initiator) and a storage device (target): The smallest unit of data is a word. Words consist of 32 bits (4 bytes) of data that are encoded into a 40-bit form by the 8b/10b encoding process. Words are packaged into frames. An FC frame is equivalent to an IP packet. A sequence is a series of frames sent from one node to another node. Sequences are unidirectionalin other words, a sequence is a set of frames that are issued by one node. An exchange is a series of sequences sent between tow nodes. The exchange is the mechanism used by two ports to identify and manage a discrete transaction. The exchange defines an entire transaction, such as a SCSI read or write request. An exchange is opened whenever a transaction is started between two ports and is closed when the transaction ends. An FC exchange is equivalent to a TCP session.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-53

Fibre Channel Frames


Words Bytes 1 4
S O F

6 24
Header

0528 02112
Payload

1 4
CRC

1 = 537 4 = 2148
E O F

Optional Headers

Data or commands

Fill Bytes

Words 016 Bytes 064


2007 Cisco Systems, Inc. All rights reserved.

0512 02048

= 528 0-3 = 2112


ICSNS v3.07-17

Fibre Channel Frames


The maximum total length of an FC frame is 2148 bytes, or 537 words. This consists of: A 4-byte SOF delimiter A 24-byte header A data payload that can vary from 0 to 2112 bytes A 4-byte (32-bit) CRC that is used to detect bit-level errors in the payload A 4-byte EOF delimiter The frame payload consists of 3 elements: The payload itself, containing data or commands, can be up to 2112 bytes. The first 64 bytes of the payload can be used to incorporate optional headers. This would reduce the data payload size to 2048 bytes (2KB). The payload ends with 1-3 fill bytes. This is necessary because the smallest unit of data recognized by FC is a 4-byte word. However, the ULP is not aware of this FC requirement, and the data payload for a frame might not end on a word boundary. FC therefore adds up to 3 fill bytes to the end of the payloadas many as are needed to ensure that the payload ends on a word boundary.

AA-54

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Frame Channel Frames (Cont.)


FC protocol trace FLOGI example:

Frames (F)

Ordered Sets (OS) R-Rdy Idle

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-18

The screen image displays an FC protocol trace. A single FC frameFabric Login (FLOGI) is displayed in the right-hand window. Each word in the frame is depicted on a separate line, beginning with the SOF Frame Delimiter (SOFi3) and ending with the EOF Frame Delimiter (EOFt). The display shows the 6 words in the frame header, 29 words in the payload, and the 32-bit CRC.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-55

Frame Headers
S O F Header Payload CRC E O F

Bit Word 31 0 1 2 3 4 5 R_CTL CS_CTL TYPE SEQ_ID

24 23

16 15

8 7

D_ID S_ID F_CTL DF_CTL SEQ_CNT OX_ID RX_ID Parameter

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-19

Frame Headers
These are the header fields of an FC frame: R_CTL (Routing Control, 8 bytes): Frame type and function; used by the switch to route frames CS_CTL (Class Specific Control, 8 bytes): Class specific control information for Class 1, 4 &6 D_ID (Destination ID, 24 bytes): 24-bit address of the destination port S_ID Source ID, 24 bytes): 24-bit address of the source port TYPE (Data Structure Type, 8 bytes): Type of Information Unit & ULP carried by this frame F_CTL (Frame Control, 24 bytes): Specifies number of fill bytes and sequence control information SEQ_ID (Sequence ID, 8 bytes): Unique ID for each sequence SEQ_CNT (Sequence Count, 16 bytes): Frame count identifying each frame in the sequence DF_CTL (Data Frame Control, 8 bytes): Information about optional headers OX_ID (Originator ID, 16 bytes): Unique ID set by the exchange originator RX_ID (Receiver ID, 16 bytes): Unique ID set by the exchange responder Parameter (Parameter or Offset, 32 bytes): Used for multi-purpose parameters, such as buffer offset.

AA-56

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Ordered Sets
Transmission Word

Ordered Set
K28.5, Dxx.y, Dxx.y, Dxx.y

Data Word
Dxx.y, Dxx.y, Dxx.y, Dxx.y

Primitive Signal

Frame Delimiter

Fill Word

Control Signal
Receiver Ready Virtual Circuit Ready Close Open Dynamic Half-Duplex Mark Synchronize

Primitive Sequence
Non-Operational State Offline State Link Reset Link Reset Response Loop Initialization Loop Port Bypass Loop Port Enable

Start-of-Frame End-of-Frame

Idle Arbitrate

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-20

Ordered Sets are FC words (5 bytes) that are used for link-level functions. They are used because they are fast and light, and because commands sometimes need to be exchanged before devices have been assigned FC addresses. The first byte of an Ordered Set is always the K28.5 character, which defines the word as an Ordered Set. The second byte identifies the Ordered Set type, and the last two bytes can be used to transmit other parameters. There are three types of Ordered Sets: Frame Delimiters are used to mark the beginning and end of frames. Primitive Signals are used to initiate, synchronize, and terminate communication sessions, and to maintain synchronization when no other information is being transmitted on the link. The two types of Primitive Signals are fill words and control signals. Primitive Sequences are similar to Primitive Signals, but are transmitted repeatedly until a response is received. They are used for link and loop initialization.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-57

SCSI-FCP Operations
This section provides a brief overview of SCSI-FCP protocol operations.

ULP Information Transfer


SCSI-FCP Read Operation
Initiator
1
FCP_CMD IU 1

Fabric
2
Frame Frames

Target Sequence 1

Exchange

Sequence 2
Frame

IU 2 FCP_DATA

Sequence 3

FCP_RSP IU 3

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-22

The preceding diagram illustrates a SCSI-FCP read operation: 1. The initiator node generates a SCSI read request (FCP_CMD), which is packaged as IU 1. 2. The initiator FC-2 layer converts IU 1 to a single command chunk and sends it across the fabric as a single frame. This constitutes Sequence 1. 3. The target node processes IU 1, retrieves the requested data (FCP_DATA) from storage and packages the data as IU 2. 4. The target FC-2 layer converts IU 2 to one or more data chunks and sends them across the fabric. This constitutes Sequence 2. 5. The target node then generates a status command (FCP_RSP) that informs the initiator that the requested data transmission is complete. The status command is packaged as IU 3. 6. The target FC-2 layer converts IU 3 to a single command chunk and sends it across the fabric. This constitutes Sequence 3. At this point, the I/O operation is complete. The collection of three sequences constitutes a single exchange.

AA-58

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

ULP Information Transfer (Cont.)


SCSI-FCP Write Operation
Initiator
1
FCP_CMD IU 1

Fabric
2
Frame Frame

Target Sequence 1
4
FCP_XFR_ IU 2 RDY

Sequence 2 Exchange
5 IU 3 FCP_DATA 6

Frames

Sequence 3
Frame

Sequence 4
2007 Cisco Systems, Inc. All rights reserved.

FCP_RSP IU 4

ICSNS v3.07-23

The preceding diagram illustrates a SCSI-FCP write operation: 1. The initiator node generates a SCSI write request (FCP_CMD), which is packaged by the FC-4 layer as IU 1. 2. The initiator FC-2 layer converts IU 1 to a single command chunk and sends it across the fabric as a single frame. This constitutes Sequence 1. 3. The target node responds with a SCSI write request response (FCP_XFR_RDY), which is packaged as IU 2. The write request response is required for synchronization between the initiator and target. 4. The target FC-2 layer converts IU 2 to a single command chunk and sends it across the fabric. This constitutes Sequence 2. 5. The initiator node retrieves the data (FCP_DATA) from its ULP buffers and packages it as IU 3. 6. The initiator FC-2 layer converts IU 3 to one or more data chunks and sends them across the fabric. This constitutes Sequence 3. 7. The target then generates a status command (FCP_RSP) to confirm the end of the exchange. The command is packaged as IU 4. 8. The target FC-2 layer converts IU 4 to a single command chunk and sends it across the fabric. This constitutes Sequence 4. The collection of four Sequences constitutes a single Exchange.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-59

Link Services
This section describes what a Link Services command is, the role of Link Services, and how Link Services differ from Ordered Sets.

Fibre Channel Link Services


ULP-independent Fibre Channel commands Implement session management functions:
Fabric and port login Address resolution Error recovery

Defined within the FC-CT framework


Thus carried within a frame construct
ABTS

BA_ACC N_Port
2007 Cisco Systems, Inc. All rights reserved.

N_Port
ICSNS v3.07-25

Link Services are upper-layer protocol (ULP) independent FC commands. Link Services are used to implement control functions used in session management, such as fabric and port login, address resolution, and error recovery. Link Services are defined within the Fibre Channel Common Transport (FC-CT) framework. Link Services are transparent to ULPs. In other words, Link Services frames are generated by the initiator N_Port, not by the ULP driver. Upon receiving a Link Services command, the target N_Port processes and discards all Link Services frames. The preceding diagram shows an example of a Link Services exchange: The N_Port on the left has sent an ABTS Link Services command to attempt to terminate the current FC sequence. The N_Port on the right receives the ABTS request and responds with the BA_ACC Link Services command to indicate that the N_Port has successfully processed the ABTS request.
Note Ordered Sets are not Link Services. Ordered Sets are short, one-word (four-byte) commands that can carry, at the most, two bytes of parameters, whereas Link Services commands consist of one or more FC frames. Ordered Sets are typically used at the physical layer to perform basic link management functions. Link Services comprise a higherlevel command set that is essential to performing session management and error recovery.

AA-60

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Types of Link Services


Basic Link Services:
Implement a handful of basic control functions Must be supported Single frame (can be inserted into a sequence)

Extended Link Services:


Perform a variety of control functions at the FC-2 layer New commands are added regularly to provide additional control functions Only a few must be supported Always sent as a separate exchange

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-26

Types of Link Services


There are two types of link services: Basic Link Services implement just a handful of basic control functions. All Basic Link Services must be supported by all FC devices. Each Basic Link Service command is transmitted as a single frameeither as a single-frame sequence or as a frame inserted into a longer sequence. Extended Link Services are used to perform a variety of control functions between ports at the FC-2 layer. Extended Link Services are added regularly by the ANSI committee to provide additional control functions. Only a few Extended Link Services are required by the FC specification; most are optional. The number and functionality of Extended Link Services are constantly evolving. Extended Link Services are always sent as a separate exchange.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-61

Basic Link Services


NOP ABTS BA_ACC BA_RJT RMC PRMT No Operation Abort Sequence Basic Link Service Accept Basic Link Service Reject Remove Dedicated Connection (Class 1 or 6) Pre-empt Dedicated Connection (Class 1 or 6)

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-27

Basic Link Services


The Basic Link Services are as follows: NOP performs no specific operation but can be used to carry control information in the header, such as initiating a Class 1 or Class 6 connection. ABTS is used to abort the current sequence or an entire exchange. Only the ABTS command has a reply: BA_ACC if accepted and BA_RJT if rejected. BA_ACC is the normal response to an ABTS command BA_RJT is an abnormal response to an ABTS command if the ABTS request cannot be processed. There are several reasons why this may occur, including an invalid OX_ID or RX_ID. RMC is used to request an immediate Class 1 or 6 disconnection. The recipient will abort any current sequences and exchanges resulting in possible frame loss and will send a final ACK frame. PRMT is used to terminate a Class 1 or 6 connection if it is required for a higher priority connection.

AA-62

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Extended Link Services


Examples:
LS_ACC LS_RJT FLOGI PLOGI LOGO PRLI PRLO SCN RSCN SCR ECHO Extended Link Services Accept Extended Link Services Reject Fabric Login Port Login Port Logout Process Login Process Logout State Change Notification Registered State Change Notification State Change Registration Used for FC Ping and FC Trace
ICSNS v3.07-28

Required by Fibre Channel standard

Supported by all SAN implementations

2007 Cisco Systems, Inc. All rights reserved.

Extended Link Services


The Fibre Channel standard requires support for only a few Extended Link Services: FLOGI is used by an N_Port to log in to an F_Port and obtain a Fibre Channel address. PLOGI is used by one N_port to log in to another N_Port, open a session, and exchange service parameters. LOGO is used to terminate a login session and free its associated resources. LS_ACC notifies the sender of an Extended Link Service command that the command has been accepted. LS_RJT notifies the sender of an Extended Link Service command that the command was not accepted. The command might have been rejected because the port was busy at the time, the command was invalid or malformed, or the command is not supported by the receiver. The reason code in the payload gives a more precise reason for the rejection.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-63

Summary
This topic summarizes the key points that were discussed in this lesson.

Summary
Fibre Channel has a layered model that is similar in some respects to the OSI model. Fibre Channel constructs include words, frames, sequences and exchanges. The Fibre Channel protocol is broken down into control and data units. The control units in Fibre Channel are called Ordered Sets. Link Services are additional communications from port to port used to relay logins, state changes, error situations and other administration messages.

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-29

AA-64

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Lesson 4

FC Flow Control
Overview
Like any network protocol, Fibre Channel (FC) must define how the flow of data is managed. FC defines two flow control processes that are used either individually or together. FC uses a unique receiver-based flow control strategy that ensures that data is delivered efficiently and with a minimum of delivery errors.

Objectives
Upon completing this lesson, you will be able to explain Fibre Channel flow control and addressing. This includes being able to meet these objectives: Explain the Fibre Channel flow control process Calculate the number of buffer credits needed for a FC link Explain the Fibre Channel addressing schemes Explain the function of World Wide Names

Fibre Channel Flow Control


This section reviews the fundamental objectives of flow control and provides an example of a flow control strategy.

Fibre Channel Flow Control


How data interchange is controlled in a network The flow control strategy used by Ethernet and other data networks can degrade performance:
Transmitter does not stop transmitting packets until after the receivers buffers overflow Lost packets must be retransmitted Degradation can be severe under heavy traffic loads
Lost packets

Tx
PAUSE

Data

Data Data

Rx

Flow Control in Ethernet

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-4

Flow control is a mechanism for ensuring that frames are sent only when there is somewhere for them to go. Just as traffic lights are used to control the flow of traffic in cities, flow control manages the data flow in an FC fabric. Some data networks, such as Ethernet, use a flow-control strategy that can result in degraded performance: A transmitting port (Tx) can begin sending data packets at any time. When the receiving ports (Rx) buffers are completely filled and cannot accept any more packets, Rx tells Tx to stop or slow the flow of data. After Rx has processed some data and has some buffers available to accept more packets, it tells Tx to resume sending data. This strategy results in lost packets when the receiving port is overloaded, because the receiving port tells the transmitting port to stop sending data after it has already overflowed. Lost packets must be retransmitted, which degrades performance. Performance degradation can become severe under heavy traffic loads.

AA-66

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Credit-Based Flow Control


Fibre Channel uses a credit-based strategy: Transmitter does not send a frame until the receiver tells the transmitter that the receiver can accept another frame The receiver is always in control Benefits: Prevents loss of frames due to buffer overruns Maximizes performance under high loads
Port Rx has free buffers

1 0

DATA

Tx

READY

Rx Flow Control in Fibre Channel

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-5

Credit-Based Flow Control


To improve performance under high traffic loads, FC uses a credit-based flow control strategy in which the receiver must issue a credit for each frame that is sent by the transmitter before that frame can be sent. A credit-based strategy ensures that the receiving port is always in control. The receiving port must issue a credit for each frame that is sent by the transmitter. This strategy prevents frames from being lost when the receiving port runs out of free buffers. Preventing lost frames maximizes performance under high traffic load conditions because the transmitting port does not have to resend frames. The preceding diagram illustrates a credit-based flow control process: The transmitting port (Tx) counts the number of free buffers at the receiving port (Rx). Before Tx can send a frame, Rx must notify Tx that Rx has a free buffer and is ready to accept a frame. When Tx receives the notification, it increments its count of the number of free buffers at Rx. Tx only sends frames when it knows that Rx can accept them.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-67

Types of Flow Control


Fibre Channel defines two types of flow control:
Buffer-to-buffer (port-to-port) End-to-end (source-to-destination)
Buffer-to-buffer flow control

N_Port

F_Port

E_Port

E_Port

F_Port

N_Port

End-to-end flow control

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-6

Types of Flow Control


FC defines two types of flow control: Buffer-to-buffer flow control takes place between two ports that are connected by a FC link, such as an N_Port and an F_Port, or two E_Ports, or two L_Ports. End-to-end flow control takes place between the source node and the destination node. Note that buffer-to-buffer is performed between E_Ports in the fabric, but it is not performed between the incoming and outgoing ports in a given switch. In other words, FC buffer-to-buffer flow control is not used between two F_Ports or between an F_Port and an E_Port within a switch. FC does not define how switches route frames across the switch. Buffer-to-buffer flow control is used in the following situations: Class 1 connection request frames use buffer-to-buffer flow control, but Class 1 data traffic uses only end-to-end flow control. Class 2 and Class 3 frames always use buffer-to-buffer flow control. Class F service uses buffer-to-buffer flow control. In an Arbitrated Loop, every communication session is a virtual dedicated point-to-point circuit between a source port and destination port. Therefore, there is little difference between buffer-to-buffer and end-to-end flow control. Buffer-to-buffer flow control alone is generally sufficient for arbitrated loop topologies. End-to-end flow control is used in the following situations: Classes 1, 2, 4, and 6 use end-to-end flow control. Class 2 service uses both buffer-to-buffer and end-to-end flow control.

AA-68

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Buffer to Buffer and End-to-End Flow Control


Fabric
F_Port
R_RDY

F_Port

Data N_Port A

R_RDY

4
R_RDY

2
R_RDY
ACK

1 N_Port
B

5
Buffer-to-buffer flow control

Buffer-to-buffer flow control

End-to-end flow control


2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.07-7

Buffer-to-Buffer Flow Control and End to End Flow Control


The preceding preceding diagram illustrates buffer-to-buffer flow control in Class 3: 1. Before N_Port A can transmit a frame, it must receive the primitive signal R_RDY from its attached F_Port. The R_RDY signal tells N_Port A that its F_Port has a free buffer. 2. When it receives the R_RDY signal, N_Port A transmits a frame. 3. The frame is passed through the fabric. Buffer-to-buffer flow control is performed between every pair of E_Ports, although this is not shown here. 4. At the other side of the fabric, the destination F_Port must wait for an R_RDY signal from N_Port B. 5. When N_Port B sends an R_RDY, the F_Port transmits the data frame. End-to-end flow control is designed to overcome the limitations of buffer-to-buffer flow control. The preceding preceding diagram illustrates end-to-end flow control in Class 2: 1. Standard buffer-to-buffer flow control is performed for each data frame. 2. After the destination N_Port B receives a frame, it waits for an R_RDY from the F_Port. 3. When N_Port B receives an R_RDY, it sends an acknowledgement (ACK) frame back to N_Port A. 4. At the other side of the fabric, the initiator F_Port must wait for an R_RDY signal from N_Port A. 5. When N_Port A sends an R_RDY, the F_Port transmits the ACK frame. End-to-end flow control involves only the port at which a frame originates and the ultimate destination port, regardless of how many FC switches are in the data path.
2007 Cisco Systems, Inc. Appendix A: The Fibre Channel Protocol AA-69

When end-to-end flow control is used, the transmitting port is responsible for ensuring that all frames are delivered. Only when the transmitting N_Port receives the last ACK frame in response to a sequence of frames sent does it know that all frames have been delivered correctly, and only then will it empty its ULP data buffers. If a returning ACK indicates that the receiving port has detected an error, the transmitting N_Port has access to the ULP data buffers and can resend all of the frames in the sequence.

AA-70

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Credit Management Methods


Base credit management method:
Transmitting port knows how many buffers the receiving port has Transmitting port can begin sending immediately

Alternate credit management method:


Transmitting port knows only how many free buffers the receiving port can guarantee Transmitting port must wait for R_RDY

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-8

Credit Management Methods


There are two types of credit management used on FC SANs: In the base credit management method, the transmitting port knows how many buffers the receiving port has. The transmitting port can therefore begin sending frames immediately after a session is established. In the alternate credit management method, the transmitting port knows only how many free buffers the receiving port can guarantee. The transmitting port must therefore wait for the receiving port to send an R_RDY signal before sending a frame.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-71

The Base Credit Management Method


1. At login, Rx tells Tx how many buffers Rx has (BB_Credit) 2. Tx sets BB_Credit_CNT = 0 at login 3. Tx increments BB_Credit_CNT when it sends a frame 4. Rx sends an R_RDY when it processes the frame 5. Tx decrements BB_Credit_CNT when it receives R_RDY Tx sends only when BB_Credit_CNT < BB_Credit
BB_Credit: 4 4 3 2 BB_Credit_CNT: 1 0 Tx
R_RDY ACC PLOGI DATA

Rx

Base Credit Management Method

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-9

The Base Credit Management Method


The base credit management method works as follows: When the transmitting port sends a port login request, the receiver responds with an accept frame (ACC) that includes information on the size and number of frame buffers it has (BB_Credit). The transmitting port stores the BB_Credit value in a table. The transmitting port also stores another value called BB_Credit_CNT, which represents the number of used buffer credits. BB_Credit_CNT is set to zero after the ports complete the login process. Each time the transmitting port sends a frame, it increments BB_Credit_CNT. Upon receiving the frame, the receiver processes the frame and moves it to upper-layer protocol (ULP) buffer space. The receiving port then sends an R_RDY acknowledgement signal back to the transmitting port, informing it that a buffer is available. When the transmitting port receives the R_RDY signal, it then decrements its BB_Credit_CNT. To prevent overrunning the receiving ports buffers, the transmitting port can never allow BB_Credit_CNT (the count of frames which have not yet been acknowledged) to exceed BB_Credit (the total number of buffers in the receiving port). In other words, if it cannot confirm that the receiving port has a free buffer, it does not send any more frames.

AA-72

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Allocating Buffer Credits


This lesson explains how to calculate the number of buffer credits needed for a FC link of a given distance.

Allocating Buffer Credits


Credit requirement depends on link length:
Calculated based on frame size, propagation delay, and end-to-end latency Latency is deterministic for pure Fibre Channel links Default credit allocation is generally sufficient for intradatacenter links Allocation must often be increased for long-haul links FCIP links require additional credits due to IP latency Cisco 16-port switch modules support up to 255 credits

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-11

The number of buffer-to-buffers required for a link depends on the physical length of that link. The number of credits required is calculated based on frame size, propagation delay (speed of light in fiber), and the end-to-end latency of the link; of all of these factors, latency is the only variable. On a pure FC link, latency is deterministic and depends primarily on the length of the link and the number of hops. On an FC WAN link (such as FCIP), latency depends on the characteristics of the WAN. The default credit allocation on most vendors switches is generally sufficient for intradatacenter links. However, the credit allocation often must be increased for long-haul links. FC WAN links, including FCIP, typically require additional buffer credits due to the increased latency of the IP network. Cisco 16-port switch modules support up to 255 credits per port, which provides ample credits for most applications.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-73

Allocating Buffer Credits (Cont.)


Credits = (Round_Trip_Time + Processing_Time) Serialization_Time

Frame serialization time:


Link rate of 1.0625 Gb/s = 9.41ns/byte Frame size = 2048 data + 36 header + 24 IDLE = 2108 bytes Frame serialization time = 19.84s 20s 10Km 20s
Frame

Initiator N_Port
2007 Cisco Systems, Inc. All rights reserved.

Target N_Port
ICSNS v3.07-12

You can calculate the number of credits required on a link to maintain optimal performance using the following formula:
Credits = (Round_Trip_Time + Processing_Time) / Serialization_Time

Example
This diagram and the following two diagrams illustrate how the required number of BB_Credits are calculated for a 10km, 1Gb/s FC link: At a link rate of 1.0625 Gb/s, the time required to serialize (transmit) each byte is 9.41ns. (Note that each byte is 10 bits due to 8b/10b encoding.) The maximum Fibre Channel frame size is 2048 bytes. The frame size used in an actual customer environment would be based on the I/O characteristics of the customers applications. You also need to account for the frame header, which is 36 bytes, and the number of IDLEs between frames, which is usually 6 IDLEs, or 24 bytes. This gives a total of 2108 bytes. The total serialization time for a 2108-byte frame (including idles) is 19.84s, or approximately 20s.

AA-74

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Allocating Buffer Credits (Cont.)


Propagation delay:
Speed of light in fiber 5s/Km Time to transmit frame across 10Km 50s

Processing time:
Assume same as deserialization time 20s 10Km 20s 50s Frame 20s
Frame

Initiator N_Port

Target N_Port

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-13

The speed of light in a fiber optic cable is approximately 5s per kilometer, so each frame will take about 50s to travel across the link. The receiving port must then process the frame, free a buffer, and generate an R_RDY. This processing time can varyfor example, if the receiver ULP driver is busy, the frame might not be processed immediately. In this case, we can assume that the receiving port will process the frame immediately, so the processing time is equal to the time it takes to deserialize the frame. The deserialization time is equal to the serialization time: 20s

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-75

Allocating Buffer Credits (Cont.)


Response time:
Time to transmit R_RDY across 10Km 50s

Total latency 50s + 20s + 50s = 120s


10Km 20s 50s Frame
R_RDY

20s
Frame

50s Target N_Port

Initiator N_Port

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-14

The receiving port then transmits a credit (R_RDY) back across the link. This response takes another 50s to reach the transmitter. The total latency on the link is equal to the frame serialization time plus the round-trip time across the link, or about 120s.

AA-76

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Allocating Buffer Credits (Cont.)


Given frame serialization time 20s and total latency 120s, there could be up to 6 frames on the link at one time Buffer-to-buffer credits required = 6
10Km
Frame Frame Frame Frame Frame Frame

Initiator N_Port

Target N_Port

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-15

Given a frame serialization time of 20s, and a total round-trip latency of 120s, there could be up to 6 frames on the link at one time. In other words, six buffer-to-buffer credits are required to make full use of the bandwidth of the link.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-77

Allocating Buffer Credits (Cont.)


Credit requirement also depends on frame size:
1Gb/s Payload Size 2048 bytes 1024 512 256 128 64 32 Serialization Time 19.84s 10.20 5.38 2.97 1.77 1.17 0.87 Credits Required 6 11 20 35 58 87 116 2Gb/s Serialization Time 9.93s 5.11 2.69 1.49 0.89 0.58 0.43 Credits Required 11 21 38 68 114 172 232

All figures based on 10Km link


2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.07-16

The formula for calculating required credits is Credits = (Round_Trip_Time + Processing_Time) / Serialization_Time. Serialization time is proportional to frame size, so the number of credits required varies with frame size. For example, with a 10Km link at 2Gb/s, only 11 credits are required if the average frame size is the maximum (2048 payload bytes). However, if the average payload is 32 bytes, 232 credits are required.

AA-78

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Fibre Channel Addressing


This section describes the addressing mechanism used by Fibre Channel.

Fibre Channel Addressing


239 Domains (01EF)
Bit 23 16 15 08 07 00

Domain

Area

Port

FC

Nodes Hub

FC
HBA

FC
HBA

Switch
FC FC

FC
HBA

FC
HBA

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-18

The FC point-to-point topology uses a 1-bit addressing scheme. One port assigns itself an address of 000000 and then assigns the other port an address of 000001. The FC Arbitrated Loop topology uses an 8-bit addressing scheme: The Arbitrated Loop Physical Address (AL_PA) is an 8-bit address, which provides 256 potential addresses. However, only a subset of 127 addresses are available due to 8b/10b encoding requirements. One address is reserved for an FL_Port, so there are 126 addresses available for nodes. Addresses are cooperatively chosen during loop initialization.

The Switched Fabric Address Space


The 24-bit FC address consists of three 8-bit elements: The Domain ID is used to define a switch. Each switch receives a unique Domain ID. The Area ID is used to identify groups of ports within a Domain. Areas can be used to group port ports within a switch, and are also used to uniquely identify fabric-attached arbitrated loops. Each fabric-attached loop receives a unique Area ID. The Port ID is used to identify each individual port within an Area. Although the Domain ID is an 8-bit field, only 239 Domains are available to the fabric: Domains 01EF are available Domains 00 and F0FF are reserved for use by switch services

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-79

Each switch must have a unique Domain ID, so there can be no more than 239 switches in a fabric. The largest director-class switch available today has 256 ports, so the practical limit on the number of nodes that can be supported in a fabric is 61184 ports (239 domains x 256 ports). With 16-port switches the total port count is reduced to 3824 (239 domains x 16 ports), minus the number of ports used for ISLs. Note that these calculations do not take into account ports consumed by inter-switch links (ISLs)which reduces the number of portsor the fact that an arbitrated loop multiple L_Ports can be attached to a single FL_Portwhich increases the potential number of ports.

AA-80

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

The FC-AL Address Space


Bit 23 16 15 08 07 00

Fabric

Domain Domain

Area Area

Port AL_PA AL_PA

Public Loop Private Loop

00000000 00000000

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-19

The FC-AL Address Space


In a public (fabric-attached) loop: Public NL_Ports are assigned a full 24-bit fabric address when they log into the fabric. There are 126 AL_PA addresses available to NL_Ports in an arbitrated loop; the AL_PA 0x00 is reserved for the FL_Port (which is logically part of both the fabric and the loop). The Domain and Area fields are identical to those of the FL_Port to which the loop is connected. In a private (isolated) loop : Private NL_Ports can communicate with each other based upon the AL_PA, which is assigned to each port during loop initialization. Private NL_ports are not assigned a 24-bit fabric address, and the Domain and Area segments are not used.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-81

World-Wide Names
This section introduces WWNs, a second addressing scheme used on FC SANs.

World-Wide Names
Every Fibre Channel port and node has a hard-coded address called a World Wide Name (WWN):
Allocated to manufacturer by IEEE Coded into each device when manufactured 64 or 128 bits (128 bits most common today)

Switch Name Server maps WWNs to FC addresses:


World-Wide Node Names (WWNNs/NWWNs) uniquely identify devices World-Wide Port Names (WWPNs/PWWNs) uniquely identify each port in a device
Example WWN Example WWN WWN 20:00:00:45:68:01:EF:25 Example WWNs from a Dual-Ported Device Example WWNs from a Dual-Ported Device WWNN WWPN A WWPN B 20:00:00:45:68:01:EF:25 21:00:00:45:68:01:EF:25 22:00:00:45:68:01:EF:25
ICSNS v3.07-21

2007 Cisco Systems, Inc. All rights reserved.

WWNs are unique identifiers that are hard-coded into FC devices. Every FC port has at least one WWN. Vendors buy blocks of WWNs from the IEEE and allocate them to devices in the factory. WWNs are important for enabling fabric services because they are: Guaranteed to be globally unique Permanently associated with devices These characteristics ensure that the fabric can reliably identify and locate devices, which is an important consideration for fabric services. When a management service or application needs to quickly locate a specific device: 1. The service or application queries the switch Name Server service with the WWN of the target device 2. The Name Server looks up and returns the current port address that is associated with the target WWN 3. The service or application communicates with the target device using the port address

AA-82

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

There are two types of WWNs: WWNNs uniquely identify devices. Every host bus adaptor (HBA), array controller, switch, gateway, and FC disk drive has a single unique WWNN. WWPNs uniquely identify each port in a device. A dual-ported HBA has three WWNs: one WWNN and a WWPN for each port. WWNNs and WWPNs are both needed because devices can have multiple ports. On singleported devices, the WWNN and WWPN are usually the same. On multi-ported devices, however, the WWPN is used to uniquely identify each port. Ports must be uniquely identifiable because each port participates in a unique data path. WWNNs are required because the node itself must sometimes be uniquely identified. For example, path failover and multiplexing software can detect redundant paths to a device by observing that the same WWNN is associated with multiple WWPNs. Cisco MDS switches use the following acronyms: PWWN (Port WWN) NWWN (Node WWN)

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-83

Summary
This topic summarizes the key points that were discussed in this lesson.

Summary
Fibre Channel uses a credit-based strategy Two types of flow control: Buffer-to-buffer (port-to-port) End-to-end (source-to-destination) Credit requirements depend on frame size, RTT, serialization, and processing time FC addressing is a 24-bit number: 3 bytes represent: [ domain ] [ area ] [ port ] Every Fibre Channel port and node has a hard-coded address called a World Wide Name (WWN).
2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.07-22

AA-84

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Lesson 5

FC Login
Overview
The Fabric Login, Port Login, and Process Login protocols define how fabric ports behave when they are brought online and when they want to establish a communication session. This lesson provides a detailed examination of each of the login protocols. It explains the role that each login protocol serves, and identifies the commands that are exchanged during each phase of each protocol.

Objectives
Upon completing this lesson, you will be able to describe the Fibre Channel device login process. This includes being able to meet these objectives: Identify the phases of the Fabric Login protocol Identify the phases of the Port Login protocol Identify the phases of the Process Login protocol Identify the phases of the Loop Initialization and Arbitration protocols

Fabric Login
This section provides an overview of the session establishment protocols that are performed by N_Ports and F_Ports in a fabric topology.

Fabric Login
Fabric Node N_Port A FLOGI FLOGI PLOGI PLOGI Process A Process F_Port A F_Port B N_Port B FLOGI FLOGI Node

Process

PRLI PRLI

Process B

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-4

Before an N_Port can begin exchanging data with other N_Ports, three processes must occur: The N_Port must log in to its attached F_Port. This process is known as Fabric Login (FLOGI). The N_Port must log in to its target N_Port. This process is known as Port Login (PLOGI). The N_Port must exchange information about ULP support with its target N_Port to ensure that the initiator and target process can communicate. This process is known as Process Login (PRLI).

AA-86

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Fabric Login (Cont.)


Hey! I am connected to something I must tell it I am here and in the Not Operational State.

Hey! I am connected to something I must tell it I am here and in an Off-Line State.

F_Port

1
F_Port N_Port F_Port

Node

Switch

N_Port

NOS OLS

Node

F_Port

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-5

FLOGI is the initial bootstrap process that occurs when an N_Port is connected to an F_Port. FLOGI is mandatory for N_Ports, and optional for NL_ports.The N_Port uses Fabric Login to discover if a fabric is present. Communication with other N_Ports may not be attempted until the Fabric Login process is complete. The FLOGI protocol follows this process: 1. The F_Port sends a primitive sequence of NOS (Not Operational) to the N_Port. 2. When the N_Port receives the NOS, it responds with a primitive sequence of OLS (Offline State) to begin link initialization.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-87

Fabric Login (Cont.)


A new connection! This F_Port is trying to initialize the link. I will respond. I will try to reset the link.

F_Port

3
F_Port N_Port F_Port

Node

Switch

N_Port

LR LRR

Node

4
F_Port

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-6

3. After the N_Port begins the initialization process with by sending OLS, the F_Port tries to reset the port by sending an LR (Link Reset) command. 4. The N_Port responds with an LRR (Link Reset Response) command.

AA-88

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Fabric Login (Cont.)


Let us engage in some IDLE conversation until something happens.

This is just IDLE talk, filling the time with words.

F_Port

F_Port

N_Port

F_Port

Node

5
IDLE

Switch

N_Port

IDLE

Node

F_Port

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-7

5. From this point on, the link is active and IDLE fill words flow in both directions on the link. 6. Following link initialization, a new N_Port uses an S_ID of 000000 or 0000[AL_PA] to indicate that the port is unidentified during FLOGI. An existing N_Port uses its existing port address as its S_ID.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-89

Fabric Login (Cont.)


Ok, here is a unique port address.

Great, I have established a link with the switch! Now I need to request a port address.

F_Port

7
F_Port Login Server N_Port F_Port

Node

Switch

N_Port

LS_ACC FLOGI

Node

6
F_Port

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-8

7. After the N_Port has established a link to its F_Port, the N_Port obtains a port address by sending a FLOGI Link Services command to the switch Login Server (at Well-Known Address 0xFFFFFE). 8. The Login Server sends an ACC reply that contains the N_Port address in the D_ID field. When an N_Port is performing FLOGI and receives ACC frame that indicates that the ACC came from another N_Port, then the N_Port that is logging in assumes that it is in a point-topoint configuration. In this case, the N_Port immediately initiates PLOGI with the other N_Port after completing FLOGI.

AA-90

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Fabric Login (Cont.)


Thank you for your information.

Now that I have a port address I will log in to the Name Server and tell it about me.

F_Port

9
F_Port Name Server N_Port F_Port

Node

Switch

N_Port

LS_ACC PLOGI

Node

8
F_Port

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-9

9. After receiving a port address, the N_Port logs into the Fabric Name Server at address 0xFFFFFC and transmits its service parameters, such as the number of buffer credits it supports, its maximum payload size, and supported Classes of Service. 10. The Name Server responds with an LS_ACC frame.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-91

LS_ACC Frame Format

Word 0 1-4 5-6 7-8 9-12 13-17 18-21 22-25 26-29

Bits 31-24 Bits 23-16 Bits 15-8 Bits 7-0 Command 04 00 00 00 Common Service parameters (16 bytes) N_Port Name (8 bytes) Node Name (8 bytes) Class 1 Service Parameters (16 bytes) Class 2 Service Parameters (16 bytes) Class 3 Service Parameters (16 bytes) Class 4 Service Parameters (16 bytes) Vendor Version Level (16 bytes)

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-10

This table shows the format of the LS_ACC frame.

AA-92

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Fabric Login (Cont.)

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-11

The preceding image shows an analyzer trace that displays part of a fabric login sequence. The top of the trace shows the OLS-LR-LRR sequence that occurred while the link was being initialized. The right-hand panel shows the contents of the FLOGI frame from the N_Port to the F_Port (FFFFFE). Useful information can be obtained by studying these analyzer traces: Notice that at this time the N_Port does not yet have an address. Notice also that the World Wide Port Name is the same as the World Wide Node Name. This is common in single ported nodes. The N_Port does not support Class 1, but it does support Classes 2 and 3. The N_Port supports Alternate Buffer Credit Management Method and can guarantee 2 BB_Credits at its receiver port. You can see that this is a single-frame Class 3 sequence because the Start of Frame is SOFi3 and End of Frame is EOFt, meaning that this initial first frame is also the last one in the sequence.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-93

Port Login
This section provides a description of the PLOGI protocol. Each command used during PLOGI is identified; however, the parameters exchanged during each command are not described in detail.

Port Login
I want to exchange data with another N_Port. I will tell them I am here and find out what their capabilities are.

F_Port

F_Port

N_Port

F_Port

Node

N_Port

Node

PLOGI

PLOGI

F_Port

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-13

After completing the FLOGI process, the N_Port can log in to another N_Port using the PLOGI protocol. PLOGI must be completed before the nodes can perform any ULP operations. The PLOGI protocol follows this process: 1. The initiator N_Port sends a PLOGI frame that contains the N_Ports operating parameters encapsulated in the payload.

AA-94

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Port Login (Cont.)


Hello. I must tell you that I support only Class 3 and cannot accept large frames.
F_Port

2
F_Port N_Port F_Port

Node

N_Port

LS_ACC

LS_ACC

Node

I see that this port has some limitations, so I will operate in Class 3 with small frame sizes.

F_Port

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-14

2. The target N_Port responds to the initiator N_Port by sending an ACC frame that specifies the target N_Ports operating parameters. The operating system driver that manages the initiator N_Port stores this information in a parameter block. An N_Port can be logged into multiple N_Ports simultaneously. N_Ports typically perform Port Logout (PLOGO) only when one of the nodes go offline.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-95

Port Login (Cont.)

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-15

The image shows the N_Port logging in to another N_Port a PLOGI command. Note that the N_Port has provided the same data that it provided when it logged in to the Name Server.

AA-96

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Port and Address Discovery


Discover Address (ADISC):
Confirm port addresses Discover the whether the other port has a hard-coded address

Discover F_Port Service Parameters (FDISC):


Verify fabric service parameters

Discover N_Port Service Parameters (PDISC):


Verify service parameters between two N_Ports

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-16

Port and Address Discovery


After FLOGI is and PLOGI are complete, the N_Port can use the following Extended Link Services commands to retrieve updated information or verify information about port addresses and service parameters: Discover Address (ADISC) can be used to confirm another ports address or to discover whether the other port has a hard-coded address. Discovery Fabric Service Parameters (FDISC) can be used to verify fabric service parameters. Discover N_Port Service Parameters (PDISC) can be used to verify the service parameters of another N_Port. These commands allow ports to query and verify fabric and port parameters without performing PLOGI and thus forcing logout of the current session.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-97

Process Login
This section provides a description of the PRLI protocol. Each command used during PRLI is identified; however, the parameters exchanged during each command are not described in detail.

Process Login
I am going to be using the SCSI protocol. I wonder if the target can support the same functions as I can.
F_Port

F_Port

N_Port

F_Port

Node

N_Port

PRLI

PRLI

Node

1
F_Port

I must tell the target what SCSI functionality I can support and find out what the target can support.
2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.07-18

After completing the PLOGI protocol, both N_Ports knows about the others Fibre Channel (FC) operating parameters capabilities. At this point, the driver for the initiator port can open a channel with the driver associated with the target port using the PRLI protocol. The PRLI protocol is used to establish a session between two FC-4 level logical processes. The PRLI protocol follows this process: 1. The initiator sends a PRLI frame that contains information about its ULP support.

AA-98

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Process Login (Cont.)


Yes, I have SCSI support! Thanks for your information. Here are my details.
F_Port

2
F_Port N_Port F_Port

Node

N_Port

LS_ACC

LS_ACC

Node

F_Port

Now we have information about each other, we will only talk in protocols that we can both understand

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-19

2. The target port responds with an ACC frame that contains details about its ULP support. At this point, a channel has been successfully opened and communication can take place. The relationship between the initiator process and the target process is known as an image pair.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-99

Process Login (Cont.)


Ok, I am done exchanging data now. See you later!
F_Port

4
F_Port N_Port

Node

N_Port

F_Port

LS_ACC PRLO

LS_ACC PRLO

Node

3
F_Port

Thanks for the memories

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-20

3. When the initiator has finished exchanging data with the target, the initiator sends a Process Logout (PRLO) frame. 4. The target responds with an ACC frame, and the image pair is then terminated. At this point, the image pair must be established again before further communication can take place.

AA-100

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Process Login (Cont.)

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-21

The image shows the N_Port performing process login (PRLI) with its target N_Port. The payload data in a PRLI is relevant to the ULP, which in this case is SCSI-FCP. For example: This N_Port can function as an initiator. The ULP driver does not use the SCSI-3 XFER_RDY command during SCSI Read operations.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-101

Process Login (Cont.)

SP=0000001 2

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-22

The image shows the target N_Port responding to the PRLI command shown on the previous page.

AA-102

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Loop Initialization and Arbitration


This section provides a description of the Loop Initialization and Arbitration protocol. Each command used during Loop Initialization is identified; however, the parameters exchanged during each command are not described in detail.

Loop Initialization and Arbitration


Initialization
A
Inform Inform all ports all ports Select Select

Arbitration
A
Arbitrate Arbitrate for ownership for ownership

Open Open a channel a channel

B a loop master a loop master C


Select Select AL_PAs AL_PAs

C D E
Position Map Position Map Reporting Reporting Position Map Position Map Distribution Distribution

Transfer Transfer data data

Close Close the channel the channel

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-24

The Loop Initialization Protocol


There are five phases in the Loop Initialization protocol: A. The port that has just come online informs the other ports that it is initiating the initialization process. B. The ports cooperatively select one port to manage the remainder of the process. This port is known as the loop master. C. The ports cooperatively select their own AL_PAs. D. The ports collect an address book of port addresses known as the position map or position bitmap. E. The ports circulate and save a copy of the completed position map.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-103

The Loop Arbitration Protocol


There are four phases in the Loop Arbitration protocol: A. Arbitrate for ownership of the loop B. Open a logical connection to form an image pair C. Transfer data D. Close the connection The Open-Transfer-Close process used on arbitrated loops is similar to the Select-TransferRelease process used by SCSI.

AA-104

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

The Loop Port State Machine

LPSM LPSM

Upper-layer protocols FC-4 FC-3 Common Services FC-2 Framing & flow control FC-1 Encoding FC-0 Physical interface
FC-FS

FC-PI
ICSNS v3.07-25

2007 Cisco Systems, Inc. All rights reserved.

The Loop Port State Machine


The Loop Port State Machine (LPSM) is an FC-2-layer function in each L_Port that protocols the loop-specific commands used for flow control on arbitrated loops. The LPSM is responsible for managing the Loop Initialization and Loop Arbitration protocols. It is implemented in hardware for speed.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-105

Summary
This topic summarizes the key points that were discussed in this lesson.

Summary
Fabric Login (FLOGI) is performed by all connecting devices to acquire an FCID Port Login (PLOGI) is performed to pass identification and capability to the name server Process Login (PRLI) is performed between end devices to exchange operating parameters capabilities and establish a session Loop initialization is performed by all device connecting to a loop hub or device to acquire an AL_PA (arbitrated loop physical address)

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-26

AA-106

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Lesson 6

FC Error Recovery
Overview
Each Fibre Channel (FC) layer plays a role in error management. In this lesson, you will learn about how each layer detects and recovers from errors. You will also learn about configuration parameters that affect the way a FC SAN responds to error conditions.

Objectives
Upon completing this lesson, you will be able to explain how Fibre Channel recovers from errors. This includes being able to meet these objectives: Explain how FC handles frame-level errors detected by the FC-1 layer Explain how FC handles sequence-level errors detected by the FC-2 layer Explain how the SCSI-FCP protocol handles error conditions

FC-1 Errors
This section describes the error recognition protocol in the FC-1 layer of Fibre Channel.

FC-1 Errors
Four consecutive invalid transmission words trigger an FC-0 loss-of-synchronization error

Invalid word detected Loss of Sync Valid word detected Sync (re)gained

Synchronization Acquired 1 2 3 4

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-4

Four consecutive invalid transmission words must occur to trigger an FC-0 loss-ofsynchronization error. This requirement prevents transient errors from causing loss of synchronization. The preceding graphic shows the trigger conditions required to cause a loss-of-synchronization error: The system starts in state 1. When an invalid word is detected, the system moves to state 2. If the next word is valid, the system moves back to state 1. After three consecutive invalid words, the system is in state 4. The next consecutive invalid word will trigger a loss-of-synchronization error.

AA-108

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Link Control Protocols and R_T_TOV


Receiver-Transmitter Timeout Value (R_T_TOV) applies to link-level events, such as:
Loss of synchronization Link initialization, reset, and failure protocols

Exceeding R_T_TOV during these events results in link failure Default value is 100ms Cannot be changed on MDS switches

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-5

Link failure occurs in the following situations: Loss of synchronization occurs and synchronization cannot be reestablished within a specified timeout period. An expected Primitive Sequence is not received within a specified timeout period during the link initialization, reset, and failure protocols.

R_T_TOV
The timeout period that governs both of these cases is the Receiver-Transmitter Timeout Value (R_T_TOV). The default value of R_T_TOV is 100ms. R_T_TOV cannot be changed on MDS switches. R_T_TOV is an FC-1 layer timer. This timer is used to detect loss of synchronization between the transmitter and receiver, and is also used to time link reset events. If R_T_TOV is too low, the transmitter and receiver will experience repeated loss of synchronization and link reset events. If R_T_TOV is too low for the link reset process to complete, the link will not come up.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-109

R_T_TOV (Cont.)
All ports in the fabric must have the same R_T_TOV value Fabric will segment if R_T_TOV is not consistent Shorter R_T_TOV (100s) has been proposed to provide faster error detection required for real-time systems, such as avionics environments

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-6

R_T_TOV is a fabric-wide timeout value. All ports in the fabric must have the same value. If R_T_TOV is not the same on two connected switches, the fabric will segment. The default value of 100ms is acceptable in most situations. However, R_T_TOV might need to be adjusted in some environments. Real-time environments like FC-AE require very fast responses, fast error recovery, and low latency. For applications with these requirements, 100ms is a long time to wait; 5000 2KB frames could be sent in that time. (Each 2KB frame takes approx 20s to serialize, so 5000 x 20s = 100ms.) Some FC developers have proposed reducing the default R_T_TOV to 100s (1000 times shorter) for certain environments.

AA-110

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

FC-2 Errors
This section describes the error recognition protocol in the FC-2 layer of Fibre Channel.

FC-2 Errors
Frame Errors
Invalid D_ID Invalid OX_ID Invalid R_CTL Invalid S_ID Invalid RX_ID Invalid F_CTL Invalid SEQ_ID Invalid SEQ_CNT Invalid DF_CTL Unsupported ULP or invalid TYPE Invalid Offset

Resource Errors
Too many Sequences Cannot establish Exchange

Delimiter Errors
Invalid SOF/EOF Unsupported Class of Service

Delivery Errors
Missing frame or ACK Out-of-order SEQ_CNT Undeliverable frames Sequence or link timeout

Only type of errors detected in Class 3 operation


2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.07-8

The FC-2 layer detects four general types of errors: Frame Errors occur when any of the frame header fields are invalid, such as a frame with an invalid D_ID or unsupported ULP. Resource Errors occur when the sequence count exceeds the maximum number of sequences within an exchange (256) or when a valid exchange cannot be established. Delimiter Errors occur when either SOF or EOF are invalid or if a frame is received with an unsupported Class of Service. Delivery Errors occur when frames arrive out of sequence, are missing, or fail to arrive within a specified time period.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-111

FC-2 ErrorsInvalid Frames (Cont.)


Reject and busy frames are sent when a Class 1, 2, 4, or F frame could not be processed Class 3 service is unacknowledged
Sent by an F_Port Frame is invalid Receiver cannot accept frame F_RJT F_BSY Sent by an N_Port P_RJT P_BSY

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-9

In Classes 1, 2, 4, and F, which all provide acknowledged delivery, a RJT or BSY response will be sent to the transmitting port when a frame is invalid or cannot be delivered: The fabric will reply with F_BSY if the destination switch port had no free buffers. The fabric will reply with F_RJT if the frame had an invalid D_ID or S_ID, or if the port is unavailable. The receiver will reply with P_BSY if the receiver port had no free buffers. The receiver will reply with P_RJT if the requested Class of Service or ULP is not supported. In Class 3, frames will be discarded without notification if the receiver port has no buffers, is unavailable, or does not support the requested Class of Service or ULP.

AA-112

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

E_D_TOV
E_D_T_V is an FC-2 layer timer:
Determines how long a receiver waits for a response before declaring an error condition

Default value of 2 seconds On FCIP links you might need to increase E_D_TOV if RTT exceeds 2 seconds:
Unusually high latency in the IP WAN Dropped packets that need to be retransmitted Congestion at the FCIP gateway (low-bandwidth IP)

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-10

E_D_TOV
E_D_TOV is an FC-2 layer timer. E_D_TOV determines how long a receiver waits for an expected response before declaring an error condition. For example, if a frame arrives out of sequence, the receiver waits E_D_TOV before it declares an error and aborts the sequence. The default value of E_D_TOV is usually 2 seconds on FC switches. This value is always sufficient for DWDM and almost always sufficient for SONET/SDH. On FCIP links, however, you might need to increase E_D_TOV due to two factors: There might be unusually high latency in the IP WAN, or there might be dropped packets that need to be retransmitted. In either case, it is possiblealthough unlikely in a welldesigned IP networkfor the total round-trip latency to exceed 2 seconds. The bandwidth of the IP link might be less than the bandwidth of the FC fabric, so frames could pile up in the fabric if the IP link becomes congested.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-113

Sequence Recovery
Sequence Error Detected

Send ABTS

Reply BA_ACC

Discard all frames in Sequence BA_ACC received? YES BA_ACC received? NO Implicit logout of other port
2007 Cisco Systems, Inc. All rights reserved.

Discard all frames in Sequence

Retry ABTS

NO

YES

? ? ? ?
ICSNS v3.07-11

Sequence Recovery
This diagram illustrates the first part of the sequence recovery process: When a sequence error occurs, the N_Port that detected the error sends the Abort Sequence (ABTS) Extended Link Services command to abort the sequence. ABTS can be transmitted as part of the current sequence or as a new sequence. The other N_Port responds with the Basic Accept (BA_ACC) command.. Both ports discard all frames in the Sequence. If the N_Port that sent ABTS does not receive BA_ACC, it assumes that the other ports is no longer available and performs an implicit port logout. In some cases, the entire exchange is aborted with the Abort Exchange (ABTX) command, and the entire exchange must be reestablished.

AA-114

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Sequence Recovery (Cont.)


When a sequence is aborted:
Frames from the aborted sequence could still be in transit for an undetermined period of time SEQ_ID can be reused, so receiver cannot distinguish old frames from new frames This could cause data errors at the ULP level The initiator therefore waits before allowing retransmission of the sequence

The wait time is determined by the Resource Allocation Timeout Value (R_A_TOV):
Default value is 10 seconds in a fabric Default value is 2 * E_D_TOV (4 sec) for point-to-point

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-12

When ABTS is issued to abort a sequence, the fabric must be purged of all frames in the sequence before the sequence can be re-transmitted; otherwise, old frames could arrive out of sequence. The receiver might not be able to differentiate between the old frames and the retransmitted frames, and data errors could result at the ULP level. Therefore, before the sequence is resent, the initiator waits for a specified period of time before retransmitting the sequence. This time period is determined by the Resource Allocation Timeout Value (R_A_TOV): In a fabric, the default value of R_A_TOV is 10 seconds. In a point-to-point topology, the default value of R_A_TOV is twice the value of E_D_TOV, or 4 seconds.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-115

Sequence Recovery (Cont.)


Sequence Error Detected

Send ABTS

Reply BA_ACC

Discard all frames in Exchange BA_ACC received? YES BA_ACC received? NO Implicit logout of other port
2007 Cisco Systems, Inc. All rights reserved.

Discard all frames in Exchange

Retry ABTS

NO

YES

Wait R_A_TOV

Send RRQ
ICSNS v3.07-13

This diagram continues the description of the sequence recovery process: After BA_ACC is received, the originating N_Port waits for a time equal to R_A_TOV (10 seconds in a fabric). After R_A_TOV has expired, the originating N_Port sends the Resource Recovery Qualifier (RRQ) command. After RRQ is sent, the ports can begin retransmission of the failed sequence or exchange.

AA-116

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

R_A_TOV
R_A_TOV is an FC-2 layer timer:
Specifies how long a frame can be in transit Used to determine how long a sender must wait before it can begin resending an aborted sequence

Default value of R_A_TOV is usually 10 seconds

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-14

R_A_TOV
R_A_TOV is an FC-2 layer timer. R_A_TOV specifies how long a FC frame can be in transit. This value is used to determine how long a sender must wait before it can begin resending a sequence after the sequence was aborted after an error occurred. The sender must wait for R_A_TOV because if a sender begins to resend a sequence before the frames from the old aborted sequence have been received, discarded or expired, frames from the old and new sequences might arrive intermixed. Because the FC protocol provides no way for the receiver to guarantee that the new sequence ID will be different than the old sequence ID, the sender waits until there is no chance that frames could still be in transit. The default value of R_A_TOV is usually 10 seconds on FC switches. This value is sufficient for any type of WAN link except some IP links.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-117

SCSI-FCP Error Recovery


This section describes the basic and enhanced error recovery methods used by the SCSI-FCP protocol.

SCSI-FCP Error Recovery


Basic error recovery:
SCSI-FCP uses the Abort, Discard Multiple Sequences error policy by default:
A failed sequence results in the entire exchange being retransmitted

Discarding the entire exchange is often not desirable:


Initiator must wait a minimum of R_A_TOV (10 seconds) before retrying the aborted exchange Impact can be greater on some media, e.g. tape devices that must rewind media when the stream is aborted

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-16

By default, the SCSI-FCP protocol uses the Abort, Discard Multiple Sequences exchange error policy, in which all sequences in the exchange are retransmitted. However, discarding the entire exchange is often not the most desirable solution. The initiator must wait for the R_A_TOV timeout period (10 seconds by default) to expire before retrying the aborted exchange. In addition to reducing overall performance, this long wait time can have greater impact in some situations. For example, if the failed operation is a backup application streaming frames to a tape drive, then the tape buffer will empty and the drive will stop. When the buffer begins to fill again, the tape will rewind, run up to speed, and continue streaming from the last file mark.

AA-118

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

SCSI-FCP Error Recovery (Cont.)


Initiator
E_D_TOV FCP_CMND FCP_RSP ABTS

Target
X
BA_ACC

R_A_TOV

12 seconds

Retry FCP_CMND

Basic Error Recovery


2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.07-17

The preceding diagram shows an example of basic SCSI-FCP error recovery: An FCP command (FCP_CMND) is issued by the initiator, Something goes wrong during the exchange and the FCP status sequence (FCP_RSP) does not arrive. The initiator waits for E_D_TOV (2 seconds) for the missing FCP_RSP to arrive. The initiator sends ABTS to abort the exchange. The target responds with BA_ACC. The initiator then waits for R_A_TOV (10 seconds) for all frames to be purged from the fabric before retrying the FCP command. A total of about 12 seconds elapses until the FCP command is resent.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-119

Enhanced Error Recovery


Enhanced error recovery:
The following FC-4 Link Services commands can be used to recover from an error without aborting the entire exchange:
Read Exchange Concise (REC) Sequence Retransmission Request (SRR)

The use of REC and SRR allows faster recovery:


Read Exchange Concise Timeout Value (REC_TOV) determines how long initiator waits before sending REC Default value of REC_TOV is E_D_TOV + 1 sec = 3 sec

Many vendors implement enhanced error recovery

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-18

Some ports are capable of using an enhanced recovery technique that allows nodes to recover from sequence errors without having to abort the entire exchange. This enhanced recovery technique is defined by FC-4 Link Services commands. FC-4 Link Services are similar to Extended Link Services, but FC-4 Link Services are defined by the ULP, whereas Extended Link Services are defined by FC-2. The Read Exchange Concise (REC) Extended Link Service command allows the initiator to ask the target to report the status of the exchange. The Sequence Retransmission Request (SRR) Extended Link Service command requests retransmission of the exchange beginning at a specific sequence. The Read Exchange Concise Timeout Value (REC_TOV) determines how long the initiator waits before sending the REC command. The default value of REC_TOV is equal to the value of E_D_TOV (2 seconds) plus 1 second. The REC and SRR commands are not defined in the FC-PH specification; rather, they are defined in the FCP-2 ULP specification. Many vendors take advantage of this technique.

AA-120

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Enhanced Error Recovery (Cont.)


Initiator
REC_TOV FCP_CMND FCP_RSP

Target
X

REC

3 seconds FC-4_ACC

SRR FC-4_ACC Resend FCP_RSP

Enhanced Error Recovery


2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.07-19

The preceding diagram shows an example of enhanced SCSI-FCP error recovery: An FCP_CMND is issued by the initiator, but something goes wrong during the exchange. The FCP_RSP does not arrive. The initiator waits REC_TOV (3 seconds) for the missing frame to arrive The initiator sends REC to request information about the status of the exchange. The target acknowledges REC by sending FC-4_ACC. When the initiator receives FC-4_ACC, the initiator knows where in the exchange the failure occurred. The initiator then sends SRR to request retransmission of the sequence. The target resends the missing FCP_RSP sequence. A total of about 3 seconds (the default value of REC_TOV) elapses until the initiator sends REC. This is about one quarter of the time elapsed during basic error recovery (12 seconds) in a similar situation.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-121

Summary
This topic summarizes the key points that were discussed in this lesson.

Summary
Four consecutive invalid transmission words trigger an FC-0 loss-of-synchronization error At FC-1, all ports in the fabric must have the same R_T_TOV value FC-2 layer detects four general types of errors:
1. 2. 3. 4. Frame Errors Resource Errors Delimiter Errors Delivery Errors

Initiator must wait a minimum of R_A_TOV (10 seconds) before retrying the aborted exchange

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-20

AA-122

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Summary (Cont.)
Receiver Transmitter Time-Out Value (R_T_TOV):
Short timer used to detect link-level failures

Error Detect Time-Out Value (E_D_TOV):


Medium-length timer used to time events at the sequence level

Resource Allocation Time-Out Value (R_A_TOV):


Long timer used to delay sequence recovery

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-21

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-123

AA-124

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Lesson 7

FC Switched Fabric
Overview
This lesson explains three important protocols in a Fibre Channel switched fabric. The fabric configuration protocol, the FSPF protocol, and the RSCN protocol. You will also learn about fabric services and how they are addressed.

Objectives
Upon completing this lesson, you will be able to describe the Fibre Channel Switched Fabric protocol. This includes being able to meet these objectives: Describe the high-level phases of the fabric configuration protocol Explain the FSPF protocol Explain the RSCN protocol Identify the standard fabric services and their well-known addressed

Fabric Configuration Overview


This section describes the steps taken during fabric initialization.

Fabric Configuration Overview


Word Sync Acquired Determine Port Operating Mode E_Port Mode? Exchange Link Parameters (ELP) Exchange Switch Capabilities (ESC)
YES NO

Wait for Fabric Login Principal Switch Selected (DIA) Domain Identifier Assigned Exchange Fabric Parameters (EFP)

Request Domain Identifiers (RDI)


NO

Domain ID Assigned?
2007 Cisco Systems, Inc. All rights reserved.

YES

Build Topology Database (FSPF)

Compute Least Cost Paths Build Routing Table


ICSNS v3.07-4

The diagram describes the steps taken, when a fabric is first initialized, a new switch is added to an existing, or a link becomes active. A switch port detects a valid signal on its attached link and achieves word synchronization. The switch port begins link initialization. If the port is capable of operating at more than speed, it may perform speed negotiation. The switch port determines the proper operating mode; FL_Port, F_Port or E_Port. Exchange Link Parameters (ELP). When two E_Ports are connected and the link initialized, the ports exchange link parameters. This is accomplished by using a set of switch internal link service (SW_ILS) parameters called Exchange Link Parameters (ELP). The ELP is sent from the Fabric Controller (xFFFFFD) in one switch to the Fabric Controller in the neighbor switch using Class-F service. Exchange Switch Capabilities (ESC). Next, ESC is sent between neighboring Fabric Controllers to agree upon a common routing protocol. Exchange Fabric Parameters (EFP). The principal switch is selected using the Exchange Fabric Parameters (EFP) (SW_ILS). The EFT is sent between Fabric Controllers in neighbor switches. Domain ID Identifier (DIA). After a principal switch has been selected, Domain_IDs are assigned to the switches. The Principal Switch assigns itself a Domain ID, then floods the fabric with this information. Request Domain Identifier (RDI). After a switch receives a Domain Identifier Assigned (DIA) switch internal link service, it can request a Domain_ID from the principal switch by sending a Request Domain identifier (RDI) to the principal switch.

AA-126

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Fabric Shortest Path First (FSPF). After the Domain_ID assignment phase is complete, routing tables are built. The switch may use the standardized FSPF protocol or a vendorunique routing protocol Build Routing Tables. Finally , each switch computes the paths it will use to deliver frames to other switches.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-127

FSPF
This section provides an overview of the FSPF protocol.

FSPF
Fabric Shortest Path First (FSPF):
Computes the least-cost path through the fabric, based on:
Link speed Number of hops
FC
HBA

FC
HBA

Avoids looping of frames All frames follow the same path Ensures in-order delivery in a stable SAN
FC

Frame 3 Frame 2 Frame 1

Single path In-order delivery


2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.07-6

The FSPF protocol is the routing protocol used on FC SAN fabrics. The preceding diagram shows that FSPF selects a single path for a given I/O transaction, avoiding looping and ensuring in-order delivery. The FSPF algorithm is a cost-based routing algorithm that computes the most efficient path between two connected nodes. The cost of a given path is based on two factors: The speed of each of the ISLs along the path The number of hops on the path Routing using a single fixed path prevents looping of frames and, in a stable SAN, ensures inorder delivery. In other words, if routes are stable, frames always follow the same path. However, if the least-cost route changes while a session is in progress, frames sent after the route change might take the new route.

AA-128

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

FSPF (Cont.)
Three protocols used in FSPF:
The Hello protocol is used to establish communication between two connected switches Initial Link State Record (LSR) database synchronization LSR database maintenance

These protocols use Switch Internal Link Services (SW_ILS) with Class F frames

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-7

The FSPF protocol maintains a Topology Database which is distributed to every switch in the fabric. If a switch detects a lost connection, either to a Node or to another switch (ISL), it will update the Topology Database and send a Link State Update frame to all other switches directly connected to it. Each of these switches will update their Topology Database and pass the LSR frame onto other switches. In this way the fabric is flooded with updates to the Topology Database. Any LSR frames already received are discarded to stop duplicate LSRs from being distributed throughout the fabric.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-129

FSPF Protocol Operations


Five stages of the FSPF protocol:
1. Hello protocol 2. Initial topology database synchronization 3. Topology database maintenance 4. Path discovery 5. Path computation

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-8

FSPF Protocol Operations


There are five stages associated with the FSPF protocol: 1. Hello protocol 2. Initial topology database synchronization 3. Topology database maintenance 4. Path discovery 5. Path computation Each of these FSPF stages uses switch internal link services (SW_ILS) and Class F service. However, unlike other SW_ILS operations, there are no expected reply sequences. The SW_ILS request is both the first and last sequence of the exchange. Responses are communicated in a separate SW_ILS request sequence using a new exchange. Operation of the FSPF protocol stages can be represented using a finite state machine. A separate instance of this state machine operates in every E_Port in the fabric.

AA-130

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

FSPF Protocol Operations (Cont.) Stage 1: The Hello Protocol


After a switch acquires a Domain_ID, it begins the process of building a routing table:
Hello messages act as a heartbeat: Default Hello Interval = 20s Default Hello Dead Interval = 80s

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-9

After a switch acquires a Domain_ID, it begins the process of building a routing table: 1. Does not know if neighbor switch has acquired a Domain_ID 2. Begins transmitting Hello messages to its neighbors on all initialized ISLs 3. Exchanges Domain_IDs with all neighbors After two switches have exchanged Domain_IDs, the ISL is active and FSPF topology database synchronization can begin.

Stage 1The Hello Protocol


The first stage of the FSPF protocol is called the Hello protocol. The Hello protocol is used to determine the status of the link connected to the switchs immediate neighbor. The switches use the Hello protocol to exchange Domain IDs with each other. After two switches have exchanged Domain_IDs, the ISL is active and the switches can proceed to the next stage of the FSPF protocol. Hello protocol messages are transmitted on a periodic basis on each interswitch link, even after two-way communication is established. Periodic Hello messages provide a mechanism to detect a switch that has failed. In effect, the Hello messages act as a heartbeat between the switches. If a switch fails to receive a Hello in the expected time, it assumes the neighbor switch is no longer operational: The Hello Interval is the time in seconds between Hello messages sent by this port. Its default value is 20 seconds. The Dead Interval is the time in seconds this port will wait for a Hello message from the attached port before removing the route to that port from the LSD. Its default value is 80 seconds.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-131

Note that the default values of these intervals mean that FSPF can take up to 100s to become aware of a link failure. You can lower these values to promote faster recovery when a link fails, but you should also keep in mind that Hello messages are flooded, so smaller Hello Interval values increase congestion. The Hello Dead Interval should generally be set to 4 times the Hello Interval to avoid triggering unnecessary FSPF route computation if Hello messages are lost due to congestion.

AA-132

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

FSPF Protocol Operations (Cont.) Stages 2 and 3


A B
Database Sync and Maintenance:
After communication established, switches exchange LSRs to synchronize topology databases

LSU(DB-A) LSU(DB-B)

LSA(DBB) LSA(DB-A)

LSU(LSR-A) LSU(LSR-B)

Link State Update (LSU) used to exchange entire LSD Recipients respond with Link State Acknowledgement (LSA) After database in sync, LSUs issued only upon topology changes, which are flooded throughout the entire fabric LSUs retransmitted by a mechanism called Reliable Flooding
ICSNS v3.07-10

LSA(LSRB) LSA(LSR-A)
2007 Cisco Systems, Inc. All rights reserved.

Stage 2Initial Database Synchronization


After two-way communication has been established between two switches using the Hello protocol, the switches begin to synchronize their topology databases. This is accomplished by exchanging LSRs between the switches: During topology database synchronization, each switch sends its entire LSD topology database to its neighbor. Switches synchronize databases by sending LSRs in a Links State Update (LSU) SW_ILS extended link service command. An LSU can contain one or more LSRs. An LSU with zero LSRs signals the end of the database transmission. When a switch receives an LSU, it compares each LSR in the LSU with its current topology database. If the new LSR is not present in the switchs LSD, or if the new LSR is newer than the existing LSR, the LSR is added to the database. Each LSR is acknowledged with a Link State Acknowledgment (LSA) SW_ILS command or with a newer instance of the LSR.

Stage 3Database Maintenance


After the initial database synchronization is complete, the topology database must be maintained to ensure that all switches in the fabric contain identical information in their databases. Events that cause an LSR to be transmitted include: An ISL fails (or the switch associated with that ISL fails). A new LSR is transmitted to remove the failed link(s) from the topology database. An ISL reverts to the one-way communication state. A new LSR is transmitted to remove the one-way link from the topology database.
2007 Cisco Systems, Inc. Appendix A: The Fibre Channel Protocol AA-133

A new ISL completes link initialization (stage 1) and initial database synchronization (stage 2). One or more LSRs are transmitted to notify other switches to add the new information to their databases. This process by which LSRs are propagated through the fabric is known as reliable flooding. When a switch receives an LSR, it retransmits the LSR on other links. After the LSR is acknowledged, the switch stops transmitting that LSR on that link. The switch continues to send the LSR on other links until acknowledgement is received on those links.

AA-134

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

FSPF Protocol Operations (Cont.) Stages 4 and 5


Stage 4: Path Discovery:
As frames arrive at a switch:
The frames Domain_ID is compared to the Domain_ID in the switchs LSD If the LSD does not contain that Domain_ID, the least-cost path is then calculated The switch always forwards frames on the least-cost path

Stage 5: Path Computation:


Link Cost = S * (1.0625e12 / R):
S represents an administratively defined factor (default value = 1) R is the bit rate of the link

Examples:
Default link cost for 1Gb/s link: 1 * (1.0625e12 / 1.0625e9) = 1000 Default link cost for 2Gb/s link: 1 * (1.0625e12 / 2.1250e9) = 500

FSPF considers ISLs only


2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.07-11

Stage 4Path Discovery


As frames arrive at a switch, the frames destination Domain_ID is compared to the relevant LSR in the LSD. If the LSD does not contain the destination Domain_ID, the Path Selector computes the cost of each path to the destination Domain_ID and selects the least-cost path. Switches must forward frames on the least-cost path.

Stage 5Path Computation


The switch runs the path selection algorithm when it is notified of a physical change to the fabric. It is notified through the process of receiving a new or updated LSU. The link cost for each individual link is calculated based on the bit rate of the link and an administratively defined weighting factor. The weighting factor allows an administrator to adjust link cost based on particular circumstances. By default, the weighting factor is set to 1. The cost calculation is based on the bit rate of a 1Gb/s FC link, and is represented by the formula S * (1.0625e12 / R), where S is the administrative weight and R is the bit rate of the link. Assuming that the weighting factor is the default 1, the cost calculation will arrive at the following costs: Cost of a 1Gb/s link: 1000 Cost of a 2Gb/s link: 500 Cost of a 10Gb/s link: 100

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-135

The calculation is performed on a link-by-link basis, so each link in a data path can be advertised with a different cost. These costs are used by the path selection algorithm to determine the most efficient paths. When a path contains multiple links, the costs of each link are added up to determine the total cost of the path. In the case of two or more paths of equal cost, the decision of which path to use is not specified and is determined by the switch vendor. Note that FSPF only considers the ISLs along the data pathit does not consider the node-toswitch link at either end of the path. FSPF routes frames between domains only.

AA-136

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Limitations of FSPF
FSPF algorithm does not account for traffic load All frames in an exchange follow the same path Path changes only in response to changes in the fabric topology
Switch B

Host 2 Host 1
FC
HBA

2Gb/s Cost=500

2Gb/s Cost=500

Storage 2 Storage 1 FC
FC

FC
HBA

Switch A

2Gb/s Cost=500

Switch C

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-12

Limitations of FSPF
The FSPF protocol supports load sharing, but it does not support load balancing. Load sharing is significantly different than load balancing, and the distinction can have significant effects for fabric design, especially when tuning performance: Load sharing simply means that multiple paths can be used Load balancing means that traffic load is balanced across multiple paths FSPF does not account for actual path utilization. In other words, an unused path with a cost of 1000 will be disregarded in favor of an overutilized path with a cost of 500. All frames in an exchange must follow the same path, and paths are recomputed only when the physical ISL configuration changes. The preceding diagram shows a simple SAN with two data paths: Path AC has a total cost of 500 Path ABC has a total cost of 1000 FSPF will never use path ABC, even if path AC is congested.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-137

Limitations of FSPF (Cont.)


The least-cost path is not always the best path:
Path ABC: cost=1000, bandwidth=2Gb/s Path AC : cost=1000, bandwidth=1Gb/s

Load-sharing occurs but cannot be optimized


Switch B Storage 2 Storage 1 FC
FC

Host 2 Host 1
FC
HBA

2Gb/s Cost=500

2Gb/s Cost=500

FC
HBA

Switch A

1Gb/s Cost=1000

Switch C

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-13

The FSPF least-cost path algorithm does not necessarily select the best path. For example, in the preceding diagram, links AB and BC are 2Gb/s links, with a default cost of 500 per link. Link AC is a 1Gb/s link with a default cost of 1000. (Note that this diagram differs from the previous diagram only in that link AC is a 1Gb/s link in this diagram.) There are two paths available from Switch A to Switch C: Path ABC has a total cost of 1000 and supports 2Gb/s along the entire path Path AC also has a total cost of 1000 but supports only 1Gb/s FSPF will weight both paths identically. When a single pair of devices (Host 1 and Storage 1) are attached to the SAN, FSPF might select path AC even though that path supports only half the bandwidth of path ABC. (Path ABC does have greater latency than path AC, but latency is a far less significant performance factor than bandwidth.) When a second pair of devices (Host 2 and Storage 2) are attached to the same switches, the switch will use the second equal-cost data path in an attempt to distribute the load evenly. In other words, Host 1Storage 1 will be assigned one path, and Host 2Storage 2 will be assigned the other path. Both data paths will be used. In both situations, the administrator can force path selection by adjusting the administrative weighting factor.

AA-138

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

The RSCN Process


This section explains the Registered State Change Notification (RSCN) process.

RSCN
Registered State Change Notification
Switch

Path failure
FC

SCR
FC
HBA

SCR RSCN
Fabric Controller

RSCN
LS_ACC

LS_ACC

Host

Storage

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-15

Fabric State Changes


Changes to the state of the fabric can affect the operation of ports. Examples of fabric state changes include: A node port is added or removed from the fabric Inter-switch links (ISLs) are added or removed from the fabric A membership change occurs in a zone Ports must be notified when these changes occur.

The RSCN Process


The FC-SW standard provides a mechanism through which switches can automatically notify ports that changes to the fabric have occurred. This mechanism, known as the RSCN process, is implemented by a fabric service called the Fabric Controller. The RSCN process works as follows: Nodes register for notification by sending a State Change Registration (SCR) frame to the Fabric Controller. The Fabric Controller transmits RSCN commands to registered nodes when a fabric state change event occurs. RSCNs are transmitted as unicast frames because multicast is an optional service and is not supported by many switches. Only nodes that might be affected by the state change are notified. For example, if the state change occurs within Zone A, and Port X is not part of Zone A, then Port X will not receive an RSCN.
2007 Cisco Systems, Inc. Appendix A: The Fibre Channel Protocol AA-139

Nodes respond to the RSCN with an LS_ACC frame. The RSCN message identifies the ports that were affected by the state change event, and it identifies the general nature of the event. After receiving an RSCN, the node can then use additional Link Services commands to obtain more information about the event. For example, if the RSCN specifies that the status of Port Y has changed, the nodes that receive the RSCN can attempt to verify the current (new) state of Port Y by querying the Name Server.

AA-140

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

The RSCN Process


Conditions that result in RSCN:
An Nx_Port logs in to the fabric Path between two Nx_Ports has changed (e.g., E_Port initialization or failure) An implicit logout of an Nx_Port (e.g. link failure) Any other fabric-detected state change of an Nx_Port Loop initialization of an L_Port An Nx_Port issues an RSCN request to the Fabric Controller

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-16

The Fabric Controller will generate RSCNs in the following circumstances: A fabric login (FLOGI) from an Nx_Port. The path between two Nx_Ports has changed (e.g., a change to the fabric routing tables that affects the ability of the fabric to deliver frames in order, or an E_Port initialization or failure) An implicit fabric logout of an Nx_Port, including implicit logout resulting from loss-ofsignal, link failure, or when the fabric receives a FLOGI from a port that had already completed FLOGI. Any other fabric-detected state change of an Nx_Port. Loop initialization of an L_Port, and the L_bit was set in the LISA Sequence. An Nx_Port can also issue a request to the Fabric Controller to generate an RSCN. For example, if one port in a multi-ported node fails, another port in that node can send an RSCN to notify the fabric about the failure.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-141

The RSCN Process (Cont.)


Bit Byte 0 1 2 3 7 6 5 4 3 2 1 0
Address Format

Reserved

Event Qualifier Domain_ID of affected Nx_Port Area_ID of affected Nx_Port Port_ID of affected Nx_Port

0001 Changed Name Server object 0010 Changed port attribute 0011 Changed fabric service object 0100 Changed switch configuration

Not very informative

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-17

An RSCN frame payload contains one or more Port_ID Pages. Each Port_ID page is a 4-byte page that describes a single state change that has occurred with respect to a single Nx_Port. Each Port_ID page contains the following fields: The Domain_ID, Area_ID, and Port_ID of the affected Nx_Port (bytes 1-3) The Event Qualifier (bits 2-5 of byte 0) The Event Qualifier is a 4-bit code that specifies the general nature of the event: 0001 A Name Server object has changed; for example, a port came online or went offline. 0010 A port attribute has changed; for example, the number of buffer credits assigned to that port was changed. 0011 A fabric service object has changed; for example, an Alias_ID was added. In this case, the Port_ID page will refer to the Well-Known Address of the affected fabric service. 0100 The switch configuration has changed; for example, a time-out value was changed. Note that the Event Qualifiers do not communicate much information. For example, Event Qualifier code 0001 indicates a change to a Name Server object. This could signify that a port came online, went offline, or changed zones. The ports that receive the RSCN must then query the Name Server to determine the specific change that occurred.

AA-142

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Standard Fabric Services


This section lists the standard fabric services defined by the FC specification.

Standard Fabric Services


Configuration Server Unzoned Name Server Zone Server

Domain Manager

Name Server

Alias Server

Fabric Management Server Generic Services Controller

Key Server

Time Server

FC-4 ULP Mapping FC-3 Generic Services FC-2 Framing & flow control FC-1 Encoding FC-0 Physical interface
2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.07-19

Common Transport Link Services

The FC-SW-2 specification defines several services that are required for fabric management. These services include: Name Server Login Server Address Manager Alias Server Fabric Controller Management Server Key Distribution Server Time Server The FC-SW-2 specification does not require that switches implement all of these services; some services can be implemented as an external server function. However, the services discussed in this lesson are typically implemented in the switch, as in Cisco MDS 9000 Family Switches.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-143

The Domain Manager


Management Services

VSAN Manager

WWN Manager

Domain Manager
Fabric Configuration Principal Switch Selection Domain ID Allocation

FC_ID Allocation

FCID Database and Cache

Port Manager
2007 Cisco Systems, Inc. All rights reserved.

Login Server
ICSNS v3.07-20

The Domain Manager


The Domain Manager is the logical function of a switch that is responsible for the assignment of addresses in a fabric. The Domain Manager is responsible for: Allocating domain IDs (requesting a domain ID, and assigning domain IDs to other switches if this switch is the Principal Switch) Allocating port addresses (FC_IDs) Participating in the Principal Switch selection process Performing the Fabric Build and Reconfiguration processes when the topology changes The Domain Manager supports the Fabric Port Login Server, which is the service that N_Ports use when logging in to the fabric. When an N_Port logs into the fabric, it sends a FLOGI command to the Login Server. The Login Server then requests an FC_ID from the Domain Manager and assigns the FC_ID the N_Port in its ACC reply to the FLOGI request. The preceding diagram shows how the Domain Manager interacts with other fabric services: The VSAN Manager provides the Domain Manager with VSAN configuration and status information. The WWN Manager tells the Domain Manager what WWN is assigned to the VSAN. The Port Manager provides the Domain Manager with information about the fabric topology (a list of E_Ports) and notifies the Domain Manager about E_Port state changes. The Login Server receives N_Port requests for FC_IDs during FLOGI. The Domain Manager interacts with management services to allow administrators to view and modify Domain Manager parameters.

AA-144

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

The Name Server


Name Server stores data about nodes, such as:
FC_IDs WWNs Fibre Channel operating parameters

Supports soft zoning Provides information only about nodes in the requestors zone Distributed Name Server (dNS) resides in each switch Responsible for entries associated with that switchs domain Maintains local data copies and updates via RSCNs Sends RSCNs to the fabric when a local change occurs

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-21

The Name Server


FC Name Server is a database implemented by the switch that stores information about each node, including: FC_IDs WWPN and WWNNs FC operating parameters, such as supported ULPs and Classes of Service The Name Server: Supports soft zoning by performing WWN lookups to verify zone membership Enforces zoning by only providing information about nodes in the requestors zone Is used by management applications that need to obtain information about the fabric Each switch in a fabric contains its own resident name server, called a distributed Name Server (dNS). Each dNS within a switch is responsible for the name entries associated with the domain assigned to the switch. The dNS instances synchronize their databases using the RSCN process. When a client Nx_Port wants to query the Name Service, it submits a request to its local via the Well Known Address for the Name Server. If the required information is not available locally, the dNS within the local switch responds to the request by making any necessary requests of other dNS instances contained in the other switches. The communication between switches that is performed to acquire the requested information is transparent to the original requesting client. Partial responses to dNS queries are allowed. If an entry switch sends a partial response back to an Nx_Port, it must set the partial response bit in the CT header.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-145

Name Server Operations


Name Server Database Objects
Primary Key Port Identifier Indexed Fields Port Name Node Name Class of Service FC-4 TYPEs Symbolic Port Name Port Type Port IP Address Fabric Port Name Hard Address FC-4 Descriptors FC-4 Features Node IP Address Initial Process Associator Symbolic Node Name Secondary Key Indexed Fields

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-22

Name Server Operations


When ports and nodes register with the Name Server, their characteristics are stored as objects in the Name Server database. The table in the preceding graphic shows how the objects are organized in the Name Server database. The Port Identifier is the Fibre Channel port address identifier (FC_ID) assigned to an N_Port or NL_Port during fabric login (FLOGI). The Port Identifier is the primary key for all objects in a Name Server record. All objects are ultimately related back to this object. Because a node may have more than one port, the Node Name is a secondary key for some objects. There are three types of Name Server requests: Get Object: This request is used to query the Name Server Register Object: Only one object at a time can be registered with the Name Server. A Client registers information in the Name Server database by sending a registration request containing a Port Identifier or Node Name. Deregister Object: Only one global deregistration request is defined for the Name Server. Name Server information is available, upon request, to other nodes, subject to zoning restrictions. If zones exist within the fabric, the Name Server restricts access to information in the Name Server database based on the zone configuration. When a port logs out of a fabric, the Name Server deregisters all objects associated with that port.

AA-146

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

The Management Server


Management Server:
Information is provided without regard to zonesingle access point for information about the fabric topology Read-only access Services provided:
Fabric Configuration Service (FCS) Zone Service Unzoned Name Service

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-23

The Management Server


The FC Management Server provides a single access point for obtaining information about the fabric topology. Whereas the Name Server only provides information about ports configured within the zone of the port requesting information, the Management Server provides information about the entire fabric, without regard to zone. The Management Server allows SAN management applications to discover and monitor SAN components, but it does not allow applications to configure the fabricthe Management Server provides read-only access to its data. The Management Server provides the following services: The Fabric Configuration Service (FCS) supports configuration management of the fabric. This service allows applications to discover the topology and attributes of the fabric. The Zone Service provides zone information for the fabric to either management applications or directly to clients. The Unzoned Name Service provides access to provide information about the fabric without regard to zones. This service allows management applications to see all the devices on the entire fabric.

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-147

Well-Known Addresses
Well-known addresses are the highest 16 addresses in the 24-bit fabric address space
Broadcast Alias Fabric Login Server Fabric Controller Name Server Time Server Management Server QoS Facilitator Alias Server Key Distribution Server Clock Synchronization Server Multicast Server Reserved FFFFFF FFFFFE FFFFFD FFFFFC FFFFFB FFFFFA FFFFF9 FFFFF8 FFFFF7 FFFFF6 FFFFF5 FFFFF4 FFFFF0 Mandatory Mandatory Mandatory Optional Optional Optional Optional Optional Optional Optional Optional

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-24

Well-Known Addresses
Well-known Addresses allow devices to reliably access switch services. All services are addressed in the same way as an N_Port is addressed. Nodes communicate with services by sending and receiving Extended Link Services commands (frames) to and from Well-Known Addresses Well-known addresses are the highest 16 addresses in the 24-bit fabric address space: FFFFFF - Broadcast Alias FFFFFE - Fabric Login Server FFFFFD - Fabric Controller FFFFFC - Name Server FFFFFB - Time Server FFFFFA - Management Server FFFFF9 - Quality of Service Facilitator FFFFF8 - Alias Server FFFFF7 - Key Distribution Server FFFFF6 - Clock Synchronization Server FFFFF5 - Multicast Server FFFFF4FFFFF0 - Reserved

AA-148

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Summary
This topic summarizes the key points that were discussed in this lesson.

Summary
The FSPF protocol is the routing protocol used on FC SAN fabrics Five stages of the FSPF protocol: Hello protocol; Initial topology database synchronization; Topology database maintenance; Path discovery; Path computation FC Name Server is a database implemented by the switch that stores information about each node The Fabric Controller service provides a mechanism for state change notification through the Registered State Change Notification (RSCN) process Well-known addresses are the highest 16 addresses in the 24-bit fabric address space

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.07-25

2007 Cisco Systems, Inc.

Appendix A: The Fibre Channel Protocol

AA-149

AA-150

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Appendix B

Installation and Configuration Reference


Overview
This appendix reviews the installation and configuration guidelines for MDS 9000 switches.

Module Objectives
Upon completing this module, you will be able to describe installation and configuration guidelines. This includes being able to meet these objectives: Explain the process used to install and power up the switch

AB-2

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Lesson 1

Switch Hardware Installation Reference


Overview
This lesson describes the interfaces, functions, and installation practices of MDS 9000 Family system components to provide knowledgeable answers to questions related to these system component topics. You must be familiar with the system components before installing them in a MDS 9000 Family environment.

Objectives
Upon completing this lesson, you will be able to explain the process used to install and power up the switch. This includes being able to meet these objectives: Describe the installation guidelines for the MDS 9000 platform Describe the types of rack and cabinet installations that are compatible with the MDS 9000 platform Describe the power supply configuration options for the MDS 9000 platform, and state the power requirements of individual modules Describe the characteristics and installation requirements of fan modules for the MDS 9000 Series Describe the functions, interfaces, and installation requirements of MDS 9000 supervisor modules

Installation Guidelines
This topic describes the installation guidelines for the MDS 9000 platform.

Installation Guidelines
Prepare the site:
Space evaluation Weight distribution and floor loading Environmental evaluation Power evaluation Grounding evaluation Cable and interface equipment evaluation EMI evaluation Gather network-related information

Confirm site power:


UPS type Circuit sizes

Gather required equipment:


Tools ESD straps Grounding items

Unpack and inspect switch:


Check for transportation damage and missing items Document chassis and module information Verify contents of rack mount kit

Verify the cabinet and rack:


Hardware specifications Depth, airflow, and vertical clearance

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.02-4

Installation Guidelines
Follow these guidelines when installing the Cisco MDS 9500 Series: Plan your site configuration and prepare the site before installing the chassis. It is recommended that you use the site planning tasks listed in the Cisco MDS Series Hardware Installation Guide. Ensure there is adequate space around the switch to allow for servicing the switch and for adequate airflow. Ensure the air conditioning meets the heat dissipation requirements listed in the Cisco MDS Series Hardware Installation Guide. Ensure the cabinet, or rack, meets the requirements listed in the Cisco MDS Series Hardware Installation Guide.
Note Jumper power cords are available for use in a cabinet.

Ensure the chassis is adequately grounded. Grounding the chassis is recommended in all cases, and it is mandatory for Cisco MDS 9506 Directors that have a DC power supply installed. If the switch is not mounted in a grounded rack or cabinet, it is recommend connecting both the system ground on the chassis and the power supply ground to an earth ground, regardless of whether the power supplies are AC or DC. Ensure the site power meets the power requirements listed in the Cisco MDS Series Hardware Installation Guide. If available, you can use an uninterruptible power supply (UPS) to protect against power failures.

AB-4

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Note

Avoid UPS types that use ferroresonant technology. These UPS types can become unstable with systems such as the Cisco MDS 9000 Family, which can have substantial current draw fluctuations because of fluctuating data traffic patterns.

Ensure circuits are sized according to local and national codes. If you are using 200/240 VAC power sources in North America, the circuits must be protected by two-pole circuit breakers.
Note To prevent loss of input power, ensure that the total maximum loads on the circuits supplying power are within the current ratings of the wiring and breakers.

Record your installation and configuration information as you work. See Site Planning and Maintenance Records in the Cisco MDS Series Hardware Installation Guide.

Screw Torques
Use the following screw torques when installing the switch: Captive screws: 4 in-lb M3 screws: 4 in-lb M4 screws: 12 in-lb 10-32 screws: 20 in-lb 12-24 screws: 30 in-lb

Required Equipment
Gather the following items before beginning the installation: Number 1 and number 2 Phillips screwdrivers with torque capability 3/16-inch flat-blade screwdriver Tape measure and level ESD wrist strap or other grounding device Antistatic mat or antistatic foam In addition to the grounding items provided in the accessory kit, you need the following items: Grounding cable (6 AWG recommended), sized according to local and national installation requirements; the required length depends on the proximity of the Cisco MDS 9500 to proper grounding facilities. Crimping tool large enough to accommodate girth of lug Wire-stripping tool For DC power supplies in a Cisco MDS 9506 Director, you need two 10-32 ring lugs for each DC power supply.

2007 Cisco Systems, Inc.

Appendix B: Installation and Configuration Reference

AB-5

Weight Distribution and Floor Loading


Installation of the Cisco MDS 9513 Director in a rack requires a mechanical lift to place the chassis in the rack:
Chassis weighs 101.0 lbs Components:
6 KW power supply: 32.5 lbs
Fa nICSNS v3.02-5

Installations with three 9513s per rack should include a floorloading assessment to support 296.75 lbs as pictured.

Front view

Rear view

System front-fan tray: 18.0 lbs Fabric card: 5.75 lbs Four-port 10-Gbps line card : 8.5 lbs 12-port line card: 7.5 lbs 48-port line card : 11.0 lbs 24-port line card : 7.75 lbs Supervisor-2 line card : 7.25 lbs Line card blank panels: 0.50 lbs
C Molock du les

rS up pli es

Fabric rear-fan tray: 2.25 lbs

14 RU form factor, 28 deep

2007 Cisco Systems, Inc. All rights reserved.

Installation of the Cisco MDS 9513 Director in a rack requires a mechanical lift to place the chassis in the rack. Make sure you have access to the lift during the installation process. A fully loaded 9513 can weigh about 300 pounds. Installations with three 9513s per rack should include a floor-loading assessment to evaluate the static-load rating of the flooring as part of the site evaluation process. For additional information about floor loading requirements, consult the UL document GR-63-CORE, Network Equipment-Building System (NEBS) Requirements: Physical Protection.

Module Weights
The following components are listed with their weights: Crossbar switching module 6 lbs ( 2.7 kg) 48-port 4-Gbps switching module 11.0 lbs ( 4.99 kg) 24-port 4-Gbps switching module 7.75 lbs (3.52 kg) 12-port 4-Gbps switching module 7.5 lbs (3.40 kg) 4-port 10-Gbps switching module 8.5 lbs (3.86 kg) 32-port FC switching module 9 lbs (4.1 kg) 16-port FC switching module 9 lbs (4.1 kg) Source-specific multicast (SSM) 11 lbs (5 kg) Advanced Services Module (ASM) 11 lbs (5 kg) Cisco Security Manager (CSM) 11.5 lbs (5.2 kg) IPS-8 10 lbs (4.5 kg) IPS-4 9 lbs (4.1 kg) MPS-14/2 10 lbs (4.5 kg) Supervisor-2 for MDS 9500 Series 7.25 lbs ( kg)
AB-6 Implementing Cisco Storage Networking Solutions (ICSNS) v3.0 2007 Cisco Systems, Inc.

Fab ric car ds

Po we

Supervisor-1 for MDS 9500 Series 9 lbs (4.1 kg) Supervisor for MDS 9200 Series 9 lbs (4.1 kg) Crossbar module fan tray 2.25 lbs (1.13 kg) Module blank panels 0.50 lbs ( 0.25 kg)

2007 Cisco Systems, Inc.

Appendix B: Installation and Configuration Reference

AB-7

Cabinet and Rack Options


This topic describes the types of rack and cabinet installations that are compatible with the MDS 9000 platform.

Installation Options
Standard telco rack (no side panels):
Not intended for use with the Cisco MDS 9513 Minimum of 6 inches (15.2 cm) of clearance between chassis is recommended Minimum of 2.5 inches (6.4 cm) of distance between the chassis air vents and any walls is required

Cabinet with solid side panels and doors:


Roof-mounted fans delivering a minimum of 500 cubic feet per minute Bottom-to-top airflow

Cabinet with perforated front and back doors:


Roof-mounted fans are recommended but not required Front-to-back airflow
2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.02-7

The Cisco MDS 9506 and MDS 9509 directors can be installed using the following methods: In an open EIA rack, using: The rack mount kit shipped with the switch. The Telco and EIA Shelf Bracket Kit, optional and purchased separately, in addition to the rack mount kit shipped with the switch. In a perforated or solid-walled EIA cabinet, using: The rack mount kit shipped with the switch. The Telco and EIA Shelf Bracket Kit, optional and purchased separately, in addition to the rack mount kit shipped with the switch. In a two-post telco rack, using: The rack mount kit shipped with the switch. The Telco and EIA Shelf Bracket Kit, optional and purchased separately, in addition to the front brackets shipped with the switch. The Cisco MDS 9509 Director can also be installed in a four-post nonthreaded cabinet or rack, using the optional 9500 Shelf Bracket Kit. The Cisco MDS 9513 Director can be installed in solid or perforated walled cabinets, but not in two-post telco racks.
Note The Telco and EIA Shelf Bracket Kit is optional and is not provided with the switch. To order the kit, contact your switch provider.

AB-8

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Note

The Telco and EIA Shelf Bracket Kit is not intended for use with a Cisco MDS 9509 Director in a two-post telco rack. The MDS 9513 exceeds telco rack load ratings.

Requirements and recommendations for perforated cabinets are: The front and rear doors must have at least a 60-percent open-area perforation pattern with at least 15 square inches of open area per rack unit of door height. The roof should be perforated with at least a 20-percent open-area perforation pattern. An open or perforated cabinet floor is recommended to enhance cooling. Requirements and recommendations for solid-walled cabinets are: A roof-mounted fan tray with bottom-to-top airflow that has a minimum of 500 cfm of airflow exiting the cabinet roof through the fan tray. Non-perforated (solid and sealed) front and back doors and side panels so that air travels predictably from bottom to top. A cabinet depth of 36 to 42 inches (91.4 to 106.7 cm) to allow the doors to close and adequate airflow is recommended. A minimum of 150 square inches (968 sq. cm) of open area must be at the floor air intake of the cabinet. The lowest piece of equipment should be installed a minimum of 1.75 inches (4.4 cm) above the floor openings to prevent blocking the floor intake. Requirements and recommendations for telco racks are: Minimum of 6 inches (15.2 cm) of clearance between chassis is recommended. Minimum of 2.5 inches (6.4 cm) of distance between the chassis air vents and any walls is required. Not intended for use with the Cisco MDS 9513 director.

2007 Cisco Systems, Inc.

Appendix B: Installation and Configuration Reference

AB-9

Cabinet and Rack Options


General rack and cabinet requirements:
The minimum vertical rack space for a Cisco MDS 9513 chassis is 24.5 inches (64.23 cm) The width between the rack mounting rails must be at least 17.75 inches (45.09 cm) The minimum spacing for four-post EIA cabinets (perforated or solid-walled) is a minimum of 3 inches (7.62 cm)

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.02-8

The cabinet or rack must conform to the following: Standard 19-inch four-post EIA cabinet, or rack, with mounting rails that conform to English universal hole spacing per section 1 of ANSI/EIA-310-D-1992. Standard two-post telco racks are not intended for use with the 9513.

General Rack Requirements


The minimum vertical rack space per chassis is as follows: Cisco MDS 9513 chassis; 24.5 inches (62.2 cm) or 14 RU Height with required rack mount support is 15 RU The width between the rack-mounting rails must be at least 17.75 inches (45.1 cm). For fourpost EIA racks, this is the distance between the two front rails and rear rails. The minimum spacing for four-post EIA cabinets (perforated or solid-walled) is as follows: To ensure the minimum bend radius for fiber optic cables, the front mounting rails of the cabinet should be offset from the front door by a minimum of 3 inches (7.6 cm) and a minimum of 5 inches (12.7 cm) if cable management brackets are installed on the front of the chassis. A minimum of 2.5 inches (6.4 cm) of clear space between the side edge of the chassis and the side wall of the cabinet; no sizeable flow obstructions should be immediately in the way of the chassis air intake or exhaust vents. Telco racks are not intended for use with the Cisco MDS 9513 Director. The MDS 9513 exceeds telco rack load ratings.

AB-10

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Cabinet and Rack Options (Cont.)


Open rack requirements:
The minimum width between two front-mounting rails must be 17.75 inches (45.1 cm) The minimum vertical rack space for each Cisco MDS 9513 chassis must be 24.5 inches (62.2 cm), or 14 RU The rack mount support brackets provided with the Cisco MDS 9513 Director require an additional height of 0.75 inches (1.9 cm). They are required for the installation and can not be removed The horizontal distance between the chassis and any adjacent chassis should be 6 inches (15.2 cm) The distance between the chassis air vents and any walls should be 2.5 inches (6.4 cm)

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.02-9

If mounting the chassis in an open rack (no side panels or doors), ensure the rack meets two requirements: The minimum width between two front mounting rails must be 17.75 inches (45.1 cm). The minimum vertical rack space per chassis must be at least: For the Cisco MDS 9513 chassis 24.5 inches (62.2 cm), or 14 RU. For the Cisco MDS 9509 chassis 24.5 inches (62.2 cm), or 14 RU. For the Cisco MDS 9506 chassis 12.25 inches (31.1 cm), or 7 RU.
Note The rack-mount support brackets provided with the Cisco MDS 9513 Director require an additional height of 0.75 inches (1.9 cm). They are required for the installation of the Cisco MDS 9513 Director and can not be removed. The side rail mount brackets provided with the Cisco MDS 9509 Director require an additional height of 0.75 inches (1.9 cm). They are required only for the installation of the Cisco MDS 9509 Director and can be removed, or left installed, after the front rack mount brackets are securely fastened to the rack-mounting rails.

Note

2007 Cisco Systems, Inc.

Appendix B: Installation and Configuration Reference

AB-11

Configuring Power Supplies


This topic describes the power supply configuration options for the MDS 9000 platform, and the power requirements of individual modules.

MDS 9513 Power Supply Installation

Installing an AC power supply in the Cisco MDS 9513 Director


2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.02-11

To install an AC power supply in the Cisco MDS 9513 Director, follow these steps:
Step 1 Step 2 Step 3 Step 4

Ensure that the system (earth) ground connection has been made. If a filler panel is installed, remove the filler panel from the power supply bay by loosening the captive screw. Ensure that the power switch is in the off (0) position on the power supply that is being installed. Grasp the power supply handles, one with each hand. Orient the power supply and align it with the bay.
There is a handle at the top rear of the power supply you can also use to tilt the power supply into the bay.

Note

Step 5 Step 6

Slide the power supply into the power supply bay. Ensure that the power supply is fully seated in the bay. Secure all four 6-32 panel fasteners and tighten to 8 in-lbs.

AB-12

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

MDS 9513 Power Supply Installation (Cont.)

1. Power switch 2. Cable retention

Providing power to an AC power supply

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.02-12

Step 1 Step 2 Step 3 Step 4

Plug the power cable into the power supply. Tighten the screw on the cable retention device to ensure the cable can not be pulled out. Connect the other end of the power cable to an AC power source. Turn the power switch to the on (1) position on the power supply. Verify power supply operation by checking that the power supply LEDs are in the following states: Input OK: LEDs are green. Fans OK: LED is green. Output Fail: LED is off.

2007 Cisco Systems, Inc.

Appendix B: Installation and Configuration Reference

AB-13

MDS 9513 Power Supply Configuration


The dual 6000 W AC power supplies for the Cisco MDS 9513 Director are designed to provide an output power for the modules and fans. Each power supply has two AC power connections.

Power Supply 1 and Power Supply 2 with 2x220 V inputs

Status LEDs with 2x220 V inputs

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.02-13

Configuring Power Supplies


The 6000-W AC power supplies for the Cisco MDS 9513 Director are designed to provide an output power for the modules and fans. Each power supply has two AC power connections and provides power as follows: One AC power connection at 110 VAC: No output Two AC power connections at 110 VAC: 2900-W output One AC power connection at 220 VAC: 2900-W output Two AC power connections at 220 VAC: 6000-W output

AB-14

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

MDS 9513 Power Supply Configuration (Cont.)


Removing an AC Power Supply:
Warning! Voltage is present on the backplane when the system is operating. Keep hands and fingers out of the power supply bays and backplane areas!

Use both hands to install and remove power supplies. Each power supply weighs 34.2 lbs (15.5 kg).

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.02-14

Removing an AC Power Supply


Follow these steps to remove an AC power supply:
Step 1

Turn the power switch on the power supply to the off (0) position. There is an internal-lock mechanism that prevents you from removing the power supply if it is not set to the off position. Disconnect the power cables from the power source. Loosen the screw on the cable retention device, and disconnect the power cable from the power supply. Loosen all four panel fasteners at the corners of the power supply. Grasp the power supply handles and slide the power supply partially out of the chassis, about 4 to 5 inches. If the power supply is at your waist or chest level, place your other hand underneath the power supply and slide the power supply completely out of the chassis.
To avoid damage to the panel fasteners, do not place the power supply down on the perforated ends.

Step 2 Step 3 Step 4 Step 5 Step 6

Note

Step 7

Install a filler panel over the opening. Tighten the captive screws if the power supply bay is to remain empty.

2007 Cisco Systems, Inc.

Appendix B: Installation and Configuration Reference

AB-15

MDS 9509 Power Supply Installation


1. Verify the power supply switch is off and no power is connected to the unit. 2. Use both hands to slide the power supply into the unit so it is seated properly. 3. Tighten the captive screw. 4. Ensure the power source can supply enough power to drive the installed supply. 5. Connect the power input cables to the power source.

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.02-15

MDS 9509 AC Power Supply Installation


To install an AC power supply, follow these steps:
Step 1 Step 2 Step 3

Remove the blank power-supply filler plate from the chassis power-supply bay opening by loosening the captive installation screw, if necessary. Turn the power switch to the off (0) position on the power supply you are installing. Grasp the power supply handle with one hand. Place your other hand underneath the power supply, as shown in the figure. Slide the power supply into the power supply bay. Make sure that the power supply is completely seated in the bay. Tighten the power supply captive installation screw. Plug in the power cord to the power supply and tighten the screw on the cable retention device. Turn the power switch to the on (1) position on the power supply you are installing. Check LED status indicators for proper operation.

Step 4 Step 5 Step 6 Step 7

MDS 9509 DC Power Supply Installation


To install a DC power supply, follow these steps:
Step 1 Step 2 Step 3

Remove the blank power-supply filler plate from the chassis power-supply bay opening by loosening the captive installation screw, if necessary. Turn the power switch to the off (0) position on the power supply that you are installing. Grasp the power supply handle with one hand. Place your other hand underneath the power supply, as shown in the figure. Slide the power supply into the power supply bay. Make sure that the power supply is fully seated in the bay. Tighten the power supply captive installation screw.
2007 Cisco Systems, Inc.

Step 4

AB-16

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

Step 5 Step 6

Remove two screws securing the terminal block cover. Slide the cover off the terminal block. Attach appropriate lugs to the DC-input wires. The maximum width of a lug is 0.300 inch (7.6 cm). The wire should be sized according to local and national installation requirements.
Use only copper wire.

Note Step 7 Step 8 Step 9 Note

Connect DC-input wires to the terminal block in the following order: (1) ground, (2) negative (-), (3) positive (+). Turn the power switch to the off (0) position on the power supply that is being installed. Check LED status indicators for proper operation.
For redundant or combined power requirements, the number and type of line cards and supervisor modules determine the amount of power needed by the chassis. If each power supply in the chassis is capable of supplying the total chassis power, then the power supplies can be redundant. If each power supply is unable to supply the total chassis power, then the power supplies are shared, and the loss of one supply results in some of the cards being inoperable.

2007 Cisco Systems, Inc.

Appendix B: Installation and Configuration Reference

AB-17

MDS 9509 Power Supplies


Dual power supply modules:
Redundant Hot swappable Condition LEDs Input: 100 to 240 VAC nominal 16 A maximum Output: 1400 W (100 VAC at 16 A) 3000 W (200 VAC at 16 A)
3000 Watt AC Power Supply
1. AC power connection 2. Power cable 3. Power supply switch 4. Power supply LEDs 5. Captive screws
ICSNS v3.02-16

2007 Cisco Systems, Inc. All rights reserved.

The MDS 9500 series supports redundant hot swappable power supplies that support AC or DC input voltages. Each power supply is capable of supplying sufficient power to the entire chassis should one fail. The power supplies monitor their output voltage and provide status to the supervisor module. To prevent the unexpected shutdown of an optional module, the power management software only allows a module to power up if adequate power is available. The power supplies can be configured to be redundant or combined. By default, they are configured as redundant so that if one fails, the remaining power supply can still power the entire system. Condition LEDs give visual indications of the installed modules and their operation.

AB-18

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

MDS 9506 Power Supplies


Dual power supply modules:
Redundant Hot swappable Condition LEDs Input: 100 to 240 VAC nominal 12 A maximum Output: 1900 W at 200 to 240 VAC 1050 W at 100 to 120 VAC
1900 W AC or DC 1. Power supply LEDs 2. Captive screws

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.02-17

As with the MDS 9509 power supplies, the MDS 9506 Director supports redundant AC hotswappable power supplies, each of which is capable of supplying sufficient power to the entire chassis should one power supply fail. The power supplies monitor their output voltage and provide status to the supervisor module. Also, they can be configured to be redundant or combined. By default, they are configured as redundant. Condition LEDs are also available on the power supply modules. The 1900-watt supply provides full output capabilities when powered by 220 VAC; however, that output is reduced to 1050 watts when powered by a 110 VAC input. It has a current rating of 15 amps, but a maximum draw of 12 amps under normal conditions.

2007 Cisco Systems, Inc.

Appendix B: Installation and Configuration Reference

AB-19

MDS 9506 Power Supply PEMs

1. Captive screws 2. PEM switch 3. AC power connection

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.02-18

MDS 9506 Power Supply PEMs


The MDS 9506 Director uses power entry modules (PEMs) that are installed in the front of the chassis to provide power to its power supplies in the back. There is no power connector on the power supply itself. The PEM provides current protection, surge and EMI suppression, and filtering functions. The PEM that is on the left when viewed from front of the switch (PEM 1) connects the site power source to power supply 1 (upper power supply) in the back of the chassis; the PEM on the right (PEM 2) connects the site power source to power supply 2 (lower power supply), also in the back of the chassis. To provide power to an AC power supply in an MDS 9506 Director, follow the same connection and power-on steps as indicated in MDS 9509 procedures, but only after the MDS 9506 AC PEM has been securely installed in the chassis front, and the AC power supply has been installed in the rear of the chassis. In addition, the PEM provides current protection, surge and EMI suppression, and filtering functions. The PEM that is on the left when viewed from front of the switch (PEM 1) connects the site power source to power supply 1 (upper power supply) in the back of the chassis; the PEM on the right (PEM 2) connects the site power source to power supply 2 (lower power supply), also in the back of the chassis. To provide power to an AC power supply in an MDS 9506 Director, follow the same connection and power-on steps as indicated in MDS 9509 procedures, but only after the MDS 9506 AC PEM has been securely installed in the front of the chassis, and the AC power supply has been installed in the rear of the chassis.

AB-20

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Power to DC Power Supplies


To provide power to a DC power supply in an MDS 9506 Director, follow these steps:
Step 1 Step 2 Step 3 Step 4

Ensure that all power to the DC circuit is off. Ensure that the system (earth) ground connection is made. Loosen the captive screws on the DC PEM. Pull the PEM part way out of the chassis to provide access to the PEM terminal block screws. The process for connecting the positive and negative DC cables to the DC PEM with a 10-32 ring lug for each cable is as follows:

1. Identify the positive and negative DC cables and ensure that both are copper and sized according to local and national installation requirements. 2. Strip the cable ends to allow for metal-to-metal contact. Insert each cable into a separate ring lug. Crimp the lugs around the cables. 3. Insert each cable and lug into the appropriate hole in the front of the PEM. Fasten the lugs to the appropriate terminal block screws in the following order: (1) negative (-), (2) positive (+). 4. Secure the cables in place by tightening the terminal block screws.

2007 Cisco Systems, Inc.

Appendix B: Installation and Configuration Reference

AB-21

MDS 9216 Power Supply Installation


845W AC power supplies:
Dual and hot swappable 100-240 VAC 15 A current rating 12 A at 100-120 VAC 5 A at 200-240 VAC Self-monitoring of output voltages Status provided to supervisor +3.3V at 10 A +5.0V at 16.2 A
1. Power supply switch 2. AC power connection 3. Power supply handle 4. Power supply LEDs

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.02-19

The Cisco MDS 9216 switch supports dual hot swappable 845-watt AC power supplies. Each supply is autoranging on the input voltage and can provide sufficient power to the entire chassis should one of them fail. They also monitor their own output voltage and provide status to the systems supervisor module. MDS 9216 power supplies can be configured to be redundant or combined. By default, they are configured as redundant, so that if one fails, the remaining power supply can still power the entire system. The MDS 9216 power supplies are field-replaceable units (FRUs), are installed, and can be removed easily from the rear of the chassis using pull handles. They also provide condition LEDs for operational status. The MDS 9216 supports AC voltage inputs only, not DC, ranging from 100 to 240 VAC. The power supplies have a current rating of 15 amps for circuit breakers but draw a maximum of 12 amps at 110 VAC and only 5 amps at 220 VAC.

MDS 9216 Power Supply Installation


To install an MDS 9216 power supply, follow these steps:
Step 1 Step 2 Step 3 Step 4 Step 5 Step 6

Ensure that the system (earth) ground connection has been made. If the power-supply bay has a filler panel, loosen the screws holding it on and remove the panel. Verify that the power switch is in the off (0) position on the power supply you are installing. Orient the power supply as shown in the figure. Hold it by the handle and slide the power supply into the chassis power supply bay. Ensure that the power supply is completely seated in the bay. Tighten the power supply captive screws. Plug the power cable into the power supply. Tighten the screw on the power cable retainer to ensure that the cable can not be pulled out.

AB-22

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Step 7 Step 8 Step 9

Connect the other end of the power cable to an AC power source. Turn the power switch to the on (1) position on the power supply. Verify power supply operation by checking that the power supply LEDs are in the following states: Input OK: LED is green. Fan OK: LED is green. Output Fail: LED is off.

Note

In a system with dual power supplies, connect each power supply to a separate power source. In case of a power source failure, the second source will most likely still be available.

2007 Cisco Systems, Inc.

Appendix B: Installation and Configuration Reference

AB-23

MDS 9100 Power Supply Installation


The 300-W power supplies require a 20 A circuit When using a 200- or 240-VAC power source in North America, the circuit must be protected by a two-pole circuit breaker AC input voltage:
Minimum = 85 VAC Nominal = 100-240 VAC Maximum = 264 VAC

AC input current rating (max):


4.7 A at 85 VAC .6 A at 110 VAC .8 A at 220 VAC

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.02-20

Dual 300-W AC Input Power Supplies Installation in MDS 9100 Fabric Switches
To install a dual 300-W AC input power supply in an MDS 9100 fabric switch, follow these steps:
Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Step 7 Note

Ensure that the system (earth) ground connection has been made. Make sure the power cord is disconnected before installing the power supply. Verify that the power switch is in the off (0) position on the power supply you are installing. Slide the power supply into the power supply bay. Make sure that the power supply is completely seated in the bay. Tighten the power supply captive screw. Plug in the power cord to the power supply. Connect the other end of the power cord to an AC input power source.
Depending on the outlet receptacle on your power distribution unit, you might need the optional jumper power cord to connect the Cisco MDS 9216 switch to your outlet receptacle.

Step 8 Step 9

Turn the power switch to the on (1) position on the power supply. Verify the power supplys operation by checking that the power supply (P/S) LED in the front panel is green.

AB-24

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Power Management Modes


Redundant mode:
Default mode Power capacity of the lower-capacity supply Sufficient power is available in case of failure

Combined mode:
Is nonredundant Twice the power capacity of the lower-capacity supply Sufficient power might not be available in case of a power supply failure System reset if power requirements exceed capacity Only modules with sufficient power are powered up If no reset, no modules down but no new modules up Should not be used for director-class switches

Power reserved for the supervisor and fan assemblies Power failure triggers Syslog, Call Home, and SNMP trap
2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.02-21

Power supplies are configured in redundant mode by default, but they can also be configured in a combined, or nonredundant, mode: Redundant mode: The chassis uses the power capacity of the lower-capacity power supply so that sufficient power is available in case of a single power supply failure. Combined mode: The chassis uses twice the power capacity of the lower-capacity power supply. Sufficient power might not be available in case of a power supply failure in this mode. If there is a power supply failure and the real power requirements for the chassis exceed the power capacity of the remaining power supply, the entire system is reset automatically to prevent permanent damage to the power supply. In both modes, power is reserved for the supervisor and fan assemblies. Each supervisor module has roughly 220 watts in reserve, even if there is only one installed; and the fan module has 210 watts in reserve. In the case of insufficient power, after supervisors and fans are powered, line card modules are given power from the top of the chassis down. After the reboot, only those modules that have sufficient power are powered up. If the real power requirements do not trigger an automatic reset, no module is powered down. Instead, no new module is powered up. In all cases of power supply failure or removal, the following occur: A Syslog message is printed A Call Home message is sent if configured A Simple Network Management Protocol (SNMP) trap is sent
Note Combined mode should not be used for director-class switches.

2007 Cisco Systems, Inc.

Appendix B: Installation and Configuration Reference

AB-25

Installing Fan Modules


This topic describes the characteristics and installation requirements of fan modules for the MDS 9000 Family.

MDS 9500 Series Fan Modules and Airflow


Fans are hot swappable:
In the event of a fan failure, remaining fans increase RPM to maintain optimal airflow Sensors monitor system temperature Temperature rise or fan failure generates an event Replace fan tray at earliest opportunity

Air Flow

MDS 9506, 9509, and 9513 airflow

MDS 9513 rear airflow bottom to top, at rear of chassis


2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.02-23

The MDS 9500 Series supports hot swappable fan modules that are easily installed or removed from the from of the chassis. They provide 85 cfm of airflow per slot with 410 watts of power dissipation per slot. The MDS 9506 has a fan module with 6 fans, the Cisco MDS 9509 has a fan module with 9 fans, and the Cisco MDS 9513 has a fan module with 15 fans. Sensors on the supervisor module monitor the internal air temperature. If the air temperature exceeds a preset threshold, the environmental monitor displays warning messages. If one or more fans within the module fails, the Fan Status LED turns red, and the module must be replaced. When all fans are operating properly, the LED is green. If the fan LED is red, the fan assembly might not be seated properly in the chassis. If this happens, remove the fan assembly and reinstall. After reinstalling, if the LED is still red, then a failure on the fan assembly has occurred. Fan LED status indication is provided on a per-module basis. If one fan fails, then the module is considered failed. The switch can continue to run when the fan module is removed for a maximum of 5 minutes if the temperature thresholds are not exceeded. In this way, you can swap out a fan module without having to bring the system down. The fan module is designed to be removed and replaced while the system is operating without presenting an electrical hazard or damage to the system, provided the replacement is performed promptly. Install the fan module in the front chassis cavity with the status LED at the top. Push the fan module to ensure that the power supply connector mates with the chassis. Tighten the captive installation screws. If the switch is powered on, listen for the fans. You should hear them operating immediately. No automated shutdown sequence is associated with the removal of the crossbar module fan tray. Shutdown is initiated when temperature thresholds for the crossbar modules are exceeded. Replacement of the crossbar module fan tray should be performed promptly.

AB-26

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Fan Module Installation and Removal

MDS 9513
2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.02-24

Fan Module Installation


To install a fan module, follow these steps:
Step 1 Step 2 Step 3 Step 4

Hold the fan module so that the Fan Status LED is at the top. Place the fan module in the front chassis cavity so that it rests on the chassis. Lift the fan module up slightly to align the top and bottom chassis guides. Push in the fan module to the chassis until it seats in the backplane and the captive screws make contact with the chassis. The fan module snaps in. If the switch is powered on, listen for the fans. You should hear them operating immediately.
If you do not hear the fans, ensure that the fan module is inserted completely in the chassis and the outside surface is flush with the outside surface of the chassis.

Note

Step 5

Verify that the Fan Status LED is green. If the LED is not green, one or more fans are faulty.

Fan Module Removal


To remove a fan module, follow these steps:
Step 1 Step 2 Step 3 Step 4

Push the button on the top fan-module latch to release the fan module from the midplane. Repeat this on the bottom fan-module latch. Grasp the fan module with both hands and pull it outward. Rock it gently, if necessary, to unseat the power connector from the backplane. Pull the fan module clear of the chassis.

2007 Cisco Systems, Inc.

Appendix B: Installation and Configuration Reference

AB-27

Fan Assembly Module Removal and System Shutdown


To protect the MDS 9000 system from overheating and causing undue damage, an automatic system-shutdown sequence can take place under certain fan-module conditions. If the fan module is removed from the chassis, a fan-removal sequence is started for the following 3 minutes. If the fan module is still not reinstalled within that 3-minute time frame, a system-shutdown sequence is started for a period of 2 minutes. At the end of this 2-minute time frame, the system is shut down. If the fan module is reinstalled at any time in the total 5-minute sequence, the shutdown sequences are stopped, and the system remains on.

AB-28

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Crossbar Module Fan Tray Installation and Removal

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.02-25

Crossbar Module Installation


To install a crossbar module fan tray, follow these steps:
Step 1

Orient the crossbar module fan tray in the chassis by positioning the module in the slot, and then sliding the module carefully into the slot until the fan tray is completely inserted in the chassis. Tighten the two captive screws on the crossbar module fan tray to 8 in-lb screws.

Step 2

Crossbar Module Removal


To remove a crossbar module fan tray, follow these steps :
Step 1 Step 2 Step 3 Step 4

Loosen the two captive screws on the fan tray. Hold the two captive screws and pull the fan tray out of the chassis with both hands. Take one hand and hold the face of the fan tray while supporting it with the other hand. Pull the fan module clear of the chassis.

2007 Cisco Systems, Inc.

Appendix B: Installation and Configuration Reference

AB-29

Supervisor and Line Card Modules Installation


This topic describes the functions, interfaces, and installation requirements of MDS 9000 Family supervisor modules.

Supervisor Module and Line Card Installation


You must install at least one supervisor module before installing any switching modules.

1. Slot guides 2, 3. EMI gaskets 4. Ejector level (fully extended)


2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.02-27

In a Cisco MDS 9513 Director, slots 7 and 8 are reserved for the Supervisor-2 modules. In the Cisco MDS 9506 and 9509 Directors, slots 5 and 6 are reserved for the supervisor modules. A supervisor module should be installed before installing any switching modules.

Supervisor Module Installation


To install a supervisor module, follow these steps:
Step 1 Step 2 Step 3

Before installing any modules in the chassis, it is recommended that you install the chassis in the rack. Verify that there is enough clearance to accommodate any cables or interface equipment that you want to connect to the module. Verify that the captive screws are tightened to 8 in-lb on all modules already installed in the chassis. This ensures that the EMI gaskets are fully compressed and maximizes the opening space for the module being installed. If a filler panel is installed, remove the two Phillips pan-head screws from the filler panel and remove the panel. Open completely both ejector levers on the new or replacement module.

Step 4 Step 5

AB-30

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Line Card Installation


To install a line card module, follow these steps:
Step 1

Slide the module carefully into the slot until the EMI gasket along the top edge of the module contacts the module in the slot above it and both ejector levers close to approximately 45 degrees with respect to the front of the module. Grasp the two ejector levers with the thumb and forefinger of each hand, and then press down to create a small 0.040-inch (1-mm) gap between the module's EMI gasket and the module above it. While pressing down, simultaneously close the left and right ejector levers to completely seat the supervisor module or switching module in the backplane connector. The ejector levers are completely closed when they are flush with the front of the module. Tighten the two captive screws on the supervisor module or switching module to 8 in-lb.

Step 2

Step 3

Step 4

2007 Cisco Systems, Inc.

Appendix B: Installation and Configuration Reference

AB-31

MDS 9500 Series Supervisor Module Installation


Supervisor module locations are fixed (slots 5 and 6 for the 9506 and 9509, slots 7 and 8 for the 9513) Ensure supervisor internal CompactFlash disk is seated properly before installing Connect management port to LAN network with standard Category 5 UTP cable Connect VT100 terminal to the console connector Use adaptor and cable that are provided with the switch

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.02-28

To install an MDS 9500 Series supervisor module, follow these steps:


Note Note Supervisor module locations are fixed (slots 5 and 6). Be sure the CompactFlash disk is seated properly on the supervisor module before installing in the chassis.

Step 1 Step 2 Note Step 3

Connect the management port to the LAN using a Category 5 unshielded twistedpair (UTP) cable. Connect the supplied RJ-45 to DB-9 female adaptor to the computer serial port.
It is recommend to use the adaptor and cable provided with the switch.

Then connect the console cable (a rollover RJ-45 to RJ-45 cable) to the console port and to the RJ-45 to DB-9 adapter at the computer serial port. Configure the terminal emulator program to match the following default port characteristics:

9600 baud 8 data bits 1 stop bit No parity


Note See the Hardware Installation Guide for all cable pinouts.

AB-32

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Supervisor Module Management


Migrating from Supervisor-1 modules to Supervisor-2 modules in the Cisco MDS 9500 Series Directors:
Supervisor-1 port indexing is based on the chassis slot number, whereas Supervisor-2 does not share this requirement Differences between how Supervisor-1 and Supervisor-2 treat port indexes creates the following upgrade qualifiers: Supervisor-1 and Supervisor-2 modules can not be used in the same switch (9506 or 9509) except for migration purposes The migration process is disruptive Supervisor-2 to Supervisor-1 migration is not supported Supervisor-2 is required for the 9513 chassis Supervisor-1 is not supported and is hardware blocked
2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.02-29

Generation-1 Supervisor Module Management


Supervisor-1 and Supervisor-2 treat port indexing differently. Supervisor-1 creates port indexes based on the chassis slot number. Supervisor-2 does not share this behavior, that is, any available port index in a range can be used regardless of the chassis slot number. Due to the difference in the way they handle port indexing, the Supervisor-1 module and Supervisor-2 module can not be used in the same switch, except for migration purposes. Both the active and standby supervisor modules must be of the same type, either Supervisor-1 or Supervisor-2 modules. For Cisco MDS 9513 Directors, both supervisor modules must be Supervisor-2 modules.

Supervisor-2 Module Migration


Follow these guidelines when migrating from Supervisor-1 modules to Supervisor-2 modules: Ensure that the configured domain ID is the same as the current domain ID for every VSAN on the switch. Save the configuration with the copy run start command. Verify that the switch is running SAN-OS 3.0(1), or later. Determine which Supervisor-1 module is standby with the show module command. Take the standby Supervisor-1 module out of service with the out-of-service module command. Remove the standby Supervisor-1 module, and install the Supervisor-2 module in the chassis. Establish a console session on the standby Supervisor-2 module. Verify that the standby Supervisor-2 module is in the warm standby state using the show system redundancy status command.

2007 Cisco Systems, Inc.

Appendix B: Installation and Configuration Reference

AB-33

If necessary, copy the contents of the SSM NVRAM to the standby Supervisor-2 module. Initiate a switchover on the active Supervisor-1 module to power it down and cause the standby Supervisor-2 module to become the active supervisor module with the system switchover command. Install the other Supervisor-2 module in the chassis. Run the install all command to update the image versions and boot variables.

AB-34

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

MDS 9500 Series Supervisor Module Interfaces


1. Status LEDs (green, orange, red) 2. Reset button

COM1 modem cable adaptor (modem adaptor not shown)

3. Console port 4. 10/100 Ethernet management port 5. COM1 serial port 6. CompactFlash LED 7. CompactFlash eject button 9. CF1 slot

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.02-30

This supervisor module is installed in the MDS 9500 Series chassis and has the following interfaces: Status LEDs: Status, System, Active/Standby, and Power Management Module reset button: Used for a warm start. Console port: RS-232 (RJ-45) for local command line interface (CLI) management. 10/100 Ethernet interface: Out-of-band (OOB) management access with integrated link and activity LEDs. COM1 serial port: DB-9 interface is an RS-232 port that you can use to connect to an external serial communication device such as a modem. CompactFlash LED: This LED is lit when a CompactFlash (CF) card is installed into slot 0. CompactFlash eject button: Push to eject a CompactFlash card. CF1: Slot you can use for a CompactFlash card. The Status LED states are: Green: OK Orange: Initializing or over temperature The System LED states are: Green: System OK Orange: Environmental error, incompatible power supply, or redundant clock failure Red: Major temperature threshold has been exceeded The Active LED states are: Green: Active Orange: Standby
2007 Cisco Systems, Inc. Appendix B: Installation and Configuration Reference AB-35

The Power/Mangement LED states are: Green: Good power, that is, sufficient power for all modules Orange: Not enough power, that is, insufficient power for all modules Connect the modem to the COM1 serial port with the adaptors and cables provided with the accessory kit as follows:
Step 1 Step 2 Step 3

Connect the DB-9 serial adapter to the COM1 port. Connect the RJ-45 to DB-25 modem adaptor to the modem. Connect the adapters using the RJ-45 to RJ-45 rollover cable (or equivalent crossover cable).

AB-36

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

MDS 9216 Series Supervisor Module


Supervisor and interface module locations are fixed and not removable Connect management port to LAN network with standard Category 5 unshielded twistedpair (UTP) cable Connect VT100 terminal to the console connector
Connect to Ethernet LAN
2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.02-31

Fixed interface module Connect to terminal

The MDS 9216 supervisor module has 2 slots: Slot 1: This slot is reserved for the supervisor module with its integrated 16-port switching module. Slot 2: This slot can contain an optional 16- or 32-port switching module or a services module such as an 8-port IP Storage Services (IPS) module.

2007 Cisco Systems, Inc.

Appendix B: Installation and Configuration Reference

AB-37

Verify Module Status in Device Manager

Reset any module


2007 Cisco Systems, Inc. All rights reserved. ICSNS v3.02-32

Device Manager Module Status Verification


To verify the status of all modules using Device Manager, click the Physical menu item, and then select Modules. Using the display, you can reset any module by selecting the reset box and clicking the Apply button.
Note Resetting modules should only be performed when necessary, for example if a software upgrade or downgrade has failed.

AB-38

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

Module Shutdown
Use the poweroff module command to power down a module Verify status with the show module command Remove module safely without shutting down entire switch
# conf t (config)# (config)# Mod Ports --- ----1 16 2 4 5 0 6 0

poweroff module 1 do show module Module-Type -------------------------1/2 Gbps FC Module IP Storage Services Module Supervisor/Fabric-1 Supervisor/Fabric-1

Model --------------DS-X9016 DS-X9530-SF1-K9 DS-X9530-SF1-K9

Status ---------ok powered-dn active * ha-standby

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.02-33

Caution

Even though you can hot-swap MDS 9000 modules, it is recommended that you shut down a module before removal.

To shut down any module, use the poweroff module command in config mode:
<config># poweroff module 2

To verify the status of a module at any time, use the show module command in EXEC mode. To view information on one module only, you can specify a module slot number.

Example
The command show module 1 returns the status information of only the module installed in slot 1.
# show module Mod Ports Module-Type Model Status --- ----- -------------------------- --------------- ---------1 16 1/2 Gbps FC Module DS-X9016 ok 2 4 IP Storage Services Module powered-dn 5 0 Supervisor/Fabric-1 DS-X9530-SF1-K9 active * 6 0 Supervisor/Fabric-1 DS-X9530-SF1-K9 ha-standby

2007 Cisco Systems, Inc.

Appendix B: Installation and Configuration Reference

AB-39

Summary
This topic summarizes the key points that were discussed in this lesson.

Summary
Installation guidelines include recommendations for evaluating site preparedness, rack hardware, and power requirements. MDS 9000 switches can be installed in a standard telco rack or cabinets with solid panels. The MDS 9513 can not be used with a telco rack. Power supply installation and configuration should be carefully considered to ensure high-availability. MDS 9000 fan modules are hot swappable and provide for easy installation and replacement. Install at least one supervisor module before installing any line card modules, and use the poweroff module command to shut down individual line cards prior to removal.

2007 Cisco Systems, Inc. All rights reserved.

ICSNS v3.02-34

AB-40

Implementing Cisco Storage Networking Solutions (ICSNS) v3.0

2007 Cisco Systems, Inc.

You might also like