iSCSI (Internet Small Computer System Interface)

Post on 10-Jun-2015

653 views 2 download

Tags:

description

Gives the introduction about Internet Small Computer System Interface, Its usage, working of iSCSI and how to discover Initiator and target for iSCSI.

Transcript of iSCSI (Internet Small Computer System Interface)

04/13/2023 1

iSCSIInternet Small Computer System

Interface

BySayali Koranne

04/13/2023 2

AgendaSCSIIntroduction to iSCSIBasics of iSCSIHow it WorksArchitectureiSCSI ProtocolOpen-iSCSI : iscsid and iscsiadm utilityiSCSI InitiatorSteps for Discovery and Connect to iSCSI TargetConclusion

04/13/2023 3

SCSI :Family of Interfaces for requesting services from I/O

devices

Logical unit- Individual I/O devices

Uses Logical Addressing of data blocks

Two Types : Parallel SCSISerial SCSI

04/13/2023 4

Introduction to iSCSI :IP based standard for linking data storage devices over a network

Supports Gigabit Ethernet Interface

Enables location independent data storage and retrieval

Uses existing building blocks (SCSI, TCP)

Point to point direct connections

Transfer SCSI packets

04/13/2023 5

Basics of iSCSI:Two types of Devices:

• iSCSI Initiator• iSCSI Target

iSCSI Initiator:• Request Commands to execute

• Also called as Client

• Starts the Communication

04/13/2023 6

Cont…iSCSI Target:

Responds to the requestAlso Called as ServerIt is device that carry out commandsEndpoint within target executes command called

as Logical Unit.

CDB (Command Descriptor Block)

Task – command or linked set of command

04/13/2023 7

Cont…SCSI Command execution results in :

• Data Phase• Status Phase

SCSI driver – build SCSI CDB from request issued by application

CDB format:

04/13/2023 8

How it works:At Initiator:

04/13/2023 9

Cont…At Target:

04/13/2023 10

Architecture:

SCSI Block CommandsSCSI Stream

Commands

Parallel SCSI Transport

SCSI Applications (File Systems, Databases)

Parallel SCSI

InterfacesFibre Channel Ethernet, PPP, HDLC…

Other SCSI Commands

IP

TCP

SCSI Commands, Data, and Status

FCPSCSI over FC

iSCSISCSI over TCP/IP

Physical layer

SCSI Transport layer

SCSI Generic layer

SCSI Device layer

04/13/2023 11

iSCSI Protocol:Based on SCSIEnables block storage application over TCP/IP networksIt is bi-directionalMonitors and validates I/O operation

IP Packet

IP TCPTCP iSCSIiSCSI SCSI Data

04/13/2023 12

iSCSI address & naming conventionsiSCSI implements a client-server model

Network Entity(ISCSI client)

ISCSI node(Initiator)

Network portal IP address TCP Port #

Network Entity(ISCSI server)

ISCSI node(Target)

Network Portal IP Address TCP Port #

ISCSI node(Target)

Network Portal IP Address TCP Port #

IP network

04/13/2023 13

Cont…Initiator and target require iSCSI namesName is location independentiSCSI node name = SCSI device name Up to 255-byte displayable/human readable string

(UTF-8 encoding)Two iSCSI name types:

iqn—iSCSI qualified nameeui—Extended Unique Identifier (IEEE EUI-64—

also used for FC WWNs)

04/13/2023 14

Cont…Unique String

iqn.1987-05.com.cisco.1234abcdef987601267da232.bettyiqn.2001-04.com.acme.storage.tape.sys1.xyz

Type DateOrganization

Naming AuthoritySubgroup Naming Authority or

String Defined by Organization Naming Authorityiqn

eui

Date = yyyy-mm When Domain

Acquired

Reversed Domain Name

Type EUI-64 Identifier (ASCII Encoded Hexadecimal)

eui.02004567a425678d

Type

04/13/2023 15

Open-iSCSI: iscsid & iscsiadm utilityOpen-iSCSI is:

High-performanceTransport independentMulti-platform implementation

It is partitioned into:Kernel spaceUser Space

Kernel part implements iSCSI data path ie. iSCSI read & iSCSI write.

User space contains entire control plane.

04/13/2023 16

Cont…Open-iSCSI daemon (iscsid):

It exist in user space. Implements control path of iSCSI protocol.Daemon could be configured to automatically restart

discovery at startup.

To auto restart recovery make changes into iscsid.conf file.In iscsid –

Uncomment node.startup=automaticComment out node.startup=manual

04/13/2023 17

Cont…Open-iSCSI management utility (iscsiadm):

Is a command line tool

Usage of iscsiadm: iscsiadm [OPTION]

-m, --mode <op>

Example: -m discoverydb --type=[type] --interface=[iface...] --

portal=[ip:port]

04/13/2023 18

iSCSI Initiator:Functions as iSCSI Client

Two types of Initiator:Software Initiator

Uses code to implement iSCSI.Hardware Initiator

Uses dedicated hardware in combination with software to implement iSCSI.

04/13/2023 19

iSCSI Discovery:

iSCSI Discovery is performed in different ways:Internet Storage Name Service (iSNS) - Potential targets are

discovered by interacting with one or more iSNS servers.SendTargets – Potential targets are discovered by using a

discovery-address.SLP - Discover targets via Service Location protocol (RFC

4018) Static – Static target address is specified.

04/13/2023 20

Cont…iscsid has to be running.

Command:# Iscsiadm -m discovery -t sendtargets -p <portalip>

Example:iscsiadm -m discoverydb -t st -p somehost --discover

iscsiadm -m discovery -t st -p 192.168.1.1:3260

--discover

04/13/2023 21

Cont…Connecting to Target:

Login to Available target:# iscsiadm -m node -L all

Login to Specific target:# iscsiadm -m node --

targetname=<targetname> --login

04/13/2023 22

Conclusion:• iSCSI is a low cost, low maintenance alternative to Fibre

Channel.

• iSCSI networks can use existing copper infrastructures.

• Unlike Fibre Channel, iSCSI networks can span the Internet.

• iSCSSI works over a long distance.

• It reduces total cost storage.

04/13/2023 23

References:http://www.webopedia.com/TERM/I/iSCSI.htmlhttp://iscsi.starwindsoftware.com/why-iscsihttp://searchstorage.techtarget.com/definition/iSCSIhttp://en.wikipedia.org/wiki/ISCSIhttp://www.open-iscsi.org/docs/READMEWhite Paper :

iSCSI Protocol Concepts and ImplementationiSCSI technical white paper by Nishan systems.

04/13/2023 24

Thank You!!!

04/13/2023 25

Any Queries???