iscsi (internet small computer system interface)
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
![Page 1: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/1.jpg)
04/13/2023 1
iSCSIInternet Small Computer System
Interface
BySayali Koranne
![Page 2: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/2.jpg)
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
![Page 3: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/3.jpg)
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
![Page 4: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/4.jpg)
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
![Page 5: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/5.jpg)
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
![Page 6: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/6.jpg)
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
![Page 7: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/7.jpg)
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:
![Page 8: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/8.jpg)
04/13/2023 8
How it works:At Initiator:
![Page 9: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/9.jpg)
04/13/2023 9
Cont…At Target:
![Page 10: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/10.jpg)
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
![Page 11: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/11.jpg)
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
![Page 12: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/12.jpg)
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
![Page 13: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/13.jpg)
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)
![Page 14: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/14.jpg)
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
![Page 15: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/15.jpg)
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.
![Page 16: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/16.jpg)
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
![Page 17: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/17.jpg)
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]
![Page 18: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/18.jpg)
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.
![Page 19: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/19.jpg)
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.
![Page 20: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/20.jpg)
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
![Page 21: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/21.jpg)
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
![Page 22: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/22.jpg)
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.
![Page 23: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/23.jpg)
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.
![Page 24: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/24.jpg)
04/13/2023 24
Thank You!!!
![Page 25: iSCSI (Internet Small Computer System Interface)](https://reader034.vdocuments.us/reader034/viewer/2022052600/5577dae2d8b42a7b7b8b46de/html5/thumbnails/25.jpg)
04/13/2023 25
Any Queries???