SlideShare a Scribd company logo
BITS Pilani
Pilani Campus
Data Storage Technologies
& Networks
Dr. Virendra Singh Shekhawat
Department of Computer Science and Information Systems
BITS Pilani, Pilani Campus
Topics
• SCSI Bus Protocol
– Bus components
– SCSI Devices
– SCSI commands
– SCSI r/w operation
2
BITS Pilani, Pilani Campus
SCSI: I/O Path from CPU to
Storage
• Stands for Small Computer System Interface
– Asynchronous, parallel bus
– Allows multiple bus masters
– Commonly used for high-end Storage devices
• Several standards
– Earliest Standard
• No. of wires (50)
• 8 data lines
• data transfer rate (5MB/s)
• wire length(25m)
3
BITS Pilani, Pilani Campus
SCSI Bus Standard
• Fast SCSI
– Doubled clock rate, data transfer up to 10MB/s
• Wide SCSI
– 16 data lines
– Fast Wide SCSI – 20 MB/s
• Ultra SCSI
– 8 data lines – data transfer rate 20MB/s
– Ultra Wide SCSI – 16 data lines – data transfer 40
MB/s
– Ultra320 - 16 data lines – data transfer 320 MB/s
• Serial Attached SCSI (SAS) and iSCSI (IP over SCSI)
4
BITS Pilani, Pilani Campus
SCSI – Components Model
• All devices are connected to a bus through a
SCSI controller
– e.g. a host adaptor on the processor side
– e.g. a disk controller for a hard disk device
• 2 types of devices
– Initiators or Targets
• Initiator has the ability to select a target and send
commands specifying operations
• Target has the ability to execute the operations based on
the commands received
• Data transfers are controlled by the targets
5
BITS Pilani, Pilani Campus
SCSI Devices
• Devices are identified through controllers
• Device Identification
– Identifiers: Narrow SCSI (8 devices)
• 0-7 in increasing order of priority
– Identifiers: Wide SCSI (16 devices)
• 8-15, 0-7 in increasing order of priority
– Identifier assignment is
• physical (through jumpers or switches), or
• programmatic (through BIOS firmware in adapter)
• Logical devices
– Each Drive/Disk is assigned a Logical Unit Number (LUN) for
addressing
– A Single physical device may be divided into logical devices
each with a LUN (Logical Unit Number)
6
BITS Pilani, Pilani Campus
SCSI Command Protocol
• Communication between initiator and target
– Command sent in a Command Descriptor Block
• 1 byte of opcode followed by
• 5+ bytes of command-specific parameters
– Target (eventually) sends a status code byte
• Success, or busy, or Check Condition (i.e. error)
7
BITS Pilani, Pilani Campus
SCSI Command Protocol
• Command Types
– Non-data, Write, Read, Bidirectional
– e.g.
• Test Unit Ready
• Inquiry
• Start/Stop Unit
• Request Sense (for error)
• Read Capacity
• Format Unit
• Read (4 variants)
• Write (4 variants)
8
BITS Pilani, Pilani Campus
Command Descriptor Block
(CDB)
• Opcode
• LUN (3 bits)
• e.g. for Read
– Read (6): 21 bits LBA, 1 byte transfer length
– Read(10): 32 bit LBA, 2 byte transfer length
– Read(12): 32 bit LBA, 4 byte transfer length
– Read Long for ECC-Compliant data
9
BITS Pilani, Pilani Campus
SCSI – State Transition – Bus
Phases
• Bus Free Phase
– Bus is not being used by anyone
• Arbitration Phase
– One or more initiators request use of the bus and
• the one with the highest priority (SCSI ID order) is allowed to proceed
• Selection / Reselection phase
– Initiator asserts BUS BUSY signal and
• places target’s address on the bus thus establishing a connection/session
– Re-selection applies for a target resuming an interrupted operation:
• target asserts BUS BUSY signal and places initiator’s address on the bus.
• Message
– Exchange of control messages between initiator and target
• Command
– Initiator sends command to target
• Data
– Data exchange (as part of a read/write operation)
• Status
– Status of a command.
10
BITS Pilani, Pilani Campus
SCSI – State Transition – Bus
Phase Sequence [1]
• For a read operation:
1. When bus is free, initiator enters into arbitration (with other possible
initiators)
2. On arbitration, initiator selects the bus and places target address on
bus
3. Target acknowledges selection by a message
4. Initiator sends command
5. Target acknowledges command by a message
6. Target devices places (read) data on bus
7. Initiator acknowledges data by a message
8. Target sends status
• Assumption:
– Target holds the bus while it is reading – this acceptable only for simple
devices and small read delays.
• Exercise: Modify the above sequence for a write operation.
11
BITS Pilani, Pilani Campus
SCSI – State Transition – Bus
Phase Sequence [2]
• For a read operation:
1. When bus is free, initiator enters into arbitration (with other possible
initiators)
2. On arbitration, initiator selects the bus and places target address on bus
3. Target acknowledges selection by a message
4. Initiator sends command
5. Target acknowledges command by a message
6. Target sends “Disconnect” message to initiator
7. Bus is released
8. When target is ready with (read) data, target reselects bus and places
initiator address on bus
9. Initiator acknowledges selection by a message
10. Target sends data.
11. Initiator acknowledges data by a message
12. Target sends status
• Question: Modify the above sequence for a write operation.
12
BITS Pilani, Pilani Campus
SCSI – State Transition – Bus
Phase Sequence [3]
• For a sequence of read-write operations:
– Commands can be chained – i.e. a sequence of I/O operations
initiated by a single initiator on the same target.
– In this case, one arbitration step and one selection phase are enough.
• For large data transfers:
– Target could “disconnect” multiple times i.e. data transfer may be
interrupted more than once.
• If the target decides to disconnect, target sends a “save data pointer”
message to the initiator before the “disconnect” message
• A corresponding “restore data pointer” message is required after bus has
been reselected (i.e. data transfer is about to resume).
• SCSI controllers permit at most two sequences (i.e.
connections/sessions) to be interleaved.
13
BITS Pilani, Pilani Campus
SCSI – Command Queuing
• SCSI enables target devices to accept multiple
requests before finishing any of them
– Target devices must maintain queue outstanding
requests
– Also referred to as Tagged Command Queuing
– In SATA this is referred to as Native Command
Queuing
• SCSI-3 permits queue lengths up to 64
– In practice, most SCSI controllers (based on traditional
parallel SCSI) support a queue length of 256
• ATA/SATA permits queue lengths up to 32.
14
BITS Pilani, Pilani Campus
SCSI – Command Queuing
• Command Queuing is useful
– For initiator to offload I/O operations instead of
sequencing them itself.
– For amortizing seek and rotation times over multiple
accesses thereby reducing the average access time:
• Controller must have support for ordering the accesses so
that seek time is minimized or rotation time is minimized
or both.
15
BITS Pilani, Pilani Campus
Error Correction -In channel
• SCSI supports read/write operations with error
correction code (ECC)
– ECC uses redundant bits for error correction
– Most modern disks have “out-of-band” ECC per disk
sector
• This is used internally by the controller to verify whether
any bit errors have occurred during storage.
16
BITS Pilani, Pilani Campus
Thank You!
17

More Related Content

Similar to M2 242-scsi-bus rl-2.4.2

Ec305.13 buses mgl
Ec305.13 buses mglEc305.13 buses mgl
Ec305.13 buses mgl
Д. Ганаа
 
Ec305.13 buses mgl
Ec305.13 buses mglEc305.13 buses mgl
Ec305.13 buses mgl
Д. Ганаа
 
Types of buses of computer
Types of buses of computerTypes of buses of computer
Types of buses of computer
SAGAR DODHIA
 
Cs intro-ca
Cs intro-caCs intro-ca
Cs intro-ca
aniketbijwe143
 
M1 rl 1.1.1
M1 rl 1.1.1M1 rl 1.1.1
M1 rl 1.1.1
MrudulaJoshi10
 
M3 nfs fs-3.2.1
M3 nfs fs-3.2.1M3 nfs fs-3.2.1
M3 nfs fs-3.2.1
MrudulaJoshi10
 
Computer organization & architecture chapter-1
Computer organization & architecture chapter-1Computer organization & architecture chapter-1
Computer organization & architecture chapter-1
Shah Rukh Rayaz
 
03 top level view of computer function and interconnection
03 top level view of computer function and interconnection03 top level view of computer function and interconnection
03 top level view of computer function and interconnection
Sher Shah Merkhel
 
Snooping protocols 3
Snooping protocols 3Snooping protocols 3
Snooping protocols 3
Yasir Khan
 
07 input output
07 input output07 input output
07 input output
dilip kumar
 
07 input output
07 input output07 input output
07 input output
Sher Shah Merkhel
 
WiFi - IEEE 802.11
WiFi - IEEE 802.11WiFi - IEEE 802.11
WiFi - IEEE 802.11
Damien Magoni
 
In out system
In out systemIn out system
In out system
Agnas Jasmine
 
Os
OsOs
Detailed iSCSI presentation
Detailed iSCSI presentationDetailed iSCSI presentation
Detailed iSCSI presentation
Sheel Sindhu Manohar
 
SCSI Interfaces
SCSI InterfacesSCSI Interfaces
SCSI Interfaces
Varunjeet Singh Rekhi
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
ssuser5c9d4b1
 
12 processor structure and function
12 processor structure and function12 processor structure and function
12 processor structure and function
Anwal Mirza
 
03_Buses (1).ppt
03_Buses (1).ppt03_Buses (1).ppt
03_Buses (1).ppt
WanizaSiddiqui
 
Ca 2 note mano
Ca 2 note manoCa 2 note mano
Ca 2 note mano
Manoharan Ragavan
 

Similar to M2 242-scsi-bus rl-2.4.2 (20)

Ec305.13 buses mgl
Ec305.13 buses mglEc305.13 buses mgl
Ec305.13 buses mgl
 
Ec305.13 buses mgl
Ec305.13 buses mglEc305.13 buses mgl
Ec305.13 buses mgl
 
Types of buses of computer
Types of buses of computerTypes of buses of computer
Types of buses of computer
 
Cs intro-ca
Cs intro-caCs intro-ca
Cs intro-ca
 
M1 rl 1.1.1
M1 rl 1.1.1M1 rl 1.1.1
M1 rl 1.1.1
 
M3 nfs fs-3.2.1
M3 nfs fs-3.2.1M3 nfs fs-3.2.1
M3 nfs fs-3.2.1
 
Computer organization & architecture chapter-1
Computer organization & architecture chapter-1Computer organization & architecture chapter-1
Computer organization & architecture chapter-1
 
03 top level view of computer function and interconnection
03 top level view of computer function and interconnection03 top level view of computer function and interconnection
03 top level view of computer function and interconnection
 
Snooping protocols 3
Snooping protocols 3Snooping protocols 3
Snooping protocols 3
 
07 input output
07 input output07 input output
07 input output
 
07 input output
07 input output07 input output
07 input output
 
WiFi - IEEE 802.11
WiFi - IEEE 802.11WiFi - IEEE 802.11
WiFi - IEEE 802.11
 
In out system
In out systemIn out system
In out system
 
Os
OsOs
Os
 
Detailed iSCSI presentation
Detailed iSCSI presentationDetailed iSCSI presentation
Detailed iSCSI presentation
 
SCSI Interfaces
SCSI InterfacesSCSI Interfaces
SCSI Interfaces
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
12 processor structure and function
12 processor structure and function12 processor structure and function
12 processor structure and function
 
03_Buses (1).ppt
03_Buses (1).ppt03_Buses (1).ppt
03_Buses (1).ppt
 
Ca 2 note mano
Ca 2 note manoCa 2 note mano
Ca 2 note mano
 

More from MrudulaJoshi10

M4 rdma 4.5.1
M4 rdma 4.5.1M4 rdma 4.5.1
M4 rdma 4.5.1
MrudulaJoshi10
 
M4 f co-e_4.4.2
M4 f co-e_4.4.2M4 f co-e_4.4.2
M4 f co-e_4.4.2
MrudulaJoshi10
 
M4 fc san-4.2.1
M4 fc san-4.2.1M4 fc san-4.2.1
M4 fc san-4.2.1
MrudulaJoshi10
 
M3 smb cifs-protocol_3.3.1
M3 smb cifs-protocol_3.3.1M3 smb cifs-protocol_3.3.1
M3 smb cifs-protocol_3.3.1
MrudulaJoshi10
 
M3 nfs fs-_performance_3.2.2
M3 nfs fs-_performance_3.2.2M3 nfs fs-_performance_3.2.2
M3 nfs fs-_performance_3.2.2
MrudulaJoshi10
 
M3 nas architecture-3.1.1
M3 nas architecture-3.1.1M3 nas architecture-3.1.1
M3 nas architecture-3.1.1
MrudulaJoshi10
 
M2 231-io tech-rl_2.3.1
M2 231-io tech-rl_2.3.1M2 231-io tech-rl_2.3.1
M2 231-io tech-rl_2.3.1
MrudulaJoshi10
 
M2 221-ssd fs-rl_2.2.1
M2 221-ssd fs-rl_2.2.1M2 221-ssd fs-rl_2.2.1
M2 221-ssd fs-rl_2.2.1
MrudulaJoshi10
 
M2 211-unix fs-rl_2.1.1
M2 211-unix fs-rl_2.1.1M2 211-unix fs-rl_2.1.1
M2 211-unix fs-rl_2.1.1
MrudulaJoshi10
 
M1 rl 1.4.1
M1 rl 1.4.1M1 rl 1.4.1
M1 rl 1.4.1
MrudulaJoshi10
 
M1 rl 1.3.1
M1 rl 1.3.1M1 rl 1.3.1
M1 rl 1.3.1
MrudulaJoshi10
 
M1 rl 1.2.1
M1 rl 1.2.1M1 rl 1.2.1
M1 rl 1.2.1
MrudulaJoshi10
 

More from MrudulaJoshi10 (12)

M4 rdma 4.5.1
M4 rdma 4.5.1M4 rdma 4.5.1
M4 rdma 4.5.1
 
M4 f co-e_4.4.2
M4 f co-e_4.4.2M4 f co-e_4.4.2
M4 f co-e_4.4.2
 
M4 fc san-4.2.1
M4 fc san-4.2.1M4 fc san-4.2.1
M4 fc san-4.2.1
 
M3 smb cifs-protocol_3.3.1
M3 smb cifs-protocol_3.3.1M3 smb cifs-protocol_3.3.1
M3 smb cifs-protocol_3.3.1
 
M3 nfs fs-_performance_3.2.2
M3 nfs fs-_performance_3.2.2M3 nfs fs-_performance_3.2.2
M3 nfs fs-_performance_3.2.2
 
M3 nas architecture-3.1.1
M3 nas architecture-3.1.1M3 nas architecture-3.1.1
M3 nas architecture-3.1.1
 
M2 231-io tech-rl_2.3.1
M2 231-io tech-rl_2.3.1M2 231-io tech-rl_2.3.1
M2 231-io tech-rl_2.3.1
 
M2 221-ssd fs-rl_2.2.1
M2 221-ssd fs-rl_2.2.1M2 221-ssd fs-rl_2.2.1
M2 221-ssd fs-rl_2.2.1
 
M2 211-unix fs-rl_2.1.1
M2 211-unix fs-rl_2.1.1M2 211-unix fs-rl_2.1.1
M2 211-unix fs-rl_2.1.1
 
M1 rl 1.4.1
M1 rl 1.4.1M1 rl 1.4.1
M1 rl 1.4.1
 
M1 rl 1.3.1
M1 rl 1.3.1M1 rl 1.3.1
M1 rl 1.3.1
 
M1 rl 1.2.1
M1 rl 1.2.1M1 rl 1.2.1
M1 rl 1.2.1
 

Recently uploaded

VARIABLE FREQUENCY DRIVE. VFDs are widely used in industrial applications for...
VARIABLE FREQUENCY DRIVE. VFDs are widely used in industrial applications for...VARIABLE FREQUENCY DRIVE. VFDs are widely used in industrial applications for...
VARIABLE FREQUENCY DRIVE. VFDs are widely used in industrial applications for...
PIMR BHOPAL
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
PreethaV16
 
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURSCompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
RamonNovais6
 
Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...
Prakhyath Rai
 
Digital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptxDigital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptx
aryanpankaj78
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
171ticu
 
Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...
bijceesjournal
 
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
Paris Salesforce Developer Group
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
21UME003TUSHARDEB
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
KrishnaveniKrishnara1
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
Gino153088
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
Atif Razi
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
IJECEIAES
 
SCALING OF MOS CIRCUITS m .pptx
SCALING OF MOS CIRCUITS m                 .pptxSCALING OF MOS CIRCUITS m                 .pptx
SCALING OF MOS CIRCUITS m .pptx
harshapolam10
 
Engineering Standards Wiring methods.pdf
Engineering Standards Wiring methods.pdfEngineering Standards Wiring methods.pdf
Engineering Standards Wiring methods.pdf
edwin408357
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
Nada Hikmah
 
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
nedcocy
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
ijaia
 

Recently uploaded (20)

VARIABLE FREQUENCY DRIVE. VFDs are widely used in industrial applications for...
VARIABLE FREQUENCY DRIVE. VFDs are widely used in industrial applications for...VARIABLE FREQUENCY DRIVE. VFDs are widely used in industrial applications for...
VARIABLE FREQUENCY DRIVE. VFDs are widely used in industrial applications for...
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
 
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURSCompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
 
Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...
 
Digital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptxDigital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptx
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
 
Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...
 
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
 
SCALING OF MOS CIRCUITS m .pptx
SCALING OF MOS CIRCUITS m                 .pptxSCALING OF MOS CIRCUITS m                 .pptx
SCALING OF MOS CIRCUITS m .pptx
 
Engineering Standards Wiring methods.pdf
Engineering Standards Wiring methods.pdfEngineering Standards Wiring methods.pdf
Engineering Standards Wiring methods.pdf
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
 
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
 

M2 242-scsi-bus rl-2.4.2

  • 1. BITS Pilani Pilani Campus Data Storage Technologies & Networks Dr. Virendra Singh Shekhawat Department of Computer Science and Information Systems
  • 2. BITS Pilani, Pilani Campus Topics • SCSI Bus Protocol – Bus components – SCSI Devices – SCSI commands – SCSI r/w operation 2
  • 3. BITS Pilani, Pilani Campus SCSI: I/O Path from CPU to Storage • Stands for Small Computer System Interface – Asynchronous, parallel bus – Allows multiple bus masters – Commonly used for high-end Storage devices • Several standards – Earliest Standard • No. of wires (50) • 8 data lines • data transfer rate (5MB/s) • wire length(25m) 3
  • 4. BITS Pilani, Pilani Campus SCSI Bus Standard • Fast SCSI – Doubled clock rate, data transfer up to 10MB/s • Wide SCSI – 16 data lines – Fast Wide SCSI – 20 MB/s • Ultra SCSI – 8 data lines – data transfer rate 20MB/s – Ultra Wide SCSI – 16 data lines – data transfer 40 MB/s – Ultra320 - 16 data lines – data transfer 320 MB/s • Serial Attached SCSI (SAS) and iSCSI (IP over SCSI) 4
  • 5. BITS Pilani, Pilani Campus SCSI – Components Model • All devices are connected to a bus through a SCSI controller – e.g. a host adaptor on the processor side – e.g. a disk controller for a hard disk device • 2 types of devices – Initiators or Targets • Initiator has the ability to select a target and send commands specifying operations • Target has the ability to execute the operations based on the commands received • Data transfers are controlled by the targets 5
  • 6. BITS Pilani, Pilani Campus SCSI Devices • Devices are identified through controllers • Device Identification – Identifiers: Narrow SCSI (8 devices) • 0-7 in increasing order of priority – Identifiers: Wide SCSI (16 devices) • 8-15, 0-7 in increasing order of priority – Identifier assignment is • physical (through jumpers or switches), or • programmatic (through BIOS firmware in adapter) • Logical devices – Each Drive/Disk is assigned a Logical Unit Number (LUN) for addressing – A Single physical device may be divided into logical devices each with a LUN (Logical Unit Number) 6
  • 7. BITS Pilani, Pilani Campus SCSI Command Protocol • Communication between initiator and target – Command sent in a Command Descriptor Block • 1 byte of opcode followed by • 5+ bytes of command-specific parameters – Target (eventually) sends a status code byte • Success, or busy, or Check Condition (i.e. error) 7
  • 8. BITS Pilani, Pilani Campus SCSI Command Protocol • Command Types – Non-data, Write, Read, Bidirectional – e.g. • Test Unit Ready • Inquiry • Start/Stop Unit • Request Sense (for error) • Read Capacity • Format Unit • Read (4 variants) • Write (4 variants) 8
  • 9. BITS Pilani, Pilani Campus Command Descriptor Block (CDB) • Opcode • LUN (3 bits) • e.g. for Read – Read (6): 21 bits LBA, 1 byte transfer length – Read(10): 32 bit LBA, 2 byte transfer length – Read(12): 32 bit LBA, 4 byte transfer length – Read Long for ECC-Compliant data 9
  • 10. BITS Pilani, Pilani Campus SCSI – State Transition – Bus Phases • Bus Free Phase – Bus is not being used by anyone • Arbitration Phase – One or more initiators request use of the bus and • the one with the highest priority (SCSI ID order) is allowed to proceed • Selection / Reselection phase – Initiator asserts BUS BUSY signal and • places target’s address on the bus thus establishing a connection/session – Re-selection applies for a target resuming an interrupted operation: • target asserts BUS BUSY signal and places initiator’s address on the bus. • Message – Exchange of control messages between initiator and target • Command – Initiator sends command to target • Data – Data exchange (as part of a read/write operation) • Status – Status of a command. 10
  • 11. BITS Pilani, Pilani Campus SCSI – State Transition – Bus Phase Sequence [1] • For a read operation: 1. When bus is free, initiator enters into arbitration (with other possible initiators) 2. On arbitration, initiator selects the bus and places target address on bus 3. Target acknowledges selection by a message 4. Initiator sends command 5. Target acknowledges command by a message 6. Target devices places (read) data on bus 7. Initiator acknowledges data by a message 8. Target sends status • Assumption: – Target holds the bus while it is reading – this acceptable only for simple devices and small read delays. • Exercise: Modify the above sequence for a write operation. 11
  • 12. BITS Pilani, Pilani Campus SCSI – State Transition – Bus Phase Sequence [2] • For a read operation: 1. When bus is free, initiator enters into arbitration (with other possible initiators) 2. On arbitration, initiator selects the bus and places target address on bus 3. Target acknowledges selection by a message 4. Initiator sends command 5. Target acknowledges command by a message 6. Target sends “Disconnect” message to initiator 7. Bus is released 8. When target is ready with (read) data, target reselects bus and places initiator address on bus 9. Initiator acknowledges selection by a message 10. Target sends data. 11. Initiator acknowledges data by a message 12. Target sends status • Question: Modify the above sequence for a write operation. 12
  • 13. BITS Pilani, Pilani Campus SCSI – State Transition – Bus Phase Sequence [3] • For a sequence of read-write operations: – Commands can be chained – i.e. a sequence of I/O operations initiated by a single initiator on the same target. – In this case, one arbitration step and one selection phase are enough. • For large data transfers: – Target could “disconnect” multiple times i.e. data transfer may be interrupted more than once. • If the target decides to disconnect, target sends a “save data pointer” message to the initiator before the “disconnect” message • A corresponding “restore data pointer” message is required after bus has been reselected (i.e. data transfer is about to resume). • SCSI controllers permit at most two sequences (i.e. connections/sessions) to be interleaved. 13
  • 14. BITS Pilani, Pilani Campus SCSI – Command Queuing • SCSI enables target devices to accept multiple requests before finishing any of them – Target devices must maintain queue outstanding requests – Also referred to as Tagged Command Queuing – In SATA this is referred to as Native Command Queuing • SCSI-3 permits queue lengths up to 64 – In practice, most SCSI controllers (based on traditional parallel SCSI) support a queue length of 256 • ATA/SATA permits queue lengths up to 32. 14
  • 15. BITS Pilani, Pilani Campus SCSI – Command Queuing • Command Queuing is useful – For initiator to offload I/O operations instead of sequencing them itself. – For amortizing seek and rotation times over multiple accesses thereby reducing the average access time: • Controller must have support for ordering the accesses so that seek time is minimized or rotation time is minimized or both. 15
  • 16. BITS Pilani, Pilani Campus Error Correction -In channel • SCSI supports read/write operations with error correction code (ECC) – ECC uses redundant bits for error correction – Most modern disks have “out-of-band” ECC per disk sector • This is used internally by the controller to verify whether any bit errors have occurred during storage. 16
  • 17. BITS Pilani, Pilani Campus Thank You! 17