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
|
<pre>Network Working Group M. Rose
Request for Comments: 3340 Dover Beach Consulting, Inc.
Category: Standards Track G. Klyne
Clearswift Corporation
D. Crocker
Brandenburg InternetWorking
July 2002
<span class="h1">The Application Exchange Core</span>
Status of this Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2002). All Rights Reserved.
Abstract
This memo describes Application Exchange (APEX) Core, an extensible,
asynchronous message relaying service for application layer programs.
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-1.1">1.1</a> Overview . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-1.2">1.2</a> Architecture at a Glance . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-2">2</a>. Service Principles . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-2.1">2.1</a> Modes of Operation . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-2.2">2.2</a> Naming of Entities . . . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
<a href="#section-2.2.1">2.2.1</a> Comparing Endpoints . . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-3">3</a>. Service Provisioning . . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-3.1">3.1</a> Connection Establishment . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-3.2">3.2</a> Authentication . . . . . . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-3.3">3.3</a> Authorization . . . . . . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-3.4">3.4</a> Confidentiality . . . . . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-3.5">3.5</a> Relaying Integrity . . . . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-3.6">3.6</a> Traffic Analysis . . . . . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-4">4</a>. The APEX . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-4.1">4.1</a> Use of XML and MIME . . . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-4.2">4.2</a> Profile Identification and Initialization . . . . . . . . <a href="#page-10">10</a>
<a href="#section-4.3">4.3</a> Message Syntax . . . . . . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<span class="grey">Rose, et. al. Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
<a href="#section-4.4">4.4</a> Message Semantics . . . . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<a href="#section-4.4.1">4.4.1</a> The Attach Operation . . . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<a href="#section-4.4.2">4.4.2</a> The Bind Operation . . . . . . . . . . . . . . . . . . . . <a href="#page-13">13</a>
<a href="#section-4.4.3">4.4.3</a> The Terminate Operation . . . . . . . . . . . . . . . . . <a href="#page-14">14</a>
<a href="#section-4.4.4">4.4.4</a> The Data Operation . . . . . . . . . . . . . . . . . . . . <a href="#page-15">15</a>
<a href="#section-4.4.4.1">4.4.4.1</a> Relay Processing of Data . . . . . . . . . . . . . . . . . <a href="#page-17">17</a>
<a href="#section-4.4.4.2">4.4.4.2</a> Application Processing of Data . . . . . . . . . . . . . . <a href="#page-18">18</a>
<a href="#section-4.5">4.5</a> APEX Access Policies . . . . . . . . . . . . . . . . . . . <a href="#page-19">19</a>
<a href="#section-4.5.1">4.5.1</a> Access Policies in the Endpoint-Relay Mode . . . . . . . . <a href="#page-19">19</a>
<a href="#section-4.5.2">4.5.2</a> Access Policies in the Relay-Relay Mode . . . . . . . . . <a href="#page-20">20</a>
<a href="#section-5">5</a>. APEX Options . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-20">20</a>
<a href="#section-5.1">5.1</a> The statusRequest Option . . . . . . . . . . . . . . . . . <a href="#page-22">22</a>
<a href="#section-6">6</a>. APEX Services . . . . . . . . . . . . . . . . . . . . . . <a href="#page-26">26</a>
<a href="#section-6.1">6.1</a> Use of the APEX Core DTD . . . . . . . . . . . . . . . . . <a href="#page-27">27</a>
<a href="#section-6.1.1">6.1.1</a> Transaction-Identifiers . . . . . . . . . . . . . . . . . <a href="#page-27">27</a>
<a href="#section-6.1.2">6.1.2</a> The Reply Element . . . . . . . . . . . . . . . . . . . . <a href="#page-28">28</a>
<a href="#section-6.2">6.2</a> The Report Service . . . . . . . . . . . . . . . . . . . . <a href="#page-28">28</a>
<a href="#section-7">7</a>. Registration Templates . . . . . . . . . . . . . . . . . . <a href="#page-29">29</a>
<a href="#section-7.1">7.1</a> APEX Option Registration Template . . . . . . . . . . . . <a href="#page-29">29</a>
<a href="#section-7.2">7.2</a> APEX Service Registration Template . . . . . . . . . . . . <a href="#page-29">29</a>
<a href="#section-7.3">7.3</a> APEX Endpoint Application Registration Template . . . . . <a href="#page-30">30</a>
<a href="#section-8">8</a>. Initial Registrations . . . . . . . . . . . . . . . . . . <a href="#page-30">30</a>
<a href="#section-8.1">8.1</a> Registration: The APEX Profile . . . . . . . . . . . . . . <a href="#page-30">30</a>
8.2 Registration: The System (Well-Known) TCP port number for
apex-mesh . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-31">31</a>
8.3 Registration: The System (Well-Known) TCP port number for
apex-edge . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-31">31</a>
<a href="#section-8.4">8.4</a> Registration: The statusRequest Option . . . . . . . . . . <a href="#page-31">31</a>
<a href="#section-8.5">8.5</a> Registration: The Report Service . . . . . . . . . . . . . <a href="#page-32">32</a>
<a href="#section-9">9</a>. DTDs . . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-32">32</a>
<a href="#section-9.1">9.1</a> The APEX Core DTD . . . . . . . . . . . . . . . . . . . . <a href="#page-32">32</a>
<a href="#section-9.2">9.2</a> The Report Service DTD . . . . . . . . . . . . . . . . . . <a href="#page-34">34</a>
<a href="#section-10">10</a>. Reply Codes . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-35">35</a>
<a href="#section-11">11</a>. Security Considerations . . . . . . . . . . . . . . . . . <a href="#page-36">36</a>
References . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-36">36</a>
Authors' Addresses . . . . . . . . . . . . . . . . . . . . <a href="#page-38">38</a>
<a href="#appendix-A">A</a>. Acknowledgements . . . . . . . . . . . . . . . . . . . . . <a href="#page-39">39</a>
<a href="#appendix-B">B</a>. IANA Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-39">39</a>
Full Copyright Statement . . . . . . . . . . . . . . . . . <a href="#page-40">40</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
Network applications can be broadly distinguished by five operational
characteristics:
o server push or client pull;
o synchronous (interactive) or asynchronous (batch);
<span class="grey">Rose, et. al. Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
o time-assured or time-insensitive;
o best-effort or reliable; and,
o stateful or stateless.
For example:
o the world-wide web is a pull, synchronous, time-insensitive,
reliable, stateless service; whilst
o Internet mail is a push, asynchronous, time-insensitive, best-
effort (without DSN), stateless service.
Messaging applications vary considerably in their operational
requirements. For example, some messaging applications require
assurance of timeliness and reliability, whilst others do not.
These features come at a cost, in terms of both infrastructural and
configuration complexity. Accordingly, the underlying service must
be extensible to support different requirements in a consistent
manner.
This memo defines a core messaging service that supports a range of
operational characteristics. The core service supports a variety of
tailored services for both user-based and programmatic exchanges.
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a> Overview</span>
APEX provides an extensible, asynchronous message relaying service
for application layer programs.
APEX, at its core, provides a best-effort datagram service. Each
datagram, simply termed "data", is originated and received by APEX
"endpoints" -- applications that dynamically attach to the APEX
"relaying mesh".
The data transmitted specifies:
o an originating endpoint;
o an opaque content (via a URI-reference);
o one or more recipient endpoints; and,
o zero or more options.
<span class="grey">Rose, et. al. Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
Options are used to alter the semantics of the service, which may
occur on a per-recipient or per-data basis, and may be processed by
either a single or multiple relays.
Additional APEX services are provided on top of the relaying mesh;
e.g., access control and presence information.
APEX is specified, in part, as a BEEP [<a href="#ref-1" title=""The Blocks Extensible Exchange Protocol Core"">1</a>] "profile". Accordingly,
many aspects of APEX (e.g., authentication) are provided within the
BEEP core. Throughout this memo, the terms "peer", "initiator",
"listener", "client", and "server" are used in the context of BEEP.
In particular, <a href="#section-2.1">Section 2.1</a> of the BEEP core memo discusses the roles
that a BEEP peer may perform.
When reading this memo, note that the terms "endpoint" and "relay"
are specific to APEX, they do not exist in the context of BEEP.
<span class="h3"><a class="selflink" id="section-1.2" href="#section-1.2">1.2</a> Architecture at a Glance</span>
The APEX stack:
+-------------+
| APEX | an APEX process is either:
| process |
+-------------+ - an application attached as an APEX
| | endpoint; or,
| APEX |
| | - an APEX relay
+-------------+
| | APEX services are realized as applications
| BEEP | having a special relationship with the APEX
| | relays in their administrative domain
+-------------+
| TCP |
+-------------+
| ... |
+-------------+
<span class="grey">Rose, et. al. Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
The APEX entities:
administrative domain #1 administrative domain #2
+----------------------------+ +----------------------------+
| +------+ | | +------+ |
| | | | | | | |
| | appl | | | | appl | |
| | | | | | | |
| +......+ +------+ | | +------+ +......+ |
| | | | | | | | | | | |
| |end- | |relay | | | |relay | |end- | |
| | point| | | | | | | | point| |
| +------+ +------+ | | +------+ +------+ |
| | | | | | | | | | | |
| | APEX | | APEX | | | | APEX | | APEX | |
| | | | | | | | | | | |
| +------+ +------+ | | +------+ +------+ |
| || || || | | || || || |
| ============= ================ ============= |
+----------------------------+ +----------------------------+
| <---- APEX relaying mesh ----> |
Note: relaying between administrative domains is configured
using SRV RRs. Accordingly, the actual number of
relays between two endpoints is not fixed.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Service Principles</span>
<span class="h3"><a class="selflink" id="section-2.1" href="#section-2.1">2.1</a> Modes of Operation</span>
APEX is used in two modes:
endpoint-relay: in which the endpoint is always the BEEP initiator of
the service, whilst relays are always the BEEP listeners. In this
context, applications attach as endpoints, and then the
transmission of data occurs.
relay-relay: in which relays typically, though not necessarily,
reside in different administrative domains. In this context,
applications bind as relays, and then the transmission of data
occurs.
In the endpoint-relay mode, an endpoint (BEEP initiator) may:
o attach as one or more endpoints;
o send data to other endpoints;
<span class="grey">Rose, et. al. Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
o receive data from other endpoints; and,
o terminate any of its attachments.
A relay (BEEP listener), in addition to servicing requests from a
BEEP initiator, may:
o terminate any of the endpoint's attachments;
o deliver data from other endpoints; and,
o indicate the delivery status of data sent earlier by the endpoint.
In the relay-relay mode, a relay (BEEP listener or initiator) may:
o bind as one or more administrative domains;
o send data;
o receive data; and,
o terminate any bindings.
<span class="h3"><a class="selflink" id="section-2.2" href="#section-2.2">2.2</a> Naming of Entities</span>
Endpoints are named using the following ABNF [<a href="#ref-2" title=""Augmented BNF for Syntax Specifications: ABNF"">2</a>] syntax:
;; Domain is defined in [<a href="#ref-3" title=""Simple Mail Transfer Protocol"">3</a>], either a FQDN or a literal
entity = local "@" Domain
local = address [ "/" subaddress ]
address = token
subaddress = token
;; all non-control characters, excluding "/" and "@" delimiters
token = 1*(%x20-2E / %x30-3F / %x41-7E / UTF-8) ;; [<a href="#ref-4" title=""UTF-8, a transformation format of Unicode and ISO 10646"">4</a>]
Two further conventions are applied when using this syntax:
the "apex=" convention: All endpoint identities having a local-part
starting with "apex=" are reserved for use by APEX services
registered with the IANA; and,
<span class="grey">Rose, et. al. Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
the "subaddress" convention: If the solidus character ("/", decimal
code 47) occurs in the local-part, this identifies a subaddress of
an endpoint identity (e.g., "fred/appl=wb@example.com" is a
subaddress of the APEX endpoint "fred@example.com").
All subaddresses starting with "appl=" are reserved for use by
APEX endpoint applications registered with the IANA.
Relays, although not named, serve of behalf of administrative
domains, as identified by a FQDN or a domain-literal, e.g.,
"example.com" or "[10.0.0.1]".
In APEX, "endpoints" and "relays" are the fundamental entities. APEX
is carried over BEEP, which has the "peer" as its fundamental entity.
The relationship between BEEP peer entities and APEX endpoint and
relay entities are defined by APEX's Access Policies (<a href="#section-4.5">Section 4.5</a>).
<span class="h4"><a class="selflink" id="section-2.2.1" href="#section-2.2.1">2.2.1</a> Comparing Endpoints</span>
Note that since the "local" part of an entity is a string of UTF-8
[<a href="#ref-4" title=""UTF-8, a transformation format of Unicode and ISO 10646"">4</a>] octets, comparison operations on the "local" part use exact
matching (i.e., are case-sensitive).
Accordingly, "fred@example.com" and "Fred@example.com" refer to
different endpoints. Of course, relays serving the "example.com"
administrative domain may choose to treat the two endpoints
identically for the purposes of routing and delivery.
Finally, note that if an APEX endpoint is represented using a
transmission encoding, then, prior to comparison, the encoding is
reversed. For example, if the URL encoding is used, then
"apex:fred@example.com" is identical to "apex:f%72ed@example.com".
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Service Provisioning</span>
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a> Connection Establishment</span>
The SRV algorithm [<a href="#ref-5" title=""A DNS RR for specifying the location of services (DNS SRV)"">5</a>] is used to determine the IP/TCP addressing
information assigned to the relays for an administrative domain
identified by a FQDN:
service: "apex-edge" (for the endpoint-relay mode), or "apex-mesh"
(for the relay-relay mode);
protocol: "tcp"; and,
domain: the administrative domain.
<span class="grey">Rose, et. al. Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
If the administrative domain is identified by a domain-literal, then
the IP address information is taken directly from the literal and the
TCP port number used is assigned by the IANA for the registration in
<a href="#section-8.2">Section 8.2</a>.
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a> Authentication</span>
Authentication is a matter of provisioning for each BEEP peer (c.f.,
<a href="#section-4.5">Section 4.5</a>).
An APEX relay might be provisioned to allow a BEEP peer identity to
coincide with a given endpoint identity. For example, a relay in the
"example.com" administrative domain may be configured to allow a BEEP
peer identified as "fred@example.com" to be authorized to attach as
the APEX endpoint "fred@example.com".
<span class="h3"><a class="selflink" id="section-3.3" href="#section-3.3">3.3</a> Authorization</span>
Authorization is a matter of provisioning for each BEEP peer (c.f.,
<a href="#section-4.5">Section 4.5</a>).
Typically, a relay requires that its BEEP peer authenticate as a
prelude to authorization, but an endpoint usually does not require
the same of its BEEP peer.
<span class="h3"><a class="selflink" id="section-3.4" href="#section-3.4">3.4</a> Confidentiality</span>
Confidentiality is a matter of provisioning for each BEEP peer.
Typically, any data considered sensitive by an originating endpoint
will have its content encrypted for the intended recipient
endpoint(s), rather than relying on hop-by-hop encryption.
Similarly, an originating endpoint will sign the content if end-to-
end authentication is desired.
<span class="h3"><a class="selflink" id="section-3.5" href="#section-3.5">3.5</a> Relaying Integrity</span>
Data are relayed according to SRV entries in the DNS. Accordingly,
relaying integrity is a function of the DNS and the applications
making use of the DNS. Additional assurance is provided if the BEEP
initiator requires that the BEEP listener authenticate itself.
<span class="grey">Rose, et. al. Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
<span class="h3"><a class="selflink" id="section-3.6" href="#section-3.6">3.6</a> Traffic Analysis</span>
Hop-by-hop protection of data transmitted through the relaying mesh
(endpoint identities and content) is afforded at the BEEP level
through the use of a transport security profile. Other traffic
characteristics, e.g., volume and timing of transmissions, are not
protected from third-party analysis.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. The APEX</span>
<a href="#section-8.1">Section 8.1</a> contains the BEEP profile registration for APEX.
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a> Use of XML and MIME</span>
Each BEEP payload exchanged via APEX consists of an XML document and
possibly an arbitrary MIME content.
If only an XML document is sent in the BEEP payload, then the mapping
to a BEEP payload is straight-forward, e.g.,
C: MSG 1 2 . 111 39
C: Content-Type: application/beep+xml
C:
C: <terminate transID='1' />
C: END
Otherwise, if an arbitrary MIME content is present, it is indicated
by a URI-reference [<a href="#ref-6" title=""Uniform Resource Identifiers (URI): Generic Syntax"">6</a>] in the XML control document. The URI-
reference may contain an absolute-URI (and possibly a fragment-
identifier), or it may be a relative-URI consisting only of a
fragment-identifier. Arbitrary MIME content is included in the BEEP
payload by using a "multipart/related" [<a href="#ref-7" title=""The MIME Multipart/Related Content-type"">7</a>], identified using a "cid"
URL [<a href="#ref-8" title=""Content-ID and Message-ID Uniform Resource Locators"">8</a>], and the XML control document occurs as the start of the
"multipart/related", e.g.,
C: MSG 1 1 . 42 1234
C: Content-Type: multipart/related; boundary="boundary";
C: start="<1@example.com>";
C: type="application/beep+xml"
C:
C: --boundary
C: Content-Type: application/beep+xml
C: Content-ID: <1@example.com>
C:
C: <data content='cid:2@example.com'>
C: <originator identity='fred@example.com' />
C: <recipient identity='barney@example.com' />
C: </data>
<span class="grey">Rose, et. al. Standards Track [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
C: --boundary
C: Content-Type: image/gif
C: Content-Transfer-Encoding: binary
C: Content-ID: <2@example.com>
C:
C: ...
C: --boundary--
C: END
Because BEEP provides an 8bit-wide path, a "transformative" Content-
Transfer-Encoding (e.g., "base64" or "quoted-printable") should not
be used. Further, note that MIME [<a href="#ref-9" title=""Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies"">9</a>] requires that the value of the
"Content-ID" header be globally unique.
If the arbitrary MIME content is itself an XML document, it may be
contained within the control document directly as a "data-content"
element, and identified using a URI-reference consisting of only a
fragment-identifier, e.g.,
C: MSG 1 1 . 42 295
C: Content-Type: application/beep+xml
C:
C: <data content='#Content'>
C: <originator identity='fred@example.com' />
C: <recipient identity='barney@example.com' />
C: <data-content Name='Content'>
C: <statusResponse transID='86'>
C: <destination identity='barney@example.com'>
C: <reply code='250' />
C: </destination>
C: </statusResponse>
C: </data-content>
C: </data>
C: END
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a> Profile Identification and Initialization</span>
The APEX is identified as
<a href="http://iana.org/beep/APEX">http://iana.org/beep/APEX</a>
in the BEEP "profile" element during channel creation.
No elements are required to be exchanged during channel creation;
however, in the endpoint-relay mode, the BEEP initiator will
typically include an "attach" element during channel creation, e.g.,
<span class="grey">Rose, et. al. Standards Track [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
<start number='1'>
<profile uri='http://iana.org/beep/APEX'>
<![CDATA[<attach endpoint='fred@example.com'
transID='1' />]]>
</profile>
</start>
Similarly, in the relay-relay mode, the BEEP initiator will typically
include an "bind" element during channel creation, e.g.,
<start number='1'>
<profile uri='http://iana.org/beep/APEX'>
<![CDATA[<bind relay='example.com'
transID='1' />]]>
</profile>
</start>
<span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a> Message Syntax</span>
<a href="#section-9.1">Section 9.1</a> defines the BEEP payloads that are used in the APEX.
<span class="h3"><a class="selflink" id="section-4.4" href="#section-4.4">4.4</a> Message Semantics</span>
<span class="h4"><a class="selflink" id="section-4.4.1" href="#section-4.4.1">4.4.1</a> The Attach Operation</span>
When an application wants to attach to the relaying mesh as a given
endpoint, it sends an "attach" element to a relay, e.g.,
+-------+ +-------+
| | -- attach -----> | |
| appl. | | relay |
| | <--------- ok -- | |
+-------+ +-------+
C: <attach endpoint='fred@example.com' transID='1' />
S: <ok />
or
+-------+ +-------+
| | -- attach -----> | |
| | | |
| | <--------- ok -- | |
| appl. | | relay |
| | -- attach -----> | |
| | | |
| | <--------- ok -- | |
+-------+ +-------+
<span class="grey">Rose, et. al. Standards Track [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
C: <attach endpoint='fred@example.com' transID='1' />
S: <ok />
C: <attach endpoint='wilma@example.com' transID='2' />
S: <ok />
or
+-------+ +-------+
| | -- attach -----> | |
| appl. | | relay |
| | <------ error -- | |
+-------+ +-------+
C: <attach endpoint='fred@example.com' transID='1' />
S: <error code='537'>access denied</error>
The "attach" element has an "endpoint" attribute, a "transID"
attribute, and contains zero or more "option" elements:
o the "endpoint" attribute specifies the endpoint that the
application wants to attach as;
o the "transID" attribute specifies the transaction-identifier
associated with this operation; and,
o the "option" elements, if any, specify additional processing
options (<a href="#section-5">Section 5</a>).
When a relay receives an "attach" element, it performs these steps:
1. If the transaction-identifier refers to a previous, non-terminated
operation on this BEEP channel, an "error" element having code 555
is returned.
2. If the relay is in a different administrative domain than this
endpoint, an "error" element having code 553 is returned.
3. If the application is not authorized to attach as this endpoint
(c.f., <a href="#section-4.5.1">Section 4.5.1</a>), an "error" element having code 537 is
returned.
4. If any options are present, they are processed.
5. If another application has already attached as this endpoint, an
"error" element having code 554 is returned.
6. Otherwise, the application is bound as this endpoint, and an "ok"
element is returned.
<span class="grey">Rose, et. al. Standards Track [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
<span class="h4"><a class="selflink" id="section-4.4.2" href="#section-4.4.2">4.4.2</a> The Bind Operation</span>
When an application wants to identify itself as a relay, it sends a
"bind" element to another relay, e.g.,
+-------+ +-------+
| | -- bind -------> | |
| relay | | relay |
| #1 | <--------- ok -- | #2 |
+-------+ +-------+
C: <bind relay='example.com' transID='1' />
S: <ok />
or
+-------+ +-------+
| | -- bind -------> | |
| | | |
| | <--------- ok -- | |
| relay | | relay |
| #1 | -- bind -------> | #2 |
| | | |
| | <--------- ok -- | |
+-------+ +-------+
C: <bind relay='example.com' transID='1' />
S: <ok />
C: <bind relay='rubble.com' transID='2' />
S: <ok />
or
+-------+ +-------+
| | -- bind -------> | |
| relay | | relay |
| #1 | <------ error -- | #2 |
+-------+ +-------+
C: <bind relay='example.com' transID='1' />
S: <error code='537'>access denied</error>
The "bind" element has a "relay" attribute, a "transID" attribute,
and contains zero or more "option" elements:
o the "relay" attribute specifies the administrative domain on whose
behalf the application wants to serve;
<span class="grey">Rose, et. al. Standards Track [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
o the "transID" attribute specifies the transaction-identifier
associated with this operation; and,
o the "option" elements, if any, specify additional processing
options (<a href="#section-5">Section 5</a>).
When a relay receives an "bind" element, it performs these steps:
1. If the transaction-identifier refers to a previous, non-terminated
operation on this BEEP channel, an "error" element having code 555
is returned.
2. If the application is not authorized to bind on behalf of this
administrative domain (c.f., <a href="#section-4.5.2">Section 4.5.2</a>), an "error" element
having code 537 is returned.
3. If any options are present, they are processed.
4. Otherwise, the application is accepted as serving this
administrative domain, and an "ok" element is returned.
<span class="h4"><a class="selflink" id="section-4.4.3" href="#section-4.4.3">4.4.3</a> The Terminate Operation</span>
When an application or relay wants to release an attachment or
binding, it sends a "terminate" element, e.g.,
+-------+ +-------+
| | -- terminate --> | |
| appl. | | relay |
| | <--------- ok -- | |
+-------+ +-------+
C: <terminate transID='1' />
S: <ok />
or
+-------+ +-------+
| | -- terminate --> | |
| appl. | | relay |
| | <------ error -- | |
+-------+ +-------+
C: <terminate transID='13' />
S: <error code='550'>unknown transaction-identifier</error>
or
<span class="grey">Rose, et. al. Standards Track [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
+-------+ +-------+
| | <-- terminate -- | |
| appl. | | relay |
| | -- ok ---------> | |
+-------+ +-------+
C: <terminate transID='1' />
S: <ok />
The "terminate" element has a "transID" attribute, an optional "code"
attribute, an optional "xml:lang" attribute, and may contain
arbitrary textual content:
o the "transID" attribute specifies the transaction-identifier
associated with this operation;
o the "code" attribute, if present, is a three-digit reply code
meaningful to programs (c.f., <a href="#section-10">Section 10</a>);
o the "xml:lang" attribute, if present, specifies the language that
the element's content is written in; and,
o the textual content is a diagnostic (possibly multiline) which is
meaningful to implementers, perhaps administrators, and possibly
even users.
When an application or relay receives a "terminate" element, it
performs these steps:
1. If the value of the transaction-identifier is zero, then all
associations established by this application over this BEEP
session, either as an endpoint attachment or a relay binding, are
terminated, and an "ok" element is returned.
2. Otherwise, if the transaction-identifier does not refer to a
previous unterminated operation on this BEEP channel, an "error"
element having code 550 is returned.
3. Otherwise, the application is no longer bound as an endpoint or a
relay, and an "ok" element is returned.
<span class="h4"><a class="selflink" id="section-4.4.4" href="#section-4.4.4">4.4.4</a> The Data Operation</span>
When an application or relay wants to transmit data over the relaying
mesh, it sends a "data" element, e.g.,
<span class="grey">Rose, et. al. Standards Track [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
+-------+ +-------+
| | -- data -------> | |
| appl. | | relay |
| #1 | <--------- ok -- | |
+-------+ +-------+
C: <data content='cid:1@example.com'>
<originator identity='fred@example.com' />
<recipient identity='barney@example.com' />
</data>
S: <ok />
or
+-------+ +-------+
| | -- data -------> | |
| appl. | | relay |
| #1 | <------ error -- | |
+-------+ +-------+
C: <data content='cid:1@example.com'>
<originator identity='fred@example.com' />
<recipient identity='barney@example.com' />
</data>
S: <error code='537'>access denied</error>
or
+-------+ +-------+
| | -- data -------> | |
| relay | | appl. |
| | <--------- ok -- | #2 |
+-------+ +-------+
C: <data content='cid:1@example.com'>
<originator identity='fred@example.com' />
<recipient identity='barney@example.com' />
</data>
S: <ok />
The "data" element has a "content" attribute, and contains an
"originator" element, one or more "recipient" elements, zero or more
"option" elements, and, optionally, a "data-content" element:
o the "content" attribute is a URI-reference that specifies the
contents of the data (c.f., <a href="#section-4.1">Section 4.1</a>);
o the "originator" element refers to the endpoint sending the data;
<span class="grey">Rose, et. al. Standards Track [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
o each "recipient" element refers to an endpoint destination for the
data;
o the "option" elements, if any, specify additional processing
options (<a href="#section-5">Section 5</a>), termed per-data options; and,
o the "data-content" element, if present, specifies a nested XML
entity that is referenced using a URI fragment-identifier as the
value of the "content" attribute.
The "originator" element has an "identity" attribute, and contains
zero or more option elements:
o the "identity" attribute specifies the sending endpoint; and
o the "option" elements, if any, specify additional processing
options for the originator, termed per-originator options.
Each "recipient" element has an "identity" attribute, and contains
zero or more option elements:
o the "identity" attribute specifies the destination endpoint; and
o the "option" elements, if any, specify additional processing
options for this recipient, termed per-recipient options.
<span class="h5"><a class="selflink" id="section-4.4.4.1" href="#section-4.4.4.1">4.4.4.1</a> Relay Processing of Data</span>
When a relay receives a "data" element, it performs these steps:
1. If the BEEP client is not authorized to originate or relay data on
behalf of the "originator" endpoint (c.f., <a href="#section-4.5">Section 4.5</a>), an
"error" element having code 537 is returned.
2. If any per-data options are present, they are processed.
3. An "ok" element is returned.
4. If any per-originator options are present, they are processed.
5. For each recipient:
1. If any per-recipient options are present, they are processed.
<span class="grey">Rose, et. al. Standards Track [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
2. If the recipient endpoint is not in the administrative domain
associated with the relay, then an APEX session is established
to a relay that accepts data for the recipient's administrative
domain, and a new "data" element, containing that "recipient"
element and all applicable options, is sent to that relay.
If an APEX session is established, the new "data" is sent, and
the recipient's relay returns an "ok" element, then the
recipient is considered to be successfully processed.
3. Otherwise, if the recipient endpoint is in the same
administrative domain as the relay, the APEX access service
must check that the originator endpoint is allowed to
communicate with the recipient endpoint (the access entries
[<a href="#ref-10" title=""The Application Exchange (APEX) Access Service"">10</a>] whose "owner" is the recipient must contain a "core:data"
token for the originator), and the recipient endpoint must be
currently attached.
If so, a new "data" element, containing only that "recipient"
element, is sent to the corresponding application. If the
recipient's endpoint returns an "ok" element, then the
recipient is considered to be successfully processed.
Providing that these semantics are preserved, a relay may choose to
optimize its behavior by grouping multiple recipients in a single
"data" element that is subsequently transmitted.
Finally, note that a relay receiving a "data" element from an
application may be configured to add administrative-specific options.
Regardless, all relays are expressly forbidden from modifying the
content of the "data" element at any time.
<span class="h5"><a class="selflink" id="section-4.4.4.2" href="#section-4.4.4.2">4.4.4.2</a> Application Processing of Data</span>
When an application receives a "data" element, it performs these
steps:
1. If any per-data or per-originator options are present, they are
not processed (but may be noted).
2. For each recipient:
1. If any per-recipient options are present, they are not
processed (but may be noted).
2. If the application is not attached as the recipient endpoint,
then an error in processing has occurred.
<span class="grey">Rose, et. al. Standards Track [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
3. Otherwise, the "data" element is further processed in an
application-specific manner, and the recipient is considered to
be successfully processed.
3. If no recipients could be successfully processed, an "error"
element is returned; otherwise, an "ok" element is returned.
<span class="h3"><a class="selflink" id="section-4.5" href="#section-4.5">4.5</a> APEX Access Policies</span>
Access to APEX is provided by the juxtaposition of:
o authenticating as a BEEP peer;
o attaching as an APEX endpoint or binding as an APEX relay; and,
o being listed as an actor by the APEX access service (c.f., [<a href="#ref-10" title=""The Application Exchange (APEX) Access Service"">10</a>]).
Each of these activities occurs according to the policies of the
relevant administrative domain:
o each administrative domain is responsible for keeping its own
house in order through "local provisioning"; and,
o each administrative domain decides the level of trust to associate
with other administrative domains.
<span class="h4"><a class="selflink" id="section-4.5.1" href="#section-4.5.1">4.5.1</a> Access Policies in the Endpoint-Relay Mode</span>
o When an application wants to attach to the relaying mesh, local
provisioning maps BEEP peer identities to allowed APEX endpoints
(c.f., Step 3 of <a href="#section-4.4.1">Section 4.4.1</a>).
Typically, the identity function is used, e.g., if an application
authenticates itself as the BEEP peer named as "fred@example.com",
it is allowed to attach as the APEX endpoint named as
"fred@example.com".
However, using the "subaddress" convention of <a href="#section-2.2">Section 2.2</a>, an
application authorized to attach as a given APEX endpoint is also
authorized to attach as any subaddress of that APEX endpoint,
e.g., an application authorized to attach as the APEX endpoint
"fred@example.com" is also authorized to attach as the APEX
endpoint "fred/appl=wb@example.com".
o When an application wants to send data, local provisioning maps
attached endpoints to allowed originators (c.f., Step 1 of <a href="#section-4.4.4.1">Section</a>
<a href="#section-4.4.4.1">4.4.4.1</a>).
<span class="grey">Rose, et. al. Standards Track [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
Typically, the identity function is used, e.g., if an application
attaches as the APEX endpoint named as "fred@example.com", it is
allowed to send data originating from the same APEX endpoint.
However, other policies are permissible, for example, the
administrative domain may allow the application attached as the
APEX endpoint named as "wilma@example.com" to send data
originating as either "wilma@example.com" or "fred@example.com".
o Finally, when a relay is delivering to an endpoint within its own
administrative domain, it consults the recipient's access entry
looking for an entry having the originator as an actor (c.f., Step
5.3 of <a href="#section-4.4.4.1">Section 4.4.4.1</a>).
<span class="h4"><a class="selflink" id="section-4.5.2" href="#section-4.5.2">4.5.2</a> Access Policies in the Relay-Relay Mode</span>
o When an application wants to bind as a relay on behalf of an
administrative domain, local provisioning may map BEEP peer
identities to allowed APEX relays (c.f., Step 3).
If so, then typically the identity function is used. e.g., if an
application authenticates itself as the BEEP peer named as
"example.com", it is allowed to bind as a relay on behalf of the
administrative domain "example.com".
o When a relay is sending data, no access policies, per se, are
applied.
o When a relay is receiving data, local provisioning maps BEEP peer
identities to allowed originators (c.f., Step 1 of <a href="#section-4.4.4.1">Section</a>
<a href="#section-4.4.4.1">4.4.4.1</a>).
Typically, the identity function is used, e.g., if a relay
authenticates itself as being from the same administrative domain
as the originator of the data, then the data is accepted.
In addition, some relays may also be configured as "trusted"
intermediaries, so that if a BEEP peer authenticates itself as
being from such a relay, then the data is accepted.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. APEX Options</span>
APEX, at its core, provides a best-effort datagram service. Options
are used to alter the semantics of the core service.
The semantics of the APEX "option" element are context-specific.
Accordingly, the specification of an APEX option must define:
o the identity of the option;
<span class="grey">Rose, et. al. Standards Track [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
o the context in which the option may appear;
o what content, if any, is contained within the option; and,
o the processing rules for the option.
An option registration template (<a href="#section-7.1">Section 7.1</a>) organizes this
information.
An "option" element is contained within either a "data",
"originator", "recipient", or an "attach" element, all of which are
termed the "containing" element. The "option" element has several
attributes and contains arbitrary content:
o the "internal" and the "external" attributes, exactly one of which
is present, uniquely identify the option;
o the "targetHop" attribute specifies which relays should process
the option;
o the "mustUnderstand" attribute specifies whether the option, if
unrecognized, must cause an error in processing to occur;
o the "transID" attribute specifies a transaction-identifier for the
option; and,
o the "localize" attribute, if present, specifies one or more
language tokens, each identifying a desirable language tag to be
used if textual diagnostics are returned to the originator.
Note that if the containing element is an "attach", then the values
of the "targetHop" and "transID" attributes are ignored.
The value of the "internal" attribute is the IANA-registered name for
the option. If the "internal" attribute is not present, then the
value of the "external" attribute is a URI or URI with a fragment-
identifier. Note that a relative-URI value is not allowed.
The "targetHop" attribute specifies which relay(s) should process the
option:
this: the option applies to this relay, and must be removed prior
to transmitting the containing element.
final: the option applies to this relay, only if the relay will
transmit the containing element directly to the recipient.
<span class="grey">Rose, et. al. Standards Track [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
all: the option applies to this relay and is retained for the
next.
Note that a final relay does not remove any options as it transmits
the containing element directly to the recipient.
The "mustUnderstand" attribute specifies whether the relay may ignore
the option if it is unrecognized, and is consulted only if the
"targetHop" attribute indicates that the option applies to that
relay. If the option applies, and if the value of the
"mustUnderstand" attribute is "true", and if the relay does not
"understand" the option, then an error in processing has occurred.
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a> The statusRequest Option</span>
<a href="#section-8.4">Section 8.4</a> contains the APEX option registration for the
"statusRequest" option.
If this option is present, then each applicable relay sends a
"statusResponse" message to the originator. This is done by issuing
a data operation whose originator is the report service associated
with the issuing relay, whose recipient is the endpoint address of
the "statusRequest" originator, and whose content is a
"statusResponse" element.
A "statusRequest" option MUST NOT be present in any data operation
containing a "statusResponse" element. In general, applications
should be careful to avoid potential looping behaviors if an option
is received in error.
Consider these examples:
+-------+ +-------+
| | -- data -------> | |
| appl. | | relay |
| #1 | <--------- ok -- | |
+-------+ +-------+
C: <data content='cid:1@example.com'>
<originator identity='fred@example.com' />
<recipient identity='barney@example.com' />
<option internal='statusRequest' targetHop='final'
mustUnderstand='true' transID='86' />
</data>
S: <ok />
<span class="grey">Rose, et. al. Standards Track [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
+-------+ +-------+
| | -- data -------> | |
| relay | | appl. |
| | <--------- ok -- | #2 |
+-------+ +-------+
C: <data content='cid:1@example.com'>
<originator identity='fred@example.com' />
<recipient identity='barney@example.com' />
<option internal='statusRequest' targetHop='final'
mustUnderstand='true' transID='86' />
</data>
S: <ok />
+-------+ +-------+
| | <------- data -- | |
| appl. | | relay |
| #1 | -- ok ---------> | |
+-------+ +-------+
C: <data content='#Content'>
<originator identity='apex=report@example.com' />
<recipient identity='fred@example.com' />
<data-content Name='Content'>
<statusResponse transID='86'>
<destination identity='barney@example.com'>
<reply code='250' />
</destination>
</statusResponse>
</data-content>
</data>
S: <ok />
or
+-------+ +-------+
| | -- data -------> | |
| appl. | | relay |
| #1 | <--------- ok -- | |
+-------+ +-------+
C: <data content='cid:1@example.com'>
<originator identity='fred@example.com' />
<recipient identity='barney@example.com' />
<option internal='statusRequest' targetHop='final'
mustUnderstand='true' transID='86' />
</data>
S: <ok />
<span class="grey">Rose, et. al. Standards Track [Page 23]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-24" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
+-------+ +-------+
| | <------- data -- | |
| appl. | | relay |
| #1 | -- ok ---------> | |
+-------+ +-------+
C: <data content='#Content'>
<originator identity='apex=report@example.com' />
<recipient identity='fred@example.com' />
<data-content Name='Content'>
<statusResponse transID='86'>
<destination identity='barney@example.com'>
<reply code='550'>unknown endpoint
identity</reply>
</destination>
</statusResponse>
</data-content>
</data>
S: <ok />
or
+-------+ +-------+
| | -- data -------> | |
| appl. | | relay |
| #1 | <--------- ok -- | #1 |
+-------+ +-------+
C: <data content='cid:1@example.com'>
<originator identity='fred@example.com' />
<recipient identity='barney@rubble.com' />
<option internal='statusRequest' targetHop='final'
mustUnderstand='true' transID='86' />
</data>
S: <ok />
+-------+ +-------+
| | -- data -------> | |
| relay | | relay |
| #1 | <--------- ok -- | #2 |
+-------+ +-------+
C: <data content='cid:1@example.com'>
<originator identity='fred@example.com' />
<recipient identity='barney@rubble.com' />
<option internal='statusRequest' targetHop='final'
mustUnderstand='true' transID='86' />
</data>
S: <ok />
<span class="grey">Rose, et. al. Standards Track [Page 24]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-25" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
+-------+ +-------+
| | -- data -------> | |
| relay | | appl. |
| #2 | <--------- ok -- | #2 |
+-------+ +-------+
C: <data content='cid:1@example.com'>
<originator identity='fred@example.com' />
<recipient identity='barney@example.com' />
<option internal='statusRequest' targetHop='final'
mustUnderstand='true' transID='86' />
</data>
S: <ok />
+-------+ +-------+
| | <------- data -- | |
| relay | | relay |
| #1 | -- ok ---------> | #2 |
+-------+ +-------+
C: <data content='#Content'>
<originator identity='apex=report@rubble.com' />
<recipient identity='fred@example.com' />
<data-content Name='Content'>
<statusResponse transID='86'>
<destination identity='barney@rubble.com'>
<reply code='250' />
</destination>
</statusResponse>
</data-content>
</data>
S: <ok />
+-------+ +-------+
| | <------- data -- | |
| appl. | | relay |
| #1 | -- ok ---------> | #1 |
+-------+ +-------+
C: <data content='#Content'>
<originator identity='apex=report@rubble.com' />
<recipient identity='fred@example.com' />
<data-content Name='Content'>
<statusResponse transID='86'>
<destination identity='barney@rubble.com'>
<reply code='250' />
</destination>
</statusResponse>
<span class="grey">Rose, et. al. Standards Track [Page 25]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-26" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
</data-content>
</data>
S: <ok />
Note that a trace of a data's passage through the relaying mesh can
be achieved by setting the "targetHop" attribute to "all".
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. APEX Services</span>
APEX, at its core, provides a best-effort datagram service. Within
an administrative domain, all relays must be able to handle messages
for any endpoint within that administrative domain. APEX services
are logically defined as endpoints but, given their ubiquitous
semantics, they do not necessarily need to be associated with a
single physical endpoint. As such, they may be provisioned co-
resident with each relay within an administrative domain, even though
they are logically provided on top of the relaying mesh, i.e.,
+----------+ +----------+ +----------+ +---------+
| APEX | | APEX | | APEX | | |
| access | | presence | | report | | ... |
| service | | service | | service | | |
+----------+ +----------+ +----------+ +---------+
| | | |
| | | |
+----------------------------------------------------------------+
| |
| APEX core |
| |
+----------------------------------------------------------------+
That is, applications communicate with an APEX service by exchanging
data with a "well-known endpoint" (WKE).
For example, APEX applications communicate with the report service by
exchanging data with the well-known endpoint "apex=report" in the
corresponding administrative domain, e.g., "apex=report@example.com"
is the endpoint associated with the report service in the
"example.com" administrative domain.
The specification of an APEX service must define:
o the WKE of the service;
o the syntax and sequence of messages exchanged with the service;
o what access control tokens are consulted by the service.
<span class="grey">Rose, et. al. Standards Track [Page 26]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-27" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
A service registration template (<a href="#section-7.2">Section 7.2</a>) organizes this
information.
Finally, note that within a single administrative domain, the
relaying mesh makes use of the APEX access service in order to
determine if an originator is allowed to transmit data to a recipient
(c.f., Step 5.3 of <a href="#section-4.4.4.1">Section 4.4.4.1</a>).
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a> Use of the APEX Core DTD</span>
The specification of an APEX service may use definitions found in the
APEX core DTD (<a href="#section-9.1">Section 9.1</a>). For example, the reply operation
(<a href="#section-6.1.2">Section 6.1.2</a>) is defined to provide a common format for responses.
<span class="h4"><a class="selflink" id="section-6.1.1" href="#section-6.1.1">6.1.1</a> Transaction-Identifiers</span>
In using APEX's transaction-identifiers, note the following:
o In the endpoint-relay and relay-relay modes, transaction-
identifiers are meaningful only during the lifetime of a BEEP
channel.
For example, when an application issues the attach operation, the
associated transaction-identifier has meaning only within the
context of the BEEP channel used for the attach operation. When
the BEEP connection is released, the channel no longer exists and
the application is no longer attached to the relaying mesh.
o In contrast, when an application communicates with an APEX
service, transaction-identifiers are often embedded in the data
that is sent. This means that transaction-identifiers are
potentially long-lived.
For example, an application may attach as an endpoint, send data
(containing an embedded transaction-identifier) to a service, and,
some time later, detach from the relaying mesh. Later on, a
second application may attach as the same endpoint, and send data
of its own (also containing embedded transaction-identifiers).
Subsequently, the second application may receive data from the
service responding to the first application's request and
containing the transaction-identifier used by the first
application.
To minimize the likelihood of ambiguities with long-lived
transaction-identifiers, the values of transaction-identifiers
generated by applications should appear to be unpredictable.
<span class="grey">Rose, et. al. Standards Track [Page 27]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-28" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
<span class="h4"><a class="selflink" id="section-6.1.2" href="#section-6.1.2">6.1.2</a> The Reply Element</span>
Many APEX services make use of a reply operation. Although each
service defines the circumstances in which a "reply" element is sent,
the syntax of the "reply" element is defined in <a href="#section-9.1">Section 9.1</a>.
The "reply" element has a "code" attribute, a "transID" attribute, an
optional "xml:lang" attribute, and may contain arbitrary textual
content:
o the "code" element specifies a three-digit reply code (c.f.,
<a href="#section-10">Section 10</a>);
o the "transID" attribute specifies the transaction-identifier
corresponding to this reply;
o the "xml:lang" attribute, if present, specifies the language that
the element's content is written in; and,
o the textual content is a diagnostic (possibly multiline) which is
meaningful to implementers, perhaps administrators, and possibly
even users.
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a> The Report Service</span>
<a href="#section-8.5">Section 8.5</a> contains the APEX service registration for the report
service:
o Within an administrative domain, the service is addressed using
the well-known endpoint of "apex=report".
o <a href="#section-9.2">Section 9.2</a> defines the syntax of the operations exchanged with
the service.
o A consumer of the service does not initiate communications with
the service.
o The service initiates communications by sending data containing
the "statusResponse" operation.
If a relay processes a "statusRequest" option (<a href="#section-5.1">Section 5.1</a>), then it
sends data to the originator containing a "statusResponse" element
(<a href="#section-9.2">Section 9.2</a>).
The "statusResponse" element has a "transID" attribute and contains
one or more "destination" elements:
<span class="grey">Rose, et. al. Standards Track [Page 28]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-29" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
o the "transID" attribute specifies the value contained in the
"statusRequest" option; and,
o each "destination" element has an "identity" attribute and
contains a "reply" element:
* the "identity" attribute specifies the recipient endpoint that
is being reported on; and,
* the "reply" element (<a href="#section-6.1.2">Section 6.1.2</a>) specifies the delivery
status of that recipient.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Registration Templates</span>
<span class="h3"><a class="selflink" id="section-7.1" href="#section-7.1">7.1</a> APEX Option Registration Template</span>
When an APEX option is registered, the following information is
supplied:
Option Identification: specify the NMTOKEN or the URI that
authoritatively identifies this option.
Present in: specify the APEX elements in which the option may appear.
Contains: specify the XML content that is contained within the
"option" element.
Processing Rules: specify the processing rules associated with the
option.
Contact Information: specify the postal and electronic contact
information for the author of the profile.
<span class="h3"><a class="selflink" id="section-7.2" href="#section-7.2">7.2</a> APEX Service Registration Template</span>
When an APEX service is registered, the following information is
supplied:
Well-Known Endpoint: specify the local-part of an endpoint identity,
starting with "apex=".
Syntax of Messages Exchanged: specify the elements exchanged with the
service.
Sequence of Messages Exchanged: specify the order in which data is
exchanged with the service.
<span class="grey">Rose, et. al. Standards Track [Page 29]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-30" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
Access Control Tokens: specify the token(s) used to control access to
the service (c.f., [<a href="#ref-10" title=""The Application Exchange (APEX) Access Service"">10</a>]).
Contact Information: specify the postal and electronic contact
information for the author of the profile.
Note that the endpoints "apex=all" and "apex=core" may not be
assigned.
<span class="h3"><a class="selflink" id="section-7.3" href="#section-7.3">7.3</a> APEX Endpoint Application Registration Template</span>
When an APEX endpoint application is registered, the following
information is supplied:
Endpoint Application: specify the subaddress used for an endpoint
application, starting with "appl=".
Application Definition: specify the syntax and semantics of the
endpoint application identified by this registration.
Contact Information: specify the postal and electronic contact
information for the author of the profile.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Initial Registrations</span>
<span class="h3"><a class="selflink" id="section-8.1" href="#section-8.1">8.1</a> Registration: The APEX Profile</span>
Profile Identification: <a href="http://iana.org/beep/APEX">http://iana.org/beep/APEX</a>
Messages exchanged during Channel Creation: "attach", "bind"
Messages starting one-to-one exchanges: "attach", "bind",
"terminate", or "data"
Messages in positive replies: "ok"
Messages in negative replies: "error"
Messages in one-to-many exchanges: none
Message Syntax: c.f., <a href="#section-9.1">Section 9.1</a>
Message Semantics: c.f., <a href="#section-4.4">Section 4.4</a>
Contact Information: c.f., the "Authors' Addresses" section of this
memo
<span class="grey">Rose, et. al. Standards Track [Page 30]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-31" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
<span class="h3"><a class="selflink" id="section-8.2" href="#section-8.2">8.2</a> Registration: The System (Well-Known) TCP port number for apex-mesh</span>
Protocol Number: TCP
Message Formats, Types, Opcodes, and Sequences: c.f., <a href="#section-9.1">Section 9.1</a>
Functions: c.f., <a href="#section-4.4">Section 4.4</a>
Use of Broadcast/Multicast: none
Proposed Name: APEX relay-relay service
Short name: apex-mesh
Contact Information: c.f., the "Authors' Addresses" section of this
memo
<span class="h3"><a class="selflink" id="section-8.3" href="#section-8.3">8.3</a> Registration: The System (Well-Known) TCP port number for apex-edge</span>
Protocol Number: TCP
Message Formats, Types, Opcodes, and Sequences: c.f., <a href="#section-9.1">Section 9.1</a>
Functions: c.f., <a href="#section-4.4">Section 4.4</a>
Use of Broadcast/Multicast: none
Proposed Name: APEX endpoint-relay service
Short name: apex-edge
Contact Information: c.f., the "Authors' Addresses" section of this
memo
<span class="h3"><a class="selflink" id="section-8.4" href="#section-8.4">8.4</a> Registration: The statusRequest Option</span>
Option Identification: statusRequest
Present in: APEX's "data" and "recipient" elements
Contains: nothing
Processing Rules: c.f., <a href="#section-5.1">Section 5.1</a>
Contact Information: c.f., the "Authors' Addresses" section of this
memo
<span class="grey">Rose, et. al. Standards Track [Page 31]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-32" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
<span class="h3"><a class="selflink" id="section-8.5" href="#section-8.5">8.5</a> Registration: The Report Service</span>
Well-Known Endpoint: apex=report
Syntax of Messages Exchanged: c.f., <a href="#section-9.2">Section 9.2</a>
Sequence of Messages Exchanged: c.f., <a href="#section-6.2">Section 6.2</a>
Access Control Tokens: none
Contact Information: c.f., the "Authors' Addresses" section of this
memo
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. DTDs</span>
<span class="h3"><a class="selflink" id="section-9.1" href="#section-9.1">9.1</a> The APEX Core DTD</span>
<!--
DTD for the APEX core, as of 2001-07-09
Refer to this DTD as:
<!ENTITY % APEXCORE PUBLIC "-//IETF//DTD APEX CORE//EN" "">
%APEXCORE;
-->
<!ENTITY % BEEP PUBLIC "-//IETF//DTD BEEP//EN" "">
%BEEP;
<!--
DTD data types:
entity syntax/reference example
====== ================ =======
APEX endpoint
ENDPOINT entity, fred@example.com
c.f., <a href="#section-2.2">Section 2.2</a>
domain, either a FQDN or a literal
DOMAIN c.f., [<a href="./rfc2821">RFC-2821</a>] example.com or [10.0.0.1]
seconds
SECONDS 0..2147483647 600
timestamp
TIMESTAMP c.f., [<a href="#ref-12" title=""Date and Time on the Internet: Timestamps"">12</a>] 2000-05-15T13:02:00-08:00
unique-identifier
<span class="grey">Rose, et. al. Standards Track [Page 32]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-33" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
UNIQID 1..2147483647 42
unique-identifier OR zero
UNIZID 0..2147483647 0
-->
<!ENTITY % ENDPOINT "CDATA">
<!ENTITY % DOMAIN "CDATA">
<!ENTITY % SECONDS "CDATA">
<!ENTITY % TIMESTAMP "CDATA">
<!ENTITY % UNIQID "CDATA">
<!ENTITY % UNIZID "CDATA">
<!--
APEX messages, exchanged as application/beep+xml
role MSG RPY ERR
====== === === ===
I attach ok error
I or L bind ok error
I or L terminate ok error
I or L data ok error
-->
<!ELEMENT attach (option*)>
<!ATTLIST attach
endpoint %ENDPOINT; #REQUIRED
transID %UNIQID; #REQUIRED>
<!ELEMENT bind (option*)>
<!ATTLIST bind
relay %DOMAIN; #REQUIRED
transID %UNIQID; #REQUIRED>
<!ELEMENT terminate (#PCDATA)>
<!ATTLIST terminate
code %XYZ; "250"
xml:lang %LANG; #IMPLIED
transID %UNIZID; "0">
<!ELEMENT data (originator,recipient+,option*,data-content?)>
<!ATTLIST data
content %URI; #REQUIRED>
<!ELEMENT originator (option*)>
<span class="grey">Rose, et. al. Standards Track [Page 33]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-34" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
<!ATTLIST originator
identity %ENDPOINT; #REQUIRED>
<!ELEMENT recipient (option*)>
<!ATTLIST recipient
identity %ENDPOINT; #REQUIRED>
<!ELEMENT data-content
ANY>
<!ATTLIST Name ID #REQUIRED>
<!ELEMENT ok EMPTY>
<!ELEMENT reply (#PCDATA)>
<!ATTLIST reply
code %XYZ; #REQUIRED
transID %UNIQID; #REQUIRED
xml:lang %LANG; #IMPLIED>
<!-- either the "internal" or the "external" attribute is present in
an option -->
<!ELEMENT option ANY>
<!ATTLIST option
internal NMTOKEN ""
external %URI; ""
targetHop (this|final|all) "final"
mustUnderstand
(true|false) "false"
transID %UNIQID; #REQUIRED
localize %LOCS; "i-default">
<span class="h3"><a class="selflink" id="section-9.2" href="#section-9.2">9.2</a> The Report Service DTD</span>
<!--
DTD for the APEX report service, as of 2000-12-12
Refer to this DTD as:
<!ENTITY % APEXREPORT PUBLIC "-//Blocks//DTD APEX REPORT//EN" "">
%APEXREPORT;
-->
<!ENTITY % APEXCORE PUBLIC "-//Blocks//DTD APEX CORE//EN" "">
%APEXCORE;
<!--
Synopsis of the APEX report service
<span class="grey">Rose, et. al. Standards Track [Page 34]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-35" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
service WKE: apex=report
message exchanges:
service initiates consumer replies
================= ================
statusResponse (nothing)
access control tokens: none
-->
<!ELEMENT statusResponse
(destination+)>
<!ATTLIST statusResponse
transID %UNIQID; #REQUIRED>
<!ELEMENT destination (reply)>
<!ATTLIST destination
identity %ENDPOINT; #REQUIRED>
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. Reply Codes</span>
code meaning
==== =======
250 transaction successful
421 service not available
450 requested action not taken
451 requested action aborted
454 temporary authentication failure
500 general syntax error (e.g., poorly-formed XML)
501 syntax error in parameters (e.g., non-valid XML)
504 parameter not implemented
530 authentication required
534 authentication mechanism insufficient
535 authentication failure
537 action not authorized for user
<span class="grey">Rose, et. al. Standards Track [Page 35]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-36" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
538 authentication mechanism requires encryption
550 requested action not taken
553 parameter invalid
554 transaction failed (e.g., policy violation)
555 transaction already in progress
<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>. Security Considerations</span>
Consult <a href="#section-3">Section 3</a> and <a href="#section-4.5">Section 4.5</a> for a discussion of security
issues, e.g., relaying integrity.
Although service provisioning is a policy matter, at a minimum, all
APEX implementations must provide the following tuning profiles:
for authentication: <a href="http://iana.org/beep/SASL/DIGEST-MD5">http://iana.org/beep/SASL/DIGEST-MD5</a>
for confidentiality: <a href="http://iana.org/beep/TLS">http://iana.org/beep/TLS</a> (using the
TLS_RSA_WITH_3DES_EDE_CBC_SHA cipher)
for both: <a href="http://iana.org/beep/TLS">http://iana.org/beep/TLS</a> (using the
TLS_RSA_WITH_3DES_EDE_CBC_SHA cipher supporting client-side
certificates)
Further, APEX endpoint implementations may choose to offer MIME-based
security services providing message integrity and confidentiality,
such as OpenPGP [<a href="#ref-13" title=""MIME Security with OpenPGP"">13</a>] or S/MIME [<a href="#ref-14" title=""S/MIME Version 3 Message Specification"">14</a>].
Regardless, since APEX is a profile of the BEEP, consult [<a href="#ref-1" title=""The Blocks Extensible Exchange Protocol Core"">1</a>]'s
<a href="#section-9">Section 9</a> for a discussion of BEEP-specific security issues.
Finally, the statusRequest option (<a href="#section-5.1">Section 5.1</a>) may be used to expose
private network topology. Accordingly, an administrator may wish to
choose to disable this option except at the ingress/egress points for
its administrative domain.
References
[<a id="ref-1">1</a>] Rose, M., "The Blocks Extensible Exchange Protocol Core", <a href="./rfc3080">RFC</a>
<a href="./rfc3080">3080</a>, March 2001.
[<a id="ref-2">2</a>] Crocker, D. and P. Overell, "Augmented BNF for Syntax
Specifications: ABNF", <a href="./rfc2234">RFC 2234</a>, November 1997.
<span class="grey">Rose, et. al. Standards Track [Page 36]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-37" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
[<a id="ref-3">3</a>] Klensin, J., "Simple Mail Transfer Protocol", <a href="./rfc2821">RFC 2821</a>, April
2001.
[<a id="ref-4">4</a>] Yergeau, F., "UTF-8, a transformation format of Unicode and ISO
10646", <a href="./rfc2044">RFC 2044</a>, October 1996.
[<a id="ref-5">5</a>] Gulbrandsen, A., Vixie, P. and L. Esibov, "A DNS RR for
specifying the location of services (DNS SRV)", <a href="./rfc2782">RFC 2782</a>,
February 2000.
[<a id="ref-6">6</a>] Berners-Lee, T., Fielding, R. and L. Masinter, "Uniform
Resource Identifiers (URI): Generic Syntax", <a href="./rfc2396">RFC 2396</a>, August
1998.
[<a id="ref-7">7</a>] Levinson, E., "The MIME Multipart/Related Content-type", <a href="./rfc2387">RFC</a>
<a href="./rfc2387">2387</a>, August 1998.
[<a id="ref-8">8</a>] Levinson, E., "Content-ID and Message-ID Uniform Resource
Locators", <a href="./rfc2392">RFC 2392</a>, August 1998.
[<a id="ref-9">9</a>] Freed, N. and N. Borenstein, "Multipurpose Internet Mail
Extensions (MIME) Part One: Format of Internet Message Bodies",
<a href="./rfc2045">RFC 2045</a>, November 1996.
[<a id="ref-10">10</a>] Rose, M., Klyne, G. and D. Crocker, "The Application Exchange
(APEX) Access Service", <a href="./rfc3341">RFC 3341</a>, July 2002.
[<a id="ref-11">11</a>] Rose, M., Klyne, G. and D. Crocker, "The Application Exchange
(APEX) Presence Service", Work in Progress.
[<a id="ref-12">12</a>] Newman, C. and G. Klyne, "Date and Time on the Internet:
Timestamps", <a href="./rfc3339">RFC 3339</a>, July 2002.
[<a id="ref-13">13</a>] Elkins, M., Del Torto, D., Levien, R. and T. Roessler, "MIME
Security with OpenPGP", <a href="./rfc3156">RFC 3156</a>, August 2001.
[<a id="ref-14">14</a>] Ramsdell, B., "S/MIME Version 3 Message Specification", <a href="./rfc2633">RFC</a>
<a href="./rfc2633">2633</a>, June 1999.
<span class="grey">Rose, et. al. Standards Track [Page 37]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-38" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
<span class="h2"><a class="selflink" id="appendix-A" href="#appendix-A">Appendix A</a>. Acknowledgements</span>
The authors gratefully acknowledge the contributions of: Jeffrey
Altman, Harald Alvestrand, Eric Dixon, Ronan Klyne, Darren New, Chris
Newman, Scott Pead, and Bob Wyman.
<span class="h2"><a class="selflink" id="appendix-B" href="#appendix-B">Appendix B</a>. IANA Considerations</span>
The IANA has registered "APEX" as a standards-track BEEP profile, as
specified in <a href="#section-8.1">Section 8.1</a>.
The IANA has registered "apex-mesh" as a TCP port number, as
specified in <a href="#section-8.2">Section 8.2</a>.
The IANA has registered "apex-edge" as a TCP port number, as
specified in <a href="#section-8.3">Section 8.3</a>.
The IANA maintains a list of:
o APEX options, c.f., <a href="#section-7.1">Section 7.1</a>;
o APEX services, c.f., <a href="#section-7.2">Section 7.2</a>; and,
o APEX endpoint applications, c.f., <a href="#section-7.3">Section 7.3</a>.
For each list, the IESG is responsible for assigning a designated
expert to review the specification prior to the IANA making the
assignment. As a courtesy to developers of non-standards track APEX
options and services, the mailing list apexwg@invisible.net may be
used to solicit commentary.
The IANA makes the registrations specified in <a href="#section-8.4">Section 8.4</a> and <a href="#section-8.5">Section</a>
<a href="#section-8.5">8.5</a>.
<span class="grey">Rose, et. al. Standards Track [Page 38]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-39" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
Authors' Addresses
Marshall T. Rose
Dover Beach Consulting, Inc.
POB 255268
Sacramento, CA 95865-5268
US
Phone: +1 916 483 8878
EMail: mrose@dbc.mtview.ca.us
Graham Klyne
Clearswift Corporation
1310 Waterside
Arlington Business Park
Theale, Reading RG7 4SA
UK
Phone: +44 11 8903 8903
EMail: Graham.Klyne@MIMEsweeper.com
David H. Crocker
Brandenburg InternetWorking
675 Spruce Drive
Sunnyvale, CA 94086
US
Phone: +1 408 246 8253
EMail: dcrocker@brandenburg.com
URI: <a href="http://www.brandenburg.com/">http://www.brandenburg.com/</a>
<span class="grey">Rose, et. al. Standards Track [Page 39]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-40" ></span>
<span class="grey"><a href="./rfc3340">RFC 3340</a> The Application Exchange Core July 2002</span>
Full Copyright Statement
Copyright (C) The Internet Society (2002). All Rights Reserved.
This document and translations of it may be copied and furnished to
others, and derivative works that comment on or otherwise explain it
or assist in its implementation may be prepared, copied, published
and distributed, in whole or in part, without restriction of any
kind, provided that the above copyright notice and this paragraph are
included on all such copies and derivative works. However, this
document itself may not be modified in any way, such as by removing
the copyright notice or references to the Internet Society or other
Internet organizations, except as needed for the purpose of
developing Internet standards in which case the procedures for
copyrights defined in the Internet Standards process must be
followed, or as required to translate it into languages other than
English.
The limited permissions granted above are perpetual and will not be
revoked by the Internet Society or its successors or assigns.
This document and the information contained herein is provided on an
"AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Acknowledgement
Funding for the RFC Editor function is currently provided by the
Internet Society.
Rose, et. al. Standards Track [Page 40]
</pre>
|