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
|
Internet Engineering Task Force (IETF) R. Stewart
Request for Comments: 6525 Adara Networks
Category: Standards Track M. Tuexen
ISSN: 2070-1721 Muenster Univ. of Appl. Sciences
P. Lei
Cisco Systems, Inc.
February 2012
Stream Control Transmission Protocol (SCTP) Stream Reconfiguration
Abstract
Many applications that use the Stream Control Transmission Protocol
(SCTP) want the ability to "reset" a stream. The intention of
resetting a stream is to set the numbering sequence of the stream
back to 'zero' with a corresponding notification to the application
layer that the reset has been performed. Applications requiring this
feature want it so that they can "reuse" streams for different
purposes but still utilize the stream sequence number so that the
application can track the message flows. Thus, without this feature,
a new use of an old stream would result in message numbers greater
than expected, unless there is a protocol mechanism to "reset the
streams back to zero". This document also includes methods for
resetting the transmission sequence numbers, adding additional
streams, and resetting all stream sequence numbers.
Status of This Memo
This is an Internet Standards Track document.
This document is a product of the Internet Engineering Task Force
(IETF). It represents the consensus of the IETF community. It has
received public review and has been approved for publication by the
Internet Engineering Steering Group (IESG). Further information on
Internet Standards is available in Section 2 of RFC 5741.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
http://www.rfc-editor.org/info/rfc6525.
Stewart, et al. Standards Track [Page 1]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
Copyright Notice
Copyright (c) 2012 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents
(http://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
Table of Contents
1. Introduction ....................................................3
2. Conventions .....................................................4
3. New Chunk Type ..................................................4
3.1. RE-CONFIG Chunk ............................................5
4. New Parameter Types .............................................6
4.1. Outgoing SSN Reset Request Parameter .......................7
4.2. Incoming SSN Reset Request Parameter .......................8
4.3. SSN/TSN Reset Request Parameter ............................9
4.4. Re-configuration Response Parameter .......................10
4.5. Add Outgoing Streams Request Parameter ....................12
4.6. Add Incoming Streams Request Parameter ....................13
5. Procedures .....................................................14
5.1. Sender-Side Procedures ....................................14
5.1.1. Sender-Side Procedures for the RE-CONFIG Chunk .....14
5.1.2. Sender-Side Procedures for the Outgoing SSN
Reset Request Parameter ............................15
5.1.3. Sender-Side Procedures for the Incoming SSN
Reset Request Parameter ............................16
5.1.4. Sender-Side Procedures for the SSN/TSN
Reset Request Parameter ............................17
5.1.5. Sender-Side Procedures for the Add Outgoing
Streams Request Parameter ..........................17
5.1.6. Sender-Side Procedures for the Add Incoming
Streams Request Parameter ..........................17
5.1.7. Sender-Side Procedures for the
Re-configuration Response Parameter ................18
Stewart, et al. Standards Track [Page 2]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
5.2. Receiver-Side Procedures ..................................18
5.2.1. Receiver-Side Procedures for the RE-CONFIG Chunk ...18
5.2.2. Receiver-Side Procedures for the Outgoing
SSN Reset Request Parameter ........................19
5.2.3. Receiver-Side Procedures for the Incoming
SSN Reset Request Parameter ........................20
5.2.4. Receiver-Side Procedures for the SSN/TSN
Reset Request Parameter ............................21
5.2.5. Receiver-Side Procedures for the Add
Outgoing Streams Request Parameter .................21
5.2.6. Receiver-Side Procedures for the Add
Incoming Streams Request Parameter .................22
5.2.7. Receiver-Side Procedures for the
Re-configuration Response Parameter ................22
6. Sockets API Considerations .....................................23
6.1. Events ....................................................23
6.1.1. Stream Reset Event .................................24
6.1.2. Association Reset Event ............................25
6.1.3. Stream Change Event ................................26
6.2. Event Subscription ........................................27
6.3. Socket Options ............................................27
6.3.1. Enable/Disable Stream Reset
(SCTP_ENABLE_STREAM_RESET) .........................28
6.3.2. Reset Incoming and/or Outgoing Streams
(SCTP_RESET_STREAMS) ...............................29
6.3.3. Reset SSN/TSN (SCTP_RESET_ASSOC) ...................29
6.3.4. Add Incoming and/or Outgoing Streams
(SCTP_ADD_STREAMS) .................................30
7. Security Considerations ........................................30
8. IANA Considerations ............................................31
8.1. A New Chunk Type ..........................................31
8.2. Six New Chunk Parameter Types .............................31
9. Acknowledgments ................................................31
10. References ....................................................32
10.1. Normative References .....................................32
10.2. Informative References ...................................32
Appendix A. Examples of the Reconfiguration Procedures ............33
1. Introduction
Many applications that use SCTP as defined in [RFC4960] want the
ability to "reset" a stream. The intention of resetting a stream is
to set the Stream Sequence Numbers (SSNs) of the stream back to
'zero' with a corresponding notification to the application layer
that the reset has been performed. Applications requiring this
feature want to "reuse" streams for different purposes but still
utilize the SSN so that the application can track the message flows.
Thus, without this feature, a new use of an old stream would result
Stewart, et al. Standards Track [Page 3]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
in message numbers greater than expected, unless there is a protocol
mechanism to "reset the streams back to zero". This document also
includes methods for resetting the Transmission Sequence Numbers
(TSNs), adding additional streams, and resetting all SSNs.
The sockets API for SCTP defined in [RFC6458] exposes the sequence
numbers used by SCTP for user message transfer. Therefore, resetting
them can be used by application writers. Please note that the
corresponding sequence number for TCP is not exposed via the sockets
API for TCP.
2. Conventions
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].
3. New Chunk Type
This section defines the new chunk type that will be used to
reconfigure streams. Table 1 illustrates the new chunk type.
+------------+------------------------------------+
| Chunk Type | Chunk Name |
+------------+------------------------------------+
| 130 | Re-configuration Chunk (RE-CONFIG) |
+------------+------------------------------------+
Table 1
It should be noted that the format of the RE-CONFIG chunk requires
that the receiver ignore the chunk if it is not understood and
continue processing all chunks that follow. This is accomplished by
the use of the upper bits of the chunk type as described in
Section 3.2 of [RFC4960].
All transported integer numbers are in "network byte order", a.k.a.
Big Endian.
Stewart, et al. Standards Track [Page 4]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
3.1. RE-CONFIG Chunk
This document adds one new chunk type to SCTP. The chunk has the
following format:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type = 130 | Chunk Flags | Chunk Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
\ \
/ Re-configuration Parameter /
\ \
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
\ \
/ Re-configuration Parameter (optional) /
\ \
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Chunk Type: 1 byte (unsigned integer)
This field holds the IANA-defined chunk type for the RE-CONFIG
chunk. The value of this field is 130.
Chunk Flags: 1 byte (unsigned integer)
This field is set to 0 by the sender and ignored by the receiver.
Chunk Length: 2 bytes (unsigned integer)
This field holds the length of the chunk in bytes, including the
Chunk Type, Chunk Flags, and Chunk Length.
Re-configuration Parameter
This field holds a Re-configuration Request Parameter or a
Re-configuration Response Parameter.
Note that each RE-CONFIG chunk holds at least one parameter and at
most two parameters. Only the following combinations are allowed:
1. Outgoing SSN Reset Request Parameter.
2. Incoming SSN Reset Request Parameter.
3. Outgoing SSN Reset Request Parameter, Incoming SSN Reset Request
Parameter.
4. SSN/TSN Reset Request Parameter.
5. Add Outgoing Streams Request Parameter.
Stewart, et al. Standards Track [Page 5]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
6. Add Incoming Streams Request Parameter.
7. Add Outgoing Streams Request Parameter, Add Incoming Streams
Request Parameter.
8. Re-configuration Response Parameter.
9. Re-configuration Response Parameter, Outgoing SSN Reset Request
Parameter.
10. Re-configuration Response Parameter, Re-configuration Response
Parameter.
If a sender transmits an unsupported combination, the receiver SHOULD
send an ERROR chunk with a Protocol Violation cause, as defined in
Section 3.3.10.13 of [RFC4960]).
4. New Parameter Types
This section defines the new parameter types that will be used in the
RE-CONFIG chunk. Table 2 illustrates the new parameter types.
+----------------+----------------------------------------+
| Parameter Type | Parameter Name |
+----------------+----------------------------------------+
| 13 | Outgoing SSN Reset Request Parameter |
| 14 | Incoming SSN Reset Request Parameter |
| 15 | SSN/TSN Reset Request Parameter |
| 16 | Re-configuration Response Parameter |
| 17 | Add Outgoing Streams Request Parameter |
| 18 | Add Incoming Streams Request Parameter |
+----------------+----------------------------------------+
Table 2
It should be noted that the parameter format requires that the
receiver stop processing the parameter and not process any further
parameters within the chunk if the parameter type is not recognized.
This is accomplished by the use of the upper bits of the parameter
type as described in Section 3.2.1 of [RFC4960].
All transported integer numbers are in "network byte order", a.k.a.
Big Endian.
Stewart, et al. Standards Track [Page 6]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
4.1. Outgoing SSN Reset Request Parameter
This parameter is used by the sender to request the reset of some or
all outgoing streams.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Parameter Type = 13 | Parameter Length = 16 + 2 * N |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Re-configuration Request Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Re-configuration Response Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Sender's Last Assigned TSN |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Stream Number 1 (optional) | Stream Number 2 (optional) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
/ ...... /
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Stream Number N-1 (optional) | Stream Number N (optional) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Parameter Type: 2 bytes (unsigned integer)
This field holds the IANA-defined parameter type for the Outgoing
SSN Reset Request Parameter. The value of this field is 13.
Parameter Length: 2 bytes (unsigned integer)
This field holds the length in bytes of the parameter; the value
MUST be 16 + 2 * N, where N is the number of stream numbers
listed.
Re-configuration Request Sequence Number: 4 bytes (unsigned integer)
This field is used to identify the request. It is a monotonically
increasing number that is initialized to the same value as the
initial TSN. It is increased by 1 whenever sending a new Re-
configuration Request Parameter.
Re-configuration Response Sequence Number: 4 bytes (unsigned
integer)
When this Outgoing SSN Reset Request Parameter is sent in response
to an Incoming SSN Reset Request Parameter, this parameter is also
an implicit response to the incoming request. This field then
holds the Re-configuration Request Sequence Number of the incoming
request. In other cases, it holds the next expected
Re-configuration Request Sequence Number minus 1.
Stewart, et al. Standards Track [Page 7]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
Sender's Last Assigned TSN: 4 bytes (unsigned integer)
This value holds the next TSN minus 1 -- in other words, the last
TSN that this sender assigned.
Stream Number 1..N: 2 bytes (unsigned integer)
This optional field, if included, is used to indicate specific
streams that are to be reset. If no streams are listed, then all
streams are to be reset.
This parameter can appear in a RE-CONFIG chunk. This parameter MUST
NOT appear in any other chunk type.
4.2. Incoming SSN Reset Request Parameter
This parameter is used by the sender to request that the peer reset
some or all of its outgoing streams.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Parameter Type = 14 | Parameter Length = 8 + 2 * N |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Re-configuration Request Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Stream Number 1 (optional) | Stream Number 2 (optional) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
/ ...... /
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Stream Number N-1 (optional) | Stream Number N (optional) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Parameter Type: 2 bytes (unsigned integer)
This field holds the IANA-defined parameter type for the Incoming
SSN Reset Request Parameter. The value of this field is 14.
Parameter Length: 2 bytes (unsigned integer)
This field holds the length in bytes of the parameter; the value
MUST be 8 + 2 * N.
Re-configuration Request Sequence Number: 4 bytes (unsigned integer)
This field is used to identify the request. It is a monotonically
increasing number that is initialized to the same value as the
initial TSN. It is increased by 1 whenever sending a new Re-
configuration Request Parameter.
Stewart, et al. Standards Track [Page 8]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
Stream Number 1..N: 2 bytes (unsigned integer)
This optional field, if included, is used to indicate specific
streams that are to be reset. If no streams are listed, then all
streams are to be reset.
This parameter can appear in a RE-CONFIG chunk. This parameter MUST
NOT appear in any other chunk type.
4.3. SSN/TSN Reset Request Parameter
This parameter is used by the sender to request a reset of the TSN
and SSN numbering of all incoming and outgoing streams.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Parameter Type = 15 | Parameter Length = 8 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Re-configuration Request Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Parameter Type: 2 bytes (unsigned integer)
This field holds the IANA-defined parameter type for the SSN/TSN
Reset Request Parameter. The value of this field is 15.
Parameter Length: 2 bytes (unsigned integer)
This field holds the length in bytes of the parameter; the value
MUST be 8.
Re-configuration Request Sequence Number: 4 bytes (unsigned integer)
This field is used to identify the request. It is a monotonically
increasing number that is initialized to the same value as the
initial TSN. It is increased by 1 whenever sending a new Re-
configuration Request Parameter.
This parameter can appear in a RE-CONFIG chunk. This parameter MUST
NOT appear in any other chunk type.
Stewart, et al. Standards Track [Page 9]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
4.4. Re-configuration Response Parameter
This parameter is used by the receiver of a Re-configuration Request
Parameter to respond to the request.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Parameter Type = 16 | Parameter Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Re-configuration Response Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Result |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Sender's Next TSN (optional) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Receiver's Next TSN (optional) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Parameter Type: 2 bytes (unsigned integer)
This field holds the IANA-defined parameter type for the
Re-configuration Response Parameter. The value of this field
is 16.
Parameter Type Length: 2 bytes (unsigned integer)
This field holds the length in bytes of the parameter; the value
MUST be 12 if the optional fields are not present and 20
otherwise.
Re-configuration Response Sequence Number: 4 bytes (unsigned
integer)
This value is copied from the request parameter and is used by the
receiver of the Re-configuration Response Parameter to tie the
response to the request.
Stewart, et al. Standards Track [Page 10]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
Result: 4 bytes (unsigned integer)
This value describes the result of the processing of the request.
It is encoded as indicated in Table 3:
+--------+-------------------------------------+
| Result | Description |
+--------+-------------------------------------+
| 0 | Success - Nothing to do |
| 1 | Success - Performed |
| 2 | Denied |
| 3 | Error - Wrong SSN |
| 4 | Error - Request already in progress |
| 5 | Error - Bad Sequence Number |
| 6 | In progress |
+--------+-------------------------------------+
Table 3
Sender's Next TSN: 4 bytes (unsigned integer)
This field holds the TSN that the sender of the response will use
to send the next DATA chunk. The field is only applicable in
responses to SSN/TSN reset requests.
Receiver's Next TSN: 4 bytes (unsigned integer)
This field holds the TSN that the receiver of the response must
use to send the next DATA chunk. The field is only applicable in
responses to SSN/TSN reset requests.
Either both optional fields (Sender's Next TSN and Receiver's Next
TSN) MUST be present, or no field.
This parameter can appear in a RE-CONFIG chunk. This parameter MUST
NOT appear in any other chunk type.
Stewart, et al. Standards Track [Page 11]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
4.5. Add Outgoing Streams Request Parameter
This parameter is used by the sender to request that an additional
number of outgoing streams (i.e., the receiver's incoming streams) be
added to the association.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Parameter Type = 17 | Parameter Length = 12 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Re-configuration Request Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Number of new streams | Reserved |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Parameter Type: 2 bytes (unsigned integer)
This field holds the IANA-defined parameter type for the Add
Outgoing Streams Request Parameter. The value of this field
is 17.
Parameter Length: 2 bytes (unsigned integer)
This field holds the length in bytes of the parameter; the value
MUST be 12.
Re-configuration Request Sequence Number: 4 bytes (unsigned integer)
This field is used to identify the request. It is a monotonically
increasing number that is initialized to the same value as the
initial TSN. It is increased by 1 whenever sending a new Re-
configuration Request Parameter.
Number of new streams: 2 bytes (unsigned integer)
This value holds the number of additional outgoing streams that
the sender requests be added to the association. Streams are
added in order and are consecutive; e.g., if an association has 4
outgoing streams (0-3) and a request is made to add 3 streams,
then the new streams will be 4, 5, and 6.
Reserved: 2 bytes (unsigned integer)
This field is reserved. It SHOULD be set to 0 by the sender and
ignored by the receiver.
This parameter MAY appear in a RE-CONFIG chunk. This parameter MUST
NOT appear in any other chunk type.
Stewart, et al. Standards Track [Page 12]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
4.6. Add Incoming Streams Request Parameter
This parameter is used by the sender to request that the peer add an
additional number of outgoing streams (i.e., the sender's incoming
streams) to the association.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Parameter Type = 18 | Parameter Length = 12 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Re-configuration Request Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Number of new streams | Reserved |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Parameter Type: 2 bytes (unsigned integer)
This field holds the IANA-defined parameter type for the Add
Incoming Streams Request Parameter. The value of this field
is 18.
Parameter Length: 2 bytes (unsigned integer)
This field holds the length in bytes of the parameter; the value
MUST be 12.
Re-configuration Request Sequence Number: 4 bytes (unsigned integer)
This field is used to identify the request. It is a monotonically
increasing number that is initialized to the same value as the
initial TSN. It is increased by 1 whenever sending a new Re-
configuration Request Parameter.
Number of new streams: 2 bytes (unsigned integer)
This value holds the number of additional incoming streams that
the sender requests be added to the association. Streams are
added in order and are consecutive; e.g., if an association has 4
outgoing streams (0-3) and a request is made to add 3 streams,
then the new streams will be 4, 5, and 6.
Reserved: 2 bytes (unsigned integer)
This field is reserved. It SHOULD be set to 0 by the sender and
ignored by the receiver.
This parameter MAY appear in a RE-CONFIG chunk. This parameter MUST
NOT appear in any other chunk type.
Stewart, et al. Standards Track [Page 13]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
5. Procedures
This section defines the procedures used by both the sender and
receiver of a RE-CONFIG chunk. Various examples of re-configuration
scenarios are given in Appendix A.
One important thing to remember about SCTP streams is that they are
uni-directional and there is no correspondence between outgoing and
incoming streams. The procedures outlined in this section are
designed so that the incoming side will always reset its SSN first
(before the outgoing side), which means the re-configuration request
must always originate from the outgoing side. These two issues have
important ramifications upon how an SCTP endpoint might request that
its incoming streams be reset. In effect, it must ask the peer to
start an outgoing reset procedure and once that request is
acknowledged let the peer actually control the reset operation.
5.1. Sender-Side Procedures
This section describes the procedures related to the sending of
RE-CONFIG chunks. A RE-CONFIG chunk is composed of one or two Type-
Length-Value (TLV) parameters.
5.1.1. Sender-Side Procedures for the RE-CONFIG Chunk
The SCTP protocol extension described in this document uses the
Supported Extensions Parameter defined in [RFC5061] for negotiating
the support.
An SCTP endpoint supporting this extension MUST include the chunk
type of the RE-CONFIG chunk in the Supported Extensions Parameter in
either the INIT or INIT-ACK. Before sending a RE-CONFIG chunk, the
sender MUST ensure that the peer advertised support for the
re-configuration extension. If the chunk type of the RE-CONFIG chunk
does not appear in the supported extension's list of chunks, then the
sender MUST NOT send any re-configuration request to the peer, and
any request by the application for such service SHOULD be responded
to with an appropriate error indicating that the peer SCTP stack does
not support the re-configuration extension.
At any given time, there MUST NOT be more than one request in flight.
So, if the Re-configuration Timer is running and the RE-CONFIG chunk
contains at least one request parameter, the chunk MUST be buffered.
After packaging the RE-CONFIG chunk and sending it to the peer, the
sender MUST start the Re-configuration Timer if the RE-CONFIG chunk
contains at least one request parameter. If it contains no request
parameters, the Re-configuration Timer MUST NOT be started. This
Stewart, et al. Standards Track [Page 14]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
timer MUST use the same value as SCTP's data transmission timer
(i.e., the retransmission timeout (RTO) timer) and MUST use
exponential backoff, doubling the value at every expiration. If the
timer expires, besides doubling the value, the sender MUST retransmit
the RE-CONFIG chunk, increment the appropriate error counts (for both
the association and the destination), and perform threshold
management, possibly destroying the association if SCTP
retransmission thresholds are exceeded.
5.1.2. Sender-Side Procedures for the Outgoing SSN Reset Request
Parameter
When an SCTP sender wants to reset the SSNs of some or all outgoing
streams, it can send an Outgoing SSN Reset Request Parameter,
provided that the Re-configuration Timer is not running. The
following steps must be followed:
A1: The sender MUST stop assigning new SSNs to new user data
provided by the upper layer for the affected streams and queue
it. This is because it is not known whether the receiver of the
request will accept or deny it; moreover, a lost request might
cause an out-of-sequence error in a stream that the receiver is
not yet prepared to handle.
A2: The sender MUST assign the next re-configuration request
sequence number and MUST put it into the Re-configuration
Request Sequence Number field of the Outgoing SSN Reset Request
Parameter. The next re-configuration request sequence number
MUST then be incremented by 1.
A3: The Sender's Last Assigned TSN MUST be set to the next TSN the
sender assigns minus 1.
A4: If this Outgoing SSN Reset Request Parameter is sent in response
to an Incoming SSN Reset Request Parameter, the stream numbers
MUST be copied from the Incoming SSN Reset Request Parameter to
the Outgoing SSN Reset Request Parameter. The Re-configuration
Response Sequence Number of the Outgoing SSN Reset Request
Parameter MUST be the Re-configuration Request Sequence Number
of the Incoming SSN Reset Request Parameter. If this Outgoing
SSN Reset Request Parameter is sent at the request of the upper
layer and the sender requests that all outgoing streams be
reset, stream numbers SHOULD NOT be put into the Outgoing SSN
Reset Request Parameter. If the sender requests that only some
outgoing streams be reset, these stream numbers MUST be placed
in the Outgoing SSN Reset Request Parameter. The
Re-configuration Response Sequence Number is the next expected
Re-configuration Request Sequence Number of the peer minus 1.
Stewart, et al. Standards Track [Page 15]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
A5: The Outgoing SSN Reset Request Parameter MUST be put into a
RE-CONFIG Chunk. The Outgoing SSN Reset Request Parameter MAY
be put together with either an Incoming SSN Reset Request
Parameter or a Re-configuration Response Parameter, but not with
both. It MUST NOT be put together with any other parameter, as
described in Section 3.1.
A6: The RE-CONFIG chunk MUST be sent following the rules given in
Section 5.1.1.
5.1.3. Sender-Side Procedures for the Incoming SSN Reset Request
Parameter
When an SCTP sender wants to reset the SSNs of some or all incoming
streams, it can send an Incoming SSN Reset Request Parameter,
provided that the Re-configuration Timer is not running. The
following steps must be followed:
B1: The sender MUST assign the next re-configuration request
sequence number and MUST put it into the Re-configuration
Request Sequence Number field of the Incoming SSN Reset Request
Parameter. After assigning it, the next re-configuration
request sequence number MUST be incremented by 1.
B2: If the sender wants all incoming streams to be reset, stream
numbers SHOULD NOT be put into the Incoming SSN Reset Request
Parameter. If the sender wants only some incoming streams to be
reset, these stream numbers MUST be filled in the Incoming SSN
Reset Request Parameter.
B3: The Incoming SSN Reset Request Parameter MUST be put into a
RE-CONFIG Chunk. It MAY be put together with an Outgoing SSN
Reset Request Parameter but MUST NOT be put together with any
other parameter.
B4: The RE-CONFIG chunk MUST be sent following the rules given in
Section 5.1.1.
When sending an Incoming SSN Reset Request, there is a potential that
the peer has just reset or is in the process of resetting the same
streams via an Outgoing SSN Reset Request. This collision scenario
is discussed in Section 5.2.3.
Stewart, et al. Standards Track [Page 16]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
5.1.4. Sender-Side Procedures for the SSN/TSN Reset Request Parameter
When an SCTP sender wants to reset the SSNs and TSNs, it can send an
SSN/TSN Reset Request Parameter, provided that the Re-configuration
Timer is not running. The following steps must be followed:
C1: The sender MUST assign the next re-configuration request
sequence number and put it into the Re-configuration Request
Sequence Number field of the SSN/TSN Reset Request Parameter.
After assigning it, the next re-configuration request sequence
number MUST be incremented by 1.
C2: The sender has either no outstanding TSNs or considers all
outstanding TSNs abandoned. The sender MUST queue any user
data, suspending any new transmissions and TSN assignment until
the reset procedure is finished by the peer either acknowledging
or denying the request.
C3: The SSN/TSN Reset Request Parameter MUST be put into a RE-CONFIG
chunk. There MUST NOT be any other parameter in this chunk.
C4: The RE-CONFIG chunk MUST be sent following the rules given in
Section 5.1.1.
Only one SSN/TSN Reset Request SHOULD be sent within 30 seconds,
which is considered a maximum segment lifetime (the IP MSL).
5.1.5. Sender-Side Procedures for the Add Outgoing Streams Request
Parameter
When an SCTP sender wants to increase the number of outbound streams
to which it is able to send, it may add an Add Outgoing Streams
Request Parameter to the RE-CONFIG chunk. Upon sending the request,
the sender MUST await a positive acknowledgment (Success) before
using any additional stream added by this request. Note that new
streams are added adjacent to the previous streams with no gaps.
This means that if a request is made to add 2 streams to an
association that already has 5 (0-4), then the new streams, upon
successful completion, are streams 5 and 6. A new stream MUST use
SSN 0 for its first ordered message.
5.1.6. Sender-Side Procedures for the Add Incoming Streams Request
Parameter
When an SCTP sender wants to increase the number of inbound streams
to which the peer is able to send, it may add an Add Incoming Streams
Request Parameter to the RE-CONFIG chunk. Note that new streams are
added adjacent to the previous streams with no gaps. This means that
Stewart, et al. Standards Track [Page 17]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
if a request is made to add 2 streams to an association that already
has 5 (0-4), then the new streams, upon successful completion, are
streams 5 and 6. A new stream MUST use SSN 0 for its first ordered
message.
5.1.7. Sender-Side Procedures for the Re-configuration Response
Parameter
When an implementation receives a reset request parameter, it must
respond with a Re-configuration Response Parameter in the following
manner:
D1: The Re-configuration Request Sequence number of the incoming
request MUST be copied to the Re-configuration Response Sequence
Number field of the Re-configuration Response Parameter.
D2: The result of the processing of the incoming request according
to Table 3 MUST be placed in the Result field of the
Re-configuration Response Parameter.
D3: If the incoming request is an SSN/TSN reset request, the
Sender's Next TSN field MUST be filled with the next TSN the
sender of this Re-configuration Response Parameter will assign.
For other requests, the Sender's Next TSN field, which is
optional, MUST NOT be used.
D4: If the incoming request is an SSN/TSN reset request, the
Receiver's Next TSN field MUST be filled with a TSN such that
the sender of the Re-configuration Response Parameter can be
sure it can discard received DATA chunks with smaller TSNs. The
value SHOULD be the smallest TSN not acknowledged by the
receiver of the request plus 2^31. For other requests, the
Receiver's Next TSN field, which is optional, MUST NOT be used.
5.2. Receiver-Side Procedures
5.2.1. Receiver-Side Procedures for the RE-CONFIG Chunk
Upon reception of a RE-CONFIG chunk, each parameter within it SHOULD
be processed. If multiple parameters have to be returned, they MUST
be put into one RE_CONFIG chunk. If the received RE-CONFIG chunk
contains at least one request parameter, a selective acknowledgment
(SACK) chunk SHOULD be sent back and MAY be bundled with the
RE-CONFIG chunk. If the received RE-CONFIG chunk contains at least
one request and based on the analysis of the Re-configuration Request
Sequence Numbers this is the last received RE-CONFIG chunk (i.e., a
retransmission), the same RE-CONFIG chunk MUST to be sent back in
response, as it was earlier.
Stewart, et al. Standards Track [Page 18]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
The decision to deny a re-configuration request is an administrative
decision and may be user configurable even after the association has
formed. If for whatever reason the endpoint does not wish to process
a received request parameter, it MUST send a corresponding response
parameter as described in Section 5.1.7, with an appropriate Result
field.
Implementation Note: It is recommended that a SACK be bundled with
any re-configuration response so that any retransmission
processing that needs to occur can be expedited. A SACK chunk is
not required for this feature to work, but it will in effect help
minimize the delay in completing a re-configuration operation in
the face of any data loss.
5.2.2. Receiver-Side Procedures for the Outgoing SSN Reset Request
Parameter
In the case that the endpoint is willing to perform a stream reset,
the following steps must be followed:
E1: If the Re-configuration Timer is running for the
Re-configuration Request Sequence Number indicated in the
Re-configuration Response Sequence Number field, the
Re-configuration Request Sequence Number MUST be marked as
acknowledged. If all Re-configuration Request Sequence Numbers
for which the Re-configuration Timer is running are
acknowledged, the Re-configuration Timer MUST be stopped.
E2: If the Sender's Last Assigned TSN is greater than the cumulative
acknowledgment point, then the endpoint MUST enter "deferred
reset processing". In this mode, any data arriving with a TSN
larger than the Sender's Last Assigned TSN for the affected
stream(s) MUST be queued locally and held until the cumulative
acknowledgment point reaches the Sender's Last Assigned TSN.
When the cumulative acknowledgment point reaches the last
assigned TSN, then proceed to the next step. If the endpoint
enters "deferred reset processing", it MUST put a Re-
configuration Response Parameter into a RE-CONFIG chunk
indicating "In progress" and MUST send the RE-CONFIG chunk.
E3: If no stream numbers are listed in the parameter, then all
incoming streams MUST be reset to 0 as the next expected SSN.
If specific stream numbers are listed, then only these specific
streams MUST be reset to 0, and all other non-listed SSNs remain
unchanged.
E4: Any queued TSNs (queued at step E2) MUST now be released and
processed normally.
Stewart, et al. Standards Track [Page 19]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
E5: A Re-configuration Response Parameter MUST be put into a
RE-CONFIG chunk indicating successful processing.
E6: The RE-CONFIG chunk MUST be sent after the incoming RE-CONFIG
chunk is processed completely.
5.2.3. Receiver-Side Procedures for the Incoming SSN Reset Request
Parameter
In the case that the endpoint is willing to perform a stream reset,
the following steps must be followed:
F1: An Outgoing SSN Reset Request Parameter MUST be put into a
RE-CONFIG chunk according to Section 5.1.2.
F2: The RE-CONFIG chunk MUST be sent after the incoming RE-CONFIG
chunk is processed completely.
When a peer endpoint requests an Incoming SSN Reset Request, it is
possible that the local endpoint has just sent an Outgoing SSN Reset
Request on the same association and has not yet received a response.
In such a case, the local endpoint MUST do the following:
o If the Outgoing SSN Reset Request Parameter that was just sent
completely overlaps the received Incoming SSN Reset Request
Parameter, respond to the peer with an acknowledgment indicating
that there was "Nothing to do".
o Otherwise, process the Incoming SSN Reset Request Parameter
normally, responding to the peer with an acknowledgment. Note
that this case includes the situation where some of the streams
requested overlap with the Outgoing SSN Reset Request that was
just sent. Even in such a situation, the Incoming SSN Reset MUST
be processed normally, even though this means that (if the
endpoint elects to do the stream reset) streams that are already
at SSN 0 will be reset a subsequent time.
It is also possible that the Incoming request will arrive after the
Outgoing SSN Reset Request just completed. In such a case, all of
the streams being requested will be already set to 0. If so, the
local endpoint SHOULD send back a Re-configuration Response with the
success code "Nothing to do".
Note that in either race condition, the local endpoint could
optionally also perform the reset. This would result in streams that
are already at sequence 0 being reset again to 0, which would cause
no harm to the application but will add an extra message to the
network.
Stewart, et al. Standards Track [Page 20]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
5.2.4. Receiver-Side Procedures for the SSN/TSN Reset Request Parameter
In the case that the endpoint is willing to perform an SSN/TSN reset,
the following steps must be followed:
G1: Compute an appropriate value for the Receiver's Next TSN -- the
TSN that the peer should use to send the next DATA chunk. The
value SHOULD be the smallest TSN not acknowledged by the
receiver of the request plus 2^31.
G2: Compute an appropriate value for the local endpoint's next TSN,
i.e., the next TSN assigned by the receiver of the SSN/TSN reset
chunk. The value SHOULD be the highest TSN sent by the receiver
of the request plus 1.
G3: The same processing as though a SACK chunk with no gap report
and a cumulative TSN ACK of the Sender's Next TSN minus 1 were
received MUST be performed.
G4: The same processing as though a FWD-TSN chunk (as defined in
[RFC3758]) with all streams affected and a new cumulative TSN
ACK of the Receiver's Next TSN minus 1 were received MUST be
performed.
G5: The next expected and outgoing SSNs MUST be reset to 0 for all
incoming and outgoing streams.
G6: A Re-configuration Response Parameter MUST be put into a
RE-CONFIG chunk indicating successful processing.
G7: The RE-CONFIG chunk MUST be sent after the incoming RE-CONFIG
chunk is processed completely.
5.2.5. Receiver-Side Procedures for the Add Outgoing Streams Request
Parameter
When an SCTP endpoint receives a re-configuration request adding
additional streams, it MUST send a response parameter either
acknowledging or denying the request. If the response is successful,
the receiver MUST add the requested number of inbound streams to the
association, initializing the next expected SSN to 0. The SCTP
endpoint SHOULD deny the request if the number of streams exceeds a
limit that should be configurable by the application.
Stewart, et al. Standards Track [Page 21]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
5.2.6. Receiver-Side Procedures for the Add Incoming Streams Request
Parameter
When an SCTP endpoint receives a re-configuration request adding
additional incoming streams, it MUST either send a response parameter
denying the request or send a corresponding Add Outgoing Streams
Request Parameter, following the rules given in Section 5.1.5. The
SCTP endpoint SHOULD deny the request if the number of streams
exceeds a limit that should be configurable by the application.
5.2.7. Receiver-Side Procedures for the Re-configuration Response
Parameter
On receipt of a Re-configuration Response Parameter, the following
must be performed:
H1: If the Re-configuration Timer is running for the Re-
configuration Request Sequence Number indicated in the Re-
configuration Response Sequence Number field, the
Re-configuration Request Sequence Number MUST be marked as
acknowledged. If all Re-configuration Request Sequence Numbers
for which the Re-configuration Timer is running are
acknowledged, the Re-configuration Timer MUST be stopped. If
the timer was not running for the Re-configuration Request
Sequence Number, the processing of the Re-configuration Response
Parameter is complete.
H2: If the Result field indicates "In progress", the timer for the
Re-configuration Request Sequence Number is started again. If
the timer runs out, the RE-CONFIG chunk MUST be retransmitted
but the corresponding error counters MUST NOT be incremented.
H3: If the Result field does not indicate successful processing, the
processing of this response is complete.
H4: If the request was an Outgoing SSN Reset Request, the affected
streams MUST now be reset and all queued data should now be
processed. The assigning of SSNs is allowed again.
H5: If the request was an SSN/TSN Reset Request, new data MUST be
sent from the Receiver's Next TSN, beginning with SSN 0 for all
outgoing streams. All incoming streams MUST be reset to 0 as
the next expected SSN. The peer will send DATA chunks starting
with the Sender's Next TSN.
Stewart, et al. Standards Track [Page 22]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
H6: If the request was to add outgoing streams, the endpoint MUST
add the additional streams to the association. Note that an
implementation may allocate the memory at the time of the
request, but it MUST NOT use the streams until the peer has
responded with a positive acknowledgment.
6. Sockets API Considerations
This section describes how the sockets API defined in [RFC6458] needs
to be extended to make the features of SCTP re-configuration
available to the application.
Please note that this section is informational only.
6.1. Events
When the SCTP_ASSOC_CHANGE notification is delivered and both peers
support the extension described in this document,
SCTP_ASSOC_SUPPORTS_RE_CONFIG should be listed in the sac_info field.
The union sctp_notification {} is extended to contain three new
fields: sn_strreset_event, sn_assocreset_event, and
sn_strchange_event:
union sctp_notification {
struct sctp_tlv {
uint16_t sn_type; /* Notification type. */
uint16_t sn_flags;
uint32_t sn_length;
} sn_header;
...
struct sctp_stream_reset_event sn_strreset_event;
struct sctp_assoc_reset_event sn_assocreset_event;
struct sctp_stream_change_event sn_strchange_event;
...
}
The corresponding sn_type values are given in Table 4.
+--------------------------+----------------------------------------+
| sn_type | valid field in union sctp_notification |
+--------------------------+----------------------------------------+
| SCTP_STREAM_RESET_EVENT | sn_strreset_event |
| SCTP_ASSOC_RESET_EVENT | sn_assocreset_event |
| SCTP_STREAM_CHANGE_EVENT | sn_strchange_event |
+--------------------------+----------------------------------------+
Table 4
Stewart, et al. Standards Track [Page 23]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
These events are delivered when an incoming request was processed
successfully or the processing of an outgoing request has been
finished.
6.1.1. Stream Reset Event
The event delivered has the following structure:
struct sctp_stream_reset_event {
uint16_t strreset_type;
uint16_t strreset_flags;
uint32_t strreset_length;
sctp_assoc_t strreset_assoc_id;
uint16_t strreset_stream_list[];
};
strreset_type: This field should be SCTP_STREAM_RESET_EVENT.
strreset_flags: This field is formed from the bitwise OR of one or
more of the following currently defined flags:
SCTP_STREAM_RESET_INCOMING_SSN: The stream identifiers given in
strreset_stream_list[] refer to incoming streams of the
endpoint.
SCTP_STREAM_RESET_OUTGOING_SSN: The stream identifiers given in
strreset_stream_list[] refer to outgoing streams of the
endpoint.
SCTP_STREAM_RESET_DENIED: The corresponding request was denied by
the peer.
SCTP_STREAM_RESET_FAILED: The corresponding request failed.
At least one of SCTP_STREAM_RESET_INCOMING_SSN and
SCTP_STREAM_RESET_OUTGOING_SSN is set. SCTP_STREAM_RESET_DENIED
and SCTP_STREAM_RESET_FAILED are mutually exclusive. If the
request was successful, none of these are set.
strreset_length: This field is the total length in bytes of the
delivered event, including the header.
strreset_assoc_id: This association id field holds the identifier
for the association. All notifications for a given association
have the same association identifier. For one-to-one style
sockets, this field is ignored.
Stewart, et al. Standards Track [Page 24]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
strreset_stream_list: This is the list of stream identifiers to
which this event refers. An empty list identifies all streams as
being reset. Depending on strreset_flags, the identifiers refer
to incoming or outgoing streams, or both.
6.1.2. Association Reset Event
The event delivered has the following structure:
struct sctp_assoc_reset_event {
uint16_t assocreset_type;
uint16_t assocreset_flags;
uint32_t assocreset_length;
sctp_assoc_t assocreset_assoc_id;
uint32_t assocreset_local_tsn;
uint32_t assocreset_remote_tsn;
};
assocreset_type: This field should be SCTP_ASSOC_RESET_EVENT.
assocreset_flags: This field is formed from the bitwise OR of one or
more of the following currently defined flags:
SCTP_ASSOC_RESET_DENIED: The corresponding outgoing request was
denied by the peer.
SCTP_ASSOC_RESET_FAILED: The corresponding outgoing request
failed.
SCTP_ASSOC_RESET_DENIED and SCTP_ASSOC_RESET_FAILED are mutually
exclusive. If the request was successful, none of these are set.
assocreset_length: This field is the total length in bytes of the
delivered event, including the header.
assocreset_assoc_id: This association id field holds the identifier
for the association. All notifications for a given association
have the same association identifier. For one-to-one style
sockets, this field is ignored.
assocreset_local_tsn: This field is the next TSN used by the
endpoint.
assocreset_remote_tsn: This field is the next TSN used by the peer.
Stewart, et al. Standards Track [Page 25]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
6.1.3. Stream Change Event
The event delivered has the following structure:
struct sctp_stream_change_event {
uint16_t strchange_type;
uint16_t strchange_flags;
uint32_t strchange_length;
sctp_assoc_t strchange_assoc_id;
uint16_t strchange_instrms;
uint16_t strchange_outstrms;
};
strchange_type: This field should be SCTP_STREAM_CHANGE_EVENT.
strchange_flags: This field is formed from the bitwise OR of one or
more of the following currently defined flags:
SCTP_STREAM_CHANGE_DENIED: The corresponding request was denied
by the peer.
SCTP_STREAM_CHANGE_FAILED: The corresponding request failed.
SCTP_STREAM_CHANGE_DENIED and SCTP_STREAM_CHANGE_FAILED are
mutually exclusive. If the request was successful, none of these
are set.
strchange_length: This field is the total length in bytes of the
delivered event, including the header.
strchange_assoc_id: This association id field holds the identifier
for the association. All notifications for a given association
have the same association identifier. For one-to-one style
sockets, this field is ignored.
strchange_instrms: The number of streams that the peer is allowed to
use outbound.
strchange_outstrms: The number of streams that the endpoint is
allowed to use outbound.
Stewart, et al. Standards Track [Page 26]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
6.2. Event Subscription
Subscribing to events as described in [RFC6458] uses a setsockopt()
call with the SCTP_EVENT socket option. This option takes the
following structure, which specifies the association, the event type
(using the same value found in the event type field), and an on/off
boolean.
struct sctp_event {
sctp_assoc_t se_assoc_id;
uint16_t se_type;
uint8_t se_on;
};
The user fills in the se_type field with the same value found in the
strreset_type field, i.e., SCTP_STREAM_RESET_EVENT. The user will
also fill in the se_assoc_id field with either the association to set
this event on (this field is ignored for one-to-one style sockets) or
one of the reserved constant values defined in [RFC6458]. Finally,
the se_on field is set with a 1 to enable the event or a 0 to disable
the event.
6.3. Socket Options
Table 5 describes the new socket options that make the
re-configuration features accessible to the user. They all use
IPPROTO_SCTP as their level.
If a call to setsockopt() is used to issue a re-configuration request
while the Re-configuration timer is running, setsockopt() will return
-1, and error is set to EALREADY.
+--------------------------+---------------------------+-----+-----+
| option name | data type | get | set |
+--------------------------+---------------------------+-----+-----+
| SCTP_ENABLE_STREAM_RESET | struct sctp_assoc_value | X | X |
| SCTP_RESET_STREAMS | struct sctp_reset_streams | | X |
| SCTP_RESET_ASSOC | sctp_assoc_t | | X |
| SCTP_ADD_STREAMS | struct sctp_add_streams | | X |
+--------------------------+---------------------------+-----+-----+
Table 5
Stewart, et al. Standards Track [Page 27]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
6.3.1. Enable/Disable Stream Reset (SCTP_ENABLE_STREAM_RESET)
This option allows a user to control whether the SCTP implementation
processes or denies incoming requests in STREAM_RESET chunks.
The default is to deny all incoming requests.
To set or get this option, the user fills in the following structure:
struct sctp_assoc_value {
sctp_assoc_t assoc_id;
uint32_t assoc_value;
};
assoc_id: This parameter is ignored for one-to-one style sockets.
For one-to-many style sockets, this parameter indicates which
association the user is performing an action upon.
assoc_value: This field is formed from the bitwise OR of one or more
of the following currently defined flags:
SCTP_ENABLE_RESET_STREAM_REQ: Process received Incoming/Outgoing
SSN Reset Requests if this flag is set; deny them if not.
SCTP_ENABLE_RESET_ASSOC_REQ: Process received SSN/TSN Reset
Requests if this flag is set; deny them if not.
SCTP_ENABLE_CHANGE_ASSOC_REQ: Process received Add Outgoing
Streams Requests if this flag is set; deny them if not.
The default value is !(SCTP_ENABLE_RESET_STREAM_REQ|
SCTP_ENABLE_RESET_ASSOC_REQ|SCTP_ENABLE_CHANGE_ASSOC_REQ).
Please note that using the option does not have any impact on
subscribing to any related events.
Stewart, et al. Standards Track [Page 28]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
6.3.2. Reset Incoming and/or Outgoing Streams (SCTP_RESET_STREAMS)
This option allows the user to request the reset of incoming and/or
outgoing streams.
To set or get this option, the user fills in the following structure:
struct sctp_reset_streams {
sctp_assoc_t srs_assoc_id;
uint16_t srs_flags;
uint16_t srs_number_streams;
uint16_t srs_stream_list[];
};
srs_assoc_id: This parameter is ignored for one-to-one style
sockets. For one-to-many style sockets, this parameter indicates
which association the user is performing an action upon.
srs_flags: This parameter describes which class of streams is reset.
It is formed from the bitwise OR of one or more of the following
currently defined flags:
* SCTP_STREAM_RESET_INCOMING
* SCTP_STREAM_RESET_OUTGOING
srs_number_streams: This parameter is the number of elements in the
srs_stream_list. If it is zero, the operation is performed on all
streams.
srs_stream_list: This parameter contains a list of stream
identifiers the operation is performed upon. It contains
srs_number_streams elements. If it is empty, the operation is
performed on all streams. Depending on srs_flags, the identifiers
refer to incoming or outgoing streams, or both.
6.3.3. Reset SSN/TSN (SCTP_RESET_ASSOC)
This option allows a user to request the reset of the SSN/TSN.
To set this option, the user provides an option_value of type
sctp_assoc_t.
On one-to-one style sockets, the option_value is ignored. For one-
to-many style sockets, the option_value is the association identifier
of the association the action is to be performed upon.
Stewart, et al. Standards Track [Page 29]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
6.3.4. Add Incoming and/or Outgoing Streams (SCTP_ADD_STREAMS)
This option allows a user to request the addition of a number of
incoming and/or outgoing streams.
To set this option, the user fills in the following structure:
struct sctp_add_streams {
sctp_assoc_t sas_assoc_id;
uint16_t sas_instrms;
uint16_t sas_outstrms;
};
sas_assoc_id: This parameter is ignored for one-to-one style
sockets. For one-to-many style sockets, this parameter indicates
which association the user is performing an action upon.
sas_instrms: This parameter is the number of incoming streams
to add.
sas_outstrms: This parameter is the number of outgoing streams
to add.
An endpoint can limit the number of incoming and outgoing streams by
using the sinit_max_instreams field in the struct sctp_initmsg{} when
issuing an SCTP_INIT socket option, as defined in [RFC6458]. An
incoming request asking for more streams than allowed will be denied.
7. Security Considerations
The SCTP sockets API as described in [RFC6458] exposes the sequence
numbers of received DATA chunks to the application. An application
might expect them to be monotonically increasing. When using the
re-configuration extension, this might no longer be true. Therefore,
the applications must enable this extension explicitly before it is
used. In addition, applications must subscribe explicitly to
notifications related to the re-configuration extension before
receiving them.
SCTP associations are protected against blind attackers by using
verification tags. This is still valid when using the
re-configuration extension. Therefore, this extension does not add
any additional security risk to SCTP in relation to blind attackers.
When both the SSN and TSN are reset, the maximum segment lifetime is
used to avoid TSN wrap-around.
Stewart, et al. Standards Track [Page 30]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
8. IANA Considerations
This document (RFC 6525) is the reference for all registrations
described in this section. The changes are described below.
8.1. A New Chunk Type
A chunk type has been assigned by IANA. The values given in Table 1
have been used. IANA has assigned this value from the pool of chunks
with the upper two bits set to '10'.
This has added a line in the "Chunk Types" registry for SCTP:
Chunk Types
ID Value Chunk Type Reference
----- ---------- ---------
130 Re-configuration Chunk (RE-CONFIG) [RFC6525]
The registration table as defined in [RFC6096] for the chunk flags of
this chunk type is empty.
8.2. Six New Chunk Parameter Types
Six chunk parameter types have been assigned by IANA. It the values
given in Table 2 have been used. IANA has assigned these values from
the pool of parameters with the upper two bits set to '00'.
Six additional lines in the "Chunk Parameter Types" registry for SCTP
have been added:
Chunk Parameter Types
ID Value Chunk Parameter Type Reference
-------- ------------------------------------------------ ---------
13 Outgoing SSN Reset Request Parameter [RFC6525]
14 Incoming SSN Reset Request Parameter [RFC6525]
15 SSN/TSN Reset Request Parameter [RFC6525]
16 Re-configuration Response Parameter [RFC6525]
17 Add Outgoing Streams Request Parameter [RFC6525]
18 Add Incoming Streams Request Parameter [RFC6525]
9. Acknowledgments
The authors wish to thank Paul Aitken, Gorry Fairhurst, Tom Petch,
Kacheong Poon, Irene Ruengeler, Robin Seggelmann, Gavin Shearer, and
Vlad Yasevich for their invaluable comments.
Stewart, et al. Standards Track [Page 31]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
10. References
10.1. Normative References
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119, March 1997.
[RFC3758] Stewart, R., Ramalho, M., Xie, Q., Tuexen, M., and P.
Conrad, "Stream Control Transmission Protocol (SCTP)
Partial Reliability Extension", RFC 3758, May 2004.
[RFC4960] Stewart, R., Ed., "Stream Control Transmission Protocol",
RFC 4960, September 2007.
[RFC5061] Stewart, R., Xie, Q., Tuexen, M., Maruyama, S., and M.
Kozuka, "Stream Control Transmission Protocol (SCTP)
Dynamic Address Reconfiguration", RFC 5061,
September 2007.
[RFC6096] Tuexen, M. and R. Stewart, "Stream Control Transmission
Protocol (SCTP) Chunk Flags Registration", RFC 6096,
January 2011.
10.2. Informative References
[RFC6458] Stewart, R., Tuexen, M., Poon, K., Lei, P., and V.
Yasevich, "Sockets API Extensions for the Stream Control
Transmission Protocol (SCTP)", RFC 6458, December 2011.
Stewart, et al. Standards Track [Page 32]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
Appendix A. Examples of the Reconfiguration Procedures
Please note that this appendix is informational only.
The following message flows between Endpoints E-A and E-Z illustrate
the described procedures. The time progresses in downward direction.
The following example illustrates E-A resetting streams 1 and 2 for
just its outgoing streams.
E-A E-Z
----------[RE-CONFIG(OUT-REQ:X/1,2)]---------->
<-------------[RE-CONFIG(RESP:X)]--------------
The following example illustrates E-A resetting streams 1 and 2 for
just its incoming streams.
E-A E-Z
-----------[RE-CONFIG(IN-REQ:X/1,2)]---------->
<--------[RE-CONFIG(OUT-REQ:Y,X/1,2)]----------
-------------[RE-CONFIG(RESP:Y)]-------------->
The following example illustrates E-A resetting all streams in both
directions.
E-A E-Z
-----[RE-CONFIG(OUT-REQ:X,Y-1|IN-REQ:X+1)]---->
<------[RE-CONFIG(RESP:X|OUT-REQ:Y,X+1)]-------
-------------[RE-CONFIG(RESP:Y)]-------------->
The following example illustrates E-A requesting that the streams and
TSNs be reset. At completion, E-A has the new sending TSN (selected
by the peer) of B, and E-Z has the new sending TSN of A (also
selected by the peer).
E-A E-Z
------------[RE-CONFIG(TSN-REQ:X)]------------>
<-----[RE-CONFIG(RESP:X/S-TSN=A, R-TSN=B)]-----
The following example illustrates E-A requesting the addition of 3
outgoing streams.
E-A E-Z
--------[RE-CONFIG(ADD_OUT_STRMS:X/3)]-------->
<-------------[RE-CONFIG(RESP:X)]--------------
Stewart, et al. Standards Track [Page 33]
^L
RFC 6525 SCTP Stream Reconfiguration February 2012
The following example illustrates E-A requesting the addition of 3
incoming streams.
E-A E-Z
---------[RE-CONFIG(ADD_IN_STRMS:X/3)]-------->
<----[RE-CONFIG(ADD_OUT_STRMS-REQ:Y,X/3)]------
-------------[RE-CONFIG(RESP:Y)]-------------->
Authors' Addresses
Randall R. Stewart
Adara Networks
Chapin, SC 29036
USA
EMail: randall@lakerest.net
Michael Tuexen
Muenster University of Applied Sciences
Stegerwaldstr. 39
48565 Steinfurt
DE
EMail: tuexen@fh-muenster.de
Peter Lei
Cisco Systems, Inc.
9501 Technology Blvd.
West Office Center
Rosemont, IL 60018
USA
EMail: peterlei@cisco.com
Stewart, et al. Standards Track [Page 34]
^L
|