Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Fibre Channel Protocol for SCSI, Fourth Version (FCP-4). Revision 00a. October 30, 2006..pdf
Скачиваний:
56
Добавлен:
02.05.2014
Размер:
874.59 Кб
Скачать

10/30/06

INCITS T10, Project 1828-D, Revision 00a

Annex B

(informative)

FCP examples

B.1 Examples of the use of FCP Information Units (IUs)

B.1.1 Overview of examples

This annex provides examples of the use of FCP IUs. The functions enclosed in square brackets summarize actions that are not specified by this standard, but are typically performed by SCSI initiators or targets. Sequence streaming may be performed between any two IUs that do not transfer Sequence Initiative.

B.1.2 SCSI FCP read operation

A typical SCSI FCP read operation with a single data IU is shown in table B.1.

Table B.1 - FCP read operation, example

 

 

 

 

 

 

 

 

Initiator FCP_Port function

 

IU

 

Target FCP_Port function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Command request

 

T1, FCP_CMND

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare data transfer]

 

 

 

 

 

 

 

 

 

 

I3, FCP_DATA

 

Data-In action

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare response message]

 

 

 

 

 

 

 

 

 

 

I4, FCP_RSP

 

Response

 

 

 

 

 

 

 

 

 

[Indicate command completion]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Working Draft, FCP-4

76

INCITS T10, Project 1828-D, Revision 00a

10/30/06

B.1.3 SCSI FCP write operation

A typical SCSI FCP write operation with three data IUs and using FCP_XFER_RDY is shown in table B.2.

Table B.2 - FCP write operation, example

 

 

 

 

 

 

 

 

Initiator FCP_Port function

 

IU

 

Target FCP_Port function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Command request

 

T1, FCP_CMND

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare Data-Out transfer

 

 

 

 

 

 

buffer]

 

 

 

 

 

 

 

 

 

 

I1, FCP_XFER_RDY

 

First data delivery request

 

 

 

 

 

 

 

 

 

First Data-Out Action

 

T6, FCP_DATA

 

 

 

 

 

 

 

 

 

 

 

I1, FCP_XFER_RDY

 

Second data delivery request

 

 

 

 

 

 

 

 

 

Second Data-Out Action

 

T6, FCP_DATA

 

 

 

 

 

 

 

 

 

 

 

I1, FCP_XFER_RDY

 

Last data delivery request

 

 

 

 

 

 

 

 

 

Last Data-Out Action

 

T6, FCP_DATA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare response message]

 

 

 

 

 

 

 

 

 

 

I4, FCP_RSP

 

Response

 

 

 

 

 

 

 

 

 

[Indicate command completion]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

B.1.4 SCSI FCP operation with no data transfer or with check condition

A typical SCSI FCP operation terminating without data transfer, either because of an error or because the SCSI command does not require any data transfer, is shown in table B.3.

Table B.3 - FCP operation without data transfer, example

 

 

 

 

 

 

 

 

Initiator FCP_Port function

 

IU

 

Target FCP_Port function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Command request

 

T1, FCP_CMND

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[perform command]

 

 

 

 

 

 

 

 

 

 

I4, FCP_RSP

 

Response

 

 

 

 

 

 

 

 

 

[Indicate command completion]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

77

Working Draft, FCP-4

10/30/06

INCITS T10, Project 1828-D, Revision 00a

B.1.5 SCSI FCP read operation with multiple FCP_DATA IUs

A typical SCSI read operation with multiple FCP_DATA IUs is shown in table B.4.

Table B.4 - FCP read operation, example

 

 

 

 

 

 

 

 

Initiator FCP_Port function

 

IU

 

Target FCP_Port function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Command request

 

T1, FCP_CMND

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare data transfer]

 

 

 

 

 

 

 

 

 

 

I3, FCP_DATA

 

Data-In action

 

 

 

 

 

 

 

 

 

 

I3, FCP_DATA

 

Data-In action

 

 

 

 

 

 

 

 

 

 

I3, FCP_DATA

 

Data-In action

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare response message]

 

 

 

 

 

 

 

 

 

 

I4, FCP_RSP

 

Response

 

 

 

 

 

 

 

 

 

[Indicate command completion]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

B.1.6 SCSI FCP write operation with FCP_XFR_RDY disabled

A typical SCSI write operation performed with FCP_XFER_RDY disabled is shown in table B.5. Only the first transfer is performed without a requesting FCP_XFER_RDY.

Table B.5 - FCP write operation with FCP_XFER_RDY disabled, example

 

 

 

 

 

 

 

 

Initiator FCP_Port function

 

IU

 

Target FCP_Port function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Command request

 

T2, FCP_CMND

 

 

 

 

 

 

 

 

 

 

Data-Out Action

 

T6, FCP_DATA

 

 

 

 

 

 

 

 

 

 

 

I1, FCP_XFER_RDY

 

Second data delivery request

 

 

 

 

 

 

 

 

 

Data-Out Action

 

T6, FCP_DATA

 

 

 

 

 

 

 

 

 

 

 

I1, FCP_XFER_RDY

 

Last data delivery request

 

 

 

 

 

 

 

 

 

Data-Out Action

 

T6, FCP_DATA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare response message]

 

 

 

 

 

 

 

 

 

 

I4, FCP_RSP

 

Response

 

 

 

 

 

 

 

 

 

[Indicate command completion]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Working Draft, FCP-4

78

INCITS T10, Project 1828-D, Revision 00a

10/30/06

B.1.7 SCSI FCP bidirectional command with write before read

A typical SCSI FCP bidirectional command with a single data IU transferred in each direction is shown in table B.6. The command in the example accepts write data before returning read data.

Table B.6 - FCP bidirectional command with write before read, example

 

 

 

 

 

 

 

 

Initiator FCP_Port function

 

IU

 

Target FCP_Port function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Command request

 

T1, FCP_CMND

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare Data-Out transfer

 

 

 

 

 

 

buffer]

 

 

 

 

 

 

 

 

 

 

I1, FCP_XFER_RDY

 

Data-Out delivery request

 

 

 

 

 

 

 

 

 

Data-Out action

 

T6, FCP_DATA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare Data-In transfer]

 

 

 

 

 

 

 

 

 

 

I3, FCP_DATA

 

Data-In action

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare response message]

 

 

 

 

 

 

 

 

 

 

I4, FCP_RSP

 

Response

 

 

 

 

 

 

 

 

 

[indicate command completion]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

B.1.8 SCSI FCP bidirectional command with read before write

A typical SCSI FCP bidirectional command with a single data IU transferred in each direction is shown in table B.7. The command in the example accepts write data before returning read data.

Table B.7 - FCP bidirectional command with read before write, example

 

 

 

 

 

 

 

 

Initiator FCP_Port function

 

IU

 

Target FCP_Port function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Command request

 

T1, FCP_CMND

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare Data-In transfer]

 

 

 

 

 

 

 

 

 

 

I3, FCP_DATA

 

Data-In action

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare Data-Out transfer

 

 

 

 

 

 

buffer]

 

 

 

 

 

 

 

 

 

 

I1, FCP_XFER_RDY

 

Data-Out delivery request

 

 

 

 

 

 

 

 

 

Data-Out action

 

T6, FCP_DATA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare response message]

 

 

 

 

 

 

 

 

 

 

I4, FCP_RSP

 

Response

 

 

 

 

 

 

 

 

 

[indicate command completion]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

79

Working Draft, FCP-4