1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517
  
     | 
    
      <pre>Network Working Group                                           K. Zhang
Request for Comments: 3423                                      E. Elkin
Category: Informational                               XACCT Technologies
                                                           November 2002
     <span class="h1">XACCT's Common Reliable Accounting for Network Element (CRANE)</span>
                   <span class="h1">Protocol Specification Version 1.0</span>
Status of this Memo
   This memo provides information for the Internet community.  It does
   not specify an Internet standard of any kind.  Distribution of this
   memo is unlimited.
Copyright Notice
   Copyright (C) The Internet Society (2002).  All Rights Reserved.
Abstract
   This document defines the Common Reliable Accounting for Network
   Element (CRANE) protocol that enables efficient and reliable delivery
   of any data, mainly accounting data from Network Elements to any
   systems, such as mediation systems and Business Support Systems
   (BSS)/ Operations Support Systems (OSS).  The protocol is developed
   to address the critical needs for exporting high volume of accounting
   data from NE's with efficient use of network, storage, and processing
   resources.
   This document specifies the architecture of the protocol and the
   message format, which MUST be supported by all CRANE protocol
   implementations.
Table of Contents
   <a href="#section-1">1</a>  Introduction...................................................<a href="#page-2">2</a>
      <a href="#section-1.1">1.1</a>  Specification of Requirements.............................<a href="#page-3">3</a>
      <a href="#section-1.2">1.2</a>  Terminology...............................................<a href="#page-3">3</a>
   <a href="#section-2">2</a>  Protocol Overview..............................................<a href="#page-5">5</a>
      <a href="#section-2.1">2.1</a>  CRANE Architecture........................................<a href="#page-6">6</a>
      <a href="#section-2.2">2.2</a>  CRANE over TCP............................................<a href="#page-7">7</a>
      <a href="#section-2.3">2.3</a>  Alternate servers.........................................<a href="#page-7">7</a>
      <a href="#section-2.4">2.4</a>  Templates.................................................<a href="#page-9">9</a>
      <a href="#section-2.5">2.5</a>  Template Transmission and Negotiation....................<a href="#page-10">10</a>
      <a href="#section-2.6">2.6</a>  Changing Templates.......................................<a href="#page-11">11</a>
      <a href="#section-2.7">2.7</a>  Flow Control.............................................<a href="#page-12">12</a>
      <a href="#section-2.8">2.8</a>  The CRANE Client Query Messages..........................<a href="#page-13">13</a>
<span class="grey">Zhang & Elkin                Informational                      [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
      <a href="#section-2.9">2.9</a>  CRANE Sessions...........................................<a href="#page-13">13</a>
   <a href="#section-3">3</a>  CRANE Message Format..........................................<a href="#page-14">14</a>
   <a href="#section-4">4</a>  CRANE Messages................................................<a href="#page-16">16</a>
      <a href="#section-4.1">4.1</a>  Flow Start (START).......................................<a href="#page-16">16</a>
      <a href="#section-4.2">4.2</a>  Flow Start Acknowledge (START ACK).......................<a href="#page-16">16</a>
      <a href="#section-4.3">4.3</a>  Flow Stop (STOP).........................................<a href="#page-17">17</a>
      <a href="#section-4.4">4.4</a>  Flow Stop Acknowledge (STOP ACK).........................<a href="#page-17">17</a>
      <a href="#section-4.5">4.5</a>  Connect (CONNECT)........................................<a href="#page-18">18</a>
      <a href="#section-4.6">4.6</a>  Template Data (TMPL DATA)................................<a href="#page-18">18</a>
      <a href="#section-4.7">4.7</a>  Template Data Acknowledge (TMPL DATA ACK)................<a href="#page-23">23</a>
      <a href="#section-4.8">4.8</a>  Final Template Data (FINAL TMPL DATA)....................<a href="#page-25">25</a>
      <a href="#section-4.9">4.9</a>  Final Template Data Acknowledge (FINAL TMPL DATA ACK)....<a href="#page-26">26</a>
      <a href="#section-4.10">4.10</a>  Get Sessions (GET SESS).................................<a href="#page-26">26</a>
      <a href="#section-4.11">4.11</a>  Get Sessions Response (GET SESS RSP)....................<a href="#page-27">27</a>
      <a href="#section-4.12">4.12</a>  Get Templates (GET TMPL)................................<a href="#page-30">30</a>
      <a href="#section-4.13">4.13</a>  Get Templates Response(GET TMPL RSP)....................<a href="#page-30">30</a>
      <a href="#section-4.14">4.14</a>  Start Negotiation (START NEGOTIATE).....................<a href="#page-33">33</a>
      <a href="#section-4.15">4.15</a>  Start Negotiation Acknowledge (START NEGOTIATE ACK).....<a href="#page-34">34</a>
      <a href="#section-4.16">4.16</a>  Data (DATA).............................................<a href="#page-34">34</a>
      <a href="#section-4.17">4.17</a>  Data Acknowledge (DATA ACK).............................<a href="#page-36">36</a>
      <a href="#section-4.18">4.18</a>  Error (ERROR)...........................................<a href="#page-37">37</a>
      <a href="#section-4.19">4.19</a>  Status Request (STATUS REQ).............................<a href="#page-38">38</a>
      <a href="#section-4.20">4.20</a>  Status Response (STATUS RSP)............................<a href="#page-38">38</a>
   <a href="#section-5">5</a>  Protocol Version Negotiation..................................<a href="#page-39">39</a>
   <a href="#section-6">6</a>  Security Considerations.......................................<a href="#page-42">42</a>
   <a href="#section-7">7</a>  References....................................................<a href="#page-43">43</a>
   <a href="#section-8">8</a>  Acknowledgments...............................................<a href="#page-43">43</a>
   <a href="#section-9">9</a>  Authors' Addresses............................................<a href="#page-44">44</a>
   <a href="#section-10">10</a> Full Copyright Statement......................................<a href="#page-45">45</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>  Introduction</span>
   Network Elements are often required to export usage information to
   mediation and business support systems (BSS) to facilitate
   accounting.  Though there are several existing mechanisms for usage
   information export, they are becoming inadequate to support the
   evolving business requirements from service providers.
   For example, some of the export mechanisms are legacies of the Telco
   world.  Typically usage information is stored in Network Elements as
   Log files (e.g., CDR files), and exported to external systems in
   batches.  These are reliable methods, however, they do not meet the
   real-time and high-performance requirements of today's rapidly
   evolving data networks.
   RADIUS [<a href="#ref-1" title=""Remote Authentication Dial In User Service (RADIUS)"">1</a>] is a widely deployed protocol that may be used for
   exporting usage information.  However, it can only handle a few
   outstanding requests and is not extensible due to its limited command
<span class="grey">Zhang & Elkin                Informational                      [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   and attribute address space.  RADIUS also does not support
   unsolicited messages from a server to a client.  A detailed analysis
   of limitations of RADIUS can be found in [<a href="#ref-3" title=""DIAMETER Framework Document"">3</a>].
   DIAMETER [<a href="#ref-2" title=""DIAMETER Base Protocol"">2</a>] is a new AAA protocol that retains the basic RADIUS
   model, and eliminates several drawbacks in RADIUS.  The current
   DIAMETER protocol and its extensions focus on Internet and wireless
   network access, and their support to accounting is closely associated
   with authentication/authorization events.  DIAMETER is intended to
   solve many problems in the AAA area; by doing so, it does not
   adequately address some critical issues such as efficiency and
   performance in an accounting protocol.
   There are also SNMP based mechanisms that generally require a large
   amount of processing and bandwidth resources.
   Based on the above analysis, a critical need for a reliable, fast,
   efficient and flexible accounting protocol exists.  The XACCT's CRANE
   protocol is designed to address these critical requirements.
   This document defines the CRANE protocol that enables efficient and
   reliable delivery of any data, mainly accounting data from Network
   Elements to any systems, such as mediation systems and BSS/OSS.  The
   protocol is developed to address the critical needs for exporting
   high volume of accounting data from NE's with efficient use of
   network, storage, and processing resources.
   This document specifies the architecture of the protocol and the
   message format, which MUST be supported by all CRANE protocol
   implementations.
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a> Specification of Requirements</span>
   In this document, the keywords "MUST", "MUST NOT", "SHOULD", "SHOULD
   NOT", and "MAY" are to be interpreted as described in <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a> [<a href="#ref-5" title=""Key words for use in RFCs to Indicate Requirement Levels"">5</a>].
   These keywords are not case sensitive in this document.
<span class="h3"><a class="selflink" id="section-1.2" href="#section-1.2">1.2</a> Terminology</span>
   CRANE Protocol
      CRANE stands for Common Reliable Accounting for Network Element.
      The CRANE Protocol maybe referred as CRANE, or the Protocol in
      this document.  The CRANE Protocol is used at the interface(s)
      between a CRANE client and one or multiple CRANE servers for the
      purpose of delivering accounting data.
<span class="grey">Zhang & Elkin                Informational                      [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Client or CRANE Client
      A CRANE Client is an implementation on the data producing side of
      the CRANE protocol.  It is typically integrated with the network
      element's software, enabling it to collect and send out accounting
      data to a mediation/billing system using the protocol defined
      herein.
   Server or CRANE Server
      A CRANE Server is an implementation on the data receiving side of
      the CRANE protocol.  It is typically part of a Business Support
      System (BSS) (e.g., Billing, Market Analysis, Fraud detection,
      etc.), or a mediation system.  There could be more than one CRANE
      server connected to one CRANE client to improve robustness of the
      usage information export system.
   CRANE Session
      A CRANE Session is a logical connection between a CRANE client and
      one or multiple CRANE servers for the purpose of delivering
      accounting data.  Multiple sessions MAY be maintained concurrently
      in a CRANE client or a CRANE server; they are distinguished by
      Session IDs.
   Server Priority
      A CRANE server is assigned with a Priority value.  Accounting data
      is always delivered to the perceived operating CRANE server (from
      the CRANE client point of view) with the highest Priority value
      (the primary server) within a CRANE Session.
   Message
      A Message is encoded according to rules specified by the CRANE
      protocol and transmitted across the interface between a CRANE
      client and a CRANE server.  It contains a common CRANE header and
      optionally control or user data payload.
   Data Record
      A Data Record is a collection of information gathered by the
      Network Element for various purposes, e.g., accounting.  The
      structure of a Data Record is defined by a Template.
<span class="grey">Zhang & Elkin                Informational                      [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Template
      A Template defines the structure of any types of Data Record, and
      specifies the data type, meaning, and location of the fields in
      the record.
   Data Sequence Number (DSN)
      An accounting Data Record level sequence number, which is attached
      to all data messages to facilitate reliable and in-sequence
      delivery.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>  Protocol Overview</span>
   The CRANE protocol is designed to deliver accounting data reliably,
   efficiently, and quickly.  Due to the nature of accounting data,
   large records often need to be transmitted; thus supporting
   fragmentation of large records is required.  Furthermore, the value
   associated with accounting data is high; to prevent data loss, quick
   detection of unresponsive CRANE servers is also required for added
   robustness.
   The CRANE protocol can be viewed as an application that uses the data
   transport service provided by lower layer protocols.  It relies on a
   transport layer protocol to deliver reliable, in-sequence data
   packets.
   UDP is a simple connectionless transport layer protocol that has
   advantages of being fast and agile, but it provides no reliability
   and lacks flow control mechanisms.  Hence, The CRANE protocol must
   not use UDP as the transport layer protocol to avoid the risk of
   adversely impacting the networks it is being run over.
   TCP and SCTP [<a href="#ref-4" title=""Simple Control Transmission Protocol"">4</a>] are two transport layer protocols that fulfill the
   reliability requirement of CRANE.  Either one of them MAY be used to
   transport CRANE messages.  TCP meets some of the requirements, but
   not all (e.g., quick detection of server failure, the fact that TCP
   is stream oriented and not record oriented).  Therefore, SCTP [<a href="#ref-4" title=""Simple Control Transmission Protocol"">4</a>] is
   the preferred way to transmit CRANE messages.
<span class="grey">Zhang & Elkin                Informational                      [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
<span class="h3"><a class="selflink" id="section-2.1" href="#section-2.1">2.1</a> CRANE Architecture</span>
   The CRANE protocol is an application running over a reliable
   transport layer protocol.  The transport layer protocol is
   responsible for delivering CRANE messages between CRANE clients and
   CRANE servers.  It MUST support the following capabilities:
   1. Reliable, in-sequence message delivery.
   2. Connection oriented.
   3. Delivery of messages with a length of up to 2^32 octets (i.e., the
      transport layer has to support fragmentation of messages when
      running over IP).
   The transport layer MAY support:
   1. Authentication.
   2. Bundling of multiple messages into a single datagram.
   Possible transport layer protocols MAY be TCP or SCTP [<a href="#ref-4" title=""Simple Control Transmission Protocol"">4</a>].  TCP
   supports the minimal requirements for CRANE, but lacks some desirable
   capabilities that are available in SCTP, these include:
   1. Session level authentication.
   2. Message based data delivery (as opposed to stream based).
   3. Fast connection failure detection.
   Reliable delivery of accounting data is achieved through both the
   transport layer level and the CRANE protocol level.  The transport
   layer acknowledgments are used to ensure quick detection of lost data
   packets and unresponsive servers, while the CRANE protocol
   acknowledges CRANE messages after they have been processed and the
   accounting information has been placed in persistent storage.
   Being a reliable protocol for delivering accounting data, traffic
   flowing from a CRANE client to a CRANE server is mostly accounting
   data.  There are also bi-directional control message exchanges,
   though they only comprise of small portion of the traffic.
<span class="grey">Zhang & Elkin                Informational                      [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   The following diagram illustrates the CRANE protocol architecture:
       +----------------+             +----------------+
       |    CRANE       |             |     CRANE      |+
       |    User        |             |     User       ||+
       +----------------+             +----------------+||
       |    CRANE       | ==========> |     CRANE      |+|
       |    Client      | <---------- |     Server     ||+
       +----------------+             +----------------+||
       |  Transport     |             |   Transport    |+|
       |    Layer       | <---------> |     Layer      ||+
       +----------------+             +----------------+||
       |    Lower       |             |     Lower      |+|
       |    Layers      | <---------> |     Layers     ||+
       +----------------+             +----------------+||
                                       +----------------+|
                                        +----------------+
<span class="h3"><a class="selflink" id="section-2.2" href="#section-2.2">2.2</a> CRANE over TCP</span>
   TCP can be used as a transport layer for the CRANE protocol.  CRANE
   running over TCP MUST conform to the following rules:
   1. The CRANE client MUST accept TCP connections over a specific TCP
      port.
   2. The CRANE server MUST connect to the CRANE client, and SHOULD be
      responsible for reestablishing a connection in case of a failure.
   3. CRANE messages are written as a stream of bytes into a TCP
      connection, the size of a CRANE message is specified by the
      Message Length field in the CRANE message header.
<span class="h3"><a class="selflink" id="section-2.3" href="#section-2.3">2.3</a> Alternate servers</span>
   For purposes of improved reliability and robustness, redundant CRANE
   server configuration MAY be employed.  The CRANE protocol supports
   delivering accounting data to alternate CRANE servers, which may be
   part of a mediation system or a BSS.
   A CRANE session may comprise of one or more CRANE servers.  The CRANE
   client is responsible for configuring network addresses of all CRANE
   servers belonging to the session.  A Server Priority is assigned to
   each CRANE server.  The Server Priority reflects the CRANE client's
   preference regarding which CRANE server should receive accounting
   data.  The assignment of the Server Priority should consider factors
   such as geographical distance, communication cost, and CRANE server
   loading, etc.  It is also possible for several CRANE servers to have
   the same priority.  In this case, the CRANE client could randomly
   choose one of them as the primary server to deliver accounting data.
<span class="grey">Zhang & Elkin                Informational                      [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Additional features such as load balancing may be implemented in a
   multi-server environment.  The process of configuring CRANE client is
   carried out using the NE's configuration system and is outside the
   scope of this document.
   A CRANE client MUST deliver accounting data to its perceived
   operating CRANE server with the highest priority; if this CRANE
   server is deemed unreachable, the CRANE client MUST deliver the
   accounting data to the next highest priority CRANE server that is
   perceived to be operating.  If no perceived operating CRANE servers
   are available, accounting data MUST be queued in the CRANE client
   until any CRANE server is available or the client's queue space runs
   out.  An alarm should be generated to inform the CRANE user of the
   queue overflow condition.
   Accounting data delivery SHOULD revert to the higher priority server
   when it is perceived to be operating again.
   The CRANE protocol does not specify how a CRANE client should
   redirect accounting data to other CRANE servers, which is considered
   an implementation issue.  But all the supporting mechanisms are
   provided by the protocol to work in a multiple-server environment
   (e.g., the template negotiation process, and configuration
   procedures, etc.).  The transport layer (together with some other
   means) is responsible for monitoring server's responsiveness and
   notifying CRANE protocol for any failures.  The client may choose to
   transition to an alternate server.
   Implementation Note:
      The transition to an alternate CRANE server is an implementation
      issue and should occur under the following conditions:
      A) Transport layer notifies the CRANE client that the
      corresponding port of the CRANE server is unresponsive.
      B) Total size of unacknowledged accounting records has exceeded a
      threshold (configurable) for certain duration (configurable).
      C) A STOP message is received from the active server.
      D) A lower priority server is the active one and a higher priority
      server has recovered.
<span class="grey">Zhang & Elkin                Informational                      [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
<span class="h3"><a class="selflink" id="section-2.4" href="#section-2.4">2.4</a> Templates</span>
   The CRANE protocol enables efficient delivery of accounting data.
   This is achieved by negotiating a set of Data Templates for a CRANE
   session before actual accounting data is delivered.   A data template
   defines the structure of a DATA message payload by describing the
   data type, meaning, and location of the fields in the payload.  By
   agreeing on session templates, CRANE servers understand how to
   process DATA messages received from a CRANE client.  As a result, a
   CRANE client only needs to deliver actual accounting data without
   attaching any descriptors of the data; this reduces the amount of
   bytes sent over communication links.
   A template is an ordered list of keys.  A key is the specification of
   a field in the template.  It specifies an accounting item that a
   network element MAY collect and export.  The specification MUST
   consist of the description and the data type of the accounting item.
   (e.g., 'Number of Sent Bytes'  can be a key that is an unsigned
   integer of 32 bit long).  A CRANE client typically defines keys.
   The CRANE protocol supports usage of several templates concurrently
   (for different accounting records).  Keys contained in a template
   could be enabled or disabled.  An enabled key implies that the
   outgoing data record will contain the data item specified by the key.
   A disabled key implies that the outgoing record will omit the
   specified data item.  The enabling/disabling mechanism further
   reduces bandwidth requirement; it could also reduce processing in
   network elements, as only needed data items are produced.
   In a CRANE session, all the CRANE servers and the CRANE client MUST
   use the same set of templates and associated enable/disable status.
   The templates' configuration and connectivity to an end application
   MUST be the same in all servers.  The CRANE client MUST publish the
   relevant templates to all CRANE servers in a session through user
   configuration, before it starts to send data according to the
   templates.
   The complete set of templates residing in a CRANE client MUST bear a
   configuration ID that identifies the template set.  Each data record
   is delivered with the Template ID and the Configuration ID, so that
   the correct template can be referenced.  A server, when receiving a
   record with an older Configuration ID, MAY handle the record
   gracefully by keeping some template history.  The transport layer
   should ensure that a server would not get messages with future
   configuration IDs.
<span class="grey">Zhang & Elkin                Informational                      [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
<span class="h3"><a class="selflink" id="section-2.5" href="#section-2.5">2.5</a> Template Transmission and Negotiation</span>
   As stated before, all CRANE servers MUST use the same set of
   templates in a CRANE session.  In case that servers do not share the
   same set of templates (the templates are considered different if
   different keys are enabled or disabled), a negotiation process
   between the client and the server would ultimately determine one set
   of templates that is accepted and used by all the CRANE servers in a
   session.
   After a CRANE session is established and the server sent a START
   message indicating that it is ready to take part in the session, the
   client MUST deliver the set of templates that it intends to use by
   sending a TMPL DATA message to the server.  The CRANE server MUST
   acknowledge the reception of the set of templates.
   Templates are negotiable between a CRANE client and CRANE servers.  A
   CRANE server may propose changes to the templates received from a
   CRANE client (e.g., enabling some keys and disabling others), or it
   can acknowledge the templates as is.  In the case that a template or
   a key is not recognized by the server (e.g., they might be added to
   the client after the server configuration has completed), the server
   MAY choose to disable each unknown key or unknown templates in order
   to avoid unnecessary traffic.  A template is disabled when all the
   keys are disabled.  If changes were received from the CRANE servers,
   the client will send the changed template set to all connected
   servers (using FINAL_TMPL_DATA message).  It is the client's
   responsibility to decide what would be the final set of templates
   used by a session.  At this time, each CRANE server MUST accept and
   acknowledge the templates without changing anything (to avoid
   deadlock and loop conditions).  Each CRANE server is given a single
   chance to propose any changes during the negotiation process.
   The template negotiation process is outlined as follows:
   A) CRANE client sends a TMPL DATA message with a set of templates.
   B) CRANE server either responds with the TMPL DATA ACK message with
   changes in the template set (process continues in step C) or responds
   with FINAL TMPL DATA ACK message if no changes are needed (process
   continues in step E).
   C) CRANE client receives proposed changes, incorporates them if
   possible and then sends a FINAL TMPL DATA message containing the new
   set of templates to all servers (in order to deploy the change).
   D) CRANE server receives the FINAL TMPL DATA message containing the
   new set of templates and MUST send a FINAL TMPL DATA ACK message to
<span class="grey">Zhang & Elkin                Informational                     [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   acknowledge the reception of the templates.  No changes are allowed
   at this stage and the templates, which the client sent, are going to
   be used.
   E) CRANE client receives a FINAL TMPL DATA ACK message from the
   server and can assume that the server knows which templates to use.
   All these stages take place only when there are multiple CRANE
   servers with differences in the template set (e.g., not all key
   states are identical).  If all CRANE servers within a session share
   the same configuration exactly, all servers will respond with FINAL
   TMPL DATA ACK and the ping-pong between the client and the servers
   will end immediately.  This is the common case, but in case some
   other CRANE servers have a different configuration, the protocol
   offers the way to maintain consistency among CRANE servers.
   Implementation Note:
      TMPL DATA messages SHOULD be sent only after all DATA messages
      with the previous configuration have been acknowledged.  This
      ensures the server to transition properly to the new
      configuration.
<span class="h3"><a class="selflink" id="section-2.6" href="#section-2.6">2.6</a> Changing Templates</span>
   Though TMPL DATA messages allow for deploying and publicizing
   template, a need to configure the template set still exists.  Each of
   the CRANE servers in a CRANE session may change the template set,
   which is typically requested by an end-user through User Interface.
   If the end-users need to know what templates are available and the
   current template set status, they may issue the GET TMPL message.
   The following steps are performed in order to change the templates:
   A) The server MUST retrieve from CRANE client the template set that
   requires change by issuing GET TMPL message.  The server can issue a
   GET TMPL even if it has not yet issued a START message.
   B) After received a GET TMPL message, the client sends back a GET
   TMPL RSP message with the requested data.
   C) The server makes the necessary changes to the templates and sends
   back a START NEGOTIATION message.  This message triggers the CRANE
   client to inquire about changes made by the CRANE server.
   D) After received a START NEGOTIATE message, the client MUST respond
   with START NEGOTIATE ACK message followed by a TMPL DATA message.
   From this point on, the template negotiation process starts.
<span class="grey">Zhang & Elkin                Informational                     [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
<span class="h3"><a class="selflink" id="section-2.7" href="#section-2.7">2.7</a> Flow Control</span>
   After templates have been deployed, DATA messages start to arrive at
   the primary CRANE server (the operational one with the highest
   priority within the CRANE session).  Each DATA message contains a
   Data Sequence Number (DSN).  The primary CRANE server MUST accept the
   data as long as it is in-sequence.  Out-of-sequence DATA messages
   should be discarded.
   The CRANE server detects the start of accounting data when it
   receives the first DATA message either after startup or after a
   server transition.  The first DATA message MUST have the 'S' bit
   ('DSN Synchronize' bit) set by the CRANE client.  Upon reception of
   the message with initial DSN, the server MUST accept all in-sequence
   DATA messages.  The DSN MUST be incremented by 1 for each new DATA
   message originated from the client.
   A CRANE server MUST acknowledge the reception and correct processing
   of DATA messages by sending DATA ACK messages.  The DATA ACK MUST
   contain the DSN of the last processed in-sequence DATA message.  If
   the CRANE server receives an Out Of Sequence DATA message, it MUST
   also send a DATA ACK message.  It will trigger an immediate
   retransmission of unacknowledged records.
   The CRANE client is responsible for delivering all the records.  In
   the case of a redundant server configuration, there could be a
   scenario when one server does not receive all the records but another
   redundant CRANE server for the same mediation system receives the
   rest of the records.  For example, server #1 could receive records
   3042-3095 and then 3123-..., with server #2 receiving records 3096-
   3122.  It is the sender's responsibility to deliver all the records,
   in-sequence, but not necessarily to the same server.
   The billing/mediation system eventually receives all the records,
   possibly through more than one CRANE server.  The CRANE client MUST
   convey all the records it received to the billing/mediation system.
    This MAY result in duplicate records in the billing/mediation
   system.  In this case, the DSN MUST be used to remove duplicates.  To
   aid the process of duplicate removal, whenever a record is re-sent to
   another server, its 'Duplicate' bit MUST be set to suggest that this
   record might be a duplicate.
   Implementation Note:
      When the amount of unacknowledged records reaches a threshold, a
      timer should be started.  When the timer expires, all the
      unacknowledged records should be transmitted to an alternate
<span class="grey">Zhang & Elkin                Informational                     [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
      server with 'D' bit set in the DATA message; if alternate servers
      are not available, the records should be retransmitted.
      The CRANE flow control also supports redundant server
      configuration.  A server MUST send a START message in order to
      move to the 'ready' state.  In the 'ready' state, the server can
      receive and process CRANE messages.  To leave the 'ready' state
      and stop the message flows from the client, the server should send
      a STOP message to the client.
<span class="h3"><a class="selflink" id="section-2.8" href="#section-2.8">2.8</a> The CRANE Client Query Messages</span>
   A CRANE server may query a CRANE client's status by sending query
   messages after it has established a session with the client.  A CRANE
   client that is connected to the server MUST respond with response
   messages.  All the Query Messages MUST be initiated by a CRANE
   server.  The CRANE protocol defines three such Query Message pairs,
   they are:
   Get Session (GET SESS)
   Get Session Response (GET SESS RSP)
   Get Template (GET TMPL)
   Get Template Response (GET TMPL RSP)
   Status Request (STATUS REQ)
   Status Response (STATUS RSP)
   All the query messages incorporate a Request ID field for tagging
   purposes and matching requests and responses.  This field contains a
   16 bit counter incremented with every request and is set by the
   initiator of the request.  Along with the CRANE server's IP address
   and port number, this constitutes a unique identifier for a request.
   This value MUST be copied to Request ID field in the response message
   in order to associate a specific response with a request.
   The CRANE client SHOULD collect and send out meta-data about the data
   collected (counters, statistics, etc.).  This is done by creating
   status templates, which are treated like any other template, with the
   exception that these templates are marked with a /'Status' bit.
   Status templates are used with the set of STATUS REQ and STATUS RSP
   messages.  A server MAY issue a STATUS REQ to a CRANE client and
   receive a STATUS RSP message with the requested data.
<span class="h3"><a class="selflink" id="section-2.9" href="#section-2.9">2.9</a> CRANE Sessions</span>
   A CRANE client MAY deliver accounting data to different
   mediation/billing systems by establishing different CRANE sessions.
<span class="grey">Zhang & Elkin                Informational                     [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Each session MAY consist of several CRANE servers in a redundant
   configuration.  The session ID imbedded in all the CRANE messages
   enables the correct association of CRANE sessions with CRANE users.
   All the CRANE processes (e.g., template negotiation, configuration,
   flow control, etc.) should be carried out in the same way in a multi
   session scenario.
   Each session has its set of templates (these may be the same
   templates, but the keys could be enabled or disabled differently).
    The sessions are configured in the NE, each with a different session
   name with associated Session IDs.  The session ID is carried in each
   message to associate the message with a specific session.
   A CRANE server MAY take part in different sessions.  When configuring
   a server, it needs to know the sessions in which it participates.
   The server can issue a GET SESS message to receive a list of relevant
   sessions.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>  CRANE Message Format</span>
   A summary of the CRANE protocol message format is shown below.  A
   CRANE message consists of an 8 octet message header; it is followed
   by a variable length message payload that is aligned to 32 bit
   boundary.  Some of the messages do not have the CRANE Message Payload
   part.  The fields are in network byte order and transmitted from left
   to right.
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Version      |Message ID(MID)|  Session ID   | Message Flags |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Message Length                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                    CRANE Message Payload                      ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Version: 8 bit unsigned integer
      The Version field indicates the supported CRANE protocol
      implementation.  This field MUST be set to 1 to indicate the CRANE
      protocol Version 1.0.  CRANE protocol Version 1.0 only supports
      Ipv4 addressing; however, it can be used to transfer information
      related to Ipv6 flows.
<span class="grey">Zhang & Elkin                Informational                     [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Message ID (MID): 8 bit unsigned integer
      The Message ID field identifies the type of the message.  The
      message IDs defined by CRANE Version 1 are:
      Message Name               Short Name         Message ID
      ---------------------      ---------------    ------------
      Reserved                                         0x00
      Flow Start                  START                0x01
      Flow Start Acknowledge      START ACK            0x02
      Flow Stop                   STOP                 0x03
      Flow Stop Acknowledge       STOP ACK             0x04
      Connect                     CONNECT              0x05
      Template Data               TMPL DATA            0x10
      Template Data Acknowledge   TMPL DATA ACK        0x11
      Final Template Data         FINAL TMPL DATA      0x12
      Final Template Data Ack.    FINAL TMPL DATA ACK  0x13
      Get Sessions                GET SESS             0x14
      Get Sessions Response       GET SESS RSP         0x15
      Get Template                GET TMPL             0x16
      Get Template Response       GET TMPL RSP         0x17
      Start Negotiation           START NEGOTIATE      0x18
      Start Negotiation Ack.      START NEGOTIATE ACK  0x19
      Data                        DATA                 0x20
      Data Acknowledge            DATA ACK             0x21
      Error                       ERROR                0x23
      Status Request              STATUS REQ           0x30
      Status Response             STATUS RSP           0x31
   Session ID: 8 bit unsigned char
      The Session ID field identifies the session with which the message
      is associated.  The session ID is ignored in the case of GET SESS
      and GET SESS RSP messages.  More details about session can be
      found in <a href="#section-2.9">Section 2.9</a>.
   Message Flags: 8 bit unsigned char
      The Message Flags field can be used to identify options associated
      with the message.  For CRANE Version 1.0, all the flags are
      reserved; unless otherwise specified, the flags are set to zero on
      transmit and are ignored on receipt.
<span class="grey">Zhang & Elkin                Informational                     [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Message Length: 32 bit unsigned integer
      The Message Length field is the total length of the CRANE message
      in octet including the header.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>  CRANE Messages</span>
   This section defines CRANE mandatory messages.  They MUST be
   supported by any CRANE protocol implementation.
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a> Flow Start (START)</span>
   Description
      The Flow Start message is sent from a CRANE server to a CRANE
      client to indicate that the CRANE server is ready to receive CRANE
      messages.
     Message Format
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Version      |  MID=0x01     | Session ID    | Message Flags |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Message Length                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a> Flow Start Acknowledge (START ACK)</span>
   Description
      The Flow Start Acknowledge message is sent by a CRANE client to
      acknowledge the reception of a START message from a specific CRANE
      server.  It is sent only to that server to indicate that the
      client considers it ready to receive CRANE messages.
   Message Format
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Version      |  MID=0x02     | Session ID    | Message Flags |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Message Length                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                        Client Boot Time                       |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
<span class="grey">Zhang & Elkin                Informational                     [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Client Boot Time: 32 bit unsigned integer
      The Client Boot Time field is the timestamp of the last client
      startup in seconds from 1970.  This field can be combined with the
      DSN and the client's IP address to serve as a system wide unique
      record identifier.
<span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a> Flow Stop (STOP)</span>
   Description
      The Flow Stop message is sent from a CRANE server to a CRANE
      client to instruct it to stop sending data (to that server).  The
      STOP message does not disconnect the server; it only stops the
      CRANE client from sending "DATA" messages.
   Message Format
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Version      |  MID=0x03     | Session ID    | Message Flags |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Message Length                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
<span class="h3"><a class="selflink" id="section-4.4" href="#section-4.4">4.4</a> Flow Stop Acknowledge (STOP ACK)</span>
   Description
      The Flow Stop Acknowledgement message acknowledges the STOP
      message issued by a CRANE server.
   Message Format
      0                   1                   2                   3
      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |  Version      |  MID=0x04     | Session ID    | Message Flags |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                         Message Length                        |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
<span class="grey">Zhang & Elkin                Informational                     [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
<span class="h3"><a class="selflink" id="section-4.5" href="#section-4.5">4.5</a> Connect (CONNECT)</span>
   Description
      The CONNECT message is sent from a CRANE server to a CRANE client
      to identify itself.  The message MUST be the first message sent
      over a transport layer connection between the server and the
      client.
   Message Format
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Version      |  MID=0x05     | Session ID    | Message Flags |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Message Length                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Server Address                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |          Server Port          |           Reserved            |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Server Address: 32 bit unsigned integer
      The Server Address field is the server's IP address (IPV4).
   Server Port: 16 bit unsigned integer
      The Server Port field is the server's port number for the
      transport layer (the port number specified here doesn't
      necessarily have to match the port number used by the transport
      layer)
<span class="h3"><a class="selflink" id="section-4.6" href="#section-4.6">4.6</a> Template Data (TMPL DATA)</span>
   Description
      A CRANE client sends the Template Data message to a CRANE server
      after a START or a START NEGOTIATE message was received from the
      server.  The message MUST contain all the templates that are going
      to be used for the session.  It SHOULD also include the template
      for the status records (See <a href="#section-2.8">section 2.8</a>)
      The receiving CRANE server MUST acknowledge the message by sending
      either a TMPL DATA ACK (if template changes are needed) or a FINAL
      TMPL DATA ACK message.  For more information, see <a href="#section-2.5">section 2.5</a>.
<span class="grey">Zhang & Elkin                Informational                     [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Message Format
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Version      |  MID=0x10     | Session ID    | Message Flags |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Message Length                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |   Config ID   |  Flags      |E|       Number of Templates     |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                       Template Block                          ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                       ...       ...                           ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                       Template Block                          ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Configuration ID (Config. ID): 8 bit unsigned char
      The Configuration ID field identifies the version number
      associated with a template set.  Changes to any of the templates
      would result in a new template version, and the version number
      would be incremented by one.  An implementation SHOULD handle
      rollovers of the version number.
   Flags: 8 bit unsigned char
      The Flags field identifies any options associated to the message.
      The flag defined by the CRANE Version 1 is:
      The 'E' bit indicates the transmission order of the "DATA"
      messages.  If the field is set to 1, data is in big endian format;
      otherwise, little endian format is used.
   Number of Templates: 16 bit unsigned integer
      The Number of Templates field is the number of Templates (a
      template is described by a Template Block) specified by the
      message.
<span class="grey">Zhang & Elkin                Informational                     [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Template Block
      The Template Block field is of variable length and aligned to 32
      bit boundary.  It is the specification of a template.
   Template Block Format:
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |        Template ID            |         Number of Keys        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |      Template Flags         |T|      Description Length       |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                     Template Block Length                     |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                         Description                           ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                          Key Block                            ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                       ...       ...                           ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                          Key Block                            ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Template ID: 16 bit unsigned integer
      The Template ID field identifies a specific template.
   Number of Keys: 16 bit unsigned integer
      The Number of Keys field is the number of keys included in the
      template.
   Template Flags: 16 bit unsigned integer
      The Template Flags field is composed of flags that indicate
      different attributes of the template.  In CRANE Version 1.0, only
      the 'T' bit is defined, other bits in the field SHOULD be set to
      zero by the sender and ignored by the receiver.
<span class="grey">Zhang & Elkin                Informational                     [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
      The 'T' bit ('Status' bit) indicates that the template is a status
      template that is used by the STATUS RSP message only.  See <a href="#section-2.8">section</a>
      <a href="#section-2.8">2.8</a> for more details.
   Description Length: 16 bit unsigned integer
      The Description Length field is the length of the Description
      field.  If no description is supplied, the length MUST be 0.
   Template Block Length: 32 bit unsigned integer
      The Template Block Length is the length of the template block in
      octets.
   Description: Variable length unsigned char
      The Description field contains the text description of the
      template (e.g., "Aggregated by interface and ToS bits").  It is a
      variable length field of up to 64Kb long, and padded with 0 to the
      next 32 bit boundary.
   Key Block
      A key Block contains the specification of a key within a template.
   Key Block Format
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                            Key ID                             |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |          Key Type ID          |            Reserved           |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                      Key Attribute Vector                   |K|
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Key ID: 32 bit unsigned integer
      The Key ID field identifies the key within a template.  See
      <a href="#section-2.4">section 2.4</a> for more details.
   Key Type ID: 16 bit unsigned integer
      The Key Type ID field specifies the data type of the key.
<span class="grey">Zhang & Elkin                Informational                     [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
           The fixed length data types are defined as following:
               Data Type             Data Type ID
           ---------------------    --------------
            Boolean (1)                 0x0001
            Unsigned Integer8           0x0002
            Signed Integer8             0x0003
            Unsigned Integer16          0x0004
            Signed Integer16            0x0005
            Unsigned Integer32          0x0006
            Signed Integer32            0x0007
            Unsigned Integer64          0x0008
            Signed Integer64            0x0009
            Float (2)                   0x000a
            Double (2)                  0x000b
            IP address (Ipv4)           0x0010
            IP address (Ipv6)           0x0011
            Time_SEC  (3)               0x0012
            Time_MSEC_64(4)             0x0013
            Time_USEC_64 (5)            0x0014
            Time_MSEC_32 (6)            0x0015
            Time_USEC_32 (7)            0x0016
           The variable length data types are defined as following:
            String (8)                  0x400c
            Null Terminated String      0x400d
            UTF-8 String                0x400e
            UTF-16 String               0x400f
            Arbitrary Data (BLOB) (9)   0x4015
           (1) Boolean is represented as a single octet holding 0 for a
           value of FALSE and 1 for a value of TRUE.
           (2) Float and Double are single and double precision floating
           point numbers that comply with the IEEE-754 standard.
           (3) Time_SEC is a 32 bit value, most significant octet first
           - seconds since 00:00:00 GMT, January 1, 1970.
           (4) Time_MSEC_64 is a 64 bit value, most significant octet
           first - milliseconds since 00:00:00 GMT, January 1, 1970.
           (5) Time_USEC_64 is a 64 bit value, most significant octet
           first - microseconds since 00:00:00 GMT, January 1, 1970.
<span class="grey">Zhang & Elkin                Informational                     [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
           (6) Time_MSEC_32 is a 32 bit value, most significant octet
           first - milliseconds since 00:00:00 GMT, January 1, 1970.
           (7) Time_USEC_32 is a 32 bit value, most significant octet
           first - microseconds since 00:00:00 GMT, January 1, 1970.
           (8) String is prefixed by a 32 bit length field that
           indicates the length of the string, and followed by ASCII
           codes of the string characters.  This representation MUST
           only be used for encoding data records in a "DATA" message.
           (9) The arbitrary data is prefixed by a 32 bit length field
           and followed by the data in binary format.
   Key Attribute Vector: 32 bit unsigned integer
      The Key Attribute Vector field indicates different attributes of
      the key.  In CRANE Version 1, only the 'K' bit is defined, other
      bits in the field SHOULD be set to zero by the sender and ignored
      by the receiver.
      The 'K' bit ('Disabled bit') is set to 1 when the key is disabled
      in this template.
<span class="h3"><a class="selflink" id="section-4.7" href="#section-4.7">4.7</a> Template Data Acknowledge (TMPL DATA ACK)</span>
   Description
      The Template Data Acknowledge message is sent from a CRANE server
      to a CRANE client after a TMPL DATA message has been received.  It
      proposes changes of the templates and/or key status changes
      (enable/disable) for the templates.
      If a CRANE server wishes to acknowledge reception of TMPL DATA
      without changes, it MUST respond with the FINAL TMPL DATA ACK
      message.
<span class="grey">Zhang & Elkin                Informational                     [Page 23]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-24" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Message Format
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Version      |  MID=0x11     | Session ID    | Message Flags |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Message Length                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |    Config. ID |    Reserved   |   Number of Template Changes  |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                    Template Change Block                      ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                       ...       ...                           ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                    Template Change Block                      ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Configuration ID (Config. ID): 8 bit unsigned char
      See <a href="#section-4.6">Section 4.6</a>.  The value MUST be identical to the Config.  ID
      field of the acknowledged TMPL DATA message.
   Number of Template Changes: 16 bit unsigned integer
      The Number of Template Changes field is the number of changed
      Templates (a changed template is described by a Template Change
      Block) specified by the message.
<span class="grey">Zhang & Elkin                Informational                     [Page 24]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-25" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Template Change Block
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |        Template ID            |        Number of Keys         |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                          Key Block                            ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                       ...       ...                           ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                          Key Block                            ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Template ID: 16 bit unsigned integer
      See <a href="#section-4.6">Section 4.6</a>.
   Number of Keys: 16 bit unsigned integer
      See <a href="#section-4.6">Section 4.6</a>.
   Key Block
      See <a href="#section-4.6">Section 4.6</a>, only relevant keys are described.
<span class="h3"><a class="selflink" id="section-4.8" href="#section-4.8">4.8</a> Final Template Data (FINAL TMPL DATA)</span>
      Description
      The Final Template Data message is sent by a CRANE client to all
      the CRANE servers in a session, to convey the finalize templates.
      It is similar to the TMPL DATA message, with the only difference
      that a server must accept the templates in this message.
   Message Format
      Identical to the TMPL DATA (see <a href="#section-4.6">section 4.6</a>)
   Message ID (MID)
      0x12      Final Template Data
<span class="grey">Zhang & Elkin                Informational                     [Page 25]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-26" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
<span class="h3"><a class="selflink" id="section-4.9" href="#section-4.9">4.9</a> Final Template Data Acknowledge (FINAL TMPL DATA ACK)</span>
   Description
      The CRANE server acknowledges reception of the TMPL DATA or FINAL
      TMPL DATA by sending a Final Template Data Acknowledge message.
      It does not carry any changes to the templates.  Unlike TMPL DATA
      ACK messages, a FINAL TMPL DATA ACK message indicates the
      acceptance of the templates for the session.  A server MAY respond
      with this message to a TMPL DATA (if it does not want any changes
      in the templates).  A server MUST respond with this message to a
      FINAL TMPL DATA.
   Message Format
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Version      |  MID=0x13     | Session ID    | Message Flags |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Message Length                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |   Config. ID  |                     Reserved                  |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Configuration ID: 8 bit unsigned char
      See <a href="#section-4.6">Section 4.6</a>.  This field MUST copy the configuration ID from
      the acknowledged message.
<span class="h3"><a class="selflink" id="section-4.10" href="#section-4.10">4.10</a>    Get Sessions (GET SESS)</span>
   Description
      The Get Sessions message is sent by a CRANE server to a CRANE
      client to query what are the sessions it should participate.  This
      is typically done just before a UI configuration of the CRANE
      client's templates.  As each session has its own set of templates,
      there is a need to know the server's participation of all the
      sessions.
      The Session ID field in the CRANE message header MUST be ignored
      by the receiver.
<span class="grey">Zhang & Elkin                Informational                     [Page 26]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-27" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Message Format
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Version      |  MID=0x14     | Session ID    | Message Flags |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Message Length                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |           Request ID          |        Reserved               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Request ID: 16 bit unsigned integer
      The Request ID field identifies the specific request issued by the
      server.  The same Request ID MUST be placed in the responding
      message in order to associate it with the request.
<span class="h3"><a class="selflink" id="section-4.11" href="#section-4.11">4.11</a>    Get Sessions Response (GET SESS RSP)</span>
   Description
      The Get Sessions Response message is sent by a CRANE client to a
      CRANE server as a reply to a GET SESS request.  The message MUST
      contain all the information related to any session with which the
      requesting server is associated.
      The Session ID field in the common message header MUST be ignored
      by the receiver.
<span class="grey">Zhang & Elkin                Informational                     [Page 27]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-28" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Message Format
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      --+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Version      |  MID=0x15     | Session ID    | Message Flags |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Message Length                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |           Request ID          |       Number of Sessions      |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |    Vendor String Length       |           Reserved            |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|
      |                                                               |
      ~                       Vendor String                           ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                         Session Block                         ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                       ...       ...                           ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                         Session Block                         ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Request ID: 16 bit unsigned integer
      See <a href="#section-4.10">Section 4.10</a>.
   Number of Sessions: 16 bit unsigned integer
      The Number of Sessions field is the number of session blocks in
      the message.
   Vendor String Length: 16 bit unsigned integer
      The Vendor String Length field is the length of Vendor String
      field in octet.  The field limits vendor strings to 64Kb long.  If
      no such string is supplied, the length MUST be set to 0.
<span class="grey">Zhang & Elkin                Informational                     [Page 28]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-29" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Vendor String: Variable length unsigned char
      The Vendor String field is a variable length field.  It identifies
      the vendor that created the session.  It MUST be padded with 0 to
      the next 32 bit boundary.  The information differentiates similar
      templates from different vendors.  The actual format of the
      information is application specific and outside the scope of this
      document.
   Session Block
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      | Session ID    |   Reserved    |      Session Name Length      |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Session Description Length   |             Reserved          |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                          Session Name                         ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                       Session Description                     ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Session ID: 8 bit unsigned char
      See <a href="#section-3">Section 3</a>.
   Session Name Length: 16 bit unsigned integer
      The Session Name Length field is the length of the Session Name
      field.  The field limits the session name strings to 64 Kb long.
      As a name is mandatory to differentiate between sessions, this
      field MUST NOT be 0.
   Session Description Length: 16 bit unsigned integer
      The Session Description Length field is the length of a session
      description.  The field limits the session description to 64Kb
      long.  If no such Description is supplied, the length MUST be set
      to 0.
<span class="grey">Zhang & Elkin                Informational                     [Page 29]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-30" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Session Name: Variable length unsigned char
      The Session Name field is the name for a session, which MAY be
      displayed to end-users.  It MUST be padded with 0 to the next 32
      bit boundary.  Session Name MUST be unique within a CRANE client.
      This field is mandatory and MUST be a part of any Session Block.
   Session Description: Variable length unsigned char
      The Session Description field is the text description of a
      session; it could be displayed to end-users.  It MUST be padded
      with 0 to the next 32 bit boundary.
<span class="h3"><a class="selflink" id="section-4.12" href="#section-4.12">4.12</a>    Get Templates (GET TMPL)</span>
   Description
      The Get Templates message is sent by a CRANE server to a CRANE
      client to query templates in a session.
   Message Format
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Version      |  MID=0x16     | Session ID    | Message Flags |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Message Length                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |           Request ID          |            Reserved           |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Request ID: 16 bit unsigned integer
      See <a href="#section-4.10">Section 4.10</a>.
<span class="h3"><a class="selflink" id="section-4.13" href="#section-4.13">4.13</a>    Get Templates Response (GET TMPL RSP)</span>
   Description
      The Get Templates Response message is sent by a CRANE client to a
      CRANE server as a response to a GET TMPL message.  The message
      SHOULD contain all templates available for the specific session.
<span class="grey">Zhang & Elkin                Informational                     [Page 30]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-31" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Message Format
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Version      |  MID=0x17     | Session ID    | Message Flags |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Message Length                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |           Request ID          |       Number of Templates     |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                       Template Block                          ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                       ...       ...                           ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                       Template Block                          ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Request ID: 16 bit unsigned integer
      See <a href="#section-4.10">Section 4.10</a>.
   Number of Templates: 16 bit unsigned integer
      See <a href="#section-4.6">Section 4.6</a>.
   Template Block
      Same as the template block defined in the TMPL DATA message (see
      <a href="#section-4.6">Section 4.6</a>).  However, Extended Key Blocks MUST be used instead
      of Key Blocks.  Extended key Block field provides extensive
      informational data that MAY be displayed to end-users.
   Extended Key Block
      The Extended Key Block field provides comprehensive information
      about a key.
<span class="grey">Zhang & Elkin                Informational                     [Page 31]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-32" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Extended Key Block Format:
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                            Key ID                             |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |          Key Type ID          |        Key Name Length        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |          Key Label Length     |        Key Help Length        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                            Key Name                           ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                            Key Label                          ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                            Key Help                           ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                      Key Attribute Vector                   |K|
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Key ID: 32 bit unsigned integer
      Same as <a href="#section-4.6">section 4.6</a>.
   Key Type ID: 16 bit unsigned integer
      Same as <a href="#section-4.6">section 4.6</a>.
   Key Name Length: 16 bit unsigned integer
      The Key Name Length field is the length of the Key Name field.
      The field limits Key Name strings to 64 Kb long.  As a name is
      mandatory to a key, this field MUST NOT be 0.
   Key Label Length: 16 bit unsigned integer
      The Key Label Length field is the length of the Key Label field.
      The field limits Key Label strings to 64 Kb long.  Length of 0
      means that the Label field is to be skipped.
<span class="grey">Zhang & Elkin                Informational                     [Page 32]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-33" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Key Help Length: 16 bit unsigned integer
      The Key Help Length field is the length of the Key Help field.
      The field limits Key Help strings to 64 Kb long.  Length of 0
      means that the Help field is to be skipped.
   Key Name: Variable length unsigned char
      The Key Name field is the name for the key, which could be
      displayed to end users.  It MUST be padded with 0 to the next 32
      bit boundary.  Key Name MUST be unique (within the template) and
      case sensitive.  This field is mandatory and MUST be a part of any
      Extended Key Block.
   Key Label: Variable length unsigned char
      The Key Label field is a descriptive label, which could be
      displayed to end users concerning this key.  It MUST be padded
      with 0 to the next 32 bit boundary.  This field SHOULD be a part
      of any Extended Key Block.
   Key Help: Variable length unsigned char
      The Key Help field is any Help string that could be displayed to
      end users concerning this key.  It MUST be padded with 0 to the
      next 32 bit boundary.  This field MAY be a part of any Extended
      Key Block.
   Key Attribute Vector: 32 bit unsigned integer
      Same as <a href="#section-4.6">section 4.6</a>.
<span class="h3"><a class="selflink" id="section-4.14" href="#section-4.14">4.14</a>    Start Negotiation (START NEGOTIATE)</span>
   Description
      The Start Negotiation message is sent by a CRANE server after the
      configuration process has completed.  The message should initiate
      template negotiation by the client with all CRANE servers in a
      session.  The CRANE server MAY re-send this message up to 3 times
      with repeat interval of 5 seconds unless it is acknowledged by the
      CRANE client.  Otherwise, the CRANE user will be informed.  The
      client should send TMPL DATA message to the servers after
      acknowledged the message.
<span class="grey">Zhang & Elkin                Informational                     [Page 33]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-34" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Message Format
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Version      |  MID=0x18     | Session ID    | Message Flags |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Message Length                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
<span class="h3"><a class="selflink" id="section-4.15" href="#section-4.15">4.15</a>    Start Negotiation Acknowledge (START NEGOTIATE ACK)</span>
   Description
      The Start Negotiation Acknowledge message MUST be sent by a CRANE
      client to the server to acknowledge the reception of the START
      NEGOTIATE message.
   Message Format
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Version      |  MID=0x19     | Session ID    | Message Flags |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Message Length                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
<span class="h3"><a class="selflink" id="section-4.16" href="#section-4.16">4.16</a>    Data (DATA)</span>
   Description
      The DATA message carries actual data records from a CRANE client
      to a CRANE server.  A data record is a structured collection of
      fields that matches a specific template.
<span class="grey">Zhang & Elkin                Informational                     [Page 34]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-35" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Message Format
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Version      |  MID=0x20     | Session ID    | Message Flags |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Message Length                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |        Template ID            |    Config. ID |  Flags    |D|S|
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                   Data Sequence Number (DSN)                  |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                          Record Data                          ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Template ID: 16 bit unsigned integer
      See <a href="#section-4.6">Section 4.6</a>.
     Configuration ID: 8 bit unsigned char
      See <a href="#section-4.6">Section 4.6</a>.  The Config. ID field can prevent out-of-the-blue
      messages with outdated templates arriving and erroneously
      processed.  A server MAY keep a short history of templates in
      order to cope with this scenario.
   Flags: 8 bit unsigned char
      The Flags field is composed of flag bits that indicate processing
      requirements of the data records.  The CRANE Version 1 defined two
      flags for these purposes.  Unless otherwise specified, the other
      flags are set to zero on transmit and are ignored on receipt.
   The following flags are defined in CRANE Version 1:
      The 'D' bit ('Duplicate' bit): It is set for records that are
      re-sent to an alternate server after a server transition occurs.
      When the same records are sent to different servers, there is a
      possibility that duplicated data exists.  The Status of the 'D'
      bit will help the billing/mediation system to perform
      de-duplication if desired.
<span class="grey">Zhang & Elkin                Informational                     [Page 35]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-36" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
      The 'S' bit ('DSN Synchronize' bit): When set, it indicates that
      the record is the first one received by the server after starting
      (or restarting) of data transmission to this server.  The server
      MUST set the initial DSN to the DSN specified in the record.  The
      flag is set to zero by default.
   Data Sequence Number: 32 bit unsigned integer
      The Data Sequence Number field is the record sequence number used
      for preserving data orders and detecting data losses.  The DSN
      MUST be incremented by one for each new record transmitted.  The
      selection of the initial DSN number is implementation specific.
   Record Data: Variable Length unsigned octets
      The Record Data field carries the actual accounting/billing data
      that is structured according to the template identified by the
      Template ID field.
<span class="h3"><a class="selflink" id="section-4.17" href="#section-4.17">4.17</a>    Data Acknowledge (DATA ACK)</span>
   Description
      The Data Acknowledgement message is sent from a CRANE server to
      acknowledge receipt of records.  It acknowledges the maximal in-
      sequence DSN received.
   Message Format
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Version      |  MID=0x21     | Session ID    | Message Flags |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Message Length                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                      Data Sequence Number                     |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |   Config. ID  |                  Reserved                     |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Data Sequence Number: 32 bit unsigned integer
      See <a href="#section-4.16">Section 4.16</a>.  It MUST be DSN of the last in-sequence record
      that was received by the server.
<span class="grey">Zhang & Elkin                Informational                     [Page 36]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-37" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Configuration ID: 8 bit unsigned char
      See <a href="#section-4.16">Section 4.16</a>.
<span class="h3"><a class="selflink" id="section-4.18" href="#section-4.18">4.18</a>    Error (ERROR)</span>
   Description
      The Error message MAY be issued by either a CRANE server or
      client.  It indicates an error condition that was detected by the
      sender.
   Message Format
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Version      |  MID=0x23     | Session ID    | Message Flags |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Message Length                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                           Timestamp                           |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |         Error Code            |      Description Length       |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                          Description                          ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Timestamp: 32 bit unsigned integer
      The Timestamp field is a timestamp in seconds since 00:00:00 GMT,
      January 1, 1970.
   Error Code: 16 bit unsigned integer
      The Error Code field is a code assigned to an error condition.
   The following error codes are defined in CRANE Version 1:
          Error Condition                   Error Code
         -----------                    --------------
          Unknown                           0
<span class="grey">Zhang & Elkin                Informational                     [Page 37]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-38" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Description Length: 16 bit unsigned integer
      The Description Length field is the length of the Description
      field.  The field limits Description strings to 64 Kb long.
      Length of 0 means that the Description field is to be skipped.
   Description: Variable Length unsigned char
      The Description field is a text description that allows the sender
      to provide more detailed information about the error condition.
      It MUST be padded with 0 to the next 32 bit boundary.
<span class="h3"><a class="selflink" id="section-4.19" href="#section-4.19">4.19</a>    Status Request (STATUS REQ)</span>
   Description
      CRANE servers MAY inquire general operation status of a client by
      sending the Status Request message.  The status information SHOULD
      include a collection of states, counters, accumulators of the data
      collection functions that reside with the client.  The status MAY
      include more information about the CRANE client itself.
      The status reporting mechanism relies on the status template of a
      session.  It is determined similarly as other templates.  Without
      a determined status template, no status information can be
      delivered.
   Message Format
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Version      |  MID=0x30     | Session ID    | Message Flags |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Message Length                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
<span class="h3"><a class="selflink" id="section-4.20" href="#section-4.20">4.20</a>    Status Response (STATUS RSP)</span>
   Description
      The Status Response message contains a status report that MUST be
      compatible with the status template of the session.  It is
      client's response to a STATUS REQ message from a server.
<span class="grey">Zhang & Elkin                Informational                     [Page 38]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-39" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Message Format
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Version      |  MID=0x31     | Session ID    | Message Flags |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Message Length                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |        Template ID            |  Reserved     |Config. ID     |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Record Length                         |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      ~                         Record Data                           ~
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     Template ID: 16 bit unsigned integer
      See <a href="#section-4.6">Section 4.6</a>.
   Configuration ID: 8 bit unsigned integer
      See <a href="#section-4.6">Section 4.6</a>.  The version is needed here to prevent
      out-of-the-blue messages with outdated templates arriving and
      erroneously processed.  A server MAY keep a short history of
      templates in order to cope with this scenario.
   Record Length: 32 bit unsigned integer
      The Record Length field is the length of the Record Data field in
      octets.
   Record Data: Variable Length unsigned octets
      The Record Data field contains the status data that complies with
      the status template.  For more details see <a href="#section-2.4">section 2.4</a>
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>  Protocol Version Negotiation</span>
   Since the CRANE protocol may evolve in the future and it may run over
   different transport layers, a transport neutral version negotiation
   mechanism running over UDP is defined.  A CRANE server MAY inquire a
   CRANE client about the CRANE protocol version and transport layer
   support by sending a UDP packet on an agreed UDP port.  The client
   MUST respond to this request with a UDP packet carrying the protocol
<span class="grey">Zhang & Elkin                Informational                     [Page 39]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-40" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   version, the transport type and the port number used for the specific
   transport.  The Protocol Version Negotiation is optional for CRANE
   Version 1.
   The CRANE server sends the following message to query the client's
   protocol support.
   Message Format
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Server Address                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                        Server Boot Time                       |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |     'C'       |    'R'        |    'A'        |    'N'        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Server Address:
      The Server Address field is the IP address (Ipv4) of the CRANE
      server.
   Server Boot Time
      The Server Boot Time field is the timestamp of the last server
      startup in seconds from 1970.
   'C', 'R', 'A', 'N':
      The 'C', 'R', 'A', 'N' fields are ASCII encoded characters to
      identify the CRANE server.
<span class="grey">Zhang & Elkin                Informational                     [Page 40]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-41" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   The client's reply to a version negotiation request MUST comply with
   the following structure:
   Message Format
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                      Default Protocol Info                    |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                    Additional Protocols Count                 |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                    Additional Protocols Info                  |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |              ...   Additional Protocols Info  ...             |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                    Additional Protocols Info                  |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Default Protocol Info:
      The Default Protocol Info field contains information of the
      default protocol supported by the client.  The field is structured
      as a Protocol Info Block described below.
   Additional Protocols Count: 32 bit unsigned integer
      The Additional Protocols Count field specifies the number of
      additional protocols supported by the client.  In the case that
      only the default protocol is supported, the field MUST be set to
      0.
   Additional Protocols Info:
      The Additional Protocol Info field is an array of Protocol Info
      Blocks (described below) contain information about additional
      protocols supported by the client.
<span class="grey">Zhang & Elkin                Informational                     [Page 41]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-42" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   Protocol Info Block
       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                         Transport Type                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                        Protocol Version                       |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |         Port Number           |            Reserved           |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Transport Type: 32 bit unsigned integer
      1 - TCP, 2 - SCTP
   Protocol Version: 32 bit unsigned integer
      Version number of the CRANE protocol supported over the specific
      transport layer, the current version is 1.
   Port Number: 16 bit unsigned integer
      Port number (either SCTP or TCP port) used for the protocol
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>  Security Considerations</span>
   The CRANE protocol can be viewed as an application running over a
   reliable transport layer, such as TCP and SCTP.  The CRANE protocol
   is end-to-end in the sense that the CRANE messages are communicated
   between clients and servers identified by the host address and the
   transport protocol port number.  Before any CRANE sessions can be
   initiated, a set of CRANE servers' addresses should be provisioned on
   a CRANE client.  Similarly, a CRANE server maintains a list of CRANE
   clients' address with which it communicates.  The provisioning is
   typically carried out securely using a network management system; in
   this way, the CRANE end-points can be authenticated and authorized.
   As this scheme is static, without additional security protections the
   CRANE protocol is vulnerable to attacks such as address spoofing.
   The CRANE protocol itself does not offer strong security facilities;
   therefore, it cannot ensure confidentiality and integrity of CRANE
   messages.  It is strongly recommended that users of the CRANE
   protocol evaluate their deployment configurations and implement
   appropriate security policies.  For example, if the CRANE protocol is
   deployed over a local area network or a dedicated connection that
<span class="grey">Zhang & Elkin                Informational                     [Page 42]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-43" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
   ensure security, no additional security services or procedures may be
   required; however, if CRANE clients and servers are connected through
   the Internet, lower layer security services should be invoked.
   To achieve a strong security protection of communications between
   CRANE clients and servers, lower layer security services are strongly
   recommended.  The lower layer security services are transparent to
   the CRANE protocols.  Security mechanisms may be provided at the IP
   layer using IPSEC [<a href="#ref-6" title=""Security Architecture for the Internet Protocol"">6</a>], or it may be implemented for transport layer
   using TLS [<a href="#ref-7" title=""The TLS Protocol, Version 1.0"">7</a>].  The provisioning of the lower layer security services
   is out of the scope of this document.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>  References</span>
   [<a id="ref-1">1</a>]   Rigney, C., Willens, S., Rubens, A. and W. Simpson, "Remote
         Authentication Dial In User Service (RADIUS)", <a href="./rfc2865">RFC 2865</a>, June
         2000.
   [<a id="ref-2">2</a>]   Calhoun, P., <a style="text-decoration: none" href='https://www.google.com/search?sitesearch=datatracker.ietf.org%2Fdoc%2Fhtml%2F&q=inurl:draft-+%22DIAMETER+Base+Protocol%22'>"DIAMETER Base Protocol"</a>, Work in Progress.
   [<a id="ref-3">3</a>]   Calhoun, P., et. al., <a style="text-decoration: none" href='https://www.google.com/search?sitesearch=datatracker.ietf.org%2Fdoc%2Fhtml%2F&q=inurl:draft-+%22DIAMETER+Framework+Document%22'>"DIAMETER Framework Document"</a>, Work in
         Progress.
   [<a id="ref-4">4</a>]   Stewart, R., Xie, Q., Morneault, K., Sharp, C., Schwarzbauer,
         H., Taylor, T., Rytina, I., Kalla, M., Zhang, L. and V. Paxson,
         "Simple Control Transmission Protocol", <a href="./rfc2960">RFC 2960</a>, October 2000.
   [<a id="ref-5">5</a>]   Bradner, S., "Key words for use in RFCs to Indicate Requirement
         Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
   [<a id="ref-6">6</a>]   Kent, S. and R. Atkinson,  "Security Architecture for the
         Internet Protocol", <a href="./rfc2401">RFC 2401</a>, November 1998.
   [<a id="ref-7">7</a>]   Dierks,  T. and C. Allen, "The TLS Protocol, Version 1.0", <a href="./rfc2246">RFC</a>
         <a href="./rfc2246">2246</a>, January 1999.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>  Acknowledgments</span>
   Special thanks are due to Tal Givoly, Limor Schweitzer for conceiving
   the work, and Nir Pedhatzur, Batya Ferder, and Peter Ludemann from
   XACCT Technologies for accomplishing the first CRANE protocol
   implementation.
   Thanks are also due to Nevil Brownlee for his valuable comments on
   the work, as well as the IETF IPFIX WG.
<span class="grey">Zhang & Elkin                Informational                     [Page 43]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-44" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>  Authors' Addresses</span>
   Kevin Zhang
   10124 Treble Court
   Rockville, MD 20850
   U.S.A.
   Phone +1 301 315 0033
   EMail: kevinzhang@ieee.org
   Eitan Elkin
   XACCT Technologies, Ltd.
   www.xacct.com
   12 Hachilazon St.
   Ramat-Gan, Israel 52522
   Phone +1 972 3 576 4111
   EMail: eitan@xacct.com
<span class="grey">Zhang & Elkin                Informational                     [Page 44]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-45" ></span>
<span class="grey"><a href="./rfc3423">RFC 3423</a>          XACCT's CRANE Protocol Specification     November 2002</span>
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>  Full Copyright Statement</span>
   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.
Zhang & Elkin                Informational                     [Page 45]
</pre>
 
     |