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
|
<pre>Internet Engineering Task Force (IETF) G. Zorn, Ed.
Request for Comments: 7155 Network Zen
Obsoletes: <a href="./rfc4005">4005</a> April 2014
Category: Standards Track
ISSN: 2070-1721
<span class="h1">Diameter Network Access Server Application</span>
Abstract
This document describes the Diameter protocol application used for
Authentication, Authorization, and Accounting services in the Network
Access Server (NAS) environment; it obsoletes <a href="./rfc4005">RFC 4005</a>. When
combined with the Diameter Base protocol, Transport Profile, and
Extensible Authentication Protocol specifications, this application
specification satisfies typical network access services requirements.
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/rfc7155">http://www.rfc-editor.org/info/rfc7155</a>.
Copyright Notice
Copyright (c) 2014 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">Zorn Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
Table of Contents
<a href="#section-1">1</a>. Introduction ....................................................<a href="#page-4">4</a>
<a href="#section-1.1">1.1</a>. Changes from <a href="./rfc4005">RFC 4005</a> ......................................<a href="#page-5">5</a>
<a href="#section-1.2">1.2</a>. Terminology ................................................<a href="#page-6">6</a>
<a href="#section-1.3">1.3</a>. Requirements Language ......................................<a href="#page-7">7</a>
<a href="#section-1.4">1.4</a>. Advertising Application Support ............................<a href="#page-8">8</a>
<a href="#section-1.5">1.5</a>. Application Identification .................................<a href="#page-8">8</a>
<a href="#section-1.6">1.6</a>. Accounting Model ...........................................<a href="#page-8">8</a>
<a href="#section-2">2</a>. NAS Calls, Ports, and Sessions ..................................<a href="#page-8">8</a>
<a href="#section-2.1">2.1</a>. Diameter Session Establishment .............................<a href="#page-9">9</a>
<a href="#section-2.2">2.2</a>. Diameter Session Reauthentication or Reauthorization .......<a href="#page-9">9</a>
<a href="#section-2.3">2.3</a>. Diameter Session Termination ..............................<a href="#page-10">10</a>
<a href="#section-3">3</a>. Diameter NAS Application Messages ..............................<a href="#page-11">11</a>
<a href="#section-3.1">3.1</a>. AA-Request (AAR) Command ..................................<a href="#page-11">11</a>
<a href="#section-3.2">3.2</a>. AA-Answer (AAA) Command ...................................<a href="#page-13">13</a>
<a href="#section-3.3">3.3</a>. Re-Auth-Request (RAR) Command .............................<a href="#page-15">15</a>
<a href="#section-3.4">3.4</a>. Re-Auth-Answer (RAA) Command ..............................<a href="#page-16">16</a>
<a href="#section-3.5">3.5</a>. Session-Termination-Request (STR) Command .................<a href="#page-17">17</a>
<a href="#section-3.6">3.6</a>. Session-Termination-Answer (STA) Command ..................<a href="#page-17">17</a>
<a href="#section-3.7">3.7</a>. Abort-Session-Request (ASR) Command .......................<a href="#page-18">18</a>
<a href="#section-3.8">3.8</a>. Abort-Session-Answer (ASA) Command ........................<a href="#page-19">19</a>
<a href="#section-3.9">3.9</a>. Accounting-Request (ACR) Command ..........................<a href="#page-20">20</a>
<a href="#section-3.10">3.10</a>. Accounting-Answer (ACA) Command ..........................<a href="#page-22">22</a>
<a href="#section-4">4</a>. Diameter NAS Application AVPs ..................................<a href="#page-23">23</a>
<a href="#section-4.1">4.1</a>. Derived AVP Data Formats ..................................<a href="#page-23">23</a>
<a href="#section-4.1.1">4.1.1</a>. QoSFilterRule ......................................<a href="#page-23">23</a>
<a href="#section-4.2">4.2</a>. NAS Session AVPs ..........................................<a href="#page-24">24</a>
<a href="#section-4.2.1">4.2.1</a>. Call and Session Information .......................<a href="#page-24">24</a>
<a href="#section-4.2.2">4.2.2</a>. NAS-Port AVP .......................................<a href="#page-25">25</a>
<a href="#section-4.2.3">4.2.3</a>. NAS-Port-Id AVP ....................................<a href="#page-25">25</a>
<a href="#section-4.2.4">4.2.4</a>. NAS-Port-Type AVP ..................................<a href="#page-26">26</a>
<a href="#section-4.2.5">4.2.5</a>. Called-Station-Id AVP ..............................<a href="#page-26">26</a>
<a href="#section-4.2.6">4.2.6</a>. Calling-Station-Id AVP .............................<a href="#page-26">26</a>
<a href="#section-4.2.7">4.2.7</a>. Connect-Info AVP ...................................<a href="#page-27">27</a>
<a href="#section-4.2.8">4.2.8</a>. Originating-Line-Info AVP ..........................<a href="#page-27">27</a>
<a href="#section-4.2.9">4.2.9</a>. Reply-Message AVP ..................................<a href="#page-28">28</a>
<a href="#section-4.3">4.3</a>. NAS Authentication AVPs ...................................<a href="#page-28">28</a>
<a href="#section-4.3.1">4.3.1</a>. User-Password AVP ..................................<a href="#page-29">29</a>
<a href="#section-4.3.2">4.3.2</a>. Password-Retry AVP .................................<a href="#page-29">29</a>
<a href="#section-4.3.3">4.3.3</a>. Prompt AVP .........................................<a href="#page-29">29</a>
<a href="#section-4.3.4">4.3.4</a>. CHAP-Auth AVP ......................................<a href="#page-29">29</a>
<a href="#section-4.3.5">4.3.5</a>. CHAP-Algorithm AVP .................................<a href="#page-30">30</a>
<a href="#section-4.3.6">4.3.6</a>. CHAP-Ident AVP .....................................<a href="#page-30">30</a>
<a href="#section-4.3.7">4.3.7</a>. CHAP-Response AVP ..................................<a href="#page-30">30</a>
<a href="#section-4.3.8">4.3.8</a>. CHAP-Challenge AVP .................................<a href="#page-30">30</a>
<a href="#section-4.3.9">4.3.9</a>. ARAP-Password AVP ..................................<a href="#page-30">30</a>
<a href="#section-4.3.10">4.3.10</a>. ARAP-Challenge-Response AVP .......................<a href="#page-31">31</a>
<span class="grey">Zorn Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
<a href="#section-4.3.11">4.3.11</a>. ARAP-Security AVP .................................<a href="#page-31">31</a>
<a href="#section-4.3.12">4.3.12</a>. ARAP-Security-Data AVP ............................<a href="#page-31">31</a>
<a href="#section-4.4">4.4</a>. NAS Authorization AVPs ....................................<a href="#page-31">31</a>
<a href="#section-4.4.1">4.4.1</a>. Service-Type AVP ...................................<a href="#page-33">33</a>
<a href="#section-4.4.2">4.4.2</a>. Callback-Number AVP ................................<a href="#page-34">34</a>
<a href="#section-4.4.3">4.4.3</a>. Callback-Id AVP ....................................<a href="#page-34">34</a>
<a href="#section-4.4.4">4.4.4</a>. Idle-Timeout AVP ...................................<a href="#page-34">34</a>
<a href="#section-4.4.5">4.4.5</a>. Port-Limit AVP .....................................<a href="#page-34">34</a>
<a href="#section-4.4.6">4.4.6</a>. NAS-Filter-Rule AVP ................................<a href="#page-35">35</a>
<a href="#section-4.4.7">4.4.7</a>. Filter-Id AVP ......................................<a href="#page-35">35</a>
<a href="#section-4.4.8">4.4.8</a>. Configuration-Token AVP ............................<a href="#page-35">35</a>
<a href="#section-4.4.9">4.4.9</a>. QoS-Filter-Rule AVP ................................<a href="#page-35">35</a>
<a href="#section-4.4.10">4.4.10</a>. Framed Access Authorization AVPs ..................<a href="#page-36">36</a>
<a href="#section-4.4.10.1">4.4.10.1</a>. Framed-Protocol AVP ......................<a href="#page-36">36</a>
<a href="#section-4.4.10.2">4.4.10.2</a>. Framed-Routing AVP .......................<a href="#page-36">36</a>
<a href="#section-4.4.10.3">4.4.10.3</a>. Framed-MTU AVP ...........................<a href="#page-37">37</a>
<a href="#section-4.4.10.4">4.4.10.4</a>. Framed-Compression AVP ...................<a href="#page-37">37</a>
<a href="#section-4.4.10.5">4.4.10.5</a>. IP Access Authorization AVPs .............<a href="#page-37">37</a>
<a href="#section-4.4.10.5.1">4.4.10.5.1</a>. Framed-IP-Address AVP .........<a href="#page-37">37</a>
<a href="#section-4.4.10.5.2">4.4.10.5.2</a>. Framed-IP-Netmask AVP .........<a href="#page-37">37</a>
<a href="#section-4.4.10.5.3">4.4.10.5.3</a>. Framed-Route AVP ..............<a href="#page-38">38</a>
<a href="#section-4.4.10.5.4">4.4.10.5.4</a>. Framed-Pool AVP ...............<a href="#page-38">38</a>
<a href="#section-4.4.10.5.5">4.4.10.5.5</a>. Framed-Interface-Id AVP .......<a href="#page-38">38</a>
<a href="#section-4.4.10.5.6">4.4.10.5.6</a>. Framed-IPv6-Prefix AVP ........<a href="#page-39">39</a>
<a href="#section-4.4.10.5.7">4.4.10.5.7</a>. Framed-IPv6-Route AVP .........<a href="#page-39">39</a>
<a href="#section-4.4.10.5.8">4.4.10.5.8</a>. Framed-IPv6-Pool AVP ..........<a href="#page-39">39</a>
<a href="#section-4.4.10.6">4.4.10.6</a>. IPX Access AVPs ..........................<a href="#page-39">39</a>
<a href="#section-4.4.10.6.1">4.4.10.6.1</a>. Framed-IPX-Network AVP ........<a href="#page-40">40</a>
<a href="#section-4.4.10.7">4.4.10.7</a>. AppleTalk Network Access AVPs ............<a href="#page-40">40</a>
<a href="#section-4.4.10.7.1">4.4.10.7.1</a>. Framed-Appletalk-Link AVP .....<a href="#page-40">40</a>
<a href="#section-4.4.10.7.2">4.4.10.7.2</a>. Framed-Appletalk-Network AVP ..40
<a href="#section-4.4.10.7.3">4.4.10.7.3</a>. Framed-Appletalk-Zone AVP .....<a href="#page-41">41</a>
<a href="#section-4.4.10.8">4.4.10.8</a>. AppleTalk Remote Access AVPs .............<a href="#page-41">41</a>
<a href="#section-4.4.10.8.1">4.4.10.8.1</a>. ARAP-Features AVP .............<a href="#page-41">41</a>
<a href="#section-4.4.10.8.2">4.4.10.8.2</a>. ARAP-Zone-Access AVP ..........<a href="#page-41">41</a>
<a href="#section-4.4.11">4.4.11</a>. Non-Framed Access Authorization AVPs ..............<a href="#page-41">41</a>
<a href="#section-4.4.11.1">4.4.11.1</a>. Login-IP-Host AVP ........................<a href="#page-41">41</a>
<a href="#section-4.4.11.2">4.4.11.2</a>. Login-IPv6-Host AVP ......................<a href="#page-42">42</a>
<a href="#section-4.4.11.3">4.4.11.3</a>. Login-Service AVP ........................<a href="#page-42">42</a>
<a href="#section-4.4.11.4">4.4.11.4</a>. TCP Services .............................<a href="#page-42">42</a>
<a href="#section-4.4.11.4.1">4.4.11.4.1</a>. Login-TCP-Port AVP ............<a href="#page-42">42</a>
<a href="#section-4.4.11.5">4.4.11.5</a>. LAT Services .............................<a href="#page-43">43</a>
<a href="#section-4.4.11.5.1">4.4.11.5.1</a>. Login-LAT-Service AVP .........<a href="#page-43">43</a>
<a href="#section-4.4.11.5.2">4.4.11.5.2</a>. Login-LAT-Node AVP ............<a href="#page-43">43</a>
<a href="#section-4.4.11.5.3">4.4.11.5.3</a>. Login-LAT-Group AVP ...........<a href="#page-44">44</a>
<a href="#section-4.4.11.5.4">4.4.11.5.4</a>. Login-LAT-Port AVP ............<a href="#page-44">44</a>
<a href="#section-4.5">4.5</a>. NAS Tunneling AVPs ........................................<a href="#page-45">45</a>
<a href="#section-4.5.1">4.5.1</a>. Tunneling AVP ......................................<a href="#page-45">45</a>
<span class="grey">Zorn Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
<a href="#section-4.5.2">4.5.2</a>. Tunnel-Type AVP ....................................<a href="#page-46">46</a>
<a href="#section-4.5.3">4.5.3</a>. Tunnel-Medium-Type AVP .............................<a href="#page-46">46</a>
<a href="#section-4.5.4">4.5.4</a>. Tunnel-Client-Endpoint AVP .........................<a href="#page-46">46</a>
<a href="#section-4.5.5">4.5.5</a>. Tunnel-Server-Endpoint AVP .........................<a href="#page-47">47</a>
<a href="#section-4.5.6">4.5.6</a>. Tunnel-Password AVP ................................<a href="#page-48">48</a>
<a href="#section-4.5.7">4.5.7</a>. Tunnel-Private-Group-Id AVP ........................<a href="#page-48">48</a>
<a href="#section-4.5.8">4.5.8</a>. Tunnel-Assignment-Id AVP ...........................<a href="#page-48">48</a>
<a href="#section-4.5.9">4.5.9</a>. Tunnel-Preference AVP ..............................<a href="#page-50">50</a>
<a href="#section-4.5.10">4.5.10</a>. Tunnel-Client-Auth-Id AVP .........................<a href="#page-50">50</a>
<a href="#section-4.5.11">4.5.11</a>. Tunnel-Server-Auth-Id AVP .........................<a href="#page-50">50</a>
<a href="#section-4.6">4.6</a>. NAS Accounting AVPs .......................................<a href="#page-51">51</a>
<a href="#section-4.6.1">4.6.1</a>. Accounting-Input-Octets AVP ........................<a href="#page-52">52</a>
<a href="#section-4.6.2">4.6.2</a>. Accounting-Output-Octets AVP .......................<a href="#page-52">52</a>
<a href="#section-4.6.3">4.6.3</a>. Accounting-Input-Packets AVP .......................<a href="#page-52">52</a>
<a href="#section-4.6.4">4.6.4</a>. Accounting-Output-Packets AVP ......................<a href="#page-53">53</a>
<a href="#section-4.6.5">4.6.5</a>. Acct-Session-Time AVP ..............................<a href="#page-53">53</a>
<a href="#section-4.6.6">4.6.6</a>. Acct-Authentic AVP .................................<a href="#page-53">53</a>
<a href="#section-4.6.7">4.6.7</a>. Accounting-Auth-Method AVP .........................<a href="#page-53">53</a>
<a href="#section-4.6.8">4.6.8</a>. Acct-Delay-Time AVP ................................<a href="#page-53">53</a>
<a href="#section-4.6.9">4.6.9</a>. Acct-Link-Count AVP ................................<a href="#page-54">54</a>
<a href="#section-4.6.10">4.6.10</a>. Acct-Tunnel-Connection AVP ........................<a href="#page-55">55</a>
<a href="#section-4.6.11">4.6.11</a>. Acct-Tunnel-Packets-Lost AVP ......................<a href="#page-55">55</a>
<a href="#section-5">5</a>. AVP Occurrence Tables ..........................................<a href="#page-55">55</a>
<a href="#section-5.1">5.1</a>. AA-Request / AA-Answer AVP Table ..........................<a href="#page-56">56</a>
<a href="#section-5.2">5.2</a>. Accounting AVP Tables .....................................<a href="#page-58">58</a>
<a href="#section-5.2.1">5.2.1</a>. Framed Access Accounting AVP Table .................<a href="#page-59">59</a>
<a href="#section-5.2.2">5.2.2</a>. Non-Framed Access Accounting AVP Table .............<a href="#page-61">61</a>
<a href="#section-6">6</a>. Unicode Considerations .........................................<a href="#page-62">62</a>
<a href="#section-7">7</a>. IANA Considerations ............................................<a href="#page-63">63</a>
<a href="#section-8">8</a>. Security Considerations ........................................<a href="#page-63">63</a>
<a href="#section-8.1">8.1</a>. Authentication Considerations .............................<a href="#page-63">63</a>
<a href="#section-8.2">8.2</a>. AVP Considerations ........................................<a href="#page-64">64</a>
<a href="#section-9">9</a>. References .....................................................<a href="#page-65">65</a>
<a href="#section-9.1">9.1</a>. Normative References ......................................<a href="#page-65">65</a>
<a href="#section-9.2">9.2</a>. Informative References ....................................<a href="#page-65">65</a>
<a href="#appendix-A">Appendix A</a>. Acknowledgements ......................................<a href="#page-69">69</a>
<a href="#appendix-A.1">A.1</a>. This Document ..............................................<a href="#page-69">69</a>
<a href="#appendix-A.2">A.2</a>. <a href="./rfc4005">RFC 4005</a> ...................................................<a href="#page-69">69</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
This document describes the Diameter protocol application used for
Authentication, Authorization, and Accounting in the Network Access
Server (NAS) environment. When combined with the Diameter Base
protocol [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>], Transport Profile [<a href="./rfc3539" title=""Authentication, Authorization and Accounting (AAA) Transport Profile"">RFC3539</a>], and Extensible
Authentication Protocol (EAP) [<a href="./rfc4072" title=""Diameter Extensible Authentication Protocol (EAP) Application"">RFC4072</a>] specifications, this
specification satisfies the NAS-related requirements defined in
[<a href="./rfc2989" title=""Criteria for Evaluating AAA Protocols for Network Access"">RFC2989</a>] and [<a href="./rfc3169" title=""Criteria for Evaluating Network Access Server Protocols"">RFC3169</a>].
<span class="grey">Zorn Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
First, this document describes the operation of a Diameter NAS
application. Then, it defines the Diameter message command codes.
The following sections list the AVPs used in these messages, grouped
by common usage. These are session identification, authentication,
authorization, tunneling, and accounting. The authorization AVPs are
further broken down by service type.
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>. Changes from <a href="./rfc4005">RFC 4005</a></span>
This document obsoletes [<a href="./rfc4005" title=""Diameter Network Access Server Application"">RFC4005</a>] and is not backward compatible with
that document. An overview of some of the major changes is given
below.
o All of the material regarding RADIUS/Diameter protocol
interactions has been removed; however, where AVPs are derived
from RADIUS Attributes, the range and format of those Attribute
values have been retained for ease of transition.
o The Command Code Format (CCF) [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>] for the Accounting-Request
and Accounting-Answer messages has been changed to explicitly
require the inclusion of the Acct-Application-Id AVP and exclude
the Vendor-Specific-Application-Id AVP. Normally, this type of
change would require the allocation of a new command code (see
<a href="./rfc6733#section-1.3.3">Section 1.3.3 of [RFC6733]</a>) and consequently, a new application-
id. However, the presence of an instance of the Acct-Application-
Id AVP was required in [<a href="./rfc4005" title=""Diameter Network Access Server Application"">RFC4005</a>], as well:
The Accounting-Request (ACR) message [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] is sent by the NAS
to report its session information to a target server
downstream.
Either the Acct-Application-Id or the Vendor-Specific-
Application-Id AVP MUST be present. If the Vendor-Specific-
Application-Id grouped AVP is present, it must have an Acct-
Application-Id inside.
Thus, though the syntax of the commands has changed, the semantics
have not (with the caveat that the Acct-Application-Id AVP can no
longer be contained in the Vendor-Specific-Application-Id AVP).
o The lists of RADIUS attribute values have been deleted in favor of
references to the appropriate IANA registries.
o The accounting model to be used is now specified (see
<a href="#section-1.6">Section 1.6</a>).
<span class="grey">Zorn Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
There are many other miscellaneous fixes that have been introduced in
this document that may not be considered significant, but they are
useful nonetheless. Examples are fixes to example IP addresses,
addition of clarifying references, etc. Errata reports filed against
[<a href="./rfc4005" title=""Diameter Network Access Server Application"">RFC4005</a>] at the time of writing have been reviewed and incorporated
as necessary. A comprehensive list of changes is not shown here for
practical reasons.
<span class="h3"><a class="selflink" id="section-1.2" href="#section-1.2">1.2</a>. Terminology</span>
<a href="#section-1.2">Section 1.2</a> of the Diameter Base protocol specification [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>]
defines most of the terminology used in this document. Additionally,
the following terms and acronyms are used in this application:
NAS (Network Access Server)
A device that provides an access service for a user to a network.
The service may be a network connection or a value-added service
such as terminal emulation [<a href="./rfc2881" title=""Network Access Server Requirements Next Generation (NASREQNG) NAS Model"">RFC2881</a>].
PPP (Point-to-Point Protocol)
A multiprotocol serial datalink. PPP is the primary IP datalink
used for dial-in NAS connection service [<a href="./rfc1661" title=""The Point-to-Point Protocol (PPP)"">RFC1661</a>].
CHAP (Challenge Handshake Authentication Protocol)
An authentication process used in PPP [<a href="./rfc1994" title=""PPP Challenge Handshake Authentication Protocol (CHAP)"">RFC1994</a>].
PAP (Password Authentication Protocol)
A deprecated PPP authentication process, but often used for
backward compatibility [<a href="./rfc1334" title=""PPP Authentication Protocols"">RFC1334</a>].
SLIP (Serial Line Internet Protocol)
A serial datalink that only supports IP. A design prior to PPP.
ARAP (AppleTalk Remote Access Protocol)
A serial datalink for accessing AppleTalk networks [<a href="#ref-ARAP" title=""Apple Remote Access Protocol (ARAP) Version 2.0 External Reference Specification"">ARAP</a>].
IPX (Internetwork Packet Exchange)
The network protocol used by NetWare networks [<a href="#ref-IPX" title=""NetWare System Technical Interface Overview"">IPX</a>].
<span class="grey">Zorn Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
L2TP (Layer Two Tunneling Protocol)
L2TP [<a href="./rfc3931" title=""Layer Two Tunneling Protocol - Version 3 (L2TPv3)"">RFC3931</a>] provides a dynamic mechanism for tunneling Layer 2
"circuits" across a packet-oriented data network.
LAC (L2TP Access Concentrator)
An L2TP Control Connection Endpoint being used to cross-connect an
L2TP session directly to a datalink [<a href="./rfc3931" title=""Layer Two Tunneling Protocol - Version 3 (L2TPv3)"">RFC3931</a>].
LAT (Local Area Transport)
A Digital Equipment Corp. LAN protocol for terminal services
[<a href="#ref-LAT" title=""Local Area Transport (LAT) Specification V5.0"">LAT</a>].
LCP (Link Control Protocol)
One of the three major components of PPP [<a href="./rfc1661" title=""The Point-to-Point Protocol (PPP)"">RFC1661</a>]. LCP is used
to automatically agree upon encapsulation format options, handle
varying limits on sizes of packets, detect a looped-back link and
other common misconfiguration errors, and terminate the link.
Other optional facilities provided are authentication of the
identity of its peer on the link, and determination when a link is
functioning properly and when it is failing.
PPTP (Point-to-Point Tunneling Protocol)
A protocol that allows PPP to be tunneled through an IP network
[<a href="./rfc2637" title=""Point-to-Point Tunneling Protocol"">RFC2637</a>].
VPN (Virtual Private Network)
In this document, this term is used to describe access services
that use tunneling methods.
<span class="h3"><a class="selflink" id="section-1.3" href="#section-1.3">1.3</a>. Requirements Language</span>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
"OPTIONAL" in this document are to be interpreted as described in
[<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
<span class="grey">Zorn Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
The use of "MUST" and "MUST NOT" in the AVP Flag Rules columns of AVP
Tables in this document refers to AVP flags (<a href="./rfc6733#section-4.1">[RFC6733], Section 4.1</a>)
that:
o MUST be set to 1 in the AVP Header ("MUST" column) and
o MUST NOT be set to 1 ("MUST NOT" column)
<span class="h3"><a class="selflink" id="section-1.4" href="#section-1.4">1.4</a>. Advertising Application Support</span>
Diameter nodes conforming to this specification MUST advertise
support by including the value of one (1) in the Auth-Application-Id
of the Capabilities-Exchange-Request (CER) message [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>].
<span class="h3"><a class="selflink" id="section-1.5" href="#section-1.5">1.5</a>. Application Identification</span>
When used in this application, the Auth-Application-Id AVP MUST be
set to the value one (1) in the following messages
o AA-Request (<a href="#section-3.1">Section 3.1</a>)
o Re-Auth-Request(<a href="#section-3.3">Section 3.3</a>)
o Session-Termination-Request (<a href="#section-3.5">Section 3.5</a>)
o Abort-Session-Request (<a href="#section-3.7">Section 3.7</a>)
<span class="h3"><a class="selflink" id="section-1.6" href="#section-1.6">1.6</a>. Accounting Model</span>
It is RECOMMENDED that the coupled accounting model (<a href="./rfc6733#section-9.3">RFC 6733,
Section 9.3</a>) be used with this application; therefore, the value of
the Acct-Application-Id AVP in the Accounting-Request (<a href="#section-3.9">Section 3.9</a>)
and Accounting-Answer (<a href="#section-3.10">Section 3.10</a>) messages SHOULD be set to one
(1).
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. NAS Calls, Ports, and Sessions</span>
The arrival of a new call or service connection at a port of a
Network Access Server (NAS) starts a Diameter NAS Application message
exchange. Information about the call, the identity of the user, and
the user's authentication information are packaged into a Diameter
AA-Request (AAR) message and sent to a server.
The server processes the information and responds with a Diameter AA-
Answer (AAA) message that contains authorization information for the
NAS or a failure code (Result-Code AVP). A value of
<span class="grey">Zorn Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
DIAMETER_MULTI_ROUND_AUTH indicates an additional authentication
exchange, and several AAR and AAA messages may be exchanged until the
transaction completes.
<span class="h3"><a class="selflink" id="section-2.1" href="#section-2.1">2.1</a>. Diameter Session Establishment</span>
When the authentication or authorization exchange completes
successfully, the NAS application SHOULD start a session context. If
the Result-Code of DIAMETER_MULTI_ROUND_AUTH is returned, the
exchange continues until a success or error is returned.
If accounting is active, the application MUST also send an Accounting
message [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>]. An Accounting-Record-Type of START_RECORD is sent
for a new session. If a session fails to start, the EVENT_RECORD
message is sent with the reason for the failure described.
Note that the return of an unsupportable Accounting-Realtime-Required
value [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>] would result in a failure to establish the session.
<span class="h3"><a class="selflink" id="section-2.2" href="#section-2.2">2.2</a>. Diameter Session Reauthentication or Reauthorization</span>
The Diameter Base protocol allows users to be periodically
reauthenticated and/or reauthorized. In such instances, the Session-
Id AVP in the AAR message MUST be the same as the one present in the
original authentication/authorization message.
A Diameter server informs the NAS of the maximum time allowed before
reauthentication or reauthorization via the Authorization-Lifetime
AVP [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>]. A NAS MAY reauthenticate and/or reauthorize before
the end, but a NAS MUST reauthenticate and/or reauthorize at the end
of the period provided by the Authorization-Lifetime AVP. The
failure of a reauthentication exchange will terminate the service.
Furthermore, it is possible for Diameter servers to issue an
unsolicited reauthentication and/or reauthorization request (e.g.,
Re-Auth-Request (RAR) message [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>]) to the NAS. Upon receipt of
such a message, the NAS MUST respond to the request with a Re-Auth-
Answer (RAA) message [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>].
If the RAR properly identifies an active session, the NAS will
initiate a new local reauthentication or authorization sequence as
indicated by the Re-Auth-Request-Type value. This will cause the NAS
to send a new AAR message using the existing Session-Id. The server
will respond with an AAA message to specify the new service
parameters.
<span class="grey">Zorn Standards Track [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
If accounting is active, every change of authentication or
authorization SHOULD generate an accounting message. If the NAS
service is a continuation of the prior user context, then an
Accounting-Record-Type of INTERIM_RECORD indicating the new session
attributes and cumulative status would be appropriate. If a new user
or a significant change in authorization is detected by the NAS, then
the service may send two messages of the types STOP_RECORD and
START_RECORD. Accounting may change the subsession identifiers
(Acct-Session-Id, or Acct-Sub-Session-Id) to indicate such
subsessions. A service may also use a different Session-Id value for
accounting (see <a href="./rfc6733#section-9.6">Section 9.6 of [RFC6733]</a>).
However, the Diameter Session-Id AVP value used for the initial
authorization exchange MUST be used to generate an STR message when
the session context is terminated.
<span class="h3"><a class="selflink" id="section-2.3" href="#section-2.3">2.3</a>. Diameter Session Termination</span>
When a NAS receives an indication that a user's session is being
disconnected by the client (e.g., an LCP Terminate-Request message
[<a href="./rfc1661" title=""The Point-to-Point Protocol (PPP)"">RFC1661</a>] is received) or an administrative command, the NAS MUST
issue a Session-Termination-Request (STR) [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>] to its Diameter
server. This will ensure that any resources maintained on the
servers are freed appropriately.
Furthermore, a NAS that receives an Abort-Session-Request (ASR)
[<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>] MUST issue an Abort-Session-Answer (ASA) if the session
identified is active and disconnect the PPP (or tunneling) session.
If accounting is active, an Accounting STOP_RECORD message [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>]
MUST be sent upon termination of the session context.
More information on Diameter Session Termination can be found in
Sections <a href="#section-8.4">8.4</a> and <a href="#section-8.5">8.5</a> of [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>].
<span class="grey">Zorn Standards Track [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Diameter NAS Application Messages</span>
This section defines the Diameter message Command Code [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>]
values that MUST be supported by all Diameter implementations
conforming to this specification. The Command Codes are as follows:
+-----------------------------------+---------+------+--------------+
| Command Name | Abbrev. | Code | Reference |
+-----------------------------------+---------+------+--------------+
| AA-Request | AAR | 265 | <a href="#section-3.1">Section 3.1</a> |
| AA-Answer | AAA | 265 | <a href="#section-3.2">Section 3.2</a> |
| Re-Auth-Request | RAR | 258 | <a href="#section-3.3">Section 3.3</a> |
| Re-Auth-Answer | RAA | 258 | <a href="#section-3.4">Section 3.4</a> |
| Session-Termination-Request | STR | 275 | <a href="#section-3.5">Section 3.5</a> |
| Session-Termination-Answer | STA | 275 | <a href="#section-3.6">Section 3.6</a> |
| Abort-Session-Request | ASR | 274 | <a href="#section-3.7">Section 3.7</a> |
| Abort-Session-Answer | ASA | 274 | <a href="#section-3.8">Section 3.8</a> |
| Accounting-Request | ACR | 271 | <a href="#section-3.9">Section 3.9</a> |
| Accounting-Answer | ACA | 271 | <a href="#section-3.10">Section 3.10</a> |
+-----------------------------------+---------+------+--------------+
Note that the message formats in the following subsections use the
standard Diameter Command Code Format (<a href="./rfc6733#section-3.2">[RFC6733], Section 3.2</a>).
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. AA-Request (AAR) Command</span>
The AA-Request (AAR), which is indicated by setting the Command Code
field to 265 and the 'R' bit in the Command Flags field, is used to
request authentication and/or authorization for a given NAS user.
The type of request is identified through the Auth-Request-Type AVP
[<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>]. The recommended value for most situations is
AUTHORIZE_AUTHENTICATE.
If Authentication is requested, the User-Name attribute SHOULD be
present, as well as any additional authentication AVPs that would
carry the password information. A request for authorization SHOULD
only include the information from which the authorization will be
performed, such as the User-Name, Called-Station-Id, or Calling-
Station-Id AVPs. All requests SHOULD contain AVPs uniquely
identifying the source of the call, such as Origin-Host and NAS-Port.
Certain networks MAY use different AVPs for authorization purposes.
A request for authorization will include some AVPs defined in
<a href="#section-4.4">Section 4.4</a>.
It is possible for a single session to be authorized first and then
for an authentication request to follow.
<span class="grey">Zorn Standards Track [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
This AA-Request message MAY be the result of a multi-round
authentication exchange, which occurs when the AA-Answer message is
received with the Result-Code AVP set to DIAMETER_MULTI_ROUND_AUTH.
A subsequent AAR message SHOULD be sent, with the User-Password AVP
that includes the user's response to the prompt and MUST include any
State AVPs that were present in the AAA message.
Message Format
<AA-Request> ::= < Diameter Header: 265, REQ, PXY >
< Session-Id >
{ Auth-Application-Id }
{ Origin-Host }
{ Origin-Realm }
{ Destination-Realm }
{ Auth-Request-Type }
[ Destination-Host ]
[ NAS-Identifier ]
[ NAS-IP-Address ]
[ NAS-IPv6-Address ]
[ NAS-Port ]
[ NAS-Port-Id ]
[ NAS-Port-Type ]
[ Origin-AAA-Protocol ]
[ Origin-State-Id ]
[ Port-Limit ]
[ User-Name ]
[ User-Password ]
[ Service-Type ]
[ State ]
[ Authorization-Lifetime ]
[ Auth-Grace-Period ]
[ Auth-Session-State ]
[ Callback-Number ]
[ Called-Station-Id ]
[ Calling-Station-Id ]
[ Originating-Line-Info ]
[ Connect-Info ]
[ CHAP-Auth ]
[ CHAP-Challenge ]
* [ Framed-Compression ]
[ Framed-Interface-Id ]
[ Framed-IP-Address ]
* [ Framed-IPv6-Prefix ]
[ Framed-IP-Netmask ]
[ Framed-MTU ]
[ Framed-Protocol ]
[ ARAP-Password ]
<span class="grey">Zorn Standards Track [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
[ ARAP-Security ]
* [ ARAP-Security-Data ]
* [ Login-IP-Host ]
* [ Login-IPv6-Host ]
[ Login-LAT-Group ]
[ Login-LAT-Node ]
[ Login-LAT-Port ]
[ Login-LAT-Service ]
* [ Tunneling ]
* [ Proxy-Info ]
* [ Route-Record ]
* [ AVP ]
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>. AA-Answer (AAA) Command</span>
The AA-Answer (AAA) message is indicated by setting the Command Code
field to 265 and clearing the 'R' bit in the Command Flags field. It
is sent in response to the AA-Request (AAR) message. If
authorization was requested, a successful response will include the
authorization AVPs appropriate for the service being provided, as
defined in <a href="#section-4.4">Section 4.4</a>.
For authentication exchanges requiring more than a single round trip,
the server MUST set the Result-Code AVP to DIAMETER_MULTI_ROUND_AUTH.
An AAA message with this result code MAY include one Reply-Message or
more and MAY include zero or one State AVPs.
If the Reply-Message AVP was present, the network access server
SHOULD send the text to the user's client to display to the user,
instructing the client to prompt the user for a response. For
example, this can be achieved in PPP via PAP. If it is impossible to
deliver the text prompt to the user, the Diameter NAS Application
client MUST treat the AA-Answer (AAA) with the Reply-Message AVP as
an error and deny access.
Message Format
<AA-Answer> ::= < Diameter Header: 265, PXY >
< Session-Id >
{ Auth-Application-Id }
{ Auth-Request-Type }
{ Result-Code }
{ Origin-Host }
{ Origin-Realm }
[ User-Name ]
[ Service-Type ]
* [ Class ]
<span class="grey">Zorn Standards Track [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
* [ Configuration-Token ]
[ Acct-Interim-Interval ]
[ Error-Message ]
[ Error-Reporting-Host ]
* [ Failed-AVP ]
[ Idle-Timeout ]
[ Authorization-Lifetime ]
[ Auth-Grace-Period ]
[ Auth-Session-State ]
[ Re-Auth-Request-Type ]
[ Multi-Round-Time-Out ]
[ Session-Timeout ]
[ State ]
* [ Reply-Message ]
[ Origin-AAA-Protocol ]
[ Origin-State-Id ]
* [ Filter-Id ]
[ Password-Retry ]
[ Port-Limit ]
[ Prompt ]
[ ARAP-Challenge-Response ]
[ ARAP-Features ]
[ ARAP-Security ]
* [ ARAP-Security-Data ]
[ ARAP-Zone-Access ]
[ Callback-Id ]
[ Callback-Number ]
[ Framed-Appletalk-Link ]
* [ Framed-Appletalk-Network ]
[ Framed-Appletalk-Zone ]
* [ Framed-Compression ]
[ Framed-Interface-Id ]
[ Framed-IP-Address ]
* [ Framed-IPv6-Prefix ]
[ Framed-IPv6-Pool ]
* [ Framed-IPv6-Route ]
[ Framed-IP-Netmask ]
* [ Framed-Route ]
[ Framed-Pool ]
[ Framed-IPX-Network ]
[ Framed-MTU ]
[ Framed-Protocol ]
[ Framed-Routing ]
* [ Login-IP-Host ]
* [ Login-IPv6-Host ]
[ Login-LAT-Group ]
[ Login-LAT-Node ]
[ Login-LAT-Port ]
<span class="grey">Zorn Standards Track [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
[ Login-LAT-Service ]
[ Login-Service ]
[ Login-TCP-Port ]
* [ NAS-Filter-Rule ]
* [ QoS-Filter-Rule ]
* [ Tunneling ]
* [ Redirect-Host ]
[ Redirect-Host-Usage ]
[ Redirect-Max-Cache-Time ]
* [ Proxy-Info ]
* [ AVP ]
<span class="h3"><a class="selflink" id="section-3.3" href="#section-3.3">3.3</a>. Re-Auth-Request (RAR) Command</span>
A Diameter server can initiate reauthentication and/or
reauthorization for a particular session by issuing a Re-Auth-Request
(RAR) message [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>].
For example, for prepaid services, the Diameter server that
originally authorized a session may need some confirmation that the
user is still using the services.
If a NAS receives an RAR message with Session-Id equal to a currently
active session and a Re-Auth-Type that includes authentication, it
MUST initiate a reauthentication toward the user, if the service
supports this particular feature.
Message Format
<RA-Request> ::= < Diameter Header: 258, REQ, PXY >
< Session-Id >
{ Origin-Host }
{ Origin-Realm }
{ Destination-Realm }
{ Destination-Host }
{ Auth-Application-Id }
{ Re-Auth-Request-Type }
[ User-Name ]
[ Origin-AAA-Protocol ]
[ Origin-State-Id ]
[ NAS-Identifier ]
[ NAS-IP-Address ]
[ NAS-IPv6-Address ]
[ NAS-Port ]
[ NAS-Port-Id ]
[ NAS-Port-Type ]
[ Service-Type ]
[ Framed-IP-Address ]
<span class="grey">Zorn Standards Track [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
[ Framed-IPv6-Prefix ]
[ Framed-Interface-Id ]
[ Called-Station-Id ]
[ Calling-Station-Id ]
[ Originating-Line-Info ]
[ Acct-Session-Id ]
[ Acct-Multi-Session-Id ]
[ State ]
* [ Class ]
[ Reply-Message ]
* [ Proxy-Info ]
* [ Route-Record ]
* [ AVP ]
<span class="h3"><a class="selflink" id="section-3.4" href="#section-3.4">3.4</a>. Re-Auth-Answer (RAA) Command</span>
The Re-Auth-Answer (RAA) message [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>] is sent in response to the
RAR. The Result-Code AVP MUST be present and indicates the
disposition of the request.
A successful RAA transaction MUST be followed by an AAR message.
Message Format
<RA-Answer> ::= < Diameter Header: 258, PXY >
< Session-Id >
{ Result-Code }
{ Origin-Host }
{ Origin-Realm }
[ User-Name ]
[ Origin-AAA-Protocol ]
[ Origin-State-Id ]
[ Error-Message ]
[ Error-Reporting-Host ]
* [ Failed-AVP ]
* [ Redirected-Host ]
[ Redirected-Host-Usage ]
[ Redirected-Host-Cache-Time ]
[ Service-Type ]
* [ Configuration-Token ]
[ Idle-Timeout ]
[ Authorization-Lifetime ]
[ Auth-Grace-Period ]
[ Re-Auth-Request-Type ]
[ State ]
* [ Class ]
* [ Reply-Message ]
[ Prompt ]
<span class="grey">Zorn Standards Track [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
* [ Proxy-Info ]
* [ AVP ]
<span class="h3"><a class="selflink" id="section-3.5" href="#section-3.5">3.5</a>. Session-Termination-Request (STR) Command</span>
The Session-Termination-Request (STR) message [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>] is sent by
the NAS to inform the Diameter server that an authenticated and/or
authorized session is being terminated.
Message Format
<ST-Request> ::= < Diameter Header: 275, REQ, PXY >
< Session-Id >
{ Origin-Host }
{ Origin-Realm }
{ Destination-Realm }
{ Auth-Application-Id }
{ Termination-Cause }
[ User-Name ]
[ Destination-Host ]
* [ Class ]
[ Origin-AAA-Protocol ]
[ Origin-State-Id ]
* [ Proxy-Info ]
* [ Route-Record ]
* [ AVP ]
<span class="h3"><a class="selflink" id="section-3.6" href="#section-3.6">3.6</a>. Session-Termination-Answer (STA) Command</span>
The Session-Termination-Answer (STA) message [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>] is sent by the
Diameter server to acknowledge the notification that the session has
been terminated. The Result-Code AVP MUST be present and MAY contain
an indication that an error occurred while the STR was being
serviced.
Upon sending the STA, the Diameter server MUST release all resources
for the session indicated by the Session-Id AVP. Any intermediate
server in the Proxy-Chain MAY also release any resources, if
necessary.
<span class="grey">Zorn Standards Track [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
Message Format
<ST-Answer> ::= < Diameter Header: 275, PXY >
< Session-Id >
{ Result-Code }
{ Origin-Host }
{ Origin-Realm }
[ User-Name ]
* [ Class ]
[ Error-Message ]
[ Error-Reporting-Host ]
* [ Failed-AVP ]
[ Origin-AAA-Protocol ]
[ Origin-State-Id ]
* [ Redirect-Host ]
[ Redirect-Host-Usage ]
[ Redirect-Max-Cache-Time ]
* [ Proxy-Info ]
* [ AVP ]
<span class="h3"><a class="selflink" id="section-3.7" href="#section-3.7">3.7</a>. Abort-Session-Request (ASR) Command</span>
The Abort-Session-Request (ASR) message [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>] can be sent by any
Diameter server to the NAS providing session service to request that
the session identified by the Session-Id be stopped.
Message Format
<AS-Request> ::= < Diameter Header: 274, REQ, PXY >
< Session-Id >
{ Origin-Host }
{ Origin-Realm }
{ Destination-Realm }
{ Destination-Host }
{ Auth-Application-Id }
[ User-Name ]
[ Origin-AAA-Protocol ]
[ Origin-State-Id ]
[ NAS-Identifier ]
[ NAS-IP-Address ]
[ NAS-IPv6-Address ]
[ NAS-Port ]
[ NAS-Port-Id ]
[ NAS-Port-Type ]
[ Service-Type ]
[ Framed-IP-Address ]
[ Framed-IPv6-Prefix ]
[ Framed-Interface-Id ]
<span class="grey">Zorn Standards Track [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
[ Called-Station-Id ]
[ Calling-Station-Id ]
[ Originating-Line-Info ]
[ Acct-Session-Id ]
[ Acct-Multi-Session-Id ]
[ State ]
* [ Class ]
* [ Reply-Message ]
* [ Proxy-Info ]
* [ Route-Record ]
* [ AVP ]
<span class="h3"><a class="selflink" id="section-3.8" href="#section-3.8">3.8</a>. Abort-Session-Answer (ASA) Command</span>
The ASA message [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>] is sent in response to the ASR. The
Result-Code AVP MUST be present and indicates the disposition of the
request.
If the session identified by Session-Id in the ASR was successfully
terminated, the Result-Code is set to DIAMETER_SUCCESS. If the
session is not currently active, the Result-Code AVP is set to
DIAMETER_UNKNOWN_SESSION_ID. If the access device does not stop the
session for any other reason, the Result-Code AVP is set to
DIAMETER_UNABLE_TO_COMPLY.
Message Format
<AS-Answer> ::= < Diameter Header: 274, PXY >
< Session-Id >
{ Result-Code }
{ Origin-Host }
{ Origin-Realm }
[ User-Name ]
[ Origin-AAA-Protocol ]
[ Origin-State-Id ]
[ State]
[ Error-Message ]
[ Error-Reporting-Host ]
* [ Failed-AVP ]
* [ Redirected-Host ]
[ Redirected-Host-Usage ]
[ Redirected-Max-Cache-Time ]
* [ Proxy-Info ]
* [ AVP ]
<span class="grey">Zorn Standards Track [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
<span class="h3"><a class="selflink" id="section-3.9" href="#section-3.9">3.9</a>. Accounting-Request (ACR) Command</span>
The ACR message [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>] is sent by the NAS to report its session
information to a target server downstream.
The Acct-Application-Id AVP MUST be present.
The AVPs listed in the Diameter Base protocol specification [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>]
MUST be assumed to be present, as appropriate. NAS service-specific
accounting AVPs SHOULD be present as described in <a href="#section-4.6">Section 4.6</a> and the
rest of this specification.
Message Format
<AC-Request> ::= < Diameter Header: 271, REQ, PXY >
< Session-Id >
{ Origin-Host }
{ Origin-Realm }
{ Destination-Realm }
{ Accounting-Record-Type }
{ Accounting-Record-Number }
{ Acct-Application-Id }
[ User-Name ]
[ Accounting-Sub-Session-Id ]
[ Acct-Session-Id ]
[ Acct-Multi-Session-Id ]
[ Origin-AAA-Protocol ]
[ Origin-State-Id ]
[ Destination-Host ]
[ Event-Timestamp ]
[ Acct-Delay-Time ]
[ NAS-Identifier ]
[ NAS-IP-Address ]
[ NAS-IPv6-Address ]
[ NAS-Port ]
[ NAS-Port-Id ]
[ NAS-Port-Type ]
* [ Class ]
[ Service-Type ]
[ Termination-Cause ]
[ Accounting-Input-Octets ]
[ Accounting-Input-Packets ]
[ Accounting-Output-Octets ]
[ Accounting-Output-Packets ]
[ Acct-Authentic ]
[ Accounting-Auth-Method ]
[ Acct-Link-Count ]
[ Acct-Session-Time ]
<span class="grey">Zorn Standards Track [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
[ Acct-Tunnel-Connection ]
[ Acct-Tunnel-Packets-Lost ]
[ Callback-Id ]
[ Callback-Number ]
[ Called-Station-Id ]
[ Calling-Station-Id ]
* [ Connection-Info ]
[ Originating-Line-Info ]
[ Authorization-Lifetime ]
[ Session-Timeout ]
[ Idle-Timeout ]
[ Port-Limit ]
[ Accounting-Realtime-Required ]
[ Acct-Interim-Interval ]
* [ Filter-Id ]
* [ NAS-Filter-Rule ]
* [ QoS-Filter-Rule ]
[ Framed-Appletalk-Link ]
[ Framed-Appletalk-Network ]
[ Framed-Appletalk-Zone ]
[ Framed-Compression ]
[ Framed-Interface-Id ]
[ Framed-IP-Address ]
[ Framed-IP-Netmask ]
* [ Framed-IPv6-Prefix ]
[ Framed-IPv6-Pool ]
* [ Framed-IPv6-Route ]
[ Framed-IPX-Network ]
[ Framed-MTU ]
[ Framed-Pool ]
[ Framed-Protocol ]
* [ Framed-Route ]
[ Framed-Routing ]
* [ Login-IP-Host ]
* [ Login-IPv6-Host ]
[ Login-LAT-Group ]
[ Login-LAT-Node ]
[ Login-LAT-Port ]
[ Login-LAT-Service ]
[ Login-Service ]
[ Login-TCP-Port ]
* [ Tunneling ]
* [ Proxy-Info ]
* [ Route-Record ]
* [ AVP ]
<span class="grey">Zorn Standards Track [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
<span class="h3"><a class="selflink" id="section-3.10" href="#section-3.10">3.10</a>. Accounting-Answer (ACA) Command</span>
The ACA message [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>] is used to acknowledge an Accounting-
Request command. The Accounting-Answer command contains the same
Session-Id as the Request.
Only the target Diameter server or home Diameter server SHOULD
respond with the Accounting-Answer command.
The Acct-Application-Id AVP MUST be present.
The AVPs listed in the Diameter Base protocol specification [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>]
MUST be assumed to be present, as appropriate. NAS service-specific
accounting AVPs SHOULD be present as described in <a href="#section-4.6">Section 4.6</a> and the
rest of this specification.
Message Format
<AC-Answer> ::= < Diameter Header: 271, PXY >
< Session-Id >
{ Result-Code }
{ Origin-Host }
{ Origin-Realm }
{ Accounting-Record-Type }
{ Accounting-Record-Number }
{ Acct-Application-Id }
[ User-Name ]
[ Accounting-Sub-Session-Id ]
[ Acct-Session-Id ]
[ Acct-Multi-Session-Id ]
[ Event-Timestamp ]
[ Error-Message ]
[ Error-Reporting-Host ]
* [ Failed-AVP ]
[ Origin-AAA-Protocol ]
[ Origin-State-Id ]
[ NAS-Identifier ]
[ NAS-IP-Address ]
[ NAS-IPv6-Address ]
[ NAS-Port ]
[ NAS-Port-Id ]
[ NAS-Port-Type ]
[ Service-Type ]
[ Termination-Cause ]
[ Accounting-Realtime-Required ]
<span class="grey">Zorn Standards Track [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
[ Acct-Interim-Interval ]
* [ Class ]
* [ Proxy-Info ]
* [ AVP ]
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Diameter NAS Application AVPs</span>
The following sections define a new derived AVP data format, define a
set of application-specific AVPs, and describe the use of AVPs
defined in other documents by the Diameter NAS Application.
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. Derived AVP Data Formats</span>
<span class="h4"><a class="selflink" id="section-4.1.1" href="#section-4.1.1">4.1.1</a>. QoSFilterRule</span>
The QosFilterRule format is derived from the OctetString AVP Base
Format. It uses the US-ASCII charset. Packets may be marked or
metered based on the following information:
o Direction (in or out)
o Source and destination IP address (possibly masked)
o Protocol
o Source and destination port (lists or ranges)
o Differentiated Services Code Point (DSCP) values (no mask or
range)
Rules for the appropriate direction are evaluated in order; the first
matched rule terminates the evaluation. Each packet is evaluated
once. If no rule matches, the packet is treated as best effort. An
access device unable to interpret or apply a QoS rule SHOULD NOT
terminate the session.
<span class="grey">Zorn Standards Track [Page 23]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-24" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
QoSFilterRule filters MUST follow the following format:
action dir proto from src to dst [options]
where
action
tag Mark packet with a specific DSCP [<a href="./rfc2474" title=""Definition of the Differentiated Services Field (DS Field) in the IPv4 and IPv6 Headers"">RFC2474</a>]
meter Meter traffic
dir The format is as described under IPFilterRule
[<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>]
proto The format is as described under IPFilterRule
[<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>]
src and dst The format is as described under IPFilterRule
[<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>]
The options are described in <a href="#section-4.4.9">Section 4.4.9</a>.
The rule syntax is a modified subset of ipfw(8) from FreeBSD, and the
ipfw.c code may provide a useful base for implementations.
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. NAS Session AVPs</span>
Diameter reserves the AVP Codes 0 - 255 for RADIUS Attributes that
are implemented in Diameter.
<span class="h4"><a class="selflink" id="section-4.2.1" href="#section-4.2.1">4.2.1</a>. Call and Session Information</span>
This section describes the AVPs specific to Diameter applications
that are needed to identify the call and session context and status
information. On a request, this information allows the server to
qualify the session.
These AVPs are used in addition to the following AVPs from the
Diameter Base protocol specification [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>]:
Session-Id Auth-Application-Id Origin-Host Origin-Realm
Auth-Request-Type Termination-Cause
<span class="grey">Zorn Standards Track [Page 24]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-25" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
The following table gives the possible flag values for the session
level AVPs.
+-----------+
| AVP Flag |
| Rules |
|-----+-----+
|MUST | MUST|
Attribute Name Section Defined | | NOT|
-----------------------------------------|-----+-----|
NAS-Port 4.2.2 | M | V |
NAS-Port-Id 4.2.3 | M | V |
NAS-Port-Type 4.2.4 | M | V |
Called-Station-Id 4.2.5 | M | V |
Calling-Station-Id 4.2.6 | M | V |
Connect-Info 4.2.7 | M | V |
Originating-Line-Info 4.2.8 | M | V |
Reply-Message 4.2.9 | M | V |
-----------------------------------------|-----+-----|
<span class="h4"><a class="selflink" id="section-4.2.2" href="#section-4.2.2">4.2.2</a>. NAS-Port AVP</span>
The NAS-Port AVP (AVP Code 5) is of type Unsigned32 and contains the
physical or virtual port number of the NAS, which authenticates the
user. Note that "port" is meant in its sense as a service connection
on the NAS, not as an IP protocol identifier; hence, the format and
contents of the string that identifies the port are specific to the
NAS implementation.
Either the NAS-Port AVP or the NAS-Port-Id AVP (<a href="#section-4.2.3">Section 4.2.3</a>) SHOULD
be present in the AA-Request (AAR, <a href="#section-3.1">Section 3.1</a>) command if the NAS
differentiates among its ports.
<span class="h4"><a class="selflink" id="section-4.2.3" href="#section-4.2.3">4.2.3</a>. NAS-Port-Id AVP</span>
The NAS-Port-Id AVP (AVP Code 87) is of type UTF8String and consists
of 7-bit US-ASCII text identifying the port of the NAS authenticating
the user. Note that "port" is meant in its sense as a service
connection on the NAS, not as an IP protocol identifier.
Either the NAS-Port-Id AVP or the NAS-Port AVP (<a href="#section-4.2.2">Section 4.2.2</a>) SHOULD
be present in the AA-Request (AAR, <a href="#section-3.1">Section 3.1</a>) command if the NAS
differentiates among its ports. NAS-Port-Id is intended for use by
NASes that cannot conveniently number their ports.
<span class="grey">Zorn Standards Track [Page 25]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-26" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
<span class="h4"><a class="selflink" id="section-4.2.4" href="#section-4.2.4">4.2.4</a>. NAS-Port-Type AVP</span>
The NAS-Port-Type AVP (AVP Code 61) is of type Enumerated and
contains the type of the port on which the NAS is authenticating the
user. This AVP SHOULD be present if the NAS uses the same NAS-Port
number ranges for different service types concurrently.
The currently supported values of the NAS-Port-Type AVP are listed in
[<a href="#ref-RADIUSAttrVals">RADIUSAttrVals</a>].
<span class="h4"><a class="selflink" id="section-4.2.5" href="#section-4.2.5">4.2.5</a>. Called-Station-Id AVP</span>
The Called-Station-Id AVP (AVP Code 30) is of type UTF8String and
contains a 7-bit US-ASCII string sent by the NAS to describe the
Layer 2 address the user contacted in the request. For dialup
access, this can be a phone number obtained by using the Dialed
Number Identification Service (DNIS) or a similar technology. Note
that this may be different from the phone number the call comes in
on. For use with IEEE 802 access, the Called-Station-Id MAY contain
a Media Access Control (MAC) address formatted as described in
[<a href="./rfc3580" title=""IEEE 802.1X Remote Authentication Dial In User Service (RADIUS) Usage Guidelines"">RFC3580</a>].
If the Called-Station-Id AVP is present in an AAR message, the Auth-
Request-Type AVP is set to AUTHORIZE_ONLY, and the User-Name AVP is
absent, the Diameter server MAY perform authorization based on this
AVP. This can be used by a NAS to request whether a call should be
answered based on the DNIS result.
Further codification of this field's allowed content and usage is
outside the scope of this specification.
<span class="h4"><a class="selflink" id="section-4.2.6" href="#section-4.2.6">4.2.6</a>. Calling-Station-Id AVP</span>
The Calling-Station-Id AVP (AVP Code 31) is of type UTF8String and
contains a 7-bit US-ASCII string sent by the NAS to describe the
Layer 2 address from which the user connected in the request. For
dialup access, this is the phone number the call came from, using
Automatic Number Identification (ANI) or a similar technology. For
use with IEEE 802 access, the Calling-Station-Id AVP MAY contain a
MAC address, formatted as described in <a href="./rfc3580">RFC 3580</a>.
If the Calling-Station-Id AVP is present in an AAR message, the Auth-
Request-Type AVP is set to AUTHORIZE_ONLY, and the User-Name AVP is
absent, the Diameter server MAY perform authorization based on the
value of this AVP. This can be used by a NAS to request whether a
call should be answered based on the Layer 2 address (ANI, MAC
Address, etc.)
<span class="grey">Zorn Standards Track [Page 26]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-27" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
Further codification of this field's allowed content and usage is
outside the scope of this specification.
<span class="h4"><a class="selflink" id="section-4.2.7" href="#section-4.2.7">4.2.7</a>. Connect-Info AVP</span>
The Connect-Info AVP (AVP Code 77) is of type UTF8String and is sent
in the AA-Request message or an ACR message with the value of the
Accounting-Record-Type AVP set to STOP. When sent in the AA-Request,
it indicates the nature of the user's connection. The connection
speed SHOULD be included at the beginning of the first Connect-Info
AVP in the message. If the transmit and receive connection speeds
differ, both may be included in the first AVP with the transmit speed
listed first (the speed at which the NAS modem transmits), then a
slash (/), then the receive speed, and then other optional
information.
For example: "28800 V42BIS/LAPM" or "52000/31200 V90"
If sent in an ACR message with the value of the Accounting-Record-
Type AVP set to STOP, this attribute may summarize statistics
relating to session quality. For example, in IEEE 802.11, the
Connect-Info AVP may contain information on the number of link layer
retransmissions. The exact format of this attribute is
implementation specific.
<span class="h4"><a class="selflink" id="section-4.2.8" href="#section-4.2.8">4.2.8</a>. Originating-Line-Info AVP</span>
The Originating-Line-Info AVP (AVP Code 94) is of type OctetString
and is sent by the NAS system to convey information about the origin
of the call from a Signaling System 7 (SS7).
The Originating Line Information (OLI) element indicates the nature
and/or characteristics of the line from which a call originated
(e.g., pay phone, hotel phone, cellular phone). Telephone companies
are starting to offer OLI to their customers as an option over
Primary Rate Interface (PRI). Internet Service Providers (ISPs) can
use OLI in addition to Called-Station-Id and Calling-Station-Id
attributes to differentiate customer calls and to define different
services.
The Value field contains two octets (00 - 99). ANSI T1.113 and
BELLCORE 394 can be used for additional information about these
values and their use. For information on the currently assigned
values, see [<a href="#ref-ANITypes" title=""ANI Assignments"">ANITypes</a>].
<span class="grey">Zorn Standards Track [Page 27]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-28" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
<span class="h4"><a class="selflink" id="section-4.2.9" href="#section-4.2.9">4.2.9</a>. Reply-Message AVP</span>
The Reply-Message AVP (AVP Code 18) is of type UTF8String and
contains text that MAY be displayed to the user. When used in an AA-
Answer message with a successful Result-Code AVP, it indicates
success. When found in an AAA message with a Result-Code other than
DIAMETER_SUCCESS, the AVP contains a failure message.
The Reply-Message AVP MAY contain text to prompt the user before
another AA-Request attempt. When used in an AA-Answer message
containing a Result-Code AVP with the value DIAMETER_MULTI_ROUND_AUTH
or in a Re-Auth-Request message, it MAY contain text to prompt the
user for a response.
<span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a>. NAS Authentication AVPs</span>
This section defines the AVPs necessary to carry the authentication
information in the Diameter protocol. The functionality defined here
provides a RADIUS-like Authentication, Authorization, and Accounting
service [<a href="./rfc2865" title=""Remote Authentication Dial In User Service (RADIUS)"">RFC2865</a>] over a more reliable and secure transport, as
defined in the Diameter Base protocol [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>].
The following table gives the possible flag values for the session
level AVPs.
+----------+
| AVP Flag |
| Rules |
|----+-----|
|MUST| MUST|
Attribute Name Section Defined | | NOT|
-----------------------------------------|----+-----|
User-Password 4.3.1 | M | V |
Password-Retry 4.3.2 | M | V |
Prompt 4.3.3 | M | V |
CHAP-Auth 4.3.4 | M | V |
CHAP-Algorithm 4.3.5 | M | V |
CHAP-Ident 4.3.6 | M | V |
CHAP-Response 4.3.7 | M | V |
CHAP-Challenge 4.3.8 | M | V |
ARAP-Password 4.3.9 | M | V |
ARAP-Challenge-Response 4.3.10 | M | V |
ARAP-Security 4.3.11 | M | V |
ARAP-Security-Data 4.3.12 | M | V |
-----------------------------------------|----+-----|
<span class="grey">Zorn Standards Track [Page 28]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-29" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
<span class="h4"><a class="selflink" id="section-4.3.1" href="#section-4.3.1">4.3.1</a>. User-Password AVP</span>
The User-Password AVP (AVP Code 2) is of type OctetString and
contains the password of the user to be authenticated or the user's
input in a multi-round authentication exchange.
The User-Password AVP contains a user password or one-time password
and therefore represents sensitive information. As required by the
Diameter Base protocol [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>], Diameter messages are encrypted by
using IPsec [<a href="./rfc4301" title=""Security Architecture for the Internet Protocol"">RFC4301</a>] or Transport Layer Security (TLS) [<a href="./rfc5246" title=""The Transport Layer Security (TLS) Protocol Version 1.2"">RFC5246</a>].
Unless this AVP is used for one-time passwords, the User-Password AVP
SHOULD NOT be used in untrusted proxy environments without encrypting
it by using end-to-end security techniques.
The clear-text password (prior to encryption) MUST NOT be longer than
128 bytes in length.
<span class="h4"><a class="selflink" id="section-4.3.2" href="#section-4.3.2">4.3.2</a>. Password-Retry AVP</span>
The Password-Retry AVP (AVP Code 75) is of type Unsigned32 and MAY be
included in the AA-Answer if the Result-Code indicates an
authentication failure. The value of this AVP indicates how many
authentication attempts a user is permitted before being
disconnected. This AVP is primarily intended for use when the
Framed-Protocol AVP (<a href="#section-4.4.10.1">Section 4.4.10.1</a>) is set to ARAP.
<span class="h4"><a class="selflink" id="section-4.3.3" href="#section-4.3.3">4.3.3</a>. Prompt AVP</span>
The Prompt AVP (AVP Code 76) is of type Enumerated and MAY be present
in the AA-Answer message. When present, it is used by the NAS to
determine whether the user's response, when entered, should be
echoed.
The supported values are listed in [<a href="#ref-RADIUSAttrVals">RADIUSAttrVals</a>].
<span class="h4"><a class="selflink" id="section-4.3.4" href="#section-4.3.4">4.3.4</a>. CHAP-Auth AVP</span>
The CHAP-Auth AVP (AVP Code 402) is of type Grouped and contains the
information necessary to authenticate a user using the PPP Challenge-
Handshake Authentication Protocol (CHAP) [<a href="./rfc1994" title=""PPP Challenge Handshake Authentication Protocol (CHAP)"">RFC1994</a>]. If the CHAP-Auth
AVP is found in a message, the CHAP-Challenge AVP (<a href="#section-4.3.8">Section 4.3.8</a>)
MUST be present as well. The optional AVPs containing the CHAP
response depend upon the value of the CHAP-Algorithm AVP
(<a href="#section-4.3.8">Section 4.3.8</a>). The grouped AVP has the following ABNF [<a href="./rfc5234" title=""Augmented BNF for Syntax Specifications: ABNF"">RFC5234</a>]
grammar:
<span class="grey">Zorn Standards Track [Page 29]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-30" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
CHAP-Auth ::= < AVP Header: 402 >
{ CHAP-Algorithm }
{ CHAP-Ident }
[ CHAP-Response ]
* [ AVP ]
<span class="h4"><a class="selflink" id="section-4.3.5" href="#section-4.3.5">4.3.5</a>. CHAP-Algorithm AVP</span>
The CHAP-Algorithm AVP (AVP Code 403) is of type Enumerated and
contains the algorithm identifier used in the computation of the CHAP
response [<a href="./rfc1994" title=""PPP Challenge Handshake Authentication Protocol (CHAP)"">RFC1994</a>]. The following values are currently supported:
CHAP with MD5 5
The CHAP response is computed by using the procedure described in
[<a href="./rfc1994" title=""PPP Challenge Handshake Authentication Protocol (CHAP)"">RFC1994</a>]. This algorithm requires that the CHAP-Response AVP
(<a href="#section-4.3.7">Section 4.3.7</a>) MUST be present in the CHAP-Auth AVP
(<a href="#section-4.3.4">Section 4.3.4</a>).
<span class="h4"><a class="selflink" id="section-4.3.6" href="#section-4.3.6">4.3.6</a>. CHAP-Ident AVP</span>
The CHAP-Ident AVP (AVP Code 404) is of type OctetString and contains
the 1 octet CHAP Identifier used in the computation of the CHAP
response [<a href="./rfc1994" title=""PPP Challenge Handshake Authentication Protocol (CHAP)"">RFC1994</a>].
<span class="h4"><a class="selflink" id="section-4.3.7" href="#section-4.3.7">4.3.7</a>. CHAP-Response AVP</span>
The CHAP-Response AVP (AVP Code 405) is of type OctetString and
contains the 16-octet authentication data provided by the user in
response to the CHAP challenge [<a href="./rfc1994" title=""PPP Challenge Handshake Authentication Protocol (CHAP)"">RFC1994</a>].
<span class="h4"><a class="selflink" id="section-4.3.8" href="#section-4.3.8">4.3.8</a>. CHAP-Challenge AVP</span>
The CHAP-Challenge AVP (AVP Code 60) is of type OctetString and
contains the CHAP Challenge sent by the NAS to the CHAP peer
[<a href="./rfc1994" title=""PPP Challenge Handshake Authentication Protocol (CHAP)"">RFC1994</a>].
<span class="h4"><a class="selflink" id="section-4.3.9" href="#section-4.3.9">4.3.9</a>. ARAP-Password AVP</span>
The ARAP-Password AVP (AVP Code 70) is of type OctetString and is
only present when the Framed-Protocol AVP (<a href="#section-4.4.10.1">Section 4.4.10.1</a>) is
included in the message and is set to ARAP. This AVP MUST NOT be
present if either the User-Password or the CHAP-Auth AVP is present.
See [<a href="./rfc2869" title=""RADIUS Extensions"">RFC2869</a>] for more information on the contents of this AVP.
<span class="grey">Zorn Standards Track [Page 30]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-31" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
<span class="h4"><a class="selflink" id="section-4.3.10" href="#section-4.3.10">4.3.10</a>. ARAP-Challenge-Response AVP</span>
The ARAP-Challenge-Response AVP (AVP Code 84) is of type OctetString
and is only present when the Framed-Protocol AVP (<a href="#section-4.4.10.1">Section 4.4.10.1</a>)
is included in the message and is set to ARAP. This AVP contains an
8-octet response to the dial-in client's challenge. The Diameter
server calculates this value by taking the dial-in client's challenge
from the high-order 8 octets of the ARAP-Password AVP and performing
DES encryption on this value with the authenticating user's password
as the key. If the user's password is fewer than 8 octets in length,
the password is padded at the end with NULL octets to a length of 8
before it is used as a key.
<span class="h4"><a class="selflink" id="section-4.3.11" href="#section-4.3.11">4.3.11</a>. ARAP-Security AVP</span>
The ARAP-Security AVP (AVP Code 73) is of type Unsigned32 and MAY be
present in the AA-Answer message if the Framed-Protocol AVP
(<a href="#section-4.4.10.1">Section 4.4.10.1</a>) is set to the value of ARAP, and the Result-Code
AVP (<a href="./rfc6733#section-7.1">[RFC6733], Section 7.1</a>) is set to DIAMETER_MULTI_ROUND_AUTH.
See <a href="./rfc2869">RFC 2869</a> for more information on the contents of this AVP.
<span class="h4"><a class="selflink" id="section-4.3.12" href="#section-4.3.12">4.3.12</a>. ARAP-Security-Data AVP</span>
The ARAP-Security-Data AVP (AVP Code 74) is of type OctetString and
MAY be present in the AA-Request or AA-Answer message if the Framed-
Protocol AVP (<a href="#section-4.4.10.1">Section 4.4.10.1</a>) is set to the value of ARAP and the
Result-Code AVP (<a href="./rfc6733#section-7.1">[RFC6733], Section 7.1</a>) is set to
DIAMETER_MULTI_ROUND_AUTH. This AVP contains the security module
challenge or response associated with the ARAP Security Module
specified in the ARAP-Security AVP (<a href="#section-4.3.11">Section 4.3.11</a>).
<span class="h3"><a class="selflink" id="section-4.4" href="#section-4.4">4.4</a>. NAS Authorization AVPs</span>
This section contains the authorization AVPs supported in the NAS
Application. The Service-Type AVP SHOULD be present in all messages
and, based on its value, additional AVPs defined in this section and
<a href="#section-4.5">Section 4.5</a> MAY be present.
The following table gives the possible flag values for the session-
level AVPs.
<span class="grey">Zorn Standards Track [Page 31]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-32" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
+----------+
| AVP Flag |
| Rules |
|----+-----|
|MUST| MUST|
Attribute Name Section Defined | | NOT|
-----------------------------------------|----+-----|
Service-Type 4.4.1 | M | V |
Callback-Number 4.4.2 | M | V |
Callback-Id 4.4.3 | M | V |
Idle-Timeout 4.4.4 | M | V |
Port-Limit 4.4.5 | M | V |
NAS-Filter-Rule 4.4.6 | M | V |
Filter-Id 4.4.7 | M | V |
Configuration-Token 4.4.8 | M | V |
QoS-Filter-Rule 4.4.9 | | |
Framed-Protocol 4.4.10.1 | M | V |
Framed-Routing 4.4.10.2 | M | V |
Framed-MTU 4.4.10.3 | M | V |
Framed-Compression 4.4.10.4 | M | V |
Framed-IP-Address 4.4.10.5.1 | M | V |
Framed-IP-Netmask 4.4.10.5.2 | M | V |
Framed-Route 4.4.10.5.3 | M | V |
Framed-Pool 4.4.10.5.4 | M | V |
Framed-Interface-Id 4.4.10.5.5 | M | V |
Framed-IPv6-Prefix 4.4.10.5.6 | M | V |
Framed-IPv6-Route 4.4.10.5.7 | M | V |
Framed-IPv6-Pool 4.4.10.5.8 | M | V |
Framed-IPX-Network 4.4.10.6.1 | M | V |
Framed-Appletalk-Link 4.4.10.7.1 | M | V |
Framed-Appletalk-Network 4.4.10.7.2 | M | V |
Framed-Appletalk-Zone 4.4.10.7.3 | M | V |
ARAP-Features 4.4.10.8.1 | M | V |
ARAP-Zone-Access 4.4.10.8.2 | M | V |
Login-IP-Host 4.4.11.1 | M | V |
Login-IPv6-Host 4.4.11.2 | M | V |
Login-Service 4.4.11.3 | M | V |
Login-TCP-Port 4.4.11.4.1 | M | V |
Login-LAT-Service 4.4.11.5.1 | M | V |
Login-LAT-Node 4.4.11.5.2 | M | V |
Login-LAT-Group 4.4.11.5.3 | M | V |
Login-LAT-Port 4.4.11.5.4 | M | V |
-----------------------------------------|----+-----|
<span class="grey">Zorn Standards Track [Page 32]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-33" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
<span class="h4"><a class="selflink" id="section-4.4.1" href="#section-4.4.1">4.4.1</a>. Service-Type AVP</span>
The Service-Type AVP (AVP Code 6) is of type Enumerated and contains
the type of service the user has requested or the type of service to
be provided. One such AVP MAY be present in an authentication and/or
authorization request or response. A NAS is not required to
implement all of these service types. It MUST treat unknown or
unsupported Service-Type AVPs received in a response as a failure and
end the session with a DIAMETER_INVALID_AVP_VALUE Result-Code.
When used in a request, the Service-Type AVP SHOULD be considered a
hint to the server that the NAS believes the user would prefer the
kind of service indicated. The server is not required to honor the
hint. Furthermore, if the service specified by the server is
supported, but not compatible with the current mode of access, the
NAS MUST fail to start the session. The NAS MUST also generate the
appropriate error message(s).
The complete list of defined values that the Service-Type AVP can
take can be found in [<a href="./rfc2865" title=""Remote Authentication Dial In User Service (RADIUS)"">RFC2865</a>] and the relevant IANA registry
[<a href="#ref-RADIUSAttrVals">RADIUSAttrVals</a>], but the following values require further
qualification here:
Login (1)
The user should be connected to a host. The message MAY
include additional AVPs as defined in Sections <a href="#section-4.4.11.4">4.4.11.4</a> or
4.4.11.5.
Framed (2)
A Framed Protocol, such as PPP or SLIP, should be started for
the user. The message MAY include additional AVPs defined in
Sections <a href="#section-4.4.10">4.4.10</a> or <a href="#section-4.5">4.5</a> for tunneling services.
Callback Login (3)
The user should be disconnected and called back, then connected
to a host. The message MAY include additional AVPs defined in
this section.
<span class="grey">Zorn Standards Track [Page 33]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-34" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
Callback Framed (4)
The user should be disconnected and called back, and then a
Framed Protocol, such as PPP or SLIP, should be started for the
user. The message MAY include additional AVPs defined in
Sections <a href="#section-4.4.10">4.4.10</a> or <a href="#section-4.5">4.5</a> for tunneling services.
<span class="h4"><a class="selflink" id="section-4.4.2" href="#section-4.4.2">4.4.2</a>. Callback-Number AVP</span>
The Callback-Number AVP (AVP Code 19) is of type UTF8String and
contains a dialing string to be used for callback, the format of
which is deployment specific. The Callback-Number AVP MAY be used in
an authentication and/or authorization request as a hint to the
server that a callback service is desired, but the server is not
required to honor the hint in the corresponding response.
Any further codification of this field's allowed usage range is
outside the scope of this specification.
<span class="h4"><a class="selflink" id="section-4.4.3" href="#section-4.4.3">4.4.3</a>. Callback-Id AVP</span>
The Callback-Id AVP (AVP Code 20) is of type UTF8String and contains
the name of a place to be called, to be interpreted by the NAS. This
AVP MAY be present in an authentication and/or authorization
response.
This AVP is not roaming-friendly as it assumes that the Callback-Id
is configured on the NAS. Using the Callback-Number AVP
(<a href="#section-4.4.2">Section 4.4.2</a>) is therefore RECOMMENDED.
<span class="h4"><a class="selflink" id="section-4.4.4" href="#section-4.4.4">4.4.4</a>. Idle-Timeout AVP</span>
The Idle-Timeout AVP (AVP Code 28) is of type Unsigned32 and sets the
maximum number of consecutive seconds of idle connection allowable to
the user before termination of the session or before a prompt is
issued. The default is none or system specific.
<span class="h4"><a class="selflink" id="section-4.4.5" href="#section-4.4.5">4.4.5</a>. Port-Limit AVP</span>
The Port-Limit AVP (AVP Code 62) is of type Unsigned32 and sets the
maximum number of ports the NAS provides to the user. It MAY be used
in an authentication and/or authorization request as a hint to the
server that multilink PPP [<a href="./rfc1990" title=""The PPP Multilink Protocol (MP)"">RFC1990</a>] service is desired, but the
server is not required to honor the hint in the corresponding
response.
<span class="grey">Zorn Standards Track [Page 34]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-35" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
<span class="h4"><a class="selflink" id="section-4.4.6" href="#section-4.4.6">4.4.6</a>. NAS-Filter-Rule AVP</span>
The NAS-Filter-Rule AVP (AVP Code 400) is of type IPFilterRule and
provides filter rules that need to be configured on the NAS for the
user. One or more of these AVPs MAY be present in an authorization
response.
<span class="h4"><a class="selflink" id="section-4.4.7" href="#section-4.4.7">4.4.7</a>. Filter-Id AVP</span>
The Filter-Id AVP (AVP Code 11) is of type UTF8String and contains
the name of the filter list for this user. It is intended to be
human readable. Zero or more Filter-Id AVPs MAY be sent in an
authorization answer message.
Identifying a filter list by name allows the filter to be used on
different NASes without regard to filter-list implementation details.
However, this AVP is not roaming-friendly, as filter naming differs
from one service provider to another.
In environments where backward compatibility with RADIUS is not
required, it is RECOMMENDED that the NAS-Filter-Rule AVP
(<a href="#section-4.4.6">Section 4.4.6</a>) be used instead.
<span class="h4"><a class="selflink" id="section-4.4.8" href="#section-4.4.8">4.4.8</a>. Configuration-Token AVP</span>
The Configuration-Token AVP (AVP Code 78) is of type OctetString and
is sent by a Diameter server to a Diameter Proxy Agent in an AA-
Answer command to indicate a type of user profile to be used. It
should not be sent to a Diameter client (NAS).
The format of the Data field of this AVP is site specific.
<span class="h4"><a class="selflink" id="section-4.4.9" href="#section-4.4.9">4.4.9</a>. QoS-Filter-Rule AVP</span>
The QoS-Filter-Rule AVP (AVP Code 407) is of type QoSFilterRule
(<a href="#section-4.1.1">Section 4.1.1</a>) and provides QoS filter rules that need to be
configured on the NAS for the user. One or more such AVPs MAY be
present in an authorization response.
The use of this AVP is NOT RECOMMENDED; the AVPs defined by [<a href="./rfc5777" title=""Traffic Classification and Quality of Service (QoS) Attributes for Diameter"">RFC5777</a>]
SHOULD be used instead.
The following options are defined for the QoSFilterRule filters:
<span class="grey">Zorn Standards Track [Page 35]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-36" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
DSCP <color>
If action is set to tag (<a href="#section-4.1.1">Section 4.1.1</a>), this option MUST be
included in the rule.
Color values are defined in [<a href="./rfc2474" title=""Definition of the Differentiated Services Field (DS Field) in the IPv4 and IPv6 Headers"">RFC2474</a>]. Exact matching of DSCP
values is required (no masks or ranges).
metering <rate> <color_under> <color_over>
The metering option provides Assured Forwarding, as defined in
[<a href="./rfc2597" title=""Assured Forwarding PHB Group"">RFC2597</a>]. and MUST be present if the action is set to meter
(<a href="#section-4.1.1">Section 4.1.1</a>) The rate option is the throughput, in bits per
second, used by the access device to mark packets. Traffic
over the rate is marked with the color_over codepoint, and
traffic under the rate is marked with the color_under
codepoint. The color_under and color_over options contain the
drop preferences and MUST conform to the recommended codepoint
keywords described in [<a href="./rfc2597" title=""Assured Forwarding PHB Group"">RFC2597</a>] (e.g., AF13).
The metering option also supports the strict limit on traffic
required by Expedited Forwarding, as defined in [<a href="./rfc3246" title=""An Expedited Forwarding PHB (Per-Hop Behavior)"">RFC3246</a>]. The
color_over option may contain the keyword "drop" to prevent
forwarding of traffic that exceeds the rate parameter.
<span class="h4"><a class="selflink" id="section-4.4.10" href="#section-4.4.10">4.4.10</a>. Framed Access Authorization AVPs</span>
This section lists the authorization AVPs necessary to support framed
access, such as PPP and SLIP. AVPs defined in this section MAY be
present in a message if the Service-Type AVP was set to "Framed" or
"Callback Framed".
<span class="h5"><a class="selflink" id="section-4.4.10.1" href="#section-4.4.10.1">4.4.10.1</a>. Framed-Protocol AVP</span>
The Framed-Protocol AVP (AVP Code 7) is of type Enumerated and
contains the framing to be used for framed access. This AVP MAY be
present in both requests and responses. The supported values are
listed in [<a href="#ref-RADIUSAttrVals">RADIUSAttrVals</a>].
<span class="h5"><a class="selflink" id="section-4.4.10.2" href="#section-4.4.10.2">4.4.10.2</a>. Framed-Routing AVP</span>
The Framed-Routing AVP (AVP Code 10) is of type Enumerated and
contains the routing method for the user when the user is a router to
a network. This AVP SHOULD only be present in authorization
responses. The supported values are listed in [<a href="#ref-RADIUSAttrVals">RADIUSAttrVals</a>].
<span class="grey">Zorn Standards Track [Page 36]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-37" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
<span class="h5"><a class="selflink" id="section-4.4.10.3" href="#section-4.4.10.3">4.4.10.3</a>. Framed-MTU AVP</span>
The Framed-MTU AVP (AVP Code 12) is of type Unsigned32 and contains
the Maximum Transmission Unit (MTU) to be configured for the user,
when it is not negotiated by some other means (such as PPP). This
AVP SHOULD only be present in authorization responses. The MTU value
MUST be in the range from 64 to 65535.
<span class="h5"><a class="selflink" id="section-4.4.10.4" href="#section-4.4.10.4">4.4.10.4</a>. Framed-Compression AVP</span>
The Framed-Compression AVP (AVP Code 13) is of type Enumerated and
contains the compression protocol to be used for the link. It MAY be
used in an authorization request as a hint to the server that a
specific compression type is desired, but the server is not required
to honor the hint in the corresponding response.
More than one compression protocol AVP MAY be sent. The NAS is
responsible for applying the proper compression protocol to the
appropriate link traffic.
The supported values are listed in [<a href="#ref-RADIUSAttrVals">RADIUSAttrVals</a>].
<span class="h5"><a class="selflink" id="section-4.4.10.5" href="#section-4.4.10.5">4.4.10.5</a>. IP Access Authorization AVPs</span>
The AVPs defined in this section are used when the user requests, or
is being granted, access service to IP.
<span class="h6"><a class="selflink" id="section-4.4.10.5.1" href="#section-4.4.10.5.1">4.4.10.5.1</a>. Framed-IP-Address AVP</span>
The Framed-IP-Address AVP (AVP Code 8) [<a href="./rfc2865" title=""Remote Authentication Dial In User Service (RADIUS)"">RFC2865</a>] is of type
OctetString and contains an IPv4 address of the type specified in the
attribute value to be configured for the user. It MAY be used in an
authorization request as a hint to the server that a specific address
is desired, but the server is not required to honor the hint in the
corresponding response.
Two values have special significance: 0xFFFFFFFF and 0xFFFFFFFE. The
value 0xFFFFFFFF indicates that the NAS should allow the user to
select an address (i.e., negotiated). The value 0xFFFFFFFE indicates
that the NAS should select an address for the user (e.g., assigned
from a pool of addresses kept by the NAS).
<span class="h6"><a class="selflink" id="section-4.4.10.5.2" href="#section-4.4.10.5.2">4.4.10.5.2</a>. Framed-IP-Netmask AVP</span>
The Framed-IP-Netmask AVP (AVP Code 9) is of type OctetString and
contains the four octets of the IPv4 netmask to be configured for the
user when the user is a router to a network. It MAY be used in an
authorization request as a hint to the server that a specific netmask
<span class="grey">Zorn Standards Track [Page 37]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-38" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
is desired, but the server is not required to honor the hint in the
corresponding response. This AVP MUST be present in a response if
the request included this AVP with a value of 0xFFFFFFFF.
<span class="h6"><a class="selflink" id="section-4.4.10.5.3" href="#section-4.4.10.5.3">4.4.10.5.3</a>. Framed-Route AVP</span>
The Framed-Route AVP (AVP Code 22) is of type UTF8String and contains
the 7-bit US-ASCII routing information to be configured for the user
on the NAS. Zero or more of these AVPs MAY be present in an
authorization response.
The string MUST contain a destination prefix in dotted quad form
optionally followed by a slash and a decimal-length specifier stating
how many high-order bits of the prefix should be used. This is
followed by a space, a gateway address in dotted quad form, a space,
and one or more metrics separated by spaces; for example,
"192.0.2.0/24 192.0.2.1 1"
The length specifier may be omitted, in which case it should default
to 8 bits for class A prefixes, 16 bits for class B prefixes, and 24
bits for class C prefixes; for example,
"192.0.2.0 192.0.2.1 1"
Whenever the gateway address is specified as "0.0.0.0", the IP
address of the user SHOULD be used as the gateway address.
<span class="h6"><a class="selflink" id="section-4.4.10.5.4" href="#section-4.4.10.5.4">4.4.10.5.4</a>. Framed-Pool AVP</span>
The Framed-Pool AVP (AVP Code 88) is of type OctetString and contains
the name of an assigned address pool that SHOULD be used to assign an
address for the user. If a NAS does not support multiple address
pools, the NAS SHOULD ignore this AVP. Address pools are usually
used for IP addresses but can be used for other protocols if the NAS
supports pools for those protocols.
Although specified as type OctetString for compatibility with RADIUS
[<a href="./rfc2869" title=""RADIUS Extensions"">RFC2869</a>], the encoding of the Data field SHOULD also conform to the
rules for the UTF8String Data Format.
<span class="h6"><a class="selflink" id="section-4.4.10.5.5" href="#section-4.4.10.5.5">4.4.10.5.5</a>. Framed-Interface-Id AVP</span>
The Framed-Interface-Id AVP (AVP Code 96) is of type Unsigned64 and
contains the IPv6 interface identifier to be configured for the user.
It MAY be used in authorization requests as a hint to the server that
a specific interface identifier is desired, but the server is not
required to honor the hint in the corresponding response.
<span class="grey">Zorn Standards Track [Page 38]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-39" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
<span class="h6"><a class="selflink" id="section-4.4.10.5.6" href="#section-4.4.10.5.6">4.4.10.5.6</a>. Framed-IPv6-Prefix AVP</span>
The Framed-IPv6-Prefix AVP (AVP Code 97) is of type OctetString and
contains the IPv6 prefix to be configured for the user. One or more
AVPs MAY be used in authorization requests as a hint to the server
that specific IPv6 prefixes are desired, but the server is not
required to honor the hint in the corresponding response.
<span class="h6"><a class="selflink" id="section-4.4.10.5.7" href="#section-4.4.10.5.7">4.4.10.5.7</a>. Framed-IPv6-Route AVP</span>
The Framed-IPv6-Route AVP (AVP Code 99) is of type UTF8String and
contains the US-ASCII routing information to be configured for the
user on the NAS. Zero or more of these AVPs MAY be present in an
authorization response.
The string MUST contain an IPv6 address prefix followed by a slash
and a decimal-length specifier stating how many high-order bits of
the prefix should be used. This is followed by a space, a gateway
address in hexadecimal notation, a space, and one or more metrics
separated by spaces; for example,
"2001:db8::/32 2001:db8:106:a00:20ff:fe99:a998 1"
Whenever the gateway address is the IPv6 unspecified address, the IP
address of the user SHOULD be used as the gateway address, such as
in:
"2001:db8::/32 :: 1"
<span class="h6"><a class="selflink" id="section-4.4.10.5.8" href="#section-4.4.10.5.8">4.4.10.5.8</a>. Framed-IPv6-Pool AVP</span>
The Framed-IPv6-Pool AVP (AVP Code 100) is of type OctetString and
contains the name of an assigned pool that SHOULD be used to assign
an IPv6 prefix for the user. If the access device does not support
multiple prefix pools, it MUST ignore this AVP.
Although specified as type OctetString for compatibility with RADIUS
[<a href="./rfc3162" title=""RADIUS and IPv6"">RFC3162</a>], the encoding of the Data field SHOULD also conform to the
rules for the UTF8String Data Format.
<span class="h5"><a class="selflink" id="section-4.4.10.6" href="#section-4.4.10.6">4.4.10.6</a>. IPX Access AVPs</span>
The AVPs defined in this section are used when the user requests, or
is being granted, access to an IPX network service [<a href="#ref-IPX" title=""NetWare System Technical Interface Overview"">IPX</a>].
<span class="grey">Zorn Standards Track [Page 39]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-40" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
<span class="h6"><a class="selflink" id="section-4.4.10.6.1" href="#section-4.4.10.6.1">4.4.10.6.1</a>. Framed-IPX-Network AVP</span>
The Framed-IPX-Network AVP (AVP Code 23) is of type Unsigned32 and
contains the IPX Network number to be configured for the user. It
MAY be used in an authorization request as a hint to the server that
a specific address is desired, but the server is not required to
honor the hint in the corresponding response.
Two addresses have special significance: 0xFFFFFFFF and 0xFFFFFFFE.
The value 0xFFFFFFFF indicates that the NAS should allow the user to
select an address (i.e., Negotiated). The value 0xFFFFFFFE indicates
that the NAS should select an address for the user (e.g., assign it
from a pool of one or more IPX networks kept by the NAS).
<span class="h5"><a class="selflink" id="section-4.4.10.7" href="#section-4.4.10.7">4.4.10.7</a>. AppleTalk Network Access AVPs</span>
The AVPs defined in this section are used when the user requests, or
is being granted, access to an AppleTalk network [<a href="#ref-AppleTalk">AppleTalk</a>].
<span class="h6"><a class="selflink" id="section-4.4.10.7.1" href="#section-4.4.10.7.1">4.4.10.7.1</a>. Framed-Appletalk-Link AVP</span>
The Framed-Appletalk-Link AVP (AVP Code 37) is of type Unsigned32 and
contains the AppleTalk network number that should be used for the
serial link to the user, which is another AppleTalk router. This AVP
MUST only be present in an authorization response and is never used
when the user is not another router.
Despite the size of the field, values range from 0 to 65,535. The
special value of 0 indicates an unnumbered serial link. A value of 1
to 65,535 means that the serial line between the NAS and the user
should be assigned that value as an AppleTalk network number.
<span class="h6"><a class="selflink" id="section-4.4.10.7.2" href="#section-4.4.10.7.2">4.4.10.7.2</a>. Framed-Appletalk-Network AVP</span>
The Framed-Appletalk-Network AVP (AVP Code 38) is of type Unsigned32
and contains the AppleTalk network number that the NAS should probe
to allocate an AppleTalk node for the user. This AVP MUST only be
present in an authorization response and is never used when the user
is not another router. Multiple instances of this AVP indicate that
the NAS may probe, using any of the network numbers specified.
Despite the size of the field, values range from 0 to 65,535. The
special value 0 indicates that the NAS should assign a network for
the user, using its default cable range. A value between 1 and
65,535 (inclusive) indicates to the AppleTalk network that the NAS
should probe to find an address for the user.
<span class="grey">Zorn Standards Track [Page 40]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-41" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
<span class="h6"><a class="selflink" id="section-4.4.10.7.3" href="#section-4.4.10.7.3">4.4.10.7.3</a>. Framed-Appletalk-Zone AVP</span>
The Framed-Appletalk-Zone AVP (AVP Code 39) is of type OctetString
and contains the AppleTalk Default Zone to be used for this user.
This AVP MUST only be present in an authorization response. Multiple
instances of this AVP in the same message are not allowed.
The codification of this field's allowed range is outside the scope
of this specification.
<span class="h5"><a class="selflink" id="section-4.4.10.8" href="#section-4.4.10.8">4.4.10.8</a>. AppleTalk Remote Access AVPs</span>
The AVPs defined in this section are used when the user requests, or
is being granted, access to the AppleTalk network via the AppleTalk
Remote Access Protocol [<a href="#ref-ARAP" title=""Apple Remote Access Protocol (ARAP) Version 2.0 External Reference Specification"">ARAP</a>]. They are only present if the Framed-
Protocol AVP (<a href="#section-4.4.10.1">Section 4.4.10.1</a>) is set to ARAP. Section 2.2 of <a href="./rfc2869">RFC</a>
<a href="./rfc2869">2869</a> describes the operational use of these attributes.
<span class="h6"><a class="selflink" id="section-4.4.10.8.1" href="#section-4.4.10.8.1">4.4.10.8.1</a>. ARAP-Features AVP</span>
The ARAP-Features AVP (AVP Code 71) is of type OctetString and MAY be
present in the AA-Accept message if the Framed-Protocol AVP is set to
the value of ARAP. See <a href="./rfc2869">RFC 2869</a> for more information about the
format of this AVP.
<span class="h6"><a class="selflink" id="section-4.4.10.8.2" href="#section-4.4.10.8.2">4.4.10.8.2</a>. ARAP-Zone-Access AVP</span>
The ARAP-Zone-Access AVP (AVP Code 72) is of type Enumerated and MAY
be present in the AA-Accept message if the Framed-Protocol AVP is set
to the value of ARAP.
The supported values are listed in [<a href="#ref-RADIUSAttrVals">RADIUSAttrVals</a>] and defined in
[<a href="./rfc2869" title=""RADIUS Extensions"">RFC2869</a>].
<span class="h4"><a class="selflink" id="section-4.4.11" href="#section-4.4.11">4.4.11</a>. Non-Framed Access Authorization AVPs</span>
This section contains the authorization AVPs that are needed to
support terminal server functionality. AVPs defined in this section
MAY be present in a message if the Service-Type AVP was set to
"Login" or "Callback Login".
<span class="h5"><a class="selflink" id="section-4.4.11.1" href="#section-4.4.11.1">4.4.11.1</a>. Login-IP-Host AVP</span>
The Login-IP-Host AVP (AVP Code 14) [<a href="./rfc2865" title=""Remote Authentication Dial In User Service (RADIUS)"">RFC2865</a>] is of type OctetString
and contains the IPv4 address of a host with which to connect the
user when the Login-Service AVP is included. It MAY be used in an
<span class="grey">Zorn Standards Track [Page 41]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-42" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
AA-Request command as a hint to the Diameter server that a specific
host is desired, but the Diameter server is not required to honor the
hint in the AA-Answer.
Two addresses have special significance: all ones and 0. The value
of all ones indicates that the NAS SHOULD allow the user to select an
address. The value 0 indicates that the NAS SHOULD select a host to
connect the user to.
<span class="h5"><a class="selflink" id="section-4.4.11.2" href="#section-4.4.11.2">4.4.11.2</a>. Login-IPv6-Host AVP</span>
The Login-IPv6-Host AVP (AVP Code 98) [<a href="./rfc3162" title=""RADIUS and IPv6"">RFC3162</a>] is of type
OctetString and contains the IPv6 address of a host with which to
connect the user when the Login-Service AVP is included. It MAY be
used in an AA-Request command as a hint to the Diameter server that a
specific host is desired, but the Diameter server is not required to
honor the hint in the AA-Answer.
Two addresses have special significance,
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF and 0. The value
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF indicates that the NAS SHOULD
allow the user to select an address. The value 0 indicates that the
NAS SHOULD select a host to connect the user to.
<span class="h5"><a class="selflink" id="section-4.4.11.3" href="#section-4.4.11.3">4.4.11.3</a>. Login-Service AVP</span>
The Login-Service AVP (AVP Code 15) is of type Enumerated and
contains the service that should be used to connect the user to the
login host. This AVP SHOULD only be present in authorization
responses. The supported values are listed in <a href="./rfc2869">RFC 2869</a>.
<span class="h5"><a class="selflink" id="section-4.4.11.4" href="#section-4.4.11.4">4.4.11.4</a>. TCP Services</span>
The AVP described in the following section MAY be present if the
Login-Service AVP is set to Telnet, Rlogin, TCP Clear, or TCP Clear
Quiet.
<span class="h6"><a class="selflink" id="section-4.4.11.4.1" href="#section-4.4.11.4.1">4.4.11.4.1</a>. Login-TCP-Port AVP</span>
The Login-TCP-Port AVP (AVP Code 16) is of type Unsigned32 and
contains the TCP port with which the user is to be connected when the
Login-Service AVP is also present. This AVP SHOULD only be present
in authorization responses. The value MUST NOT be greater than
65,535.
<span class="grey">Zorn Standards Track [Page 42]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-43" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
<span class="h5"><a class="selflink" id="section-4.4.11.5" href="#section-4.4.11.5">4.4.11.5</a>. LAT Services</span>
The AVPs described in this section MAY be present if the Login-
Service AVP is set to LAT [<a href="#ref-LAT" title=""Local Area Transport (LAT) Specification V5.0"">LAT</a>].
<span class="h6"><a class="selflink" id="section-4.4.11.5.1" href="#section-4.4.11.5.1">4.4.11.5.1</a>. Login-LAT-Service AVP</span>
The Login-LAT-Service AVP (AVP Code 34) is of type OctetString and
contains the system with which the user is to be connected by LAT.
It MAY be used in an authorization request as a hint to the server
that a specific service is desired, but the server is not required to
honor the hint in the corresponding response. This AVP MUST only be
present in the response if the Login-Service AVP states that LAT is
desired.
Administrators use this service attribute when dealing with clustered
systems. In these environments, several different time-sharing hosts
share the same resources (disks, printers, etc.), and administrators
often configure each host to offer access (service) to each of the
shared resources. In this case, each host in the cluster advertises
its services through LAT broadcasts.
Sophisticated users often know which service providers (machines) are
faster and tend to use a node name when initiating a LAT connection.
Some administrators want particular users to use certain machines as
a primitive form of load balancing (although LAT knows how to do load
balancing itself).
The String field contains the identity of the LAT service to use.
The LAT Architecture allows this string to contain $ (dollar), -
(hyphen), . (period), _ (underscore), numerics, upper- and lower-case
alphabetics, and the ISO Latin-1 character set extension
[<a href="#ref-ISO.8859-1.1987">ISO.8859-1.1987</a>]. All LAT string comparisons are case insensitive.
<span class="h6"><a class="selflink" id="section-4.4.11.5.2" href="#section-4.4.11.5.2">4.4.11.5.2</a>. Login-LAT-Node AVP</span>
The Login-LAT-Node AVP (AVP Code 35) is of type OctetString and
contains the Node with which the user is to be automatically
connected by LAT. It MAY be used in an authorization request as a
hint to the server that a specific LAT node is desired, but the
server is not required to honor the hint in the corresponding
response. This AVP MUST only be present in a response if the Login-
Service-Type AVP is set to LAT.
<span class="grey">Zorn Standards Track [Page 43]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-44" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
The String field contains the identity of the LAT service to use.
The LAT Architecture allows this string to contain $ (dollar), -
(hyphen), . (period), _ (underscore), numerics, upper- and lower-case
alphabetics, and the ISO Latin-1 character set extension
[<a href="#ref-ISO.8859-1.1987">ISO.8859-1.1987</a>]. All LAT string comparisons are case insensitive.
<span class="h6"><a class="selflink" id="section-4.4.11.5.3" href="#section-4.4.11.5.3">4.4.11.5.3</a>. Login-LAT-Group AVP</span>
The Login-LAT-Group AVP (AVP Code 36) is of type OctetString and
contains a string identifying the LAT group codes this user is
authorized to use. It MAY be used in an authorization request as a
hint to the server that a specific group is desired, but the server
is not required to honor the hint in the corresponding response.
This AVP MUST only be present in a response if the Login-Service-Type
AVP is set to LAT.
LAT supports 256 different group codes, which LAT uses as a form of
access rights. LAT encodes the group codes as a 256-bit bitmap.
Administrators can assign one or more of the group code bits at the
LAT service provider; it will only accept LAT connections that have
these group codes set in the bitmap. The administrators assign a
bitmap of authorized group codes to each user. LAT gets these from
the operating system and uses them in its requests to the service
providers.
The codification of the range of allowed usage of this field is
outside the scope of this specification.
<span class="h6"><a class="selflink" id="section-4.4.11.5.4" href="#section-4.4.11.5.4">4.4.11.5.4</a>. Login-LAT-Port AVP</span>
The Login-LAT-Port AVP (AVP Code 63) is of type OctetString and
contains the port with which the user is to be connected by LAT. It
MAY be used in an authorization request as a hint to the server that
a specific port is desired, but the server is not required to honor
the hint in the corresponding response. This AVP MUST only be
present in a response if the Login-Service-Type AVP is set to LAT.
The String field contains the identity of the LAT service to use.
The LAT Architecture allows this string to contain $ (dollar), -
(hyphen), . (period), _ (underscore), numerics, upper- and lower-case
alphabetics, and the ISO Latin-1 character set extension
[<a href="#ref-ISO.8859-1.1987">ISO.8859-1.1987</a>].
All LAT string comparisons are case insensitive.
<span class="grey">Zorn Standards Track [Page 44]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-45" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
<span class="h3"><a class="selflink" id="section-4.5" href="#section-4.5">4.5</a>. NAS Tunneling AVPs</span>
Some NASes support compulsory tunnel services in which the incoming
connection data is conveyed by an encapsulation method to a gateway
elsewhere in the network. This is typically transparent to the
service user, and the tunnel characteristics may be described by the
remote Authentication, Authorization, and Accounting server, based on
the user's authorization information. Several tunnel characteristics
may be returned, and the NAS implementation may choose one. See
[<a href="./rfc2868" title=""RADIUS Attributes for Tunnel Protocol Support"">RFC2868</a>] and [<a href="./rfc2867" title=""RADIUS Accounting Modifications for Tunnel Protocol Support"">RFC2867</a>] for further information.
The following table gives the possible flag values for the session-
level AVPs and specifies whether the AVP MAY be encrypted.
+----------+
| AVP Flag |
| Rules |
|----+-----|
|MUST| MUST|
Attribute Name Section Defined | | NOT |
-----------------------------------------|----+-----|
Tunneling 4.5.1 | M | V |
Tunnel-Type 4.5.2 | M | V |
Tunnel-Medium-Type 4.5.3 | M | V |
Tunnel-Client-Endpoint 4.5.4 | M | V |
Tunnel-Server-Endpoint 4.5.5 | M | V |
Tunnel-Password 4.5.6 | M | V |
Tunnel-Private-Group-Id 4.5.7 | M | V |
Tunnel-Assignment-Id 4.5.8 | M | V |
Tunnel-Preference 4.5.9 | M | V |
Tunnel-Client-Auth-Id 4.5.10 | M | V |
Tunnel-Server-Auth-Id 4.5.11 | M | V |
-----------------------------------------|----+-----|
<span class="h4"><a class="selflink" id="section-4.5.1" href="#section-4.5.1">4.5.1</a>. Tunneling AVP</span>
The Tunneling AVP (AVP Code 401) is of type Grouped and contains the
following AVPs, used to describe a compulsory tunnel service
[<a href="./rfc2868" title=""RADIUS Attributes for Tunnel Protocol Support"">RFC2868</a>] [<a href="./rfc2867" title=""RADIUS Accounting Modifications for Tunnel Protocol Support"">RFC2867</a>]. Its data field has the following ABNF grammar:
<span class="grey">Zorn Standards Track [Page 45]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-46" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
Tunneling ::= < AVP Header: 401 >
{ Tunnel-Type }
{ Tunnel-Medium-Type }
{ Tunnel-Client-Endpoint }
{ Tunnel-Server-Endpoint }
[ Tunnel-Preference ]
[ Tunnel-Client-Auth-Id ]
[ Tunnel-Server-Auth-Id ]
[ Tunnel-Assignment-Id ]
[ Tunnel-Password ]
[ Tunnel-Private-Group-Id ]
<span class="h4"><a class="selflink" id="section-4.5.2" href="#section-4.5.2">4.5.2</a>. Tunnel-Type AVP</span>
The Tunnel-Type AVP (AVP Code 64) is of type Enumerated and contains
the tunneling protocol(s) to be used (in the case of a tunnel
initiator) or in use (in the case of a tunnel terminator). It MAY be
used in an authorization request as a hint to the server that a
specific tunnel type is desired, but the server is not required to
honor the hint in the corresponding response.
The Tunnel-Type AVP SHOULD also be included in ACR messages.
A tunnel initiator is not required to implement any of these tunnel
types. If a tunnel initiator receives a response that contains only
unknown or unsupported tunnel types, the tunnel initiator MUST behave
as though a response were received with the Result-Code indicating a
failure.
The supported values are listed in [<a href="#ref-RADIUSAttrVals">RADIUSAttrVals</a>].
<span class="h4"><a class="selflink" id="section-4.5.3" href="#section-4.5.3">4.5.3</a>. Tunnel-Medium-Type AVP</span>
The Tunnel-Medium-Type AVP (AVP Code 65) is of type Enumerated and
contains the transport medium to use when creating a tunnel for
protocols (such as L2TP [<a href="./rfc3931" title=""Layer Two Tunneling Protocol - Version 3 (L2TPv3)"">RFC3931</a>]) that can operate over multiple
transports. It MAY be used in an authorization request as a hint to
the server that a specific medium is desired, but the server is not
required to honor the hint in the corresponding response.
The supported values are listed in [<a href="#ref-RADIUSAttrVals">RADIUSAttrVals</a>].
<span class="h4"><a class="selflink" id="section-4.5.4" href="#section-4.5.4">4.5.4</a>. Tunnel-Client-Endpoint AVP</span>
The Tunnel-Client-Endpoint AVP (AVP Code 66) is of type UTF8String
and contains the address of the initiator end of the tunnel. It MAY
be used in an authorization request as a hint to the server that a
specific endpoint is desired, but the server is not required to honor
<span class="grey">Zorn Standards Track [Page 46]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-47" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
the hint in the corresponding response. This AVP SHOULD be included
in the corresponding ACR messages, in which case it indicates the
address from which the tunnel was initiated. This AVP, along with
the Tunnel-Server-Endpoint (<a href="#section-4.5.5">Section 4.5.5</a>) and Session-Id AVPs
(<a href="./rfc6733#section-8.8">[RFC6733], Section 8.8</a>), can be used to provide a globally unique
means to identify a tunnel for accounting and auditing purposes.
If the value of the Tunnel-Medium-Type AVP (<a href="#section-4.5.3">Section 4.5.3</a>) is IPv4
(1), then this string is either the fully qualified domain name
(FQDN) of the tunnel client machine or a "dotted-decimal" IP address.
Implementations MUST support the dotted-decimal format and SHOULD
support the FQDN format for IP addresses.
If Tunnel-Medium-Type is IPv6 (2), then this string is either the
FQDN of the tunnel client machine or a text representation of the
address in either the preferred or alternate form [<a href="./rfc3516" title=""IMAP4 Binary Content Extension"">RFC3516</a>].
Conforming implementations MUST support the preferred form and SHOULD
support both the alternate text form and the FQDN format for IPv6
addresses.
If Tunnel-Medium-Type is neither IPv4 nor IPv6, then this string is a
tag referring to configuration data local to the Diameter client that
describes the interface or medium-specific client address to use.
Note that this application handles Internationalized Domain Names
(IDNs) in the same way as the Diameter Base protocol (see <a href="./rfc6733#appendix-D">Appendix D
of RFC 6733</a> for details).
<span class="h4"><a class="selflink" id="section-4.5.5" href="#section-4.5.5">4.5.5</a>. Tunnel-Server-Endpoint AVP</span>
The Tunnel-Server-Endpoint AVP (AVP Code 67) is of type UTF8String
and contains the address of the server end of the tunnel. It MAY be
used in an authorization request as a hint to the server that a
specific endpoint is desired, but the server is not required to honor
the hint in the corresponding response.
This AVP SHOULD be included in the corresponding ACR messages, in
which case it indicates the address from which the tunnel was
initiated. This AVP, along with the Tunnel-Client-Endpoint
(<a href="#section-4.5.4">Section 4.5.4</a>) and Session-Id AVP (<a href="./rfc6733#section-8.8">[RFC6733], Section 8.8</a>), can be
used to provide a globally unique means to identify a tunnel for
accounting and auditing purposes.
If Tunnel-Medium-Type is IPv4 (1), then this string is either the
fully qualified domain name (FQDN) of the tunnel server machine, or a
"dotted-decimal" IP address. Implementations MUST support the
dotted-decimal format and SHOULD support the FQDN format for IP
addresses.
<span class="grey">Zorn Standards Track [Page 47]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-48" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
If Tunnel-Medium-Type is IPv6 (2), then this string is either the
FQDN of the tunnel server machine, or a text representation of the
address in either the preferred or alternate form [<a href="./rfc3516" title=""IMAP4 Binary Content Extension"">RFC3516</a>].
Implementations MUST support the preferred form and SHOULD support
both the alternate text form and the FQDN format for IPv6 addresses.
If Tunnel-Medium-Type is not IPv4 or IPv6, this string is a tag
referring to configuration data local to the Diameter client that
describes the interface or medium-specific server address to use.
Note that this application handles IDNs in the same way as the
Diameter base protocol (see <a href="./rfc6733#appendix-D">Appendix D of RFC 6733</a> for details).
<span class="h4"><a class="selflink" id="section-4.5.6" href="#section-4.5.6">4.5.6</a>. Tunnel-Password AVP</span>
The Tunnel-Password AVP (AVP Code 69) is of type OctetString and may
contain a password to be used to authenticate to a remote server.
The Tunnel-Password AVP SHOULD NOT be used in untrusted proxy
environments without encrypting it by using end-to-end security
techniques.
<span class="h4"><a class="selflink" id="section-4.5.7" href="#section-4.5.7">4.5.7</a>. Tunnel-Private-Group-Id AVP</span>
The Tunnel-Private-Group-Id AVP (AVP Code 81) is of type OctetString
and contains the group Id for a particular tunneled session. The
Tunnel-Private-Group-Id AVP MAY be included in an authorization
request if the tunnel initiator can predetermine the group resulting
from a particular connection. It SHOULD be included in the
authorization response if this tunnel session is to be treated as
belonging to a particular private group. Private groups may be used
to associate a tunneled session with a particular group of users.
For example, it MAY be used to facilitate routing of unregistered IP
addresses through a particular interface. This AVP SHOULD be
included in the ACR messages that pertain to the tunneled session.
<span class="h4"><a class="selflink" id="section-4.5.8" href="#section-4.5.8">4.5.8</a>. Tunnel-Assignment-Id AVP</span>
The Tunnel-Assignment-Id AVP (AVP Code 82) is of type OctetString and
is used to indicate to the tunnel initiator the particular tunnel to
which a session is to be assigned. Some tunneling protocols, such as
PPTP [<a href="./rfc2637" title=""Point-to-Point Tunneling Protocol"">RFC2637</a>] and L2TP [<a href="./rfc3931" title=""Layer Two Tunneling Protocol - Version 3 (L2TPv3)"">RFC3931</a>], allow for sessions between the
same two tunnel endpoints to be multiplexed over the same tunnel and
also for a given session to use its own dedicated tunnel. This
attribute provides a mechanism for Diameter to inform the tunnel
initiator (for example, a LAC) whether to assign the session to a
<span class="grey">Zorn Standards Track [Page 48]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-49" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
multiplexed tunnel or to a separate tunnel. Furthermore, it allows
for sessions sharing multiplexed tunnels to be assigned to different
multiplexed tunnels.
A particular tunneling implementation may assign differing
characteristics to particular tunnels. For example, different
tunnels may be assigned different QoS parameters. Such tunnels may
be used to carry either individual or multiple sessions. The Tunnel-
Assignment-Id attribute thus allows the Diameter server to indicate
that a particular session is to be assigned to a tunnel providing an
appropriate level of service. It is expected that any QoS-related
Diameter tunneling attributes defined in the future accompanying this
one will be associated by the tunnel initiator with the Id given by
this attribute. In the meantime, any semantic given to a particular
Id string is a matter left to local configuration in the tunnel
initiator.
The Tunnel-Assignment-Id AVP is of significance only to Diameter and
the tunnel initiator. The Id it specifies is only intended to be of
local use to Diameter and the tunnel initiator. The Id assigned by
the tunnel initiator is not conveyed to the tunnel peer.
This attribute MAY be included in authorization responses. The
tunnel initiator receiving this attribute MAY choose to ignore it and
to assign the session to an arbitrary multiplexed or non-multiplexed
tunnel between the desired endpoints. This AVP SHOULD also be
included in the Accounting-Request messages pertaining to the
tunneled session.
If a tunnel initiator supports the Tunnel-Assignment-Id AVP, then it
should assign a session to a tunnel in the following manner:
o If this AVP is present and a tunnel exists between the specified
endpoints with the specified Id, then the session should be
assigned to that tunnel.
o If this AVP is present and no tunnel exists between the specified
endpoints with the specified Id, then a new tunnel should be
established for the session and the specified Id should be
associated with the new tunnel.
o If this AVP is not present, then the session is assigned to an
unnamed tunnel. If an unnamed tunnel does not yet exist between
the specified endpoints, then it is established and used for this
session and for subsequent ones established without the Tunnel-
Assignment-Id attribute. A tunnel initiator MUST NOT assign a
<span class="grey">Zorn Standards Track [Page 49]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-50" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
session for which a Tunnel-Assignment-Id AVP was not specified to
a named tunnel (i.e., one that was initiated by a session
specifying this AVP).
Note that the same Id may be used to name different tunnels if these
tunnels are between different endpoints.
<span class="h4"><a class="selflink" id="section-4.5.9" href="#section-4.5.9">4.5.9</a>. Tunnel-Preference AVP</span>
The Tunnel-Preference AVP (AVP Code 83) is of type Unsigned32 and is
used to identify the relative preference assigned to each tunnel when
more than one set of tunneling AVPs is returned within separate
grouped AVPs. It MAY be used in an authorization request as a hint
to the server that a specific preference is desired, but the server
is not required to honor the hint in the corresponding response.
For example, suppose that AVPs describing two tunnels are returned by
the server, one with a tunnel type of PPTP and the other with a
tunnel type of L2TP. If the tunnel initiator supports only one of
the tunnel types returned, it will initiate a tunnel of that type.
If, however, it supports both tunnel protocols, it SHOULD use the
value of the Tunnel-Preference AVP to decide which tunnel should be
started. The tunnel with the lowest numerical value in the Value
field of this AVP SHOULD be given the highest preference. The values
assigned to two or more instances of the Tunnel-Preference AVP within
a given authorization response MAY be identical. In this case, the
tunnel initiator SHOULD use locally configured metrics to decide
which set of AVPs to use.
<span class="h4"><a class="selflink" id="section-4.5.10" href="#section-4.5.10">4.5.10</a>. Tunnel-Client-Auth-Id AVP</span>
The Tunnel-Client-Auth-Id AVP (AVP Code 90) is of type UTF8String and
specifies the 7-bit US-ASCII name used by the tunnel initiator during
the authentication phase of tunnel establishment. It MAY be used in
an authorization request as a hint to the server that a specific
preference is desired, but the server is not required to honor the
hint in the corresponding response. This AVP MUST be present in the
authorization response if an authentication name other than the
default is desired. This AVP SHOULD be included in the ACR messages
pertaining to the tunneled session.
<span class="h4"><a class="selflink" id="section-4.5.11" href="#section-4.5.11">4.5.11</a>. Tunnel-Server-Auth-Id AVP</span>
The Tunnel-Server-Auth-Id AVP (AVP Code 91) is of type UTF8String and
specifies the 7-bit US-ASCII name used by the tunnel terminator
during the authentication phase of tunnel establishment. It MAY be
used in an authorization request as a hint to the server that a
specific preference is desired, but the server is not required to
<span class="grey">Zorn Standards Track [Page 50]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-51" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
honor the hint in the corresponding response. This AVP MUST be
present in the authorization response if an authentication name other
than the default is desired. This AVP SHOULD be included in the ACR
messages pertaining to the tunneled session.
<span class="h3"><a class="selflink" id="section-4.6" href="#section-4.6">4.6</a>. NAS Accounting AVPs</span>
Applications implementing this specification use Diameter Accounting
(as defined in [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>]) and the AVPs in the following section.
Service-specific AVP usage is defined in the tables in <a href="#section-5">Section 5</a>.
If accounting is active, Accounting Request (ACR) messages SHOULD be
sent after the completion of any Authentication or Authorization
transaction and at the end of a session. The value of the
Accounting-Record-Type AVP [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>] indicates the type of event.
All other AVPs identify the session and provide additional
information relevant to the event.
The successful completion of the first Authentication or
Authorization transaction SHOULD cause a START_RECORD to be sent. If
additional Authentications or Authorizations occur in later
transactions, the first exchange should generate a START_RECORD, and
the latter an INTERIM_RECORD. For a given session, there MUST only
be one set of matching START and STOP records, with any number of
INTERIM_RECORDS in between, or one EVENT_RECORD indicating the reason
a session wasn't started.
The following table gives the possible flag values for the session-
level AVPs and specifies whether the AVP MAY be encrypted.
<span class="grey">Zorn Standards Track [Page 51]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-52" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
+----------+
| AVP Flag |
| Rules |
|----+-----|
Section |MUST| MUST|
Attribute Name Defined | | NOT|
-----------------------------------------|----+-----|
Accounting-Input-Octets 4.6.1 | M | V |
Accounting-Output-Octets 4.6.2 | M | V |
Accounting-Input-Packets 4.6.3 | M | V |
Accounting-Output-Packets 4.6.4 | M | V |
Acct-Session-Time 4.6.5 | M | V |
Acct-Authentic 4.6.6 | M | V |
Accounting-Auth-Method 4.6.7 | M | V |
Acct-Delay-Time 4.6.8 | M | V |
Acct-Link-Count 4.6.9 | M | V |
Acct-Tunnel-Connection 4.6.10 | M | V |
Acct-Tunnel-Packets-Lost 4.6.11 | M | V |
-----------------------------------------|----+-----|
<span class="h4"><a class="selflink" id="section-4.6.1" href="#section-4.6.1">4.6.1</a>. Accounting-Input-Octets AVP</span>
The Accounting-Input-Octets AVP (AVP Code 363) is of type Unsigned64
and contains the number of octets received from the user.
For NAS usage, this AVP indicates how many octets have been received
from the port in the course of this session. It can only be present
in ACR messages with an Accounting-Record-Type [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>] of
INTERIM_RECORD or STOP_RECORD.
<span class="h4"><a class="selflink" id="section-4.6.2" href="#section-4.6.2">4.6.2</a>. Accounting-Output-Octets AVP</span>
The Accounting-Output-Octets AVP (AVP Code 364) is of type Unsigned64
and contains the number of octets sent to the user.
For NAS usage, this AVP indicates how many octets have been sent to
the port in the course of this session. It can only be present in
ACR messages with an Accounting-Record-Type of INTERIM_RECORD or
STOP_RECORD.
<span class="h4"><a class="selflink" id="section-4.6.3" href="#section-4.6.3">4.6.3</a>. Accounting-Input-Packets AVP</span>
The Accounting-Input-Packets (AVP Code 365) is of type Unsigned64 and
contains the number of packets received from the user.
<span class="grey">Zorn Standards Track [Page 52]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-53" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
For NAS usage, this AVP indicates how many packets have been received
from the port over the course of a session being provided to a Framed
User. It can only be present in ACR messages with an Accounting-
Record-Type of INTERIM_RECORD or STOP_RECORD.
<span class="h4"><a class="selflink" id="section-4.6.4" href="#section-4.6.4">4.6.4</a>. Accounting-Output-Packets AVP</span>
The Accounting-Output-Packets (AVP Code 366) is of type Unsigned64
and contains the number of IP packets sent to the user.
For NAS usage, this AVP indicates how many packets have been sent to
the port over the course of a session being provided to a Framed
User. It can only be present in ACR messages with an Accounting-
Record-Type of INTERIM_RECORD or STOP_RECORD.
<span class="h4"><a class="selflink" id="section-4.6.5" href="#section-4.6.5">4.6.5</a>. Acct-Session-Time AVP</span>
The Acct-Session-Time AVP (AVP Code 46) is of type Unsigned32 and
indicates the length of the current session in seconds. It can only
be present in ACR messages with an Accounting-Record-Type of
INTERIM_RECORD or STOP_RECORD.
<span class="h4"><a class="selflink" id="section-4.6.6" href="#section-4.6.6">4.6.6</a>. Acct-Authentic AVP</span>
The Acct-Authentic AVP (AVP Code 45) is of type Enumerated and
specifies how the user was authenticated. The supported values are
listed in [<a href="#ref-RADIUSAttrVals">RADIUSAttrVals</a>].
<span class="h4"><a class="selflink" id="section-4.6.7" href="#section-4.6.7">4.6.7</a>. Accounting-Auth-Method AVP</span>
The Accounting-Auth-Method AVP (AVP Code 406) is of type Enumerated.
A NAS MAY include this AVP in an Accounting-Request message to
indicate the method used to authenticate the user. (Note that this
AVP is semantically equivalent, and the supported values are
identical, to the Microsoft MS-Acct-Auth-Type vendor-specific RADIUS
attribute [<a href="./rfc2548" title=""Microsoft Vendor-specific RADIUS Attributes"">RFC2548</a>]).
<span class="h4"><a class="selflink" id="section-4.6.8" href="#section-4.6.8">4.6.8</a>. Acct-Delay-Time AVP</span>
The Acct-Delay-Time AVP (AVP Code 41) is of type Unsigned32 and
indicates the number of seconds the Diameter client has been trying
to send the Accounting-Request (ACR). The accounting server may
subtract this value from the time when the ACR arrives at the server
to calculate the approximate time of the event that caused the ACR to
be generated.
<span class="grey">Zorn Standards Track [Page 53]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-54" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
This AVP is not used for retransmissions at the transport level (TCP
or SCTP). Rather, it may be used when an ACR command cannot be
transmitted because there is no appropriate peer to transmit it to or
it was rejected because it could not be delivered. In these cases,
the command MAY be buffered and transmitted later, when an
appropriate peer-connection is available or after sufficient time has
passed that the destination-host may be reachable and operational.
If the ACR is re-sent in this way, the Acct-Delay-Time AVP SHOULD be
included. The value of this AVP indicates the number of seconds that
elapsed between the time of the first attempt at transmission and the
current attempt.
<span class="h4"><a class="selflink" id="section-4.6.9" href="#section-4.6.9">4.6.9</a>. Acct-Link-Count AVP</span>
The Acct-Link-Count AVP (AVP Code 51) is of type Unsigned32 and
indicates the total number of links that have been active (current or
closed) in a given multilink session at the time the accounting
record is generated. This AVP MAY be included in Accounting-Request
AVPs for any session that may be part of a multilink service.
The Acct-Link-Count AVP may be used to make it easier for an
accounting server to know when it has all the records for a given
multilink service. When the number of Accounting-Request AVPs
received with Accounting-Record-Type = STOP_RECORD and with the same
Acct-Multi-Session-Id and unique Session-Id AVPs equals the largest
value of Acct-Link-Count seen in those Accounting-Request AVPs, all
STOP_RECORD Accounting-Request AVPs for that multilink service have
been received.
The following example, showing eight Accounting-Request AVPs,
illustrates how the Acct-Link-Count AVP is used. In the table below,
only the relevant AVPs are shown, although additional AVPs containing
accounting information will be present in the Accounting-Requests
AVPs.
<span class="grey">Zorn Standards Track [Page 54]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-55" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
Acct-Multi- Accounting- Acct-
Session-Id Session-Id Record-Type Link-Count
--------------------------------------------------------
"...10" "...10" START_RECORD 1
"...10" "...11" START_RECORD 2
"...10" "...11" STOP_RECORD 2
"...10" "...12" START_RECORD 3
"...10" "...13" START_RECORD 4
"...10" "...12" STOP_RECORD 4
"...10" "...13" STOP_RECORD 4
"...10" "...10" STOP_RECORD 4
<span class="h4"><a class="selflink" id="section-4.6.10" href="#section-4.6.10">4.6.10</a>. Acct-Tunnel-Connection AVP</span>
The Acct-Tunnel-Connection AVP (AVP Code 68) is of type OctetString
and contains the identifier assigned to the tunnel session. This
AVP, along with the Tunnel-Client-Endpoint (<a href="#section-4.5.4">Section 4.5.4</a>) and
Tunnel-Server-Endpoint (<a href="#section-4.5.5">Section 4.5.5</a>) AVPs, may be used to provide a
means to uniquely identify a tunnel session for auditing purposes.
The format of the identifier in this AVP depends upon the value of
the Tunnel-Type AVP (<a href="#section-4.5.2">Section 4.5.2</a>). For example, to identify an
L2TP tunnel connection fully, the L2TP Tunnel Id and Call Id might be
encoded in this field. The exact encoding of this field is
implementation dependent.
<span class="h4"><a class="selflink" id="section-4.6.11" href="#section-4.6.11">4.6.11</a>. Acct-Tunnel-Packets-Lost AVP</span>
The Acct-Tunnel-Packets-Lost AVP (AVP Code 86) is of type Unsigned32
and contains the number of packets lost on a given tunnel.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. AVP Occurrence Tables</span>
The following tables present the AVPs used by NAS applications in NAS
messages and specify in which Diameter messages they may or may not
be present. Messages and AVPs defined in the Diameter Base protocol
[<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>] are not described in this document. Note that AVPs that
can only be present within a grouped AVP are not represented in this
table.
The tables use the following symbols:
0 The AVP MUST NOT be present in the message.
0+ Zero or more instances of the AVP MAY be present in the
message.
<span class="grey">Zorn Standards Track [Page 55]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-56" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
0-1 Zero or one instance of the AVP MAY be present in the
message.
1 Exactly one instance of the AVP MUST be present in the
message.
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. AA-Request / AA-Answer AVP Table</span>
The table in this section is limited to the Command Codes defined in
this specification.
+-----------+
| Command |
|-----+-----+
Attribute Name | AAR | AAA |
------------------------------|-----+-----+
Acct-Interim-Interval | 0 | 0-1 |
ARAP-Challenge-Response | 0 | 0-1 |
ARAP-Features | 0 | 0-1 |
ARAP-Password | 0-1 | 0 |
ARAP-Security | 0-1 | 0-1 |
ARAP-Security-Data | 0+ | 0+ |
ARAP-Zone-Access | 0 | 0-1 |
Auth-Application-Id | 1 | 1 |
Auth-Grace-Period | 0-1 | 0-1 |
Auth-Request-Type | 1 | 1 |
Auth-Session-State | 0-1 | 0-1 |
Authorization-Lifetime | 0-1 | 0-1 |
------------------------------|-----+-----+
<span class="grey">Zorn Standards Track [Page 56]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-57" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
+-----------+
| Command |
|-----+-----+
Attribute Name | AAR | AAA |
------------------------------|-----+-----+
Callback-Id | 0 | 0-1 |
Callback-Number | 0-1 | 0-1 |
Called-Station-Id | 0-1 | 0 |
Calling-Station-Id | 0-1 | 0 |
CHAP-Auth | 0-1 | 0 |
CHAP-Challenge | 0-1 | 0 |
Class | 0 | 0+ |
Configuration-Token | 0 | 0+ |
Connect-Info | 0+ | 0 |
Destination-Host | 0-1 | 0 |
Destination-Realm | 1 | 0 |
Error-Message | 0 | 0-1 |
Error-Reporting-Host | 0 | 0-1 |
Failed-AVP | 0+ | 0+ |
Filter-Id | 0 | 0+ |
Framed-Appletalk-Link | 0 | 0-1 |
Framed-Appletalk-Network | 0 | 0+ |
Framed-Appletalk-Zone | 0 | 0-1 |
Framed-Compression | 0+ | 0+ |
Framed-Interface-Id | 0-1 | 0-1 |
Framed-IP-Address | 0-1 | 0-1 |
Framed-IP-Netmask | 0-1 | 0-1 |
Framed-IPv6-Prefix | 0+ | 0+ |
Framed-IPv6-Pool | 0 | 0-1 |
Framed-IPv6-Route | 0 | 0+ |
Framed-IPX-Network | 0 | 0-1 |
Framed-MTU | 0-1 | 0-1 |
Framed-Pool | 0 | 0-1 |
Framed-Protocol | 0-1 | 0-1 |
Framed-Route | 0 | 0+ |
Framed-Routing | 0 | 0-1 |
Idle-Timeout | 0 | 0-1 |
Login-IP-Host | 0+ | 0+ |
Login-IPv6-Host | 0+ | 0+ |
Login-LAT-Group | 0-1 | 0-1 |
Login-LAT-Node | 0-1 | 0-1 |
Login-LAT-Port | 0-1 | 0-1 |
Login-LAT-Service | 0-1 | 0-1 |
Login-Service | 0 | 0-1 |
Login-TCP-Port | 0 | 0-1 |
Multi-Round-Time-Out | 0 | 0-1 |
------------------------------|-----+-----+
<span class="grey">Zorn Standards Track [Page 57]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-58" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
+-----------+
| Command |
|-----+-----+
Attribute Name | AAR | AAA |
------------------------------|-----+-----+
NAS-Filter-Rule | 0 | 0+ |
NAS-Identifier | 0-1 | 0 |
NAS-IP-Address | 0-1 | 0 |
NAS-IPv6-Address | 0-1 | 0 |
NAS-Port | 0-1 | 0 |
NAS-Port-Id | 0-1 | 0 |
NAS-Port-Type | 0-1 | 0 |
Origin-AAA-Protocol | 0-1 | 0-1 |
Origin-Host | 1 | 1 |
Origin-Realm | 1 | 1 |
Origin-State-Id | 0-1 | 0-1 |
Originating-Line-Info | 0-1 | 0 |
Password-Retry | 0 | 0-1 |
Port-Limit | 0-1 | 0-1 |
Prompt | 0 | 0-1 |
Proxy-Info | 0+ | 0+ |
QoS-Filter-Rule | 0 | 0+ |
Re-Auth-Request-Type | 0 | 0-1 |
Redirect-Host | 0 | 0+ |
Redirect-Host-Usage | 0 | 0-1 |
Redirect-Max-Cache-Time | 0 | 0-1 |
Reply-Message | 0 | 0+ |
Result-Code | 0 | 1 |
Route-Record | 0+ | 0 |
Service-Type | 0-1 | 0-1 |
Session-Id | 1 | 1 |
Session-Timeout | 0 | 0-1 |
State | 0-1 | 0-1 |
Tunneling | 0+ | 0+ |
User-Name | 0-1 | 0-1 |
User-Password | 0-1 | 0 |
------------------------------|-----+-----+
<span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a>. Accounting AVP Tables</span>
The tables in this section are used to show which AVPs defined in
this document are to be present and used in NAS application
Accounting messages. These AVPs are defined in this document, as
well as in [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>] and [<a href="./rfc2866" title=""RADIUS Accounting"">RFC2866</a>].
<span class="grey">Zorn Standards Track [Page 58]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-59" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
<span class="h4"><a class="selflink" id="section-5.2.1" href="#section-5.2.1">5.2.1</a>. Framed Access Accounting AVP Table</span>
The table in this section is used when the Service-Type AVP
(<a href="#section-4.4.1">Section 4.4.1</a>) specifies Framed Access.
+-----------+
| Command |
|-----+-----+
Attribute Name | ACR | ACA |
---------------------------------------|-----+-----+
Accounting-Auth-Method | 0-1 | 0 |
Accounting-Input-Octets | 1 | 0 |
Accounting-Input-Packets | 1 | 0 |
Accounting-Output-Octets | 1 | 0 |
Accounting-Output-Packets | 1 | 0 |
Accounting-Record-Number | 0-1 | 0-1 |
Accounting-Record-Type | 1 | 1 |
Accounting-Realtime-Required | 0-1 | 0-1 |
Accounting-Sub-Session-Id | 0-1 | 0-1 |
Acct-Application-Id | 0-1 | 0-1 |
Acct-Session-Id | 1 | 0-1 |
Acct-Multi-Session-Id | 0-1 | 0-1 |
Acct-Authentic | 1 | 0 |
Acct-Delay-Time | 0-1 | 0 |
Acct-Interim-Interval | 0-1 | 0-1 |
Acct-Link-Count | 0-1 | 0 |
Acct-Session-Time | 1 | 0 |
Acct-Tunnel-Connection | 0-1 | 0 |
Acct-Tunnel-Packets-Lost | 0-1 | 0 |
Authorization-Lifetime | 0-1 | 0 |
Callback-Id | 0-1 | 0 |
Callback-Number | 0-1 | 0 |
Called-Station-Id | 0-1 | 0 |
Calling-Station-Id | 0-1 | 0 |
Class | 0+ | 0+ |
Connection-Info | 0+ | 0 |
Destination-Host | 0-1 | 0 |
Destination-Realm | 1 | 0 |
Event-Timestamp | 0-1 | 0-1 |
Error-Message | 0 | 0-1 |
Error-Reporting-Host | 0 | 0-1 |
Failed-AVP | 0 | 0+ |
---------------------------------------|-----+-----+
<span class="grey">Zorn Standards Track [Page 59]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-60" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
+-----------+
| Command |
|-----+-----+
Attribute Name | ACR | ACA |
---------------------------------------|-----+-----+
Framed-Appletalk-Link | 0-1 | 0 |
Framed-Appletalk-Network | 0-1 | 0 |
Framed-Appletalk-Zone | 0-1 | 0 |
Framed-Compression | 0-1 | 0 |
Framed-IP-Address | 0-1 | 0 |
Framed-IP-Netmask | 0-1 | 0 |
Framed-IPv6-Prefix | 0+ | 0 |
Framed-IPv6-Pool | 0-1 | 0 |
Framed-IPX-Network | 0-1 | 0 |
Framed-MTU | 0-1 | 0 |
Framed-Pool | 0-1 | 0 |
Framed-Protocol | 0-1 | 0 |
Framed-Route | 0-1 | 0 |
Framed-Routing | 0-1 | 0 |
NAS-Filter-Rule | 0+ | 0 |
NAS-Identifier | 0-1 | 0-1 |
NAS-IP-Address | 0-1 | 0-1 |
NAS-IPv6-Address | 0-1 | 0-1 |
NAS-Port | 0-1 | 0-1 |
NAS-Port-Id | 0-1 | 0-1 |
NAS-Port-Type | 0-1 | 0-1 |
Origin-AAA-Protocol | 0-1 | 0-1 |
Origin-Host | 1 | 1 |
Origin-Realm | 1 | 1 |
Origin-State-Id | 0-1 | 0-1 |
Originating-Line-Info | 0-1 | 0 |
Proxy-Info | 0+ | 0+ |
QoS-Filter-Rule | 0+ | 0 |
Route-Record | 0+ | 0 |
Result-Code | 0 | 1 |
Service-Type | 0-1 | 0-1 |
Session-Id | 1 | 1 |
Termination-Cause | 0-1 | 0-1 |
Tunnel-Assignment-Id | 0-1 | 0 |
Tunnel-Client-Endpoint | 0-1 | 0 |
Tunnel-Medium-Type | 0-1 | 0 |
Tunnel-Private-Group-Id | 0-1 | 0 |
Tunnel-Server-Endpoint | 0-1 | 0 |
Tunnel-Type | 0-1 | 0 |
User-Name | 0-1 | 0-1 |
---------------------------------------|-----+-----+
<span class="grey">Zorn Standards Track [Page 60]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-61" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
<span class="h4"><a class="selflink" id="section-5.2.2" href="#section-5.2.2">5.2.2</a>. Non-Framed Access Accounting AVP Table</span>
The table in this section is used when the Service-Type AVP
(<a href="#section-4.4.1">Section 4.4.1</a>) specifies Non-Framed Access.
+-----------+
| Command |
|-----+-----+
Attribute Name | ACR | ACA |
---------------------------------------|-----+-----+
Accounting-Auth-Method | 0-1 | 0 |
Accounting-Input-Octets | 1 | 0 |
Accounting-Output-Octets | 1 | 0 |
Accounting-Record-Type | 1 | 1 |
Accounting-Record-Number | 0-1 | 0-1 |
Accounting-Realtime-Required | 0-1 | 0-1 |
Accounting-Sub-Session-Id | 0-1 | 0-1 |
Acct-Application-Id | 0-1 | 0-1 |
Acct-Session-Id | 1 | 0-1 |
Acct-Multi-Session-Id | 0-1 | 0-1 |
Acct-Authentic | 1 | 0 |
Acct-Delay-Time | 0-1 | 0 |
Acct-Interim-Interval | 0-1 | 0-1 |
Acct-Link-Count | 0-1 | 0 |
Acct-Session-Time | 1 | 0 |
Authorization-Lifetime | 0-1 | 0 |
Callback-Id | 0-1 | 0 |
Callback-Number | 0-1 | 0 |
Called-Station-Id | 0-1 | 0 |
Calling-Station-Id | 0-1 | 0 |
Class | 0+ | 0+ |
Connection-Info | 0+ | 0 |
Destination-Host | 0-1 | 0 |
Destination-Realm | 1 | 0 |
Event-Timestamp | 0-1 | 0-1 |
Error-Message | 0 | 0-1 |
Error-Reporting-Host | 0 | 0-1 |
Failed-AVP | 0 | 0+ |
Login-IP-Host | 0+ | 0 |
Login-IPv6-Host | 0+ | 0 |
Login-LAT-Service | 0-1 | 0 |
Login-LAT-Node | 0-1 | 0 |
Login-LAT-Group | 0-1 | 0 |
Login-LAT-Port | 0-1 | 0 |
Login-Service | 0-1 | 0 |
Login-TCP-Port | 0-1 | 0 |
---------------------------------------|-----+-----+
<span class="grey">Zorn Standards Track [Page 61]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-62" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
+-----------+
| Command |
|-----+-----+
Attribute Name | ACR | ACA |
---------------------------------------|-----+-----+
NAS-Identifier | 0-1 | 0-1 |
NAS-IP-Address | 0-1 | 0-1 |
NAS-IPv6-Address | 0-1 | 0-1 |
NAS-Port | 0-1 | 0-1 |
NAS-Port-Id | 0-1 | 0-1 |
NAS-Port-Type | 0-1 | 0-1 |
Origin-AAA-Protocol | 0-1 | 0-1 |
Origin-Host | 1 | 1 |
Origin-Realm | 1 | 1 |
Origin-State-Id | 0-1 | 0-1 |
Originating-Line-Info | 0-1 | 0 |
Proxy-Info | 0+ | 0+ |
QoS-Filter-Rule | 0+ | 0 |
Route-Record | 0+ | 0 |
Result-Code | 0 | 1 |
Session-Id | 1 | 1 |
Service-Type | 0-1 | 0-1 |
Termination-Cause | 0-1 | 0-1 |
User-Name | 0-1 | 0-1 |
---------------------------------------|-----+-----+
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Unicode Considerations</span>
A number of the AVPs in this RFC use the UTF8String type specified in
the Diameter Base protocol [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>]. Implementation differences in
Unicode input processing may result in the same Unicode input
characters generating different UTF-8 strings that fail to match when
compared for equality. This may result in interoperability problems
between a network access server and a Diameter server when a UTF-8
string entered locally is compared with one received via Diameter.
Many of the uses of UTF8String in this RFC are limited to the 7-bit
US-ASCII-compatible subset of UTF-8, where this class of Unicode
string comparison problems does not arise.
Careful preparation of Unicode strings can increase the likelihood
that string comparison will work in ways that make sense for typical
users throughout the world; [<a href="./rfc3454" title=""Preparation of Internationalized Strings ("">RFC3454</a>] is an example a framework for
such Unicode string preparation. The Diameter application specified
in this RFC has been deployed with use of Unicode in accordance with
[<a href="./rfc4005" title=""Diameter Network Access Server Application"">RFC4005</a>], which does not require any Unicode string preparation. As
a result, additional requirements for Unicode string preparation in
this RFC would not be backwards compatible with existing usage.
<span class="grey">Zorn Standards Track [Page 62]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-63" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
The Diameter server and the network access servers that it serves can
be assumed to be under common administrative control, and all of the
UTF-8 strings involved are part of the configuration of these
servers. Therefore, administrative interfaces for implementations of
this RFC:
a. SHOULD accept direct UTF-8 input of all configuration strings for
AVPs that allow Unicode characters beyond the 7-bit US-ASCII-
compatible subset of Unicode (in addition to any provisions for
accepting Unicode characters for processing into UTF-8), and
b. SHOULD make all such configuration strings available as UTF-8
strings.
This functionality enables an administrator who encounters Unicode
string comparison problems to copy one instance of aproblematic UTF-8
string from one server to the other, after which the two (now
identical) copies should compare as expected.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. IANA Considerations</span>
Several of the namespaces used in this document are managed by the
Internet Assigned Numbers Authority [<a href="#ref-IANA" title=""Internet Assigned Numbers Authority"">IANA</a>], including the AVP Codes
[<a href="#ref-AVP-Codes">AVP-Codes</a>], AVP Specific Values [<a href="#ref-AVP-Vals" title=""AVP Specific Values"">AVP-Vals</a>], Application IDs
[<a href="#ref-App-Ids" title=""Application IDs"">App-Ids</a>], Command Codes [<a href="#ref-Command-Codes">Command-Codes</a>], and RADIUS Attribute Values
[<a href="#ref-RADIUSAttrVals">RADIUSAttrVals</a>].
For the current values allocated, and the policies governing
allocation in those namespaces, please see the above-referenced
registries.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Security Considerations</span>
This document describes the extension of Diameter for the NAS
application. Security considerations regarding the Diameter protocol
itself are discussed in [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>]. Use of this application of
Diameter MUST take into consideration the security issues and
requirements of the Base protocol.
<span class="h3"><a class="selflink" id="section-8.1" href="#section-8.1">8.1</a>. Authentication Considerations</span>
This document does not contain a security protocol but does discuss
how PPP authentication protocols can be carried within the Diameter
protocol. The PPP authentication protocols described are PAP and
CHAP.
<span class="grey">Zorn Standards Track [Page 63]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-64" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
The use of PAP SHOULD be discouraged, as it exposes users' passwords
to possibly non-trusted entities. However, PAP is also frequently
used for use with one-time passwords, which do not expose a security
risk.
This document also describes how CHAP can be carried within the
Diameter protocol, which is required for RADIUS backward
compatibility. The CHAP protocol, as used in a RADIUS environment,
facilitates authentication replay attacks.
The use of the EAP authentication protocols [<a href="./rfc4072" title=""Diameter Extensible Authentication Protocol (EAP) Application"">RFC4072</a>] can offer
better security, given a method suitable for the circumstances.
Depending on the value of the Auth-Request-Type AVP, the Diameter
protocol allows authorization-only requests that contain no
authentication information from the client. This capability goes
beyond the Call Check capabilities provided by RADIUS (<a href="./rfc2865#section-5.6">Section 5.6 of
[RFC2865]</a>) in that no access decision is requested. As a result, a
new session cannot be started as a result of a response to an
authorization-only request without introducing a significant security
vulnerability.
<span class="h3"><a class="selflink" id="section-8.2" href="#section-8.2">8.2</a>. AVP Considerations</span>
Diameter AVPs often contain security-sensitive data; for example,
user passwords and location data, network addresses and cryptographic
keys. With the exception of the Configuration-Token (<a href="#section-4.4.8">Section 4.4.8</a>),
QoS-Filter-Rule (<a href="#section-4.4.9">Section 4.4.9</a>), and Tunneling (<a href="#section-4.5.1">Section 4.5.1</a>) AVPs,
all of the AVPs defined in this document are considered to be
security-sensitive.
Diameter messages containing any AVPs considered to be security-
sensitive MUST only be sent protected via mutually authenticated TLS
or IPsec. In addition, those messages MUST NOT be sent via
intermediate nodes unless there is end-to-end security between the
originator and recipient or the originator has locally trusted
configuration that indicates that end-to-end security is not needed.
For example, end-to-end security may not be required in the case
where an intermediary node is known to be operated as part of the
same administrative domain as the endpoints so that an ability to
successfully compromise the intermediary would imply a high
probability of being able to compromise the endpoints as well. Note
that no end-to-end security mechanism is specified in this document.
<span class="grey">Zorn Standards Track [Page 64]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-65" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. References</span>
<span class="h3"><a class="selflink" id="section-9.1" href="#section-9.1">9.1</a>. Normative References</span>
[<a id="ref-ANITypes">ANITypes</a>] NANPA Number Resource Info, "ANI Assignments",
<<a href="http://www.nanpa.com/number_resource_info/ani_ii_assignments.html">http://www.nanpa.com/number_resource_info/</a>
<a href="http://www.nanpa.com/number_resource_info/ani_ii_assignments.html">ani_ii_assignments.html</a>>.
[<a id="ref-RFC1994">RFC1994</a>] Simpson, W., "PPP Challenge Handshake Authentication
Protocol (CHAP)", <a href="./rfc1994">RFC 1994</a>, August 1996.
[<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-RFC2865">RFC2865</a>] Rigney, C., Willens, S., Rubens, A., and W. Simpson,
"Remote Authentication Dial In User Service (RADIUS)", <a href="./rfc2865">RFC</a>
<a href="./rfc2865">2865</a>, June 2000.
[<a id="ref-RFC3162">RFC3162</a>] Aboba, B., Zorn, G., and D. Mitton, "RADIUS and IPv6", <a href="./rfc3162">RFC</a>
<a href="./rfc3162">3162</a>, August 2001.
[<a id="ref-RFC3516">RFC3516</a>] Nerenberg, L., "IMAP4 Binary Content Extension", <a href="./rfc3516">RFC 3516</a>,
April 2003.
[<a id="ref-RFC3539">RFC3539</a>] Aboba, B. and J. Wood, "Authentication, Authorization and
Accounting (AAA) Transport Profile", <a href="./rfc3539">RFC 3539</a>, June 2003.
[<a id="ref-RFC5234">RFC5234</a>] Crocker, D. and P. Overell, "Augmented BNF for Syntax
Specifications: ABNF", STD 68, <a href="./rfc5234">RFC 5234</a>, January 2008.
[<a id="ref-RFC5777">RFC5777</a>] Korhonen, J., Tschofenig, H., Arumaithurai, M., Jones, M.,
and A. Lior, "Traffic Classification and Quality of
Service (QoS) Attributes for Diameter", <a href="./rfc5777">RFC 5777</a>, February
2010.
[<a id="ref-RFC6733">RFC6733</a>] Fajardo, V., Arkko, J., Loughney, J., and G. Zorn,
"Diameter Base Protocol", <a href="./rfc6733">RFC 6733</a>, October 2012.
<span class="h3"><a class="selflink" id="section-9.2" href="#section-9.2">9.2</a>. Informative References</span>
[<a id="ref-ARAP">ARAP</a>] Apple Computer, "Apple Remote Access Protocol (ARAP)
Version 2.0 External Reference Specification", R0612LL/B ,
September 1994.
[<a id="ref-AVP-Codes">AVP-Codes</a>]
IANA, "AVP Codes",
<<a href="http://www.iana.org/assignments/aaa-parameters/">http://www.iana.org/assignments/aaa-parameters/</a>>.
<span class="grey">Zorn Standards Track [Page 65]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-66" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
[<a id="ref-AVP-Vals">AVP-Vals</a>] IANA, "AVP Specific Values",
<<a href="http://www.iana.org/assignments/aaa-parameters/">http://www.iana.org/assignments/aaa-parameters/</a>>.
[<a id="ref-App-Ids">App-Ids</a>] IANA, "Application IDs",
<<a href="http://www.iana.org/assignments/aaa-parameters/">http://www.iana.org/assignments/aaa-parameters/</a>>.
[<a id="ref-AppleTalk">AppleTalk</a>]
Sidhu, G., Andrews, R., and A. Oppenheimer, "Inside
AppleTalk", Second Edition Apple Computer, 1990.
[<a id="ref-BASE">BASE</a>] Calhoun, P., Loughney, J., Guttman, E., Zorn, G., and J.
Arkko, "Diameter Base Protocol", <a href="./rfc3588">RFC 3588</a>, September 2003.
[<a id="ref-Command-Codes">Command-Codes</a>]
IANA, "Command Codes",
<<a href="http://www.iana.org/assignments/aaa-parameters/">http://www.iana.org/assignments/aaa-parameters/</a>>.
[<a id="ref-IANA">IANA</a>] IANA, "Internet Assigned Numbers Authority",
<<a href="http://www.iana.org/">http://www.iana.org/</a>>.
[<a id="ref-IPX">IPX</a>] Novell, Inc., "NetWare System Technical Interface
Overview", #883-000780-001, June 1989.
[<a id="ref-ISO.8859-1.1987">ISO.8859-1.1987</a>]
International Organization for Standardization,
"Information technology - 8-bit single byte coded graphic
- character sets - Part 1: Latin alphabet No. 1, JTC1/
SC2", ISO Standard 8859-1, 1987.
[<a id="ref-LAT">LAT</a>] Digital Equipment Corp., "Local Area Transport (LAT)
Specification V5.0", AA-NL26A-TE, June 1989.
[<a id="ref-RADIUSAttrVals">RADIUSAttrVals</a>]
IANA, "Radius Attribute Values",
<<a href="http://www.iana.org/assignments/radius-types/">http://www.iana.org/assignments/radius-types/</a>>.
[<a id="ref-RFC1334">RFC1334</a>] Lloyd, B. and W. Simpson, "PPP Authentication Protocols",
<a href="./rfc1334">RFC 1334</a>, October 1992.
[<a id="ref-RFC1661">RFC1661</a>] Simpson, W., "The Point-to-Point Protocol (PPP)", STD 51,
<a href="./rfc1661">RFC 1661</a>, July 1994.
[<a id="ref-RFC1990">RFC1990</a>] Sklower, K., Lloyd, B., McGregor, G., Carr, D., and T.
Coradetti, "The PPP Multilink Protocol (MP)", <a href="./rfc1990">RFC 1990</a>,
August 1996.
<span class="grey">Zorn Standards Track [Page 66]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-67" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
[<a id="ref-RFC2474">RFC2474</a>] Nichols, K., Blake, S., Baker, F., and D. Black,
"Definition of the Differentiated Services Field (DS
Field) in the IPv4 and IPv6 Headers", <a href="./rfc2474">RFC 2474</a>, December
1998.
[<a id="ref-RFC2548">RFC2548</a>] Zorn, G., "Microsoft Vendor-specific RADIUS Attributes",
<a href="./rfc2548">RFC 2548</a>, March 1999.
[<a id="ref-RFC2597">RFC2597</a>] Heinanen, J., Baker, F., Weiss, W., and J. Wroclawski,
"Assured Forwarding PHB Group", <a href="./rfc2597">RFC 2597</a>, June 1999.
[<a id="ref-RFC2637">RFC2637</a>] Hamzeh, K., Pall, G., Verthein, W., Taarud, J., Little,
W., and G. Zorn, "Point-to-Point Tunneling Protocol", <a href="./rfc2637">RFC</a>
<a href="./rfc2637">2637</a>, July 1999.
[<a id="ref-RFC2866">RFC2866</a>] Rigney, C., "RADIUS Accounting", <a href="./rfc2866">RFC 2866</a>, June 2000.
[<a id="ref-RFC2867">RFC2867</a>] Zorn, G., Aboba, B., and D. Mitton, "RADIUS Accounting
Modifications for Tunnel Protocol Support", <a href="./rfc2867">RFC 2867</a>, June
2000.
[<a id="ref-RFC2868">RFC2868</a>] Zorn, G., Leifer, D., Rubens, A., Shriver, J., Holdrege,
M., and I. Goyret, "RADIUS Attributes for Tunnel Protocol
Support", <a href="./rfc2868">RFC 2868</a>, June 2000.
[<a id="ref-RFC2869">RFC2869</a>] Rigney, C., Willats, W., and P. Calhoun, "RADIUS
Extensions", <a href="./rfc2869">RFC 2869</a>, June 2000.
[<a id="ref-RFC2881">RFC2881</a>] Mitton, D. and M. Beadles, "Network Access Server
Requirements Next Generation (NASREQNG) NAS Model", <a href="./rfc2881">RFC</a>
<a href="./rfc2881">2881</a>, July 2000.
[<a id="ref-RFC2989">RFC2989</a>] Aboba, B., Calhoun, P., Glass, S., Hiller, T., McCann, P.,
Shiino, H., Walsh, P., Zorn, G., Dommety, G., Perkins, C.,
Patil, B., Mitton, D., Manning, S., Beadles, M., Chen, X.,
Sivalingham, S., Hameed, A., Munson, M., Jacobs, S., Lim,
B., Hirschman, B., Hsu, R., Koo, H., Lipford, M.,
Campbell, E., Xu, Y., Baba, S., and E. Jaques, "Criteria
for Evaluating AAA Protocols for Network Access", <a href="./rfc2989">RFC</a>
<a href="./rfc2989">2989</a>, November 2000.
[<a id="ref-RFC3169">RFC3169</a>] Beadles, M. and D. Mitton, "Criteria for Evaluating
Network Access Server Protocols", <a href="./rfc3169">RFC 3169</a>, September
2001.
<span class="grey">Zorn Standards Track [Page 67]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-68" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
[<a id="ref-RFC3246">RFC3246</a>] Davie, B., Charny, A., Bennet, J., Benson, K., Le Boudec,
J., Courtney, W., Davari, S., Firoiu, V., and D.
Stiliadis, "An Expedited Forwarding PHB (Per-Hop
Behavior)", <a href="./rfc3246">RFC 3246</a>, March 2002.
[<a id="ref-RFC3454">RFC3454</a>] Hoffman, P. and M. Blanchet, "Preparation of
Internationalized Strings ("stringprep")", <a href="./rfc3454">RFC 3454</a>,
December 2002.
[<a id="ref-RFC3580">RFC3580</a>] Congdon, P., Aboba, B., Smith, A., Zorn, G., and J. Roese,
"IEEE 802.1X Remote Authentication Dial In User Service
(RADIUS) Usage Guidelines", <a href="./rfc3580">RFC 3580</a>, September 2003.
[<a id="ref-RFC3931">RFC3931</a>] Lau, J., Townsley, M., and I. Goyret, "Layer Two Tunneling
Protocol - Version 3 (L2TPv3)", <a href="./rfc3931">RFC 3931</a>, March 2005.
[<a id="ref-RFC4005">RFC4005</a>] Calhoun, P., Zorn, G., Spence, D., and D. Mitton,
"Diameter Network Access Server Application", <a href="./rfc4005">RFC 4005</a>,
August 2005.
[<a id="ref-RFC4072">RFC4072</a>] Eronen, P., Hiller, T., and G. Zorn, "Diameter Extensible
Authentication Protocol (EAP) Application", <a href="./rfc4072">RFC 4072</a>,
August 2005.
[<a id="ref-RFC4301">RFC4301</a>] Kent, S. and K. Seo, "Security Architecture for the
Internet Protocol", <a href="./rfc4301">RFC 4301</a>, December 2005.
[<a id="ref-RFC5246">RFC5246</a>] Dierks, T. and E. Rescorla, "The Transport Layer Security
(TLS) Protocol Version 1.2", <a href="./rfc5246">RFC 5246</a>, August 2008.
<span class="grey">Zorn Standards Track [Page 68]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-69" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
<span class="h2"><a class="selflink" id="appendix-A" href="#appendix-A">Appendix A</a>. Acknowledgements</span>
<span class="h3"><a class="selflink" id="appendix-A.1" href="#appendix-A.1">A.1</a>. This Document</span>
The vast majority of the text in this document was taken directly
from <a href="./rfc4005">RFC 4005</a>; the editor owes a debt of gratitude to the authors
thereof (especially Dave Mitton, who somehow managed to make nroff
paginate the AVP Occurance Tables correctly!).
Thanks (in no particular order) to Jai-Jin Lim, Liu Hans, Sebastien
Decugis, Jouni Korhonen, Mark Jones, Hannes Tschofenig, Dave Crocker,
David Black, Barry Leiba, Peter Saint-Andre, Stefan Winter, and
Lionel Morand for their useful reviews and helpful comments.
<span class="h3"><a class="selflink" id="appendix-A.2" href="#appendix-A.2">A.2</a>. <a href="./rfc4005">RFC 4005</a></span>
The authors would like to thank Carl Rigney, Allan C. Rubens, William
Allen Simpson, and Steve Willens for their work on the original
RADIUS protocol, from which many of the concepts in this
specification were derived. Thanks, also, to Carl Rigney for
[<a href="./rfc2866" title=""RADIUS Accounting"">RFC2866</a>] and [<a href="./rfc2869" title=""RADIUS Extensions"">RFC2869</a>]; Ward Willats for [<a href="./rfc2869" title=""RADIUS Extensions"">RFC2869</a>]; Glen Zorn,
Bernard Aboba, and Dave Mitton for [<a href="./rfc2867" title=""RADIUS Accounting Modifications for Tunnel Protocol Support"">RFC2867</a>] and [<a href="./rfc3162" title=""RADIUS and IPv6"">RFC3162</a>]; and Dory
Leifer, John Shriver, Matt Holdrege, Allan Rubens, Glen Zorn, and
Ignacio Goyret for their work on [<a href="./rfc2868" title=""RADIUS Attributes for Tunnel Protocol Support"">RFC2868</a>]. This document stole text
and concepts from both [<a href="./rfc2868" title=""RADIUS Attributes for Tunnel Protocol Support"">RFC2868</a>] and [<a href="./rfc2869" title=""RADIUS Extensions"">RFC2869</a>]. Thanks go to Carl
Williams for providing IPv6-specific text.
The authors would also like to acknowledge the following people for
their contributions in the development of the Diameter protocol:
Bernard Aboba, Jari Arkko, William Bulley, Kuntal Chowdhury, Daniel
C. Fox, Lol Grant, Nancy Greene, Jeff Hagg, Peter Heitman, Paul
Krumviede, Fergal Ladley, Ryan Moats, Victor Muslin, Kenneth Peirce,
Sumit Vakil, John R. Vollbrecht, and Jeff Weisberg.
Finally, Pat Calhoun would like to thank Sun Microsystems, as most of
the effort put into this document was done while he was in their
employ.
<span class="grey">Zorn Standards Track [Page 69]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-70" ></span>
<span class="grey"><a href="./rfc7155">RFC 7155</a> Diameter NASREQ April 2014</span>
Author's Address
Glen Zorn (editor)
Network Zen
227/358 Thanon Sanphawut
Bang Na, Bangkok 10260
Thailand
Phone: +66 (0)8-1000-4155
EMail: glenzorn@gmail.com
Zorn Standards Track [Page 70]
</pre>
|