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
|
<pre>Network Working Group P. Eronen, Ed.
Request for Comments: 4072 Nokia
Category: Standards Track T. Hiller
Lucent Technologies
G. Zorn
Cisco Systems
August 2005
<span class="h1">Diameter Extensible Authentication Protocol (EAP) Application</span>
Status of This Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2005).
Abstract
The Extensible Authentication Protocol (EAP) provides a standard
mechanism for support of various authentication methods. This
document defines the Command-Codes and AVPs necessary to carry EAP
packets between a Network Access Server (NAS) and a back-end
authentication server.
Table of Contents
<a href="#section-1">1</a>. Introduction ...................................................<a href="#page-2">2</a>
<a href="#section-1.1">1.1</a>. Conventions Used in This Document ........................<a href="#page-3">3</a>
<a href="#section-2">2</a>. Extensible Authentication Protocol Support in Diameter .........<a href="#page-3">3</a>
<a href="#section-2.1">2.1</a>. Advertising Application Support ..........................<a href="#page-3">3</a>
<a href="#section-2.2">2.2</a>. Protocol Overview ........................................<a href="#page-4">4</a>
<a href="#section-2.3">2.3</a>. Sessions and NASREQ Interaction ..........................<a href="#page-6">6</a>
<a href="#section-2.3.1">2.3.1</a>. Scenario 1: Direct Connection .....................<a href="#page-7">7</a>
<a href="#section-2.3.2">2.3.2</a>. Scenario 2: Direct Connection with Redirects ......<a href="#page-8">8</a>
<a href="#section-2.3.3">2.3.3</a>. Scenario 3: Direct EAP, Authorization via Agents ..9
<a href="#section-2.3.4">2.3.4</a>. Scenario 4: Proxy Agents .........................<a href="#page-10">10</a>
<a href="#section-2.4">2.4</a>. Invalid Packets .........................................<a href="#page-10">10</a>
<a href="#section-2.5">2.5</a>. Retransmission ..........................................<a href="#page-11">11</a>
<a href="#section-2.6">2.6</a>. Fragmentation ...........................................<a href="#page-12">12</a>
<a href="#section-2.7">2.7</a>. Accounting ..............................................<a href="#page-12">12</a>
<a href="#section-2.8">2.8</a>. Usage Guidelines ........................................<a href="#page-13">13</a>
<span class="grey">Eronen, et al. Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
<a href="#section-2.8.1">2.8.1</a>. User-Name AVP ....................................<a href="#page-13">13</a>
<a href="#section-2.8.2">2.8.2</a>. Conflicting AVPs .................................<a href="#page-13">13</a>
<a href="#section-2.8.3">2.8.3</a>. Displayable Messages .............................<a href="#page-14">14</a>
<a href="#section-2.8.4">2.8.4</a>. Role Reversal ....................................<a href="#page-14">14</a>
<a href="#section-2.8.5">2.8.5</a>. Identifier Space .................................<a href="#page-14">14</a>
<a href="#section-3">3</a>. Command-Codes .................................................<a href="#page-14">14</a>
<a href="#section-3.1">3.1</a>. Diameter-EAP-Request (DER) Command ......................<a href="#page-15">15</a>
<a href="#section-3.2">3.2</a>. Diameter-EAP-Answer (DEA) Command .......................<a href="#page-16">16</a>
<a href="#section-4">4</a>. Attribute-Value Pairs .........................................<a href="#page-18">18</a>
<a href="#section-4.1">4.1</a>. New AVPs ................................................<a href="#page-18">18</a>
<a href="#section-4.1.1">4.1.1</a>. EAP-Payload AVP ..................................<a href="#page-18">18</a>
<a href="#section-4.1.2">4.1.2</a>. EAP-Reissued-Payload AVP .........................<a href="#page-18">18</a>
<a href="#section-4.1.3">4.1.3</a>. EAP-Master-Session-Key AVP .......................<a href="#page-19">19</a>
<a href="#section-4.1.4">4.1.4</a>. EAP-Key-Name AVP .................................<a href="#page-19">19</a>
<a href="#section-4.1.5">4.1.5</a>. Accounting-EAP-Auth-Method AVP ...................<a href="#page-19">19</a>
<a href="#section-5">5</a>. AVP Occurrence Tables .........................................<a href="#page-19">19</a>
<a href="#section-5.1">5.1</a>. EAP Command AVP Table ...................................<a href="#page-20">20</a>
<a href="#section-5.2">5.2</a>. Accounting AVP Table ....................................<a href="#page-21">21</a>
<a href="#section-6">6</a>. RADIUS/Diameter Interactions ..................................<a href="#page-22">22</a>
<a href="#section-6.1">6.1</a>. RADIUS Request Forwarded as Diameter Request ............<a href="#page-22">22</a>
<a href="#section-6.2">6.2</a>. Diameter Request Forwarded as RADIUS Request ............<a href="#page-23">23</a>
<a href="#section-6.3">6.3</a>. Accounting Requests .....................................<a href="#page-24">24</a>
<a href="#section-7">7</a>. IANA Considerations ...........................................<a href="#page-24">24</a>
<a href="#section-8">8</a>. Security Considerations .......................................<a href="#page-24">24</a>
<a href="#section-8.1">8.1</a>. Overview ................................................<a href="#page-24">24</a>
<a href="#section-8.2">8.2</a>. AVP Editing .............................................<a href="#page-26">26</a>
<a href="#section-8.3">8.3</a>. Negotiation Attacks .....................................<a href="#page-27">27</a>
<a href="#section-8.4">8.4</a>. Session Key Distribution ................................<a href="#page-28">28</a>
<a href="#section-8.5">8.5</a>. Privacy Issues ..........................................<a href="#page-28">28</a>
<a href="#section-8.6">8.6</a>. Note about EAP and Impersonation ........................<a href="#page-29">29</a>
<a href="#section-9">9</a>. Acknowledgements ..............................................<a href="#page-29">29</a>
<a href="#section-10">10</a>. References ....................................................<a href="#page-30">30</a>
<a href="#section-10.1">10.1</a>. Normative References ....................................<a href="#page-30">30</a>
<a href="#section-10.2">10.2</a>. Informative References ..................................<a href="#page-30">30</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
The Extensible Authentication Protocol (EAP), defined in [<a href="#ref-EAP" title=""Extensible Authentication Protocol (EAP)"">EAP</a>], is an
authentication framework which supports multiple authentication
mechanisms. EAP may be used on dedicated links, switched circuits,
and wired as well as wireless links.
To date, EAP has been implemented with hosts and routers that connect
via switched circuits or dial-up lines using PPP [<a href="./rfc1661" title=""The Point-to-Point Protocol (PPP)"">RFC1661</a>], IEEE 802
wired switches [<a href="#ref-IEEE-802.1X" title=""Local and Metropolitan Area Networks: Port-Based Network Access Control"">IEEE-802.1X</a>], and IEEE 802.11 wireless access points
[<a href="#ref-IEEE-802.11i" title=""IEEE Standard for Information technology - Telecommunications and information exchange between systems - Local and metropolitan area networks - Specific requirements - Part 11: Wireless Medium Access Control (MAC) and Physical Layer (PHY) Specifications: Amendment 6: Medium Access Control (MAC) Security Enhancements"">IEEE-802.11i</a>]. EAP has also been adopted for IPsec remote access in
IKEv2 [<a href="#ref-IKEv2" title=""Internet Key Exchange (IKEv2) Protocol"">IKEv2</a>].
<span class="grey">Eronen, et al. Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
This document specifies the Diameter EAP application that carries EAP
packets between a Network Access Server (NAS) working as an EAP
Authenticator and a back-end authentication server. The Diameter EAP
application is based on the Diameter Network Access Server
Application [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] and is intended for environments similar to
NASREQ.
In the Diameter EAP application, authentication occurs between the
EAP client and its home Diameter server. This end-to-end
authentication reduces the possibility for fraudulent authentication,
such as replay and man-in-the-middle attacks. End-to-end
authentication also provides a possibility for mutual authentication,
which is not possible with PAP and CHAP in a roaming PPP environment.
The Diameter EAP application relies heavily on [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>], and in
earlier versions was part of the Diameter NASREQ application. It can
also be used in conjunction with NASREQ, selecting the application
based on the user authentication mechanism (EAP or PAP/CHAP). The
Diameter EAP application defines new Command-Codes and Attribute-
Value Pairs (AVPs), and can work together with RADIUS EAP support
[<a href="./rfc3579" title=""RADIUS (Remote Authentication Dial In User Service) Support For Extensible Authentication Protocol (EAP)"">RFC3579</a>].
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>. Conventions Used in This Document</span>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Extensible Authentication Protocol Support in Diameter</span>
<span class="h3"><a class="selflink" id="section-2.1" href="#section-2.1">2.1</a>. Advertising Application Support</span>
Diameter nodes conforming to this specification MUST advertise
support by including the Diameter EAP Application ID value of 5 in
the Auth-Application-Id AVP of the Capabilities-Exchange-Request and
Capabilities-Exchange-Answer command [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>].
If the NAS receives a response with the Result-Code set to
DIAMETER_APPLICATION_UNSUPPORTED [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>], it indicates that the
Diameter server in the home realm does not support EAP. If possible,
the access device MAY attempt to negotiate another authentication
protocol, such as PAP or CHAP. An access device SHOULD be cautious
when determining whether a less secure authentication protocol will
be used, since this could result from a downgrade attack (see
<a href="#section-8.3">Section 8.3</a>).
<span class="grey">Eronen, et al. Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
<span class="h3"><a class="selflink" id="section-2.2" href="#section-2.2">2.2</a>. Protocol Overview</span>
The EAP conversation between the authenticating peer and the access
device begins with the initiation of EAP within a link layer, such as
PPP [<a href="./rfc1661" title=""The Point-to-Point Protocol (PPP)"">RFC1661</a>] or IEEE 802.11i [<a href="#ref-IEEE-802.11i" title=""IEEE Standard for Information technology - Telecommunications and information exchange between systems - Local and metropolitan area networks - Specific requirements - Part 11: Wireless Medium Access Control (MAC) and Physical Layer (PHY) Specifications: Amendment 6: Medium Access Control (MAC) Security Enhancements"">IEEE-802.11i</a>]. Once EAP has been
initiated, the access device will typically send a Diameter-EAP-
Request message with an empty EAP-Payload AVP to the Diameter server,
signifying an EAP-Start.
If the Diameter home server is willing to do EAP authentication, it
responds with a Diameter-EAP-Answer message containing an EAP-Payload
AVP that includes an encapsulated EAP packet. The Result-Code AVP in
the message will be set to DIAMETER_MULTI_ROUND_AUTH, signifying that
a subsequent request is expected. The EAP payload is forwarded by
the access device to the EAP client. This is illustrated in the
diagram below.
User NAS Server
| | |
| (initiate EAP) | |
|<------------------------------>| |
| | Diameter-EAP-Request |
| | EAP-Payload(EAP Start) |
| |------------------------------->|
| | |
| | Diameter-EAP-Answer |
| Result-Code=DIAMETER_MULTI_ROUND_AUTH |
| | EAP-Payload(EAP Request #1) |
| |<-------------------------------|
| EAP Request #1 | |
|<-------------------------------| |
: : :
: ...continues... :
The initial Diameter-EAP-Answer in a multi-round exchange normally
includes an EAP-Request/Identity, requesting the EAP client to
identify itself. Upon receipt of the EAP client's EAP-Response, the
access device will then issue a second Diameter-EAP-Request message,
with the client's EAP payload encapsulated within the EAP-Payload
AVP.
A preferred approach is for the access device to issue the
EAP-Request/Identity message to the EAP client, and forward the
EAP-Response/Identity packet, encapsulated within the EAP-Payload
AVP, as a Diameter-EAP-Request to the Diameter server (see the
diagram below). This alternative reduces the number of Diameter
message round trips. When the EAP-Request/Identity message is issued
by the access device, it SHOULD interpret the EAP-Response/Identity
<span class="grey">Eronen, et al. Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
packet returned by the authenticating peer, and copy its value to a
User-Name AVP in Diameter-EAP-Request. This is useful in roaming
environments, since the Destination-Realm is needed for routing
purposes. Note that this alternative cannot be universally employed,
as there are circumstances in which a user's identity is not needed
(such as when authorization occurs based on a calling or called phone
number).
User NAS Server
| | |
| (initiate EAP) | |
|<------------------------------>| |
| | |
| EAP Request(Identity) | |
|<-------------------------------| |
| | |
| EAP Response(Identity) | |
|------------------------------->| |
| | Diameter-EAP-Request |
| | EAP-Payload(EAP Response) |
| |------------------------------->|
: : :
: ...continues... :
The conversation continues until the Diameter server sends a
Diameter-EAP-Answer with a Result-Code AVP indicating success or
failure, and an optional EAP-Payload. The Result-Code AVP is used by
the access device to determine whether service is to be provided to
the EAP client. The access device MUST NOT rely on the contents of
the optional EAP-Payload to determine whether service is to be
provided.
<span class="grey">Eronen, et al. Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
: ...continued... :
: : :
| EAP Response #N | |
|------------------------------->| |
| | Diameter-EAP-Request |
| | EAP-Payload(EAP Response #N) |
| |------------------------------->|
| | |
| | Diameter-EAP-Answer |
| | Result-Code=DIAMETER_SUCCESS |
| | EAP-Payload(EAP Success) |
| | [EAP-Master-Session-Key] |
| | (authorization AVPs) |
| |<-------------------------------|
| | |
| EAP Success | |
|<-------------------------------| |
If authorization was requested, a Diameter-EAP-Answer with
Result-Code set to DIAMETER_SUCCESS SHOULD also include the
appropriate authorization AVPs required for the service requested
(see <a href="#section-5">Section 5</a> and [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>]). In some cases, the home server may not
be able to provide all necessary authorization AVPs; in this case, a
separate authorization step MAY be used as described in
<a href="#section-2.3.3">Section 2.3.3</a>. Diameter-EAP-Answer messages whose Result-Code AVP is
set to DIAMETER_MULTI_ROUND_AUTH MAY include authorization AVPs.
A Diameter-EAP-Answer with successful Result-Code MAY also include an
EAP-Master-Session-Key AVP that contains keying material for
protecting the communication between the user and the NAS. Exactly
how this keying material is used depends on the link layer in
question, and is beyond the scope of this document.
A home Diameter server MAY request EAP re-authentication by issuing
the Re-Auth-Request [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] message to the Diameter client.
Should an EAP authentication session be interrupted due to a home
server failure, the session MAY be directed to an alternate server,
but the authentication session will have to be restarted from the
beginning.
<span class="h3"><a class="selflink" id="section-2.3" href="#section-2.3">2.3</a>. Sessions and NASREQ Interaction</span>
The previous section introduced the basic protocol between the NAS
and the home server. Since the Diameter-EAP-Answer message may
include a Master Session Key (MSK) for protecting the communication
between the user and the NAS, one must ensure that this key does not
fall into wrong hands.
<span class="grey">Eronen, et al. Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
Basic Diameter security mechanisms (IPsec and TLS) protect Diameter
messages hop-by-hop. Since there are currently no end-to-end
(NAS-to-home server) security mechanisms defined for Diameter, this
section describes possible scenarios on how the messages could be
transport protected using these hop-by-hop mechanisms.
This list of scenarios is not intended to be exhaustive, and it is
possible to combine them. For instance, the first proxy agent after
the NAS could use redirects as in Scenario 2 to bypass any additional
proxy agents.
<span class="h4"><a class="selflink" id="section-2.3.1" href="#section-2.3.1">2.3.1</a>. Scenario 1: Direct Connection</span>
The simplest case is when the NAS contacts the home server directly.
All authorization AVPs and EAP keying material are delivered by the
home server.
NAS home server
| |
| Diameter-EAP-Request |
| Auth-Request-Type=AUTHORIZE_AUTHENTICATE |
| EAP-Payload(EAP Start) |
|---------------------------------------------------------------->|
| |
| Diameter-EAP-Answer |
| Result-Code=DIAMETER_MULTI_ROUND_AUTH |
| EAP-Payload(EAP Request) |
|<----------------------------------------------------------------|
| |
: ...more EAP Request/Response pairs... :
| |
| Diameter-EAP-Request |
| EAP-Payload(EAP Response) |
|---------------------------------------------------------------->|
| |
| Diameter-EAP-Answer |
| Result-Code=DIAMETER_SUCCESS |
| EAP-Payload(EAP Success) |
| EAP-Master-Session-Key |
| (authorization AVPs) |
|<----------------------------------------------------------------|
This scenario is the most likely to be used in small networks, or in
cases where Diameter agents are not needed to provide routing or
additional authorization AVPs.
<span class="grey">Eronen, et al. Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
<span class="h4"><a class="selflink" id="section-2.3.2" href="#section-2.3.2">2.3.2</a>. Scenario 2: Direct Connection with Redirects</span>
In this scenario the NAS uses a redirect agent to locate the home
server. The rest of the session proceeds as before.
NAS Local redirect agent Home server
| | |
| Diameter-EAP-Request | |
| Auth-Request-Type=AUTHORIZE_AUTHENTICATE |
| EAP-Payload(EAP Start) | |
|------------------------------->| |
| | |
| Diameter-EAP-Answer |
| Redirect-Host=homeserver.example.com |
| Redirect-Host-Usage=REALM_AND_APPLICATION |
|<-------------------------------| |
| : |
| Diameter-EAP-Request : |
| Auth-Request-Type=AUTHORIZE_AUTHENTICATE |
| EAP-Payload(EAP Start) : |
|---------------------------------------------------------------->|
| : |
: ...rest of the session continues as in first case... :
: : :
The advantage of this scenario is that knowledge of realms and home
servers is centralized to a redirect agent, and it is not necessary
to modify the NAS configuration when, for example, a new roaming
agreement is made.
<span class="grey">Eronen, et al. Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
<span class="h4"><a class="selflink" id="section-2.3.3" href="#section-2.3.3">2.3.3</a>. Scenario 3: Direct EAP, Authorization via Agents</span>
In this scenario the EAP authentication is done directly with the
home server (with Auth-Request-Type set to AUTHENTICATE_ONLY), and
authorization AVPs are retrieved from local proxy agents. This
scenario is intended for environments in which the home server cannot
provide all the necessary authorization AVPs to the NAS.
NAS Local proxy agent Home server
| : |
| Diameter-EAP-Request : |
| Auth-Request-Type=AUTHENTICATE_ONLY |
| EAP-Payload(EAP Start) : |
|---------------------------------------------------------------->|
| : |
| : Diameter-EAP-Answer |
| Result-Code=DIAMETER_MULTI_ROUND_AUTH |
| : EAP-Payload(EAP Request) |
|<----------------------------------------------------------------|
| : |
: ...more EAP Request/Response pairs... :
| : |
| Diameter-EAP-Request : |
| EAP-Payload(EAP Response) : |
|---------------------------------------------------------------->|
| : |
| : Diameter-EAP-Answer |
| : Result-Code=DIAMETER_SUCCESS |
| : EAP-Payload(EAP Success) |
| : EAP-Master-Session-Key |
| : (authorization AVPs) |
|<----------------------------------------------------------------|
| | |
| AA-Request | |
| Auth-Request-Type=AUTHORIZE_ONLY |
| (some AVPs from first session) | |
|------------------------------->| |
| | |
| AA-Answer | |
| Result-Code=DIAMETER_SUCCESS | |
| (authorization AVPs) | |
|<-------------------------------| |
The NASREQ application is used here for authorization because the
realm-specific routing table supports routing based on application,
not on Diameter commands.
<span class="grey">Eronen, et al. Standards Track [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
<span class="h4"><a class="selflink" id="section-2.3.4" href="#section-2.3.4">2.3.4</a>. Scenario 4: Proxy Agents</span>
This scenario is the same as Scenario 1, but the NAS contacts the
home server through proxies. Note that the proxies can see the EAP
session keys, thus it is not suitable for environments where proxies
cannot be trusted.
NAS Local proxy/relay agent Home server
| | |
| Diameter-EAP-Request | |
| Auth-Request-Type=AUTHORIZE_AUTHENTICATE |
| EAP-Payload(EAP Start) | |
|------------------------------->|------------------------------->|
| | |
| | Diameter-EAP-Answer |
| Result-Code=DIAMETER_MULTI_ROUND_AUTH |
| | EAP-Payload(EAP Request) |
|<-------------------------------|<-------------------------------|
| : |
: ...more EAP Request/Response pairs... :
| : |
| Diameter-EAP-Request | |
| EAP-Payload(EAP Response) | |
|------------------------------->|------------------------------->|
| | |
| | Diameter-EAP-Answer |
| | Result-Code=DIAMETER_SUCCESS |
| | EAP-Payload(EAP Success) |
| | EAP-Master-Session-Key |
| | (authorization AVPs) |
|<-------------------------------|<-------------------------------|
<span class="h3"><a class="selflink" id="section-2.4" href="#section-2.4">2.4</a>. Invalid Packets</span>
While acting as a pass-through, the NAS MUST validate the EAP header
fields (Code, Identifier, Length) prior to forwarding an EAP packet
to or from the Diameter server. On receiving an EAP packet from the
peer, the NAS checks the Code (Code 2=Response) and Length fields,
and matches the Identifier value against the current Identifier,
supplied by the Diameter server in the most recently validated EAP
Request. On receiving an EAP packet from the Diameter server
(encapsulated within a Diameter-EAP-Answer), the NAS checks the Code
(Code 1=Request) and Length fields, then updates the current
Identifier value. Pending EAP Responses that do not match the
current Identifier value are silently discarded by the NAS.
<span class="grey">Eronen, et al. Standards Track [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
Since EAP method fields (Type, Type-Data) are typically not validated
by a NAS operating as a pass-through, despite these checks it is
possible for a NAS to forward an invalid EAP packet to or from the
Diameter server.
A Diameter server receiving an EAP-Payload AVP that it does not
understand SHOULD determine whether the error is fatal or non-fatal
based on the EAP Type. A Diameter server determining that a fatal
error has occurred MUST send a Diameter-EAP-Answer with a failure
Result-Code and an EAP-Payload AVP encapsulating an EAP Failure
packet. A Diameter server determining that a non-fatal error has
occurred MUST send a Diameter-EAP-Answer with
DIAMETER_MULTI_ROUND_AUTH Result-Code, but no EAP-Payload AVP. To
simplify RADIUS translation, this message MUST also include an
EAP-Reissued-Payload AVP encapsulating the previous EAP Request sent
by the server.
When receiving a Diameter-EAP-Answer without an EAP-Payload AVP (and
DIAMETER_MULTI_ROUND_AUTH Result-Code), the NAS SHOULD discard the
EAP-Response packet most recently transmitted to the Diameter server
and check whether additional EAP Response packets that match the
current Identifier value have been received. If so, a new EAP
Response packet, if available, MUST be sent to the Diameter server
within an Diameter-EAP-Request. If no EAP Response packet is
available, then the previous EAP Request is resent to the peer, and
the retransmission timer is reset.
In order to provide protection against Denial of Service (DoS)
attacks, it is advisable for the NAS to allocate a finite buffer for
EAP packets received from the peer, and to discard packets according
to an appropriate policy once that buffer has been exceeded. Also,
the Diameter server is advised to permit only a modest number of
invalid EAP packets within a single session, prior to terminating the
session with DIAMETER_AUTHENTICATION_REJECTED Result-Code. By
default, a value of 5 invalid EAP packets is recommended.
<span class="h3"><a class="selflink" id="section-2.5" href="#section-2.5">2.5</a>. Retransmission</span>
As noted in [<a href="#ref-EAP" title=""Extensible Authentication Protocol (EAP)"">EAP</a>], if an EAP packet is lost in transit between the
authenticating peer and the NAS (or vice versa), the NAS will
retransmit.
It may be necessary to adjust retransmission strategies and
authentication time-outs in certain cases. For example, when a token
card is used, additional time may be required to allow the user to
find the card and enter the token. Since the NAS will typically not
have knowledge of the required parameters, these need to be provided
by the Diameter server.
<span class="grey">Eronen, et al. Standards Track [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
If a Multi-Round-Time-Out AVP [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] is present in a Diameter-EAP-
Answer message that also contains an EAP-Payload AVP, that value is
used to set the EAP retransmission timer for that EAP Request and
that Request alone.
<span class="h3"><a class="selflink" id="section-2.6" href="#section-2.6">2.6</a>. Fragmentation</span>
Using the EAP-Payload AVP, it is possible for the Diameter server to
encapsulate an EAP packet that is larger than the MTU on the link
between the NAS and the peer. Since it is not possible for the
Diameter server to use MTU discovery to ascertain the link MTU, a
Framed-MTU AVP may be included in a Diameter-EAP-Request message in
order to provide the Diameter server with this information.
A Diameter server having received a Framed-MTU AVP in a
Diameter-EAP-Request message MUST NOT send any subsequent packet in
this EAP conversation containing EAP-Payload AVP whose length exceeds
that specified by the Framed-MTU value, taking the link type
(specified by the NAS-Port-Type AVP) into account. For example, as
noted in <a href="./rfc3580#section-3.10">[RFC3580] Section 3.10</a>, for a NAS-Port-Type value of IEEE
802.11, the RADIUS server may send an EAP packet as large as
Framed-MTU minus four (4) octets, taking into account the additional
overhead for the IEEE 802.1X Version (1 octet), Type (1 octet) and
Body Length (2 octets) fields.
<span class="h3"><a class="selflink" id="section-2.7" href="#section-2.7">2.7</a>. Accounting</span>
When a user is authenticated using EAP, the NAS MAY include an
Accounting-Auth-Method AVP [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] with value 5 (EAP) in
Accounting-Request messages. This document specifies one additional
AVP for accounting messages. One or more Accounting-EAP-Auth-Method
AVPs (see <a href="#section-4.1.5">Section 4.1.5</a>) MAY be included in Accounting-Request
messages to indicate the EAP method(s) used to authenticate the user.
If the NAS has authenticated the user with a locally implemented EAP
method, it knows the method used and SHOULD include it in an
Accounting-EAP-Auth-Method AVP.
If the authentication was done using Diameter-EAP-Request/Answer
messages, the Diameter server SHOULD include one or more
Accounting-EAP-Auth-Method AVPs in Diameter-EAP-Answer packets with a
successful result code. In this case, the NAS SHOULD include these
AVPs in Accounting-Request messages.
<span class="grey">Eronen, et al. Standards Track [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
<span class="h3"><a class="selflink" id="section-2.8" href="#section-2.8">2.8</a>. Usage Guidelines</span>
<span class="h4"><a class="selflink" id="section-2.8.1" href="#section-2.8.1">2.8.1</a>. User-Name AVP</span>
Unless the access device interprets the EAP-Response/Identity packet
returned by the authenticating peer, it will not have access to the
user's identity. Furthermore, some EAP methods support identity
protection where the user's real identity is not included in
EAP-Response/Identity. Therefore, the Diameter Server SHOULD return
the user's identity by inserting a User-Name AVP to
Diameter-EAP-Answer messages that have a Result-Code of
DIAMETER_SUCCESS. A separate billing identifier or pseudonym MAY be
used for privacy reasons (see <a href="#section-8.5">Section 8.5</a>). If the user's identity
is not available to the NAS, the Session-Id AVP MAY be used for
accounting and billing; however operationally this could be very
difficult to manage.
<span class="h4"><a class="selflink" id="section-2.8.2" href="#section-2.8.2">2.8.2</a>. Conflicting AVPs</span>
A Diameter-EAP-Answer message containing an EAP-Payload of type
EAP-Success or EAP-Failure MUST NOT have the Result-Code AVP set to
DIAMETER_MULTI_ROUND_AUTH.
Some lower layers assume that the authorization decision is made by
the EAP server, and thus the peer considers EAP Success as an
indication that access was granted. In this case, the Result-Code
SHOULD match the contained EAP packet: a successful Result-Code for
EAP-Success, and a failure Result-Code for EAP-Failure. If the
encapsulated EAP packet does not match the result implied by the
Result-Code AVP, the combination is likely to cause confusion,
because the NAS and peer will conclude the outcome of the
authentication differently. For example, if the NAS receives a
failure Result-Code with an encapsulated EAP Success, it will not
grant access to the peer. However, on receiving the EAP Success, the
peer will be led to believe that access was granted.
This situation can be difficult to avoid when Diameter proxy agents
make authorization decisions (that is, proxies can change the
Result-Code AVP sent by the home server). Because it is the
responsibility of the Diameter server to avoid conflicts, the NAS
MUST NOT "manufacture" EAP result packets in order to correct the
contradictory messages that it receives. This behavior, originally
mandated within [<a href="#ref-IEEE-802.1X" title=""Local and Metropolitan Area Networks: Port-Based Network Access Control"">IEEE-802.1X</a>], is now deprecated.
<span class="grey">Eronen, et al. Standards Track [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
<span class="h4"><a class="selflink" id="section-2.8.3" href="#section-2.8.3">2.8.3</a>. Displayable Messages</span>
The Reply-Message AVP [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] MUST NOT be included in any Diameter
message containing an EAP-Payload AVP.
<span class="h4"><a class="selflink" id="section-2.8.4" href="#section-2.8.4">2.8.4</a>. Role Reversal</span>
Some environments in which EAP is used, such as PPP, support
peer-to-peer operation. Both parties act as authenticators and
authenticatees at the same time, in two simultaneous and independent
EAP conversations.
This specification is intended for communication between EAP
(passthrough) authenticator and backend authentication server. A
Diameter client MUST NOT send a Diameter-EAP-Request encapsulating an
EAP Request packet, and a Diameter server receiving such a packet
MUST respond with a failure Result-Code.
<span class="h4"><a class="selflink" id="section-2.8.5" href="#section-2.8.5">2.8.5</a>. Identifier Space</span>
In EAP, each session has its own unique Identifier space. Diameter
server implementations MUST be able to distinguish between EAP
packets with the same Identifier existing within distinct EAP
sessions and originating on the same NAS. This is done by using the
Session-Id AVP.
If a Diameter NAS is in the middle of a multi-round authentication
exchange, and it detects that the EAP session between the client and
the NAS has been terminated, it MUST select a new Diameter Session-Id
for any subsequent EAP sessions. This is necessary in order to
distinguish a restarted EAP authentication process from the
continuation of an ongoing process (by the same user on the same NAS
and port).
In RADIUS, the same functionality can be achieved through the
inclusion or omission of the State attribute. Translation rules in
[<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] ensure that an Access-Request without the State attribute
maps to a new Diameter Session-Id AVP value. Furthermore, a
translation agent will always include a State attribute in
Access-Challenge messages, making sure that the State attribute is
available for a RADIUS NAS.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Command-Codes</span>
This section defines new Command-Code values that MUST be supported
by all Diameter implementations conforming to this specification.
The following commands are defined in this section:
<span class="grey">Eronen, et al. Standards Track [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
Command-Name Abbrev. Code Reference
--------------------------------------------------------
Diameter-EAP-Request DER 268 3.1
Diameter-EAP-Answer DEA 268 3.2
When the NASREQ AA-Request (AAR) or AA-Answer (AAA) commands are used
for AUTHORIZE_ONLY messages in conjunction with EAP (see
<a href="#section-2.3.3">Section 2.3.3</a>), an Application Identifier value of 1 (NASREQ) is
used, and the commands follow the rules and ABNF defined in [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>].
When the Re-Auth-Request (RAR), Re-Auth-Answer (RAA),
Session-Termination-Request (STR), Session-Termination-Answer (STA),
Abort-Session-Request (ASR), Abort-Session-Answer (ASA),
Accounting-Request (ACR), and Accounting-Answer (ACA) commands are
used together with the Diameter EAP application, they follow the
rules in [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] and [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>]. The accounting commands use
Application Identifier value of 3 (Diameter Base Accounting); the
others use 0 (Diameter Common Messages).
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. Diameter-EAP-Request (DER) Command</span>
The Diameter-EAP-Request (DER) command, indicated by the Command-Code
field set to 268 and the 'R' bit set in the Command Flags field, is
sent by a Diameter client to a Diameter server, and conveys an
EAP-Response from the EAP client. The Diameter-EAP-Request MUST
contain one EAP-Payload AVP containing the actual EAP payload. An
EAP-Payload AVP with no data MAY be sent to the Diameter server to
initiate an EAP authentication session.
The DER message MAY be the result of a multi-round authentication
exchange that occurs when the DEA is received with the Result-Code
AVP set to DIAMETER_MULTI_ROUND_AUTH [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>]. A subsequent DER
message MUST include any State AVPs [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] that were present in the
DEA. For re-authentication, it is recommended that the Identity
request be skipped in order to reduce the number of authentication
round trips. This is only possible when the user's identity is
already known by the home Diameter server.
Message format
<Diameter-EAP-Request> ::= < Diameter Header: 268, REQ, PXY >
< Session-Id >
{ Auth-Application-Id }
{ Origin-Host }
{ Origin-Realm }
{ Destination-Realm }
{ Auth-Request-Type }
[ Destination-Host ]
<span class="grey">Eronen, et al. Standards Track [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
[ NAS-Identifier ]
[ NAS-IP-Address ]
[ NAS-IPv6-Address ]
[ NAS-Port ]
[ NAS-Port-Id ]
[ NAS-Port-Type ]
[ Origin-State-Id ]
[ Port-Limit ]
[ User-Name ]
{ EAP-Payload }
[ EAP-Key-Name ]
[ Service-Type ]
[ State ]
[ Authorization-Lifetime ]
[ Auth-Grace-Period ]
[ Auth-Session-State ]
[ Callback-Number ]
[ Called-Station-Id ]
[ Calling-Station-Id ]
[ Originating-Line-Info ]
[ Connect-Info ]
* [ Framed-Compression ]
[ Framed-Interface-Id ]
[ Framed-IP-Address ]
* [ Framed-IPv6-Prefix ]
[ Framed-IP-Netmask ]
[ Framed-MTU ]
[ Framed-Protocol ]
* [ Tunneling ]
* [ Proxy-Info ]
* [ Route-Record ]
* [ AVP ]
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>. Diameter-EAP-Answer (DEA) Command</span>
The Diameter-EAP-Answer (DEA) message, indicated by the Command-Code
field set to 268 and the 'R' bit cleared in the Command Flags field,
is sent by the Diameter server to the client for one of the following
reasons:
1. The message is part of a multi-round authentication exchange, and
the server is expecting a subsequent Diameter-EAP-Request. This
is indicated by setting the Result-Code to
DIAMETER_MULTI_ROUND_AUTH, and MAY include zero or more State
AVPs.
<span class="grey">Eronen, et al. Standards Track [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
2. The EAP client has been successfully authenticated and
authorized, in which case the message MUST include the
Result-Code AVP indicating success, and SHOULD include an
EAP-Payload of type EAP-Success. This event MUST cause the
access device to provide service to the EAP client.
3. The EAP client has not been successfully authenticated and/or
authorized, and the Result-Code AVP is set to indicate failure.
This message SHOULD include an EAP-Payload, but this AVP is not
used to determine whether service is to be provided.
If the message from the Diameter client included a request for
authorization, a successful response MUST include the authorization
AVPs that are relevant to the service being provided.
Message format
<Diameter-EAP-Answer> ::= < Diameter Header: 268, PXY >
< Session-Id >
{ Auth-Application-Id }
{ Auth-Request-Type }
{ Result-Code }
{ Origin-Host }
{ Origin-Realm }
[ User-Name ]
[ EAP-Payload ]
[ EAP-Reissued-Payload ]
[ EAP-Master-Session-Key ]
[ EAP-Key-Name ]
[ Multi-Round-Time-Out ]
[ Accounting-EAP-Auth-Method ]
[ Service-Type ]
* [ Class ]
* [ 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 ]
[ Session-Timeout ]
[ State ]
* [ Reply-Message ]
[ Origin-State-Id ]
* [ Filter-Id ]
<span class="grey">Eronen, et al. Standards Track [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
[ Port-Limit ]
[ 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 ]
* [ NAS-Filter-Rule ]
* [ QoS-Filter-Rule ]
* [ Tunneling ]
* [ Redirect-Host ]
[ Redirect-Host-Usage ]
[ Redirect-Max-Cache-Time ]
* [ Proxy-Info ]
* [ AVP ]
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Attribute-Value Pairs</span>
This section both defines new AVPs, unique to the EAP Diameter
application and describes the usage of AVPs defined elsewhere (if
that usage in the EAP application is noteworthy).
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. New AVPs</span>
<span class="h4"><a class="selflink" id="section-4.1.1" href="#section-4.1.1">4.1.1</a>. EAP-Payload AVP</span>
The EAP-Payload AVP (AVP Code 462) is of type OctetString and is used
to encapsulate the actual EAP packet that is being exchanged between
the EAP client and the home Diameter server.
<span class="h4"><a class="selflink" id="section-4.1.2" href="#section-4.1.2">4.1.2</a>. EAP-Reissued-Payload AVP</span>
The EAP-Reissued-Payload AVP (AVP Code 463) is of type OctetString.
The use of this AVP is described in <a href="#section-2.4">Section 2.4</a>.
<span class="grey">Eronen, et al. Standards Track [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
<span class="h4"><a class="selflink" id="section-4.1.3" href="#section-4.1.3">4.1.3</a>. EAP-Master-Session-Key AVP</span>
The EAP-Master-Session-Key AVP (AVP Code 464) is of type OctetString.
It contains keying material for protecting the communications between
the user and the NAS. Exactly how this keying material is used
depends on the link layer in question, and is beyond the scope of
this document.
<span class="h4"><a class="selflink" id="section-4.1.4" href="#section-4.1.4">4.1.4</a>. EAP-Key-Name AVP</span>
The EAP-Key-Name AVP (Radius Attribute Type 102) is of type
OctetString. It contains an opaque key identifier (name) generated
by the EAP method. Exactly how this name is used depends on the link
layer in question, and is beyond the scope of this document (see
[<a href="#ref-EAPKey" title=""Extensible Authentication Protocol (EAP) Key Management Framework"">EAPKey</a>] for more discussion).
Note that not all link layers use this name, and currently most EAP
methods do not generate it. Since the NAS operates in pass-through
mode, it cannot know the Key-Name before receiving it from the AAA
server. As a result, a Key-Name AVP sent in a Diameter-EAP-Request
MUST NOT contain any data. A home Diameter server receiving a
Diameter-EAP-Request with a Key-Name AVP with non-empty data MUST
silently discard the AVP. In addition, the home Diameter server
SHOULD include this AVP in Diameter-EAP-Response only if an empty
EAP-Key-Name AVP was present in Diameter-EAP-Request.
<span class="h4"><a class="selflink" id="section-4.1.5" href="#section-4.1.5">4.1.5</a>. Accounting-EAP-Auth-Method AVP</span>
The Accounting-EAP-Auth-Method AVP (AVP Code 465) is of type
Unsigned64. In case of expanded types [EAP, <a href="#section-5.7">Section 5.7</a>], this AVP
contains the value ((Vendor-Id * 2^32) + Vendor-Type).
The use of this AVP is described in <a href="#section-2.7">Section 2.7</a>.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. AVP Occurrence Tables</span>
The following tables use these 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
0-1 Zero or one instance of the AVP MAY be present in the message
1 One instance of the AVP MUST be present in the message
Note that AVPs that can only be present within a Grouped AVP are not
represented in these tables.
<span class="grey">Eronen, et al. Standards Track [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. EAP Command AVP Table</span>
The following table lists the AVPs that may be present in the DER and
DEA Commands, as defined in this document; the AVPs listed are
defined both here and in [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>].
+---------------+
| Command-Code |
|-------+-------+
Attribute Name | DER | DEA |
------------------------------------|-------+-------|
Accounting-EAP-Auth-Method | 0 | 0+ |
Acct-Interim-Interval [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 0 | 0-1 |
Auth-Application-Id [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 1 | 1 |
Auth-Grace-Period [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 0-1 | 0-1 |
Auth-Request-Type [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 1 | 1 |
Auth-Session-State [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 0-1 | 0-1 |
Authorization-Lifetime [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 0-1 | 0-1 |
Callback-Id [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0 | 0-1 |
Callback-Number [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0-1 | 0-1 |
Called-Station-Id [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0-1 | 0 |
Calling-Station-Id [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0-1 | 0 |
Class [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 0 | 0+ |
Configuration-Token [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0 | 0+ |
Connect-Info [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0-1 | 0 |
Destination-Host [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 0-1 | 0 |
Destination-Realm [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 1 | 0 |
EAP-Master-Session-Key | 0 | 0-1 |
EAP-Key-Name | 0-1 | 0-1 |
EAP-Payload | 1 | 0-1 |
EAP-Reissued-Payload | 0 | 0-1 |
Error-Message [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 0 | 0-1 |
Error-Reporting-Host [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 0 | 0-1 |
Failed-AVP [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 0 | 0+ |
Filter-Id [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0 | 0+ |
Framed-Appletalk-Link [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0 | 0-1 |
Framed-Appletalk-Network [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0 | 0+ |
Framed-Appletalk-Zone [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0 | 0-1 |
Framed-Compression [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0+ | 0+ |
Framed-Interface-Id [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0-1 | 0-1 |
Framed-IP-Address [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0-1 | 0-1 |
Framed-IP-Netmask [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0-1 | 0-1 |
Framed-IPv6-Prefix [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0+ | 0+ |
Framed-IPv6-Pool [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0 | 0-1 |
Framed-IPv6-Route [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0 | 0+ |
Framed-IPX-Network [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0 | 0-1 |
Framed-MTU [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0-1 | 0-1 |
Framed-Pool [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0 | 0-1 |
<span class="grey">Eronen, et al. Standards Track [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
Framed-Protocol [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0-1 | 0-1 |
Framed-Route [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0 | 0+ |
Framed-Routing [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0 | 0-1 |
Idle-Timeout [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0 | 0-1 |
Multi-Round-Time-Out [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 0 | 0-1 |
NAS-Filter-Rule [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0 | 0+ |
NAS-Identifier [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0-1 | 0 |
NAS-IP-Address [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0-1 | 0 |
NAS-IPv6-Address [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0-1 | 0 |
NAS-Port [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0-1 | 0 |
NAS-Port-Id [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0-1 | 0 |
NAS-Port-Type [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0-1 | 0 |
Originating-Line-Info [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0-1 | 0 |
Origin-Host [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 1 | 1 |
Origin-Realm [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 1 | 1 |
Origin-State-Id [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 0-1 | 0-1 |
Port-Limit [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0-1 | 0-1 |
Proxy-Info [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 0+ | 0+ |
QoS-Filter-Rule [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0 | 0+ |
Re-Auth-Request-Type [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 0 | 0-1 |
Redirect-Host [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 0 | 0+ |
Redirect-Host-Usage [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 0 | 0-1 |
Redirect-Max-Cache-Time [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 0 | 0-1 |
Reply-Message [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0 | 0+ |
Result-Code [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 0 | 1 |
Route-Record [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 0+ | 0+ |
Service-Type [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0-1 | 0-1 |
Session-Id [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 1 | 1 |
Session-Timeout [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 0 | 0-1 |
State [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0-1 | 0-1 |
Tunneling [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] | 0+ | 0+ |
User-Name [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] | 0-1 | 0-1 |
<span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a>. Accounting AVP Table</span>
The table in this section is used to represent which AVPs defined in
this document are to be present in the Accounting messages, as
defined in [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>].
+-----------+
| Command |
| Code |
|-----+-----+
Attribute Name | ACR | ACA |
---------------------------------------|-----+-----+
Accounting-EAP-Auth-Method | 0+ | 0 |
<span class="grey">Eronen, et al. Standards Track [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. RADIUS/Diameter Interactions</span>
Section 9 of [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] describes basic guidelines for translation
agents that translate between RADIUS and Diameter protocols. These
guidelines SHOULD be followed for Diameter EAP application as well,
with some additional guidelines given in this section. Note that
this document does not restrict implementations from creating
additional methods, as long as the translation function does not
violate the RADIUS or the Diameter protocols.
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. RADIUS Request Forwarded as Diameter Request</span>
RADIUS Access-Request to Diameter-EAP-Request:
o RADIUS EAP-Message attribute(s) are translated to a Diameter
EAP-Payload AVP. If multiple RADIUS EAP-Message attributes are
present, they are concatenated and translated to a single Diameter
EAP-Payload AVP.
o An empty RADIUS EAP-Message attribute (with length 2) signifies
EAP-Start, and it is translated to an empty EAP-Payload AVP.
Diameter-EAP-Answer to RADIUS Access-Accept/Reject/Challenge:
o Diameter EAP-Payload AVP is translated to RADIUS EAP-Message
attribute(s). If necessary, the value is split into multiple
RADIUS EAP-Message attributes.
o Diameter EAP-Reissued-Payload AVP is translated to a message that
contains RADIUS EAP-Message attribute(s), and a RADIUS Error-Cause
attribute [<a href="./rfc3576" title=""Dynamic Authorization Extensions to Remote Authentication Dial In User Service (RADIUS)"">RFC3576</a>] with value 202 (decimal), "Invalid EAP Packet
(Ignored)" [<a href="./rfc3579" title=""RADIUS (Remote Authentication Dial In User Service) Support For Extensible Authentication Protocol (EAP)"">RFC3579</a>].
o As described in [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>], if the Result-Code AVP set to
DIAMETER_MULTI_ROUND_AUTH and the Multi-Round-Time-Out AVP is
present, it is translated to the RADIUS Session-Timeout attribute.
o Diameter EAP-Master-Session-Key AVP can be translated to the
vendor-specific RADIUS MS-MPPE-Recv-Key and MS-MPPE-Send-Key
attributes [<a href="./rfc2548" title=""Microsoft Vendor-specific RADIUS Attributes"">RFC2548</a>]. The first up to 32 octets of the key is
stored into MS-MPPE-Recv-Key, and the next up to 32 octets (if
present) are stored into MS-MPPE-Send-Key. The encryption of this
attribute is described in [<a href="./rfc2548" title=""Microsoft Vendor-specific RADIUS Attributes"">RFC2548</a>].
o Diameter Accounting-EAP-Auth-Method AVPs, if present, are
discarded.
<span class="grey">Eronen, et al. Standards Track [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. Diameter Request Forwarded as RADIUS Request</span>
Diameter-EAP-Request to RADIUS Access-Request:
o The Diameter EAP-Payload AVP is translated to RADIUS EAP-Message
attribute(s).
o An empty Diameter EAP-Payload AVP signifies EAP-Start, and is
translated to an empty RADIUS EAP-Message attribute.
o The type (or expanded type) field from the EAP-Payload AVP can be
saved either in a local state table, or encoded in a RADIUS
Proxy-State attribute. This information is needed to construct an
Accounting-EAP-Auth-Method AVP for the answer message (see below).
RADIUS Access-Accept/Reject/Challenge to Diameter-EAP-Answer:
o If the RADIUS Access-Challenge message does not contain an
Error-Cause attribute [<a href="./rfc3576" title=""Dynamic Authorization Extensions to Remote Authentication Dial In User Service (RADIUS)"">RFC3576</a>] with value 202 (decimal), "Invalid
EAP Packet (Ignored)" [<a href="./rfc3579" title=""RADIUS (Remote Authentication Dial In User Service) Support For Extensible Authentication Protocol (EAP)"">RFC3579</a>], any RADIUS EAP-Message attributes
are translated to a Diameter EAP-Payload AVP, concatenating them
if multiple attributes are present.
o If the Error-Cause attribute with value 202 is present, any RADIUS
EAP-Message attributes are translated to a Diameter
EAP-Reissued-Payload AVP, concatenating them if multiple
attributes are present.
o As described in [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>], if the Session-Timeout attribute is
present in a RADIUS Access-Challenge message, it is translated to
the Diameter Multi-Round-Time-Out AVP.
o If the vendor-specific RADIUS MS-MPPE-Recv-Key and/or
MS-MPPE-Send-Key attributes [<a href="./rfc2548" title=""Microsoft Vendor-specific RADIUS Attributes"">RFC2548</a>] are present, they can be
translated to a Diameter EAP-Master-Session-Key AVP. The
attributes have to be decrypted before conversion, and the Salt,
Key-Length and Padding sub-fields are discarded. The Key
sub-fields are concatenated (MS-MPPE-Recv-Key first,
MS-MPPE-Send-Key next), and the concatenated value is stored into
a Diameter EAP-Master-Session-Key AVP.
o If the Diameter-EAP-Answer will have a successful result code, the
saved state (see above) can be used to construct an
Accounting-EAP-Auth-Method AVP.
<span class="grey">Eronen, et al. Standards Track [Page 23]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-24" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
<span class="h3"><a class="selflink" id="section-6.3" href="#section-6.3">6.3</a>. Accounting Requests</span>
In Accounting-Requests, the vendor-specific RADIUS MS-Acct-EAP-Type
attribute [<a href="./rfc2548" title=""Microsoft Vendor-specific RADIUS Attributes"">RFC2548</a>] can be translated to a Diameter
Accounting-EAP-Auth-Method AVP, and vice versa.
When translating from Diameter to RADIUS, note that the
MS-Acct-EAP-Type attribute does not support expanded EAP types. Type
values greater than 255 should be translated to type 254.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. IANA Considerations</span>
This document does not create any new namespaces to be maintained by
IANA, but it requires new values in namespaces that have been defined
in the Diameter Base protocol and RADIUS specifications.
o This document defines one new Diameter command (in <a href="#section-3">Section 3</a>)
whose Command Code is allocated from the Command Code namespace
defined in [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>]. The Command Code for DER / DEA is 268.
o This document defines four new AVPs whose AVP Codes are allocated
from the AVP Code namespace defined in [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] as follows:
462 for EAP-Payload (defined in <a href="#section-4.1.1">Section 4.1.1</a>),
463 for EAP-Reissued-Payload (defined in <a href="#section-4.1.2">Section 4.1.2</a>),
464 for EAP-Master-Session-Key (defined in <a href="#section-4.1.3">Section 4.1.3</a>), and
465 for Accounting-EAP-Auth-Method (defined in <a href="#section-4.1.5">Section 4.1.5</a>).
o This document defines one new AVP (attribute) whose AVP Code
(Attribute Type) is to be allocated from the Attribute Type
namespace defined in [<a href="./rfc2865" title=""Remote Authentication Dial In User Service (RADIUS)"">RFC2865</a>] and [<a href="./rfc3575" title=""IANA Considerations for RADIUS (Remote Authentication Dial In User Service)"">RFC3575</a>]. The Radius
Attribute Type for EAP-Key-Name (defined in <a href="#section-4.1.4">Section 4.1.4</a>) is 102.
o This document defines one new Diameter application (in
<a href="#section-2.1">Section 2.1</a>) whose Application ID is to be allocated from the
Application Identifier namespace defined in [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>]. The
Application ID for Diameter EAP is 5.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Security Considerations</span>
<span class="h3"><a class="selflink" id="section-8.1" href="#section-8.1">8.1</a>. Overview</span>
Diameter peer-to-peer connections can be protected with IPsec or TLS.
These mechanisms are believed to provide sufficient protection under
the normal Internet threat model, that is, assuming the authorized
nodes engaging in the protocol have not been compromised, but the
attacker has complete control over the communication channels between
them. This includes eavesdropping, message modification, insertion,
<span class="grey">Eronen, et al. Standards Track [Page 24]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-25" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
man-in-the-middle and replay attacks. The details and related
security considerations are discussed in [<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>].
In addition to authentication provided by IPsec or TLS, authorization
is also required. Here, authorization means determining if a
Diameter message received from an authenticated Diameter peer should
be accepted (and not authorization of users requesting network access
from a NAS). In other words, when a Diameter server receives a
Diameter-EAP-Request, it has to decide if the client is authorized to
act as a NAS for the specific user, service type, and so on.
Correspondingly, when a NAS contacts a server to send a
Diameter-EAP-Request, it has to determine whether the server is
authorized to act as home server for the realm in question.
Authorization can involve local Access Control Lists (ACLs),
information contained in certificates, or some other means. See
[<a href="#ref-BASE" title=""Diameter Base Protocol"">BASE</a>] for more discussion and related security considerations. Note
that authorization issues are particularly relevant when Diameter
redirects are used. While redirection reduces the number of nodes
which have access to the contents of Diameter messages, a compromised
Diameter agent may not supply the right home server's address. If
the Diameter client is unable to tell whether this particular server
is authorized to act as the home server for this particular user, the
security of the communications rests on the redirect agent.
The hop-by-hop security mechanisms (IPsec and TLS) combined with
proper authorization provide good protection against "outside"
attackers, except for denial-of-service attacks. The remaining part
of this section deals with attacks by nodes that have been properly
authorized (to function as a NAS, Diameter agent, or Diameter
server), but abuse their authorization or have been compromised. In
general, it is not possible to completely protect against attacks by
compromised nodes, but this section offers advice on limiting the
extent of the damage.
Attacks involving eavesdropping or modification of EAP messages are
beyond the scope of these document. See [<a href="#ref-EAP" title=""Extensible Authentication Protocol (EAP)"">EAP</a>] for discussion of
these security considerations (including method negotiation,
dictionary attacks, and privacy issues). While these attacks can be
carried out by an attacker between the client and the NAS,
compromised NASes and Diameter agents are naturally also in a good
position to modify and eavesdrop on the EAP messages.
Similarly, attacks involving the link layer protocol used between the
client and the NAS, such as PPP or IEEE 802.11, are beyond the scope
of this document.
<span class="grey">Eronen, et al. Standards Track [Page 25]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-26" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
<span class="h3"><a class="selflink" id="section-8.2" href="#section-8.2">8.2</a>. AVP Editing</span>
Diameter agents can modify, insert, and delete AVPs. Diameter agents
are usually meant to modify AVPs, and the protocol cannot distinguish
well-intentioned and malicious modifications (see [<a href="./rfc2607" title=""Proxy Chaining and Policy Implementation in Roaming"">RFC2607</a>] for more
discussion). Similarly, a compromised NAS or server can naturally
include a different set of AVPs than expected.
Therefore, the question is what an attacker who compromises an
authorized NAS, agent, or server can do using Diameter EAP messages.
Some of the consequences are rather obvious. For instance, a
Diameter agent can give access to unauthorized users by changing the
Result-Code to DIAMETER_SUCCESS. Other consequences are less obvious
and are discussed below and authentication method negotiation attacks
are discussed in the next section.
By including suitable AVPs in an AA-Answer/Diameter-EAP-Answer
messages, an attacker may be able (depending on implementation and
configuration details) to:
o Give unauthorized users access, or deny access to authorized users
(Result-Code).
o Give an attacker a login session to a host otherwise protected by
firewalls, or redirect an authorized user's login session to a
host controlled by the attacker (Login-Host).
o Route an authorized user's traffic through a host controlled by
the attacker (various tunneling AVPs).
o Redirect an authorized user's DNS requests to a malicious DNS
server (various vendor-specific AVPs).
o Modify routing tables at the NAS and thus redirect packets
destined for someone else (Framed-Route, Framed-Routing).
o Remove packet filters and other restrictions for user (Filter,
Callback, various vendor-specific AVPs).
o Cause the NAS to call some number, possibly an expensive toll
number controlled by the attacker (callback AVPs).
o Execute Command Line Interface (CLI) commands on the NAS (various
vendor-specific attributes).
<span class="grey">Eronen, et al. Standards Track [Page 26]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-27" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
By modifying an AA-Request/Diameter-EAP-Request, an attacker may be
able to:
o Change NAS-Identifier/NAS-Port/Origin-Host (or another attribute)
so that a valid user appears to be accessing the network from a
different NAS than in reality.
o Modify Calling-Station-ID (either to hide the true value, gain
access, or frame someone else).
o Modify password change messages (some vendor-specific attributes).
o Modify usage information in accounting messages.
o Modify contents of Class and State AVPs.
Some of these attacks can be prevented if the NAS or server is
configured to not accept some particular AVPs, or accepts them only
from some nodes.
<span class="h3"><a class="selflink" id="section-8.3" href="#section-8.3">8.3</a>. Negotiation Attacks</span>
This section deals with attacks where the NAS, any Diameter agents,
or Diameter server attempt to cause the authenticating user to choose
some authentication method other than EAP, such as PAP or CHAP
(negotiation attacks within EAP are discussed in [<a href="#ref-EAP" title=""Extensible Authentication Protocol (EAP)"">EAP</a>], Section 7.8).
The vulnerability can be mitigated via implementation of a per-
connection policy by the authenticating peer, and a per-user policy
by the Diameter server. For the authenticating peer, the
authentication policy should be set on a per-connection basis.
With a per-connection policy, an authenticating peer will only
attempt to negotiate EAP for a session in which EAP support is
expected. As a result, it is presumed that an authenticating peer
selecting EAP requires that level of security. If it cannot be
provided, there is likely a misconfiguration, or the authenticating
peer may be contacting the wrong server. In this case, the
authenticating peer simply disconnects.
Similarly, with a per-user policy, the home server will not accept
authentication methods other than EAP for users for which EAP support
is expected.
For a NAS, it may not be possible to determine whether a peer is
required to authenticate with EAP until the peer's identity is known.
For example, for shared-uses NASes one reseller may implement EAP
while another does not. Alternatively, some peer might be
<span class="grey">Eronen, et al. Standards Track [Page 27]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-28" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
authenticated locally by the NAS while other peers are authenticated
via Diameter. In such cases, if any peers of the NAS MUST do EAP,
then the NAS MUST attempt to negotiate EAP for every session. This
avoids forcing a peer to support more than one authentication type,
which could weaken security.
<span class="h3"><a class="selflink" id="section-8.4" href="#section-8.4">8.4</a>. Session Key Distribution</span>
Since there are currently no end-to-end (NAS-to-home server) security
mechanisms specified for Diameter, any agents that process
Diameter-EAP-Answer messages can see the contents of the
EAP-Master-Session-Key AVP. For this reason, this specification
strongly recommends avoiding Diameter agents when they cannot be
trusted to keep the keys secret.
In environments where agents are present, several factors should be
considered when deciding whether the agents that are authorized (and
considered "trustworthy enough") to grant access to users and specify
various authorization and tunneling AVPs are also "trustworthy
enough" to handle the session keys. These factors include (but are
not limited to) the type of access provided (e.g., public Internet or
corporate internet), security level of the agents, and the
possibilities for attacking user's traffic after it has been
decrypted by the NAS.
Note that the keys communicated in Diameter messages are usually
short-term session keys (or short-term master keys that are used to
derive session keys). To actually cause any damage, those session
keys must end up with some malicious party that must be able to
eavesdrop, modify, or insert traffic between the user and the NAS
during the lifetime of those keys (for example, in 802.11i the
attacker must also eavesdrop the "four-way handshake").
<span class="h3"><a class="selflink" id="section-8.5" href="#section-8.5">8.5</a>. Privacy Issues</span>
Diameter messages can contain AVPs that can be used to identify the
user (e.g., User-Name) and approximate location of the user (e.g.,
Origin-Host for WLAN access points, Calling-Station-Id for fixed
phone lines). Thus, any Diameter nodes that process the messages may
be able to determine the geographic location of users.
Note that in many cases, the user identity is also sent in clear
inside EAP-Payload AVPs, and it may be possible to eavesdrop this
between the user and the NAS.
This can be mitigated somewhat by using EAP methods that provide
identity protection (see [<a href="#ref-EAP" title=""Extensible Authentication Protocol (EAP)"">EAP</a>], Section 7.3), and using Session-Id or
pseudonyms for accounting.
<span class="grey">Eronen, et al. Standards Track [Page 28]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-29" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
<span class="h3"><a class="selflink" id="section-8.6" href="#section-8.6">8.6</a>. Note about EAP and Impersonation</span>
If the EAP method used does not provide mutual authentication,
obviously anyone can impersonate the network to the user. Even when
EAP mutual authentication is used, it occurs between the user and the
Diameter home server. See [<a href="#ref-EAPKey" title=""Extensible Authentication Protocol (EAP) Key Management Framework"">EAPKey</a>] for an extensive discussion about
the details and their implications.
One issue is worth pointing out here. As described in [<a href="#ref-EAPKey" title=""Extensible Authentication Protocol (EAP) Key Management Framework"">EAPKey</a>], the
current EAP architecture does not allow the home server to restrict
what service parameters or identities (such as SSID or BSSID in
802.11 wireless LANs) are advertised by the NAS to the client. That
is, a compromised NAS can change its BSSID or SSID, and thus appear
to offer a different service than intended. Even if these parameters
are included in Diameter-EAP-Answer messages, the NAS can tell
different values to the client.
Therefore, the NAS's possession of the session keys proves that the
user is talking to an authorized NAS, but a compromised NAS can lie
about its exact identity. See [<a href="#ref-EAPKey" title=""Extensible Authentication Protocol (EAP) Key Management Framework"">EAPKey</a>] for discussion on how
individual EAP methods can provide authentication of NAS service
parameters and identities.
Note that the usefulness of this authentication may be rather limited
in many environments. For instance, in wireless LANs the user does
not usually securely know the identity (such as BSSID) of the "right"
access point; it is simply picked from a beacon message that has the
correct SSID and good signal strength (something that is easy to
spoof). Thus, simply authenticating the identity may not allow the
user to distinguish the "right" access point from all others.
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Acknowledgements</span>
This Diameter application relies heavily on earlier work on Diameter
NASREQ application [<a href="#ref-NASREQ" title=""Diameter Network Access Server Application"">NASREQ</a>] and RADIUS EAP support [<a href="./rfc3579" title=""RADIUS (Remote Authentication Dial In User Service) Support For Extensible Authentication Protocol (EAP)"">RFC3579</a>]. Much
of the material in this specification has been copied from these
documents.
The authors would also like to acknowledge the following people for
their contributions to this document: Bernard Aboba, Jari Arkko,
Julien Bournelle, Pat Calhoun, Henry Haverinen, John Loughney,
Yoshihiro Ohba, and Joseph Salowey.
<span class="grey">Eronen, et al. Standards Track [Page 29]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-30" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. References</span>
<span class="h3"><a class="selflink" id="section-10.1" href="#section-10.1">10.1</a>. Normative References</span>
[<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-EAP">EAP</a>] Aboba, B., Blunk, L., Vollbrecht, J., Carlson, J., and
H. Levkowetz, "Extensible Authentication Protocol
(EAP)", <a href="./rfc3748">RFC 3748</a>, June 2004.
[<a id="ref-NASREQ">NASREQ</a>] Calhoun, P., Zorn, G., Spence, D., and D. Mitton,
"Diameter Network Access Server Application", <a href="./rfc4005">RFC</a>
<a href="./rfc4005">4005</a>, August 2005.
[<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.
<span class="h3"><a class="selflink" id="section-10.2" href="#section-10.2">10.2</a>. Informative References</span>
[<a id="ref-EAPKey">EAPKey</a>] Aboba, B., Simon, D., Arkko, J., Eronen, P., and H.
Levkowetz, "Extensible Authentication Protocol (EAP)
Key Management Framework", Work in Progress, July
2004.
[<a id="ref-IEEE-802.1X">IEEE-802.1X</a>] Institute of Electrical and Electronics Engineers,
"Local and Metropolitan Area Networks: Port-Based
Network Access Control", IEEE Standard 802.1X,
September 2001.
[<a id="ref-IEEE-802.11i">IEEE-802.11i</a>] Institute of Electrical and Electronics Engineers,
"IEEE Standard for Information technology -
Telecommunications and information exchange between
systems - Local and metropolitan area networks -
Specific requirements - Part 11: Wireless Medium
Access Control (MAC) and Physical Layer (PHY)
Specifications: Amendment 6: Medium Access Control
(MAC) Security Enhancements", IEEE Standard
802.11i-2004, July 2004.
[<a id="ref-IKEv2">IKEv2</a>] Kaufman, C., Ed., "Internet Key Exchange (IKEv2)
Protocol", Work in Progress, June 2004.
[<a id="ref-RFC1661">RFC1661</a>] Simpson, W., "The Point-to-Point Protocol (PPP)",
STD 51, <a href="./rfc1661">RFC 1661</a>, July 1994.
<span class="grey">Eronen, et al. Standards Track [Page 30]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-31" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
[<a id="ref-RFC2548">RFC2548</a>] Zorn, G., "Microsoft Vendor-specific RADIUS
Attributes", <a href="./rfc2548">RFC 2548</a>, March 1999.
[<a id="ref-RFC2607">RFC2607</a>] Aboba, B. and J. Vollbrecht, "Proxy Chaining and
Policy Implementation in Roaming", <a href="./rfc2607">RFC 2607</a>,
June 1999.
[<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 2865</a>, June 2000.
[<a id="ref-RFC3575">RFC3575</a>] Aboba, B., "IANA Considerations for RADIUS (Remote
Authentication Dial In User Service)", <a href="./rfc3575">RFC 3575</a>,
July 2003.
[<a id="ref-RFC3576">RFC3576</a>] Chiba, M., Dommety, G., Eklund, M., Mitton, D., and B.
Aboba, "Dynamic Authorization Extensions to Remote
Authentication Dial In User Service (RADIUS)",
<a href="./rfc3576">RFC 3576</a>, July 2003.
[<a id="ref-RFC3579">RFC3579</a>] Aboba, B. and P. Calhoun, "RADIUS (Remote
Authentication Dial In User Service) Support For
Extensible Authentication Protocol (EAP)", <a href="./rfc3579">RFC 3579</a>,
September 2003.
[<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.
<span class="grey">Eronen, et al. Standards Track [Page 31]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-32" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
Authors' Addresses
Pasi Eronen (editor)
Nokia Research Center
P.O. Box 407
FIN-00045 Nokia Group
Finland
EMail: pasi.eronen@nokia.com
Tom Hiller
Lucent Technologies
1960 Lucent Lane
Naperville, IL 60566
USA
Phone: +1 630 979 7673
EMail: tomhiller@lucent.com
Glen Zorn
Cisco Systems
500 108th Avenue N.E., Suite 500
Bellevue, WA 98004
USA
Phone: +1 425 344 8113
EMail: gwz@cisco.com
<span class="grey">Eronen, et al. Standards Track [Page 32]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-33" ></span>
<span class="grey"><a href="./rfc4072">RFC 4072</a> Diameter EAP Application August 2005</span>
Full Copyright Statement
Copyright (C) The Internet Society (2005).
This document is subject to the rights, licenses and restrictions
contained in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a>, and except as set forth therein, the authors
retain all their rights.
This document and the information contained herein are provided on an
"AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Intellectual Property
The IETF takes no position regarding the validity or scope of any
Intellectual Property Rights or other rights that might be claimed to
pertain to the implementation or use of the technology described in
this document or the extent to which any license under such rights
might or might not be available; nor does it represent that it has
made any independent effort to identify any such rights. Information
on the procedures with respect to rights in RFC documents can be
found in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and <a href="https://www.rfc-editor.org/bcp/bcp79">BCP 79</a>.
Copies of IPR disclosures made to the IETF Secretariat and any
assurances of licenses to be made available, or the result of an
attempt made to obtain a general license or permission for the use of
such proprietary rights by implementers or users of this
specification can be obtained from the IETF on-line IPR repository at
<a href="http://www.ietf.org/ipr">http://www.ietf.org/ipr</a>.
The IETF invites any interested party to bring to its attention any
copyrights, patents or patent applications, or other proprietary
rights that may cover technology that may be required to implement
this standard. Please address the information to the IETF at ietf-
ipr@ietf.org.
Acknowledgement
Funding for the RFC Editor function is currently provided by the
Internet Society.
Eronen, et al. Standards Track [Page 33]
</pre>
|