summaryrefslogtreecommitdiff
path: root/doc/rfc/rfc5047.txt
blob: 32b97a35d2269b931716c415f0e91092bed32b05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
Network Working Group                                     M. Chadalapaka
Request for Comments: 5047                                            HP
Category: Informational                                       J. Hufferd
                                                            Brocade Inc.
                                                               J. Satran
                                                                     IBM
                                                                 H. Shah
                                                    Broadcom Corporation
                                                            October 2007


                    DA: Datamover Architecture for
         the Internet Small Computer System Interface (iSCSI)

Status of This Memo

   This memo provides information for the Internet community.  It does
   not specify an Internet standard of any kind.  Distribution of this
   memo is unlimited.

Abstract

   The Internet Small Computer System Interface (iSCSI) is a SCSI
   transport protocol that maps the SCSI family of application protocols
   onto TCP/IP.  Datamover Architecture for iSCSI (DA) defines an
   abstract model in which the movement of data between iSCSI end nodes
   is logically separated from the rest of the iSCSI protocol in order
   to allow iSCSI to adapt to innovations available in new IP
   transports.  While DA defines the architectural functions required of
   the class of Datamover protocols, it does not define any specific
   Datamover protocols.  Each such Datamover protocol, defined in a
   separate document, provides a reliable transport for all iSCSI PDUs,
   but actually moves the data required for certain iSCSI PDUs without
   involving the remote iSCSI layer itself.  This document begins with
   an introduction of a few new abstractions, defines a layered
   architecture for iSCSI and Datamover protocols, and then models the
   interactions within an iSCSI end node between the iSCSI layer and the
   Datamover layer that happen in order to transparently perform remote
   data movement within an IP fabric.  It is intended that this
   definition will help map iSCSI to generic Remote Direct Memory Access
   (RDMA)-capable IP fabrics in the future comprising TCP, the Stream
   Control Transmission Protocol (SCTP), and possibly other underlying
   network transport layers, such as InfiniBand.








Chadalapaka, et al.          Informational                      [Page 1]
^L
RFC 5047                           DA                       October 2007


Table of Contents

   1. Motivation ......................................................4
      1.1. Intent .....................................................4
      1.2. Interpretation of Requirements .............................5
   2. Definitions and Acronyms ........................................5
      2.1. Definitions ................................................5
      2.2. Acronyms ...................................................6
   3. Architectural Layering of iSCSI and Datamover Layers ............7
   4. Design Overview .................................................9
   5. Architectural Concepts .........................................10
      5.1. iSCSI PDU Types ...........................................10
           5.1.1. iSCSI Data-Type PDUs ...............................10
           5.1.2. iSCSI Control-Type PDUs ............................11
      5.2. Data_Descriptor ...........................................11
      5.3. Connection_Handle .........................................11
      5.4. Operational Primitive .....................................12
      5.5. Transport Connection ......................................13
   6. Datamover Layer and Datamover Protocol .........................13
   7. Functional Overview ............................................14
      7.1. Startup ...................................................14
      7.2. Full Feature Phase ........................................15
      7.3. Wrap-up ...................................................15
   8. Operational Primitives Provided by the Datamover Layer .........16
      8.1. Send_Control ..............................................16
      8.2. Put_Data ..................................................17
      8.3. Get_Data ..................................................17
      8.4. Allocate_Connection_Resources .............................18
      8.5. Deallocate_Connection_Resources ...........................19
      8.6. Enable_Datamover ..........................................19
      8.7. Connection_Terminate ......................................20
      8.8. Notice_Key_Values .........................................20
      8.9. Deallocate_Task_Resources .................................20
   9. Operational Primitives Provided by the iSCSI Layer .............21
      9.1. Control_Notify ............................................21
      9.2. Connection_Terminate_Notify ...............................22
      9.3. Data_Completion_Notify ....................................22
      9.4. Data_ACK_Notify ...........................................23
   10. Datamover Interface (DI) ......................................23
      10.1. Overview .................................................23
      10.2. Interactions for Handling Asynchronous Notifications .....24
           10.2.1. Connection Termination ............................24
           10.2.2. Data Transfer Completion ..........................24
           10.2.3. Data Acknowledgement ..............................25
      10.3. Interactions for Sending an iSCSI PDU ....................25
           10.3.1. SCSI Command ......................................26
           10.3.2. SCSI Response .....................................26
           10.3.3. Task Management Function Request ..................26



Chadalapaka, et al.          Informational                      [Page 2]
^L
RFC 5047                           DA                       October 2007


           10.3.4. Task Management Function Response .................27
           10.3.5. SCSI Data-Out and SCSI Data-In ....................27
           10.3.6. Ready To Transfer (R2T) ...........................28
           10.3.7. Asynchronous Message ..............................28
           10.3.8. Text Request ......................................28
           10.3.9. Text Response .....................................28
           10.3.10. Login Request ....................................29
           10.3.11. Login Response ...................................29
           10.3.12. Logout Command ...................................29
           10.3.13. Logout Response ..................................30
           10.3.14. SNACK Request ....................................30
           10.3.15. Reject ...........................................30
           10.3.16. NOP-Out ..........................................30
           10.3.17. NOP-In ...........................................30
      10.4. Interactions for Receiving an iSCSI PDU ..................31
           10.4.1. General Control-Type PDU Notification .............31
           10.4.2. SCSI Data Transfer PDUs ...........................31
           10.4.3. Login Request .....................................32
           10.4.4. Login Response ....................................32
   11. Security Considerations .......................................33
      11.1. Architectural Considerations .............................33
      11.2. Wire Protocol Considerations .............................33
   12. References ....................................................34
      12.1. Normative References .....................................34
      12.2. Informative References ...................................34
   Appendix A. Design Considerations and Examples ....................35
      A.1. Design Considerations for a Datamover Protocol ............35
      A.2. Examples of Datamover Interactions ........................35
   Acknowledgements ..................................................44

Table of Figures

   Figure 1. Datamover Architecture Diagram, with the RDMAP Example ...8
   Figure 2. A Successful iSCSI Login on Initiator ...................37
   Figure 3. A Successful iSCSI Login on Target ......................37
   Figure 4. A Failed iSCSI Login on Initiator .......................38
   Figure 5. A Failed iSCSI Login on Target ..........................38
   Figure 6. iSCSI Does Not Enable the Datamover .....................39
   Figure 7. A Normal iSCSI Connection Termination ...................40
   Figure 8. An Abnormal iSCSI Connection Termination ................40
   Figure 9. A SCSI Write Data Transfer ..............................41
   Figure 10. A SCSI Read Data Transfer ..............................42
   Figure 11. A SCSI Read Data Acknowledgement .......................43
   Figure 12. Task Resource Cleanup on Abort .........................44







Chadalapaka, et al.          Informational                      [Page 3]
^L
RFC 5047                           DA                       October 2007


1.  Motivation

1.1.  Intent

   There are relatively new standard protocols that enable Remote Direct
   Memory Access (RDMA) and Remote Direct Data Placement (RDDP)
   technologies to work over IP fabrics.  The principal value
   proposition of these technologies is that they enable one end node to
   place data in the final intended buffer on the remote end node, thus
   eliminating the need for a receive path data copy that moves the data
   to its final location.  The data copy avoidance in turn eliminates
   unnecessary memory bandwidth consumption, substantially decreases the
   reassembly buffer size requirements, and preserves CPU cycles that
   would otherwise be spent in copying.

   The iSCSI specification [RFC3720] defines a very detailed data
   transfer model that employs SCSI Data-In PDUs, SCSI Data-Out PDUs,
   and R2T PDUs, in addition to the SCSI Command and SCSI Response PDUs
   that respectively create and conclude the task context for the data
   transfer.  In the traditional iSCSI model, the iSCSI protocol layer
   plays the central role in pacing the data transfer and carrying out
   the ensuing data transfer itself.  An alternative architecture would
   be for iSCSI to delegate a large part of this data transfer role to a
   separate protocol layer exclusively designed to move data, which in
   turn is possibly aided by a data movement and placement technology
   such as RDMA.

   If iSCSI were operating in such RDMA environments, iSCSI would be
   shielded from the low-level data transfer mechanics but would only be
   privy to the conclusion of the requested data transfer.  Thus, there
   would be an effective "off-loading" of the work that an iSCSI
   protocol layer is expected to perform, compared to today's iSCSI end
   nodes.  For such RDMA environments, it is highly desirable that there
   be a standard architecture to separate the data movement part of the
   iSCSI protocol definition from the rest of the iSCSI functionality.
   This architecture precisely defines what a Datamover layer is and
   also describes the model of interactions between the iSCSI layer and
   the Datamover layer (Section 6).  In order to satisfy this need, this
   document presents a Datamover Architecture for iSCSI (DA) and
   summarizes a reasonable model for interactions between the iSCSI
   layer and the Datamover layer for each of the iSCSI PDUs that are
   defined in [RFC3720].  Note that while DA is motivated by the advent
   of RDMA over TCP/IP technology, the architecture is not dependent on
   RDMA in its design.  DA is intended to be a generic architectural
   framework for allowing different types of Datamovers based on
   different types of RDMA and transport protocols.  Adoption of this
   model will help iSCSI proliferate into more environments.




Chadalapaka, et al.          Informational                      [Page 4]
^L
RFC 5047                           DA                       October 2007


1.2.  Interpretation of Requirements

   This document introduces certain architectural abstractions and
   builds an abstract functional interface model between iSCSI and
   Datamover protocol layers based on those abstractions.  This
   architectural style is motivated by the following desires:

      a) Provide guidance to Datamover protocol designers with respect
         to the functional boundary between iSCSI and the Datamover
         protocols.  This guidance is critical since a significant part
         of the [RFC3720] protocol definition is left unchanged by DA
         architecture and the iSCSI notions from [RFC3720] (e.g., tasks,
         ITTs) are leveraged by the Datamover protocol.

      b) Aid existing iSCSI implementations to rapidly adapt to DA
         architecture, largely by leveraging the architectural
         abstractions into implementation constructs -- e.g., functions,
         APIs, modules.

   However, note that DA architecture does not intend to impose any
   implementation specifics per se.  When a DA architectural concept
   (e.g., Operational Primitive) is described as mandatory ("MUST") or
   recommended ("SHOULD") of a layer (iSCSI or Datamover) in this
   document, the intent is that an implementation respectively MUST or
   SHOULD produce the same protocol action as what the model describes.
   Specifically, no implementation compliance in terms of names, modules
   or API arguments etc. is implied by this Architecture by such use of
   [RFC2119] terms, only a functional compliance is sought.

2.  Definitions and Acronyms

2.1.  Definitions

   I/O Buffer - A buffer that is used in a SCSI Read or Write operation
      so that SCSI data may be sent from or received by the buffer.

   Datamover protocol  - A Datamover protocol is a data transfer wire
      protocol for iSCSI that meets the requirements stated in Section
      6.

   Datamover layer - A Datamover layer is a protocol layer within an end
      node that implements the Datamover protocol.

   Datamover-assisted - An iSCSI connection is said to be "Datamover-
      assisted" when a Datamover layer is enabled for moving control and
      data information on that iSCSI connection.





Chadalapaka, et al.          Informational                      [Page 5]
^L
RFC 5047                           DA                       October 2007


   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
   document are to be interpreted as described in [RFC2119].

2.2.  Acronyms

   Acronym        Definition
   -------------------------------------------------------------

   DA             Datamover Architecture for iSCSI

   DDP            Direct Data Placement Protocol

   DI             Datamover Interface

   IANA           Internet Assigned Numbers Authority

   IETF           Internet Engineering Task Force

   I/O            Input - Output

   IP             Internet Protocol

   iSCSI          Internet SCSI

   iSER           iSCSI Extensions for RDMA

   ITT            Initiator Task Tag

   LO             Leading Only

   MPA            Marker PDU Aligned Framing for TCP

   PDU            Protocol Data Unit

   RDDP           Remote Direct Data Placement

   RDMA           Remote Direct Memory Access

   R2T            Ready To Transfer

   R2TSN          Ready To Transfer Sequence Number

   RDMA           Remote Direct Memory Access

   RDMAP          Remote Direct Memory Access Protocol

   RFC            Request For Comments



Chadalapaka, et al.          Informational                      [Page 6]
^L
RFC 5047                           DA                       October 2007


   SAM            SCSI Architecture Model

   SCSI           Small Computer Systems Interface

   SN             Sequence Number

   SNACK          Selective Negative Acknowledgment - also
                  Sequence Number Acknowledgement for Data

   TCP            Transmission Control Protocol

   TTT            Target Transfer Tag

3.  Architectural Layering of iSCSI and Datamover Layers

   Figure 1 illustrates an example of the architectural layering of
   iSCSI and Datamover layers, in conjunction with a TCP/IP
   implementation of RDMAP/DDP ([DDP]) layers in an iSCSI end node.
   Note that RDMAP/DDP/MPA and TCP protocol layers are shown here only
   as an example, and in reality, DA is completely oblivious to protocol
   layers below the Datamover layer.  The RDMAP/DDP/MPA protocol stack
   provides a generic transport service with direct data placement.
   There is no need to tailor the implementation of this protocol stack
   to the specific ULP to benefit from these services.



























Chadalapaka, et al.          Informational                      [Page 7]
^L
RFC 5047                           DA                       October 2007


          Initiator stack                            Target stack

      +----------------+     SCSI application   +----------------+
      | SCSI Layer     |     protocols          | SCSI Layer     |
      +----------------+                        +----------------+
             ^                                          ^
             |                                          |
             v                                          v
      +----------------+     iSCSI protocol     +----------------+
      | iSCSI Layer    |    (excluding data     | iSCSI Layer    |
      +----------------+       movement)        +----------------+
             ^                                          ^
      --  ---+--  ---- DI (Datamover Interface)---  ----+---  ----
             v                                          v
      +----------------+      a Datamover       +----------------+
      | Datamover Layer|       protocol         | Datamover Layer|
      +----------------+                        +----------------+
             ^                                          ^
     +-------+----------+                     +---------+-----------+
     |       v          |                     |         v           |
     |+---------------+ |                     | +-----------------+ |
     || RDMAP/DDP/MPA | |    RDMAP/DDP/MPA    | | RDMAP/DDP/MPA   | |
     || Layers        | |    protocols        | | Layers          | |
     |+---------------+ |                     | +-----------------+ |
     |       ^          |                     |         ^           |
     |       | network  |                     |         | network   |
     |       | transport|                     |         | transport |
     |       v          |                     |         v           |
     |+---------------+ |                     | +----------------+  |
     || TCP Layer     | |    TCP protocol     | | TCP Layer      |  |
     |+---------------+ |                     | +----------------+  |
     |       ^          |                     |         ^           |
     +-------+----------+                     +---------+-----------+
             +------------------------------------------+

              Figure 1.  Datamover Architecture Diagram,
                        with the RDMAP Example

   The scope of this document is limited to:

      1. Defining the notion of a Datamover layer and a Datamover
         protocol (Section 6).

      2. Defining the functionality distribution between the iSCSI layer
         and the Datamover layer, along with the communication model
         between the two (Operational Primitives).





Chadalapaka, et al.          Informational                      [Page 8]
^L
RFC 5047                           DA                       October 2007


      3. Modeling the interactions between the blocks labeled as "iSCSI
         Layer" and "Datamover Layer" in Figure 1 -- i.e., defining the
         interface labeled "DI" in the figure -- for each defined iSCSI
         PDU, based on the Operational Primitives.

4.  Design Overview

   This document discusses and defines a model for interactions between
   the iSCSI layer and a "Datamover layer" (see Section 6) operating
   within an iSCSI end node, presumably communicating with one or more
   iSCSI end nodes with similar layering.  The model for interactions
   for handling different iSCSI operations is called the "Datamover
   Interface" (DI, Section 10), while the architecture itself is called
   the "Datamover Architecture for iSCSI" (DA).  It is likely that the
   architecture will have implications on the Datamover wire protocols
   as DA places certain requirements and functionality expectations on
   the Datamover layer.  However, this document itself neither defines
   any new wire protocol for the Datamover layer, nor any potential
   modifications to the iSCSI wire protocol to employ the Datamover
   layer.  The scope of this document is strictly limited to specifying
   the architectural framework and the minimally required interactions
   that happen within an iSCSI end node to leverage the Datamover layer.

   The design ideas behind DA can be summarized as follows:

      1) DA defines an abstract functional interface model of the iSCSI
         layer's interactions with a Datamover layer below -- i.e., DA
         models the interactions between the logical "bottom" interface
         of iSCSI and the logical "top" interface of a Datamover.

      2) DA guides the wire protocol for a Datamover layer by defining
         the iSCSI knowledge that the Datamover layer may utilize in its
         protocol definition (as an example, this document completely
         limits the notion of "iSCSI session" to the iSCSI layer).

      3) DA is designed to allow implementation of the Datamover layer
         either in hardware or in software.

      4) DA is not a wire protocol spec, but an architecture that also
         models the interactions between iSCSI and Datamover layers
         operating within an iSCSI end node.

      5) DA by design seeks to model the iSCSI-Datamover interactions in
         a way that the modeling is independent of the specifics of
         either a particular iSCSI revision or an instantiation of a
         Datamover layer.





Chadalapaka, et al.          Informational                      [Page 9]
^L
RFC 5047                           DA                       October 2007


      6) DA introduces and relies on the notion of a defined set of
         Operational Primitives (could be seen as entry point
         definitions in implementation terms) provided by each layer to
         the other to carry out the request-response interactions.

      7) DA is intended to allow Datamover protocol definitions with
         minimal changes to existing iSCSI implementations.

      8) DA is designed to allow the iSCSI layer to completely rely on
         the Datamover layer for all data transport needs.

      9) DA models the architecturally required minimal interactions
         between an operational iSCSI layer and a Datamover layer to
         realize the iSCSI-transparent data movement.  There may be
         several other interactions in a typical implementation in order
         to bootstrap a Datamover layer (or an iSCSI layer) into
         operation, but they are outside the scope of this document.

   Note that in summary, DA is architected to support many different
   Datamover protocols operating under the iSCSI layer.  One such
   example of a Datamover protocol is iSER [iSER].

5.  Architectural Concepts

5.1.  iSCSI PDU Types

   This section defines the iSCSI PDU classification terminology, as
   defined and used in this document.  Out of the set of legal iSCSI
   PDUs defined in [RFC3720], as we will see in Section 5.1.1, the iSCSI
   layer does not request a SCSI Data-Out PDU carrying solicited data
   for transmission across the Datamover Interface per this
   architecture.  For this reason, the SCSI Data-Out PDU carrying
   solicited data is excluded in the iSCSI PDU classification we
   introduce in this section (for SCSI Data-Out PDUs for unsolicited
   Data, see Section 5.1.2).  The rest of the legal iSCSI PDUs that may
   be exchanged across the Datamover Interface are defined to consist of
   two classes:

      1) iSCSI data-type PDUs

      2) iSCSI control-type PDUs

5.1.1.  iSCSI Data-Type PDUs

   An iSCSI data-type PDU is defined as an iSCSI PDU that causes data
   transfer, transparent to the remote iSCSI layer, to take place
   between the peer iSCSI nodes on a Full Feature Phase iSCSI
   connection.  A data-type PDU, when requested for transmission by the



Chadalapaka, et al.          Informational                     [Page 10]
^L
RFC 5047                           DA                       October 2007


   sender iSCSI layer, results in the associated data transfer without
   the participation of the remote iSCSI layer, i.e., the PDU itself is
   not delivered as-is to the remote iSCSI layer.  The following iSCSI
   PDUs constitute the set of iSCSI data-type PDUs:

      1) SCSI Data-In PDU

      2) R2T PDU

   In an iSCSI end node structured as an iSCSI layer and a Datamover
   layer as defined in this document, the solicitation for Data-Out
   (i.e., R2T PDU) is not delivered to the initiator iSCSI layer, per
   the definition of an iSCSI data-type PDU.  The data transfer is
   instead performed via the mechanisms known to the Datamover layer
   (e.g., RDMA Read).  This in turn implies that a SCSI Data-Out PDU for
   solicited data is never requested for transmission across the
   Datamover Interface at the initiator.

5.1.2.  iSCSI Control-Type PDUs

   Any iSCSI PDU that is not an iSCSI data-type PDU and also not a
   solicited SCSI Data-Out PDU is defined as an iSCSI control-type PDU.
   Specifically, note that SCSI Data-Out PDUs for unsolicited Data are
   defined as iSCSI control-type PDUs.

5.2.  Data_Descriptor

   A Data_Descriptor is an information element that describes an
   iSCSI/SCSI data buffer, provided by the iSCSI layer to its local
   Datamover layer or provided by the Datamover layer to its local iSCSI
   layer for identifying the data associated respectively with the
   requested or completed operation.

   In implementation terms, a Data_Descriptor may be a scatter-gather
   list describing a local buffer, the exact structure of which is
   subject to the constraints imposed by the operating environment on
   the local iSCSI node.

5.3.  Connection_Handle

   A Connection_Handle is an information element that identifies the
   particular iSCSI connection for which an inbound or outbound iSCSI
   PDU is intended.  A connection handle is unique for a given pair of
   an iSCSI layer instance and a Datamover layer instance.  The
   Connection_Handle qualifier is used in all invocations of any
   Operational Primitive for connection identification.





Chadalapaka, et al.          Informational                     [Page 11]
^L
RFC 5047                           DA                       October 2007


   Note that the Connection_Handle is conceptually different from the
   Connection Identifier (CID) defined by the iSCSI specification.
   While the CID is a unique identifier of an iSCSI connection within an
   iSCSI session, the uniqueness of the Connection_Handle extends to the
   entire iSCSI layer instance coupled with the Datamover layer
   instance, across possibly multiple iSCSI sessions.

   In implementation terms, a Connection_Handle could be an opaque
   identifier exchanged between the iSCSI layer and the Datamover layer
   at the connection login time.  One may also consider it to be similar
   in scope of uniqueness to a socket identifier.  The exact structure
   and modalities of exchange of a Connection_Handle between the two
   layers is implementation-specific.

5.4.  Operational Primitive

   An Operational Primitive, in this document, is an abstract functional
   interface procedure that requests another layer perform a specific
   action on the requestor's behalf or notifies the other layer of some
   event.  The Datamover Interface between an iSCSI layer instance and a
   Datamover layer instance within an iSCSI end node uses a set of
   Operational Primitives to define the functional interface between the
   two layers.  Note that not every invocation of an Operational
   Primitive may elicit a response from the requested layer.  This
   document describes the types of Operational Primitives that are
   implicitly required and provided by the iSCSI protocol layer as
   defined in [RFC3720], and the semantics of these Primitives.

   Note that ownership of buffers and data structures is likely to be
   exchanged between the iSCSI layer and its local Datamover layer in
   invoking the Operational Primitives defined in this architecture.
   The buffer management details, including how buffers are allocated
   and released, are implementation-specific and thus are outside the
   scope of this document.

   Each Operational Primitive invocation needs a certain "information
   context" (e.g., Connection_Handle) for performing the specific action
   being requested.  The required information context is described in
   this document by a listing of "qualifiers" on each invocation, in the
   style of function call arguments.  There is no specific
   implementation implied in this notation.  The "qualifiers" of any
   Operational Primitive invocation specified in this document thus
   represent the mandatory information context that the Operational
   Primitive invocation MUST consider in performing the action.  While
   the qualifiers are required, the method of realizing the qualifiers
   (passed synchronously with invocation, or retrieved from task
   context, or retrieved from shared memory etc.) is really up to the
   implementations.



Chadalapaka, et al.          Informational                     [Page 12]
^L
RFC 5047                           DA                       October 2007


   When an Operational Primitive implementation is described as
   mandatory ("MUST") or recommended ("SHOULD") of a layer (iSCSI or
   Datamover) in this document, the intent is that an implementation
   respectively MUST or SHOULD produce the same protocol action as what
   the model describes.

5.5.  Transport Connection

   The term "Transport Connection" is used in this document as a generic
   term to represent the end-to-end logical connection as defined by the
   underlying reliable transport protocol.  For this document, all
   instances of Transport Connection refer to a TCP connection.

6.  Datamover Layer and Datamover Protocol

   This section introduces the notion of a "Datamover layer" and
   "Datamover protocol" as meant in this document, and defines the
   requirements on a Datamover protocol.

   A Datamover layer is the implementation component that realizes a
   Datamover protocol functionality in an iSCSI-capable end node in
   communicating with other iSCSI end nodes with similar capabilities.
   More specifically, a "Datamover layer" MUST provide the following
   functionality and the "Datamover protocol" MUST consist of the wire
   protocol required to realize the following functionality:

      1) guarantee that all the necessary data transfers take place when
         the local iSCSI layer requests transmitting a command (in order
         to complete a SCSI command, for an initiator), or
         sending/receiving an iSCSI data sequence (in order to complete
         part of a SCSI command for a target).

      2) transport an iSCSI control-type PDU as-is to the peer Datamover
         layer when requested to do so by the local iSCSI layer.

      3) provide notification and delivery to the iSCSI layer upon
         arrival of an iSCSI control-type PDU.

      4) provide an initiator-to-target data acknowledgement of SCSI
         read data back to the target iSCSI layer, when requested.

      5) provide an asynchronous notification upon completion of a
         requested data transfer operation that moved data without
         involving the iSCSI layer.

      6) place the SCSI data into the I/O buffers or pick up the SCSI
         data for transmission out of the data buffers that the iSCSI
         layer had requested to be used for a SCSI I/O.



Chadalapaka, et al.          Informational                     [Page 13]
^L
RFC 5047                           DA                       October 2007


      7) provide an error-free (i.e., must have at least the same level
         of assurance of data integrity as the CRC32C iSCSI data
         digest), reliable, in-order delivery transport mechanism over
         IP networks in performing the data transfer, and asynchronously
         notify the iSCSI layer upon iSCSI connection termination.

   Note that this architecture expects that each compliant Datamover
   protocol will define the precise means of satisfying the requirements
   specified in this section.

   In order to meet the functional requirements listed in this section,
   certain Datamover protocols may require pre-posted buffers from the
   local iSCSI protocol layer via mechanisms outside the scope of this
   document.  In some implementations, the absence of such buffers may
   result in a connection failure.  Datamover protocols may also realize
   these functional requirements via methods not explicitly listed in
   this document.

7.  Functional Overview

   This section presents an overview of the functional interactions
   between the iSCSI layer and the Datamover layer as intended by this
   Architecture.

7.1.  Startup

   The iSCSI Login Phase on an iSCSI connection occurs as defined in
   [RFC3720].  The Architecture assumes that at the end of the Login
   Phase, both the initiator and target, if they had so decided,
   transition the connection to being Datamover-assisted.  The precise
   means of how an iSCSI initiator and an iSCSI target agree on having
   the connection Datamover-assisted is defined by the Datamover
   protocol.  The only architectural requirement is that all iSCSI
   interactions in the iSCSI Full Feature Phase MUST be Datamover-
   assisted subject to the prior agreement, meaning that the Datamover
   protocol is in the iSCSI-to-iSCSI communication path below the iSCSI
   layer on either side as shown in Figure 1.  DA defines the
   Enable_Datamover Operational Primitive (Section 8.6) to bring about
   this transition to a Datamover-assisted connection.

   The Architecture also assumes that the Datamover layer may require a
   certain number of opaque local resources for making a connection
   Datamover-assisted.  DA thus defines the
   Allocate_Connection_Resources Operational Primitive (Section 8.4) to
   model this interaction.  This Primitive is intended to be invoked on
   each side once the two sides decide (as previously noted) to have the
   connection be Datamover-assisted.  The expected sequence of Primitive
   invocations is depicted in Figures 2 and 3 in Section 13.2.  Figures



Chadalapaka, et al.          Informational                     [Page 14]
^L
RFC 5047                           DA                       October 2007


   4, 5, and 6 illustrate how the Primitives may be employed to deal
   with various legal login outcomes.

7.2.  Full Feature Phase

   All iSCSI peer communication in the Full Feature Phase happens
   through the Datamover layers if the iSCSI connection is Datamover-
   assisted.  The Architecture assumes that a Datamover layer may
   require a certain number of opaque local resources for each new iSCSI
   task.  In the normal course of execution, these task-level resources
   in the Datamover layer are assumed to be transparently allocated on
   each task initiation and deallocated on the conclusion of each task
   as appropriate.  In exception scenarios however -- scenarios that do
   not yield a SCSI Response for each task such as ABORT TASK operation
   -- the Architecture assumes that the Datamover layer needs to be
   notified of the individual task terminations to aid its task-level
   resource management.  DA thus defines the Deallocate_Task_Resources
   Operational Primitive (Section 8.9) to model this task-resource
   management.  In specifying the ITT qualifier for the
   Deallocate_Task_Resources Primitive, the Architecture further assumes
   that the Datamover layer tracks its opaque task-level local resources
   by the iSCSI ITT.  DA also defines Send_Control (Section 8.1),
   Put_Data (Section 8.2), Get_Data (Section 8.3),
   Data_Completion_Notify (Section 9.3), Data_ACK_Notify (Section 9.4),
   and Control_Notify (Section 9.1) Operational Primitives to model the
   various Full Feature Phase interactions.

   Figures 9, 10, and 11 in Section 13.2 show some Full Feature Phase
   interactions -- SCSI Write task, SCSI Read task, and a SCSI Read Data
   acknowledgement, respectively.  Figure 12 in Section 13.2 illustrates
   how an ABORT TASK operation can be modeled leading to deterministic
   resource cleanup on the Datamover layer.

7.3.  Wrap-up

   Once an iSCSI connection becomes Datamover-assisted, the connection
   continues in that state until the end of the Full Feature Phase,
   i.e., the termination of the connection.  The Architecture assumes
   that when a connection is normally logged out, the Datamover layer
   needs to be notified so that its connection-level opaque resources
   (see Section 7.1) may be freed up.  DA thus defines a
   Connection_Terminate Operational Primitive (Section 8.7) to model
   this interaction.  The Architecture further assumes that when a
   connection termination happens without iSCSI layer's involvement
   (e.g., TCP RST), the Datamover layer is capable of locally cleaning
   up its task-level and connection-level resources before notifying the
   iSCSI layer of the fact.  DA thus defines the




Chadalapaka, et al.          Informational                     [Page 15]
^L
RFC 5047                           DA                       October 2007


   Connection_Terminate_Notify Operational Primitive (Section 9.2) to
   model this interaction.

   Figures 7 and 8 in Section 13.2 illustrate the interactions between
   the iSCSI and Datamover layers in normal and unexpected connection
   termination scenarios.

8.  Operational Primitives Provided by the Datamover Layer

   While the iSCSI specification itself does not have a notion of
   Operational Primitives, any iSCSI layer implementing the iSCSI
   specification functionally requires the following Operational
   Primitives from its Datamover layer.  Thus, any Datamover protocol
   compliant with this architecture MUST implement the Operational
   Primitives described in this section.  These Operational Primitives
   are invoked by the iSCSI layer as appropriate.  Unless otherwise
   stated, all the following Operational Primitives may be used both on
   the initiator side and the target side.  In general programming
   terminology, this set of Operational Primitives may be construed as
   "down calls".

      1) Send_Control

      2) Put_Data

      3) Get_Data

      4) Allocate_Connection_Resources

      5) Deallocate_Connection_Resources

      6) Enable_Datamover

      7) Connection_Terminate

      8) Notice_Key_Values

      9) Deallocate_Task_Resources

8.1.  Send_Control

   Input qualifiers: Connection_Handle, iSCSI PDU-specific qualifiers

   Return Results: Not specified.

   An iSCSI layer requests that its local Datamover layer transmit an
   iSCSI control-type PDU to the peer iSCSI layer operating in the
   remote iSCSI node by this Operational Primitive.  The Datamover layer



Chadalapaka, et al.          Informational                     [Page 16]
^L
RFC 5047                           DA                       October 2007


   performs the requested operation, and may add its own protocol
   headers in doing so.  The iSCSI layer MUST NOT invoke the
   Send_Control Operational Primitive on an iSCSI connection that is not
   yet Datamover-assisted.

   An initiator iSCSI layer requesting the transfer of a SCSI Command
   PDU or a target iSCSI layer requesting the transfer of a SCSI
   response PDU are examples of invoking the Send_Control Operational
   Primitive.  As Section 10.3.1 illustrates later on, the iSCSI PDU-
   specific qualifiers in this example are: BHS and AHS,
   DataDescriptorOut, DataDescriptorIn, ImmediateDataSize, and
   UnsolicitedDataSize.

8.2.  Put_Data

   Input qualifiers: Connection_Handle, contents of a SCSI Data-In PDU
   header, Data_Descriptor, Notify_Enable

   Return Results: Not specified.

   An iSCSI layer requests that its local Datamover layer transmit the
   data identified by the Data_Descriptor for the SCSI Data-In PDU to
   the peer iSCSI layer on the remote iSCSI node by this Operational
   Primitive.  The Datamover layer performs the operation by using its
   own protocol means, completely transparent to the remote iSCSI layer.
   The iSCSI layer MUST NOT invoke the Put_Data Operational Primitive on
   an iSCSI connection that is not yet Datamover-assisted.

   The Notify_Enable qualifier is used to request the local Datamover
   layer to generate or not generate the eventual local completion
   notification to the iSCSI layer for this Put_Data invocation.  For
   detailed semantics of this qualifier, see Section 9.3.

   A Put_Data Primitive may only be invoked by an iSCSI layer on the
   target to its local Datamover layer.

   A target iSCSI layer requesting the transfer of an iSCSI read data
   sequence (also known as a read burst) is an example of invoking the
   Put_Data Operational Primitive.

8.3.  Get_Data

   Input qualifiers: Connection_Handle, contents of an R2T PDU,
   Data_Descriptor, Notify_Enable

   Return Results: Not specified.





Chadalapaka, et al.          Informational                     [Page 17]
^L
RFC 5047                           DA                       October 2007


   An iSCSI layer requests that its local Datamover layer retrieve
   certain data identified by the R2T PDU from the peer iSCSI layer on
   the remote iSCSI node and place it into the buffer identified by the
   Data_Descriptor by invoking this Operational Primitive.  The
   Datamover layer performs the operation by using its own protocol
   means, completely transparent to the remote iSCSI layer.  The iSCSI
   layer MUST NOT invoke the Get_Data Operational Primitive on an iSCSI
   connection that is not yet Datamover-assisted.

   The Notify_Enable qualifier is used to request that the local
   Datamover layer generate or not generate the eventual local
   completion notification to the iSCSI layer for this Get_Data
   invocation.  For detailed semantics of this qualifier, see Section
   9.3.

   A Get_Data Primitive may only be invoked by an iSCSI layer on the
   target to its local Datamover layer.

   A target iSCSI layer requesting the transfer of an iSCSI write data
   sequence (also known as a write burst) is an example of invoking the
   Get_Data Operational Primitive.

8.4.  Allocate_Connection_Resources

   Input qualifiers: Connection_Handle[, Resource_Descriptor ]

   Return Results: Status.

   By invoking this Operational Primitive, an iSCSI layer requests that
   its local Datamover layer perform all the Datamover-specific resource
   allocations required for the Full Feature Phase of an iSCSI
   connection.  The Connection_Handle identifies the connection for
   which the iSCSI layer is requesting resources to be allocated.
   Allocation of these resources is a step towards eventually
   transitioning the connection to become a Datamover-assisted iSCSI
   connection.  Note that the Datamover layer however does not allocate
   any Datamover-specific task-level resources upon invocation of this
   Primitive.

   An iSCSI layer, in addition, optionally specifies the
   implementation-specific resource requirements for the iSCSI
   connection to the Datamover layer by passing an input qualifier
   called Resource_Descriptor.  The exact structure of a
   Resource_Descriptor is implementation-dependent, and hence
   structurally opaque to DA.

   A return result of Status=success means that the
   Allocate_Connection_Resources invocation corresponding to that



Chadalapaka, et al.          Informational                     [Page 18]
^L
RFC 5047                           DA                       October 2007


   Connection_Handle succeeded.  If an Allocate_Connection_Resources
   invocation is made for a Connection_Handle for which an earlier
   invocation succeeded, the return Status must be success and the
   request will be ignored by the Datamover layer.  A return result of
   Status=failure means that the Allocate_Connection_Resources
   invocation corresponding to that Connection_Handle failed.  There
   MUST NOT be more than one Allocate_Connection_Resources Primitive
   invocation outstanding for a given Connection_Handle at any time.

   The iSCSI layer must invoke the Allocate_Connection_Resources
   Primitive before the invocation of the Enable_Datamover Primitive.

8.5.  Deallocate_Connection_Resources

   Input qualifiers: Connection_Handle

   Return Results: Not specified.

   By invoking this Operational Primitive, an iSCSI layer requests that
   its local Datamover layer deallocate all the Datamover-specific
   resources that may have been allocated earlier for the Transport
   Connection identified by the Connection_Handle.  The iSCSI layer may
   invoke this Operational Primitive when the Datamover-specific
   resources associated with the Connection_Handle are no longer
   necessary (such as the Login failure of the corresponding iSCSI
   connection).

8.6.  Enable_Datamover

   Input qualifiers: Connection_Handle, Transport_Connection_Descriptor
   [, Final_Login_Response_PDU]

   Return Results: Not specified.

   By invoking this Operational Primitive, an iSCSI layer requests that
   its local Datamover layer assist all further iSCSI exchanges on the
   iSCSI connection (i.e., to make the connection Datamover-assisted)
   identified by the Connection_Handle, for which the Datamover-specific
   resource allocation was earlier made.  The iSCSI layer MUST NOT
   invoke the Enable_Datamover Operational Primitive for an iSCSI
   connection unless there is a corresponding prior resource allocation.

   The Final_Login_Response_PDU input qualifier is applicable only for a
   target, and contains the final Login Response that concludes the
   iSCSI Login Phase and which must be sent as a byte stream as expected
   by the initiator iSCSI layer.  When this qualifier is used, the
   target-Datamover layer MUST transmit this final Login Response before
   Datamover assistance is enabled for the Transport Connection.



Chadalapaka, et al.          Informational                     [Page 19]
^L
RFC 5047                           DA                       October 2007


   The iSCSI layer identifies the specific Transport Connection
   associated with the Connection_Handle to the Datamover layer by
   specifying the Transport_Connection_Descriptor.  The exact structure
   of this Descriptor is implementation-dependent.

8.7.  Connection_Terminate

   Input qualifiers: Connection_Handle

   Return Results: Not specified.

   By invoking this Operational Primitive, an iSCSI layer requests that
   its local Datamover layer terminate the Transport Connection and
   deallocate all the connection and task resources associated with the
   Connection_Handle.  When this Operational Primitive invocation
   returns to the iSCSI layer, the iSCSI layer may assume the full
   ownership of all the iSCSI-level resources, e.g., I/O Buffers,
   associated with the connection.  This Operational Primitive may be
   invoked only with a valid Connection_Handle, and the Transport
   Connection associated with the Connection_Handle must already be
   Datamover-assisted.

8.8.  Notice_Key_Values

   Input qualifiers: Connection_Handle, Number of keys, a list of Key-
   Value pairs.

   Return Results: Not specified.

   By invoking this Operational Primitive, an iSCSI layer requests that
   its local Datamover layer take note of the negotiated values of the
   listed keys for the Transport Connection.  This Operational Primitive
   may be invoked only with a valid Connection_Handle, and the Key-Value
   pairs MUST be the current values that were successfully agreed upon
   by the iSCSI peers for the connection.  The Datamover layer may use
   the values of the keys to aid the Datamover operation as it deems
   appropriate.  The specific keys to be passed as input qualifiers and
   the point(s) in time this Operational Primitive is invoked are
   implementation-dependent.

8.9.  Deallocate_Task_Resources

   Input qualifiers: Connection_Handle, ITT

   Return Results: Not specified.

   By invoking this Operational Primitive, an iSCSI layer requests that
   its local Datamover layer deallocate all Datamover-specific resources



Chadalapaka, et al.          Informational                     [Page 20]
^L
RFC 5047                           DA                       October 2007


   that earlier may have been allocated for the task identified by the
   ITT qualifier.  The iSCSI layer uses this Operational Primitive
   during exception processing when one or more active tasks are to be
   terminated without corresponding SCSI Response PDUs.  This Primitive
   MUST be invoked for each active task terminated without a SCSI
   Response PDU.  This Primitive MUST NOT be invoked by the iSCSI layer
   when a SCSI Response PDU normally concludes a task.  When a SCSI
   Response PDU normally concludes a task (even if the SCSI Status was
   not a success), the Datamover layer is assumed to have automatically
   deallocated all Datamover-specific task resources for that task.
   Refer to Section 7.2 for a related discussion on the Architectural
   assumptions on the task-level Datamover resource management,
   especially with respect to when the resources are assumed to be
   allocated.

9.  Operational Primitives Provided by the iSCSI Layer

   While the iSCSI specification itself does not have a notion of
   Operational Primitives, any iSCSI layer implementing the iSCSI
   specification would have to provide the following Operational
   Primitives to its local Datamover layer.  Thus, any iSCSI protocol
   implementation compliant with this architecture MUST implement the
   Operational Primitives described in this section.  These Operational
   Primitives are invoked by the Datamover layer as appropriate and when
   the iSCSI connection is Datamover-assisted.  Unless otherwise stated,
   all the following Operational Primitives may be used both on the
   initiator side and the target side.  In general programming
   terminology, this set of Operational Primitives may be construed as
   "up calls".

      1) Control_Notify

      2) Connection_Terminate_Notify

      3) Data_Completion_Notify

      4) Data_ACK_Notify

9.1.  Control_Notify

   Input qualifiers: Connection_Handle, an iSCSI control-type PDU.

   Return Results: Not specified.

   A Datamover layer notifies its local iSCSI layer, via this
   Operational Primitive, of the arrival of an iSCSI control-type PDU
   from the peer Datamover layer on the remote iSCSI node.  The iSCSI
   layer processes the control-type PDU as defined in [RFC3720].



Chadalapaka, et al.          Informational                     [Page 21]
^L
RFC 5047                           DA                       October 2007


   A target iSCSI layer being notified of the arrival of a SCSI command
   is an example of invoking the Control_Notify Operational Primitive.

   Note that implementations may choose to describe the "iSCSI control-
   type PDU" qualifier in this notification using a Data_Descriptor
   (Section 5.2) and not necessarily one contiguous buffer.

9.2.  Connection_Terminate_Notify

   Input qualifiers: Connection_Handle

   Return Results: Not specified.

   A Datamover layer notifies its local iSCSI layer on an unsolicited
   termination or failure of an iSCSI connection providing the
   Connection_Handle associated with the iSCSI Connection.  The iSCSI
   layer MUST consider the Connection_Handle to be invalid upon being so
   notified.  The iSCSI layer processes the connection termination as
   defined in [RFC3720].  The Datamover layer MUST deallocate the
   connection and task resources associated with the terminated
   connection before notifying the iSCSI layer of the termination via
   this Operational Primitive.

   A target iSCSI layer is notified of an ungraceful connection
   termination by the Datamover layer when the underlying Transport
   Connection is torn down.  Such a Connection_Terminate_Notify
   Operational Primitive may be triggered, for example, by a TCP RESET
   in cases where the underlying Transport Connection uses TCP.

9.3.  Data_Completion_Notify

   Input qualifiers: Connection_Handle, ITT, SN

   Return Results: Not specified.

   A Datamover layer notifies its local iSCSI layer on completing the
   retrieval of the data or upon sending the data, as requested in a
   prior iSCSI data-type PDU, from/to the peer Datamover layer on the
   remote iSCSI node via this Operational Primitive.  The iSCSI layer
   processes the operation as defined in [RFC3720].

   SN may be either the DataSN associated with the SCSI Data-In PDU or
   R2TSN associated with the R2T PDU depending on the SCSI operation.
   Note that, for targets, a TTT (see [RFC3720]) could have been
   specified instead of an SN.  However, the considered choice was to
   leave the SN to be the qualifier for two reasons -- a) it is generic
   and applicable to initiators and targets as well as Data-In and
   Data-Out, and b) having both SN and TTT qualifiers for the



Chadalapaka, et al.          Informational                     [Page 22]
^L
RFC 5047                           DA                       October 2007


   notification is considered onerous on the Datamover layer, in terms
   of state maintenance for each completion notification.  The
   implication of this choice is that iSCSI target implementations will
   have to adapt to using the ITT-SN tuple in associating the solicited
   data to the appropriate task, rather than the ITT-TTT tuple for doing
   the same.

   If Notify_Enable is set in either a Put_Data or a Get_Data
   invocation, the Datamover layer MUST invoke the
   Data_Completion_Notify Operational Primitive upon completing that
   requested data transfer.  If the Notify_Enable was cleared in either
   a Put_Data or a Get_Data invocation, the Datamover layer MUST NOT
   invoke the Data_Completion_Notify Operational Primitive upon
   completing that requested data transfer.

   A Data_Completion_Notify invocation serves to notify the iSCSI layer
   of the Put_Data or Get_Data completion, respectively.  As earlier
   noted in Sections 8.2 and 8.3, specific Datamover protocol
   definitions may restrict the usage scope of Put_Data and Get_Data,
   and thus implicitly the usage scope of Data_Completion_Notify.

   A target iSCSI layer being notified of the retrieval of a write data
   sequence is an example of invoking the Data_Completion_Notify
   Operational Primitive.

9.4.  Data_ACK_Notify

   Input qualifiers: Connection_Handle, ITT, DataSN

   Return Results: Not specified.

   A target Datamover layer notifies its local iSCSI layer of the
   arrival of a previously requested data acknowledgement from the peer
   Datamover layer on the remote (initiator) iSCSI node via this
   Operational Primitive.  The iSCSI layer processes the data
   acknowledgement notification as defined in [RFC3720].

   A target iSCSI layer being notified of the arrival of a data
   acknowledgement for a certain SCSI Read data PDU is the only example
   of invoking the Data_ACK_Notify Operational Primitive.

10.  Datamover Interface (DI)

10.1.  Overview

   This section describes the model of interactions between iSCSI and
   Datamover layers when the iSCSI connection is Datamover-assisted so
   the iSCSI layer may carry out the following:



Chadalapaka, et al.          Informational                     [Page 23]
^L
RFC 5047                           DA                       October 2007


      -  send iSCSI data-type PDUs and exchange iSCSI control-type PDUs,
         and

      -  handle asynchronous notifications such as completion of data
         sequence transfer and connection failure.

   This chapter relies on the notion of Operational Primitives (Section
   5.4) to define DI.

10.2.  Interactions for Handling Asynchronous Notifications

10.2.1.  Connection Termination

   As stated in Section 9.2, the Datamover layer notifies the iSCSI
   layer of a failed or terminated connection via the
   Connection_Terminate_Notify Operational Primitive.  The iSCSI layer
   MUST consider the connection unusable upon the invocation of this
   Primitive and handle the connection termination as specified in
   [RFC3720].

10.2.2.  Data Transfer Completion

   As stated in Section 9.3, the Datamover layer notifies the iSCSI
   layer of a completed data transfer operation via the
   Data_Completion_Notify Operational Primitive.  The iSCSI layer
   processes the transfer completion as specified in [RFC3720].

10.2.2.1.  Completion of a Requested SCSI Data Transfer

   To notify the iSCSI layer of the completion of a requested iSCSI
   data-type PDU transfer, the Datamover layer uses the
   Data_Completion_Notify Operational Primitive with the following input
   qualifiers.

      a) Connection_Handle.

      b) ITT: Initiator Task Tag semantics as defined in [RFC3720].

      c) SN: DataSN for a SCSI Data-in/Data-out PDU, and R2TSN for an
         iSCSI R2T PDU.  The semantics for both types of sequence
         numbers are as defined in [RFC3720].

   The rationale for choosing SN is explained in Section 9.3.

   Every invocation of the Data_Completion_Notify Operational Primitive
   MUST be preceded by an invocation of the Put_Data or Get_Data
   Operational Primitive with the Notify_Enable qualifier set by the
   iSCSI layer at an earlier point in time.



Chadalapaka, et al.          Informational                     [Page 24]
^L
RFC 5047                           DA                       October 2007


10.2.3.  Data Acknowledgement

   [RFC3720] allows the iSCSI targets to optionally solicit data
   acknowledgement from the initiator for one or more Data-In PDUs, via
   setting of the A-bit on a Data-In PDU.  The Data_ACK_Notify
   Operational Primitive with the following input qualifiers is used by
   the target Datamover layer to notify the local iSCSI layer of the
   arrival of data acknowledgement of a previously solicited iSCSI read
   data acknowledgement.  This Operational Primitive thus is applicable
   only to iSCSI targets.

      a) Connection_Handle.

      b) ITT: Initiator Task Tag semantics as defined in [RFC3720].

      c) DataSN: of the next SCSI Data-In PDU, which immediately follows
         the SCSI Data-In PDU with the A-bit set to which this
         notification corresponds, with semantics as defined in
         [RFC3720].

   Every invocation of the Data_ACK_Notify Operational Primitive MUST be
   preceded by an invocation of the Put_Data Operational Primitive by
   the iSCSI target layer with the A-bit set to 1 at an earlier point in
   time.

10.3.  Interactions for Sending an iSCSI PDU

   This section discusses the model of interactions for sending each of
   the iSCSI PDUs defined in [RFC3720].  A Connection_Handle (see
   Section 5.3) is assumed to qualify each of these interactions so that
   the Datamover layer can route it to the appropriate Transport
   Connection.  The qualifying Connection_Handle is not explicitly
   listed in the subsequent sections.

   Note that the defined list of input qualifiers represents the
   semantically required set for the Datamover layer to consider in
   implementing the Primitive in each interaction described in this
   section (see Section 5.4 for an elaboration).  Implementations may
   choose to deduce the qualifiers in ways that are optimized for the
   implementation specifics.  Two examples of this are:

      1. For SCSI command (Section 10.3.1), deducing the
         ImmediateDataSize input qualifier from the DataSegmentLength
         field of the SCSI Command PDU.

      2. For SCSI Data-Out (Section 10.3.5.1), deducing the
         DataDescriptorOut input qualifier from the associated SCSI
         command invocation qualifiers (assuming such state is



Chadalapaka, et al.          Informational                     [Page 25]
^L
RFC 5047                           DA                       October 2007


         maintained) in conjunction with BHS fields of the SCSI Data-Out
         PDU.

10.3.1.  SCSI Command

   The Send_Control Operational Primitive with the following input
   qualifiers is used for requesting the transmission of a SCSI Command
   PDU.

      a) BHS and AHS, if any, of the SCSI Command PDU as defined in
         [RFC3720].

      b) DataDescriptorOut: that defines the I/O Buffer meant for Data-
         Out for the entire command, in the case of a write or
         bidirectional command.

      c) DataDescriptorIn: that defines the I/O Buffer meant for Data-In
         for the entire command, in the case of a read or bidirectional
         command.

      d) ImmediateDataSize: that defines the number of octets of
         immediate unsolicited data for a write/bidirectional command.

      e) UnsolicitedDataSize: that defines the number of octets of
         immediate and non-immediate unsolicited data for a
         write/bidirectional command.

10.3.2.  SCSI Response

   The Send_Control Operational Primitive with the following input
   qualifiers is used for requesting the transmission of a SCSI Response
   PDU.

      a) BHS of the SCSI Response PDU as defined in [RFC3720].

      b) DataDescriptorStatus: that defines the iSCSI buffer that
         contains the sense and response information for the command.

10.3.3.  Task Management Function Request

   The Send_Control Operational Primitive with the following input
   qualifiers is used for requesting the transmission of a Task
   Management Function Request PDU.

      a) BHS of the Task Management Function Request PDU as defined in
         [RFC3720].





Chadalapaka, et al.          Informational                     [Page 26]
^L
RFC 5047                           DA                       October 2007


      b) DataDescriptorOut: that defines the I/O Buffer meant for Data-
         Out for the entire command, in the case of a write or
         bidirectional command.  (Only valid if Function="TASK REASSIGN"
         - [RFC3720].)

      c) DataDescriptorIn: that defines the I/O Buffer meant for Data-In
         for the entire command, in the case of a read or bidirectional
         command.  (Only valid if Function="TASK REASSIGN" - [RFC3720].)

10.3.4.  Task Management Function Response

   The Send_Control Operational Primitive with the following input
   qualifier is used for requesting the transmission of a Task
   Management Function Response PDU.

      a) BHS of the Task Management Function Response PDU as defined in
         [RFC3720].

10.3.5.  SCSI Data-Out and SCSI Data-In

10.3.5.1.  SCSI Data-Out

   The Send_Control Operational Primitive with the following input
   qualifiers is used by the initiator iSCSI layer for requesting the
   transmission of a SCSI Data-Out PDU carrying the non-immediate
   unsolicited data.

      a) BHS of the SCSI Data-Out PDU as defined in [RFC3720].

      b) DataDescriptorOut: that defines the I/O Buffer with the Data-
         Out to be carried in the iSCSI data segment of the PDU.

10.3.5.2.  SCSI Data-In

   The Put_Data Operational Primitive with the following input
   qualifiers is used by the target iSCSI layer for requesting the
   transmission of the data carried by a SCSI Data-In PDU.

      a) BHS of the SCSI Data-In PDU as defined in [RFC3720].

      b) DataDescriptorIn: that defines the I/O Buffer with the Data-In
         being requested for transmission.









Chadalapaka, et al.          Informational                     [Page 27]
^L
RFC 5047                           DA                       October 2007


10.3.6.  Ready To Transfer (R2T)

   The Get_Data Operational Primitive with the following input
   qualifiers is used by the target iSCSI layer for requesting the
   retrieval of the data as specified by the semantic content of an R2T
   PDU.

      a) BHS of the Ready To Transfer PDU as defined in [RFC3720].

      b) DataDescriptorOut: that defines the I/O Buffer for the Data-Out
         being requested for retrieval.

10.3.7.  Asynchronous Message

   The Send_Control Operational Primitive with the following input
   qualifiers is used for requesting the transmission of an Asynchronous
   Message PDU.

      a) BHS of the Asynchronous Message PDU as defined in [RFC3720].

      b) DataDescriptorSense: that defines an iSCSI buffer that contains
         the sense and iSCSI Event information.

10.3.8.  Text Request

   The Send_Control Operational Primitive with the following input
   qualifiers is used for requesting the transmission of a Text Request
   PDU.

      a) BHS of the Text Request PDU as defined in [RFC3720].

      b) DataDescriptorTextOut: that defines the iSCSI Text Request
         buffer.

10.3.9.  Text Response

   The Send_Control Operational Primitive with the following input
   qualifiers is used for requesting the transmission of a Text Response
   PDU.

      a) BHS of the Text Response PDU as defined in [RFC3720].

      b) DataDescriptorTextIn: that defines the iSCSI Text Response
         buffer.







Chadalapaka, et al.          Informational                     [Page 28]
^L
RFC 5047                           DA                       October 2007


10.3.10.  Login Request

   The Send_Control Operational Primitive with the following input
   qualifiers is used for requesting the transmission of a Login Request
   PDU.

      a) BHS of the Login Request PDU as defined in [RFC3720].

      b) DataDescriptorLoginRequest: that defines the iSCSI Login
         Request buffer.

   Note that specific Datamover protocols may choose to disallow the
   standard DA Primitives from being used for the iSCSI Login Phase.
   When used in conjunction with such Datamover protocols, an attempt to
   send a Login Request via the Send_Control Operational Primitive
   invocation is clearly an error scenario, as the Login Request PDU is
   being sent while the connection is in the iSCSI Full Feature Phase.
   It is outside the scope of this document to specify the resulting
   implementation behavior in this case -- [RFC3720] already defines the
   error handling for this error scenario.

10.3.11.  Login Response

   The Send_Control Operational Primitive with the following input
   qualifiers is used for requesting the transmission of a Login
   Response PDU.

      a) BHS of the Login Response PDU as defined in [RFC3720].

      b) DataDescriptorLoginResponse: that defines the iSCSI Login
         Response buffer.

   Note that specific Datamover protocols may choose to disallow the
   standard DA Primitives from being used for the iSCSI Login Phase.
   When used in conjunction with such Datamover protocols, an attempt to
   send a Login Response via the Send_Control Operational Primitive
   invocation is clearly an error scenario, as the Login Response PDU is
   being sent while in the iSCSI Full Feature Phase.  It is outside the
   scope of this document to specify the resulting implementation
   behavior in this case -- [RFC3720] already defines the error handling
   for this error scenario.

10.3.12.  Logout Command

   The Send_Control Operational Primitive with the following input
   qualifier is used for requesting the transmission of a Logout Command
   PDU.




Chadalapaka, et al.          Informational                     [Page 29]
^L
RFC 5047                           DA                       October 2007


      a) BHS of the Logout Command PDU as defined in [RFC3720].

10.3.13.  Logout Response

   The Send_Control Operational Primitive with the following input
   qualifier is used for requesting the transmission of a Logout
   Response PDU.

      a) BHS of the Logout Response PDU as defined in [RFC3720].

10.3.14.  SNACK Request

   The Send_Control Operational Primitive with the following input
   qualifier is used for requesting the transmission of a SNACK Request
   PDU.

      a) BHS of the SNACK Request PDU as defined in [RFC3720].

10.3.15.  Reject

   The Send_Control Operational Primitive with the following input
   qualifiers is used for requesting the transmission of a Reject PDU.

      a) BHS of the Reject PDU as defined in [RFC3720].

      b) DataDescriptorReject: that defines the iSCSI Reject buffer.

10.3.16.  NOP-Out

   The Send_Control Operational Primitive with the following input
   qualifiers is used for requesting the transmission of a NOP-Out PDU.

      a) BHS of the NOP-Out PDU as defined in [RFC3720].

      b) DataDescriptorNOPOut: that defines the iSCSI Ping data buffer.

10.3.17.  NOP-In

   The Send_Control Operational Primitive with the following input
   qualifiers is used for requesting the transmission of a NOP-In PDU.

      a) BHS of the NOP-In PDU as defined in [RFC3720].

      b) DataDescriptorNOPIn: that defines the iSCSI Return Ping data
         buffer.






Chadalapaka, et al.          Informational                     [Page 30]
^L
RFC 5047                           DA                       October 2007


10.4.  Interactions for Receiving an iSCSI PDU

   The only PDUs that are received by an iSCSI layer operating on a
   Datamover layer are the iSCSI control-type PDUs.  The Datamover layer
   delivers the iSCSI control-type PDUs as they arrive, qualifying each
   with the Connection_Handle (see Section 5.3) that identifies the
   iSCSI connection for which the PDU is meant.  The subsequent
   processing of the iSCSI control-type PDUs proceeds as defined in
   [RFC3720].

10.4.1.  General Control-Type PDU Notification

   This sub-section describes the general mechanics applicable to
   several control-type PDUs.  The following sub-sections note
   additional considerations for control-type PDUs that are not covered
   in this sub-section.

   The Control_Notify Operational Primitive is used to notify the iSCSI
   layer of the arrival of the following iSCSI control-type PDUs: SCSI
   Command, SCSI Response, Task Management Function Request, Task
   Management Function Response, Asynchronous Message, Text Request,
   Text Response, Logout Command, Logout Response, SNACK, Reject, NOP-
   Out, NOP-In.

10.4.2.  SCSI Data Transfer PDUs

10.4.2.1.  SCSI Data-Out

   The Control_Notify Operational Primitive is used to notify the iSCSI
   layer of the arrival of a SCSI Data-Out PDU carrying the non-
   immediate unsolicited data.  Note however that the solicited SCSI
   Data-Out arriving on the target does not cause a notification to the
   iSCSI layer using the Control_Notify Primitive because the solicited
   SCSI Data-Out was not sent by the initiator iSCSI layer as control-
   type PDUs.

10.4.2.2.  SCSI Data-In

   The Datamover layer does not notify the iSCSI layer of the arrival of
   the SCSI Data-in at the initiator, because SCSI Data-in is an iSCSI
   data-type PDU (see section 5.1).  The iSCSI layer at the initiator
   however may infer the arrival of the SCSI Data-In when it receives a
   subsequent notification of the SCSI Response PDU via a Control_Notify
   invocation.

   While this document does not contemplate the possibility of a Data-In
   PDU being received at the initiator iSCSI layer, specific Datamover
   protocols may define how to deal with an unexpected inbound SCSI



Chadalapaka, et al.          Informational                     [Page 31]
^L
RFC 5047                           DA                       October 2007


   Data-In PDU that may result in the initiator iSCSI layer receiving
   the Data-In PDU.  This document leaves the details of handling this
   error scenario to the specific Datamover protocols, so each may
   define the appropriate error handling specific to the Datamover
   environment.

10.4.2.3.  Ready To Transfer (R2T)

   Because an R2T PDU is an iSCSI data-type PDU (see Section 5.1) that
   is not delivered as-is to the initiator iSCSI layer, the Datamover
   layer does not notify the iSCSI layer of the arrival of an R2T PDU.
   When an iSCSI node sends an R2T PDU to its local Datamover layer, the
   local and remote Datamover layers transparently bring about the data
   transfer requested by the R2T PDU.

   While this document does not contemplate the possibility of an R2T
   PDU being received at the initiator iSCSI layer, specific Datamover
   protocols may define how to deal with an unexpected inbound R2T PDU
   that may result in the initiator iSCSI layer receiving the R2T PDU.
   This document leaves the details of handling this error scenario to
   the specific Datamover protocols, so each may define the appropriate
   error handling specific to the Datamover environment.

10.4.3.  Login Request

   The Control_Notify Operational Primitive is used for notifying the
   target iSCSI layer of the arrival of a Login Request PDU.  Note that
   specific Datamover protocols may choose to disallow the standard DA
   Primitives from being used for the iSCSI Login Phase.  When used in
   conjunction with such Datamover protocols, the arrival of a Login
   Request necessitating the Control_Notify Operational Primitive
   invocation is clearly an error scenario, as the Login Request PDU is
   arriving in the iSCSI Full Feature Phase.  It is outside the scope of
   this document to specify the resulting implementation behavior in
   this case -- [RFC3720] already defines the error handling in this
   error scenario.

10.4.4.  Login Response

   The Control_Notify Operational Primitive is used to notify the
   initiator iSCSI layer of the arrival of a Login Response PDU.  Note
   that specific Datamover protocols may choose to disallow the standard
   DA Primitives from being used for the iSCSI Login Phase.  When used
   in conjunction with such Datamover protocols, the arrival of a Login
   Response necessitating the Control_Notify Operational Primitive
   invocation is clearly an error scenario, as the Login Response PDU is
   arriving in the iSCSI Full Feature Phase.  It is outside the scope of
   this document to specify the resulting implementation behavior in



Chadalapaka, et al.          Informational                     [Page 32]
^L
RFC 5047                           DA                       October 2007


   this case -- [RFC3720] already defines the error handling in this
   error scenario.

11.  Security Considerations

11.1.  Architectural Considerations

   DA enables compliant iSCSI implementations to realize a control and
   data separation in the way they interact with their Datamover
   protocols.  Note however that this separation does not imply a
   separation in transport mediums between control traffic and data
   traffic -- the basic iSCSI architecture with respect to tasks and PDU
   relationships to tasks remains unchanged.  [RFC3720] defines several
   MUST requirements on ordering relationships across control and data
   for a given task besides a mandatory deterministic task allegiance
   model -- DA does not change this basic architecture (DA has a
   normative reference to [RFC3720]) for allow any additional
   flexibility in compliance in this area.  To summarize, sending bulk
   data transfers (prompted by Put_Data and Get_Data Primitive
   invocations) on a different transport medium would be as ill-advised
   as sending just the Data-Out/Data-In PDUs on a different TCP
   connection in RFC 3720-based iSCSI implementations.  Consequently,
   all the iSCSI-related security text in [RFC3723] is directly
   applicable to a DA-enabled iSCSI implementation.

   Another area with security implications is the Datamover connection
   resource management model, which DA defines -- particularly the
   Allocate_Connection_Resources Primitive.  An inadvertent realization
   of this model could leave an iSCSI implementation exposed to denial-
   of-service attacks.  As Figures 2 and 3 in Section 13.2 illustrate,
   the most effective countermeasure to this potential attack consists
   of performing the Datamover resource allocation when the iSCSI layer
   is sufficiently far along in the iSCSI Login Phase that it is
   reasonably certain that the peer side is not an attacker.  In
   particular, if the Login Phase includes a SecurityNegotiation stage,
   an iSCSI end node MUST defer the Datamover connection resource
   allocation (i.e., invoking the Allocate_Connection_Resources
   Primitive) to the LoginOperationalNegotiation stage [RFC3720] so that
   the resource allocation happens post-authentication.  This
   considerably minimizes the potential for a denial-of service attack.

11.2.  Wire Protocol Considerations

   In view of the fact that the DA architecture itself does not define
   any new wire protocol or propose modifications to the existing
   protocols, there are no additional wire protocol security
   considerations in employing DA itself.  However, a DA-compliant iSCSI
   implementation MUST comply with all the iSCSI-related requirements



Chadalapaka, et al.          Informational                     [Page 33]
^L
RFC 5047                           DA                       October 2007


   stipulated in [RFC3723] and [RFC3720].  Note further that in
   realizing DA, each Datamover protocol must define and elaborate as
   appropriate on any additional security considerations resulting from
   the use of that Datamover protocol.

   All Datamover protocol designers are strongly recommended to refer to
   [RDDPSEC] for the types of security issues to consider.  While
   [RDDPSEC] elaborates on the security considerations applicable to an
   RDDP-based Datamover [iSER], the document is representative of the
   type of analysis of resource exhaustion and the application of
   countermeasures that need to be done for any Datamover protocol.

12.  References

12.1.  Normative References

   [RFC3720] Satran, J., Meth, K., Sapuntzakis, C., Chadalapaka, M., and
             E. Zeidner, "Internet Small Computer Systems Interface
             (iSCSI)", RFC 3720, April 2004.

   [RFC3723] Aboba, B., Tseng, J., Walker, J., Rangan, V., and F.
             Travostino, "Securing Block Storage Protocols over IP", RFC
             3723, April 2004.

   [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
             Requirement Levels", BCP 14, RFC 2119, March 1997.

12.2.  Informative References

   [DDP]     Shah, H., Pinkerton, J., Recio, R., and P. Culley, "Direct
             Data Placement over Reliable Transports", RFC 5041, October
             2007.

   [iSER]    Ko, M., Chadalapaka, M., Hufferd, J., Elzur, U., Shah, H.,
             and P. Thaler, "Internet Small Computer System Interface
             (iSCSI) Extensions for Remote Direct Memory Access (RDMA)",
             RFC 5046, October 2007.

   [RDDPSEC] Pinkerton, J. and E. Deleganes, "Direct Data Placement
             Protocol (DDP) / Remote Direct Memory Access Protocol
             (RDMAP) Security", RFC 5042, October 2007.










Chadalapaka, et al.          Informational                     [Page 34]
^L
RFC 5047                           DA                       October 2007


Appendix A.  Design Considerations and Examples

A.1.  Design Considerations for a Datamover Protocol

   This section discusses the specific considerations for RDMA-based and
   RDDP-based Datamover protocols.

      a) Note that the modeling of interactions for SCSI Data-Out
         (Section 10.3.5.1) is only used for unsolicited data transfer.

      b) The modeling of interactions for SNACK (Sections 10.3.14 and
         10.4.1) is not expected to be used given that one of the design
         requirements on the Datamover is that it "guarantees an error-
         free, reliable, in-order transport mechanism" (Section 6).  The
         interactions for sending and receiving a SNACK are nevertheless
         modeled in this document because the receiving iSCSI layer can
         deterministically deal with an inadvertent SNACK.  This also
         shows the DA designers' intent that DI is not meant to filter
         certain types of PDUs.

      c) The onus is on a reliable Datamover (per requirements stated in
         Section 6) to realize end-to-end data acknowledgements via
         Datamover-specific means.  In view of this, even use of data-
         ACK-type SNACKs are unnecessary.  Consequently, an initiator
         may never request sending a SNACK Request in this model
         assuming that the proactive (timeout-driven) SNACK
         functionality is turned off in the legacy iSCSI code.

      d) Note that the current DA model for bootstrapping a
         Connection_Handle into service -- i.e., associating a new iSCSI
         connection with a Connection_Handle -- clearly implies that the
         iSCSI connection must already be in Full Feature Phase when the
         Datamover layer comes into the stack.  This further implies
         that the iSCSI Login Phase must be carried out in the
         traditional "Byte streaming mode" with no assistance or
         involvement from the Datamover layer.

A.2.  Examples of Datamover Interactions

   The figures described in this section provide some examples of the
   usage of Operational Primitives in interactions between the iSCSI
   layer and the Datamover layer.  The following abbreviations are used
   in this section.

   Avail - Available

   Abted - Aborted




Chadalapaka, et al.          Informational                     [Page 35]
^L
RFC 5047                           DA                       October 2007


   Buf - I/O Buffer

   Cmd - Command

   Compl - Complete

   Conn - Connection

   Ctrl_Ntfy - Control_Notify

   Dal_Tk_Res - Deallocate_Task_Resources

   Data_Cmp_Nfy - Data_Completion_Notify

   Data_ACK_Nfy - Data_ACK_Notify

   DM - Datamover

   Imm - Immediate

   Snd_Ctrl - Send_Control

   Msg - Message

   Resp - Response

   Sol - Solicited

   TMF Req - Task Management Function Request

   TMF Res - Task Management Function Response

   Trans - Transfer

   Unsol - Unsolicited
















Chadalapaka, et al.          Informational                     [Page 36]
^L
RFC 5047                           DA                       October 2007


         |   | Allocate_Connection_Resources  | D |    ^
         |   |------------------------------->| a |    |
         |   |    Connection resources are    | t |    |
         | i |     successfully allocated     | a |    |   iSCSI
         | S |                                | m |    |   Login
         | C |                                | o |    |   Phase
         | S |                                | v |    |
         | I |                                | e |    |
         |   |                                | r |    | Login Phase
         | L | Final Login Response (success)          v succeeds
         | a |<----------------------------------------^
         | y |                                | L |    |   iSCSI
         | e |       Enable_Datamover         | a |    |   Full
         | r |------------------------------->| y |    |   Feature
         |   |     Datamover is enabled       | e |    |   Phase
         |   |                                | r |    |
         |   |   Full Feature Phase           |   |    |
         |   |   control and data Transfer    |   |    v

           Figure 2.  A Successful iSCSI Login on Initiator


         |   | Notice_Key_Values              |   |      |
         |   |------------------------------->|   |      |
         |   |  Datamover layer is notified   |   |      |
         |   |  of the negotiated key values  |   |      |
         |   |                                |   |      |
         |   | Allocate_Connection_Resources  |   |      |
         |   |------------------------------->| D |      |
         |   |    Connection resources are    | a |      |
         | i |     successfully allocated     | t |      |   iSCSI
         | S |                                | a |      |   Login
         | C |                                | m |Final |   Phase
         | S |                                | o |Login |
         | I |Enable_Datamover(Login Response)| v |Resp  |
         |   |------------------------------->| e |---->vLogin Phase
         | L |     Datamover is enabled       | r |      ^ succeeds
         | a |                                |   |      |
         | y |                                | L |      |   iSCSI
         | e |                                | a |      |   Full
         | r |                                | y |      |   Feature
         |   |                                | e |      |   Phase
         |   |      Full Feature Phase        | r |      |
         |   |   control and data Transfer    |   |      |
         |   |                                |   |      v

           Figure 3.  A Successful iSCSI Login on Target




Chadalapaka, et al.          Informational                     [Page 37]
^L
RFC 5047                           DA                       October 2007


         |   | Allocate_Connection_Resources  | D |      ^
         |   |------------------------------->| a |      |
         |   |    Connection resources are    | t |      |
         | i |     successfully allocated     | a |      |   iSCSI
         | S |                                | m |      |   Login
         | C |                                | o |      |   Phase
         | S |                                | v |      |
         | I |                                | e |      |
         |   |                                | r |      | Login
         |   |                                |   |      | Phase
         | L | Final Login Response (failure)            v fails
         | a |<------------------------------------------
         | y |                                | L |
         | e | Deallocate_Connection_Resources| a |
         | r |------------------------------->| y |
         |   |     Datamover-specific         | e |
         |   |     connection resources freed | r |
         |   |                                |   |
         |   |
         |   | Connection terminated by standard means
         |   |--------------------------------------------->

            Figure 4.  A Failed iSCSI Login on Initiator


         |   | Allocate_Connection_Resources  | D |      ^
         |   |------------------------------->| a |      |
         |   |    Connection resources are    | t |      |
         | i |     successfully allocated     | a |      |   iSCSI
         | S |                                | m |      |   Login
         | C |                                | o |      |   Phase
         | S |                                | v |      |
         | I |                                | e |      |
         |   |                                | r |      | Login
         |   |                                |   |      | Phase
         | L | Final Login Response (failure)            v fails
         | a |---------------------------------------------->
         | y |                                | L |
         | e | Deallocate_Connection_Resources| a |
         | r |------------------------------->| y |
         |   |     Datamover-specific         | e |
         |   |     connection resources freed | r |
         |   |                                |   |
         |   |
         |   | Connection terminated by standard means
         |   |-------------------------------------------->

             Figure 5.  A Failed iSCSI Login on Target



Chadalapaka, et al.          Informational                     [Page 38]
^L
RFC 5047                           DA                       October 2007



         |   | Allocate_Connection_Resources  | D |     ^
         |   |------------------------------->| a |     |
         |   |    Connection resources are    | t |     |
         | i |     successfully allocated     | a |     |   iSCSI
         | S |                                | m |     |   Login
         | C |                                | o |     |   Phase
         | S |                                | v |     |
         | I |                                | e |     |
         |   |                                | r |     |
         | L | Login non-Final Request/Response         |
         | a |<-----------------------------------------|
         | y |    iSCSI layer decides not to  | L |     |
         | e |    enable Datamover for this   | a |     |
         | r |    connection                  | y |     |
         |   |                                | e |     |
         |   | Deallocate_Connection_Resources| r |     |
         |   |------------------------------->|   |     |
         |   |     All Datamover-specific     |   |     |
         |   |     resources deallocated      |   |     |
         |   |                                |   |     | Login
         |   |                                |   |     | Phase
         |   |                                          | continues
         |   | Regular Login negotiation continues      |
         |   |<---------------------------------------->|
         |   |                                          .
         |   |                                          .
         |   |                                          .

          Figure 6.  iSCSI Does Not Enable the Datamover





















Chadalapaka, et al.          Informational                     [Page 39]
^L
RFC 5047                           DA                       October 2007


         |   |                                |   |   ^
         |   |  Full Feature Phase Control &  |   |   |
         |   |    Data Transfer Using DM      | D |   | iSCSI
         |   |                                | a |   | Full Feature
         | i |                                | t |   | Phase
         | S |                                | a |   | (DM Enabled)
         | C |                                | m |   |
         | S |    Successful iSCSI Logout     | o |   |
         | I |                                | v |   v
         |   |     Connection_Terminate       | e |
         | L |------------------------------->| r |
         | a |   Connection is terminated     |   |
         | y |   Datamover-specific resources | L | Transport
         | e |   deallocated, both connection | a | Connection
         | r |   level & task level           | y | is terminated
         |   |                                | e |
         |   |                                | r |
         |   |                                |   |
         |   |                                |   |

           Figure 7.  A Normal iSCSI Connection Termination


         |   |                                |   |   ^
         |   |  Full Feature Phase Control &  | D |   | iSCSI
         |   |    Data Transfer Using DM      | a |   | Full Feature
         | i |                                | t |   | Phase
         | S |                                | a |   | (DM Enabled)
         | C |                                | m |   v
         | S |                                | o |<--Transport
         | I |   Datamover-specific resources | v | Connection
         |   |   deallocated, both connection | e | Terminated (e.g.
         | L |   level & task level           | r | unexpected
         | a |                                |   | FIN/RESET)
         | y |                                | L |
         | e |   Connection_Terminate_Notify  | a |
         | r |<-------------------------------| y |
         |   |                                | e |
         |   |                                | r |
         |   |                                |   |

           Figure 8.  An Abnormal iSCSI Connection Termination









Chadalapaka, et al.          Informational                     [Page 40]
^L
RFC 5047                           DA                       October 2007


        <-----Initiator----->                <-------Target------->

        |  |          |  | DM Msg holding |  |            |  |
   SCSI |  |          |  | SCSI Cmd PDU & |  |            |  |SCSI
   Cmd  |  | Snd_Ctrl |  |Unsol Imm Data  |  |Ctrl_Notify |  |Cmd
   ---->|  |--------->|  |--------------->|  |----------->|  |--->
        |  |          |  |                |  |            |  |
        |  |          |  | DM Msg holding |  |            |  |
        |  | Snd_Ctrl |  |SCSI Dataout PDU|  |Ctrl_Notify |  |
        |  |--------->|  |--------------->|  |----------->|  |
        |  |    .     |  |        .       |  |     .      |  |Unsol
        |  |    .     | D|        .       | D|     .      |  |Data
        |  |    .     | a| DM Msg holding | a|     .      |  |Trans
        | i| Snd_Ctrl | t|SCSI Dataout PDU| t|Ctrl_Notify | i|
        | S|--------->| a|--------------->| a|----------->| S|
        | C|          | m|                | m|            | C|Buf
        | S|          | o|                | o|            | S|Avail
        | I|          | v|                | v|  Get_Data  | I|(R2T)
        |  |          | e|----------------| e|<-----------|  |<----
        | L|          | r||Solicited Data | r|            | L|  .
        | a|          |  ||  Transfer     |  |            | a|  .
        | y|          | L|--------------->| L|      .     | y|Buf
        | e|          | a|        .       | a|      .     | e|Avail
        | r|          | y|        .       | y|  Get_Data  | r|(R2T)
        |  |          | e|----------------| e|<-----------|  |<----
        |  |          | r||Solicited Data | r|            |  |
        |  |          |  ||   Transfer    |  |            |  |
        |  |          |  |--------------->|  |Data_Cmp_Nfy|  |Data
        |  |          |  |                |  |----------->|  |Trans
        |  |          |  |                |  |            |  |Compl
        |  |          |  | DM Msg holding |  |            |  |
   SCSI |  |          |  |SCSI Resp PDU & |  |            |  |SCSI
   Resp |  |Ctrl_Ntfy |  |  Sense Data    |  |  Snd_Ctrl  |  |Resp
   <----|  |<---------|  |<---------------|  |<-----------|  |<----
        |  |          |  |                |  |            |  |

                 Figure 9.  A SCSI Write Data Transfer














Chadalapaka, et al.          Informational                     [Page 41]
^L
RFC 5047                           DA                       October 2007


        <-----Initiator----->                <-------Target------->

        |  |          |  |                |  |            |  |
   SCSI |  |          |  | DM Msg holding |  |            |  |SCSI
   Cmd  |  | Snd_Ctrl |  |  SCSI Cmd PDU  |  |Ctrl_Notify |  |Cmd
   ---->|  |--------->|  |--------------->|  |----------->|  |--->
        |  |          |  |                |  |            |  |
        |  |          | D|    SCSI Read   | D|            |  |Buf
        |  |          | a|  Data Transfer | a|  Put_Data  |  |Avail
        | i|          | t|<---------------| t|<-----------| i|<----
        | S|          | a|        .       | a|     .      | S|  .
        | C|          | m|        .       | m|     .      | C|  .
        | S|          | o|        .       | o|     .      | S|  .
        | I|          | v|    SCSI Read   | v|     .      | I|Buf
        |  |          | e|  Data Transfer | e|  Put_Data  |  |Avail
        | L|          | r|<---------------| r|<-----------| L|<----
        | a|          |  |                |  |            | a|
        | y|          | L|                | L|            | y|
        | e|          | a|                | a|Data_Cmp_Nfy| e|Data
        | r|          | y|                | y|----------->| r|Trans
        |  |          | e|                | e|            |  |Compl
        |  |          | r| DM Msg holding | r|            |  |
   SCSI |  |          |  |SCSI Resp PDU & |  |            |  |SCSI
   Resp |  |Ctrl_Ntfy |  |  Sense Data    |  |  Snd_Ctrl  |  |Resp
   <----|  |<---------|  |<---------------|  |<-----------|  |<----
        |  |          |  |                |  |            |  |

                 Figure 10.  A SCSI Read Data Transfer























Chadalapaka, et al.          Informational                     [Page 42]
^L
RFC 5047                           DA                       October 2007


        <-----Initiator----->                <-------Target------->

        |  |          |  |                |  |            |  |
   SCSI |  |          |  | DM Msg holding |  |            |  |SCSI
   Cmd  |  | Snd_Ctrl |  |  SCSI Cmd PDU  |  |Ctrl_Notify |  |Cmd
   ---->|  |--------->|  |--------------->|  |----------->|  |---->
        |  |          |  |                |  |            |  |
        |  |          | D|    SCSI Read   | D|  Put_Data  |  |Buf
        |  |          | a|  Data Transfer | a|Data_in.A=1 |  |Avail
        | i|          | t|<---------------| t|<-----------| i|<----
        | S|          | a|        .       | a|     .      | S|  .
        | C|          | m|        .       | m|Data_ACK_Nfy| C|  .
        | S|          | o|                | o|----------->| S|  .
        | I|          | v|                | v|     .      | I|
        |  |          | e|                | e|     .      |  |
        | L|          | r|                | r|            | L|
        | a|          |  |                |  |            | a|
        | y|          | L|                | L|            | y|
        | e|          | a|                | a|            | e|Data
        | r|          | y|                | y|            | r|Trans
        |  |          | e|                | e|            |  |Compl
        |  |          | r| DM Msg holding | r|            |  |
   SCSI |  |          |  |SCSI Resp PDU & |  |            |  |SCSI
   Resp |  |Ctrl_Ntfy |  |  Sense Data    |  |  Snd_Ctrl  |  |Resp
   <----|  |<---------|  |<---------------|  |<-----------|  |<----
        |  |          |  |                |  |            |  |

           Figure 11.  A SCSI Read Data Acknowledgement























Chadalapaka, et al.          Informational                     [Page 43]
^L
RFC 5047                           DA                       October 2007


        <-----Initiator----->                <-------Target------->

        |  |          |  |                |  |            |  |
   SCSI |  |          |  | DM Msg holding |  |            |  |SCSI
   Cmd  |  | Snd_Ctrl |  |  SCSI Cmd PDU  |  |Ctrl_Notify |  |Cmd
   ---->|  |--------->|  |--------------->|  |----------->|  |---->
        |  |          |  |                |  |            |  |
        |  |          | D|    SCSI Read   | D|            |  |Buf
        |  |          | a|  Data Transfer | a|  Put_Data  |  |Avail
        | i|          | t|<---------------| t|<-----------| i|<----
        | S|          | a|        .       | a|     .      | S|  .
   Abort| C|          | m| DM Msg holding | m|     .      | C|Abort
   Task | S| Snd_Ctrl | o|  Abort TMF Req | o|Ctrl_Notify | S|Task
   ---->| I|--------->| v|--------------->| v|----------->| I|---->
        |  |          | e|       .        | e|     .      |  |
   Abort| L|          | r|  DM Msg holding| r|            | L| .
   Done | a|Ctrl_Ntfy |  |   Abort TMF Res|  | Snd_Ctrl   |  |Abted
   <----| y|<---------| L|<---------------| L|<-----------| y|<----
        | e|          | a|                | a|            | e|
        | r|          | y|                | y|            | r|
        |  |          | e|                | e|            |  |
        |  |          | r|                | r|            |  |
        |  |          |  |                |  |            |  |
        |  |Dal_Tk_Res|  |                |  |Dal_Tk_Res  |  |
        |  |--------->|  |                |  |<-----------|  |
        |  |          |  |                |  |            |  |

            Figure 12.  Task Resource Cleanup on Abort

Acknowledgements

   The IP Storage (IPS) Working Group in the Transport Area of
   IETF has been responsible for defining the iSCSI protocol
   (apart from a host of other relevant IP Storage protocols).
   The authors are grateful to the entire working group, whose
   work allowed this document to build on the concepts and
   details of the iSCSI protocol.

   In addition, the following individuals reviewed and
   contributed to the improvement of this document.  The authors
   are grateful for their contribution.

   John Carrier
   Adaptec, Inc.
   691 S. Milpitas Blvd., Milpitas, CA 95035, USA
   Phone: +1 (360) 378-8526
   EMail: john_carrier@adaptec.com




Chadalapaka, et al.          Informational                     [Page 44]
^L
RFC 5047                           DA                       October 2007


   Hari Ghadia
   Adaptec, Inc.
   691 S. Milpitas Blvd., Milpitas, CA 95035, USA
   Phone: +1 (408) 957-5608
   EMail: hari_ghadia@adaptec.com

   Hari Mudaliar
   Adaptec, Inc.
   691 S. Milpitas Blvd., Milpitas, CA 95035, USA
   Phone: +1 (408) 957-6012
   EMail: hari_mudaliar@adaptec.com

   Patricia Thaler
   Agilent Technologies, Inc.
   1101 Creekside Ridge Drive, #100, M/S-RG10,
   Roseville, CA 95678, USA
   Phone: +1-916-788-5662
   EMail: pat_thaler@agilent.com

   Uri Elzur
   Broadcom Corporation
   16215 Alton Parkway, Irvine, CA 92619-7013, USA
   Phone: +1 (949) 585-6432
   EMail: Uri@Broadcom.com

   Mike Penna
   Broadcom Corporation
   16215 Alton Parkway,Irvine, CA 92619-7013, USA
   Phone: +1 (949) 926-7149
   EMail: MPenna@Broadcom.com

   David Black
   EMC Corporation
   176 South St., Hopkinton, MA 01748, USA
   Phone: +1 (508) 293-7953
   EMail: black_david@emc.com

   Ted Compton
   EMC Corporation
   Research Triangle Park, NC 27709, USA
   Phone: +1-919-248-6075
   EMail: compton_ted@emc.com

   Dwight Barron
   Hewlett-Packard Company
   20555 SH 249, Houston, TX 77070-2698, USA
   Phone: +1 (281) 514-2769
   EMail: Dwight.Barron@Hp.com



Chadalapaka, et al.          Informational                     [Page 45]
^L
RFC 5047                           DA                       October 2007


   Paul R. Culley
   Hewlett-Packard Company
   20555 SH 249, Houston, TX 77070-2698, USA
   Phone: +1 (281) 514-5543
   EMail: paul.culley@hp.com

   Dave Garcia
   Hewlett-Packard Company
   19333 Vallco Parkway, Cupertino, CA 95014, USA
   Phone: +1 (408) 285-6116
   EMail: dave.garcia@hp.com

   Randy Haagens
   Hewlett-Packard Company
   8000 Foothills Blvd, MS 5668, Roseville CA, USA
   Phone: +1-916-785-4578
   EMail: randy_haagens@hp.com

   Jeff Hilland
   Hewlett-Packard Company
   20555 SH 249, Houston, TX 77070-2698, USA
   Phone: +1 (281) 514-9489
   EMail: jeff.hilland@hp.com

   Mike Krause
   Hewlett-Packard Company, 43LN
   19410 Homestead Road, Cupertino, CA 95014, USA
   Phone: +1 (408) 447-3191
   EMail: krause@cup.hp.com

   Jim Wendt
   Hewlett-Packard Company
   8000 Foothills Blvd, MS 5668, Roseville CA, USA
   Phone: +1-916-785-5198
   EMail: jim_wendt@hp.com

   Mike Ko
   IBM
   650 Harry Rd, San Jose, CA 95120, USA
   Phone: +1 (408) 927-2085
   EMail: mako@us.ibm.com

   Renato Recio
   IBM Corporation
   11501 Burnett Road, Austin, TX 78758, USA
   Phone: +1 (512) 838-1365
   EMail: recio@us.ibm.com




Chadalapaka, et al.          Informational                     [Page 46]
^L
RFC 5047                           DA                       October 2007


   Howard C. Herbert
   Intel Corporation
   MS CH7-404,5000 West Chandler Blvd., Chandler, AZ 85226, USA
   Phone: +1 (480) 554-3116
   EMail: howard.c.herbert@intel.com

   Dave Minturn
   Intel Corporation
   MS JF1-210, 5200 North East Elam Young Parkway
   Hillsboro, OR 97124, USA
   Phone: +1 (503) 712-4106
   EMail: dave.b.minturn@intel.com

   James Pinkerton
   Microsoft Corporation
   One Microsoft Way, Redmond, WA 98052, USA
   Phone: +1 (425) 705-5442
   EMail: jpink@microsoft.com

   Tom Talpey
   Network Appliance
   375 Totten Pond Road, Waltham, MA 02451, USA
   Phone: +1 (781) 768-5329
   EMail: thomas.talpey@netapp.com



























Chadalapaka, et al.          Informational                     [Page 47]
^L
RFC 5047                           DA                       October 2007


Authors' Addresses

   Mallikarjun Chadalapaka
   Hewlett-Packard Company
   8000 Foothills Blvd.
   Roseville, CA 95747-5668, USA

   Phone: +1-916-785-5621
   EMail: cbm@rose.hp.com


   John L. Hufferd
   Brocade, Inc.
   1745 Technology Drive
   San Jose, CA 95110, USA

   Phone: +1-408-333-5244
   EMail: jhufferd@brocade.com


   Julian Satran
   IBM, Haifa Research Lab
   Haifa University Campus - Mount Carmel
   Haifa 31905, Israel

   Phone +972-4-829-6264
   EMail: Julian_Satran@il.ibm.com


   Hemal Shah
   Broadcom Corporation
   5300 California Avenue
   Irvine, California 92617, USA

   Phone: +1-949-926-6941
   EMail: hemal@broadcom.com

   Comments may be sent to Mallikarjun Chadalapaka.













Chadalapaka, et al.          Informational                     [Page 48]
^L
RFC 5047                           DA                       October 2007


Full Copyright Statement

   Copyright (C) The IETF Trust (2007).

   This document is subject to the rights, licenses and restrictions
   contained in BCP 78, and except as set forth therein, the authors
   retain all their rights.

   This document and the information contained herein are provided on an
   "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
   OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND
   THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS
   OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF
   THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
   WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

Intellectual Property

   The IETF takes no position regarding the validity or scope of any
   Intellectual Property Rights or other rights that might be claimed to
   pertain to the implementation or use of the technology described in
   this document or the extent to which any license under such rights
   might or might not be available; nor does it represent that it has
   made any independent effort to identify any such rights.  Information
   on the procedures with respect to rights in RFC documents can be
   found in BCP 78 and BCP 79.

   Copies of IPR disclosures made to the IETF Secretariat and any
   assurances of licenses to be made available, or the result of an
   attempt made to obtain a general license or permission for the use of
   such proprietary rights by implementers or users of this
   specification can be obtained from the IETF on-line IPR repository at
   http://www.ietf.org/ipr.

   The IETF invites any interested party to bring to its attention any
   copyrights, patents or patent applications, or other proprietary
   rights that may cover technology that may be required to implement
   this standard.  Please address the information to the IETF at
   ietf-ipr@ietf.org.












Chadalapaka, et al.          Informational                     [Page 49]
^L