summaryrefslogtreecommitdiff
path: root/doc/rfc/rfc7019.txt
blob: 2939fcea144c5780f068745aba0cdc3c9bc9edba (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
Internet Research Task Force (IRTF)                            J. Buford
Request for Comments: 7019                           Avaya Labs Research
Category: Experimental                                   M. Kolberg, Ed.
ISSN: 2070-1721                                   University of Stirling
                                                          September 2013


                 Application-Layer Multicast Extensions
              to REsource LOcation And Discovery (RELOAD)

Abstract

   We define a REsource LOcation And Discovery (RELOAD) Usage for
   Application-Layer Multicast (ALM) as well as a mapping to the RELOAD
   experimental message type to support ALM.  The ALM Usage is intended
   to support a variety of ALM control algorithms in an overlay-
   independent way.  Two example algorithms are defined, based on Scribe
   and P2PCast.

   This document is a product of the Scalable Adaptive Multicast
   Research Group (SAM RG).

Status of This Memo

   This document is not an Internet Standards Track specification; it is
   published for examination, experimental implementation, and
   evaluation.

   This document defines an Experimental Protocol for the Internet
   community.  This document is a product of the Internet Research Task
   Force (IRTF).  The IRTF publishes the results of Internet-related
   research and development activities.  These results might not be
   suitable for deployment.  This RFC represents the consensus of the
   Scalable Adaptive Multicast Research Group of the Internet Research
   Task Force (IRTF).  Documents approved for publication by the IRSG
   are not a candidate for any level of Internet Standard; see 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/rfc7019.










Buford & Kolberg              Experimental                      [Page 1]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


Copyright Notice

   Copyright (c) 2013 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.

Table of Contents

   1. Introduction ....................................................4
      1.1. Requirements Language ......................................5
   2. Definitions .....................................................5
      2.1. Overlay Network ............................................5
      2.2. Overlay Multicast ..........................................5
      2.3. Source-Specific Multicast (SSM) ............................6
      2.4. Any-Source Multicast (ASM) .................................6
      2.5. Peer .......................................................6
   3. Assumptions .....................................................6
      3.1. Overlay ....................................................6
      3.2. Overlay Multicast ..........................................7
      3.3. RELOAD .....................................................7
      3.4. NAT ........................................................7
      3.5. Tree Topology ..............................................7
   4. Architecture Extensions to RELOAD ...............................7
   5. RELOAD ALM Usage ................................................9
   6. ALM Tree Control Signaling ......................................9
   7. ALM Messages Mapped to RELOAD ..................................11
      7.1. Introduction ..............................................11
      7.2. Tree Lifecycle Messages ...................................12
           7.2.1. CreateALMTree ......................................12
           7.2.2. CreateALMTreeResponse ..............................13
           7.2.3. Join ...............................................13
           7.2.4. JoinAccept (Join Response) .........................14
           7.2.5. JoinReject (Join Response) .........................15
           7.2.6. JoinConfirm ........................................15
           7.2.7. JoinConfirmResponse ................................16
           7.2.8. JoinDecline ........................................16
           7.2.9. JoinDeclineResponse ................................16
           7.2.10. Leave .............................................17
           7.2.11. LeaveResponse .....................................17
           7.2.12. Reform or Optimize Tree ...........................17
           7.2.13. ReformResponse ....................................18
           7.2.14. Heartbeat .........................................18



Buford & Kolberg              Experimental                      [Page 2]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


           7.2.15. Heartbeat Response ................................18
           7.2.16. NodeQuery .........................................19
           7.2.17. NodeQueryResponse .................................19
           7.2.18. Push ..............................................21
           7.2.19. PushResponse ......................................22
   8. Scribe Algorithm ...............................................22
      8.1. Overview ..................................................22
      8.2. Create ....................................................23
      8.3. Join ......................................................24
      8.4. Leave .....................................................24
      8.5. JoinConfirm ...............................................24
      8.6. JoinDecline ...............................................24
      8.7. Multicast .................................................24
   9. P2PCast Algorithm ..............................................25
      9.1. Overview ..................................................25
      9.2. Message Mapping ...........................................25
      9.3. Create ....................................................26
      9.4. Join ......................................................26
      9.5. Leave .....................................................28
      9.6. JoinConfirm ...............................................28
      9.7. Multicast .................................................28
   10. Message Format ................................................28
      10.1. ALMHeader Definition .....................................30
      10.2. ALMMessageContents Definition ............................31
      10.3. Response Codes ...........................................31
   11. Examples ......................................................32
      11.1. Create Tree ..............................................32
      11.2. Join Tree ................................................33
      11.3. Leave Tree ...............................................35
      11.4. Push Data ................................................35
   12. Kind Definitions ..............................................36
      12.1. ALMTree Kind Definition ..................................36
   13. RELOAD Configuration File Extensions ..........................37
   14. IANA Considerations ...........................................37
      14.1. ALM Algorithm Types ......................................37
      14.2. Message Code Registration ................................38
      14.3. Error Code Registration ..................................38
   15. Security Considerations .......................................39
   16. Acknowledgements ..............................................40
   17. References ....................................................40
      17.1. Normative Reference ......................................40
      17.2. Informative References ...................................40









Buford & Kolberg              Experimental                      [Page 3]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


1.  Introduction

   The concept of scalable adaptive multicast includes both scaling
   properties and adaptability properties.  Scalability is intended to
   cover:

   o  large group size

   o  large numbers of small groups

   o  rate of group membership change

   o  admission control for QoS

   o  use with network-layer QoS mechanisms

   o  varying degrees of reliability

   o  trees connecting nodes over the global Internet

   Adaptability includes

   o  use of different control mechanisms for different multicast trees
      depending on initial application parameters or application classes

   o  changing multicast tree structure depending on changes in
      application requirements, network conditions, and membership

   Application-Layer Multicast (ALM) has been demonstrated to be a
   viable multicast technology where native multicast isn't available.
   Many ALM designs have been proposed.  This ALM Usage focuses on:

   o  ALM implemented in RELOAD-based overlays

   o  Support for a variety of ALM control algorithms

   o  Providing a basis for defining a separate hybrid ALM RELOAD Usage

   RELOAD [RELOAD] has an application extension mechanism in which a new
   type of application defines a Usage.  A RELOAD Usage defines a set of
   data types and rules for their use.  In addition, this document
   describes additional message types and a new ALM algorithm plugin
   architectural component.

   This document represents the consensus of the SAM RG.  It was
   repeatedly discussed within the research group, as well as with other
   Application-Layer Multicast experts.




Buford & Kolberg              Experimental                      [Page 4]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


1.1.  Requirements Language

   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 RFC 2119 [RFC2119].

2.  Definitions

   We adopt the terminology defined in Section 3 of [RELOAD],
   specifically the distinction between "node", "peer", and "client".

2.1.  Overlay Network

   Overlay network: An application-layer virtual or logical network with
   addressable end points that provides connectivity, routing, and
   messaging between end points.  Overlay networks are frequently used
   as a substrate for deploying new network services or for providing a
   routing topology not available from the underlying physical network.
   Many peer-to-peer systems are overlay networks that run on top of the
   Internet.  In Figure 1, "P" indicates overlay peers, and peers are
   connected in a logical address space.  The links shown in the figure
   represent predecessor/successor links.  Depending on the overlay
   routing model, additional or different links may be present.

                           P    P    P   P     P
                         ..+....+....+...+.....+...
                        .                          +P
                      P+                            .
                        .                          +P
                         ..+....+....+...+.....+...
                           P    P    P   P     P

                     Figure 1: Overlay Network Example

2.2.  Overlay Multicast

   Overlay Multicast (OM): Hosts participating in a multicast session
   form an overlay network and utilize unicast connections among pairs
   of hosts for data dissemination [BUFORD2009] [KOLBERG2010]
   [BUFORD2008].  The hosts in overlay multicast exclusively handle
   group management, routing, and tree construction, without any support
   from Internet routers.  This is also commonly known as Application-
   Layer Multicast (ALM) or End-System Multicast (ESM).  We call systems
   that use proxies connected in an overlay multicast backbone "proxied
   overlay multicast" or POM.






Buford & Kolberg              Experimental                      [Page 5]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


2.3.  Source-Specific Multicast (SSM)

   SSM tree: The creator of the tree is the source.  It sends data
   messages to the tree root that are forwarded down the tree.

2.4.  Any-Source Multicast (ASM)

   ASM tree: A node sending a data message sends the message to its
   parent and its children.  Each node receiving a data message from one
   edge forwards it to the remaining tree edges to which it is
   connected.

2.5.  Peer

   Peer: An autonomous end system that is connected to the physical
   network and participates in and contributes resources to overlay
   construction, routing, and maintenance.  Some peers may also perform
   additional roles such as connection relays, super nodes, NAT
   traversal assistance, and data storage.

3.  Assumptions

3.1.  Overlay

   Peers connect in a large-scale overlay, which may be used for a
   variety of peer-to-peer applications in addition to multicast
   sessions.  Peers may assume additional roles in the overlay beyond
   participation in the overlay and in multicast trees.  We assume a
   single-structured overlay routing algorithm is used.  Any of a
   variety of multi-hop, one-hop, or variable-hop overlay algorithms
   could be used.

   Castro, et al. [CASTRO2003] compared multi-hop overlays and found
   that tree-based construction in a single overlay outperformed using
   separate overlays for each multicast session.  We use a single
   overlay rather than separate overlays per multicast session.

   An overlay multicast algorithm may leverage the overlay's mechanism
   for maintaining overlay state in the face of churn.  For example, a
   peer may store a number of DHT (Distributed Hash Table) entries.
   When the peer gracefully leaves the overlay, it transfers those
   entries to the nearest peer.  When another peer joins that is closer
   to some of the entries than the current peer that holds those
   entries, than those entries are migrated.  Overlay churn affects
   multicast trees as well; remedies include automatic migration of the
   tree state and automatic rejoin operations for dislocated child
   nodes.




Buford & Kolberg              Experimental                      [Page 6]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


3.2.  Overlay Multicast

   The overlay supports concurrent multiple multicast trees.  The limit
   on the number of concurrent trees depends on peer and network
   resources and is not an intrinsic property of the overlay.

3.3.  RELOAD

   We use RELOAD [RELOAD] as the peer-to-peer (P2P) overlay for data
   storage and the mechanism by which the peers interconnect and route
   messages.  RELOAD is a generic P2P overlay, and application support
   is defined by profiles called Usages.

3.4.  NAT

   Some nodes in the overlay may be in a private address space and
   behind firewalls.  We use the RELOAD mechanisms for NAT traversal.
   We permit clients to be leaf nodes in an ALM tree.

3.5.  Tree Topology

   All tree control messages are routed in the overlay.  Two types of
   data or media topologies are envisioned: 1) tree edges are paths in
   the overlay, and 2) tree edges are direct connections between a
   parent and child peer in the tree, formed using the RELOAD AppAttach
   method.

4.  Architecture Extensions to RELOAD

   There are two changes as depicted in Figure 2.  New ALM messages are
   mapped to RELOAD Message Transport using the RELOAD experimental
   message type.  A plugin for ALM algorithms handles the ALM state and
   control.  The ALM algorithm is under control of the application via
   the Group API [COMMON-API].

















Buford & Kolberg              Experimental                      [Page 7]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


                                                       +---------+
                                                       |Group API|
                                                       +---------+
                                                            |
          ------------------- Application  ------------------------
              +-------+                                     |
              | ALM   |                                     |
              | Usage |                                     |
              +-------+                                     |
           -------------- Messaging Service Boundary --------------
                                                            |
             +--------+      +-----------+---------+    +---------+
             | Storage|<---> | RELOAD    | ALM     |<-->| ALM Alg |
             +--------+      | Message   | Messages|    +---------+
                     ^       | Transport |         |
                     |       +-----------+---------+
                     v          |    |
                    +-------------+  |
                    | Topology    |  |
                    | Plugin      |  |
                    +-------------+  |
                       ^             |
                       v             v
                    +-------------------+
                    | Forwarding &      |
                    | Link Management   |
                    +-------------------+

           ---------- Overlay Link Service Boundary --------------

                 Figure 2: RELOAD Architecture Extensions

   The ALM components interact with RELOAD as follows:

   o  ALM uses the RELOAD data storage functionality to store an ALMTree
      instance when a new ALM tree is created in the overlay and to
      retrieve ALMTree instance(s) for existing ALM trees.

   o  ALM applications and management tools may use the RELOAD data
      storage functionality to store diagnostic information about the
      operation of trees, including average number of trees, delay from
      source to leaf nodes, bandwidth use, and packet loss rate.  In
      addition, diagnostic information may include statistics specific
      to the tree root or to any node in the tree.







Buford & Kolberg              Experimental                      [Page 8]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


5.  RELOAD ALM Usage

   Applications of RELOAD are restricted in the data types that can be
   stored in the DHT.  The profile of accepted data types for an
   application is referred to as a Usage.  RELOAD is designed so that
   new applications can easily define new Usages.  New RELOAD Usages are
   needed for multicast applications since the data types in base RELOAD
   and existing Usages are not sufficient.

   We define an ALM Usage in RELOAD.  This ALM Usage is sufficient for
   applications that require ALM functionality in the overlay.  Figure 2
   shows the internal structure of the ALM Usage.  This contains the
   Group API ([COMMON-API]), an ALM algorithm plugin (e.g., Scribe), and
   the ALM messages that are then sent out to the RELOAD network.

   A RELOAD Usage is required [RELOAD] to define the following:

   o  Kind-ID and code points

   o  data structures for each Kind

   o  access control rules for each Kind

   o  the Resource Name used to hash to the Resource ID that determines
      where the Kind is stored

   o  address restoration after recovery from a network partition (to
      form a single coherent network)

   o  the types of connections that can be initiated using AppConnect

   An ALM group_id is a RELOAD node_id.  The owner of an ALM group
   creates a RELOAD node_id as specified in [RELOAD].  This means that a
   group_id is used as a RELOAD Destination for overlay routing
   purposes.

6.  ALM Tree Control Signaling

   Peers use the overlay to support ALM operations such as:

   o  CreateALMTree

   o  Join

   o  Leave

   o  Reform or optimize tree




Buford & Kolberg              Experimental                      [Page 9]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


   There are a variety of algorithms for peers to form multicast trees
   in the overlay.  The approach presented here permits multiple such
   algorithms to be supported in the overlay since different algorithms
   may be more suitable for certain application requirements; the
   approach also supports experimentation.  Therefore, overlay messaging
   corresponding to the set of overlay multicast operations MUST carry
   algorithm identification information.

   For example, for small groups, the join point might be directly
   assigned by the rendezvous point, while for large trees the Join
   request might be propagated down the tree with candidate parents
   forwarding their position directly to the new node.

   Here is a simplistic notation for forming a multicast tree in the
   overlay.  Its main advantage is the use of the overlay for routing
   both control and data messages.  The group creator does not have to
   be the root of the tree or even in the tree.  It does not consider
   per-node load, admission control, or alternative paths.  After the
   creation of a tree, the group_id is expected to be advertised or
   distributed out of band, perhaps by publishing in the DHT.
   Similarly, joining peers will discover the group_id out of band,
   perhaps by a lookup in the tree.

   As stated earlier, multiple algorithms will coexist in the overlay.

   1.  Peer that initiates multicast group:

       group_id = create();  // Allocate a unique group_id.
                             // The root is the nearest
                             // peer in the overlay.

   2.  Any joining peer:

       joinTree(group_id); // sends "join group_id" message

       The overlay routes the Join request using the overlay routing
       mechanism toward the peer with the nearest ID to the group_id.
       This peer is the root.  Peers on the path to the root join the
       tree as forwarding points.

   3.  Leave Tree:

       leaveTree(group_id); // removes this node from the tree








Buford & Kolberg              Experimental                     [Page 10]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


       Propagates a Leave request to each child node and to the parent
       node.  If the parent node is a forwarding node and this is its
       last child, then it propagates a Leave request to its parent.  A
       child node receiving a Leave request from a parent sends a Join
       request to the group_id.

   4.  Message forwarding:

       multicastMsg(group_id, msg);

       For message forwarding, both Any-Source Multicast (ASM) and
       Source-Specific Multicast (SSM) approaches may be used.

7.  ALM Messages Mapped to RELOAD

7.1.  Introduction

   In this document, we define messages for overlay multicast tree
   creation, using an existing protocol (RELOAD) in the P2P-SIP WG
   [RELOAD] for a universal structured peer-to-peer overlay protocol.
   RELOAD provides the mechanism to support a number of overlay
   topologies.  Hence, the overlay multicast framework defined in this
   document can be used with P2P-SIP and makes the Scalable Adaptive
   Multicast (SAM) framework overlay agnostic.

   As discussed in the SAM requirements document [SAM-GENERIC], there
   are a variety of ALM tree formation and tree maintenance algorithms.
   The intent of this specification is to be algorithm agnostic, similar
   to how RELOAD is overlay algorithm agnostic.  We assume that all
   control messages are propagated using overlay routed messages.

   The message types needed for ALM behavior are divided into the
   following categories:

   o  Tree lifecycle (Create, Join, Leave, Reform, Heartbeat)

   o  Peer region and multicast properties

   The message codes are defined in Section 14.2 of this document.
   Messages are mapped to the RELOAD experimental message type.

   In the following sections, the protocol messages as mapped to RELOAD
   are discussed.  Detailed example message flows are provided in
   Section 11.







Buford & Kolberg              Experimental                     [Page 11]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


   In the following descriptions, we use the datatype Dictionary, which
   is a set of opaque values indexed by an opaque key with one value for
   each key.  A single dictionary entry is represented by a
   DictionaryEntry as defined in Section 7.2.3 of the RELOAD document
   [RELOAD].  The Dictionary datatype is defined as follows:

   struct {
     DictionaryEntry elements<0..2^16-1>;
     } Dictionary;

7.2.  Tree Lifecycle Messages

   Peers use the overlay to transmit ALM operations defined in this
   section.

7.2.1.  CreateALMTree

   A new ALM tree is created in the overlay with the identity specified
   by group_id.  The common interpretation in a DHT-based overlay of
   group_id is that the peer with a peer_id closest to and less than the
   group_id is the root of the tree.  However, other overlay types are
   supported.  The tree has no children at the time it is created.

   The group_id is generated from a well-known session key to be used by
   other peers to address the multicast tree in the overlay.  The
   generation of the group_id from the session_key MUST be done using
   the overlay's ID-generation mechanism.

      struct {
        node_id peer_id;
        opaque session_key<0..2^32-1>;
        node_id group_id;
        Dictionary options;
      } ALMTree;

   peer_id: overlay address of the peer that creates the multicast tree.

   session_key: a well-known string that when hashed using the overlay's
   ID-generation algorithm produces the group_id.

   group_id: overlay address of the root of the tree.

   options: name-value list of properties to be associated with the
   tree, such as the maximum size of the tree, restrictions on peers
   joining the tree, latency constraints, preference for distributed or
   centralized tree formation and maintenance, and Heartbeat interval.





Buford & Kolberg              Experimental                     [Page 12]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


   Tree creation is subject to access control since it involves a Store
   operation.  The NODE-MATCH access policy defined in Section 7.3.2 of
   [RELOAD] is used.

   A successful CreateALMTree causes an ALMTree structure to be stored
   in the overlay at the node G responsible for the group_id.  This node
   G performs the RELOAD-defined StoreReq operation as a side effect of
   performing the CreateALMTree.  If the StoreReq fails, the
   CreateALMTree fails too.

   After a successful CreateALMTree, peers can use the RELOAD Fetch
   method to retrieve the ALMTree struct at address group_id.  The
   ALMTree Kind is defined in Section 12.1.

7.2.2.  CreateALMTreeResponse

   After receiving a CreateALMTree message from node S, the peer sends a
   CreateALMTreeResponse to node S.

        struct {
          Dictionary options;
        } CreateALMTreeResponse;

   options: A node may provide algorithm-dependent parameters about the
   created tree to the requesting node.

7.2.3.  Join

   Join causes the distributed algorithm for peer join of a specific ALM
   group to be invoked.  The definition of the Join request is shown
   below.  If successful, the joining peer is notified of one or more
   candidate parent peers in one or more JoinAccept messages.  The
   particular ALM join algorithm is not specified in this protocol.

      struct {
        node_id peer_id;
        node_id group_id;
        Dictionary options;
      } Join;

   peer_id: overlay address of joining/leaving peer

   group_id: overlay address of the root of the tree

   options: name-value list of options proposed by joining peer






Buford & Kolberg              Experimental                     [Page 13]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


   RELOAD is a request-response protocol.  Consequently, the messages
   JoinAccept and JoinReject (defined below) are matching responses for
   Join.  If JoinReject is received, then no further action on this
   request is carried out.  If JoinAccept is received, then either a
   JoinConfirm or a JoinDecline message (see below) is sent.  The
   matching response for JoinConfirm is JoinConfirmResponse.  The
   matching response for JoinDecline is JoinDeclineResponse.

   The following list shows the matching request-responses according to
   the request-response mechanism defined in [RELOAD].

      Join -- JoinAccept: Node C sends a Join request to node P.  If
      node P accepts, it responds with JoinAccept.

      Join -- JoinReject: Node C sends a Join request to node P.  If
      node P does not accept the Join request, it responds with
      JoinReject.

      JoinConfirm -- JoinConfirmResponse: If node P sent node C a
      JoinAccept and node C confirms with a JoinConfirm request, then
      node P responds with a JoinConfirmResponse.

      JoinDecline -- JoinDeclineResponse: If node P sent node C a
      JoinAccept and node C declines with a JoinDecline request, then
      node P responds with a JoinDeclineResponse.

   Thus, Join, JoinConfirm, and JoinDecline are treated as requests as
   defined in RELOAD, are mapped to the RELOAD exp_a_req message, and
   are therefore retransmitted until either a retry limit is reached or
   a matching response received.  JoinAccept, JoinReject,
   JoinConfirmResponse, and JoinDeclineResponse are treated as message
   responses as defined above and are mapped to the RELOAD exp_a_ans
   message.

   The Join behavior can be described as follows:

   if(checkAccept(msg)) {
       recvJoins.add(msg.source, msg.group_id)
       SEND(JoinAccept(node_id, msg.source, msg.group_id))
   }

7.2.4.  JoinAccept (Join Response)

   JoinAccept tells the requesting joining peer that the indicated peer
   is available to act as its parent in the ALM tree specified by
   group_id, with the corresponding options specified.  A peer MAY
   receive more than one JoinAccept from different candidate parent
   peers in the group_id tree.  The peer accepts a peer as parent using



Buford & Kolberg              Experimental                     [Page 14]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


   a JoinConfirm message.  A JoinAccept that receives neither a
   JoinConfirm nor JoinDecline message MUST expire.  RELOAD
   implementations are able to read a local configuration file for
   settings.  It is assumed that this file contains the timeout value to
   be used.

      struct {
        node_id parent_peer_id;
        node_id child_peer_id;
        node_id group_id;
        Dictionary options;
      } JoinAccept;

   parent_peer_id: overlay address of a peer that accepts the joining
   peer

   child_peer_id: overlay address of joining peer

   group_id: overlay address of the root of the tree

   options: name-value list of options accepted by parent peer

7.2.5.  JoinReject (Join Response)

   A peer receiving a Join request responds with a JoinReject response
   to indicate the request is rejected.

7.2.6.  JoinConfirm

   A peer receiving a JoinAccept message that it wishes to accept MUST
   explicitly accept it using a JoinConfirm message before the
   expiration of a timer for the JoinAccept message.  The joining peer
   MUST include only those options from the JoinAccept that it also
   accepts, completing the negotiation of options between the two peers.

      struct {
        node_id child_peer_id;
        node_id parent_peer_id;
        node_id group_id;
        Dictionary options;
      } JoinConfirm;

   child_peer_id: overlay address of joining peer that is a child of the
   parent peer

   parent_peer_id: overlay address of the peer that is the parent of the
   joining peer




Buford & Kolberg              Experimental                     [Page 15]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


   group_id: overlay address of the root of the tree

   options: name-value list of options accepted by both peers

   The JoinConfirm message behavior is described below:

   if(recvJoins.contains(msg.source,msg.group_id)){
      if !(groups.contains(msg.group_id)) {
         groups.add(msg.group_id)
         SEND(msg,msg.group_id)
      }
      groups[msg.group_id].children.add(msg.source)
      recvJoins.del(msg.source, msg.group_id)
   }

7.2.7.  JoinConfirmResponse

   A peer receiving a JoinConfirm message responds with a
   JoinConfirmResponse message.

7.2.8.  JoinDecline

   A peer receiving a JoinAccept message that it does not wish to accept
   MAY explicitly decline it using a JoinDecline message.

      struct {
        node_id peer_id;
        node_id parent_peer_id;
        node_id group_id;
      } JoinDecline;

   peer_id: overlay address of joining peer that declines the JoinAccept

   parent_peer_id: overlay address of the peer that issued a JoinAccept
   to this peer

   group_id: overlay address of the root of the tree

   The behavior of the JoinDecline message is described as follows:

   if(recvJoins.contains(msg.source,msg.group_id))
      recvJoins.del(msg.source, msg.group_id)

7.2.9.  JoinDeclineResponse

   A peer receiving a JoinConfirm message responds with a
   JoinDeclineResponse message.




Buford & Kolberg              Experimental                     [Page 16]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


7.2.10.  Leave

   A peer that is part of an ALM tree identified by group_id that
   intends to detach from either a child or parent peer SHOULD send a
   Leave request to the peer from which it wishes to detach.  A peer
   receiving a Leave request from a peer that is neither in its parent
   nor child lists SHOULD ignore the message.

      struct {
        node_id peer_id;
        node_id group_id;
        Dictionary options;
      } Leave;

   peer_id: overlay address of leaving peer

   group_id: overlay address of the root of the tree

   options: name-value list of options

   The behavior of the Leave request can be described as:

   groups[msg.group_id].children.remove(msg.source)
   if (groups[msg.group].children = 0)
         SEND(msg,groups[msg.group_id].parent)

7.2.11.  LeaveResponse

   A peer receiving a Leave request responds with a LeaveResponse
   message.

7.2.12.  Reform or Optimize Tree

   This triggers a reorganization of either the entire tree or only a
   subtree.  It MAY include hints to specific peers of recommended
   parent or child peers to which to reconnect.  A peer receiving this
   message MAY ignore it, MAY propagate it to other peers in its
   subtree, and MAY invoke local algorithms for selecting preferred
   parent and/or child peers.

      struct {
        node_id group_id;
        node_id peer_id;
        Dictionary options;
      } Reform;

   group_id: overlay address of the root of the tree




Buford & Kolberg              Experimental                     [Page 17]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


   peer_id: if omitted, then the tree is reorganized starting from the
   root; otherwise, it is reorganized only at the subtree identified by
   peer_id.

   options: name-value list of options

7.2.13.  ReformResponse

   A peer receiving a Reform message responds with a ReformResponse.

      struct {
        Dictionary options;
      } ReformResponse;

   options: algorithm-dependent information about the results of the
   Reform operation

7.2.14.  Heartbeat

   A child node signals to its adjacent parent nodes in the tree that it
   is alive.  If a parent node does not receive a Heartbeat message
   within N Heartbeat time intervals, it MUST treat this as an explicit
   Leave request from the unresponsive peer.  N is configurable.  RELOAD
   implementations are able to read a local configuration file for
   settings.  It is assumed that this file contains the value for N to
   be used.

      struct {
        node_id peer_id_src;
        node_id peer_id_dst;
        node_id group_id;
        Dictionary options;
      } Heartbeat;

   peer_id_src: source of Heartbeat

   peer_id_dst: destination of Heartbeat

   group_id: overlay address of the root of the tree

   options: an algorithm may use the Heartbeat message to provide state
   information to adjacent nodes in the tree









Buford & Kolberg              Experimental                     [Page 18]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


7.2.15.  Heartbeat Response

   A parent node responds with a HeartbeatResponse to a Heartbeat from a
   child node indicating that it has received the Heartbeat message.

7.2.16.  NodeQuery

   The NodeQuery message is used to obtain information about the state
   and performance of the tree on a per-node basis.  A set of nodes
   could be queried to construct a centralized view of the multicast
   trees, similar to a web crawler.

        struct {
          node_id peer_id_src;
          node_id peer_id_dst;
        } NodeQuery;

   peer_id_src: source of query

   peer_id_dst: destination of query

7.2.17.  NodeQueryResponse

   The response to a NodeQuery message contains a NodeStatistics
   instance for this node.

   public struct {
      uint32        node_lifetime;
      uint32        total_number_trees;
      uint16        number_algorithms_supported;
      uint8         algorithms_supported[32];
      TreeData      max_tree_data;
      uint16        number_active_trees;
      TreeData      tree_data<0..2^8-1>;
      ImplementationInfo impl_info;
   }  NodeStatistics;

      node_lifetime: time the node has been alive in seconds since last
      restart

      total_number_trees: total number of trees this node has been part
      of during the node lifetime

      number_algorithms_supported: value between 0..2^16-1 corresponding
      to the number of algorithms supported

      algorithms_supported: list of algorithms, each byte encoded using
      the corresponding algorithm code



Buford & Kolberg              Experimental                     [Page 19]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


      max_tree_data: data about tree with largest number of nodes that
      this node was part of.  NodeQuery can be used to crawl all the
      nodes in an ALM tree to fill this field.  This is intended to
      support monitoring, algorithm design, and general experimentation
      with ALM in RELOAD.

      number_active_trees: current number of trees that the node is part
      of

      tree_data: details of each active tree; the number of such is
      specified by number_active_trees

      impl_info: information about the implementation of this Usage

   public struct {
     uint32       tree_id;
     uint8        algorithm;
     node_id      tree_root;
     uint8        number_parents;
     node_id      parent<0..2^8-1>;
     uint16       number_child_nodes;
     node_id      children<0..2^16-1>;
     uint32       path_length_to_root;
     uint32       path_delay_to_root;
     uint32       path_delay_to_child;
   } TreeData;

      tree_id: the ID of the tree

      algorithm: code identifying the multicast algorithm used by this
      tree

      tree_root: node_id of tree root, or 0 if unknown

      number_parents: 0 .. 2^8-1 indicates number of parent nodes for
      this node

      parent: the RELOAD node_id of each parent node

      number_child_nodes: 0..2^16-1 indicates number of children

      children: the RELOAD node_id of each child node

      path_length_to_root: number of overlay hops to the root of the
      tree

      path_delay_to_root: RTT in milliseconds to root node




Buford & Kolberg              Experimental                     [Page 20]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


      path_delay_to_child: last measured RTT in milliseconds to child
      node with largest RTT

   public struct {
     uint32       join_confirm_timeout;
     uint32       heartbeat_interval;
     uint32       heartbeat_response_timeout;
     uint16       info_length;
     uint8        info<0..2^16-1>;
   } ImplementationInfo;

      join_confirm_timeout: The default time for
      JoinConfirm/JoinDecline, intended to provide sufficient time for a
      Join request to receive all responses and confirm the best choice.
      Default value is 5000 msec.  An implementation can change this
      value.

      heartbeat_interval: The default Heartbeat interval is 2000 msec.
      Different interoperating implementations could use different
      intervals.

      heartbeat_response_timeout: The default Heartbeat timeout is 5000
      msec and is the max time between Heartbeat reports from an
      adjacent node in the tree at which point the Heartbeat is missed.

      info_length: length of the info field

      info: implementation-specific information, such as name of
      implementation, build version, and implementation-specific
      features





















Buford & Kolberg              Experimental                     [Page 21]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


7.2.18.  Push

   A peer sends arbitrary multicast data to other peers in the tree.
   Nodes in the tree forward this message to adjacent nodes in the tree
   in an algorithm-dependent way.

      struct {
        node_id group_id;
        uint8  priority;
        uint32 length;
        uint8  data<0..2^32-1>;
      } Push;

   group_id: overlay address of root of the ALM tree

   priority: the relative priority of the message; highest priority is
   255.  A node may ignore this field.

   length: length of the data field in bytes

   data: the data

   In pseudocode, the behavior of Push can be described as:

   foreach(groups[msg.group_id].children as node_id)
        SEND(msg,node_id)
   if memberOf(msg.group_id)
        invokeMessageHandler(msg.group_id, msg)

7.2.19.  PushResponse

   After receiving a Push message from node S, the receiving peer sends
   a PushResponse to node S.

      struct {
        Dictionary options;
      } PushResponse;

   options: A node may provide feedback to the sender about previous
   Push messages in some window, for example, the last N Push messages.
   The feedback could include, for each Push message received, the
   number of adjacent nodes that were forwarded the Push message and the
   number of adjacent nodes from which a PushResponse was received.








Buford & Kolberg              Experimental                     [Page 22]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


8.  Scribe Algorithm

8.1.  Overview

   Figure 3 shows a mapping between RELOAD ALM messages (as defined in
   Section 5 of this document) and Scribe messages as defined in
   [CASTRO2002].

              +---------+-------------------+-----------------+
              | Section |RELOAD ALM Message | Scribe Message  |
              +---------+-------------------+-----------------+
              | 7.2.1   | CreateALMTree     | Create          |
              +---------+-------------------+-----------------+
              | 7.2.3   | Join              | Join            |
              +---------+-------------------+-----------------+
              | 7.2.4   | JoinAccept        |                 |
              +---------+-------------------+-----------------+
              | 7.2.6   | JoinConfirm       |                 |
              +---------+-------------------+-----------------+
              | 7.2.8   | JoinDecline       |                 |
              +---------+-------------------+-----------------+
              | 7.2.10  | Leave             | Leave           |
              +---------+-------------------+-----------------+
              | 7.2.12  | Reform            |                 |
              +---------+-------------------+-----------------+
              | 7.2.14  | Heartbeat         |                 |
              +---------+-------------------+-----------------+
              | 7.2.16  | NodeQuery         |                 |
              +---------+-------------------+-----------------+
              | 7.2.18  | Push              | Multicast       |
              +---------+-------------------+-----------------+
              |         | Note 1            | deliver         |
              +---------+-------------------+-----------------+
              |         | Note 1            | forward         |
              +---------+-------------------+-----------------+
              |         | Note 1            | route           |
              +---------+-------------------+-----------------+
              |         | Note 1            | send            |
              +---------+-------------------+-----------------+

                   Figure 3: Mapping to Scribe Messages

   Note 1: These Scribe messages are handled by RELOAD messages.

   The following sections describe the Scribe algorithm in more detail.






Buford & Kolberg              Experimental                     [Page 23]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


8.2.  Create

   This message will create a group with group_id.  This message MUST be
   delivered to the node whose node_id is closest to the group_id.  This
   node becomes the rendezvous point and root for the new multicast
   tree.  Groups MAY have multiple sources of multicast messages.

8.3.  Join

   To join a multicast tree, a node SHOULD send a Join request with the
   group_id as the key.  This message gets routed by the overlay to the
   rendezvous point of the tree.  If an intermediate node is already a
   forwarder for this tree, it SHOULD add the joining node as a child.
   Otherwise, the node SHOULD create a child table for the group and add
   the joining node.  It SHOULD then send the Join request towards the
   rendezvous point terminating the Join request from the child.

   To adapt the Scribe algorithm to the ALM Usage proposed here, after a
   Join request is accepted, a JoinAccept message MUST be returned to
   the joining node.

8.4.  Leave

   When leaving a multicast group, a node SHOULD change its local state
   to indicate that it left the group.  If the node has no children in
   its table, it MUST send a Leave request to its parent, from where it
   SHOULD travel up the multicast tree and stop at a node that still has
   children remaining after removing the leaving node.

8.5.  JoinConfirm

   This message is not part of the Scribe protocol but is required by
   the basic protocol proposed in this document.  Thus, the Usage MUST
   send this message to confirm a joining node accepting its parent
   node.

8.6.  JoinDecline

   Like JoinConfirm, this message is not part of the Scribe protocol.
   Thus, the Usage MUST send this message if a peer receiving a
   JoinAccept message wishes to decline it.

8.7.  Multicast

   A message to be multicast to a group MUST be sent to the rendezvous
   node from where it is forwarded down the tree.  If a node is a member
   of the tree rather than just a forwarder, it SHOULD pass the
   multicast data up to the application.



Buford & Kolberg              Experimental                     [Page 24]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


9.  P2PCast Algorithm

9.1.  Overview

   P2PCast [P2PCAST] creates a forest of related trees to increase load
   balancing.  P2PCast is independent of the underlying P2P substrate.
   Its goals and approach are similar to SplitStream [SPLITSTREAM]
   (which assumes Pastry as the P2P overlay).  In P2PCast, the content
   provider splits the stream of data into f stripes.  Each tree in the
   forest of multicast trees is an (almost) full tree of arity f.  These
   trees are conceptually separate: every node of the system appears
   once in each tree, with the content provider being the source in all
   of them.  To ensure that each peer contributes as much bandwidth as
   it receives, every node is a leaf in all the trees except for one, in
   which the node will serve as an internal node (proper tree of this
   node).  To reduce the complexity of the discussion that follows, the
   remainder of this section will assume that f = 2.  However, the
   algorithm scales for any number f.

   P2PCast distinguishes the following types of nodes:

   o  Incomplete Node: A node with less than f children in its proper
      stripe

   o  Only-Child Node: A node whose parent (in any multicast tree) is an
      incomplete node

   o  Complete Node: A node with exactly f children in its proper stripe

   o  Special Node: A single node that is a leaf in all multicast trees
      of the forest




















Buford & Kolberg              Experimental                     [Page 25]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


9.2.  Message Mapping

   Figure 4 shows a mapping between RELOAD ALM messages (as defined in
   Section 5 of this document) and P2PCast messages as defined in
   [P2PCAST].

               +---------+-------------------+-----------------+
               | Section |RELOAD ALM Message | P2PCast Message |
               +---------+-------------------+-----------------+
               | 7.2.1   | CreateALMTree     | Create          |
               +---------+-------------------+-----------------+
               | 7.2.3   | Join              | Join            |
               +---------+-------------------+-----------------+
               | 7.2.4   | JoinAccept        |                 |
               +---------+-------------------+-----------------+
               | 7.2.6   | JoinConfirm       |                 |
               +---------+-------------------+-----------------+
               | 7.2.8   | JoinDecline       |                 |
               +---------+-------------------+-----------------+
               | 7.2.10  | Leave             | Leave           |
               +---------+-------------------+-----------------+
               | 7.2.12  | Reform            | Takeon          |
               |         |                   | Substitute      |
               |         |                   | Search          |
               |         |                   | Replace         |
               |         |                   | Direct          |
               |         |                   | Update          |
               +---------+-------------------+-----------------+
               | 7.2.14  | Heartbeat         |                 |
               +---------+-------------------+-----------------+
               | 7.2.16  | NodeQuery         |                 |
               +---------+-------------------+-----------------+
               | 7.2.18  | Push              | Multicast       |
               +---------+-------------------+-----------------+

                   Figure 4: Mapping to P2PCast Messages

   The following sections describe the mapping of the P2PCast messages
   in more detail.

9.3.  Create

   This message will create a group with group_id.  This message MUST be
   delivered to the node whose node_id is closest to the group_id.  This
   node becomes the rendezvous point and root for the new multicast
   tree.  The rendezvous point will maintain f subtrees.





Buford & Kolberg              Experimental                     [Page 26]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


9.4.  Join

   To join a multicast tree, a joining node N MUST send a Join request
   to a random node A already part of the tree.  Depending on the type
   of A, the joining algorithm continues as follows:

   o  Incomplete Node: Node A will arbitrarily select for which tree it
      wants to serve as an internal node and adopt N in that tree.  In
      the other tree, node N will adopt node A as a child (taking node
      A's place in the tree), thus becoming an internal node in the
      stripe that node A didn't choose.

   o  Only-Child Node: As this node has a parent that is an incomplete
      node, the joining node will be redirected to the parent node and
      will handle the request as detailed above.

   o  Complete Node: The contacted node A must be a leaf in the other
      tree.  If node A is a leaf node in Stripe 1, node N will become an
      internal node in Stripe 1, taking the place of node A and adopting
      it at the same time.  To find a place for itself in the other
      stripe, node N starts a random walk down the subtree rooted at the
      sibling of node A (if node A is the root and thus does not have
      siblings, node N is sent directly to a leaf in that tree), which
      ends as soon as node N finds an incomplete node or a leaf.  In
      this case, node N is adopted by the incomplete node.

   o  Special Node: as this node is a leaf in all subtrees, the joining
      node MAY adopt the node in one tree and become a child in the
      other.

   P2PCast uses defined messages for communication between nodes during
   reorganization.  To use P2PCast in this context, these messages are
   encapsulated by the message type Reform.  In doing so, the P2PCast
   message is to be included in the options parameter of Reform.  The
   following reorganization messages are defined by P2PCast:

      Takeon: To take another peer as a child

      Substitute: To take the place of a child of some peer

      Search: To obtain the child of a node in a particular stripe

      Replace: Different from Substitute in that the calling node that
      makes a node its child sheds off a random child

      Direct: To direct a node to its would-be parent

      Update: A node sends its updated state to its children



Buford & Kolberg              Experimental                     [Page 27]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


   To adapt the P2PCast algorithm to the ALM Usage proposed here, after
   a Join request is accepted, a JoinAccept message MUST be returned to
   the joining node (one for every subtree).

9.5.  Leave

   When leaving a multicast group, a node will change its local state to
   indicate that it left the group.  Disregarding the case where the
   leaving node is the root of the tree, the leaving node must be
   complete or incomplete in its proper tree.  In the other trees, the
   node is a leaf and can just disappear by notifying its parent.  For
   the proper tree, if the node is incomplete, it is replaced by its
   child.  However, if the node is complete, a gap is created that is
   filled by a random child.  If this child is incomplete, it can simply
   fill the gap.  However, if it is complete, it needs to shed a random
   child.  This child is directed to its sibling, which sheds a random
   child.  This process ripples down the tree until the next-to-last
   level is reached.  The shed node is then taken as a child by the
   parent of the deleted node in the other stripe.

   Again, for the reorganization of the tree, the Reform message type is
   used as defined in the previous section.

9.6.  JoinConfirm

   This message is not part of the P2PCast protocol but is required by
   the basic protocol defined in this document.  Thus, the Usage MUST
   send this message to confirm a joining node accepting its parent
   node.  As with Join and JoinAccept, this MUST be carried out for
   every subtree.

9.7.  Multicast

   A message to be multicast to a group MUST be sent to the rendezvous
   node from where it is forwarded down the tree by being split into k
   stripes.  Each stripe is then sent via a subtree.  If a receiving
   node is a member of the tree rather than just a forwarder, it MAY
   pass the multicast data up to the application.

10.  Message Format

   All messages are mapped to the RELOAD experimental message type.  The
   mapping is shown in Figure 5.  The message codes are listed in
   Section 14.2.  The format of the body of a message is provided in
   [RELOAD].






Buford & Kolberg              Experimental                     [Page 28]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


                +-------------------------+------------------+
                | Message                 |RELOAD Code Point |
                +-------------------------+------------------+
                | CreateALMTree           | exp_a_req        |
                +-------------------------+------------------+
                | CreateALMTreeResponse   | exp_a_ans        |
                +-------------------------+------------------+
                | Join                    | exp_a_req        |
                +-------------------------+------------------+
                | JoinAccept              | exp_a_ans        |
                +-------------------------+------------------+
                | JoinReject              | exp_a_ans        |
                +-------------------------+------------------+
                | JoinConfirm             | exp_a_req        |
                +-------------------------+------------------+
                | JoinConfirmResponse     | exp_a_ans        |
                +-------------------------+------------------+
                | JoinDecline             | exp_a_req        |
                +-------------------------+------------------+
                | JoinDeclineResponse     | exp_a_ans        |
                +-------------------------+------------------+
                | Leave                   | exp_a_req        |
                +-------------------------+------------------+
                | LeaveResponse           | exp_a_ans        |
                +-------------------------+------------------+
                | Reform                  | exp_a_req        |
                +-------------------------+------------------+
                | ReformResponse          | exp_a_ans        |
                +-------------------------+------------------+
                | Heartbeat               | exp_a_req        |
                +-------------------------+------------------+
                | HeartbeatResponse       | exp_a_ans        |
                +-------------------------+------------------+
                | NodeQuery               | exp_a_req        |
                +-------------------------+------------------+
                | NodeQueryResponse       | exp_a_ans        |
                +-------------------------+------------------+
                | Push                    | exp_a_req        |
                +-------------------------+------------------+
                | PushResponse            | exp_a_ans        |
                +-------------------------+------------------+

                   Figure 5: RELOAD Message Code Mapping








Buford & Kolberg              Experimental                     [Page 29]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


   For Data Kind-IDs, the RELOAD specification [RELOAD] states: "Code
   points in the range 0xF0000001 to 0xFFFFFFFE are reserved for private
   use".  ALM Usage Kind-IDs are defined in the private use range.

   All ALM Usage messages map to the RELOAD Message Extension mechanism.

   Code points for the Kinds defined in this document MUST NOT conflict
   with any defined code points for RELOAD.  RELOAD defines exp_a_req
   and exp_a_ans for experimental purposes.  This specification uses
   only these message types for all ALM messages.  RELOAD defines the
   MessageContents data structure.  The ALM mapping uses the fields as
   follows:

   o  message_code: exp_a_req for requests and exp_a_ans for responses

   o  message_body: contains one instance of ALMHeader followed by one
      instance of ALMMessageContents

   o  extensions: unused

10.1.  ALMHeader Definition

   struct {
      uint32           sam_token;
      uint16           alm_algorithm_id;
      uint8            version;
   } ALMHeader;

   The fields in ALMHeader are used as follows:

      sam_token: The first four bytes identify this message as an ALM
      message.  This field MUST contain the value 0xD3414D42 (the string
      "SAMB" with the high bit of the first byte set).

      alm_algorithm_id: The ALM Algorithm ID of the ALM algorithm being
      used.  Each multicast tree uses only one algorithm.  Trees with
      different ALM algorithms can coexist and can share the same nodes.
      ALM Algorithm ID codes are defined in Section 14.1.

      version: The version of the ALM protocol being used.  This is a
      fixed-point integer between 0.1 and 25.4.  This document describes
      version 1.0 with a value of 0xA.









Buford & Kolberg              Experimental                     [Page 30]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


10.2.  ALMMessageContents Definition

   struct {
      uint16       alm_message_code;
      opaque       alm_message_body;
   } ALMMessageContents;

   The fields in ALMMessageContents are used as follows:

      alm_message_code: This indicates the message being sent.  The
      message codes are listed in Section 14.2.

      alm_message_body: The message body itself, represented as a
      variable-length string of bytes.  The bytes themselves are
      dependent on the code value.  See Sections 8 and 9, which describe
      the various ALM methods for the definitions of the payload
      contents.

10.3.  Response Codes

   Response codes are defined in Section 6.3.3.1 of [RELOAD].  This
   specification maps to RELOAD ErrorResponse as follows:

   ErrorResponse.error_code = Error_Exp_A;

   Error_info contains an ALMErrorResponse instance.

   public struct {
      uint16   alm_error_code;
      opaque   alm_error_info<0..2^16-1>;
   } ALMErrorResponse;

   alm_error_code: The following error code values are defined.  Numeric
   values for these are defined in Section 14.3.

      Error_Unknown_Algorithm: The multicast algorithm is not known or
      not supported.

      Error_Child_Limit_Reached: The maximum number of child nodes has
      been reached for this node.

      Error_Node_Bandwidth_Reached: The overall data bandwidth limit
      through this node has been reached.

      Error_Node_Conn_Limit_Reached: The total number of connections to
      this node has been reached.





Buford & Kolberg              Experimental                     [Page 31]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


      Error_Link_Cap_Limit_Reached: The capacity of a link has been
      reached.

      Error_Node_Mem_Limit_Reached: An internal memory capacity of the
      node has been reached.

      Error_Node_CPU_Cap_Limit_Reached: An internal processing capacity
      of the node has been reached.

      Error_Path_Limit_Reached: The maximum path length in hop count
      over the multicast tree has been reached.

      Error_Path_Delay_Limit_Reached: The maximum path length in message
      delay over the multicast tree has been reached.

      Error_Tree_Fanout_Limit_Reached: The maximum fanout of a multicast
      tree has been reached.

      Error_Tree_Depth_Limit_Reached: The maximum height of a multicast
      tree has been reached.

      Error_Other: A human-readable description is placed in the
      alm_error_info field.

11.  Examples

   All peers in the examples are assumed to have completed
   bootstrapping.  "Pn" refers to peer N.  "group_id" refers to a peer
   responsible for storing the ALMTree instance with group_id.






















Buford & Kolberg              Experimental                     [Page 32]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


11.1.  Create Tree

   A node with "NODE-MATCH" rights sends a CreateALMTree request to the
   group_id node, which also has NODE-MATCH rights for its own address.
   The group_id node determines whether to create the new tree and, if
   so, performs a local StoreReq.  If the CreateALMTree succeeds, the
   ALMTree instance can be retrieved using Fetch.  An example message
   flow for creating a tree is depicted in Figure 6.

                P1      P2      P3       P4      group_id
                |       |       |        |       |
                |       |       |        |       |
                |       |       |        |       |
                | CreateALMTree |        |       |
                |------------------------------->|
                |       |       |        |       |
                |       |       |        |       | StoreReq
                |       |       |        |       |--+
                |       |       |        |       |  |
                |       |       |        |       |  |
                |       |       |        |       |<-+
                |       |       |        |       | StoreResponse
                |       |       |        |       |--+
                |       |       |        |       |  |
                |       |       |        |       |  |
                |       |       |        |       |<-+
                |       |       |        |       |
                |       |       |        |       |
                |       | CreateALMTreeResponse  |
                |<-------------------------------|
                |       |       |        |       |
                |       |       |        |       |
                | Fetch         |        |       |
                |------------------------------->|
                |       |       |        |       |
                |       |       |        |       |
                |       |         FetchResponse  |
                |<-------------------------------|
                |       |       |        |       |

             Figure 6: Message Flow Example for CreateALMTree

11.2.  Join Tree

   P1 joins node group_id as child node.  P2 joins the tree as a child
   of P1.  P4 joins the tree as a child of P1.  The corresponding
   message flow is shown in Figure 7.




Buford & Kolberg              Experimental                     [Page 33]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


                   P1      P2      P3       P4      group_id
                   |       |       |        |       |
                   |       |       |        |       |
                   | Join                           |
                   |------------------------------->|
                   |       |       |        |       |
                   | JoinAccept                     |
                   |<-------------------------------|
                   |       |       |        |       |
                   |       |       |        |       |
                   |       |Join                    |
                   |       |----------------------->|
                   |       |       |        |       |
                   |                            Join|
                   |<-------------------------------|
                   |       |       |        |       |
                   |JoinAccept     |        |       |
                   |------>|       |        |       |
                   |       |       |        |       |
                   |JoinConfirm    |        |       |
                   |<------|       |        |       |
                   |       |       |        |       |
                   |       |       |        |Join   |
                   |       |       |        |------>|
                   |       |       |        |  Join |
                   |<-------------------------------|
                   |       |       |        |       |
                   | Join  |       |        |       |
                   |------>|       |        |       |
                   |       |       |        |       |
                   | JoinAccept    |        |       |
                   |----------------------->|       |
                   |       |       |        |       |
                   |       | JoinAccept     |       |
                   |       |--------------->|       |
                   |       |       |        |       |
                   |       |       |        |       |
                   |       |   JoinConfirm  |       |
                   |<-----------------------|       |
                   |       |       |        |       |
                   |       |   JoinDecline  |       |
                   |       |<---------------|       |
                   |       |       |        |       |
                   |       |       |        |       |

               Figure 7: Message Flow Example for Tree Join





Buford & Kolberg              Experimental                     [Page 34]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


11.3.  Leave Tree

                   P1      P2      P3       P4      group_id
                   |       |       |        |       |
                   |       |       |        |       |
                   |       |       |  Leave |       |
                   |<-----------------------|       |
                   |       |       |        |       |
                   | LeaveResponse |        |       |
                   |----------------------->|       |
                   |       |       |        |       |
                   |       |       |        |       |

               Figure 8: Message Flow Example for Leave Tree





































Buford & Kolberg              Experimental                     [Page 35]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


11.4.  Push Data

   The multicast data is pushed recursively P1 => group_id => P1 => P2,
   P4 following the tree topology created in the Join example above.  An
   example message flow is shown in Figure 9.

                   P1      P2      P3       P4      group_id
                   |       |       |        |       |
                   | Push  |       |        |       |
                   |------------------------------->|
                   |       |       |        |       |
                   |       |       |    PushResponse|
                   |<-------------------------------|
                   |       |       |        |       |
                   |       |       |        |   Push|
                   |<-------------------------------|
                   |       |       |        |       |
                   | PushResponse  |        |       |
                   |------------------------------->|
                   |       |       |        |       |
                   |Push   |       |        |       |
                   |------>|       |        |       |
                   |       |       |        |       |
                   |PushResponse   |        |       |
                   |<------|       |        |       |
                   |       |       |        |       |
                   | Push  |       |        |       |
                   |----------------------->|       |
                   |       |       |        |       |
                   |       |   PushResponse |       |
                   |<-----------------------|       |
                   |       |       |        |       |
                   |       |       |        |       |
                   |       |       |        |       |

              Figure 9: Message Flow Example for Pushing Data

12.  Kind Definitions

12.1.  ALMTree Kind Definition

   This section defines the ALMTree Kind per Section 7.4.5 of [RELOAD].
   An instance of the ALMTree Kind is stored in the overlay for each ALM
   tree instance.  It is stored at the address group_id.

   Kind-ID: 0xF0000001.  (This is a private-use code point per
   Section 14.6 of [RELOAD].)  The Resource Name for the ALMTree Kind-ID
   is the session_key used to identify the ALM tree.



Buford & Kolberg              Experimental                     [Page 36]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


   Data Model: The data model is the ALMTree structure.

   Access Control: NODE-MATCH.  The node performing the store operation
   is required to have NODE-MATCH access.

   Meaning: The meaning of the fields is given in Section 7.2.1.

      struct {
        node_id peer_id;
        opaque session_key<0..2^32-1>;
        node_id group_id;
        Dictionary options;
      } ALMTree;

13.  RELOAD Configuration File Extensions

   There are no ALM parameters defined for the RELOAD configuration
   file.

14.  IANA Considerations

   This section contains the new code points registered by this
   document.

14.1.  ALM Algorithm Types

   IANA has created the "SAM ALM Algorithm IDs" registry.  Entries in
   this registry are 16-bit integers denoting Application-Layer
   Multicast algorithms as described in Section 10.1 of this document.
   Code points in the range 0x0003 to 0x7FFF SHALL be registered via
   RFC 5226 [RFC5226] Expert Review.  Code points in the range 0x8000 to
   0xFFFF are reserved for private use.  The initial contents of this
   registry are:

              +----------------+-------------------+-----------+
              | Algorithm Name | ALM Algorithm ID  | RFC       |
              +----------------+-------------------+-----------+
              | INVALID-ALG    |            0x0000 | RFC 7019  |
              | SCRIBE-SAM     |            0x0001 | RFC 7019  |
              | P2PCAST-SAM    |            0x0002 | RFC 7019  |
              | Reserved       |     0x8000-0xFFFF | RFC 7019  |
              +----------------+-------------------+-----------+

          Figure 10: "SAM ALM Algorithm IDs" Registry Allocations

   These values have been made available for the purposes of
   experimentation.  These values are not meant for vendor-specific use
   of any sort and MUST NOT be used for operational deployments.



Buford & Kolberg              Experimental                     [Page 37]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


14.2.  Message Code Registration

   IANA has created the "SAM ALM Message Codes" registry.  Entries in
   this registry are 16-bit integers denoting message codes as described
   in Section 10.2 of this document.  Code points in the range 0x0014 to
   0x7FFF SHALL be registered via RFC 5226 [RFC5226] Expert Review.
   Code points in the range 0x8000 to 0xFFFF are reserved for private
   use.  The initial contents of this registry are:

        +-------------------------+----------------------+-----------+
        | Message Code Name       | Message Code Value   | RFC       |
        +-------------------------+----------------------+-----------+
        | InvalidMessageCode      |               0x0000 | RFC 7019  |
        | CreateALMTree           |               0x0001 | RFC 7019  |
        | CreateALMTreeResponse   |               0x0002 | RFC 7019  |
        | Join                    |               0x0003 | RFC 7019  |
        | JoinAccept              |               0x0004 | RFC 7019  |
        | JoinReject              |               0x0005 | RFC 7019  |
        | JoinConfirm             |               0x0006 | RFC 7019  |
        | JoinConfirmResponse     |               0x0007 | RFC 7019  |
        | JoinDecline             |               0x0008 | RFC 7019  |
        | JoinDeclineResponse     |               0x0009 | RFC 7019  |
        | Leave                   |               0x000A | RFC 7019  |
        | LeaveResponse           |               0x000B | RFC 7019  |
        | Reform                  |               0x000C | RFC 7019  |
        | ReformResponse          |               0x000D | RFC 7019  |
        | Heartbeat               |               0x000E | RFC 7019  |
        | HeartbeatResponse       |               0x000F | RFC 7019  |
        | NodeQuery               |               0x0010 | RFC 7019  |
        | NodeQueryResponse       |               0x0011 | RFC 7019  |
        | Push                    |               0x0012 | RFC 7019  |
        | PushResponse            |               0x0013 | RFC 7019  |
        | Reserved                |        0x8000-0xFFFF | RFC 7019  |
        +-------------------------+----------------------+-----------+

          Figure 11: "SAM ALM Message Codes" Registry Allocations

   These values have been made available for the purposes of
   experimentation.  These values are not meant for vendor-specific use
   of any sort and MUST NOT be used for operational deployments.

14.3.  Error Code Registration

   IANA has created the "SAM ALM Error Codes" registry.  Entries in this
   registry are 16-bit integers denoting error codes as described in
   Section 10.3 of this document.  Code points in the range 0x000D to





Buford & Kolberg              Experimental                     [Page 38]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


   0x7FFF SHALL be registered via RFC 5226 [RFC5226] Expert Review.
   Code points in the range 0x8000 to 0xFFFF are reserved for private
   use.  The initial contents of this registry are:

      +----------------------------------+---------------+-----------+
      | Error Code Name                  | Code Value    | RFC       |
      +----------------------------------+---------------+-----------+
      | InvalidErrorCode                 |       0x0000  | RFC 7019  |
      | Error_Unknown_Algorithm          |       0x0001  | RFC 7019  |
      | Error_Child_Limit_Reached        |       0x0002  | RFC 7019  |
      | Error_Node_Bandwidth_Reached     |       0x0003  | RFC 7019  |
      | Error_Node_Conn_Limit_Reached    |       0x0004  | RFC 7019  |
      | Error_Link_Cap_Limit_Reached     |       0x0005  | RFC 7019  |
      | Error_Node_Mem_Limit_Reached     |       0x0006  | RFC 7019  |
      | Error_Node_CPU_Cap_Limit_Reached |       0x0007  | RFC 7019  |
      | Error_Path_Limit_Reached         |       0x0008  | RFC 7019  |
      | Error_Path_Delay_Limit_Reached   |       0x0009  | RFC 7019  |
      | Error_Tree_Fanout_Limit_Reached  |       0x000A  | RFC 7019  |
      | Error_Tree_Depth_Limit_Reached   |       0x000B  | RFC 7019  |
      | Error_Other                      |       0x000C  | RFC 7019  |
      | Reserved                         | 0x8000-0xFFFF | RFC 7019  |
      +----------------------------------+---------------+-----------+

           Figure 12: "SAM ALM Error Codes" Registry Allocations

   These values have been made available for the purposes of
   experimentation.  These values are not meant for vendor-specific use
   of any sort and MUST NOT be used for operational deployments.

15.  Security Considerations

   Overlays are vulnerable to DoS and collusion attacks.  We are not
   solving overlay security issues.  We assume that the node
   authentication model as defined in [RELOAD] will be used.

   Security issues specific to ALM Usage include the following:

   o  The right to create group_id at some node_id

   o  The right to store Tree info at some location in the DHT

   o  A limit on number of messages per second and bandwidth use

   o  The right to join an ALM tree







Buford & Kolberg              Experimental                     [Page 39]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


16.  Acknowledgements

   Marc Petit-Huguenin, Michael Welzl, Joerg Ott, and Lars Eggert
   provided important comments on earlier versions of this document.

17.  References

17.1.  Normative Reference

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

17.2.  Informative References

   [BUFORD2008]  Buford, J. and H. Yu, "P2P: Overlay Multicast",
                 Encyclopedia of Wireless and Mobile Communications,
                 2008, <http://www.tandfonline.com/doi/abs/10.1081/
                 E-EWMC-120043583>.

   [BUFORD2009]  Buford, J., Yu, H., and E. Lua, "P2P Networking and
                 Applications (Chapter 9)", Morgan Kaufman, 2009,
                 <http://www.sciencedirect.com/science/book/
                 9780123742148>.

   [CASTRO2002]  Castro, M., Druschel, P., Kermarrec, A., and A.
                 Rowstron, "SCRIBE: A large-scale and decentralized
                 application-level multicast infrastructure", IEEE
                 Journal on Selected Areas in Communications, Vol. 20,
                 No. 8, October 2002, <http://ieeexplore.ieee.org/xpl/
                 login.jsp?tp=&arnumber=1038579>.

   [CASTRO2003]  Castro, M., Jones, M., Kermarrec, A., Rowstron, A.,
                 Theimer, M., Wang, H., and A. Wolman, "An Evaluation of
                 Scalable Application-level Multicast Built Using Peer-
                 to-peer Overlays", Proceedings of IEEE INFOCOM 2003,
                 April 2003, <http://ieeexplore.ieee.org/xpl/
                 login.jsp?tp=&arnumber=1208986>.

   [COMMON-API]  Waehlisch, M., Schmidt, T., and S. Venaas, "A Common
                 API for Transparent Hybrid Multicast", Work in
                 Progress, April 2013.

   [KOLBERG2010] Kolberg, M., "Employing Multicast in P2P Overlay
                 Networks", Handbook of Peer-to-Peer Networking, 2010,
                 <http://link.springer.com/content/pdf/
                 10.1007%2F978-0-387-09751-0_30.pdf>.





Buford & Kolberg              Experimental                     [Page 40]
^L
RFC 7019                ALM Extensions to RELOAD          September 2013


   [P2PCAST]     Nicolosi, A. and S. Annapureddy, "P2PCast: A Peer-to-
                 Peer Multicast Scheme for Streaming Data", Stanford
                 Secure Computer Systems Group Report, May 2003,
                 <http://www.scs.stanford.edu/~reddy/research/p2pcast/
                 report.pdf>.

   [RELOAD]      Jennings, C., Lowekamp, B., Ed., Rescorla, E., Baset,
                 S., and H. Schulzrinne, "REsource LOcation And
                 Discovery (RELOAD) Base Protocol", Work in Progress,
                 February 2013.

   [RFC5226]     Narten, T. and H. Alvestrand, "Guidelines for Writing
                 an IANA Considerations Section in RFCs", BCP 26, RFC
                 5226, May 2008.

   [SAM-GENERIC] Muramoto, E., Imai, Y., and N. Kawaguchi, "Requirements
                 for Scalable Adaptive Multicast Framework in Non-GIG
                 Networks", Work in Progress, November 2006.

   [SPLITSTREAM] Castro, M., Druschel, P., Nandi, A., Kermarrec, A.,
                 Rowstron, A., and A. Singh, "SplitStream: High-
                 Bandwidth Multicast in a Cooperative Environment", SOSP
                 '03, Lake Bolton, New York, October 2003,
                 <http://dl.acm.org/citation.cfm?id=945474>.

Authors' Addresses

   John Buford
   Avaya Labs Research
   211 Mt. Airy Rd.
   Basking Ridge, New Jersey  07920
   USA

   Phone: +1 908 848 5675
   EMail: buford@avaya.com


   Mario Kolberg (editor)
   University of Stirling
   Dept. of Computing Science and Mathematics
   Stirling  FK9 4LA
   UK

   Phone: +44 1786 46 7440
   EMail: mkolberg@ieee.org
   URI:   http://www.cs.stir.ac.uk/~mko





Buford & Kolberg              Experimental                     [Page 41]
^L