1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941
|
<pre>Internet Engineering Task Force (IETF) A. Doria, Ed.
Request for Comments: 5810 Lulea University of Technology
Category: Standards Track J. Hadi Salim, Ed.
ISSN: 2070-1721 Znyx
R. Haas, Ed.
IBM
H. Khosravi, Ed.
Intel
W. Wang, Ed.
L. Dong
Zhejiang Gongshang University
R. Gopal
Nokia
J. Halpern
March 2010
<span class="h1">Forwarding and Control Element Separation (ForCES)</span>
<span class="h1">Protocol Specification</span>
Abstract
This document specifies the Forwarding and Control Element Separation
(ForCES) protocol. The ForCES protocol is used for communications
between Control Elements(CEs) and Forwarding Elements (FEs) in a
ForCES Network Element (ForCES NE). This specification is intended
to meet the ForCES protocol requirements defined in <a href="./rfc3654">RFC 3654</a>.
Besides the ForCES protocol, this specification also defines the
requirements for the Transport Mapping Layer (TML).
Status of This Memo
This is an Internet Standards Track document.
This document is a product of the Internet Engineering Task Force
(IETF). It represents the consensus of the IETF community. It has
received public review and has been approved for publication by the
Internet Engineering Steering Group (IESG). Further information on
Internet Standards is available in <a href="./rfc5741#section-2">Section 2 of RFC 5741</a>.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
<a href="http://www.rfc-editor.org/info/rfc5810">http://www.rfc-editor.org/info/rfc5810</a>.
<span class="grey">Doria, et al. Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
Copyright Notice
Copyright (c) 2010 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
<span class="grey">Doria, et al. Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
Table of Contents
<a href="#section-1">1</a>. Introduction ....................................................<a href="#page-5">5</a>
<a href="#section-2">2</a>. Terminology and Conventions .....................................<a href="#page-6">6</a>
<a href="#section-2.1">2.1</a>. Requirements Language ......................................<a href="#page-6">6</a>
<a href="#section-2.2">2.2</a>. Other Notation .............................................<a href="#page-6">6</a>
<a href="#section-2.3">2.3</a>. Integers ...................................................<a href="#page-6">6</a>
<a href="#section-3">3</a>. Definitions .....................................................<a href="#page-6">6</a>
<a href="#section-4">4</a>. Overview .......................................................<a href="#page-10">10</a>
<a href="#section-4.1">4.1</a>. Protocol Framework ........................................<a href="#page-11">11</a>
<a href="#section-4.1.1">4.1.1</a>. The PL .............................................<a href="#page-13">13</a>
<a href="#section-4.1.2">4.1.2</a>. The TML ............................................<a href="#page-14">14</a>
<a href="#section-4.1.3">4.1.3</a>. The FEM/CEM Interface ..............................<a href="#page-14">14</a>
<a href="#section-4.2">4.2</a>. ForCES Protocol Phases ....................................<a href="#page-15">15</a>
<a href="#section-4.2.1">4.2.1</a>. Pre-association ....................................<a href="#page-16">16</a>
<a href="#section-4.2.2">4.2.2</a>. Post-association ...................................<a href="#page-18">18</a>
<a href="#section-4.3">4.3</a>. Protocol Mechanisms .......................................<a href="#page-19">19</a>
<a href="#section-4.3.1">4.3.1</a>. Transactions, Atomicity, Execution, and Responses ..19
<a href="#section-4.3.2">4.3.2</a>. Scalability ........................................<a href="#page-25">25</a>
<a href="#section-4.3.3">4.3.3</a>. Heartbeat Mechanism ................................<a href="#page-26">26</a>
<a href="#section-4.3.4">4.3.4</a>. FE Object and FE Protocol LFBs .....................<a href="#page-27">27</a>
<a href="#section-4.4">4.4</a>. Protocol Scenarios ........................................<a href="#page-27">27</a>
<a href="#section-4.4.1">4.4.1</a>. Association Setup State ............................<a href="#page-27">27</a>
<a href="#section-4.4.2">4.4.2</a>. Association Established State or Steady State ......<a href="#page-29">29</a>
<a href="#section-5">5</a>. TML Requirements ...............................................<a href="#page-31">31</a>
<a href="#section-5.1">5.1</a>. TML Parameterization ......................................<a href="#page-34">34</a>
<a href="#section-6">6</a>. Message Encapsulation ..........................................<a href="#page-35">35</a>
<a href="#section-6.1">6.1</a>. Common Header .............................................<a href="#page-35">35</a>
<a href="#section-6.2">6.2</a>. Type Length Value (TLV) Structuring .......................<a href="#page-40">40</a>
<a href="#section-6.2.1">6.2.1</a>. Nested TLVs ........................................<a href="#page-41">41</a>
<a href="#section-6.2.2">6.2.2</a>. Scope of the T in TLV ..............................<a href="#page-41">41</a>
<a href="#section-6.3">6.3</a>. ILV .......................................................<a href="#page-41">41</a>
<a href="#section-6.4">6.4</a>. Important Protocol Encapsulations .........................<a href="#page-42">42</a>
<a href="#section-6.4.1">6.4.1</a>. Paths ..............................................<a href="#page-42">42</a>
<a href="#section-6.4.2">6.4.2</a>. Keys ...............................................<a href="#page-42">42</a>
<a href="#section-6.4.3">6.4.3</a>. DATA TLVs ..........................................<a href="#page-43">43</a>
<a href="#section-6.4.4">6.4.4</a>. Addressing LFB Entities ............................<a href="#page-43">43</a>
<a href="#section-7">7</a>. Protocol Construction ..........................................<a href="#page-44">44</a>
<a href="#section-7.1">7.1</a>. Discussion on Encoding ....................................<a href="#page-48">48</a>
<a href="#section-7.1.1">7.1.1</a>. Data Packing Rules .................................<a href="#page-48">48</a>
<a href="#section-7.1.2">7.1.2</a>. Path Flags .........................................<a href="#page-49">49</a>
7.1.3. Relation of Operational Flags with Global
Message Flags ......................................<a href="#page-49">49</a>
<a href="#section-7.1.4">7.1.4</a>. Content Path Selection .............................<a href="#page-49">49</a>
<a href="#section-7.1.5">7.1.5</a>. LFBselect-TLV ......................................<a href="#page-49">49</a>
<a href="#section-7.1.6">7.1.6</a>. OPER-TLV ...........................................<a href="#page-50">50</a>
<a href="#section-7.1.7">7.1.7</a>. RESULT TLV .........................................<a href="#page-52">52</a>
<a href="#section-7.1.8">7.1.8</a>. DATA TLV ...........................................<a href="#page-55">55</a>
<span class="grey">Doria, et al. Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<a href="#section-7.1.9">7.1.9</a>. SET and GET Relationship ...........................<a href="#page-56">56</a>
<a href="#section-7.2">7.2</a>. Protocol Encoding Visualization ...........................<a href="#page-56">56</a>
<a href="#section-7.3">7.3</a>. Core ForCES LFBs ..........................................<a href="#page-59">59</a>
<a href="#section-7.3.1">7.3.1</a>. FE Protocol LFB ....................................<a href="#page-60">60</a>
<a href="#section-7.3.2">7.3.2</a>. FE Object LFB ......................................<a href="#page-63">63</a>
<a href="#section-7.4">7.4</a>. Semantics of Message Direction ............................<a href="#page-63">63</a>
<a href="#section-7.5">7.5</a>. Association Messages ......................................<a href="#page-64">64</a>
<a href="#section-7.5.1">7.5.1</a>. Association Setup Message ..........................<a href="#page-64">64</a>
<a href="#section-7.5.2">7.5.2</a>. Association Setup Response Message .................<a href="#page-66">66</a>
<a href="#section-7.5.3">7.5.3</a>. Association Teardown Message .......................<a href="#page-68">68</a>
<a href="#section-7.6">7.6</a>. Configuration Messages ....................................<a href="#page-69">69</a>
<a href="#section-7.6.1">7.6.1</a>. Config Message .....................................<a href="#page-69">69</a>
<a href="#section-7.6.2">7.6.2</a>. Config Response Message ............................<a href="#page-71">71</a>
<a href="#section-7.7">7.7</a>. Query Messages ............................................<a href="#page-73">73</a>
<a href="#section-7.7.1">7.7.1</a>. Query Message ......................................<a href="#page-73">73</a>
<a href="#section-7.7.2">7.7.2</a>. Query Response Message .............................<a href="#page-75">75</a>
<a href="#section-7.8">7.8</a>. Event Notification Message ................................<a href="#page-77">77</a>
<a href="#section-7.9">7.9</a>. Packet Redirect Message ...................................<a href="#page-79">79</a>
<a href="#section-7.10">7.10</a>. Heartbeat Message ........................................<a href="#page-82">82</a>
<a href="#section-8">8</a>. High Availability Support ......................................<a href="#page-83">83</a>
<a href="#section-8.1">8.1</a>. Relation with the FE Protocol .............................<a href="#page-83">83</a>
<a href="#section-8.2">8.2</a>. Responsibilities for HA ...................................<a href="#page-86">86</a>
<a href="#section-9">9</a>. Security Considerations ........................................<a href="#page-87">87</a>
<a href="#section-9.1">9.1</a>. No Security ...............................................<a href="#page-87">87</a>
<a href="#section-9.1.1">9.1.1</a>. Endpoint Authentication ............................<a href="#page-88">88</a>
<a href="#section-9.1.2">9.1.2</a>. Message Authentication .............................<a href="#page-88">88</a>
<a href="#section-9.2">9.2</a>. ForCES PL and TML Security Service ........................<a href="#page-88">88</a>
<a href="#section-9.2.1">9.2.1</a>. Endpoint Authentication Service ....................<a href="#page-88">88</a>
<a href="#section-9.2.2">9.2.2</a>. Message Authentication Service .....................<a href="#page-89">89</a>
<a href="#section-9.2.3">9.2.3</a>. Confidentiality Service ............................<a href="#page-89">89</a>
<a href="#section-10">10</a>. Acknowledgments ...............................................<a href="#page-89">89</a>
<a href="#section-11">11</a>. References ....................................................<a href="#page-89">89</a>
<a href="#section-11.1">11.1</a>. Normative References .....................................<a href="#page-89">89</a>
<a href="#section-11.2">11.2</a>. Informative References ...................................<a href="#page-90">90</a>
<a href="#appendix-A">Appendix A</a>. IANA Considerations ..................................<a href="#page-91">91</a>
<a href="#appendix-A.1">A.1</a>. Message Type Namespace ....................................<a href="#page-91">91</a>
<a href="#appendix-A.2">A.2</a>. Operation Selection .......................................<a href="#page-92">92</a>
<a href="#appendix-A.3">A.3</a>. Header Flags ..............................................<a href="#page-93">93</a>
<a href="#appendix-A.4">A.4</a>. TLV Type Namespace ........................................<a href="#page-93">93</a>
<a href="#appendix-A.5">A.5</a>. RESULT-TLV Result Values ..................................<a href="#page-94">94</a>
<a href="#appendix-A.6">A.6</a>. Association Setup Response ................................<a href="#page-94">94</a>
<a href="#appendix-A.7">A.7</a>. Association Teardown Message ..............................<a href="#page-95">95</a>
<a href="#appendix-B">Appendix B</a>. ForCES Protocol LFB Schema ...........................<a href="#page-96">96</a>
<a href="#appendix-B.1">B.1</a>. Capabilities .............................................<a href="#page-102">102</a>
<a href="#appendix-B.2">B.2</a>. Components ...............................................<a href="#page-102">102</a>
<a href="#appendix-C">Appendix C</a>. Data Encoding Examples ..............................<a href="#page-103">103</a>
<a href="#appendix-D">Appendix D</a>. Use Cases ...........................................<a href="#page-107">107</a>
<span class="grey">Doria, et al. Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
Forwarding and Control Element Separation (ForCES) defines an
architectural framework and associated protocols to standardize
information exchange between the control plane and the forwarding
plane in a ForCES Network Element (ForCES NE). <a href="./rfc3654">RFC 3654</a> has defined
the ForCES requirements, and <a href="./rfc3746">RFC 3746</a> has defined the ForCES
framework. While there may be multiple protocols used within the
overall ForCES architecture, the terms "ForCES protocol" and
"protocol" as used in this document refer to the protocol used to
standardize the information exchange between Control Elements (CEs)
and Forwarding Elements (FEs) only.
The ForCES FE model [<a href="./rfc5812" title=""Forwarding and Control Element Separation (ForCES) Forwarding Element Model"">RFC5812</a>] presents a formal way to define FE
Logical Function Blocks (LFBs) using XML. LFB configuration
components, capabilities, and associated events are defined when the
LFB is formally created. The LFBs within the FE are accordingly
controlled in a standardized way by the ForCES protocol.
This document defines the ForCES protocol specifications. The ForCES
protocol works in a master-slave mode in which FEs are slaves and CEs
are masters. The protocol includes commands for transport of LFB
configuration information, association setup, status, event
notifications, etc.
<a href="#section-3">Section 3</a> provides a glossary of terminology used in the
specification.
<a href="#section-4">Section 4</a> provides an overview of the protocol, including a
discussion on the protocol framework and descriptions of the Protocol
Layer (PL), a Transport Mapping Layer (TML), and the ForCES protocol
mechanisms. <a href="#section-4.4">Section 4.4</a> describes several protocol scenarios and
includes message exchange descriptions.
While this document does not define the TML, <a href="#section-5">Section 5</a> details the
services that a TML MUST provide (TML requirements).
The ForCES protocol defines a common header for all protocol
messages. The header is defined in <a href="#section-6.1">Section 6.1</a>, while the protocol
messages are defined in <a href="#section-7">Section 7</a>.
<a href="#section-8">Section 8</a> describes the protocol support for high-availability
mechanisms including redundancy and fail over.
<a href="#section-9">Section 9</a> defines the security mechanisms provided by the PL and TML.
<span class="grey">Doria, et al. Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Terminology and Conventions</span>
<span class="h3"><a class="selflink" id="section-2.1" href="#section-2.1">2.1</a>. Requirements Language</span>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in <a href="./rfc2119">RFC 2119</a> [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
<span class="h3"><a class="selflink" id="section-2.2" href="#section-2.2">2.2</a>. Other Notation</span>
In Table 1 and Table 2, the following notation is used to indicate
multiplicity:
(value)+ .... means "1 or more instances of value"
(value)* .... means "0 or more instances of value"
<span class="h3"><a class="selflink" id="section-2.3" href="#section-2.3">2.3</a>. Integers</span>
All integers are to be coded as unsigned binary integers of
appropriate length.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Definitions</span>
This document follows the terminology defined by the ForCES
requirements in [<a href="./rfc3654" title=""Requirements for Separation of IP Control and Forwarding"">RFC3654</a>] and by the ForCES framework in [<a href="./rfc3746" title=""Forwarding and Control Element Separation (ForCES) Framework"">RFC3746</a>].
The definitions be are repeated below for clarity.
Addressable Entity (AE):
A physical device that is directly addressable given some
interconnect technology. For example, on IP networks, it is a device
that can be reached using an IP address; and on a switch fabric, it
is a device that can be reached using a switch fabric port number.
Control Element (CE):
A logical entity that implements the ForCES protocol and uses it to
instruct one or more FEs on how to process packets. CEs handle
functionality such as the execution of control and signaling
protocols.
<span class="grey">Doria, et al. Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
CE Manager (CEM):
A logical entity responsible for generic CE management tasks. It is
particularly used during the pre-association phase to determine with
which FE(s) a CE should communicate. This process is called FE
discovery and may involve the CE manager learning the capabilities of
available FEs.
Data Path:
A conceptual path taken by packets within the forwarding plane inside
an FE.
Forwarding Element (FE):
A logical entity that implements the ForCES protocol. FEs use the
underlying hardware to provide per-packet processing and handling as
directed/controlled by one or more CEs via the ForCES protocol.
FE Model:
A model that describes the logical processing functions of an FE.
The FE model is defined using Logical Function Blocks (LFBs).
FE Manager (FEM):
A logical entity responsible for generic FE management tasks. It is
used during the pre-association phase to determine with which CE(s)
an FE should communicate. This process is called CE discovery and
may involve the FE manager learning the capabilities of available
CEs. An FE manager may use anything from a static configuration to a
pre-association phase protocol (see below) to determine which CE(s)
to use. Being a logical entity, an FE manager might be physically
combined with any of the other logical entities such as FEs.
ForCES Network Element (NE):
An entity composed of one or more CEs and one or more FEs. To
entities outside an NE, the NE represents a single point of
management. Similarly, an NE usually hides its internal organization
from external entities.
<span class="grey">Doria, et al. Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
High Touch Capability:
This term will be used to apply to the capabilities found in some
forwarders to take action on the contents or headers of a packet
based on content other than what is found in the IP header. Examples
of these capabilities include quality of service (QoS) policies,
virtual private networks, firewall, and L7 content recognition.
Inter-FE Topology:
See FE Topology.
Intra-FE Topology:
See LFB Topology.
LFB (Logical Function Block):
The basic building block that is operated on by the ForCES protocol.
The LFB is a well-defined, logically separable functional block that
resides in an FE and is controlled by the CE via the ForCES protocol.
The LFB may reside at the FE's data path and process packets or may
be purely an FE control or configuration entity that is operated on
by the CE. Note that the LFB is a functionally accurate abstraction
of the FE's processing capabilities, but not a hardware-accurate
representation of the FE implementation.
FE Topology:
A representation of how the multiple FEs within a single NE are
interconnected. Sometimes this is called inter-FE topology, to be
distinguished from intra-FE topology (i.e., LFB topology).
LFB Class and LFB Instance:
LFBs are categorized by LFB classes. An LFB instance represents an
LFB class (or type) existence. There may be multiple instances of
the same LFB class (or type) in an FE. An LFB class is represented
by an LFB class ID, and an LFB instance is represented by an LFB
instance ID. As a result, an LFB class ID associated with an LFB
instance ID uniquely specifies an LFB existence.
<span class="grey">Doria, et al. Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
LFB Meta Data:
Meta data is used to communicate per-packet state from one LFB to
another, but is not sent across the network. The FE model defines
how such meta data is identified, produced, and consumed by the LFBs.
It defines the functionality but not how meta data is encoded within
an implementation.
LFB Component:
Operational parameters of the LFBs that must be visible to the CEs
are conceptualized in the FE model as the LFB components. The LFB
components include, for example, flags, single parameter arguments,
complex arguments, and tables that the CE can read and/or write via
the ForCES protocol (see below).
LFB Topology:
Representation of how the LFB instances are logically interconnected
and placed along the data path within one FE. Sometimes it is also
called intra-FE topology, to be distinguished from inter-FE topology.
Pre-association Phase:
The period of time during which an FE manager and a CE manager are
determining which FE(s) and CE(s) should be part of the same network
element.
Post-association Phase:
The period of time during which an FE knows which CE is to control it
and vice versa. This includes the time during which the CE and FE
are establishing communication with one another.
ForCES Protocol:
While there may be multiple protocols used within the overall ForCES
architecture, the terms "ForCES protocol" and "protocol" refer to the
Fp reference points in the ForCES framework in [<a href="./rfc3746" title=""Forwarding and Control Element Separation (ForCES) Framework"">RFC3746</a>]. This
protocol does not apply to CE-to-CE communication, FE-to-FE
communication, or communication between FE and CE managers.
Basically, the ForCES protocol works in a master-slave mode in which
FEs are slaves and CEs are masters. This document defines the
specifications for this ForCES protocol.
<span class="grey">Doria, et al. Standards Track [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
ForCES Protocol Layer (ForCES PL):
A layer in the ForCES protocol architecture that defines the ForCES
protocol messages, the protocol state transfer scheme, and the ForCES
protocol architecture itself (including requirements of ForCES TML as
shown below). Specifications of ForCES PL are defined by this
document.
ForCES Protocol Transport Mapping Layer (ForCES TML):
A layer in ForCES protocol architecture that uses the capabilities of
existing transport protocols to specifically address protocol message
transportation issues, such as how the protocol messages are mapped
to different transport media (like TCP, IP, ATM, Ethernet, etc.), and
how to achieve and implement reliability, multicast, ordering, etc.
The ForCES TML specifications are detailed in separate ForCES
documents, one for each TML.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Overview</span>
The reader is referred to the framework document [<a href="./rfc3746" title=""Forwarding and Control Element Separation (ForCES) Framework"">RFC3746</a>], and in
particular, Sections <a href="#section-3">3</a> and <a href="#section-4">4</a>, for an architectural overview and an
explanation of how the ForCES protocol fits in. There may be some
content overlap between the framework document and this section in
order to provide clarity. This document is authoritative on the
protocol, whereas [<a href="./rfc3746" title=""Forwarding and Control Element Separation (ForCES) Framework"">RFC3746</a>] is authoritative on the architecture.
<span class="grey">Doria, et al. Standards Track [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. Protocol Framework</span>
Figure 1 below is reproduced from the framework document for clarity.
It shows an NE with two CEs and two FEs.
---------------------------------------
| ForCES Network Element |
-------------- Fc | -------------- -------------- |
| CE Manager |---------+-| CE 1 |------| CE 2 | |
-------------- | | | Fr | | |
| | -------------- -------------- |
| Fl | | | Fp / |
| | Fp| |----------| / |
| | | |/ |
| | | | |
| | | Fp /|----| |
| | | /--------/ | |
-------------- Ff | -------------- -------------- |
| FE Manager |---------+-| FE 1 | Fi | FE 2 | |
-------------- | | |------| | |
| -------------- -------------- |
| | | | | | | | | |
----+--+--+--+----------+--+--+--+-----
| | | | | | | |
| | | | | | | |
Fi/f Fi/f
Fp: CE-FE interface
Fi: FE-FE interface
Fr: CE-CE interface
Fc: Interface between the CE manager and a CE
Ff: Interface between the FE manager and an FE
Fl: Interface between the CE manager and the FE manager
Fi/f: FE external interface
Figure 1: ForCES Architectural Diagram
The ForCES protocol domain is found in the Fp reference points. The
Protocol Element configuration reference points, Fc and Ff, also play
a role in the booting up of the ForCES protocol. The protocol
element configuration (indicated by reference points Fc, Ff, and Fl
in [<a href="./rfc3746" title=""Forwarding and Control Element Separation (ForCES) Framework"">RFC3746</a>]) is out of scope of the ForCES protocol but is touched
on in this document in discussion of FEM and CEM since it is an
integral part of the protocol pre-association phase.
<span class="grey">Doria, et al. Standards Track [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
Figure 2 below shows further breakdown of the Fp interfaces by means
of the example of an MPLS QoS-enabled Network Element.
-------------------------------------------------
| | | | | | |
|OSPF |RIP |BGP |RSVP |LDP |. . . |
| | | | | | |
------------------------------------------------- CE
| ForCES Interface |
-------------------------------------------------
^ ^
| |
ForCES | |data
control | |packets
messages| |(e.g., routing packets)
| |
v v
-------------------------------------------------
| ForCES Interface |
------------------------------------------------- FE
| | | | | | |
|LPM Fwd|Meter |Shaper |MPLS |Classi-|. . . |
| | | | |fier | |
-------------------------------------------------
Figure 2: Examples of CE and FE Functions
The ForCES interface shown in Figure 2 constitutes two pieces: the PL
and the TML.
<span class="grey">Doria, et al. Standards Track [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
This is depicted in Figure 3 below.
+------------------------------------------------
| CE PL |
+------------------------------------------------
| CE TML |
+------------------------------------------------
^
|
ForCES | (i.e., ForCES data + control
PL | packets )
messages |
over |
specific |
TML |
encaps |
and |
transport |
|
v
+------------------------------------------------
| FE TML |
+------------------------------------------------
| FE PL |
+------------------------------------------------
Figure 3: ForCES Interface
The PL is in fact the ForCES protocol. Its semantics and message
layout are defined in this document. The TML layer is necessary to
connect two ForCES PLs as shown in Figure 3 above. The TML is out of
scope for this document but is within scope of ForCES. This document
defines requirements the PL needs the TML to meet.
Both the PL and the TML are standardized by the IETF. While only one
PL is defined, different TMLs are expected to be standardized. To
interoperate, the TML at the CE and FE are expected to conform to the
same definition.
On transmit, the PL delivers its messages to the TML. The local TML
delivers the message to the destination TML. On receive, the TML
delivers the message to its destination PL.
<span class="h4"><a class="selflink" id="section-4.1.1" href="#section-4.1.1">4.1.1</a>. The PL</span>
The PL is common to all implementations of ForCES and is standardized
by the IETF as defined in this document. The PL is responsible for
associating an FE or CE to an NE. It is also responsible for tearing
<span class="grey">Doria, et al. Standards Track [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
down such associations. An FE uses the PL to transmit various
subscribed-to events to the CE PL as well as to respond to various
status requests issued from the CE PL. The CE configures both the FE
and associated LFBs' operational parameters using the PL. In
addition, the CE may send various requests to the FE to activate or
deactivate it, reconfigure its HA parameterization, subscribe to
specific events, etc. More details can be found in <a href="#section-7">Section 7</a>.
<span class="h4"><a class="selflink" id="section-4.1.2" href="#section-4.1.2">4.1.2</a>. The TML</span>
The TML transports the PL messages. The TML is where the issues of
how to achieve transport-level reliability, congestion control,
multicast, ordering, etc. are handled. It is expected that more than
one TML will be standardized. The various possible TMLs could vary
their implementations based on the capabilities of underlying media
and transport. However, since each TML is standardized,
interoperability is guaranteed as long as both endpoints support the
same TML. All ForCES protocol layer implementations MUST be portable
across all TMLs, because all TMLs MUST have the top-edge semantics
defined in this document.
<span class="h4"><a class="selflink" id="section-4.1.3" href="#section-4.1.3">4.1.3</a>. The FEM/CEM Interface</span>
The FEM and CEM components, although valuable in the setup and
configurations of both the PL and TML, are out of scope of the ForCES
protocol. The best way to think of them is as configurations/
parameterizations for the PL and TML before they become active (or
even at runtime based on implementation). In the simplest case, the
FE or CE reads a static configuration file. <a href="./rfc3746">RFC 3746</a> has a more
detailed description on how the FEM and CEM could be used. The pre-
association phase, where the CEM and FEM can be used, are described
briefly in <a href="#section-4.2.1">Section 4.2.1</a>.
An example of typical things the FEM/CEM could configure would be
TML-specific parameterizations such as:
a. How the TML connection should happen (for example, what IP
addresses to use, transport modes, etc.)
b. The ID for the FE (FEID) or CE (CEID) (which would also be issued
during the pre-association phase)
c. Security parameterization such as keys, etc.
d. Connection association parameters
<span class="grey">Doria, et al. Standards Track [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
An example of connection association parameters might be:
o simple parameters: send up to 3 association messages every 1
second
o complex parameters: send up to 4 association messages with
increasing exponential timeout
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. ForCES Protocol Phases</span>
ForCES, in relation to NEs, involves two phases: the pre-association
phase where configuration/initialization/bootup of the TML and PL
layer happens, and the post-association phase where the ForCES
protocol operates to manipulate the parameters of the FEs.
CE sends Association Setup
+---->--->------------>---->---->---->------->----+
| Y
^ |
| Y
+---+-------+ +-------------+
|FE pre- | | FE post- |
|association| CE sends Association Teardown | association |
|phase |<------- <------<-----<------<-------+ phase |
| | | |
+-----------+ +-------------+
^ Y
| |
+-<---<------<-----<------<----<---------<------+
FE loses association
Figure 4: The FE Protocol Phases
In the mandated case, once associated, the FE may forward packets
depending on the configuration of its specific LFBs. An FE that is
associated to a CE will continue sending packets until it receives an
Association Teardown Message or until it loses association. An
unassociated FE MAY continue sending packets when it has a high
availability capability. The extra details are explained in
<a href="#section-8">Section 8</a> and not discussed here to allow for a clear explanation of
the basics.
The FE state transitions are controlled by means of the FE Object LFB
FEState component, which is defined in <a href="./rfc5812#section-5.1">[RFC5812], Section 5.1</a>, and
also explained in <a href="#section-7.3.2">Section 7.3.2</a>.
<span class="grey">Doria, et al. Standards Track [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
The FE initializes in the FEState OperDisable. When the FE is ready
to process packets in the data path, it transitions itself to the
OperEnable state.
The CE may decide to pause the FE after it already came up as
OperEnable. It does this by setting the FEState to AdminDisable.
The FE stays in the AdminDisable state until it is explicitly
configured by the CE to transition to the OperEnable state.
When the FE loses its association with the CE, it may go into the
pre-association phase depending on the programmed policy. For the FE
to properly complete the transition to the AdminDisable state, it
MUST stop packet forwarding and this may impact multiple LFBS. How
this is achieved is outside the scope of this specification.
<span class="h4"><a class="selflink" id="section-4.2.1" href="#section-4.2.1">4.2.1</a>. Pre-association</span>
The ForCES interface is configured during the pre-association phase.
In a simple setup, the configuration is static and is typically read
from a saved configuration file. All the parameters for the
association phase are well known after the pre-association phase is
complete. A protocol such as DHCP may be used to retrieve the
configuration parameters instead of reading them from a static
configuration file. Note, this will still be considered static pre-
association. Dynamic configuration may also happen using the Fc, Ff,
and Fl reference points (refer to [<a href="./rfc3746" title=""Forwarding and Control Element Separation (ForCES) Framework"">RFC3746</a>]). Vendors may use their
own proprietary service discovery protocol to pass the parameters.
Essentially, only guidelines are provided here and the details are
left to the implementation.
The following are scenarios reproduced from the framework document to
show a pre-association example.
<span class="grey">Doria, et al. Standards Track [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<----Ff ref pt---> <--Fc ref pt------->
FE Manager FE CE Manager CE
| | | |
| | | |
(security exchange) (security exchange)
1|<------------>| authentication 1|<----------->|authentication
| | | |
(FE ID, components) (CE ID, components)
2|<-------------| request 2|<------------|request
| | | |
3|------------->| response 3|------------>|response
(corresponding CE ID) (corresponding FE ID)
| | | |
| | | |
Figure 5: Examples of a Message Exchange over the Ff and Fc
Reference Points
<-----------Fl ref pt--------------> |
FE Manager FE CE Manager CE
| | | |
| | | |
(security exchange) | |
1|<------------------------------>| |
| | | |
(a list of CEs and their components) |
2|<-------------------------------| |
| | | |
(a list of FEs and their components) |
3|------------------------------->| |
| | | |
| | | |
Figure 6: Example of a Message Exchange over the Fl Reference Point
Before the transition to the association phase, the FEM will have
established contact with a CEM component. Initialization of the
ForCES interface will have completed, and authentication as well as
capability discovery may be complete. Both the FE and CE would have
the necessary information for connecting to each other for
configuration, accounting, identification, and authentication
purposes. To summarize, at the completion of this stage both sides
have all the necessary protocol parameters such as timers, etc. The
Fl reference point may continue to operate during the association
phase and may be used to force a disassociation of an FE or CE. The
specific interactions of the CEM and the FEM that are part of the
<span class="grey">Doria, et al. Standards Track [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
pre-association phase are out of scope; for this reason, these
details are not discussed any further in this specification. The
reader is referred to the framework document [<a href="./rfc3746" title=""Forwarding and Control Element Separation (ForCES) Framework"">RFC3746</a>] for a slightly
more detailed discussion.
<span class="h4"><a class="selflink" id="section-4.2.2" href="#section-4.2.2">4.2.2</a>. Post-association</span>
In this phase, the FE and CE components communicate with each other
using the ForCES protocol (PL over TML) as defined in this document.
There are three sub-phases:
o Association Setup Stage
o Established Stage
o Association Lost Stage
<span class="h5"><a class="selflink" id="section-4.2.2.1" href="#section-4.2.2.1">4.2.2.1</a>. Association Setup Stage</span>
The FE attempts to join the NE. The FE may be rejected or accepted.
Once granted access into the NE, capabilities exchange happens with
the CE querying the FE. Once the CE has the FE capability
information, the CE can offer an initial configuration (possibly to
restore state) and can query certain components within either an LFB
or the FE itself.
More details are provided in <a href="#section-4.4">Section 4.4</a>.
On successful completion of this stage, the FE joins the NE and is
moved to the Established Stage.
<span class="h5"><a class="selflink" id="section-4.2.2.2" href="#section-4.2.2.2">4.2.2.2</a>. Established Stage</span>
In this stage, the FE is continuously updated or queried. The FE may
also send asynchronous event notifications to the CE or synchronous
heartbeat notifications if programmed to do so. This stage continues
until a termination occurs, either due to loss of connectivity or due
to a termination initiated by either the CE or the FE.
Refer to the section on protocol scenarios, <a href="#section-4.4">Section 4.4</a>, for more
details.
<span class="h5"><a class="selflink" id="section-4.2.2.3" href="#section-4.2.2.3">4.2.2.3</a>. Association Lost Stage</span>
In this stage, both or either the CE or FE declare the other side is
no longer associated. The disconnection could be initiated by either
party for administrative purposes but may also be driven by
operational reasons such as loss of connectivity.
<span class="grey">Doria, et al. Standards Track [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
A core LFB known as the FE Protocol Object (FEPO) is defined (refer
to <a href="#appendix-B">Appendix B</a> and <a href="#section-7.3.1">Section 7.3.1</a>). FEPO defines various timers that
can be used in conjunction with a traffic-sensitive heartbeat
mechanism (<a href="#section-4.3.3">Section 4.3.3</a>) to detect loss of connectivity.
The loss of connectivity between TMLs does not indicate a loss of
association between respective PL layers. If the TML cannot repair
the transport loss before the programmed FEPO timer thresholds
associated with the FE is exceeded, then the association between the
respective PL layers will be lost.
FEPO defines several policies that can be programmed to define
behavior upon a detected loss of association. The FEPO's programmed
CE failover policy (refer to Sections <a href="#section-8">8</a>, <a href="#section-7.3.1">7.3.1</a>, <a href="#section-4.3.3">4.3.3</a>, and B) defines
what takes place upon loss of association.
For this version of the protocol (as defined in this document), the
FE, upon re-association, MUST discard any state it has as invalid and
retrieve new state. This approach is motivated by a desire for
simplicity (as opposed to efficiency).
<span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a>. Protocol Mechanisms</span>
Various semantics are exposed to the protocol users via the PL header
including transaction capabilities, atomicity of transactions, two-
phase commits, batching/parallelization, high availability, and
failover as well as command pipelines.
The EM (Execution Mode) flag, AT (Atomic Transaction) flag, and TP
(Transaction Phase) flag as defined in the common header
(<a href="#section-6.1">Section 6.1</a>) are relevant to these mechanisms.
<span class="h4"><a class="selflink" id="section-4.3.1" href="#section-4.3.1">4.3.1</a>. Transactions, Atomicity, Execution, and Responses</span>
In the master-slave relationship, the CE instructs one or more FEs on
how to execute operations and how to report the results.
This section details the different modes of execution that a CE can
order the FE(s) to perform, as defined in <a href="#section-4.3.1.1">Section 4.3.1.1</a>. It also
describes the different modes a CE can ask the FE(s) to use for
formatting the responses after processing the operations as
requested. These modes relate to the transactional two-phase commit
operations.
<span class="grey">Doria, et al. Standards Track [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h5"><a class="selflink" id="section-4.3.1.1" href="#section-4.3.1.1">4.3.1.1</a>. Execution</span>
There are 3 execution modes that can be requested for a batch of
operations spanning one or more LFB selectors (refer to
<a href="#section-7.1.5">Section 7.1.5</a>) in one protocol message. The EM flag defined in the
common header (<a href="#section-6.1">Section 6.1</a>) selects the execution mode for a protocol
message, as below:
a. execute-all-or-none
b. continue-execute-on-failure
c. execute-until-failure
<span class="h6"><a class="selflink" id="section-4.3.1.1.1" href="#section-4.3.1.1.1">4.3.1.1.1</a>. execute-all-or-none</span>
When set to this mode of execution, independent operations in a
message MAY be targeted at one or more LFB selectors within an FE.
All these operations are executed serially, and the FE MUST have no
execution failure for any of the operations. If any operation fails
to execute, then all the previous ones that have been executed prior
to the failure will need to be undone. That is, there is rollback
for this mode of operation.
Refer to <a href="#section-4.3.1.2.2">Section 4.3.1.2.2</a> for how this mode is used in cases of
transactions. In such a case, no operation is executed unless a
commit is issued by the CE.
Care should be taken on how this mode is used because a mis-
configuration could result in traffic losses. To add certainty to
the success of an operation, one should use this mode in a
transactional operation as described in <a href="#section-4.3.1.2.2">Section 4.3.1.2.2</a>
<span class="h6"><a class="selflink" id="section-4.3.1.1.2" href="#section-4.3.1.1.2">4.3.1.1.2</a>. continue-execute-on-failure</span>
If several independent operations are targeted at one or more LFB
selectors, execution continues for all operations at the FE even if
one or more operations fail.
<span class="h6"><a class="selflink" id="section-4.3.1.1.3" href="#section-4.3.1.1.3">4.3.1.1.3</a>. execute-until-failure</span>
In this mode, all operations are executed on the FE sequentially
until the first failure. The rest of the operations are not executed
but operations already completed are not undone. That is, there is
no rollback in this mode of operation.
<span class="grey">Doria, et al. Standards Track [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h5"><a class="selflink" id="section-4.3.1.2" href="#section-4.3.1.2">4.3.1.2</a>. Transaction and Atomicity</span>
<span class="h6"><a class="selflink" id="section-4.3.1.2.1" href="#section-4.3.1.2.1">4.3.1.2.1</a>. Transaction Definition</span>
A transaction is defined as a collection of one or more ForCES
operations within one or more PL messages that MUST meet the ACIDity
properties [<a href="#ref-ACID" title=""Principles of Transaction- Orientated Database Recovery"">ACID</a>], defined as:
Atomicity: In a transaction involving two or more discrete pieces
of information, either all of the pieces are committed
or none are.
Consistency: A transaction either creates a new and valid state of
data or, if any failure occurs, returns all data to the
state it was in before the transaction was started.
Isolation: A transaction in process and not yet committed MUST
remain isolated from any other transaction.
Durability: Committed data is saved by the system such that, even in
the event of a failure and a system restart, the data is
available in its correct state.
There are cases where the CE knows exact memory and implementation
details of the FE such as in the case of an FE-CE pair from the same
vendor where the FE-CE pair is tightly coupled. In such a case, the
transactional operations may be simplified further by extra
computation at the CE. This view is not discussed further other than
to mention that it is not disallowed.
As defined above, a transaction is always atomic and MAY be
a. Within an FE alone
Example: updating multiple tables that are dependent on each
other. If updating one fails, then any that were already updated
MUST be undone.
b. Distributed across the NE
Example: updating table(s) that are inter-dependent across
several FEs (such as L3 forwarding-related tables).
<span class="h6"><a class="selflink" id="section-4.3.1.2.2" href="#section-4.3.1.2.2">4.3.1.2.2</a>. Transaction Protocol</span>
By use of the execution mode, as defined in <a href="#section-4.3.1.1">Section 4.3.1.1</a>, the
protocol has provided a mechanism for transactional operations within
one stand-alone message. The 'execute-all-or-none' mode can meet the
ACID requirements.
<span class="grey">Doria, et al. Standards Track [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
For transactional operations of multiple messages within one FE or
across FEs, a classical transactional protocol known as two-phase
commit (2PC) [<a href="#ref-2PCREF" title=""Notes on database operating systems"">2PCREF</a>] is supported by the protocol to achieve the
transactional operations utilizing Config messages (<a href="#section-7.6.1">Section 7.6.1</a>).
The COMMIT and TRCOMP operations in conjunction with the AT and the
TP flags in the common header (<a href="#section-6.1">Section 6.1</a>) are provided for 2PC-
based transactional operations spanning multiple messages.
The AT flag, when set, indicates that this message belongs to an
Atomic Transaction. All messages for a transaction operation MUST
have the AT flag set. If not set, it means that the message is a
stand-alone message and does not participate in any transaction
operation that spans multiple messages.
The TP flag indicates the Transaction Phase to which this message
belongs. There are 4 possible phases for a transactional operation
known as:
SOT (Start of Transaction)
MOT (Middle of Transaction)
EOT (End of Transaction)
ABT (Abort)
The COMMIT operation is used by the CE to signal to the FE(s) to
commit a transaction. When used with an ABT TP flag, the COMMIT
operation signals the FE(s) to roll back (i.e., un-COMMIT) a
previously committed transaction.
The TRCOMP operation is a small addition to the classical 2PC
approach. TRCOMP is sent by the CE to signal to the FE(s) that the
transaction they have COMMITed is now over. This allows the FE(s) an
opportunity to clear state they may have kept around to perform a
roll back (if it became necessary).
A transaction operation is started with a message in which the TP
flag is set to Start of Transaction (SOT). Multi-part messages,
after the first one, are indicated by the Middle of Transaction (MOT)
flag. All messages from the CE MUST set the AlwaysACK flag
(<a href="#section-6">Section 6</a>) to solicit responses from the FE(s).
Before the CE issues a commit (described further below), the FE MUST
only validate that the operation can be executed but not execute it.
<span class="grey">Doria, et al. Standards Track [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
Any failure notified by an FE causes the CE to abort the
transaction on all FEs involved in the transaction. This is
achieved by sending a Config message with an ABT flag and a COMMIT
operation.
If there are no failures by any participating FE, the transaction
commitment phase is signaled from the CE to the FE by an End of
Transaction (EOT) configuration message with a COMMIT operation.
The FE MUST respond to the CE's EOT message. There are two possible
failure scenarios in which the CE MUST abort the transaction (as
described above):
a. If any participating FE responds with a failure message in
relation to the transaction.
b. If no response is received from a participating FE within a
specified timeout.
If all participating FEs respond with a success indicator within the
expected time, then the CE MUST issue a TRCOMP operation to all
participating FEs. An FE MUST NOT respond to a TRCOMP.
Note that a transactional operation is generically atomic; therefore,
it requires that the execution modes of all messages in a transaction
operation should always be kept the same and be set to 'execute-all-
or-none'. If the EM flag is set to other execution modes, it will
result in a transaction failure.
As noted above, a transaction may span multiple messages. It is up
to the CE to keep track of the different outstanding messages making
up a transaction. As an example, the correlator field could be used
to mark transactions and a sequence field to label the different
messages within the same atomic transaction, but this is out of scope
and up to implementations.
<span class="h6"><a class="selflink" id="section-4.3.1.2.3" href="#section-4.3.1.2.3">4.3.1.2.3</a>. Recovery</span>
Any of the participating FEs or the CE or the associations between
them may fail after the EOT Response message has been sent by the FE
but before the CE has received all the responses, e.g., if the EOT
response never reaches the CE.
In this protocol revision, as indicated in <a href="#section-4.2.2.3">Section 4.2.2.3</a>, an FE
losing an association would be required to get entirely new state
from the newly associated CE upon a re-association. Although this
approach is simplistic and provides likeliness of losing data path
<span class="grey">Doria, et al. Standards Track [Page 23]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-24" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
traffic, it is a design choice to avoid the additional complexity of
managing graceful restarts. The HA mechanisms (<a href="#section-8">Section 8</a>) are
provided to allow for a continuous operation in case of FE failures.
Flexibility is provided on how to react when an FE loses association.
This is dictated by the CE failover policy (refer to <a href="#section-8">Section 8</a> and
<a href="#section-7.3">Section 7.3</a>).
<span class="h6"><a class="selflink" id="section-4.3.1.2.4" href="#section-4.3.1.2.4">4.3.1.2.4</a>. Transaction Messaging Example</span>
This section illustrates an example of how a successful two-phase
commit between a CE and an FE would look in the simple case.
FE PL CE PL
| |
| (1) Config, SOT,AT, EM=All-or-None, OP= SET/DEL,etc |
|<-----------------------------------------------------|
| |
| (2) ACKnowledge |
|----------------------------------------------------->|
| |
| (3) Config, MOT,AT, EM=All-or-None, OP= SET/DEL,etc |
|<-----------------------------------------------------|
| |
| (4) ACKnowledge |
|----------------------------------------------------->|
| |
| (5) Config, MOT,AT, EM=All-or-None, OP= SET/DEL,etc |
|<-----------------------------------------------------|
| |
| (6) ACKnowledge |
|----------------------------------------------------->|
. .
. .
. .
. .
| |
| (N) Config, EOT,AT, EM=All-or-None, OP= COMMIT |
|<-----------------------------------------------------|
| |
| (N+1)Config-response, ACKnowledge, OP=COMMIT-RESPONSE|
|----------------------------------------------------->|
| |
| (N+2) Config, OP=TRCOMP |
|<-----------------------------------------------------|
Figure 7: Example of a Two-Phase Commit
<span class="grey">Doria, et al. Standards Track [Page 24]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-25" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
For the scenario illustrated above:
o In step 1, the CE issues a Config message with an operation of
choice like a DEL or SET. The transaction flags are set to
indicate a Start of Transaction (SOT), Atomic Transaction (AT),
and execute-all-or-none.
o The FE validates that it can execute the request successfully and
then issues an acknowledgment back to the CE in step 2.
o In step 3, the same sort of construct as in step 1 is repeated by
the CE with the transaction flag changed to Middle of Transaction
(MOT).
o The FE validates that it can execute the request successfully and
then issues an acknowledgment back to the CE in step 4.
o The CE-FE exchange continues in the same manner until all the
operations and their parameters are transferred to the FE. This
happens in step (N-1).
o In step N, the CE issues a commit. A commit is a Config message
with an operation of type COMMIT. The transaction flag is set to
End of Transaction (EOT). Essentially, this is an "empty" message
asking the FE to execute all the operations it has gathered since
the beginning of the transaction (message #1).
o The FE at this point executes the full transaction. It then
issues an acknowledgment back to the CE in step (N+1) that
contains a COMMIT-RESPONSE.
o The CE in this case has the simple task of issuing a TRCOMP
operation to the FE in step (N+2).
<span class="h4"><a class="selflink" id="section-4.3.2" href="#section-4.3.2">4.3.2</a>. Scalability</span>
It is desirable that the PL not become the bottleneck when larger
bandwidth pipes become available. To pick a hypothetical example in
today's terms, if a 100-Gbps pipe is available and there is
sufficient work, then the PL should be able to take advantage of this
and use all of the 100-Gbps pipe. Two mechanisms have been provided
to achieve this. The first one is batching and the second one is a
command pipeline.
<span class="grey">Doria, et al. Standards Track [Page 25]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-26" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
Batching is the ability to send multiple commands (such as Config) in
one Protocol Data Unit (PDU). The size of the batch will be affected
by, among other things, the path MTU. The commands may be part of
the same transaction or may be part of unrelated transactions that
are independent of each other.
Command pipelining allows for pipelining of independent transactions
that do not affect each other. Each independent transaction could
consist of one or more batches.
<span class="h5"><a class="selflink" id="section-4.3.2.1" href="#section-4.3.2.1">4.3.2.1</a>. Batching</span>
There are several batching levels at different protocol hierarchies.
o Multiple PL PDUs can be aggregated under one TML message.
o Multiple LFB classes and instances (as indicated in the LFB
selector) can be addressed within one PL PDU.
o Multiple operations can be addressed to a single LFB class and
instance.
<span class="h5"><a class="selflink" id="section-4.3.2.2" href="#section-4.3.2.2">4.3.2.2</a>. Command Pipelining</span>
The protocol allows any number of messages to be issued by the CE
before the corresponding acknowledgments (if requested) have been
returned by the FE. Hence, pipelining is inherently supported by the
protocol. Matching responses with requests messages can be done
using the correlator field in the message header.
<span class="h4"><a class="selflink" id="section-4.3.3" href="#section-4.3.3">4.3.3</a>. Heartbeat Mechanism</span>
Heartbeats (HBs) between FEs and CEs are traffic sensitive. An HB is
sent only if no PL traffic is sent between the CE and FE within a
configured interval. This has the effect of reducing the amount of
HB traffic in the case of busy PL periods.
An HB can be sourced by either the CE or FE. When sourced by the CE,
a response can be requested (similar to the ICMP ping protocol). The
FE can only generate HBs in the case of being configured to do so by
the CE. Refer to <a href="#section-7.3.1">Section 7.3.1</a> and <a href="#section-7.10">Section 7.10</a> for details.
<span class="grey">Doria, et al. Standards Track [Page 26]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-27" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h4"><a class="selflink" id="section-4.3.4" href="#section-4.3.4">4.3.4</a>. FE Object and FE Protocol LFBs</span>
All PL messages operate on LFB constructs, as this provides more
flexibility for future enhancements. This means that maintenance and
configurability of FEs, NE, and the ForCES protocol itself MUST be
expressed in terms of this LFB architecture. For this reason,
special LFBs are created to accommodate this need.
In addition, this shows how the ForCES protocol itself can be
controlled by the very same type of structures (LFBs) it uses to
control functions such as IP forwarding, filtering, etc.
To achieve this, the following specialized LFBs are introduced:
o FE Protocol LFB, which is used to control the ForCES protocol.
o FE Object LFB, which is used to control components relative to the
FE itself. Such components include FEState [<a href="./rfc5812" title=""Forwarding and Control Element Separation (ForCES) Forwarding Element Model"">RFC5812</a>], vendor,
etc.
These LFBs are detailed in <a href="#section-7.3">Section 7.3</a>.
<span class="h3"><a class="selflink" id="section-4.4" href="#section-4.4">4.4</a>. Protocol Scenarios</span>
This section provides a very high level description of sample message
sequences between a CE and an FE. For protocol message encoding
refer to <a href="#section-6.1">Section 6.1</a>, and for the semantics of the protocol refer to
<a href="#section-4.3">Section 4.3</a>.
<span class="h4"><a class="selflink" id="section-4.4.1" href="#section-4.4.1">4.4.1</a>. Association Setup State</span>
The associations among CEs and FEs are initiated via the Association
Setup message from the FE. If a Setup Request is granted by the CE,
a successful Setup Response message is sent to the FE. If CEs and
FEs are operating in an insecure environment, then the security
associations have to be established between them before any
association messages can be exchanged. The TML MUST take care of
establishing any security associations.
This is typically followed by capability query, topology query, etc.
When the FE is ready to start processing the data path, it sets the
FEO FEState component to OperEnable (refer to [<a href="./rfc5812" title=""Forwarding and Control Element Separation (ForCES) Forwarding Element Model"">RFC5812</a>] for details)
and reports it to the CE as such when it is first queried.
Typically, the FE is expected to be ready to process the data path
before it associates, but there may be rare cases where it needs time
do some pre-processing -- in such a case, the FE will start in the
OperDisable state and when it is ready will transition to the
OperEnable state. An example of an FE starting in OperDisable then
<span class="grey">Doria, et al. Standards Track [Page 27]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-28" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
transitioning to OperEnable is illustrated in Figure 8. The CE could
at any time also disable the FE's data path operations by setting the
FEState to AdminDisable. The FE MUST NOT process packets during this
state unless the CE sets the state back to OperEnable. These
sequences of messages are illustrated in Figure 8 below.
FE PL CE PL
| |
| Asso Setup Req |
|---------------------->|
| |
| Asso Setup Resp |
|<----------------------|
| |
| LFBx Query capability |
|<----------------------|
| |
| LFBx Query Resp |
|---------------------->|
| |
| FEO Query (Topology) |
|<----------------------|
| |
| FEO Query Resp |
|---------------------->|
| |
| FEO OperEnable Event |
|---------------------->|
| |
| Config FEO Adminup |
|<----------------------|
| |
| FEO Config-Resp |
|---------------------->|
| |
Figure 8: Message Exchange between CE and FE to Establish
an NE Association
On successful completion of this state, the FE joins the NE.
<span class="grey">Doria, et al. Standards Track [Page 28]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-29" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h4"><a class="selflink" id="section-4.4.2" href="#section-4.4.2">4.4.2</a>. Association Established State or Steady State</span>
In this state, the FE is continuously updated or queried. The FE may
also send asynchronous event notifications to the CE, synchronous
Heartbeat messages, or Packet Redirect message to the CE. This
continues until a termination (or deactivation) is initiated by
either the CE or FE. Figure 9 below, helps illustrate this state.
<span class="grey">Doria, et al. Standards Track [Page 29]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-30" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
FE PL CE PL
| |
| Heartbeat |
|<---------------------------->|
| |
| Heartbeat |
|----------------------------->|
| |
| Config-set LFBy (Event sub.) |
|<-----------------------------|
| |
| Config Resp LFBy |
|----------------------------->|
| |
| Config-set LFBx Component |
|<-----------------------------|
| |
| Config Resp LFBx |
|----------------------------->|
| |
|Config-Query LFBz (Stats) |
|<--------------------------- -|
| |
| Query Resp LFBz |
|----------------------------->|
| |
| FE Event Report |
|----------------------------->|
| |
| Config-Del LFBx Component |
|<-----------------------------|
| |
| Config Resp LFBx |
|----------------------------->|
| |
| Packet Redirect LFBx |
|----------------------------->|
| |
| Heartbeat |
|<-----------------------------|
. .
. .
| |
Figure 9: Message Exchange between CE and FE during
Steady-State Communication
<span class="grey">Doria, et al. Standards Track [Page 30]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-31" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
Note that the sequence of messages shown in the figure serve only as
examples and the message exchange sequences could be different from
what is shown in the figure. Also, note that the protocol scenarios
described in this section do not include all the different message
exchanges that would take place during failover. That is described
in the HA section (<a href="#section-8">Section 8</a>).
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. TML Requirements</span>
The requirements below are expected to be met by the TML. This text
does not define how such mechanisms are delivered. As an example,
the mechanisms to meet the requirements could be defined to be
delivered via hardware or between 2 or more TML software processes on
different CEs or FEs in protocol-level schemes.
Each TML MUST describe how it contributes to achieving the listed
ForCES requirements. If for any reason a TML does not provide a
service listed below, a justification needs to be provided.
Implementations that support the ForCES protocol specification MUST
implement [<a href="./rfc5811" title=""SCTP-Based Transport Mapping Layer (TML) for the Forwarding and Control Element Separation (ForCES) Protocol"">RFC5811</a>]. Note that additional TMLs might be specified in
the future, and if a new TML defined in the future that meets the
requirements listed here proves to be better, then the "MUST
implement TML" may be redefined.
1. Reliability
Various ForCES messages will require varying degrees of reliable
delivery via the TML. It is the TML's responsibility to provide
these shades of reliability and describe how the different ForCES
messages map to reliability.
The most common level of reliability is what we refer to as
strict or robust reliability in which we mean no losses,
corruption, or re-ordering of information being transported while
ensuring message delivery in a timely fashion.
Payloads such as configuration from a CE and its response from an
FE are mission critical and must be delivered in a robust
reliable fashion. Thus, for information of this sort, the TML
MUST either provide built-in protocol mechanisms or use a
reliable transport protocol for achieving robust/strict
reliability.
<span class="grey">Doria, et al. Standards Track [Page 31]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-32" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
Some information or payloads, such as redirected packets or
packet sampling, may not require robust reliability (can tolerate
some degree of losses). For information of this sort, the TML
could define to use a mechanism that is not strictly reliable
(while conforming to other TML requirements such as congestion
control).
Some information or payloads, such as heartbeat packets, may
prefer timeliness over reliable delivery. For information of
this sort, the TML could define to use a mechanism that is not
strictly reliable (while conforming to other TML requirements
such as congestion control).
2. Security
TML provides security services to the ForCES PL. Because a
ForCES PL is used to operate an NE, attacks designed to confuse,
disable, or take information from a ForCES-based NE may be seen
as a prime objective during a network attack.
An attacker in a position to inject false messages into a PL
stream can affect either the FE's treatment of the data path (for
example, by falsifying control data reported as coming from the
CE) or the CE itself (by modifying events or responses reported
as coming from the FE). For this reason, CE and FE node
authentication and TML message authentication are important.
The PL messages may also contain information of value to an
attacker, including information about the configuration of the
network, encryption keys, and other sensitive control data, so
care must be taken to confine their visibility to authorized
users.
* The TML MUST provide a mechanism to authenticate ForCES CEs
and FEs, in order to prevent the participation of unauthorized
CEs and unauthorized FEs in the control and data path
processing of a ForCES NE.
* The TML SHOULD provide a mechanism to ensure message
authentication of PL data transferred from the CE to FE (and
vice versa), in order to prevent the injection of incorrect
data into PL messages.
* The TML SHOULD provide a mechanism to ensure the
confidentiality of data transferred from the ForCES PL, in
order to prevent disclosure of PL-level information
transported via the TML.
<span class="grey">Doria, et al. Standards Track [Page 32]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-33" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
The TML SHOULD provide these services by employing TLS or IPsec.
3. Congestion control
The transport congestion control scheme used by the TML needs to
be defined. The congestion control mechanism defined by the TML
MUST prevent transport congestive collapse [<a href="./rfc2914" title=""Congestion Control Principles"">RFC2914</a>] on either
the FE or CE side.
4. Uni/multi/broadcast addressing/delivery, if any
If there is any mapping between PL- and TML-level uni/multi/
broadcast addressing, it needs to be defined.
5. HA decisions
It is expected that availability of transport links is the TML's
responsibility. However, based upon its configuration, the PL
may wish to participate in link failover schemes and therefore
the TML MUST support this capability.
Please refer to <a href="#section-8">Section 8</a> for details.
6. Encapsulations used
Different types of TMLs will encapsulate the PL messages on
different types of headers. The TML needs to specify the
encapsulation used.
7. Prioritization
It is expected that the TML will be able to handle up to 8
priority levels needed by the PL and will provide preferential
treatment.
While the TML needs to define how this is achieved, it should be
noted that the requirement for supporting up to 8 priority levels
does not mean that the underlying TML MUST be capable of
providing up to 8 actual priority levels. In the event that the
underlying TML layer does not have support for 8 priority levels,
the supported priority levels should be divided between the
available TML priority levels. For example, if the TML only
supports 2 priority levels, 0-3 could go in one TML priority
level, while 4-7 could go in the other.
The TML MUST NOT re-order config packets with the same priority.
<span class="grey">Doria, et al. Standards Track [Page 33]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-34" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
8. Node Overload Prevention
The TML MUST define mechanisms it uses to help prevent node
overload.
Overload results in starvation of node compute cycles and/or
bandwidth resources, which reduces the operational capacity of a
ForCES NE. NE node overload could be deliberately instigated by
a hostile node to attack a ForCES NE and create a denial of
service (DoS). It could also be created by a variety of other
reasons such as large control protocol updates (e.g., BGP flaps),
which consequently cause a high frequency of CE to FE table
updates, HA failovers, or component failures, which migrate an FE
or CE load overwhelming the new CE or FE, etc. Although the
environments under which SIP and ForCES operate are different,
[<a href="./rfc5390" title=""Requirements for Management of Overload in the Session Initiation Protocol"">RFC5390</a>] provides a good guide to generic node requirements one
needs to guard for.
A ForCES node CPU may be overwhelmed because the incoming packet
rate is higher than it can keep up with -- in such a case, a
node's transport queues grow and transport congestion
subsequently follows. A ForCES node CPU may also be adversely
overloaded with very few packets, i.e., no transport congestion
at all (e.g., a in a DoS attack against a table hashing algorithm
that overflows the table and/or keeps the CPU busy so it does not
process other tasks). The TML node overload solution specified
MUST address both types of node overload scenarios.
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. TML Parameterization</span>
It is expected that it should be possible to use a configuration
reference point, such as the FEM or the CEM, to configure the TML.
Some of the configured parameters may include:
o PL ID
o Connection Type and associated data. For example, if a TML uses
IP/TCP/UDP, then parameters such as TCP and UDP port and IP
addresses need to be configured.
o Number of transport connections
o Connection capability, such as bandwidth, etc.
o Allowed/supported connection QoS policy (or congestion control
policy)
<span class="grey">Doria, et al. Standards Track [Page 34]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-35" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Message Encapsulation</span>
All PL PDUs start with a common header <a href="#section-6.1">Section 6.1</a> followed by one or
more TLVs <a href="#section-6.2">Section 6.2</a>, which may nest other TLVs <a href="#section-6.2.1">Section 6.2.1</a>. All
fields are in network byte order.
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. Common Header</span>
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| rsvd | Message Type | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Source ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Destination ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Correlator[63:32] |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Correlator[31:0] |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Flags |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 10: Common Header
The message is 32-bit aligned.
Version (4 bits):
Version number. Current version is 1.
rsvd (4 bits):
Unused at this point. A receiver should not interpret this field.
Senders MUST set it to zero and receivers MUST ignore this field.
Message Type (8 bits):
Commands are defined in <a href="#section-7">Section 7</a>.
Length (16 bits):
length of header + the rest of the message in DWORDS (4-byte
increments).
Source ID (32 bits):
<span class="grey">Doria, et al. Standards Track [Page 35]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-36" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
Dest ID (32 bits):
* Each of the source and destination IDs are 32-bit IDs that are
unique NE-wide and that identify the termination points of a
ForCES PL message.
* IDs allow multi/broad/unicast addressing with the following
approach:
a. A split address space is used to distinguish FEs from CEs.
Even though in a large NE there are typically two or more
orders of magnitude of more FEs than CEs, the address
space is split uniformly for simplicity.
b. The address space allows up to 2^30 (over a billion) CEs
and the same amount of FEs.
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|TS | sub-ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 11: ForCES ID Format
c. The 2 most significant bits called Type Switch (TS) are
used to split the ID space as follows:
TS Corresponding ID range Assignment
-- ---------------------- ----------
0b00 0x00000000 to 0x3FFFFFFF FE IDs (2^30)
0b01 0x40000000 to 0x7FFFFFFF CE IDs (2^30)
0b10 0x80000000 to 0xBFFFFFFF reserved
0b11 0xC0000000 to 0xFFFFFFEF multicast IDs (2^30 - 16)
0b11 0xFFFFFFF0 to 0xFFFFFFFC reserved
0b11 0xFFFFFFFD all CEs broadcast
0b11 0xFFFFFFFE all FEs broadcast
0b11 0xFFFFFFFF all FEs and CEs (NE) broadcast
Figure 12: Type Switch ID Space
* Multicast or broadcast IDs are used to group endpoints (such
as CEs and FEs). As an example, one could group FEs in some
functional group, by assigning a multicast ID. Likewise,
subgroups of CEs that act, for instance, in a back-up mode may
be assigned a multicast ID to hide them from the FE.
<span class="grey">Doria, et al. Standards Track [Page 36]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-37" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
+ Multicast IDs can be used for both source or destination
IDs.
+ Broadcast IDs can be used only for destination IDs.
* This document does not discuss how a particular multicast ID
is associated to a given group though it could be done via
configuration process. The list of IDs an FE owns or is part
of are listed on the FE Object LFB.
Correlator (64 bits):
This field is set by the CE to correlate ForCES Request messages
with the corresponding Response messages from the FE.
Essentially, it is a cookie. The correlator is handled
transparently by the FE, i.e., for a particular Request message
the FE MUST assign the same correlator value in the corresponding
Response message. In the case where the message from the CE does
not elicit a response, this field may not be useful.
The correlator field could be used in many implementations in
specific ways by the CE. For example, the CE could split the
correlator into a 32-bit transactional identifier and 32-bit
message sequence identifier. Another example is a 64-bit pointer
to a context block. All such implementation-specific uses of the
correlator are outside the scope of this specification.
It should be noted that the correlator is transmitted on the
network as if it were a 64-bit unsigned integer with the leftmost
or most significant octet (bits 63-56) transmitted first.
Whenever the correlator field is not relevant, because no message
is expected, the correlator field is set to 0.
Flags (32 bits):
Identified so far:
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | |
|ACK| Pri |Rsr |EM |A|TP | Reserved |
| | | vd. | |T| | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 13: Header Flags
- ACK: ACK indicator (2 bits)
<span class="grey">Doria, et al. Standards Track [Page 37]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-38" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
The ACK indicator flag is only used by the CE when sending a Config
message (<a href="#section-7.6.1">Section 7.6.1</a>) or an HB message (<a href="#section-7.10">Section 7.10</a>) to indicate
to the message receiver whether or not a response is required by the
sender. Note that for all other messages than the Config message or
the HB message this flag MUST be ignored.
The flag values are defined as follows:
'NoACK' (0b00) - to indicate that the message receiver MUST NOT
send any Response message back to this message sender.
'SuccessACK'(0b01) - to indicate that the message receiver MUST
send a Response message back only when the message has been
successfully processed by the receiver.
'FailureACK'(0b10) - to indicate that the message receiver MUST
send a Response message back only when there is failure by the
receiver in processing (executing) the message. In other words,
if the message can be processed successfully, the sender will not
expect any response from the receiver.
'AlwaysACK' (0b11) - to indicate that the message receiver MUST
send a Response message.
Note that in above definitions, the term success implies a complete
execution without any failure of the message. Anything else than a
complete successful execution is defined as a failure for the message
processing. As a result, for the execution modes (defined in
<a href="#section-4.3.1.1">Section 4.3.1.1</a>) like execute-all-or-none, execute-until-failure, and
continue-execute-on-failure, if any single operation among several
operations in the same message fails, it will be treated as a failure
and result in a response if the ACK indicator has been set to
'FailureACK' or 'AlwaysACK'.
Also note that, other than in Config and HB messages, requirements
for responses of messages are all given in a default way rather than
by ACK flags. The default requirements of these messages and the
expected responses are summarized below. Detailed descriptions can
be found in the individual message definitions:
+ Association Setup message always expects a response.
+ Association Teardown Message, and Packet Redirect
message, never expect responses.
+ Query message always expects a response.
+ Response message never expects further responses.
<span class="grey">Doria, et al. Standards Track [Page 38]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-39" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
- Pri: Priority (3 bits)
ForCES protocol defines 8 different levels of priority (0-7). The
priority level can be used to distinguish between different protocol
message types as well as between the same message type. The higher
the priority value, the more important the PDU is. For example, the
REDIRECT packet message could have different priorities to
distinguish between routing protocol packets and ARP packets being
redirected from FE to CE. The normal priority level is 1. The
different priorities imply messages could be re-ordered; however,
re-ordering is undesirable when it comes to a set of messages within
a transaction and caution should be exercised to avoid this.
- EM: Execution Mode (2 bits)
There are 3 execution modes; refer to <a href="#section-4.3.1.1">Section 4.3.1.1</a> for details.
Reserved..................... (0b00)
`execute-all-or-none` ....... (0b01)
`execute-until-failure` ..... (0b10)
`continue-execute-on-failure` (0b11)
- AT: Atomic Transaction (1 bit)
This flag indicates if the message is a stand-alone message or one of
multiple messages that belong to 2PC transaction operations. See
<a href="#section-4.3.1.2.2">Section 4.3.1.2.2</a> for details.
Stand-alone message ......... (0b0)
2PC transaction message ..... (0b1)
- TP: Transaction Phase (2 bits)
A message from the CE to the FE within a transaction could be
indicative of the different phases the transaction is in. Refer to
<a href="#section-4.3.1.2.2">Section 4.3.1.2.2</a> for details.
SOT (start of transaction) ..... (0b00)
MOT (middle of transaction) .... (0b01)
EOT (end of transaction) ........(0b10)
ABT (abort) .....................(0b11)
<span class="grey">Doria, et al. Standards Track [Page 39]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-40" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. Type Length Value (TLV) Structuring</span>
TLVs are extensively used by the ForCES protocol. TLVs have some
very nice properties that make them a good candidate for encoding the
XML definitions of the LFB class model. These are:
o Providing for binary type-value encoding that is close to the XML
string tag-value scheme.
o Allowing for fast generalized binary-parsing functions.
o Allowing for forward and backward tag compatibility. This is
equivalent to the XML approach, i.e., old applications can ignore
new TLVs and newer applications can ignore older TLVs.
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| TLV Type | TLV Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Value (Essentially the TLV Data) |
~ ~
~ ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 14: TLV Representation
TLV Type (16):
The TLV type field is 2 octets, and semantically indicates the type
of data encapsulated within the TLV.
TLV Length (16):
The TLV length field is 2 octets, and includes the length of the TLV
type (2 octets), TLV Length (2 octets), and the length of the TLV
data found in the value field, in octets. Note that this length is
the actual length of the value, before any padding for alignment is
added.
TLV Value (variable):
The TLV value field carries the data. For extensibility, the TLV
value may in fact be a TLV. Padding is required when the length is
not a multiple of 32 bits, and is the minimum number of octets
required to bring the TLV to a multiple of 32 bits. The length of
the value before padding is indicated by the TLV Length field.
<span class="grey">Doria, et al. Standards Track [Page 40]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-41" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
Note: The value field could be empty, which implies the minimal
length a TLV could be is 4 (length of "T" field and length of "L"
field).
<span class="h4"><a class="selflink" id="section-6.2.1" href="#section-6.2.1">6.2.1</a>. Nested TLVs</span>
TLV values can be other TLVs. This provides the benefits of protocol
flexibility (being able to add new extensions by introducing new TLVs
when needed). The nesting feature also allows for a conceptual
optimization with the XML LFB definitions to binary PL representation
(represented by nested TLVs).
<span class="h4"><a class="selflink" id="section-6.2.2" href="#section-6.2.2">6.2.2</a>. Scope of the T in TLV</span>
There are two global name scopes for the "Type" in the TLV. The
first name scope is for OPER-TLVs and is defined in A.4 whereas the
second name scope is outside OPER-TLVs and is defined in section A.2.
<span class="h3"><a class="selflink" id="section-6.3" href="#section-6.3">6.3</a>. ILV</span>
The ILV is a slight variation of the TLV. This sets the type ("T")
to be a 32-bit local index that refers to a ForCES component ID
(refer to <a href="#section-6.4.1">Section 6.4.1</a>).
The ILV length field is a 4-octet integer, and includes the length of
the ILV type (4 octets), ILV Length (4 octets), and the length of the
ILV data found in the value field, in octets. Note that, as in the
case of the TLV, this length is the actual length of the value,
before any padding for alignment is added.
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Identifier |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Value |
. .
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 15: ILV Representation
It should be noted that the "I" values are of local scope and are
defined by the data declarations from the LFB definition. Refer to
<a href="#section-7.1.8">Section 7.1.8</a> for discussions on usage of ILVs.
<span class="grey">Doria, et al. Standards Track [Page 41]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-42" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h3"><a class="selflink" id="section-6.4" href="#section-6.4">6.4</a>. Important Protocol Encapsulations</span>
In this section, we review a few encapsulation concepts that are used
by the ForCES protocol for its operations.
We briefly re-introduce two concepts, paths, and keys, from the
ForCES model [<a href="./rfc5812" title=""Forwarding and Control Element Separation (ForCES) Forwarding Element Model"">RFC5812</a>] in order to provide context. The reader is
referred to [<a href="./rfc5812" title=""Forwarding and Control Element Separation (ForCES) Forwarding Element Model"">RFC5812</a>] for a lot of the finer details.
For readability reasons, we introduce the encapsulation schemes that
are used to carry content in a protocol message, namely, FULLDATA-
TLV, SPARSEDATA-TLV, and RESULT-TLV.
<span class="h4"><a class="selflink" id="section-6.4.1" href="#section-6.4.1">6.4.1</a>. Paths</span>
The ForCES model [<a href="./rfc5812" title=""Forwarding and Control Element Separation (ForCES) Forwarding Element Model"">RFC5812</a>] defines an XML-based language that allows
for a formal definition of LFBs. This is similar to the relationship
between ASN.1 and SNMP MIB definition (MIB being analogous to the LFB
and ASN.1 being analogous to the XML model language). Any entity
that the CE configures on an FE MUST be formally defined in an LFB.
These entities could be scalars (e.g., a 32-bit IPv4 address) or
vectors (such as a nexthop table). Each entity within the LFB is
given a numeric 32-bit identifier known as a "component id". This
scheme allows the component to be "addressed" in a protocol
construct.
These addressable entities could be hierarchical (e.g., a table
column or a cell within a table row). In order to address
hierarchical data, the concept of a path is introduced by the model
[<a href="./rfc5812" title=""Forwarding and Control Element Separation (ForCES) Forwarding Element Model"">RFC5812</a>]. A path is a series of 32-bit component IDs that are
typically presented in a dot-notation (e.g., 1.2.3.4). <a href="#section-7">Section 7</a>
formally defines how paths are used to reference data that is being
encapsulated within a protocol message.
<span class="h4"><a class="selflink" id="section-6.4.2" href="#section-6.4.2">6.4.2</a>. Keys</span>
The ForCES model [<a href="./rfc5812" title=""Forwarding and Control Element Separation (ForCES) Forwarding Element Model"">RFC5812</a>] defines two ways to address table rows.
The standard/common mechanism is to allow table rows to be referenced
by a 32-bit index. The secondary mechanism is via keys that allow
for content addressing. An example key is a multi-field content key
that uses the IP address and prefix length to uniquely reference an
IPv4 routing table row. In essence, while the common scheme to
address a table row is via its table index, a table row's path could
be derived from a key. The KEYINFO-TLV (<a href="#section-7">Section 7</a>) is used to carry
the data that is used to do the lookup.
<span class="grey">Doria, et al. Standards Track [Page 42]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-43" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h4"><a class="selflink" id="section-6.4.3" href="#section-6.4.3">6.4.3</a>. DATA TLVs</span>
Data from or to the FE is carried in two types of TLVs: FULLDATA-TLV
and SPARSEDATA-TLV. Responses to operations executed by the FE are
carried in RESULT-TLVs.
In FULLDATA-TLV, the data is encoded in such a way that a receiver of
such data, by virtue of being armed with knowledge of the path and
the LFB definition, can infer or correlate the TLV "Value" contents.
This is essentially an optimization that helps reduce the amount of
description required for the transported data in the protocol
grammar. Refer to <a href="#appendix-C">Appendix C</a> for an example of FULLDATA-TLVs.
A number of operations in ForCES will need to reference optional data
within larger structures. The SPARSEDATA-TLV encoding is provided to
make it easier to encapsulate optionally appearing data components.
Refer to <a href="#appendix-C">Appendix C</a> for an example of SPARSEDATA-TLV.
RESULT-TLVs carry responses back from the FE based on a config issued
by the CE. Refer to <a href="#appendix-C">Appendix C</a> for examples of RESULT-TLVs and
<a href="#section-7.1.7">Section 7.1.7</a> for layout.
<span class="h4"><a class="selflink" id="section-6.4.4" href="#section-6.4.4">6.4.4</a>. Addressing LFB Entities</span>
<a href="#section-6.4.1">Section 6.4.1</a> and <a href="#section-6.4.2">Section 6.4.2</a> discuss how to target an entity
within an LFB. However, the addressing mechanism used requires that
an LFB type and instance are selected first. The LFB selector is
used to select an LFB type and instance being targeted. <a href="#section-7">Section 7</a>
goes into more details; for our purpose, we illustrate this concept
using Figure 16 below. More examples of layouts can be found reading
further into the text (example: Figure 22).
<span class="grey">Doria, et al. Standards Track [Page 43]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-44" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
main hdr (Message type: example "config")
|
|
|
+- T = LFBselect
|
+-- LFBCLASSID (unique per LFB defined)
|
|
+-- LFBInstance (runtime configuration)
|
+-- T = An operation TLV describes what we do to an entity
| //Refer to the OPER-TLV values enumerated below
| //the TLVs that can be used for operations
|
|
+--+-- one or more path encodings to target an entity
| // Refer to the discussion on keys and paths
|
|
+-- The associated data, if any, for the entity
// Refer to discussion on FULL/SPARSE DATA TLVs
Figure 16: Entity Addressing
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Protocol Construction</span>
A protocol layer PDU consists of a common header (defined in
<a href="#section-6.1">Section 6.1</a> ) and a message body. The common header is followed by a
message-type-specific message body. Each message body is formed from
one or more top-level TLVs. A top-level TLV may contain one or more
sub-TLVs; these sub-TLVs are described in this document as OPER-TLVs,
because they describe an operation to be done.
<span class="grey">Doria, et al. Standards Track [Page 44]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-45" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
+-------------+---------------+---------------------+---------------+
| Message | Top-Level TLV | OPER-TLV(s) | Reference |
| Name | | | |
+-------------+---------------+---------------------+---------------+
| Association | (LFBselect)* | REPORT | <a href="#section-7.5.1">Section 7.5.1</a> |
| Setup | | | |
| Association | ASRresult-TLV | none | <a href="#section-7.5.2">Section 7.5.2</a> |
| Setup | | | |
| Response | | | |
| Association | ASTreason-TLV | none | <a href="#section-7.5.3">Section 7.5.3</a> |
| Teardown | | | |
| Config | (LFBselect)+ | (SET | SET-PROP | | <a href="#section-7.6.1">Section 7.6.1</a> |
| | | DEL | COMMIT | | |
| | | TRCOMP)+ | |
| Config | (LFBselect)+ | (SET-RESPONSE | | <a href="#section-7.6.2">Section 7.6.2</a> |
| Response | | SET-PROP-RESPONSE | | |
| | | DEL-RESPONSE | | |
| | | COMMIT-RESPONSE)+ | |
| Query | (LFBselect)+ | (GET | GET-PROP)+ | <a href="#section-7.7.1">Section 7.7.1</a> |
| Query | (LFBselect)+ | (GET-RESPONSE | | <a href="#section-7.7.2">Section 7.7.2</a> |
| Response | | GET-PROP-RESPONSE)+ | |
| Event | LFBselect | REPORT | <a href="#section-7.8">Section 7.8</a> |
| Notifi- | | | |
| cation | | | |
| Packet | REDIRECT-TLV | none | <a href="#section-7.9">Section 7.9</a> |
| Redirect | | | |
| Heartbeat | none | none | <a href="#section-7.10">Section 7.10</a> |
+-------------+---------------+---------------------+---------------+
Table 1
The different messages are illustrated in Table 1. The different
message type numerical values are defined in <a href="#appendix-A.1">Appendix A.1</a>. All the
TLV values are defined in <a href="#appendix-A.2">Appendix A.2</a>.
An LFBselect TLV (refer to <a href="#section-7.1.5">Section 7.1.5</a>) contains the LFB Classid
and LFB instance being referenced as well as the OPER-TLV(s) being
applied to that reference.
Each type of OPER-TLV is constrained as to how it describes the paths
and selectors of interest. The following BNF describes the basic
structure of an OPER-TLV and Table 2 gives the details for each type.
<span class="grey">Doria, et al. Standards Track [Page 45]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-46" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
OPER-TLV := 1*PATH-DATA-TLV
PATH-DATA-TLV := PATH [DATA]
PATH := flags IDcount IDs [SELECTOR]
SELECTOR := KEYINFO-TLV
DATA := FULLDATA-TLV / SPARSEDATA-TLV / RESULT-TLV /
1*PATH-DATA-TLV
KEYINFO-TLV := KeyID FULLDATA-TLV
FULLDATA-TLV := encoded data component which may nest
further FULLDATA-TLVs
SPARSEDATA-TLV := encoded data that may have optionally
appearing components
RESULT-TLV := Holds result code and optional FULLDATA-TLV
Figure 17: BNF of OPER-TLV
o PATH-DATA-TLV identifies the exact component targeted and may have
zero or more paths associated with it. The last PATH-DATA-TLV in
the case of nesting of paths via the DATA construct in the case of
SET, SET-PROP requests, and GET-RESPONSE/GET-PROP-RESPONSE is
terminated by encoded data or response in the form of either
FULLDATA-TLV or SPARSEDATA-TLV or RESULT-TLV.
o PATH provides the path to the data being referenced.
* flags (16 bits) are used to further refine the operation to be
applied on the path. More on these later.
* IDcount (16 bits): count of 32-bit IDs
* IDs: zero or more 32-bit IDs (whose count is given by IDcount)
defining the main path. Depending on the flags, IDs could be
field IDs only or a mix of field and dynamic IDs. Zero is used
for the special case of using the entirety of the containing
context as the result of the path.
o SELECTOR is an optional construct that further defines the PATH.
Currently, the only defined selector is the KEYINFO-TLV, used for
selecting an array entry by the value of a key field. The
presence of a SELECTOR is correct only when the flags also
indicate its presence.
o A KEYINFO-TLV contains information used in content keying.
* A 32-bit KeyID is used in a KEYINFO-TLV. It indicates which
key for the current array is being used as the content key for
array entry selection.
<span class="grey">Doria, et al. Standards Track [Page 46]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-47" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
* The key's data is the data to look for in the array, in the
fields identified by the key field. The information is encoded
according to the rules for the contents of a FULLDATA-TLV, and
represents the field or fields that make up the key identified
by the KeyID.
o DATA may contain a FULLDATA-TLV, SPARSEDATA-TLV, a RESULT-TLV, or
1 or more further PATH-DATA selections. FULLDATA-TLV and
SPARSEDATA-TLV are only allowed on SET or SET-PROP requests, or on
responses that return content information (GET-RESPONSE, for
example). PATH-DATA may be included to extend the path on any
request.
* Note: Nested PATH-DATA-TLVs are supported as an efficiency
measure to permit common subexpression extraction.
* FULLDATA-TLV and SPARSEDATA-TLV contain "the data" whose path
has been selected by the PATH. Refer to <a href="#section-7.1">Section 7.1</a> for
details.
* The following table summarizes the applicability and
restrictions of the FULL/SPARSEDATA-TLVs and the RESULT-TLV to
the OPER-TLVs.
+-------------------+-------------------------------+---------------+
| OPER-TLV | DATA TLV | RESULT-TLV |
+-------------------+-------------------------------+---------------+
| SET | | none |
| SET-PROP | (FULLDATA-TLV | | none |
| | SPARSEDATA-TLV)+ | |
| SET-RESPONSE | none | (RESULT-TLV)+ |
| SET-PROP-RESPONSE | none | (RESULT-TLV)+ |
| DEL | | none |
| DEL-RESPONSE | none | (RESULT-TLV)+ |
| GET | none | none |
| GET-PROP | none | none |
| GET-RESPONSE | (FULLDATA-TLV)+ | (RESULT-TLV)* |
| GET-PROP-RESPONSE | (FULLDATA-TLV)+ | (RESULT-TLV)* |
| REPORT | (FULLDATA-TLV)+ | none |
| COMMIT | none | none |
| COMMIT-RESPONSE | none | (RESULT-TLV)+ |
| TRCOMP | none | none |
+-------------------+-------------------------------+---------------+
Table 2
<span class="grey">Doria, et al. Standards Track [Page 47]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-48" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
o RESULT-TLV contains the indication of whether the individual SET
or SET-PROP succeeded. RESULT-TLV is included on the assumption
that individual parts of a SET request can succeed or fail
separately.
In summary, this approach has the following characteristics:
o There can be one or more LFB class ID and instance ID combinations
targeted in a message (batch).
o There can one or more operations on an addressed LFB class ID/
instance ID combination (batch).
o There can be one or more path targets per operation (batch).
o Paths may have zero or more data values associated (flexibility
and operation specific).
It should be noted that the above is optimized for the case of a
single LFB class ID and instance ID targeting. To target multiple
instances within the same class, multiple LFBselects are needed.
<span class="h3"><a class="selflink" id="section-7.1" href="#section-7.1">7.1</a>. Discussion on Encoding</span>
<a href="#section-6.4.3">Section 6.4.3</a> discusses the two types of DATA encodings (FULLDATA-TLV
and SPARSEDATA-TLV) and the justifications for their existence. In
this section, we explain how they are encoded.
<span class="h4"><a class="selflink" id="section-7.1.1" href="#section-7.1.1">7.1.1</a>. Data Packing Rules</span>
The scheme for encoding data used in this document adheres to the
following rules:
o The Value ("V" of TLV) of FULLDATA-TLV will contain the data being
transported. This data will be as was described in the LFB
definition.
o Variable-sized data within a FULLDATA-TLV will be encapsulated
inside another FULLDATA-TLV inside the V of the outer TLV. For an
example of such a setup, refer to Appendices C and D.
o In the case of FULLDATA-TLVs:
* When a table is referred to in the PATH (IDs) of a PATH-DATA-
TLV, then the FULLDATA-TLV's "V" will contain that table's row
content prefixed by its 32-bit index/subscript. On the other
<span class="grey">Doria, et al. Standards Track [Page 48]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-49" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
hand, the PATH may contain an index pointing to a row in table;
in such a case, the FULLDATA-TLV's "V" will only contain the
content with the index in order to avoid ambiguity.
<span class="h4"><a class="selflink" id="section-7.1.2" href="#section-7.1.2">7.1.2</a>. Path Flags</span>
Only bit 0, the SELECTOR Bit, is currently used in the path flags as
illustrated in Figure 18.
0 1
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | |
|S| Reserved |
| | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 18: Path Flags
The semantics of the flag are defined as follows:
o SELECTOR Bit: F_SELKEY(set to 1) indicates that a KEY Selector is
present following this path information, and should be considered
in evaluating the path content.
<span class="h4"><a class="selflink" id="section-7.1.3" href="#section-7.1.3">7.1.3</a>. Relation of Operational Flags with Global Message Flags</span>
Global flags, such as the execution mode and the atomicity indicators
defined in the header, apply to all operations in a message. Global
flags provide semantics that are orthogonal to those provided by the
operational flags, such as the flags defined in path-data. The scope
of operational flags is restricted to the operation.
<span class="h4"><a class="selflink" id="section-7.1.4" href="#section-7.1.4">7.1.4</a>. Content Path Selection</span>
The KEYINFO-TLV describes the KEY as well as associated KEY data.
KEYs, used for content searches, are restricted and described in the
LFB definition.
<span class="h4"><a class="selflink" id="section-7.1.5" href="#section-7.1.5">7.1.5</a>. LFBselect-TLV</span>
The LFBselect TLV is an instance of a TLV as defined in <a href="#section-6.2">Section 6.2</a>.
The definition is as follows:
<span class="grey">Doria, et al. Standards Track [Page 49]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-50" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type = LFBselect | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LFB Class ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LFB Instance ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| OPER-TLV |
. .
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
~ ... ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| OPER-TLV |
. .
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 19: PL PDU Layout
Type:
The type of the TLV is "LFBselect"
Length:
Length of the TLV including the T and L fields, in octets.
LFB Class ID:
This field uniquely recognizes the LFB class/type.
LFB Instance ID:
This field uniquely identifies the LFB instance.
OPER-TLV:
It describes an operation nested in the LFBselect TLV. Note that
usually there SHOULD be at least one OPER-TLV present for an LFB
select TLV.
<span class="h4"><a class="selflink" id="section-7.1.6" href="#section-7.1.6">7.1.6</a>. OPER-TLV</span>
The OPER-TLV is a place holder in the grammar for TLVs that define
operations. The different types are defined in Table 3, below.
<span class="grey">Doria, et al. Standards Track [Page 50]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-51" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
+-------------------+--------+--------------------------------------+
| OPER-TLV | TLV | Comments |
| | "Type" | |
+-------------------+--------+--------------------------------------+
| SET | 0x0001 | From CE to FE. Used to create or |
| | | add or update components |
| SET-PROP | 0x0002 | From CE to FE. Used to create or |
| | | add or update component properties |
| SET-RESPONSE | 0x0003 | From FE to CE. Used to carry |
| | | response of a SET |
| SET-PROP-RESPONSE | 0x0004 | From FE to CE. Used to carry |
| | | response of a SET-PROP |
| DEL | 0x0005 | From CE to FE. Used to delete or |
| | | remove an component |
| DEL-RESPONSE | 0x0006 | From FE to CE. Used to carry |
| | | response of a DEL |
| GET | 0x0007 | From CE to FE. Used to retrieve an |
| | | component |
| GET-PROP | 0x0008 | From CE to FE. Used to retrieve an |
| | | component property |
| GET-RESPONSE | 0x0009 | From FE to CE. Used to carry |
| | | response of a GET |
| GET-PROP-RESPONSE | 0x000A | From FE to CE. Used to carry |
| | | response of a GET-PROP |
| REPORT | 0x000B | From FE to CE. Used to carry an |
| | | asynchronous event |
| COMMIT | 0x000C | From CE to FE. Used to issue a |
| | | commit in a 2PC transaction |
| COMMIT-RESPONSE | 0x000D | From FE to CE. Used to confirm a |
| | | commit in a 2PC transaction |
| TRCOMP | 0x000E | From CE to FE. Used to indicate |
| | | NE-wide success of 2PC transaction |
+-------------------+--------+--------------------------------------+
Table 3
Different messages use OPER-TLV and define how they are used (refer
to Table 1 and Table 2).
SET, SET-PROP, and GET/GET-PROP requests are issued by the CE and do
not carry RESULT-TLVs. On the other hand, SET-RESPONSE, SET-PROP-
RESPONSE, and GET-RESPONSE/GET-PROP-RESPONSE carry RESULT-TLVs.
A GET-RESPONSE in response to a successful GET will have FULLDATA-
TLVs added to the leaf paths to carry the requested data. For GET
operations that fail, instead of the FULLDATA-TLV there will be a
RESULT-TLV.
<span class="grey">Doria, et al. Standards Track [Page 51]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-52" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
For a SET-RESPONSE/SET-PROP-RESPONSE, each FULLDATA-TLV or
SPARSEDATA-TLV in the original request will be replaced with a
RESULT-TLV in the response. If the request set the FailureACK flag,
then only those items that failed will appear in the response. If
the request was for AlwaysACK, then all components of the request
will appear in the response with RESULT-TLVs.
Note that if a SET/SET-PROP request with a structure in a FULLDATA-
TLV is issued, and some field in the structure is invalid, the FE
will not attempt to indicate which field was invalid, but rather will
indicate that the operation failed. Note further that if there are
multiple errors in a single leaf PATH-DATA/FULLDATA-TLB, the FE can
select which error it chooses to return. So if a FULLDATA-TLV for a
SET/SET-PROP of a structure attempts to write one field that is read
only, and attempts to set another field to an invalid value, the FE
can return indication of either error.
A SET/SET-PROP operation on a variable-length component with a length
of 0 for the item is not the same as deleting it. If the CE wishes
to delete, then the DEL operation should be used whether the path
refers to an array component or an optional structure component.
<span class="h4"><a class="selflink" id="section-7.1.7" href="#section-7.1.7">7.1.7</a>. RESULT TLV</span>
The RESULT-TLV is an instance of TLV defined in <a href="#section-6.2">Section 6.2</a>. The
definition is as follows:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type = RESULT-TLV | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Result Value | Reserved |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 20: RESULT-TLV
<span class="grey">Doria, et al. Standards Track [Page 52]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-53" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
Defined Result Values
+-----------------------------+-----------+-------------------------+
| Result Value | Value | Definition |
+-----------------------------+-----------+-------------------------+
| E_SUCCESS | 0x00 | Success |
| E_INVALID_HEADER | 0x01 | Unspecified error with |
| | | header. |
| E_LENGTH_MISMATCH | 0x02 | Header length field |
| | | does not match actual |
| | | packet length. |
| E_VERSION_MISMATCH | 0x03 | Unresolvable mismatch |
| | | in versions. |
| E_INVALID_DESTINATION_PID | 0x04 | Destination PID is |
| | | invalid for the message |
| | | receiver. |
| E_LFB_UNKNOWN | 0x05 | LFB Class ID is not |
| | | known by receiver. |
| E_LFB_NOT_FOUND | 0x06 | LFB Class ID is known |
| | | by receiver but not |
| | | currently in use. |
| E_LFB_INSTANCE_ID_NOT_FOUND | 0x07 | LFB Class ID is known |
| | | but the specified |
| | | instance of that class |
| | | does not exist. |
| E_INVALID_PATH | 0x08 | The specified path is |
| | | impossible. |
| E_COMPONENT_DOES_NOT_EXIST | 0x09 | The specified path is |
| | | possible but the |
| | | component does not |
| | | exist (e.g., attempt to |
| | | modify a table row that |
| | | has not been created). |
| E_EXISTS | 0x0A | The specified object |
| | | exists but it cannot |
| | | exist for the operation |
| | | to succeed (e.g., |
| | | attempt to add an |
| | | existing LFB instance |
| | | or array subscript). |
| E_NOT_FOUND | 0x0B | The specified object |
| | | does not exist but it |
| | | MUST exist for the |
| | | operation to succeed |
| | | (e.g., attempt to |
| | | delete a non-existing |
| | | LFB instance or array |
| | | subscript). |
<span class="grey">Doria, et al. Standards Track [Page 53]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-54" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
| E_READ_ONLY | 0x0C | Attempt to modify a |
| | | read-only value. |
| E_INVALID_ARRAY_CREATION | 0x0D | Attempt to create an |
| | | array with an unallowed |
| | | subscript. |
| E_VALUE_OUT_OF_RANGE | 0x0E | Attempt to set a |
| | | parameter to a value |
| | | outside of its |
| | | allowable range. |
| E_CONTENTS_TOO_LONG | 0x0D | Attempt to write |
| | | contents larger than |
| | | the target object space |
| | | (i.e., exceeding a |
| | | buffer). |
| E_INVALID_PARAMETERS | 0x10 | Any other error with |
| | | data parameters. |
| E_INVALID_MESSAGE_TYPE | 0x11 | Message type is not |
| | | acceptable. |
| E_INVALID_FLAGS | 0x12 | Message flags are not |
| | | acceptable for the |
| | | given message type. |
| E_INVALID_TLV | 0x13 | A TLV is not acceptable |
| | | for the given message |
| | | type. |
| E_EVENT_ERROR | 0x14 | Unspecified error while |
| | | handling an event. |
| E_NOT_SUPPORTED | 0x15 | Attempt to perform a |
| | | valid ForCES operation |
| | | that is unsupported by |
| | | the message receiver. |
| E_MEMORY_ERROR | 0x16 | A memory error occurred |
| | | while processing a |
| | | message (no error |
| | | detected in the message |
| | | itself). |
| E_INTERNAL_ERROR | 0x17 | An unspecified error |
| | | occurred while |
| | | processing a message |
| | | (no error detected in |
| | | the message itself). |
| - | 0x18-0xFE | Reserved |
| E_UNSPECIFIED_ERROR | 0xFF | Unspecified error (for |
| | | when the FE cannot |
| | | decide what went |
| | | wrong). |
+-----------------------------+-----------+-------------------------+
Table 4
<span class="grey">Doria, et al. Standards Track [Page 54]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-55" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h4"><a class="selflink" id="section-7.1.8" href="#section-7.1.8">7.1.8</a>. DATA TLV</span>
A FULLDATA-TLV has "T"= FULLDATA-TLV and a 16-bit length followed by
the data value/contents. Likewise, a SPARSEDATA-TLV has "T" =
SPARSEDATA-TLV, a 16-bit length, followed by the data value/contents.
In the case of the SPARSEDATA-TLV, each component in the Value part
of the TLV will be further encapsulated in an ILV.
Below are the encoding rules for the FULLDATA-TLV and SPARSEDATA-
TLVs. <a href="#appendix-C">Appendix C</a> is very useful in illustrating these rules:
1. Both ILVs and TLVs MUST be 32-bit aligned. Any padding bits used
for the alignment MUST be zero on transmission and MUST be
ignored upon reception.
2. FULLDATA-TLVs may be used at a particular path only if every
component at that path level is present. In example 1(c) of
<a href="#appendix-C">Appendix C</a>, this concept is illustrated by the presence of all
components of the structure S in the FULLDATA-TLV encoding. This
requirement holds regardless of whether the fields are fixed or
variable length, mandatory or optional.
* If a FULLDATA-TLV is used, the encoder MUST lay out data for
each component in the same order in which the data was
defined in the LFB specification. This ensures the decoder
is able to retrieve the data. To use the example 1 again in
<a href="#appendix-C">Appendix C</a>, this implies the encoder/decoder is assumed to
have knowledge of how structure S is laid out in the
definition.
* In the case of a SPARSEDATA-TLV, it does not need to be
ordered since the "I" in the ILV uniquely identifies the
component. Examples 1(a) and 1(b) in <a href="#appendix-C">Appendix C</a> illustrate
the power of SPARSEDATA-TLV encoding.
3. Inside a FULLDATA-TLV
* The values for atomic, fixed-length fields are given without
any TLV encapsulation.
* The values for atomic, variable-length fields are given
inside FULLDATA-TLVs.
* The values for arrays are in the form of index/subscript,
followed by value as stated in "Data Packing Rules"
(<a href="#section-7.1.1">Section 7.1.1</a>) and demonstrated by the examples in the
appendices.
<span class="grey">Doria, et al. Standards Track [Page 55]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-56" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
4. Inside a SPARSEDATA-TLV
* The values of all fields MUST be given with ILVs (32-bit
index, 32-bit length).
5. FULLDATA-TLVs cannot contain an ILV.
6. A FULLDATA-TLV can also contain a FULLDATA-TLV for variable-sized
components. The decoding disambiguation is assumed from rule #3
above.
<span class="h4"><a class="selflink" id="section-7.1.9" href="#section-7.1.9">7.1.9</a>. SET and GET Relationship</span>
It is expected that a GET-RESPONSE would satisfy the following:
o It would have exactly the same path definitions as those sent in
the GET. The only difference is that a GET-RESPONSE will contain
FULLDATA-TLVs.
o It should be possible to take the same GET-RESPONSE and convert
it to a SET successfully by merely changing the T in the
operational TLV.
o There are exceptions to this rule:
1. When a KEY selector is used with a path in a GET operation,
that selector is not returned in the GET-RESPONSE; instead,
the cooked result is returned. Refer to the examples using
KEYS to see this.
2. When dumping a whole table in a GET, the GET-RESPONSE that
merely edits the T to be SET will end up overwriting the
table.
<span class="h3"><a class="selflink" id="section-7.2" href="#section-7.2">7.2</a>. Protocol Encoding Visualization</span>
The figure below shows a general layout of the PL PDU. A main header
is followed by one or more LFB selections each of which may contain
one or more operations.
<span class="grey">Doria, et al. Standards Track [Page 56]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-57" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
main hdr (Config in this case)
|
|
+--- T = LFBselect
| |
| +-- LFBCLASSID
| |
| |
| +-- LFBInstance
| |
| +-- T = SET
| | |
| | +-- // one or more path targets
| | // with their data here to be added
| |
| +-- T = DEL
| . |
| . +-- // one or more path targets to be deleted
|
|
+--- T = LFBselect
| |
| +-- LFBCLASSID
| |
| |
| +-- LFBInstance
| |
| + -- T= SET
| | .
| | .
| + -- T= DEL
| | .
| | .
| |
| + -- T= SET
| | .
| | .
|
|
+--- T = LFBselect
|
+-- LFBCLASSID
|
+-- LFBInstance
.
.
.
Figure 21: PL PDU Logical Layout
<span class="grey">Doria, et al. Standards Track [Page 57]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-58" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
The figure below shows a more detailed example of the general layout
of the operation within a targeted LFB selection. The idea is to
show the different nesting levels a path could take to get to the
target path.
T = SET
| |
| +- T = Path-data
| |
| + -- flags
| + -- IDCount
| + -- IDs
| |
| +- T = Path-data
| |
| + -- flags
| + -- IDCount
| + -- IDs
| |
| +- T = Path-data
| |
| + -- flags
| + -- IDCount
| + -- IDs
| + -- T = KEYINFO-TLV
| | + -- KEY_ID
| | + -- KEY_DATA
| |
| + -- T = FULLDATA-TLV
| + -- data
|
|
T = SET
| |
| +- T = Path-data
| | |
| | + -- flags
| | + -- IDCount
| | + -- IDs
| | |
| | + -- T = FULLDATA-TLV
| | + -- data
| +- T = Path-data
| |
<span class="grey">Doria, et al. Standards Track [Page 58]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-59" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
| + -- flags
| + -- IDCount
| + -- IDs
| |
| + -- T = FULLDATA-TLV
| + -- data
T = DEL
|
+- T = Path-data
|
+ -- flags
+ -- IDCount
+ -- IDs
|
+- T = Path-data
|
+ -- flags
+ -- IDCount
+ -- IDs
|
+- T = Path-data
|
+ -- flags
+ -- IDCount
+ -- IDs
+ -- T = KEYINFO-TLV
| + -- KEY_ID
| + -- KEY_DATA
+- T = Path-data
|
+ -- flags
+ -- IDCount
+ -- IDs
Figure 22: Sample Operation Layout
<a href="#appendix-D">Appendix D</a> shows a more concise set of use cases on how the data
encoding is done.
<span class="h3"><a class="selflink" id="section-7.3" href="#section-7.3">7.3</a>. Core ForCES LFBs</span>
There are two LFBs that are used to control the operation of the
ForCES protocol and to interact with FEs and CEs:
o FE Protocol LFB
<span class="grey">Doria, et al. Standards Track [Page 59]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-60" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
o FE Object LFB
Although these LFBs have the same form and interface as other LFBs,
they are special in many respects. They have fixed well-known LFB
Class and Instance IDs. They are statically defined (no dynamic
instantiation allowed), and their status cannot be changed by the
protocol: any operation to change the state of such LFBs (for
instance, in order to disable the LFB) MUST result in an error.
Moreover, these LFBs MUST exist before the first ForCES message can
be sent or received. All components in these LFBs MUST have pre-
defined default values. Finally, these LFBs do not have input or
output ports and do not integrate into the intra-FE LFB topology.
<span class="h4"><a class="selflink" id="section-7.3.1" href="#section-7.3.1">7.3.1</a>. FE Protocol LFB</span>
The FE Protocol LFB is a logical entity in each FE that is used to
control the ForCES protocol. The FE Protocol LFB Class ID is
assigned the value 0x2. The FE Protocol LFB Instance ID is assigned
the value 0x1. There MUST be one and only one instance of the FE
Protocol LFB in an FE. The values of the components in the FE
Protocol LFB have pre-defined default values that are specified here.
Unless explicit changes are made to these values using Config
messages from the CE, these default values MUST be used for correct
operation of the protocol.
The formal definition of the FE Protocol Object LFB can be found in
<a href="#appendix-B">Appendix B</a>.
<span class="h5"><a class="selflink" id="section-7.3.1.1" href="#section-7.3.1.1">7.3.1.1</a>. FE Protocol Capabilities</span>
FE Protocol capabilities are read-only.
<span class="h6"><a class="selflink" id="section-7.3.1.1.1" href="#section-7.3.1.1.1">7.3.1.1.1</a>. SupportableVersions</span>
ForCES protocol version(s) supported by the FE.
<span class="h6"><a class="selflink" id="section-7.3.1.1.2" href="#section-7.3.1.1.2">7.3.1.1.2</a>. FE Protocol Components</span>
FE Protocol components (can be read and set).
<span class="h6"><a class="selflink" id="section-7.3.1.1.2.1" href="#section-7.3.1.1.2.1">7.3.1.1.2.1</a>. CurrentRunningVersion</span>
Current running version of the ForCES protocol.
<span class="grey">Doria, et al. Standards Track [Page 60]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-61" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h6"><a class="selflink" id="section-7.3.1.1.2.2" href="#section-7.3.1.1.2.2">7.3.1.1.2.2</a>. FEID</span>
FE unicast ID.
<span class="h6"><a class="selflink" id="section-7.3.1.1.2.3" href="#section-7.3.1.1.2.3">7.3.1.1.2.3</a>. MulticastFEIDs</span>
FE multicast ID(s) list - This is a list of multicast IDs to which
the FE belongs. These IDs are configured by the CE.
<span class="h6"><a class="selflink" id="section-7.3.1.1.2.4" href="#section-7.3.1.1.2.4">7.3.1.1.2.4</a>. CEHBPolicy</span>
CE heartbeat policy - This policy, along with the parameter 'CE
Heartbeat Dead Interval (CE HDI)' as described below, defines the
operating parameters for the FE to check the CE liveness. The policy
values with meanings are listed as follows:
o 0 (default) - This policy specifies that the CE will send a
Heartbeat message to the FE(s) whenever the CE reaches a time
interval within which no other PL messages were sent from the CE
to the FE(s); refer to <a href="#section-4.3.3">Section 4.3.3</a> and <a href="#section-7.10">Section 7.10</a> for details.
The CE HDI component as described below is tied to this policy.
o 1 - The CE will not generate any HB messages. This actually means
that the CE does not want the FE to check the CE liveness.
o Others - Reserved.
<span class="h6"><a class="selflink" id="section-7.3.1.1.2.5" href="#section-7.3.1.1.2.5">7.3.1.1.2.5</a>. CEHDI</span>
CE Heartbeat Dead Interval (CE HDI) - The time interval the FE uses
to check the CE liveness. If FE has not received any messages from
CE within this time interval, FE deduces lost connectivity, which
implies that the CE is dead or the association to the CE is lost.
Default value is 30 s.
<span class="h6"><a class="selflink" id="section-7.3.1.1.2.6" href="#section-7.3.1.1.2.6">7.3.1.1.2.6</a>. FEHBPolicy</span>
FE heartbeat policy - This policy, along with the parameter 'FE
Heartbeat Interval (FE HI)', defines the operating parameters for how
the FE should behave so that the CE can deduce its liveness. The
policy values and the meanings are:
o 0 (default) - The FE should not generate any Heartbeat messages.
In this scenario, the CE is responsible for checking FE liveness
by setting the PL header ACK flag of the message it sends to
AlwaysACK. The FE responds to the CE whenever the CE sends such
Heartbeat Request messages. Refer to <a href="#section-7.10">Section 7.10</a> and
<a href="#section-4.3.3">Section 4.3.3</a> for details.
<span class="grey">Doria, et al. Standards Track [Page 61]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-62" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
o 1 - This policy specifies that the FE MUST actively send a
Heartbeat message if it reaches the time interval assigned by the
FE HI as long as no other messages were sent from the FE to the CE
during that interval as described in <a href="#section-4.3.3">Section 4.3.3</a>.
o Others - Reserved.
<span class="h6"><a class="selflink" id="section-7.3.1.1.2.7" href="#section-7.3.1.1.2.7">7.3.1.1.2.7</a>. FEHI</span>
FE Heartbeat Interval (FE HI) - The time interval the FE should use
to send HB as long as no other messages were sent from the FE to the
CE during that interval as described in <a href="#section-4.3.3">Section 4.3.3</a>. The default
value for an FE HI is 500 ms.
<span class="h6"><a class="selflink" id="section-7.3.1.1.2.8" href="#section-7.3.1.1.2.8">7.3.1.1.2.8</a>. CEID</span>
Primary CEID - The CEID with which the FE is associated.
<span class="h6"><a class="selflink" id="section-7.3.1.1.2.9" href="#section-7.3.1.1.2.9">7.3.1.1.2.9</a>. LastCEID</span>
Last Primary CEID - The CEID of the last CE with which the FE
associated. This CE ID is reported to the new Primary CEID.
<span class="h6"><a class="selflink" id="section-7.3.1.1.2.10" href="#section-7.3.1.1.2.10">7.3.1.1.2.10</a>. BackupCEs</span>
The list of backup CEs an FE can use as backups. Refer to <a href="#section-8">Section 8</a>
for details.
<span class="h6"><a class="selflink" id="section-7.3.1.1.2.11" href="#section-7.3.1.1.2.11">7.3.1.1.2.11</a>. CEFailoverPolicy</span>
CE failover policy - This specifies the behavior of the FE when the
association with the CE is lost. There is a very tight relation
between CE failover policy and <a href="#section-7.3.1.1.2.8">Section 7.3.1.1.2.8</a>,
<a href="#section-7.3.1.1.2.10">Section 7.3.1.1.2.10</a>, <a href="#section-7.3.1.1.2.12">Section 7.3.1.1.2.12</a>, and <a href="#section-8">Section 8</a>. When an
association is lost, depending on configuration, one of the policies
listed below is activated.
o 0 (default) - The FE should stop functioning immediately and
transition to FE OperDisable.
o 1 - The FE should continue running and do what it can even without
an associated CE. This basically requires that the FE support CE
Graceful restart (and defines such support in its capabilities).
If the CEFTI expires before the FE re-associates with either the
primary CEID (<a href="#section-7.3.1.1.2.8">Section 7.3.1.1.2.8</a>) or one of possibly several
backup CEs (<a href="#section-7.3.1.1.2.10">Section 7.3.1.1.2.10</a>), the FE will go operationally
down.
<span class="grey">Doria, et al. Standards Track [Page 62]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-63" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
o Others - Reserved.
<span class="h6"><a class="selflink" id="section-7.3.1.1.2.12" href="#section-7.3.1.1.2.12">7.3.1.1.2.12</a>. CEFTI</span>
CE Failover Timeout Interval (CEFTI) - The time interval associated
with the CE failover policy case '0' and '1'. The default value is
set to 300 seconds. Note that it is advisable to set the CEFTI value
much higher than the CE Heartbeat Dead Interval (CE HDI) since the
effect of expiring this parameter is devastating to the operation of
the FE.
<span class="h6"><a class="selflink" id="section-7.3.1.1.2.13" href="#section-7.3.1.1.2.13">7.3.1.1.2.13</a>. FERestartPolicy</span>
FE restart policy - This specifies the behavior of the FE during an
FE restart. The restart may be from an FE failure or other reasons
that have made the FE down and then need to restart. The values are
defined as follows:
o 0(default)- Restart the FE from scratch. In this case, the FE
should start from the pre-association phase.
o Others - Reserved for future use.
<span class="h4"><a class="selflink" id="section-7.3.2" href="#section-7.3.2">7.3.2</a>. FE Object LFB</span>
The FE Object LFB is a logical entity in each FE and contains
components relative to the FE itself, and not to the operation of the
ForCES protocol.
The formal definition of the FE Object LFB can be found in [<a href="./rfc5812" title=""Forwarding and Control Element Separation (ForCES) Forwarding Element Model"">RFC5812</a>].
The model captures the high-level properties of the FE that the CE
needs to know to begin working with the FE. The class ID for this
LFB class is also assigned in [<a href="./rfc5812" title=""Forwarding and Control Element Separation (ForCES) Forwarding Element Model"">RFC5812</a>]. The singular instance of
this class will always exist, and will always have instance ID 0x1
within its class. It is common, although not mandatory, for a CE to
fetch much of the component and capability information from this LFB
instance when the CE begins controlling the operation of the FE.
<span class="h3"><a class="selflink" id="section-7.4" href="#section-7.4">7.4</a>. Semantics of Message Direction</span>
Recall: The PL provides a master(CE)-slave(FE) relationship. The
LFBs reside at the FE and are controlled by CE.
When messages go from the CE, the LFB selector (class and instance)
refers to the destination LFB selection that resides in the FE.
When messages go from the FE to the CE, the LFB selector (class and
instance) refers to the source LFB selection that resides in the FE.
<span class="grey">Doria, et al. Standards Track [Page 63]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-64" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h3"><a class="selflink" id="section-7.5" href="#section-7.5">7.5</a>. Association Messages</span>
The ForCES Association messages are used to establish and tear down
associations between FEs and CEs.
<span class="h4"><a class="selflink" id="section-7.5.1" href="#section-7.5.1">7.5.1</a>. Association Setup Message</span>
This message is sent by the FE to the CE to set up a ForCES
association between them.
Message transfer direction:
FE to CE
Message header:
The Message Type in the header is set to MessageType=
'AssociationSetup'. The ACK flag in the header MUST be ignored,
and the Association Setup message always expects to get a response
from the message receiver (CE), whether or not the setup is
successful. The correlator field in the header is set, so that FE
can correlate the response coming back from the CE correctly. The
FE may set the source ID to 0 in the header to request that the CE
should assign an FE ID for the FE in the Setup Response message.
Message body:
The Association Setup message body optionally consists of zero,
one, or two LFBselect TLVs, as described in <a href="#section-7.1.5">Section 7.1.5</a>. The
Association Setup message only operates on the FE Object and FE
Protocol LFBs; therefore, the LFB class ID in the LFBselect TLV
only points to these two kinds of LFBs.
The OPER-TLV in the LFBselect TLV is defined as a 'REPORT'
operation. More than one component may be announced in this
message using the REPORT operation to let the FE declare its
configuration parameters in an unsolicited manner. These may
contain components suggesting values such as the FE HB Interval or
the FEID. The OPER-TLV used is defined below.
<span class="grey">Doria, et al. Standards Track [Page 64]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-65" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
OPER-TLV for Association Setup:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type = REPORT | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| PATH-DATA-TLV for REPORT |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 23: OPER-TLV
Type:
Only one operation type is defined for the Association Setup
message:
Type = "REPORT" - This type of operation is for the FE to report
something to the CE.
PATH-DATA-TLV for REPORT:
This is generically a PATH-DATA-TLV format that has been defined
in <a href="#section-7">Section 7</a> in the PATH-DATA BNF definition. The PATH-DATA-TLV
for the REPORT operation MAY contain FULLDATA-TLV(s) but SHALL NOT
contain any RESULT-TLV in the data format. The RESULT-TLV is
defined in <a href="#section-7.1.7">Section 7.1.7</a> and the FULLDATA-TLV is defined in
<a href="#section-7.1.8">Section 7.1.8</a>.
<span class="grey">Doria, et al. Standards Track [Page 65]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-66" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
To better illustrate the above PDU format, a tree structure for the
format is shown below:
main hdr (type = Association Setup)
|
|
+--- T = LFBselect
| |
| +-- LFBCLASSID = FE object
| |
| |
| +-- LFBInstance = 0x1
|
+--- T = LFBselect
|
+-- LFBCLASSID = FE Protocol object
|
|
+-- LFBInstance = 0x1
|
+---OPER-TLV = REPORT
|
+-- Path-data to one or more components
Figure 24: PDU Format for Association Setup Message
<span class="h4"><a class="selflink" id="section-7.5.2" href="#section-7.5.2">7.5.2</a>. Association Setup Response Message</span>
This message is sent by the CE to the FE in response to the Setup
message. It indicates to the FE whether or not the setup is
successful, i.e., whether an association is established.
Message transfer direction:
CE to FE
Message header:
The Message Type in the header is set to MessageType=
'AssociationSetupResponse'. The ACK flag in the header MUST be
ignored, and the Setup Response message never expects to get any more
responses from the message receiver (FE). The destination ID in the
header will be set to the source ID in the corresponding Association
Setup message, unless that source ID was 0. If the corresponding
source ID was 0, then the CE will assign an FE ID value and use that
value for the destination ID.
<span class="grey">Doria, et al. Standards Track [Page 66]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-67" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type = ASRresult | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Association Setup Result |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 25: ASResult OPER-TLV
Type (16 bits):
The type of the TLV is "ASResult".
Length (16 bits):
Length of the TLV including the T and L fields, in octets.
Association Setup result (32 bits):
This indicates whether the Setup message was successful or whether
the FE request was rejected by the CE. The defined values are:
0 = success
1 = FE ID invalid
2 = permission denied
<span class="grey">Doria, et al. Standards Track [Page 67]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-68" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
To better illustrate the above PDU format, a tree structure for the
format is shown below:
main hdr (type = Association Setup Response)
|
|
+--- T = ASResult-TLV
Figure 26: PDU Format for Association Setup Response Message
<span class="h4"><a class="selflink" id="section-7.5.3" href="#section-7.5.3">7.5.3</a>. Association Teardown Message</span>
This message can be sent by the FE or CE to any ForCES element to end
its ForCES association with that element.
Message transfer direction:
CE to FE, or FE to CE (or CE to CE)
Message Header:
The Message Type in the header is set to MessageType=
"AssociationTeardown". The ACK flag MUST be ignored. The correlator
field in the header MUST be set to zero and MUST be ignored by the
receiver.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type = ASTreason | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Teardown Reason |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 27: ASTreason-TLV
Type (16 bits):
The type of the TLV is "ASTreason".
Length (16 bits):
Length of the TLV including the T and L fields, in octets.
Teardown reason (32 bits):
This indicates the reason why the association is being terminated.
Several reason codes are defined as follows.
<span class="grey">Doria, et al. Standards Track [Page 68]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-69" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
0 - normal teardown by administrator
1 - error - loss of heartbeats
2 - error - out of bandwidth
3 - error - out of memory
4 - error - application crash
255 - error - other or unspecified
To better illustrate the above PDU format, a tree structure for the
format is shown below:
main hdr (type = Association Teardown)
|
|
+--- T = ASTreason-TLV
Figure 28: PDU Format for Association Teardown Message
<span class="h3"><a class="selflink" id="section-7.6" href="#section-7.6">7.6</a>. Configuration Messages</span>
The ForCES Configuration messages are used by CE to configure the FEs
in a ForCES NE and report the results back to the CE.
<span class="h4"><a class="selflink" id="section-7.6.1" href="#section-7.6.1">7.6.1</a>. Config Message</span>
This message is sent by the CE to the FE to configure LFB components
in the FE. This message is also used by the CE to subscribe/
unsubscribe to LFB events.
As usual, a Config message is composed of a common header followed by
a message body that consists of one or more TLV data formats.
Detailed description of the message is as follows:
Message transfer direction:
CE to FE
Message header:
The Message Type in the header is set to MessageType= 'Config'. The
ACK flag in the header can be set to any value defined in
<a href="#section-6.1">Section 6.1</a>, to indicate whether or not a response from the FE is
expected by the message.
<span class="grey">Doria, et al. Standards Track [Page 69]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-70" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
OPER-TLV for Config:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| PATH-DATA-TLV |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 29: OPER-TLV for Config
Type:
The operation type for Config message. Two types of operations for
the Config message are defined:
Type = "SET" - This operation is to set LFB components
Type = "SET-PROP" - This operation is to set LFB component
properties.
Type = "DEL" - This operation is to delete some LFB components.
Type = "COMMIT" - This operation is sent to the FE to commit in a
2pc transaction. A COMMIT TLV is an empty TLV, i.e., it
has no "V"alue. In other words, there is a length of 4
(which is for the header only).
Type = "TRCOMP" - This operation is sent to the FE to mark the
success from an NE perspective of a 2pc transaction. A
TRCOMP TLV is an empty TLV, i.e., it has no "V"alue. In
other words, there is a length of 4 (which is for the
header only).
PATH-DATA-TLV:
This is generically a PATH-DATA-TLV format that has been defined in
<a href="#section-7">Section 7</a> in the PATH-DATA-TLV BNF definition. The restriction on
the use of PATH-DATA-TLV for SET/SET-PROP operation is that it MUST
contain either FULLDATA-TLV or SPARSEDATA-TLV(s), but MUST NOT
contain any RESULT-TLV. The restriction on the use of PATH-DATA-TLV
for DEL operation is it MAY contain FULLDATA-TLV or
SPARSEDATA-TLV(s), but MUST NOT contain any RESULT-TLV. The
RESULT-TLV is defined in <a href="#section-7.1.7">Section 7.1.7</a> and FULLDATA-TLVs and
SPARSEDATA-TLVs are defined in <a href="#section-7.1.8">Section 7.1.8</a>.
<span class="grey">Doria, et al. Standards Track [Page 70]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-71" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
Note: For Event subscription, the events will be defined by the
individual LFBs.
To better illustrate the above PDU format, a tree structure for the
format is shown below:
main hdr (type = Config)
|
|
+--- T = LFBselect
. |
. +-- LFBCLASSID = target LFB class
. |
|
+-- LFBInstance = target LFB instance
|
|
+-- T = operation { SET }
| |
| +-- // one or more path targets
| // associated with FULLDATA-TLV or SPARSEDATA-TLV(s)
|
+-- T = operation { DEL }
| |
| +-- // one or more path targets
|
+-- T = operation { COMMIT } //A COMMIT TLV is an empty TLV
.
.
Figure 30: PDU Format for Configuration Message
<span class="h4"><a class="selflink" id="section-7.6.2" href="#section-7.6.2">7.6.2</a>. Config Response Message</span>
This message is sent by the FE to the CE in response to the Config
message. It indicates whether or not the Config was successful on
the FE and also gives a detailed response regarding the configuration
result of each component.
Message transfer direction:
FE to CE
<span class="grey">Doria, et al. Standards Track [Page 71]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-72" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
Message header:
The Message Type in the header is set to MessageType= 'Config
Response'. The ACK flag in the header is always ignored, and the
Config Response message never expects to get any further response
from the message receiver (CE).
OPER-TLV for Config Response:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| PATH-DATA-TLV |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 31: OPER-TLV for Config Response
Type:
The operation type for Config Response message. Two types of
operations for the Config Response message are defined:
Type = "SET-RESPONSE" - This operation is for the response of the
SET operation of LFB components.
Type = "SET-PROP-RESPONSE" - This operation is for the response
of the SET-PROP operation of LFB component properties.
Type = "DEL-RESPONSE" - This operation is for the response of the
DELETE operation of LFB components.
Type = "COMMIT-RESPONSE" - This operation is sent to the CE to
confirm a commit success in a 2pc transaction. A
COMMIT-RESPONSE TLV MUST contain a RESULT-TLV indicating
success or failure.
PATH-DATA-TLV:
This is generically a PATH-DATA-TLV format that has been defined in
<a href="#section-7">Section 7</a> in the PATH-DATA-TLV BNF definition. The restriction on
the use of PATH-DATA-TLV for SET-RESPONSE operation is that it MUST
contain RESULT-TLV(s). The restriction on the use of PATH-DATA-TLV
for DEL-RESPONSE operation is it also MUST contain RESULT-TLV(s).
The RESULT-TLV is defined in <a href="#section-7.1.7">Section 7.1.7</a>.
<span class="grey">Doria, et al. Standards Track [Page 72]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-73" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
To better illustrate the above PDU format, a tree structure for the
format is shown below:
main hdr (type = ConfigResponse)
|
|
+--- T = LFBselect
. |
. +-- LFBCLASSID = target LFB class
. |
|
+-- LFBInstance = target LFB instance
|
|
+-- T = operation { SET-RESPONSE }
| |
| +-- // one or more path targets
| // associated with FULL or SPARSEDATA-TLV(s)
|
+-- T = operation { DEL-RESPONSE }
| |
| +-- // one or more path targets
|
+-- T = operation { COMMIT-RESPONSE }
| |
| +-- RESULT-TLV
Figure 32: PDU Format for Config Response Message
<span class="h3"><a class="selflink" id="section-7.7" href="#section-7.7">7.7</a>. Query Messages</span>
The ForCES Query messages are used by the CE to query LFBs in the FE
for information like LFB components, capabilities, statistics, etc.
Query messages include the Query message and the Query Response
message.
<span class="h4"><a class="selflink" id="section-7.7.1" href="#section-7.7.1">7.7.1</a>. Query Message</span>
A Query message is composed of a common header and a message body
that consists of one or more TLV data formats. Detailed description
of the message is as follows:
Message transfer direction:
from CE to FE
<span class="grey">Doria, et al. Standards Track [Page 73]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-74" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
Message header:
The Message Type in the header is set to MessageType= 'Query'. The
ACK flag in the header is always ignored, and a full response for a
Query message is always expected. The Correlator field in the header
is set, so that the CE can locate the response back from FE
correctly.
OPER-TLV for Query:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type = GET/GET-PROP | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| PATH-DATA-TLV for GET/GET-PROP |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 33: TLV for Query
Type:
The operation type for query. Two operation types are defined:
Type = "GET" - This operation is to request to get LFB
components.
Type = "GET-PROP" - This operation is to request to get LFB
component properties.
PATH-DATA-TLV for GET/GET-PROP:
This is generically a PATH-DATA-TLV format that has been defined in
<a href="#section-7">Section 7</a> in the PATH-DATA-TLV BNF definition. The restriction on
the use of PATH-DATA-TLV for GET/GET-PROP operation is it MUST NOT
contain any SPARSEDATA-TLV or FULLDATA- TLV and RESULT-TLV in the
data format.
<span class="grey">Doria, et al. Standards Track [Page 74]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-75" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
To better illustrate the above PDU format, a tree structure for the
format is shown below:
main hdr (type = Query)
|
|
+--- T = LFBselect
. |
. +-- LFBCLASSID = target LFB class
. |
|
+-- LFBInstance = target LFB instance
|
|
+-- T = operation { GET }
| |
| +-- // one or more path targets
|
+-- T = operation { GET }
. |
. +-- // one or more path targets
.
Figure 34: PDU Format for Query Message
<span class="h4"><a class="selflink" id="section-7.7.2" href="#section-7.7.2">7.7.2</a>. Query Response Message</span>
When receiving a Query message, the receiver should process the
message and come up with a query result. The receiver sends the
query result back to the message sender by use of the Query Response
message. The query result can be the information being queried if
the query operation is successful, or can also be error codes if the
query operation fails, indicating the reasons for the failure.
A Query Response message is also composed of a common header and a
message body consisting of one or more TLVs describing the query
result. Detailed description of the message is as follows:
Message transfer direction:
from FE to CE
Message header:
The Message Type in the header is set to MessageType=
'QueryResponse'. The ACK flag in the header is ignored. As a
response itself, the message does not expect a further response.
<span class="grey">Doria, et al. Standards Track [Page 75]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-76" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
OPER-TLV for Query Response:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Type = GET-RESPONSE/GET-PROP-RESPONSE| Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| PATH-DATA-TLV for GET-RESPONSE/GET-PROP-RESPONSE |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 35: TLV for Query Response
Type:
The operation type for query response. One operation type is
defined:
Type = "GET-RESPONSE" - This operation is for the response of the
GET operation of LFB components.
Type = "GET-PROP-RESPONSE" - This operation is for the response
of the GET-PROP operation of LFB components.
PATH-DATA-TLV for GET-RESPONSE/GET-PROP-RESPONSE:
This is generically a PATH-DATA-TLV format that has been defined in
<a href="#section-7">Section 7</a> in the PATH-DATA-TLV BNF definition. The PATH-DATA- TLV
for the GET-RESPONSE operation MAY contain SPARSEDATA-TLV,
FULLDATA-TLV, and/or RESULT-TLV(s) in the data encoding. The
RESULT-TLV is defined in <a href="#section-7.1.7">Section 7.1.7</a> and the SPARSEDATA-TLVs and
FULLDATA-TLVs are defined in <a href="#section-7.1.8">Section 7.1.8</a>.
<span class="grey">Doria, et al. Standards Track [Page 76]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-77" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
To better illustrate the above PDU format, a tree structure for the
format is shown below:
main hdr (type = QueryResponse)
|
|
+--- T = LFBselect
. |
. +-- LFBCLASSID = target LFB class
. |
|
+-- LFBInstance = target LFB instance
|
|
+-- T = operation { GET-RESPONSE }
| |
| +-- // one or more path targets
|
+-- T = operation { GET-PROP-RESPONSE }
. |
. +-- // one or more path targets
.
Figure 36: PDU Format for Query Response Message
<span class="h3"><a class="selflink" id="section-7.8" href="#section-7.8">7.8</a>. Event Notification Message</span>
Event Notification message is used by the FE to asynchronously notify
the CE of events that happen in the FE.
All events that can be generated in an FE are subscribable by the CE.
The CE can subscribe to an event via a Config message with the SET-
PROP operation, where the included path specifies the event, as
defined by the LFB Library and described by the FE Model.
As usual, an Event Notification message is composed of a common
header and a message body that consists of one or more TLV data
formats. Detailed description of the message is as follows:
Message transfer direction:
FE to CE
<span class="grey">Doria, et al. Standards Track [Page 77]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-78" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
Message header:
The Message Type in the message header is set to
MessageType = 'EventNotification'. The ACK flag in the header MUST
be ignored by the CE, and the Event Notification message does not
expect any response from the receiver.
OPER-TLV for Event Notification:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type = REPORT | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| PATH-DATA-TLV for REPORT |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 37: TLV for Event Notification
Type:
Only one operation type is defined for the Event Notification
message:
Type = "REPORT" - This type of operation is for the FE to report
something to the CE.
PATH-DATA-TLV for REPORT:
This is generically a PATH-DATA-TLV format that has been defined in
<a href="#section-7">Section 7</a> in the PATH-DATA-TLV BNF definition. The PATH-DATA- TLV
for the REPORT operation MAY contain FULLDATA-TLV or
SPARSEDATA-TLV(s) but MUST NOT contain any RESULT-TLV in the data
format.
<span class="grey">Doria, et al. Standards Track [Page 78]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-79" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
To better illustrate the above PDU format, a tree structure for the
format is shown below:
main hdr (type = Event Notification)
|
|
+--- T = LFBselect
|
+-- LFBCLASSID = target LFB class
|
|
+-- LFBInstance = target LFB instance
|
|
+-- T = operation { REPORT }
| |
| +-- // one or more path targets
| // associated with FULL/SPARSE DATA TLV(s)
+-- T = operation { REPORT }
. |
. +-- // one or more path targets
. // associated with FULL/SPARSE DATA TLV(s)
Figure 38: PDU Format for Event Notification Message
<span class="h3"><a class="selflink" id="section-7.9" href="#section-7.9">7.9</a>. Packet Redirect Message</span>
A Packet Redirect message is used to transfer data packets between
the CE and FE. Usually, these data packets are control packets, but
they may be just data path packets that need further (exception or
high-touch) processing. It is also feasible that this message
carries no data packets and rather just meta data.
The Packet Redirect message data format is formatted as follows:
Message transfer direction:
CE to FE or FE to CE
Message header:
The Message Type in the header is set to MessageType=
'PacketRedirect'.
<span class="grey">Doria, et al. Standards Track [Page 79]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-80" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
Message body:
This consists of one or more TLVs that contain or describe the packet
being redirected. The TLV is specifically a Redirect TLV (with the
TLV Type="Redirect"). Detailed data format of a Redirect TLV for a
Packet Redirect message is as follows:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type = Redirect | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Meta Data TLV |
. .
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Redirect Data TLV |
. .
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 39: Redirect_Data TLV
Meta Data TLV:
This is a TLV that specifies meta data associated with followed
redirected data. The TLV is as follows:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type = METADATA-TLV | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Meta Data ILV |
. .
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
~ ... ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Meta Data ILV |
. .
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 40: METADATA-TLV
<span class="grey">Doria, et al. Standards Track [Page 80]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-81" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
Meta Data ILV:
This is an Identifier-Length-Value format that is used to describe
one meta data. The ILV has the format as:
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Meta Data ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Meta Data Value |
. .
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 41: Meta Data ILV
where Meta Data ID is an identifier for the meta data, which is
statically assigned by the LFB definition.
Redirect Data TLV:
This is a TLV describing one packet of data to be directed via the
redirect operation. The TLV format is as follows:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type = REDIRECTDATA-TLV | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Redirected Data |
. .
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 42: Redirect Data TLV
Redirected Data:
This field contains the packet that is to be redirected in network
byte order. The packet should be 32 bits aligned as is the data for
all TLVs. The meta data infers what kind of packet is carried in
value field and therefore allows for easy decoding of data
encapsulated.
<span class="grey">Doria, et al. Standards Track [Page 81]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-82" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
To better illustrate the above PDU format, a tree structure for the
format is shown below:
main hdr (type = PacketRedirect)
|
|
+--- T = Redirect
. |
. +-- T = METADATA-TLV
| |
| +-- Meta Data ILV
| |
| +-- Meta Data ILV
| .
| .
|
+-- T = REDIRECTDATA-TLV
|
+-- // Redirected Data
Figure 43: PDU Format for Packet Redirect Message
<span class="h3"><a class="selflink" id="section-7.10" href="#section-7.10">7.10</a>. Heartbeat Message</span>
The Heartbeat (HB) message is used for one ForCES element (FE or CE)
to asynchronously notify one or more other ForCES elements in the
same ForCES NE on its liveness. <a href="#section-4.3.3">Section 4.3.3</a> describes the traffic-
sensitive approach used.
A Heartbeat message is sent by a ForCES element periodically. The
parameterization and policy definition for heartbeats for an FE are
managed as components of the FE Protocol Object LFB, and can be set
by CE via a Config message. The Heartbeat message is a little
different from other protocol messages in that it is only composed of
a common header, with the message body left empty. A detailed
description of the message is as follows:
Message transfer direction:
FE to CE or CE to FE
Message header:
The Message Type in the message header is set to MessageType =
'Heartbeat'. <a href="#section-4.3.3">Section 4.3.3</a> describes the HB mechanisms used. The
ACK flag in the header MUST be set to either 'NoACK' or 'AlwaysACK'
when the HB is sent.
<span class="grey">Doria, et al. Standards Track [Page 82]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-83" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
* When set to 'NoACK', the HB is not soliciting for a response.
* When set to 'AlwaysACK', the HB Message sender is always
expecting a response from its receiver. According to the HB
policies defined in <a href="#section-7.3.1">Section 7.3.1</a>, only the CE can send such
an HB message to query FE liveness. For simplicity and
because of the minimal nature of the HB message, the response
to an HB message is another HB message, i.e., no specific HB
Response message is defined. Whenever an FE receives an HB
message marked with 'AlwaysACK' from the CE, the FE MUST send
an HB message back immediately. The HB message sent by the
FE in response to the 'AlwaysACK' MUST modify the source and
destination IDs so that the ID of the FE is the source ID and
the CE ID of the sender is the destination ID, and MUST
change the ACK information to 'NoACK'. A CE MUST NOT respond
to an HB message with 'AlwaysACK' set.
* When set to anything else other than 'NoACK' or 'AlwaysACK',
the HB message is treated as if it was a 'NoACK'.
The correlator field in the HB message header SHOULD be set
accordingly when a response is expected so that a receiver can
correlate the response correctly. The correlator field MAY be
ignored if no response is expected.
Message body:
The message body is empty for the Heartbeat message.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. High Availability Support</span>
The ForCES protocol provides mechanisms for CE redundancy and
failover, in order to support High Availability as defined in
[<a href="./rfc3654" title=""Requirements for Separation of IP Control and Forwarding"">RFC3654</a>]. FE redundancy and FE to FE interaction is currently out
of scope of this document. There can be multiple redundant CEs and
FEs in a ForCES NE. However, at any one time only one primary CE can
control the FEs though there can be multiple secondary CEs. The FE
and the CE PL are aware of the primary and secondary CEs. This
information (primary, secondary CEs) is configured in the FE and in
the CE PLs during pre-association by the FEM and the CEM
respectively. Only the primary CE sends control messages to the FEs.
<span class="h3"><a class="selflink" id="section-8.1" href="#section-8.1">8.1</a>. Relation with the FE Protocol</span>
High Availability parameterization in an FE is driven by configuring
the FE Protocol Object LFB (refer to <a href="#appendix-B">Appendix B</a> and <a href="#section-7.3.1">Section 7.3.1</a>).
The FE Heartbeat Interval, CE Heartbeat Dead Interval, and CE
<span class="grey">Doria, et al. Standards Track [Page 83]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-84" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
Heartbeat policy help in detecting connectivity problems between an
FE and CE. The CE failover policy defines the reaction on a detected
failure.
Figure 44 extends the state machine illustrated in Figure 4 to allow
for new states that facilitate connection recovery.
(CE issues Teardown || +-----------------+
Lost association) && | Pre-association |
CE failover policy = 0 | (Association |
+------------>-->-->| in +<----+
| | progress) | |
| CE issues +--------+--------+ |
| Association | | CFTI
| Setup V | timer
| ___________________+ | expires
| | |
| V ^
+-+-----------+ +-------+-----+
| | | Not |
| | (CE issues Teardown || | Associated |
| | Lost association) && | |
| Associated | CE failover policy = 1 | (May |
| | | Continue |
| |---------->------->------>| Forwarding)|
| | | |
+-------------+ +-------------+
^ V
| |
| CE issues |
| Association |
| Setup |
+_________________________________________+
Figure 44: FE State Machine Considering HA
<a href="#section-4.2">Section 4.2</a> describes transitions between the pre-association,
associated, and not associated states.
When communication fails between the FE and CE (which can be caused
by either the CE or link failure but not FE related), either the TML
on the FE will trigger the FE PL regarding this failure or it will be
detected using the HB messages between FEs and CEs. The
communication failure, regardless of how it is detected, MUST be
considered as a loss of association between the CE and corresponding
FE.
<span class="grey">Doria, et al. Standards Track [Page 84]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-85" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
If the FE's FEPO CE failover policy is configured to mode 0 (the
default), it will immediately transition to the pre-association
phase. This means that if association is again established, all FE
state will need to be re-established.
If the FE's FEPO CE failover policy is configured to mode 1, it
indicates that the FE is capable of HA restart recovery. In such a
case, the FE transitions to the not associated state and the CEFTI
timer is started. The FE MAY continue to forward packets during this
state. It MAY also recycle through any configured secondary CEs in a
round-robin fashion. It first adds its primary CE to the tail of
backup CEs and sets its primary CE to be the first secondary. It
then attempts to associate with the CE designated as the new primary
CE. If it fails to re-associate with any CE and the CEFTI expires,
the FE then transitions to the pre-association state.
If the FE, while in the not associated state, manages to reconnect to
a new primary CE before CEFTI expires, it transitions to the
associated state. Once re-associated, the FE tries to recover any
state that may have been lost during the not associated state. How
the FE achieves this is out of scope for this document.
Figure 45 below illustrates the ForCES message sequences that the FE
uses to recover the connection.
FE CE Primary CE Secondary
| | |
| Asso Estb,Caps exchg | |
1 |<--------------------->| |
| | |
| All msgs | |
2 |<--------------------->| |
| | |
| | |
| FAILURE |
| |
| Asso Estb,Caps exchange |
3 |<------------------------------------------>|
| |
| Event Report (pri CE down) |
4 |------------------------------------------->|
| |
| All Msgs |
5 |<------------------------------------------>|
Figure 45: CE Failover for Report Primary Mode
<span class="grey">Doria, et al. Standards Track [Page 85]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-86" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
A CE-to-CE synchronization protocol would be needed to support fast
failover as well as to address some of the corner cases; however,
this will not be defined by the ForCES protocol as it is out of scope
for this specification.
An explicit message (a Config message setting primary CE component in
the FE Protocol Object) from the primary CE can also be used to
change the primary CE for an FE during normal protocol operation.
Also note that the FEs in a ForCES NE could also use a multicast CE
ID, i.e., they could be associated with a group of CEs (this assumes
the use of a CE-CE synchronization protocol, which is out of scope
for this specification). In this case, the loss of association would
mean that communication with the entire multicast group of CEs has
been lost. The mechanisms described above will apply for this case
as well during the loss of association. If, however, the secondary
CE was also using the multicast CE ID that was lost, then the FE will
need to form a new association using a different CE ID. If the
capability exists, the FE MAY first attempt to form a new association
with the original primary CE using a different non-multicast CE ID.
<span class="h3"><a class="selflink" id="section-8.2" href="#section-8.2">8.2</a>. Responsibilities for HA</span>
TML level:
1. The TML controls logical connection availability and failover.
2. The TML also controls peer HA management.
At this level, control of all lower layers, for example, transport
level (such as IP addresses, MAC addresses, etc.) and associated
links going down are the role of the TML.
PL level:
All other functionality, including configuring the HA behavior during
setup, the CE IDs used to identify primary and secondary CEs,
protocol messages used to report CE failure (Event Report), Heartbeat
messages used to detect association failure, messages to change the
primary CE (Config), and other HA-related operations described
before, are the PL responsibility.
To put the two together, if a path to a primary CE is down, the TML
would take care of failing over to a backup path, if one is
available. If the CE is totally unreachable, then the PL would be
informed and it would take the appropriate actions described earlier.
<span class="grey">Doria, et al. Standards Track [Page 86]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-87" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Security Considerations</span>
The ForCES framework document <a href="./rfc3746#section-8">[RFC3746], Section 8</a>, goes into
extensive detail on a variety of security threats, the possible
effects of those threats on the protocol, and responses to those
threats. This document does not repeat that discussion; the reader
is referred to the ForCES framework document [<a href="./rfc3746" title=""Forwarding and Control Element Separation (ForCES) Framework"">RFC3746</a>] for those
details and how the ForCES architecture addresses them.
ForCES PL uses security services provided by the ForCES TML. The TML
provides security services such as endpoint authentication service,
message authentication service, and confidentiality service.
Endpoint authentication service is invoked at the time of the pre-
association connection establishment phase and message authentication
is performed whenever the FE or CE receives a packet from its peer.
The following are the general security mechanisms that need to be in
place for ForCES PL.
o Security mechanisms are session controlled -- that is, once the
security is turned on depending upon the chosen security level (No
Security, Authentication, Confidentiality), it will be in effect
for the entire duration of the session.
o An operator should configure the same security policies for both
primary and backup FEs and CEs (if available). This will ensure
uniform operations and avoid unnecessary complexity in policy
configuration.
<span class="h3"><a class="selflink" id="section-9.1" href="#section-9.1">9.1</a>. No Security</span>
When "No Security" is chosen for ForCES protocol communication, both
endpoint authentication and message authentication service needs to
be performed by ForCES PL. Both these mechanism are weak and do not
involve cryptographic operation. An operator can choose "No
Security" level when the ForCES protocol endpoints are within a
single box, for example.
In order to have interoperable and uniform implementation across
various security levels, each CE and FE endpoint MUST implement this
level.
What is described below (in <a href="#section-9.1.1">Section 9.1.1</a> and <a href="#section-9.1.2">Section 9.1.2</a>) are
error checks and not security procedures. The reader is referred to
<a href="#section-9.2">Section 9.2</a> for security procedures.
<span class="grey">Doria, et al. Standards Track [Page 87]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-88" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h4"><a class="selflink" id="section-9.1.1" href="#section-9.1.1">9.1.1</a>. Endpoint Authentication</span>
Each CE and FE PL maintains a list of associations as part of its
configuration. This is done via the CEM and FEM interfaces. An FE
MUST connect to only those CEs that are configured via the FEM;
similarly, a CE should accept the connection and establish
associations for the FEs which are configured via the CEM. The CE
should validate the FE identifier before accepting the connections
during the pre-association phase.
<span class="h4"><a class="selflink" id="section-9.1.2" href="#section-9.1.2">9.1.2</a>. Message Authentication</span>
When a CE or FE initiates a message, the receiving endpoint MUST
validate the initiator of the message by checking the common header
CE or FE identifiers. This will ensure proper protocol functioning.
This extra processing step is recommended even when the underlying
TML layer security services exist.
<span class="h3"><a class="selflink" id="section-9.2" href="#section-9.2">9.2</a>. ForCES PL and TML Security Service</span>
This section is applicable if an operator wishes to use the TML
security services. A ForCES TML MUST support one or more security
services such as endpoint authentication service, message
authentication service, and confidentiality service, as part of TML
security layer functions. It is the responsibility of the operator
to select an appropriate security service and configure security
policies accordingly. The details of such configuration are outside
the scope of the ForCES PL and are dependent on the type of transport
protocol and the nature of the connection.
All these configurations should be done prior to starting the CE and
FE.
When certificates-based authentication is being used at the TML, the
certificate can use a ForCES-specific naming structure as certificate
names and, accordingly, the security policies can be configured at
the CE and FE.
The reader is asked to refer to specific TML documents for details on
the security requirements specific to that TML.
<span class="h4"><a class="selflink" id="section-9.2.1" href="#section-9.2.1">9.2.1</a>. Endpoint Authentication Service</span>
When TML security services are enabled, the ForCES TML performs
endpoint authentication. Security association is established between
CE and FE and is transparent to the ForCES PL.
<span class="grey">Doria, et al. Standards Track [Page 88]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-89" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h4"><a class="selflink" id="section-9.2.2" href="#section-9.2.2">9.2.2</a>. Message Authentication Service</span>
This is a TML-specific operation and is transparent to the ForCES PL.
For details, refer to <a href="#section-5">Section 5</a>.
<span class="h4"><a class="selflink" id="section-9.2.3" href="#section-9.2.3">9.2.3</a>. Confidentiality Service</span>
This is a TML-specific operation and is transparent to the ForCES PL.
For details, refer to <a href="#section-5">Section 5</a>.
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. Acknowledgments</span>
The authors of this document would like to acknowledge and thank the
ForCES Working Group and especially the following: Furquan Ansari,
Alex Audu, Steven Blake, Shuchi Chawla, Alan DeKok, Ellen M.
Deleganes, Xiaoyi Guo, Yunfei Guo, Evangelos Haleplidis, Zsolt
Haraszti, Fenggen Jia, John C. Lin, Alistair Munro, Jeff Pickering,
T. Sridhlar, Guangming Wang, Chaoping Wu, and Lily L. Yang, for their
contributions. We would also like to thank David Putzolu and Patrick
Droz for their comments and suggestions on the protocol and for their
infinite patience. We would also like to thank Sue Hares and Alia
Atlas for extensive reviews of the document.
Alia Atlas did a wonderful job of shaping the document to make it
more readable by providing the IESG feedback.
Ross Callon was instrumental in getting us over major humps to
getting this document published.
The editors have used the xml2rfc [<a href="./rfc2629" title=""Writing I-Ds and RFCs using XML"">RFC2629</a>] tools in creating this
document and are very grateful for the existence and quality of these
tools. The editor is also grateful to Elwyn Davies for his help in
correcting the XML source of this document.
<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>. References</span>
<span class="h3"><a class="selflink" id="section-11.1" href="#section-11.1">11.1</a>. Normative References</span>
[<a id="ref-RFC2119">RFC2119</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-RFC2914">RFC2914</a>] Floyd, S., "Congestion Control Principles", <a href="https://www.rfc-editor.org/bcp/bcp41">BCP 41</a>,
<a href="./rfc2914">RFC 2914</a>, September 2000.
[<a id="ref-RFC5226">RFC5226</a>] Narten, T. and H. Alvestrand, "Guidelines for Writing an
IANA Considerations Section in RFCs", <a href="https://www.rfc-editor.org/bcp/bcp26">BCP 26</a>, <a href="./rfc5226">RFC 5226</a>,
May 2008.
<span class="grey">Doria, et al. Standards Track [Page 89]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-90" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
[<a id="ref-RFC5390">RFC5390</a>] Rosenberg, J., "Requirements for Management of Overload in
the Session Initiation Protocol", <a href="./rfc5390">RFC 5390</a>, December 2008.
[<a id="ref-RFC5811">RFC5811</a>] Hadi Salim, J. and K. Ogawa, "SCTP-Based Transport Mapping
Layer (TML) for the Forwarding and Control Element
Separation (ForCES) Protocol", <a href="./rfc5811">RFC 5811</a>, March 2010.
[<a id="ref-RFC5812">RFC5812</a>] Halpern, J. and J. Hadi Salim, "Forwarding and Control
Element Separation (ForCES) Forwarding Element Model",
<a href="./rfc5812">RFC 5812</a>, March 2010.
<span class="h3"><a class="selflink" id="section-11.2" href="#section-11.2">11.2</a>. Informative References</span>
[<a id="ref-2PCREF">2PCREF</a>] Gray, J., "Notes on database operating systems", in
"Operating Systems: An Advanced Course" Lecture Notes in
Computer Science, Vol. 60, pp. 394-481, Springer-Verlag,
1978.
[<a id="ref-ACID">ACID</a>] Haerder, T. and A. Reuter, "Principles of Transaction-
Orientated Database Recovery", 1983.
[<a id="ref-RFC2629">RFC2629</a>] Rose, M., "Writing I-Ds and RFCs using XML", <a href="./rfc2629">RFC 2629</a>,
June 1999.
[<a id="ref-RFC3654">RFC3654</a>] Khosravi, H. and T. Anderson, "Requirements for Separation
of IP Control and Forwarding", <a href="./rfc3654">RFC 3654</a>, November 2003.
[<a id="ref-RFC3746">RFC3746</a>] Yang, L., Dantu, R., Anderson, T., and R. Gopal,
"Forwarding and Control Element Separation (ForCES)
Framework", <a href="./rfc3746">RFC 3746</a>, April 2004.
<span class="grey">Doria, et al. Standards Track [Page 90]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-91" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h2"><a class="selflink" id="appendix-A" href="#appendix-A">Appendix A</a>. IANA Considerations</span>
Following the policies outlined in "Guidelines for Writing an IANA
Considerations Section in RFCs" (<a href="./rfc5226">RFC 5226</a> [<a href="./rfc5226" title="">RFC5226</a>]), the following
namespaces are defined in ForCES.
o Message Type Namespace, <a href="#section-7">Section 7</a>
o Operation Type Namespace, <a href="#section-7.1.6">Section 7.1.6</a>
o Header Flags, <a href="#section-6.1">Section 6.1</a>
o TLV Type, <a href="#section-7">Section 7</a>
o TLV Result Values, <a href="#section-7.1.7">Section 7.1.7</a>
o LFB Class ID, <a href="#section-7.1.5">Section 7.1.5</a> (resolved by model document,
[<a href="./rfc5812" title=""Forwarding and Control Element Separation (ForCES) Forwarding Element Model"">RFC5812</a>].
o Result: Association Setup Response, <a href="#section-7.5.2">Section 7.5.2</a>
o Reason: Association Teardown Message, <a href="#section-7.5.3">Section 7.5.3</a>
<span class="h3"><a class="selflink" id="appendix-A.1" href="#appendix-A.1">A.1</a>. Message Type Namespace</span>
The Message Type is an 8-bit value. The following is the guideline
for defining the Message Type namespace:
Message Types 0x00 - 0x1F
Message Types in this range are part of the base ForCES protocol.
Message Types in this range are allocated through an IETF
consensus action [<a href="./rfc5226" title="">RFC5226</a>].
Values assigned by this specification:
0x00 Reserved
0x01 AssociationSetup
0x02 AssociationTeardown
0x03 Config
0x04 Query
0x05 EventNotification
0x06 PacketRedirect
0x07 - 0x0E Reserved
0x0F Hearbeat
0x11 AssociationSetupResponse
0x12 Reserved
0x13 ConfigResponse
0x14 QueryResponse
<span class="grey">Doria, et al. Standards Track [Page 91]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-92" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
Message Types 0x20 - 0x7F
Message Types in this range are Specification Required [<a href="./rfc5226" title="">RFC5226</a>].
Message Types using this range MUST be documented in an RFC or
other permanent and readily available reference.
Message Types 0x80 - 0xFF
Message Types in this range are reserved for vendor private
extensions and are the responsibility of individual vendors. IANA
management of this range of the Message Type namespace is
unnecessary.
<span class="h3"><a class="selflink" id="appendix-A.2" href="#appendix-A.2">A.2</a>. Operation Selection</span>
The Operation Selection (OPER-TLV) namespace is 16 bits long. The
following is the guideline for managing the OPER-TLV namespace.
OPER-TLV Type 0x0000-0x0FF
OPER-TLV Types in this range are allocated through an IETF
consensus process [<a href="./rfc5226" title="">RFC5226</a>].
Values assigned by this specification:
0x0000 Reserved
0x0001 SET
0x0002 SET-PROP
0x0003 SET-RESPONSE
0x0004 SET-PROP-RESPONSE
0x0005 DEL
0x0006 DEL-RESPONSE
0x0007 GET
0x0008 GET-PROP
0x0009 GET-RESPONSE
0x000A GET-PROP-RESPONSE
0x000B REPORT
0x000C COMMIT
0x000D COMMIT-RESPONSE
0x000E TRCOMP
OPER-TLV Type 0x0100-0x7FFF
OPER-TLV Types using this range MUST be documented in an RFC or
other permanent and readily available reference [<a href="./rfc5226" title="">RFC5226</a>].
OPER-TLV Type 0x8000-0xFFFF
OPER-TLV Types in this range are reserved for vendor private
extensions and are the responsibility of individual vendors. IANA
management of this range of the OPER-TLV Type namespace is
unnecessary.
<span class="grey">Doria, et al. Standards Track [Page 92]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-93" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h3"><a class="selflink" id="appendix-A.3" href="#appendix-A.3">A.3</a>. Header Flags</span>
The Header flag field is 32 bits long. Header flags are part of
the ForCES base protocol. Header flags are allocated through an
IETF consensus action [<a href="./rfc5226" title="">RFC5226</a>].
<span class="h3"><a class="selflink" id="appendix-A.4" href="#appendix-A.4">A.4</a>. TLV Type Namespace</span>
The TLV Type namespace is 16 bits long. The following is the
guideline for managing the TLV Type namespace.
TLV Type 0x0000-0x01FF
TLV Types in this range are allocated through an IETF consensus
process [<a href="./rfc5226" title="">RFC5226</a>].
Values assigned by this specification:
0x0000 Reserved
0x0001 REDIRECT-TLV
0x0010 ASResult-TLV
0x0011 ASTreason-TLV
0x1000 LFBselect-TLV
0x0110 PATH-DATA-TLV
0x0111 KEYINFO-TLV
0x0112 FULLDATA-TLV
0x0113 SPARSEDATA-TLV
0x0114 RESULT-TLV
0x0115 METADATA-TLV
0x0116 REDIRECTDATA-TLV
TLV Type 0x0200-0x7FFF
TLV Types using this range MUST be documented in an RFC or other
permanent and readily available reference [<a href="./rfc5226" title="">RFC5226</a>].
TLV Type 0x8000-0xFFFF
TLV Types in this range are reserved for vendor private extensions
and are the responsibility of individual vendors. IANA management
of this range of the TLV Type namespace is unnecessary.
<span class="grey">Doria, et al. Standards Track [Page 93]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-94" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h3"><a class="selflink" id="appendix-A.5" href="#appendix-A.5">A.5</a>. RESULT-TLV Result Values</span>
The RESULT-TLV RTesult Value is an 8-bit value.
0x00 E_SUCCESS
0x01 E_INVALID_HEADER
0x02 E_LENGTH_MISMATCH
0x03 E_VERSION_MISMATCH
0x04 E_INVALID_DESTINATION_PID
0x05 E_LFB_UNKNOWN
0x06 E_LFB_NOT_FOUND
0x07 E_LFB_INSTANCE_ID_NOT_FOUND
0x08 E_INVALID_PATH
0x09 E_COMPONENT_DOES_NOT_EXIST
0x0A E_EXISTS
0x0B E_NOT_FOUND
0x0C E_READ_ONLY
0x0D E_INVALID_ARRAY_CREATION
0x0E E_VALUE_OUT_OF_RANGE
0x0F E_CONTENTS_TOO_LONG
0x10 E_INVALID_PARAMETERS
0x11 E_INVALID_MESSAGE_TYPE
0x12 E_E_INVALID_FLAGS
0x13 E_INVALID_TLV
0x14 E_EVENT_ERROR
0x15 E_NOT_SUPPORTED
0x16 E_MEMORY_ERROR
0x17 E_INTERNAL_ERROR
0x18-0xFE Reserved
0xFF E_UNSPECIFIED_ERROR
All values not assigned in this specification are designated as
Assignment by Expert Review.
<span class="h3"><a class="selflink" id="appendix-A.6" href="#appendix-A.6">A.6</a>. Association Setup Response</span>
The Association Setup Response namespace is 32 bits long. The
following is the guideline for managing the Association Setup
Response namespace.
Association Setup Response 0x0000-0x00FF
Association Setup Responses in this range are allocated through an
IETF consensus process [<a href="./rfc5226" title="">RFC5226</a>].
<span class="grey">Doria, et al. Standards Track [Page 94]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-95" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
Values assigned by this specification:
0x0000 Success
0x0001 FE ID Invalid
0x0002 Permission Denied
Association Setup Response 0x0100-0x0FFF
Association Setup Responses in this range are Specification
Required [<a href="./rfc5226" title="">RFC5226</a>]. Values using this range MUST be documented in
an RFC or other permanent and readily available reference
[<a href="./rfc5226" title="">RFC5226</a>].
Association Setup Response 0x1000-0xFFFF
Association Setup Responses in this range are reserved for vendor
private extensions and are the responsibility of individual
vendors. IANA management of this range of the Association Setup
Response namespace is unnecessary.
<span class="h3"><a class="selflink" id="appendix-A.7" href="#appendix-A.7">A.7</a>. Association Teardown Message</span>
The Association Teardown Message namespace is 32 bits long. The
following is the guideline for managing the Association Teardown
Message namespace.
Association Teardown Message 0x00000000-0x0000FFFF
Association Teardown Messages in this range are allocated through
an IETF consensus process [<a href="./rfc5226" title="">RFC5226</a>].
Values assigned by this specification:
0x00000000 Normal - teardown by administrator
0x00000001 Error - loss of heartbeats
0x00000002 Error - loss of bandwidth
0x00000003 Error - out of Memory
0x00000004 Error - application crash
0x000000FF Error - unspecified
Association Teardown Message 0x00010000-0x7FFFFFFF
Association Teardown Messages in this range are Specification
Required [<a href="./rfc5226" title="">RFC5226</a>]. Association Teardown Messages using this
range MUST be documented in an RFC or other permanent and readily
available references. [<a href="./rfc5226" title="">RFC5226</a>].
Association Teardown Message 0x80000000-0xFFFFFFFFF
Association Teardown Messages in this range are reserved for
vendor private extensions and are the responsibility of individual
<span class="grey">Doria, et al. Standards Track [Page 95]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-96" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
vendors. IANA management of this range of the Association
Teardown Message namespace is unnecessary.
<span class="h2"><a class="selflink" id="appendix-B" href="#appendix-B">Appendix B</a>. ForCES Protocol LFB Schema</span>
The schema described below conforms to the LFB schema described in
the ForCES model [<a href="./rfc5812" title=""Forwarding and Control Element Separation (ForCES) Forwarding Element Model"">RFC5812</a>].
<a href="#section-7.3.1">Section 7.3.1</a> describes the details of the different components
defined in this definition.
<LFBLibrary xmlns="urn:ietf:params:xml:ns:forces:lfbmodel:1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
provides="FEPO">
<!-- XXX -->
<dataTypeDefs>
<dataTypeDef>
<name>CEHBPolicyValues</name>
<synopsis>
The possible values of CE heartbeat policy
</synopsis>
<atomic>
<baseType>uchar</baseType>
<specialValues>
<specialValue value="0">
<name>CEHBPolicy0</name>
<synopsis>
The CE heartbeat policy 0
</synopsis>
</specialValue>
<specialValue value="1">
<name>CEHBPolicy1</name>
<synopsis>
The CE heartbeat policy 1
</synopsis>
</specialValue>
</specialValues>
</atomic>
</dataTypeDef>
<dataTypeDef>
<name>FEHBPolicyValues</name>
<synopsis>
The possible values of FE heartbeat policy
</synopsis>
<atomic>
<baseType>uchar</baseType>
<specialValues>
<span class="grey">Doria, et al. Standards Track [Page 96]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-97" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<specialValue value="0">
<name>FEHBPolicy0</name>
<synopsis>
The FE heartbeat policy 0
</synopsis>
</specialValue>
<specialValue value="1">
<name>FEHBPolicy1</name>
<synopsis>
The FE heartbeat policy 1
</synopsis>
</specialValue>
</specialValues>
</atomic>
</dataTypeDef>
<dataTypeDef>
<name>FERestartPolicyValues</name>
<synopsis>
The possible values of FE restart policy
</synopsis>
<atomic>
<baseType>uchar</baseType>
<specialValues>
<specialValue value="0">
<name>FERestartPolicy0</name>
<synopsis>
The FE restart policy 0
</synopsis>
</specialValue>
</specialValues>
</atomic>
</dataTypeDef>
<dataTypeDef>
<name>CEFailoverPolicyValues</name>
<synopsis>
The possible values of CE failover policy
</synopsis>
<atomic>
<baseType>uchar</baseType>
<specialValues>
<specialValue value="0">
<name>CEFailoverPolicy0</name>
<synopsis>
The CE failover policy 0
</synopsis>
</specialValue>
<span class="grey">Doria, et al. Standards Track [Page 97]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-98" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<specialValue value="1">
<name>CEFailoverPolicy1</name>
<synopsis>
The CE failover policy 1
</synopsis>
</specialValue>
</specialValues>
</atomic>
</dataTypeDef>
<dataTypeDef>
<name>FEHACapab</name>
<synopsis>
The supported HA features
</synopsis>
<atomic>
<baseType>uchar</baseType>
<specialValues>
<specialValue value="0">
<name>GracefullRestart</name>
<synopsis>
The FE supports Graceful Restart
</synopsis>
</specialValue>
<specialValue value="1">
<name>HA</name>
<synopsis>
The FE supports HA
</synopsis>
</specialValue>
</specialValues>
</atomic>
</dataTypeDef>
</dataTypeDefs>
<LFBClassDefs>
<LFBClassDef LFBClassID="2">
<name>FEPO</name>
<synopsis>
The FE Protocol Object
</synopsis>
<version>1.0</version>
<components>
<component componentID="1" access="read-only">
<name>CurrentRunningVersion</name>
<synopsis>Currently running ForCES version</synopsis>
<typeRef>uchar</typeRef>
<span class="grey">Doria, et al. Standards Track [Page 98]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-99" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
</component>
<component componentID="2" access="read-only">
<name>FEID</name>
<synopsis>Unicast FEID</synopsis>
<typeRef>uint32</typeRef>
</component>
<component componentID="3" access="read-write">
<name>MulticastFEIDs</name>
<synopsis>
the table of all multicast IDs
</synopsis>
<array type="variable-size">
<typeRef>uint32</typeRef>
</array>
</component>
<component componentID="4" access="read-write">
<name>CEHBPolicy</name>
<synopsis>
The CE Heartbeat Policy
</synopsis>
<typeRef>CEHBPolicyValues</typeRef>
</component>
<component componentID="5" access="read-write">
<name>CEHDI</name>
<synopsis>
The CE Heartbeat Dead Interval in millisecs
</synopsis>
<typeRef>uint32</typeRef>
</component>
<component componentID="6" access="read-write">
<name>FEHBPolicy</name>
<synopsis>
The FE Heartbeat Policy
</synopsis>
<typeRef>FEHBPolicyValues</typeRef>
</component>
<component componentID="7" access="read-write">
<name>FEHI</name>
<synopsis>
The FE Heartbeat Interval in millisecs
</synopsis>
<typeRef>uint32</typeRef>
</component>
<component componentID="8" access="read-write">
<name>CEID</name>
<synopsis>
The Primary CE this FE is associated with
</synopsis>
<span class="grey">Doria, et al. Standards Track [Page 99]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-100" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<typeRef>uint32</typeRef>
</component>
<component componentID="9" access="read-write">
<name>BackupCEs</name>
<synopsis>
The table of all backup CEs other than the primary
</synopsis>
<array type="variable-size">
<typeRef>uint32</typeRef>
</array>
</component>
<component componentID="10" access="read-write">
<name>CEFailoverPolicy</name>
<synopsis>
The CE Failover Policy
</synopsis>
<typeRef>CEFailoverPolicyValues</typeRef>
</component>
<component componentID="11" access="read-write">
<name>CEFTI</name>
<synopsis>
The CE Failover Timeout Interval in millisecs
</synopsis>
<typeRef>uint32</typeRef>
</component>
<component componentID="12" access="read-write">
<name>FERestartPolicy</name>
<synopsis>
The FE Restart Policy
</synopsis>
<typeRef>FERestartPolicyValues</typeRef>
</component>
<component componentID="13" access="read-write">
<name>LastCEID</name>
<synopsis>
The Primary CE this FE was last associated with
</synopsis>
<typeRef>uint32</typeRef>
</component>
</components>
<capabilities>
<capability componentID="30">
<name>SupportableVersions</name>
<synopsis>
the table of ForCES versions that FE supports
<span class="grey">Doria, et al. Standards Track [Page 100]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-101" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
</synopsis>
<array type="variable-size">
<typeRef>uchar</typeRef>
</array>
</capability>
<capability componentID="31">
<name>HACapabilities</name>
<synopsis>
the table of HA capabilities the FE supports
</synopsis>
<array type="variable-size">
<typeRef>FEHACapab</typeRef>
</array>
</capability>
</capabilities>
<events baseID="61">
<event eventID="1">
<name>PrimaryCEDown</name>
<synopsis>
The pimary CE has changed
</synopsis>
<eventTarget>
<eventField>LastCEID</eventField>
</eventTarget>
<eventChanged/>
<eventReports>
<eventReport>
<eventField>LastCEID</eventField>
</eventReport>
</eventReports>
</event>
</events>
</LFBClassDef>
</LFBClassDefs>
</LFBLibrary>
<span class="grey">Doria, et al. Standards Track [Page 101]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-102" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h3"><a class="selflink" id="appendix-B.1" href="#appendix-B.1">B.1</a>. Capabilities</span>
Supportable Versions enumerates all ForCES versions that an FE
supports.
FEHACapab enumerates the HA capabilities of the FE. If the FE is not
capable of graceful restarts or HA, then it will not be able to
participate in HA as described in <a href="#section-8.1">Section 8.1</a>.
<span class="h3"><a class="selflink" id="appendix-B.2" href="#appendix-B.2">B.2</a>. Components</span>
All components are explained in <a href="#section-7.3.1">Section 7.3.1</a>.
<span class="grey">Doria, et al. Standards Track [Page 102]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-103" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h2"><a class="selflink" id="appendix-C" href="#appendix-C">Appendix C</a>. Data Encoding Examples</span>
In this section a few examples of data encoding are discussed. These
example, however, do not show any padding.
==========
Example 1:
==========
Structure with three fixed-lengthof, mandatory fields.
struct S {
uint16 a
uint16 b
uint16 c
}
(a) Describing all fields using SPARSEDATA-TLV
PATH-DATA-TLV
Path to an instance of S ...
SPARSEDATA-TLV
ComponentIDof(a), lengthof(a), valueof(a)
ComponentIDof(b), lengthof(b), valueof(b)
ComponentIDof(c), lengthof(c), valueof(c)
(b) Describing a subset of fields
PATH-DATA-TLV
Path to an instance of S ...
SPARSEDATA-TLV
ComponentIDof(a), lengthof(a), valueof(a)
ComponentIDof(c), lengthof(c), valueof(c)
Note: Even though there are non-optional components in structure S,
since one can uniquely identify components, one can selectively send
components of structure S (e.g., in the case of an update from CE to
FE).
(c) Describing all fields using a FULLDATA-TLV
PATH-DATA-TLV
Path to an instance of S ...
FULLDATA-TLV
valueof(a)
valueof(b)
valueof(c)
<span class="grey">Doria, et al. Standards Track [Page 103]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-104" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
==========
Example 2:
==========
Structure with three fixed-lengthof fields, one mandatory, two
optional.
struct T {
uint16 a
uint16 b (optional)
uint16 c (optional)
}
This example is identical to example 1, as illustrated below.
(a) Describing all fields using SPARSEDATA-TLV
PATH-DATA-TLV
Path to an instance of S ...
SPARSEDATA-TLV
ComponentIDof(a), lengthof(a), valueof(a)
ComponentIDof(b), lengthof(b), valueof(b)
ComponentIDof(c), lengthof(c), valueof(c)
(b) Describing a subset of fields using SPARSEDATA-TLV
PATH-DATA-TLV
Path to an instance of S ...
SPARSEDATA-TLV
ComponentIDof(a), lengthof(a), valueof(a)
ComponentIDof(c), lengthof(c), valueof(c)
(c) Describing all fields using a FULLDATA-TLV
PATH-DATA-TLV
Path to an instance of S ...
FULLDATA-TLV
valueof(a)
valueof(b)
valueof(c)
Note: FULLDATA-TLV _cannot_ be used unless all fields are being
described.
<span class="grey">Doria, et al. Standards Track [Page 104]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-105" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
==========
Example 3:
==========
Structure with a mix of fixed-lengthof and variable-lengthof fields,
some mandatory, some optional. Note in this case, b is variable
sized.
struct U {
uint16 a
string b (optional)
uint16 c (optional)
}
(a) Describing all fields using SPARSEDATA-TLV
Path to an instance of U ...
SPARSEDATA-TLV
ComponentIDof(a), lengthof(a), valueof(a)
ComponentIDof(b), lengthof(b), valueof(b)
ComponentIDof(c), lengthof(c), valueof(c)
(b) Describing a subset of fields using SPARSEDATA-TLV
Path to an instance of U ...
SPARSEDATA-TLV
ComponentIDof(a), lengthof(a), valueof(a)
ComponentIDof(c), lengthof(c), valueof(c)
(c) Describing all fields using FULLDATA-TLV
Path to an instance of U ...
FULLDATA-TLV
valueof(a)
FULLDATA-TLV
valueof(b)
valueof(c)
Note: The variable-length field requires the addition of a FULLDATA-
TLV within the outer FULLDATA-TLV as in the case of component b
above.
<span class="grey">Doria, et al. Standards Track [Page 105]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-106" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
==========
Example 4:
==========
Structure containing an array of another structure type.
struct V {
uint32 x
uint32 y
struct U z[]
}
(a) Encoding using SPARSEDATA-TLV, with two instances of z[], also
described with SPARSEDATA-TLV, assuming only the 10th and 15th
subscripts of z[] are encoded.
path to instance of V ...
SPARSEDATA-TLV
ComponentIDof(x), lengthof(x), valueof(x)
ComponentIDof(y), lengthof(y), valueof(y)
ComponentIDof(z), lengthof(all below)
ComponentID = 10 (i.e index 10 from z[]), lengthof(all below)
ComponentIDof(a), lengthof(a), valueof(a)
ComponentIDof(b), lengthof(b), valueof(b)
ComponentID = 15 (index 15 from z[]), lengthof(all below)
ComponentIDof(a), lengthof(a), valueof(a)
ComponentIDof(c), lengthof(c), valueof(c)
Note the holes in the components of z (10 followed by 15). Also note
the gap in index 15 with only components a and c appearing but not b.
<span class="grey">Doria, et al. Standards Track [Page 106]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-107" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
<span class="h2"><a class="selflink" id="appendix-D" href="#appendix-D">Appendix D</a>. Use Cases</span>
Assume LFB with the following components for the following use cases.
foo1, type u32, ID = 1
foo2, type u32, ID = 2
table1: type array, ID = 3
components are:
t1, type u32, ID = 1
t2, type u32, ID = 2 // index into table2
KEY: nhkey, ID = 1, V = t2
table2: type array, ID = 4
components are:
j1, type u32, ID = 1
j2, type u32, ID = 2
KEY: akey, ID = 1, V = { j1,j2 }
table3: type array, ID = 5
components are:
someid, type u32, ID = 1
name, type string variable sized, ID = 2
table4: type array, ID = 6
components are:
j1, type u32, ID = 1
j2, type u32, ID = 2
j3, type u32, ID = 3
j4, type u32, ID = 4
KEY: mykey, ID = 1, V = { j1}
table5: type array, ID = 7
components are:
p1, type u32, ID = 1
p2, type array, ID = 2, array components of type-X
Type-X:
x1, ID 1, type u32
x2, ID2 , type u32
KEY: tkey, ID = 1, V = { x1}
All examples will use valueof(x) to indicate the value of the
referenced component x. In the case where F_SEL** are missing (bits
equal to 00) then the flags will not show any selection.
<span class="grey">Doria, et al. Standards Track [Page 107]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-108" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
All the examples only show use of FULLDATA-TLV for data encoding;
although SPARSEDATA-TLV would make more sense in certain occasions,
the emphasis is on showing the message layout. Refer to <a href="#appendix-C">Appendix C</a>
for examples that show usage of both FULLDATA-TLV and SPARSEDATA-TLV.
1. To get foo1
OPER = GET-TLV
PATH-DATA-TLV: IDCount = 1, IDs = 1
Result:
OPER = GET-RESPONSE-TLV
PATH-DATA-TLV:
flags=0, IDCount = 1, IDs = 1
FULLDATA-TLV L = 4+4, V = valueof(foo1)
2. To set foo2 to 10
OPER = SET-TLV
PATH-DATA-TLV:
flags = 0, IDCount = 1, IDs = 2
FULLDATA-TLV: L = 4+4, V=10
Result:
OPER = SET-RESPONSE-TLV
PATH-DATA-TLV:
flags = 0, IDCount = 1, IDs = 2
RESULT-TLV
3. To dump table2
OPER = GET-TLV
PATH-DATA-TLV:
IDCount = 1, IDs = 4
Result:
OPER = GET-RESPONSE-TLV
PATH-DATA-TLV:
flags = 0, IDCount = 1, IDs = 4
FULLDATA-TLV: L = XXX, V=
a series of: index, valueof(j1), valueof(j2)
representing the entire table
Note: One should be able to take a GET-RESPONSE-TLV and
convert it to a SET-TLV. If the result in the above example
is sent back in a SET-TLV (instead of a GET-RESPONSE_TLV),
then the entire contents of the table will be replaced at
that point.
<span class="grey">Doria, et al. Standards Track [Page 108]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-109" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
4. Multiple operations example. To create entry 0-5 of table2
(Error conditions are ignored)
OPER = SET-TLV
PATH-DATA-TLV:
flags = 0 , IDCount = 1, IDs = 4
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 0
FULLDATA-TLV valueof(j1), valueof(j2) of entry 0
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 1
FULLDATA-TLV valueof(j1), valueof(j2) of entry 1
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 2
FULLDATA-TLV valueof(j1), valueof(j2) of entry 2
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 3
FULLDATA-TLV valueof(j1), valueof(j2) of entry 3
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 4
FULLDATA-TLV valueof(j1), valueof(j2) of entry 4
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 5
FULLDATA-TLV valueof(j1), valueof(j2) of entry 5
Result:
OPER = SET-RESPONSE-TLV
PATH-DATA-TLV:
flags = 0 , IDCount = 1, IDs = 4
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 0
RESULT-TLV
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 1
RESULT-TLV
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 2
RESULT-TLV
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 3
RESULT-TLV
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 4
RESULT-TLV
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 5
RESULT-TLV
<span class="grey">Doria, et al. Standards Track [Page 109]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-110" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
5. Block operations (with holes) example. Replace entry 0,2 of
table2.
OPER = SET-TLV
PATH-DATA-TLV:
flags = 0 , IDCount = 1, IDs = 4
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 0
FULLDATA-TLV containing valueof(j1), valueof(j2) of 0
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 2
FULLDATA-TLV containing valueof(j1), valueof(j2) of 2
Result:
OPER = SET-TLV
PATH-DATA-TLV:
flags = 0 , IDCount = 1, IDs = 4
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 0
RESULT-TLV
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 2
RESULT-TLV
6. Getting rows example. Get first entry of table2.
OPER = GET-TLV
PATH-DATA-TLV:
IDCount = 2, IDs = 4.0
Result:
OPER = GET-RESPONSE-TLV
PATH-DATA-TLV:
IDCount = 2, IDs = 4.0
FULLDATA-TLV containing valueof(j1), valueof(j2)
<span class="grey">Doria, et al. Standards Track [Page 110]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-111" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
7. Get entry 0-5 of table2.
OPER = GET-TLV
PATH-DATA-TLV:
flags = 0, IDCount = 1, IDs = 4
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 0
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 1
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 2
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 3
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 4
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 5
Result:
OPER = GET-RESPONSE-TLV
PATH-DATA-TLV:
flags = 0, IDCount = 1, IDs = 4
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 0
FULLDATA-TLV containing valueof(j1), valueof(j2)
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 1
FULLDATA-TLV containing valueof(j1), valueof(j2)
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 2
FULLDATA-TLV containing valueof(j1), valueof(j2)
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 3
FULLDATA-TLV containing valueof(j1), valueof(j2)
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 4
FULLDATA-TLV containing valueof(j1), valueof(j2)
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 5
FULLDATA-TLV containing valueof(j1), valueof(j2)
<span class="grey">Doria, et al. Standards Track [Page 111]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-112" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
8. Create a row in table2, index 5.
OPER = SET-TLV
PATH-DATA-TLV:
flags = 0, IDCount = 2, IDs = 4.5
FULLDATA-TLV containing valueof(j1), valueof(j2)
Result:
OPER = SET-RESPONSE-TLV
PATH-DATA-TLV:
flags = 0, IDCount = 1, IDs = 4.5
RESULT-TLV
9. Dump contents of table1.
OPER = GET-TLV
PATH-DATA-TLV:
flags = 0, IDCount = 1, IDs = 3
Result:
OPER = GET-RESPONSE-TLV
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 3
FULLDATA-TLV, Length = XXXX
(depending on size of table1)
index, valueof(t1),valueof(t2)
index, valueof(t1),valueof(t2)
.
.
.
<span class="grey">Doria, et al. Standards Track [Page 112]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-113" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
10. Using keys. Get row entry from table4 where j1=100. Recall, j1
is a defined key for this table and its KeyID is 1.
OPER = GET-TLV
PATH-DATA-TLV:
flags = F_SELKEY IDCount = 1, IDs = 6
KEYINFO-TLV = KeyID=1, KEY_DATA=100
Result:
If j1=100 was at index 10
OPER = GET-RESPONSE-TLV
PATH-DATA-TLV:
flags = 0, IDCount = 1, IDs = 6.10
FULLDATA-TLV containing
valueof(j1), valueof(j2),valueof(j3),valueof(j4)
11. Delete row with KEY match (j1=100, j2=200) in table2. Note that
the j1,j2 pair is a defined key for the table2.
OPER = DEL-TLV
PATH-DATA-TLV:
flags = F_SELKEY IDCount = 1, IDs = 4
KEYINFO-TLV: {KeyID =1 KEY_DATA=100,200}
Result:
If (j1=100, j2=200) was at entry 15:
OPER = DELETE-RESPONSE-TLV
PATH-DATA-TLV:
flags = 0 IDCount = 2, IDs = 4.15
RESULT-TLV
<span class="grey">Doria, et al. Standards Track [Page 113]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-114" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
12. Dump contents of table3. It should be noted that this table has
a column with a component name that is variable sized. The
purpose of this use case is to show how such a component is to
be encoded.
OPER = GET-TLV
PATH-DATA-TLV:
flags = 0 IDCount = 1, IDs = 5
Result:
OPER = GET-RESPONSE-TLV
PATH-DATA-TLV:
flags = 0 IDCount = 1, IDs = 5
FULLDATA-TLV, Length = XXXX
index, someidv, TLV: T=FULLDATA-TLV, L = 4+strlen(namev),
V = valueof(v)
index, someidv, TLV: T=FULLDATA-TLV, L = 4+strlen(namev),
V = valueof(v)
index, someidv, TLV: T=FULLDATA-TLV, L = 4+strlen(namev),
V = valueof(v)
index, someidv, TLV: T=FULLDATA-TLV, L = 4+strlen(namev),
V = valueof(v)
.
.
.
<span class="grey">Doria, et al. Standards Track [Page 114]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-115" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
13. Multiple atomic operations.
Note 1: This emulates adding a new nexthop entry and then
atomically updating the L3 entries pointing to an old NH to
point to a new one. The assumption is that both tables are
in the same LFB.
Note: Observe the two operations on the LFB instance; both are
SET operations.
//Operation 1: Add a new entry to table2 index #20.
OPER = SET-TLV
Path-TLV:
flags = 0, IDCount = 2, IDs = 4.20
FULLDATA-TLV, V= valueof(j1),valueof(j2)
// Operation 2: Update table1 entry which
// was pointing with t2 = 10 to now point to 20
OPER = SET-TLV
PATH-DATA-TLV:
flags = F_SELKEY, IDCount = 1, IDs = 3
KEYINFO-TLV = KeyID=1 KEY_DATA=10
PATH-DATA-TLV
flags = 0 IDCount = 1, IDs = 2
FULLDATA-TLV, V= 20
Result:
//first operation, SET
OPER = SET-RESPONSE-TLV
PATH-DATA-TLV
flags = 0 IDCount = 3, IDs = 4.20
RESULT-TLV code = success
FULLDATA-TLV, V = valueof(j1),valueof(j2)
// second operation SET - assuming entry 16 was updated
OPER = SET-RESPONSE-TLV
PATH-DATA-TLV
flags = 0 IDCount = 2, IDs = 3.16
PATH-DATA-TLV
flags = 0 IDCount = 1, IDs = 2
RESULT-TLV code = success
FULLDATA-TLV, Length = XXXX v=20
<span class="grey">Doria, et al. Standards Track [Page 115]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-116" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
14. Selective setting. On table4 -- for indices 1, 3, 5, 7, and 9.
Replace j1 to 100, j2 to 200, j3 to 300. Leave j4 as is.
PER = SET-TLV
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 6
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 1
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 1
FULLDATA-TLV, Length = XXXX, V = {100}
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 2
FULLDATA-TLV, Length = XXXX, V = {200}
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 3
FULLDATA-TLV, Length = XXXX, V = {300}
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 3
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 1
FULLDATA-TLV, Length = XXXX, V = {100}
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 2
FULLDATA-TLV, Length = XXXX, V = {200}
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 3
FULLDATA-TLV, Length = XXXX, V = {300}
<span class="grey">Doria, et al. Standards Track [Page 116]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-117" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 5
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 1
FULLDATA-TLV, Length = XXXX, V = {100}
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 2
FULLDATA-TLV, Length = XXXX, V = {200}
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 3
FULLDATA-TLV, Length = XXXX, V = {300}
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 7
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 1
FULLDATA-TLV, Length = XXXX, V = {100}
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 2
FULLDATA-TLV, Length = XXXX, V = {200}
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 3
FULLDATA-TLV, Length = XXXX, V = {300}
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 9
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 1
FULLDATA-TLV, Length = XXXX, V = {100}
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 2
FULLDATA-TLV, Length = XXXX, V = {200}
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 3
FULLDATA-TLV, Length = XXXX, V = {300}
response:
OPER = SET-RESPONSE-TLV
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 6
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 1
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 1
RESULT-TLV
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 2
RESULT-TLV
<span class="grey">Doria, et al. Standards Track [Page 117]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-118" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 3
RESULT-TLV
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 3
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 1
RESULT-TLV
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 2
RESULT-TLV
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 3
RESULT-TLV
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 5
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 1
RESULT-TLV
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 2
RESULT-TLV
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 3
RESULT-TLV
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 7
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 1
RESULT-TLV
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 2
RESULT-TLV
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 3
RESULT-TLV
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 9
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 1
RESULT-TLV
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 2
RESULT-TLV
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs = 3
RESULT-TLV
<span class="grey">Doria, et al. Standards Track [Page 118]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-119" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
15. Manipulation of table of table examples. Get x1 from table10
row with index 4, inside table5 entry 10.
operation = GET-TLV
PATH-DATA-TLV
flags = 0 IDCount = 5, IDs=7.10.2.4.1
Results:
operation = GET-RESPONSE-TLV
PATH-DATA-TLV
flags = 0 IDCount = 5, IDs=7.10.2.4.1
FULLDATA-TLV: L=XXXX, V = valueof(x1)
16. From table5's row 10 table10, get X2s based on the value of x1
equaling 10 (recall x1 is KeyID 1).
operation = GET-TLV
PATH-DATA-TLV
flag = F_SELKEY, IDCount=3, IDS = 7.10.2
KEYINFO-TLV, KeyID = 1, KEYDATA = 10
PATH-DATA-TLV
IDCount = 1, IDS = 2 //select x2
Results:
If x1=10 was at entry 11:
operation = GET-RESPONSE-TLV
PATH-DATA-TLV
flag = 0, IDCount=5, IDS = 7.10.2.11
PATH-DATA-TLV
flags = 0 IDCount = 1, IDS = 2
FULLDATA-TLV: L=XXXX, V = valueof(x2)
17. Further example of manipulating a table of tables
Consider table6, which is defined as:
table6: type array, ID = 8
components are:
p1, type u32, ID = 1
p2, type array, ID = 2, array components of type type-A
type-A:
a1, type u32, ID 1,
a2, type array ID2 ,array components of type type-B
type-B:
b1, type u32, ID 1
b2, type u32, ID 2
<span class="grey">Doria, et al. Standards Track [Page 119]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-120" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
If for example one wanted to set by replacing:
table6.10.p1 to 111
table6.10.p2.20.a1 to 222
table6.10.p2.20.a2.30.b1 to 333
in one message and one operation.
There are two ways to do this:
a) using nesting
b) using a flat path data
A. Method using nesting
in one message with a single operation
operation = SET-TLV
PATH-DATA-TLV
flags = 0 IDCount = 2, IDs=6.10
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs=1
FULLDATA-TLV: L=XXXX,
V = {111}
PATH-DATA-TLV
flags = 0 IDCount = 2, IDs=2.20
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs=1
FULLDATA-TLV: L=XXXX,
V = {222}
PATH-DATA-TLV :
flags = 0, IDCount = 3, IDs=2.30.1
FULLDATA-TLV: L=XXXX,
V = {333}
<span class="grey">Doria, et al. Standards Track [Page 120]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-121" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
Result:
operation = SET-RESPONSE-TLV
PATH-DATA-TLV
flags = 0 IDCount = 2, IDs=6.10
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs=1
RESULT-TLV
PATH-DATA-TLV
flags = 0 IDCount = 2, IDs=2.20
PATH-DATA-TLV
flags = 0, IDCount = 1, IDs=1
RESULT-TLV
PATH-DATA-TLV :
flags = 0, IDCount = 3, IDs=2.30.1
RESULT-TLV
B. Method using a flat path data in
one message with a single operation
operation = SET-TLV
PATH-DATA-TLV :
flags = 0, IDCount = 3, IDs=6.10.1
FULLDATA-TLV: L=XXXX,
V = {111}
PATH-DATA-TLV :
flags = 0, IDCount = 5, IDs=6.10.1.20.1
FULLDATA-TLV: L=XXXX,
V = {222}
PATH-DATA-TLV :
flags = 0, IDCount = 7, IDs=6.10.1.20.1.30.1
FULLDATA-TLV: L=XXXX,
V = {333}
Result:
operation = SET-TLV
PATH-DATA-TLV :
flags = 0, IDCount = 3, IDs=6.10.1
RESULT-TLV
PATH-DATA-TLV :
flags = 0, IDCount = 5, IDs=6.10.1.20.1
RESULT-TLV
PATH-DATA-TLV :
flags = 0, IDCount = 7, IDs=6.10.1.20.1.30.1
RESULT-TLV
<span class="grey">Doria, et al. Standards Track [Page 121]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-122" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
18. Get a whole LFB (all its components, etc.).
For example: At startup a CE might well want the entire FE
Object LFB. So, in a request targeted at class 1, instance
1, one might find:
operation = GET-TLV
PATH-DATA-TLV
flags = 0 IDCount = 0
result:
operation = GET-RESPONSE-TLV
PATH-DATA-TLV
flags = 0 IDCount = 0
FULLDATA-TLV encoding of the FE Object LFB
<span class="grey">Doria, et al. Standards Track [Page 122]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-123" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
Authors' Addresses
Avri Doria (editor)
Lulea University of Technology
Rainbow Way
Lulea SE-971 87
Sweden
Phone: +46 73 277 1788
EMail: avri@ltu.se
Jamal Hadi Salim (editor)
Znyx
Ottawa, Ontario
Canada
Phone:
EMail: hadi@mojatatu.com
Robert Haas (editor)
IBM
Saumerstrasse 4
8803 Ruschlikon
Switzerland
Phone:
EMail: rha@zurich.ibm.com
Hormuzd M Khosravi (editor)
Intel
2111 NE 25th Avenue
Hillsboro, OR 97124
USA
Phone: +1 503 264 0334
EMail: hormuzd.m.khosravi@intel.com
<span class="grey">Doria, et al. Standards Track [Page 123]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-124" ></span>
<span class="grey"><a href="./rfc5810">RFC 5810</a> ForCES March 2010</span>
Weiming Wang (editor)
Zhejiang Gongshang University
18, Xuezheng Str., Xiasha University Town
Hangzhou 310018
P.R. China
Phone: +86-571-28877721
EMail: wmwang@zjgsu.edu.cn
Ligang Dong
Zhejiang Gongshang University
18, Xuezheng Str., Xiasha University Town
Hangzhou 310018
P.R. China
Phone: +86-571-28877751
EMail: donglg@zjgsu.edu.cn
Ram Gopal
Nokia
5, Wayside Road
Burlington, MA 310035
USA
Phone: +1-781-993-3685
EMail: ram.gopal@nsn.com
Joel Halpern
P.O. Box 6049
Leesburg, VA 20178
USA
Phone: +1-703-371-3043
EMail: jmh@joelhalpern.com
Doria, et al. Standards Track [Page 124]
</pre>
|