1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901
|
<pre>Network Working Group D. Harrington
Request for Comments: 5590 Huawei Technologies (USA)
Updates: <a href="./rfc3411">3411</a>, <a href="./rfc3412">3412</a>, <a href="./rfc3414">3414</a>, <a href="./rfc3417">3417</a> J. Schoenwaelder
Category: Standards Track Jacobs University Bremen
June 2009
<span class="h1">Transport Subsystem for the Simple Network Management Protocol (SNMP)</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) 2009 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents in effect on the date of
publication of this document (<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>).
Please review these documents carefully, as they describe your rights
and restrictions with respect to this document.
This document may contain material from IETF Documents or IETF
Contributions published or made publicly available before November
10, 2008. The person(s) controlling the copyright in some of this
material may not have granted the IETF Trust the right to allow
modifications of such material outside the IETF Standards Process.
Without obtaining an adequate license from the person(s) controlling
the copyright in such materials, this document may not be modified
outside the IETF Standards Process, and derivative works of it may
not be created outside the IETF Standards Process, except to format
it for publication as an RFC or to translate it into languages other
than English.
Abstract
This document defines a Transport Subsystem, extending the Simple
Network Management Protocol (SNMP) architecture defined in <a href="./rfc3411">RFC 3411</a>.
This document defines a subsystem to contain Transport Models that is
comparable to other subsystems in the <a href="./rfc3411">RFC 3411</a> architecture. As work
is being done to expand the transports to include secure transports,
such as the Secure Shell (SSH) Protocol and Transport Layer Security
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
(TLS), using a subsystem will enable consistent design and modularity
of such Transport Models. This document identifies and describes
some key aspects that need to be considered for any Transport Model
for SNMP.
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-1.1">1.1</a>. The Internet-Standard Management Framework . . . . . . . . <a href="#page-3">3</a>
<a href="#section-1.2">1.2</a>. Conventions . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-1.3">1.3</a>. Where This Extension Fits . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-2">2</a>. Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-3">3</a>. Requirements of a Transport Model . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-3.1">3.1</a>. Message Security Requirements . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-3.1.1">3.1.1</a>. Security Protocol Requirements . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-3.2">3.2</a>. SNMP Requirements . . . . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-3.2.1">3.2.1</a>. Architectural Modularity Requirements . . . . . . . . <a href="#page-8">8</a>
<a href="#section-3.2.2">3.2.2</a>. Access Control Requirements . . . . . . . . . . . . . <a href="#page-11">11</a>
<a href="#section-3.2.3">3.2.3</a>. Security Parameter Passing Requirements . . . . . . . <a href="#page-12">12</a>
<a href="#section-3.2.4">3.2.4</a>. Separation of Authentication and Authorization . . . . <a href="#page-12">12</a>
<a href="#section-3.3">3.3</a>. Session Requirements . . . . . . . . . . . . . . . . . . . <a href="#page-13">13</a>
<a href="#section-3.3.1">3.3.1</a>. No SNMP Sessions . . . . . . . . . . . . . . . . . . . <a href="#page-13">13</a>
<a href="#section-3.3.2">3.3.2</a>. Session Establishment Requirements . . . . . . . . . . <a href="#page-14">14</a>
<a href="#section-3.3.3">3.3.3</a>. Session Maintenance Requirements . . . . . . . . . . . <a href="#page-15">15</a>
<a href="#section-3.3.4">3.3.4</a>. Message Security versus Session Security . . . . . . . <a href="#page-15">15</a>
<a href="#section-4">4</a>. Scenario Diagrams and the Transport Subsystem . . . . . . . . <a href="#page-16">16</a>
<a href="#section-5">5</a>. Cached Information and References . . . . . . . . . . . . . . <a href="#page-17">17</a>
<a href="#section-5.1">5.1</a>. securityStateReference . . . . . . . . . . . . . . . . . . <a href="#page-17">17</a>
<a href="#section-5.2">5.2</a>. tmStateReference . . . . . . . . . . . . . . . . . . . . . <a href="#page-17">17</a>
<a href="#section-5.2.1">5.2.1</a>. Transport Information . . . . . . . . . . . . . . . . <a href="#page-18">18</a>
<a href="#section-5.2.2">5.2.2</a>. securityName . . . . . . . . . . . . . . . . . . . . . <a href="#page-19">19</a>
<a href="#section-5.2.3">5.2.3</a>. securityLevel . . . . . . . . . . . . . . . . . . . . <a href="#page-20">20</a>
<a href="#section-5.2.4">5.2.4</a>. Session Information . . . . . . . . . . . . . . . . . <a href="#page-20">20</a>
<a href="#section-6">6</a>. Abstract Service Interfaces . . . . . . . . . . . . . . . . . <a href="#page-21">21</a>
<a href="#section-6.1">6.1</a>. sendMessage ASI . . . . . . . . . . . . . . . . . . . . . <a href="#page-21">21</a>
<a href="#section-6.2">6.2</a>. Changes to <a href="./rfc3411">RFC 3411</a> Outgoing ASIs . . . . . . . . . . . . <a href="#page-22">22</a>
<a href="#section-6.2.1">6.2.1</a>. Message Processing Subsystem Primitives . . . . . . . <a href="#page-22">22</a>
<a href="#section-6.2.2">6.2.2</a>. Security Subsystem Primitives . . . . . . . . . . . . <a href="#page-23">23</a>
<a href="#section-6.3">6.3</a>. The receiveMessage ASI . . . . . . . . . . . . . . . . . . <a href="#page-24">24</a>
<a href="#section-6.4">6.4</a>. Changes to <a href="./rfc3411">RFC 3411</a> Incoming ASIs . . . . . . . . . . . . <a href="#page-25">25</a>
<a href="#section-6.4.1">6.4.1</a>. Message Processing Subsystem Primitive . . . . . . . . <a href="#page-25">25</a>
<a href="#section-6.4.2">6.4.2</a>. Security Subsystem Primitive . . . . . . . . . . . . . <a href="#page-26">26</a>
<a href="#section-7">7</a>. Security Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-27">27</a>
<a href="#section-7.1">7.1</a>. Coexistence, Security Parameters, and Access Control . . . <a href="#page-27">27</a>
<a href="#section-8">8</a>. IANA Considerations . . . . . . . . . . . . . . . . . . . . . <a href="#page-29">29</a>
<a href="#section-9">9</a>. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . <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>
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
<a href="#section-10.2">10.2</a>. Informative References . . . . . . . . . . . . . . . . . . <a href="#page-30">30</a>
<a href="#appendix-A">Appendix A</a>. Why tmStateReference? . . . . . . . . . . . . . . . . <a href="#page-32">32</a>
<a href="#appendix-A.1">A.1</a>. Define an Abstract Service Interface . . . . . . . . . . . <a href="#page-32">32</a>
<a href="#appendix-A.2">A.2</a>. Using an Encapsulating Header . . . . . . . . . . . . . . <a href="#page-32">32</a>
<a href="#appendix-A.3">A.3</a>. Modifying Existing Fields in an SNMP Message . . . . . . . <a href="#page-32">32</a>
<a href="#appendix-A.4">A.4</a>. Using a Cache . . . . . . . . . . . . . . . . . . . . . . <a href="#page-33">33</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
This document defines a Transport Subsystem, extending the Simple
Network Management Protocol (SNMP) architecture defined in [<a href="./rfc3411" title=""An Architecture for Describing Simple Network Management Protocol (SNMP) Management Frameworks"">RFC3411</a>].
This document identifies and describes some key aspects that need to
be considered for any Transport Model for SNMP.
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>. The Internet-Standard Management Framework</span>
For a detailed overview of the documents that describe the current
Internet-Standard Management Framework, please refer to <a href="./rfc3410#section-7">Section 7 of
RFC 3410</a> [<a href="./rfc3410" title=""Introduction and Applicability Statements for Internet- Standard Management Framework"">RFC3410</a>].
<span class="h3"><a class="selflink" id="section-1.2" href="#section-1.2">1.2</a>. Conventions</span>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in <a href="./rfc2119">RFC 2119</a> [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
Lowercase versions of the keywords should be read as in normal
English. They will usually, but not always, be used in a context
that relates to compatibility with the <a href="./rfc3411">RFC 3411</a> architecture or the
subsystem defined here but that might have no impact on on-the-wire
compatibility. These terms are used as guidance for designers of
proposed IETF models to make the designs compatible with <a href="./rfc3411">RFC 3411</a>
subsystems and Abstract Service Interfaces (ASIs). Implementers are
free to implement differently. Some usages of these lowercase terms
are simply normal English usage.
For consistency with SNMP-related specifications, this document
favors terminology as defined in STD 62, rather than favoring
terminology that is consistent with non-SNMP specifications that use
different variations of the same terminology. This is consistent
with the IESG decision to not require the SNMPv3 terminology be
modified to match the usage of other non-SNMP specifications when
SNMPv3 was advanced to Full Standard.
This document discusses an extension to the modular <a href="./rfc3411">RFC 3411</a>
architecture; this is not a protocol document. An architectural
"MUST" is a really sharp constraint; to allow for the evolution of
technology and to not unnecessarily constrain future models, often a
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
"SHOULD" or a "should" is more appropriate than a "MUST" in an
architecture. Future models MAY express tighter requirements for
their own model-specific processing.
<span class="h3"><a class="selflink" id="section-1.3" href="#section-1.3">1.3</a>. Where This Extension Fits</span>
It is expected that readers of this document will have read RFCs 3410
and 3411, and have a general understanding of the functionality
defined in RFCs 3412-3418.
The "Transport Subsystem" is an additional component for the SNMP
Engine depicted in <a href="./rfc3411#section-3.1">RFC 3411, Section 3.1</a>.
The following diagram depicts its place in the <a href="./rfc3411">RFC 3411</a> architecture.
+-------------------------------------------------------------------+
| SNMP entity |
| |
| +-------------------------------------------------------------+ |
| | SNMP engine (identified by snmpEngineID) | |
| | | |
| | +------------+ | |
| | | Transport | | |
| | | Subsystem | | |
| | +------------+ | |
| | | |
| | +------------+ +------------+ +-----------+ +-----------+ | |
| | | Dispatcher | | Message | | Security | | Access | | |
| | | | | Processing | | Subsystem | | Control | | |
| | | | | Subsystem | | | | Subsystem | | |
| | +------------+ +------------+ +-----------+ +-----------+ | |
| +-------------------------------------------------------------+ |
| |
| +-------------------------------------------------------------+ |
| | Application(s) | |
| | | |
| | +-------------+ +--------------+ +--------------+ | |
| | | Command | | Notification | | Proxy | | |
| | | Generator | | Receiver | | Forwarder | | |
| | +-------------+ +--------------+ +--------------+ | |
| | | |
| | +-------------+ +--------------+ +--------------+ | |
| | | Command | | Notification | | Other | | |
| | | Responder | | Originator | | | | |
| | +-------------+ +--------------+ +--------------+ | |
| +-------------------------------------------------------------+ |
| |
+-------------------------------------------------------------------+
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
The transport mappings defined in <a href="./rfc3417">RFC 3417</a> do not provide lower-layer
security functionality, and thus do not provide transport-specific
security parameters. This document updates <a href="./rfc3411">RFC 3411</a> and <a href="./rfc3417">RFC 3417</a> by
defining an architectural extension and modifying the ASIs that
transport mappings (hereafter called "Transport Models") can use to
pass transport-specific security parameters to other subsystems,
including transport-specific security parameters that are translated
into the transport-independent securityName and securityLevel
parameters.
The Transport Security Model [<a href="./rfc5591" title=""Transport Security Model for the Simple Network Management Protocol (SNMP)"">RFC5591</a>] and the Secure Shell Transport
Model [<a href="./rfc5592" title=""Secure Shell Transport Model for the Simple Network Management Protocol (SNMP)"">RFC5592</a>] utilize the Transport Subsystem. The Transport
Security Model is an alternative to the existing SNMPv1 Security
Model [<a href="./rfc3584" title=""Coexistence between Version 1, Version 2, and Version 3 of the Internet-standard Network Management Framework"">RFC3584</a>], the SNMPv2c Security Model [<a href="./rfc3584" title=""Coexistence between Version 1, Version 2, and Version 3 of the Internet-standard Network Management Framework"">RFC3584</a>], and the User-
based Security Model [<a href="./rfc3414" title=""User-based Security Model (USM) for version 3 of the Simple Network Management Protocol (SNMPv3)"">RFC3414</a>]. The Secure Shell Transport Model is
an alternative to existing transport mappings as described in
[<a href="./rfc3417" title=""Transport Mappings for the Simple Network Management Protocol (SNMP)"">RFC3417</a>].
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Motivation</span>
Just as there are multiple ways to secure one's home or business, in
a continuum of alternatives, there are multiple ways to secure a
network management protocol. Let's consider three general
approaches.
In the first approach, an individual could sit on his front porch
waiting for intruders. In the second approach, he could hire an
employee, schedule the employee, position the employee to guard what
he wants protected, hire a second guard to cover if the first gets
sick, and so on. In the third approach, he could hire a security
company, tell them what he wants protected, and leave the details to
them. Considerations of hiring and training employees, positioning
and scheduling the guards, arranging for cover, etc., are the
responsibility of the security company. The individual therefore
achieves the desired security, with significantly less effort on his
part except for identifying requirements and verifying the quality of
service being provided.
The User-based Security Model (USM) as defined in [<a href="./rfc3414" title=""User-based Security Model (USM) for version 3 of the Simple Network Management Protocol (SNMPv3)"">RFC3414</a>] largely
uses the first approach -- it provides its own security. It utilizes
existing mechanisms (e.g., SHA), but provides all the coordination.
USM provides for the authentication of a principal, message
encryption, data integrity checking, timeliness checking, etc.
USM was designed to be independent of other existing security
infrastructures. USM therefore uses a separate principal and key
management infrastructure. Operators have reported that deploying
another principal and key management infrastructure in order to use
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
SNMPv3 is a deterrent to deploying SNMPv3. It is possible to use
external mechanisms to handle the distribution of keys for use by
USM. The more important issue is that operators wanted to leverage
existing user management infrastructures that were not specific to
SNMP.
A USM-compliant architecture might combine the authentication
mechanism with an external mechanism, such as RADIUS [<a href="./rfc2865" title=""Remote Authentication Dial In User Service (RADIUS)"">RFC2865</a>], to
provide the authentication service. Similarly, it might be possible
to utilize an external protocol to encrypt a message, to check
timeliness, to check data integrity, etc. However, this corresponds
to the second approach -- requiring the coordination of a number of
differently subcontracted services. Building solid security between
the various services is difficult, and there is a significant
potential for gaps in security.
An alternative approach might be to utilize one or more lower-layer
security mechanisms to provide the message-oriented security services
required. These would include authentication of the sender,
encryption, timeliness checking, and data integrity checking. This
corresponds to the third approach described above. There are a
number of IETF standards available or in development to address these
problems through security layers at the transport layer or
application layer, among them are TLS [<a href="./rfc5246" title=""The Transport Layer Security (TLS) Protocol Version 1.2"">RFC5246</a>], Simple
Authentication and Security Layer (SASL) [<a href="./rfc4422" title=""Simple Authentication and Security Layer (SASL)"">RFC4422</a>], and SSH [<a href="./rfc4251" title=""The Secure Shell (SSH) Protocol Architecture"">RFC4251</a>]
From an operational perspective, it is highly desirable to use
security mechanisms that can unify the administrative security
management for SNMPv3, command line interfaces (CLIs), and other
management interfaces. The use of security services provided by
lower layers is the approach commonly used for the CLI, and is also
the approach being proposed for other network management protocols,
such as syslog [<a href="./rfc5424" title=""The Syslog Protocol"">RFC5424</a>] and NETCONF [<a href="./rfc4741" title=""NETCONF Configuration Protocol"">RFC4741</a>].
This document defines a Transport Subsystem extension to the <a href="./rfc3411">RFC 3411</a>
architecture that is based on the third approach. This extension
specifies how other lower-layer protocols with common security
infrastructures can be used underneath the SNMP protocol and the
desired goal of unified administrative security can be met.
This extension allows security to be provided by an external protocol
connected to the SNMP engine through an SNMP Transport Model
[<a href="./rfc3417" title=""Transport Mappings for the Simple Network Management Protocol (SNMP)"">RFC3417</a>]. Such a Transport Model would then enable the use of
existing security mechanisms, such as TLS [<a href="./rfc5246" title=""The Transport Layer Security (TLS) Protocol Version 1.2"">RFC5246</a>] or SSH [<a href="./rfc4251" title=""The Secure Shell (SSH) Protocol Architecture"">RFC4251</a>],
within the <a href="./rfc3411">RFC 3411</a> architecture.
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
There are a number of Internet security protocols and mechanisms that
are in widespread use. Many of them try to provide a generic
infrastructure to be used by many different application-layer
protocols. The motivation behind the Transport Subsystem is to
leverage these protocols where it seems useful.
There are a number of challenges to be addressed to map the security
provided by a secure transport into the SNMP architecture so that
SNMP continues to provide interoperability with existing
implementations. These challenges are described in detail in this
document. For some key issues, design choices are described that
might be made to provide a workable solution that meets operational
requirements and fits into the SNMP architecture defined in
[<a href="./rfc3411" title=""An Architecture for Describing Simple Network Management Protocol (SNMP) Management Frameworks"">RFC3411</a>].
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Requirements of a Transport Model</span>
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. Message Security Requirements</span>
Transport security protocols SHOULD provide protection against the
following message-oriented threats:
1. modification of information
2. masquerade
3. message stream modification
4. disclosure
These threats are described in <a href="./rfc3411#section-1.4">Section 1.4 of [RFC3411]</a>. The
security requirements outlined there do not require protection
against denial of service or traffic analysis; however, transport
security protocols should not make those threats significantly worse.
<span class="h4"><a class="selflink" id="section-3.1.1" href="#section-3.1.1">3.1.1</a>. Security Protocol Requirements</span>
There are a number of standard protocols that could be proposed as
possible solutions within the Transport Subsystem. Some factors
should be considered when selecting a protocol.
Using a protocol in a manner for which it was not designed has
numerous problems. The advertised security characteristics of a
protocol might depend on it being used as designed; when used in
other ways, it might not deliver the expected security
characteristics. It is recommended that any proposed model include a
description of the applicability of the Transport Model.
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
A Transport Model SHOULD NOT require modifications to the underlying
protocol. Modifying the protocol might change its security
characteristics in ways that could impact other existing usages. If
a change is necessary, the change SHOULD be an extension that has no
impact on the existing usages. Any Transport Model specification
should include a description of potential impact on other usages of
the protocol.
Since multiple Transport Models can exist simultaneously within the
Transport Subsystem, Transport Models MUST be able to coexist with
each other.
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>. SNMP Requirements</span>
<span class="h4"><a class="selflink" id="section-3.2.1" href="#section-3.2.1">3.2.1</a>. Architectural Modularity Requirements</span>
SNMP version 3 (SNMPv3) is based on a modular architecture (defined
in <a href="./rfc3411#section-3">Section 3 of [RFC3411]</a>) to allow the evolution of the SNMP
protocol standards over time and to minimize the side effects between
subsystems when changes are made.
The <a href="./rfc3411">RFC 3411</a> architecture includes a Message Processing Subsystem for
permitting different message versions to be handled by a single
engine, a Security Subsystem for enabling different methods of
providing security services, Applications to support different types
of Application processors, and an Access Control Subsystem for
allowing multiple approaches to access control. The <a href="./rfc3411">RFC 3411</a>
architecture does not include a subsystem for Transport Models,
despite the fact there are multiple transport mappings already
defined for SNMP [<a href="./rfc3417" title=""Transport Mappings for the Simple Network Management Protocol (SNMP)"">RFC3417</a>]. This document describes a Transport
Subsystem that is compatible with the <a href="./rfc3411">RFC 3411</a> architecture. As work
is being done to use secure transports such as SSH and TLS, using a
subsystem will enable consistent design and modularity of such
Transport Models.
The design of this Transport Subsystem accepts the goals of the <a href="./rfc3411">RFC</a>
<a href="./rfc3411">3411</a> architecture that are defined in <a href="./rfc3411#section-1.5">Section 1.5 of [RFC3411]</a>. This
Transport Subsystem uses a modular design that permits Transport
Models (which might or might not be security-aware) to be "plugged
into" the <a href="./rfc3411">RFC 3411</a> architecture. Such Transport Models would be
independent of other modular SNMP components as much as possible.
This design also permits Transport Models to be advanced through the
standards process independently of other Transport Models.
The following diagram depicts the SNMPv3 architecture, including the
new Transport Subsystem defined in this document and a new Transport
Security Model defined in [<a href="./rfc5591" title=""Transport Security Model for the Simple Network Management Protocol (SNMP)"">RFC5591</a>].
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
+------------------------------+
| Network |
+------------------------------+
^ ^ ^
| | |
v v v
+-------------------------------------------------------------------+
| +--------------------------------------------------+ |
| | Transport Subsystem | |
| | +-----+ +-----+ +-----+ +-----+ +-------+ | |
| | | UDP | | TCP | | SSH | | TLS | . . . | other | | |
| | +-----+ +-----+ +-----+ +-----+ +-------+ | |
| +--------------------------------------------------+ |
| ^ |
| | |
| Dispatcher v |
| +-------------------+ +---------------------+ +----------------+ |
| | Transport | | Message Processing | | Security | |
| | Dispatch | | Subsystem | | Subsystem | |
| | | | +------------+ | | +------------+ | |
| | | | +->| v1MP |<--->| | USM | | |
| | | | | +------------+ | | +------------+ | |
| | | | | +------------+ | | +------------+ | |
| | | | +->| v2cMP |<--->| | Transport | | |
| | Message | | | +------------+ | | | Security | | |
| | Dispatch <--------->| +------------+ | | | Model | | |
| | | | +->| v3MP |<--->| +------------+ | |
| | | | | +------------+ | | +------------+ | |
| | PDU Dispatch | | | +------------+ | | | Other | | |
| +-------------------+ | +->| otherMP |<--->| | Model(s) | | |
| ^ | +------------+ | | +------------+ | |
| | +---------------------+ +----------------+ |
| v |
| +-------+-------------------------+---------------+ |
| ^ ^ ^ |
| | | | |
| v v v |
| +-------------+ +---------+ +--------------+ +-------------+ |
| | COMMAND | | ACCESS | | NOTIFICATION | | PROXY | |
| | RESPONDER |<->| CONTROL |<->| ORIGINATOR | | FORWARDER | |
| | Application | | | | Applications | | Application | |
| +-------------+ +---------+ +--------------+ +-------------+ |
| ^ ^ |
| | | |
| v v |
| +----------------------------------------------+ |
| | MIB instrumentation | SNMP entity |
+-------------------------------------------------------------------+
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
<span class="h5"><a class="selflink" id="section-3.2.1.1" href="#section-3.2.1.1">3.2.1.1</a>. Changes to the <a href="./rfc3411">RFC 3411</a> Architecture</span>
The <a href="./rfc3411">RFC 3411</a> architecture and the Security Subsystem assume that a
Security Model is called by a Message Processing Model and will
perform multiple security functions within the Security Subsystem. A
Transport Model that supports a secure transport protocol might
perform similar security functions within the Transport Subsystem,
including the translation of transport-security parameters to/from
Security-Model-independent parameters.
To accommodate this, an implementation-specific cache of transport-
specific information will be described (not shown), and the data
flows on this path will be extended to pass Security-Model-
independent values. This document amends some of the ASIs defined in
<a href="./rfc3411">RFC 3411</a>; these changes are covered in <a href="#section-6">Section 6</a> of this document.
New Security Models might be defined that understand how to work with
these modified ASIs and the transport-information cache. One such
Security Model, the Transport Security Model, is defined in
[<a href="./rfc5591" title=""Transport Security Model for the Simple Network Management Protocol (SNMP)"">RFC5591</a>].
<span class="h5"><a class="selflink" id="section-3.2.1.2" href="#section-3.2.1.2">3.2.1.2</a>. Changes to <a href="./rfc3411">RFC 3411</a> Processing</span>
The introduction of secure transports affects the responsibilities
and order of processing within the <a href="./rfc3411">RFC 3411</a> architecture. While the
steps are the same, they might occur in a different order, and might
be done by different subsystems. With the existing <a href="./rfc3411">RFC 3411</a>
architecture, security processing starts when the Message Processing
Model decodes portions of the encoded message to extract parameters
that identify which Security Model MUST handle the security-related
tasks.
A secure transport performs those security functions on the message,
before the message is decoded. Some of these functions might then be
repeated by the selected Security Model.
<span class="h5"><a class="selflink" id="section-3.2.1.3" href="#section-3.2.1.3">3.2.1.3</a>. Passing Information between SNMP Engines</span>
A secure Transport Model will establish an authenticated and possibly
encrypted tunnel between the Transport Models of two SNMP engines.
After a transport-layer tunnel is established, then SNMP messages can
be sent through the tunnel from one SNMP engine to the other. While
the Community Security Models [<a href="./rfc3584" title=""Coexistence between Version 1, Version 2, and Version 3 of the Internet-standard Network Management Framework"">RFC3584</a>] and the User-based Security
Model establish a security association for each SNMP message, newer
Transport Models MAY support sending multiple SNMP messages through
the same tunnel to amortize the costs of establishing a security
association.
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
<span class="h4"><a class="selflink" id="section-3.2.2" href="#section-3.2.2">3.2.2</a>. Access Control Requirements</span>
<a href="./rfc3411">RFC 3411</a> made some design decisions related to the support of an
Access Control Subsystem. These include establishing and passing in
a model-independent manner the securityModel, securityName, and
securityLevel parameters, and separating message authentication from
data-access authorization.
<span class="h5"><a class="selflink" id="section-3.2.2.1" href="#section-3.2.2.1">3.2.2.1</a>. securityName and securityLevel Mapping</span>
SNMP data-access controls are expected to work on the basis of who
can perform what operations on which subsets of data, and based on
the security services that will be provided to secure the data in
transit. The securityModel and securityLevel parameters establish
the protections for transit -- whether authentication and privacy
services will be or have been applied to the message. The
securityName is a model-independent identifier of the security
"principal".
A Security Model plays a role in security that goes beyond protecting
the message -- it provides a mapping between the Security-Model-
specific principal for an incoming message to a Security-Model
independent securityName that can be used for subsequent processing,
such as for access control. The securityName is mapped from a
mechanism-specific identity, and this mapping must be done for
incoming messages by the Security Model before it passes securityName
to the Message Processing Model via the processIncoming ASI.
A Security Model is also responsible to specify, via the
securityLevel parameter, whether incoming messages have been
authenticated and encrypted, and to ensure that outgoing messages are
authenticated and encrypted based on the value of securityLevel.
A Transport Model MAY provide suggested values for securityName and
securityLevel. A Security Model might have multiple sources for
determining the principal and desired security services, and a
particular Security Model might or might not utilize the values
proposed by a Transport Model when deciding the value of securityName
and securityLevel.
Documents defining a new transport domain MUST define a prefix that
MAY be prepended to all securityNames passed by the Security Model.
The prefix MUST include one to four US-ASCII alpha-numeric
characters, not including a ":" (US-ASCII 0x3a) character. If a
prefix is used, a securityName is constructed by concatenating the
prefix and a ":" (US-ASCII 0x3a) character, followed by a non-empty
identity in an snmpAdminString-compatible format. The prefix can be
used by SNMP Applications to distinguish "alice" authenticated by SSH
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
from "alice" authenticated by TLS. Transport domains and their
corresponding prefixes are coordinated via the IANA registry "SNMP
Transport Domains".
<span class="h4"><a class="selflink" id="section-3.2.3" href="#section-3.2.3">3.2.3</a>. Security Parameter Passing Requirements</span>
A Message Processing Model might unpack SNMP-specific security
parameters from an incoming message before calling a specific
Security Model to handle the security-related processing of the
message. When using a secure Transport Model, some security
parameters might be extracted from the transport layer by the
Transport Model before the message is passed to the Message
Processing Subsystem.
This document describes a cache mechanism (see <a href="#section-5">Section 5</a>) into which
the Transport Model puts information about the transport and security
parameters applied to a transport connection or an incoming message;
a Security Model might extract that information from the cache. A
tmStateReference is passed as an extra parameter in the ASIs between
the Transport Subsystem and the Message Processing and Security
Subsystems in order to identify the relevant cache. This approach of
passing a model-independent reference is consistent with the
securityStateReference cache already being passed around in the <a href="./rfc3411">RFC</a>
<a href="./rfc3411">3411</a> ASIs.
<span class="h4"><a class="selflink" id="section-3.2.4" href="#section-3.2.4">3.2.4</a>. Separation of Authentication and Authorization</span>
The <a href="./rfc3411">RFC 3411</a> architecture defines a separation of authentication and
the authorization to access and/or modify MIB data. A set of model-
independent parameters (securityModel, securityName, and
securityLevel) are passed between the Security Subsystem, the
Applications, and the Access Control Subsystem.
This separation was a deliberate decision of the SNMPv3 WG, in order
to allow support for authentication protocols that do not provide
data-access authorization capabilities, and in order to support data-
access authorization schemes, such as the View-based access Control
Model (VACM), that do not perform their own authentication.
A Message Processing Model determines which Security Model is used,
either based on the message version (e.g., SNMPv1 and SNMPv2c) or
possibly by a value specified in the message (e.g., msgSecurityModel
field in SNMPv3).
The Security Model makes the decision which securityName and
securityLevel values are passed as model-independent parameters to an
Application, which then passes them via the isAccessAllowed ASI to
the Access Control Subsystem.
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
An Access Control Model performs the mapping from the model-
independent security parameters to a policy within the Access Control
Model that is Access-Control-Model-dependent.
A Transport Model does not know which Security Model will be used for
an incoming message, and so cannot know how the securityName and
securityLevel parameters will be determined. It can propose an
authenticated identity (via the tmSecurityName field), but there is
no guarantee that this value will be used by the Security Model. For
example, non-transport-aware Security Models will typically determine
the securityName (and securityLevel) based on the contents of the
SNMP message itself. Such Security Models will simply not know that
the tmStateReference cache exists.
Further, even if the Transport Model can influence the choice of
securityName, it cannot directly determine the authorization allowed
to this identity. If two different Transport Models each
authenticate a transport principal that are then both mapped to the
same securityName, then these two identities will typically be
afforded exactly the same authorization by the Access Control Model.
The only way for the Access Control Model to differentiate between
identities based on the underlying Transport Model would be for such
transport-authenticated identities to be mapped to distinct
securityNames. How and if this is done is Security-Model-dependent.
<span class="h3"><a class="selflink" id="section-3.3" href="#section-3.3">3.3</a>. Session Requirements</span>
Some secure transports have a notion of sessions, while other secure
transports provide channels or other session-like mechanisms.
Throughout this document, the term "session" is used in a broad sense
to cover transport sessions, transport channels, and other transport-
layer, session-like mechanisms. Transport-layer sessions that can
secure multiple SNMP messages within the lifetime of the session are
considered desirable because the cost of authentication can be
amortized over potentially many transactions. How a transport
session is actually established, opened, closed, or maintained is
specific to a particular Transport Model.
To reduce redundancy, this document describes aspects that are
expected to be common to all Transport Model sessions.
<span class="h4"><a class="selflink" id="section-3.3.1" href="#section-3.3.1">3.3.1</a>. No SNMP Sessions</span>
The architecture defined in [<a href="./rfc3411" title=""An Architecture for Describing Simple Network Management Protocol (SNMP) Management Frameworks"">RFC3411</a>] and the Transport Subsystem
defined in this document do not support SNMP sessions or include a
session selector in the Abstract Service Interfaces.
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
The Transport Subsystem might support transport sessions. However,
the Transport Subsystem does not have access to the pduType (i.e.,
the SNMP operation type), and so cannot select a given transport
session for particular types of traffic.
Certain parameters of the Abstract Service Interfaces might be used
to guide the selection of an appropriate transport session to use for
a given request by an Application.
The transportDomain and transportAddress identify the transport
connection to a remote network node. Elements of the transport
address (such as the port number) might be used by an Application to
send a particular PDU type to a particular transport address. For
example, the SNMP-TARGET-MIB and SNMP-NOTIFICATION-MIB [<a href="./rfc3413" title=""Simple Network Management Protocol (SNMP) Applications"">RFC3413</a>] are
used to configure notification originators with the destination port
to which SNMPv2-Trap PDUs or Inform PDUs are to be sent, but the
Transport Subsystem never looks inside the PDU.
The securityName identifies which security principal to communicate
with at that address (e.g., different Network Management System (NMS)
applications), and the securityLevel might permit selection of
different sets of security properties for different purposes (e.g.,
encrypted SET vs. non-encrypted GET operations).
However, because the handling of transport sessions is specific to
each Transport Model, some Transport Models MAY restrict selecting a
particular transport session. A user application might use a unique
combination of transportDomain, transportAddress, securityModel,
securityName, and securityLevel to try to force the selection of a
given transport session. This usage is NOT RECOMMENDED because it is
not guaranteed to be interoperable across implementations and across
models.
Implementations SHOULD be able to maintain some reasonable number of
concurrent transport sessions, and MAY provide non-standard internal
mechanisms to select transport sessions.
<span class="h4"><a class="selflink" id="section-3.3.2" href="#section-3.3.2">3.3.2</a>. Session Establishment Requirements</span>
SNMP Applications provide the transportDomain, transportAddress,
securityName, and securityLevel to be used to create a new session.
If the Transport Model cannot provide at least the requested level of
security, the Transport Model should discard the message and should
notify the Dispatcher that establishing a session and sending the
message failed. Similarly, if the session cannot be established,
then the message should be discarded and the Dispatcher notified.
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
Transport session establishment might require provisioning
authentication credentials at an engine, either statically or
dynamically. How this is done is dependent on the Transport Model
and the implementation.
<span class="h4"><a class="selflink" id="section-3.3.3" href="#section-3.3.3">3.3.3</a>. Session Maintenance Requirements</span>
A Transport Model can tear down sessions as needed. It might be
necessary for some implementations to tear down sessions as the
result of resource constraints, for example.
The decision to tear down a session is implementation-dependent. How
an implementation determines that an operation has completed is
implementation-dependent. While it is possible to tear down each
transport session after processing for each message has completed,
this is not recommended for performance reasons.
The elements of procedure describe when cached information can be
discarded, and the timing of cache cleanup might have security
implications, but cache memory management is an implementation issue.
If a Transport Model defines MIB module objects to maintain session
state information, then the Transport Model MUST define what happens
to the objects when a related session is torn down, since this will
impact the interoperability of the MIB module.
<span class="h4"><a class="selflink" id="section-3.3.4" href="#section-3.3.4">3.3.4</a>. Message Security versus Session Security</span>
A Transport Model session is associated with state information that
is maintained for its lifetime. This state information allows for
the application of various security services to multiple messages.
Cryptographic keys associated with the transport session SHOULD be
used to provide authentication, integrity checking, and encryption
services, as needed, for data that is communicated during the
session. The cryptographic protocols used to establish keys for a
Transport Model session SHOULD ensure that fresh new session keys are
generated for each session. This would ensure that a cross-session
replay attack would be unsuccessful; that is, an attacker could not
take a message observed on one session and successfully replay it on
another session.
A good security protocol would also protect against replay attacks
within a session; that is, an attacker could not take a message
observed on a session and successfully replay it later in the same
session. One approach would be to use sequence information within
the protocol, allowing the participants to detect if messages were
replayed or reordered within a session.
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
If a secure transport session is closed between the time a request
message is received and the corresponding response message is sent,
then the response message SHOULD be discarded, even if a new session
has been established. The SNMPv3 WG decided that this should be a
"SHOULD" architecturally, and it is a Security-Model-specific
decision whether to REQUIRE this. The architecture does not mandate
this requirement in order to allow for future Security Models where
this might make sense; however, not requiring this could lead to
added complexity and security vulnerabilities, so most Security
Models SHOULD require this.
SNMPv3 was designed to support multiple levels of security,
selectable on a per-message basis by an SNMP Application, because,
for example, there is not much value in using encryption for a
command generator to poll for potentially non-sensitive performance
data on thousands of interfaces every ten minutes; such encryption
might add significant overhead to processing of the messages.
Some Transport Models might support only specific authentication and
encryption services, such as requiring all messages to be carried
using both authentication and encryption, regardless of the security
level requested by an SNMP Application. A Transport Model MAY
upgrade the security level requested by a transport-aware Security
Model, i.e., noAuthNoPriv and authNoPriv might be sent over an
authenticated and encrypted session. A Transport Model MUST NOT
downgrade the security level requested by a transport-aware Security
Model, and SHOULD discard any message where this would occur. This
is a SHOULD rather than a MUST only to permit the potential
development of models that can perform error-handling in a manner
that is less severe than discarding the message. However, any model
that does not discard the message in this circumstance should have a
clear justification for why not discarding will not create a security
vulnerability.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Scenario Diagrams and the Transport Subsystem</span>
Sections <a href="#section-4.6.1">4.6.1</a> and <a href="#section-4.6.2">4.6.2</a> of <a href="./rfc3411">RFC 3411</a> provide scenario diagrams to
illustrate how an outgoing message is created and how an incoming
message is processed. <a href="./rfc3411">RFC 3411</a> does not define ASIs for the "Send
SNMP Request Message to Network", "Receive SNMP Response Message from
Network", "Receive SNMP Message from Network" and "Send SNMP message
to Network" arrows in these diagrams.
This document defines two ASIs corresponding to these arrows: a
sendMessage ASI to send SNMP messages to the network and a
receiveMessage ASI to receive SNMP messages from the network. These
ASIs are used for all SNMP messages, regardless of pduType.
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Cached Information and References</span>
When performing SNMP processing, there are two levels of state
information that might need to be retained: the immediate state
linking a request-response pair and a potentially longer-term state
relating to transport and security.
The <a href="./rfc3411">RFC 3411</a> architecture uses caches to maintain the short-term
message state, and uses references in the ASIs to pass this
information between subsystems.
This document defines the requirements for a cache to handle
additional short-term message state and longer-term transport state
information, using a tmStateReference parameter to pass this
information between subsystems.
To simplify the elements of procedure, the release of state
information is not always explicitly specified. As a general rule,
if state information is available when a message being processed gets
discarded, the state related to that message should also be
discarded. If state information is available when a relationship
between engines is severed, such as the closing of a transport
session, the state information for that relationship should also be
discarded.
Since the contents of a cache are meaningful only within an
implementation, and not on-the-wire, the format of the cache is
implementation-specific.
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. securityStateReference</span>
The securityStateReference parameter is defined in <a href="./rfc3411">RFC 3411</a>. Its
primary purpose is to provide a mapping between a request and the
corresponding response. This cache is not accessible to Transport
Models, and an entry is typically only retained for the lifetime of a
request-response pair of messages.
<span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a>. tmStateReference</span>
For each transport session, information about the transport security
is stored in a tmState cache or datastore that is referenced by a
tmStateReference. The tmStateReference parameter is used to pass
model-specific and mechanism-specific parameters between the
Transport Subsystem and transport-aware Security Models.
In general, when necessary, the tmState is populated by the Security
Model for outgoing messages and by the Transport Model for incoming
messages. However, in both cases, the model populating the tmState
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
might have incomplete information, and the missing information might
be populated by the other model when the information becomes
available.
The tmState might contain both long-term and short-term information.
The session information typically remains valid for the duration of
the transport session, might be used for several messages, and might
be stored in a local configuration datastore. Some information has a
shorter lifespan, such as tmSameSecurity and
tmRequestedSecurityLevel, which are associated with a specific
message.
Since this cache is only used within an implementation, and not on-
the-wire, the precise contents and format of the cache are
implementation-dependent. For architectural modularity between
Transport Models and transport-aware Security Models, a fully-defined
tmState MUST conceptually include at least the following fields:
tmTransportDomain
tmTransportAddress
tmSecurityName
tmRequestedSecurityLevel
tmTransportSecurityLevel
tmSameSecurity
tmSessionID
The details of these fields are described in the following
subsections.
<span class="h4"><a class="selflink" id="section-5.2.1" href="#section-5.2.1">5.2.1</a>. Transport Information</span>
Information about the source of an incoming SNMP message is passed up
from the Transport Subsystem as far as the Message Processing
Subsystem. However, these parameters are not included in the
processIncomingMsg ASI defined in <a href="./rfc3411">RFC 3411</a>; hence, this information
is not directly available to the Security Model.
A transport-aware Security Model might wish to take account of the
transport protocol and originating address when authenticating the
request and setting up the authorization parameters. It is therefore
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
necessary for the Transport Model to include this information in the
tmStateReference cache so that it is accessible to the Security
Model.
o tmTransportDomain: the transport protocol (and hence the Transport
Model) used to receive the incoming message.
o tmTransportAddress: the source of the incoming message.
The ASIs used for processing an outgoing message all include explicit
transportDomain and transportAddress parameters. The values within
the securityStateReference cache might override these parameters for
outgoing messages.
<span class="h4"><a class="selflink" id="section-5.2.2" href="#section-5.2.2">5.2.2</a>. securityName</span>
There are actually three distinct "identities" that can be identified
during the processing of an SNMP request over a secure transport:
o transport principal: the transport-authenticated identity on whose
behalf the secure transport connection was (or should be)
established. This value is transport-, mechanism-, and
implementation-specific, and is only used within a given Transport
Model.
o tmSecurityName: a human-readable name (in snmpAdminString format)
representing this transport identity. This value is transport-
and implementation-specific, and is only used (directly) by the
Transport and Security Models.
o securityName: a human-readable name (in snmpAdminString format)
representing the SNMP principal in a model-independent manner.
This value is used directly by SNMP Applications, the Access
Control Subsystem, the Message Processing Subsystem, and the
Security Subsystem.
The transport principal might or might not be the same as the
tmSecurityName. Similarly, the tmSecurityName might or might not be
the same as the securityName as seen by the Application and Access
Control Subsystems. In particular, a non-transport-aware Security
Model will ignore tmSecurityName completely when determining the SNMP
securityName.
However, it is important that the mapping between the transport
principal and the SNMP securityName (for transport-aware Security
Models) is consistent and predictable in order to allow configuration
of suitable access control and the establishment of transport
connections.
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
<span class="h4"><a class="selflink" id="section-5.2.3" href="#section-5.2.3">5.2.3</a>. securityLevel</span>
There are two distinct issues relating to security level as applied
to secure transports. For clarity, these are handled by separate
fields in the tmStateReference cache:
o tmTransportSecurityLevel: an indication from the Transport Model
of the level of security offered by this session. The Security
Model can use this to ensure that incoming messages were suitably
protected before acting on them.
o tmRequestedSecurityLevel: an indication from the Security Model of
the level of security required to be provided by the transport
protocol. The Transport Model can use this to ensure that
outgoing messages will not be sent over an insufficiently secure
session.
<span class="h4"><a class="selflink" id="section-5.2.4" href="#section-5.2.4">5.2.4</a>. Session Information</span>
For security reasons, if a secure transport session is closed between
the time a request message is received and the corresponding response
message is sent, then the response message SHOULD be discarded, even
if a new session has been established. The SNMPv3 WG decided that
this should be a "SHOULD" architecturally, and it is a Security-
Model-specific decision whether to REQUIRE this.
o tmSameSecurity: this flag is used by a transport-aware Security
Model to indicate whether the Transport Model MUST enforce this
restriction.
o tmSessionID: in order to verify whether the session has changed,
the Transport Model must be able to compare the session used to
receive the original request with the one to be used to send the
response. This typically needs some form of session identifier.
This value is only ever used by the Transport Model, so the format
and interpretation of this field are model-specific and
implementation-dependent.
When processing an outgoing message, if tmSameSecurity is true, then
the tmSessionID MUST match the current transport session; otherwise,
the message MUST be discarded and the Dispatcher notified that
sending the message failed.
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Abstract Service Interfaces</span>
Abstract service interfaces have been defined by <a href="./rfc3411">RFC 3411</a> to describe
the conceptual data flows between the various subsystems within an
SNMP entity and to help keep the subsystems independent of each other
except for the common parameters.
This document introduces a couple of new ASIs to define the interface
between the Transport and Dispatcher Subsystems; it also extends some
of the ASIs defined in <a href="./rfc3411">RFC 3411</a> to include transport-related
information.
This document follows the example of <a href="./rfc3411">RFC 3411</a> regarding the release
of state information and regarding error indications.
1) The release of state information is not always explicitly
specified in a Transport Model. As a general rule, if state
information is available when a message gets discarded, the message-
state information should also be released, and if state information
is available when a session is closed, the session-state information
should also be released. Keeping sensitive security information
longer than necessary might introduce potential vulnerabilities to an
implementation.
2)An error indication in statusInformation will typically include the
Object Identifier (OID) and value for an incremented error counter.
This might be accompanied by values for contextEngineID and
contextName for this counter, a value for securityLevel, and the
appropriate state reference if the information is available at the
point where the error is detected.
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. sendMessage ASI</span>
The sendMessage ASI is used to pass a message from the Dispatcher to
the appropriate Transport Model for sending. The sendMessageASI
defined in this document replaces the text "Send SNMP Request Message
to Network" that appears in the diagram in <a href="./rfc3411#section-4.6.1">Section 4.6.1 of RFC 3411</a>
and the text "Send SNMP Message to Network" that appears in <a href="./rfc3411#section-4.6.2">Section</a>
<a href="./rfc3411#section-4.6.2">4.6.2 of RFC 3411</a>.
If present and valid, the tmStateReference refers to a cache
containing Transport-Model-specific parameters for the transport and
transport security. How a tmStateReference is determined to be
present and valid is implementation-dependent. How the information
in the cache is used is Transport-Model-dependent and implementation-
dependent.
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
This might sound underspecified, but a Transport Model might be
something like SNMP over UDP over IPv6, where no security is
provided, so it might have no mechanisms for utilizing a
tmStateReference cache.
statusInformation =
sendMessage(
IN destTransportDomain -- transport domain to be used
IN destTransportAddress -- transport address to be used
IN outgoingMessage -- the message to send
IN outgoingMessageLength -- its length
IN tmStateReference -- reference to transport state
)
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. Changes to <a href="./rfc3411">RFC 3411</a> Outgoing ASIs</span>
Additional parameters have been added to the ASIs defined in <a href="./rfc3411">RFC 3411</a>
that are concerned with communication between the Dispatcher and
Message Processing Subsystems, and between the Message Processing and
Security Subsystems.
<span class="h4"><a class="selflink" id="section-6.2.1" href="#section-6.2.1">6.2.1</a>. Message Processing Subsystem Primitives</span>
A tmStateReference parameter has been added as an OUT parameter to
the prepareOutgoingMessage and prepareResponseMessage ASIs. This is
passed from the Message Processing Subsystem to the Dispatcher, and
from there to the Transport Subsystem.
How or if the Message Processing Subsystem modifies or utilizes the
contents of the cache is Message-Processing-Model specific.
statusInformation = -- success or errorIndication
prepareOutgoingMessage(
IN transportDomain -- transport domain to be used
IN transportAddress -- transport address to be used
IN messageProcessingModel -- typically, SNMP version
IN securityModel -- Security Model to use
IN securityName -- on behalf of this principal
IN securityLevel -- Level of Security requested
IN contextEngineID -- data from/at this entity
IN contextName -- data from/in this context
IN pduVersion -- the version of the PDU
IN PDU -- SNMP Protocol Data Unit
IN expectResponse -- TRUE or FALSE
IN sendPduHandle -- the handle for matching
incoming responses
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
OUT destTransportDomain -- destination transport domain
OUT destTransportAddress -- destination transport address
OUT outgoingMessage -- the message to send
OUT outgoingMessageLength -- its length
OUT tmStateReference -- (NEW) reference to transport state
)
statusInformation = -- success or errorIndication
prepareResponseMessage(
IN messageProcessingModel -- typically, SNMP version
IN securityModel -- Security Model to use
IN securityName -- on behalf of this principal
IN securityLevel -- Level of Security requested
IN contextEngineID -- data from/at this entity
IN contextName -- data from/in this context
IN pduVersion -- the version of the PDU
IN PDU -- SNMP Protocol Data Unit
IN maxSizeResponseScopedPDU -- maximum size able to accept
IN stateReference -- reference to state information
-- as presented with the request
IN statusInformation -- success or errorIndication
-- error counter OID/value if error
OUT destTransportDomain -- destination transport domain
OUT destTransportAddress -- destination transport address
OUT outgoingMessage -- the message to send
OUT outgoingMessageLength -- its length
OUT tmStateReference -- (NEW) reference to transport state
)
<span class="h4"><a class="selflink" id="section-6.2.2" href="#section-6.2.2">6.2.2</a>. Security Subsystem Primitives</span>
transportDomain and transportAddress parameters have been added as IN
parameters to the generateRequestMsg and generateResponseMsg ASIs,
and a tmStateReference parameter has been added as an OUT parameter.
The transportDomain and transportAddress parameters will have been
passed into the Message Processing Subsystem from the Dispatcher and
are passed on to the Security Subsystem. The tmStateReference
parameter will be passed from the Security Subsystem back to the
Message Processing Subsystem, and on to the Dispatcher and Transport
Subsystems.
If a cache exists for a session identifiable from the
tmTransportDomain, tmTransportAddress, tmSecurityName, and requested
securityLevel, then a transport-aware Security Model might create a
tmStateReference parameter to this cache and pass that as an OUT
parameter.
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 23]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-24" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
statusInformation =
generateRequestMsg(
IN transportDomain -- (NEW) destination transport domain
IN transportAddress -- (NEW) destination transport address
IN messageProcessingModel -- typically, SNMP version
IN globalData -- message header, admin data
IN maxMessageSize -- of the sending SNMP entity
IN securityModel -- for the outgoing message
IN securityEngineID -- authoritative SNMP entity
IN securityName -- on behalf of this principal
IN securityLevel -- Level of Security requested
IN scopedPDU -- message (plaintext) payload
OUT securityParameters -- filled in by Security Module
OUT wholeMsg -- complete generated message
OUT wholeMsgLength -- length of generated message
OUT tmStateReference -- (NEW) reference to transport state
)
statusInformation =
generateResponseMsg(
IN transportDomain -- (NEW) destination transport domain
IN transportAddress -- (NEW) destination transport address
IN messageProcessingModel -- Message Processing Model
IN globalData -- msgGlobalData
IN maxMessageSize -- from msgMaxSize
IN securityModel -- as determined by MPM
IN securityEngineID -- the value of snmpEngineID
IN securityName -- on behalf of this principal
IN securityLevel -- for the outgoing message
IN scopedPDU -- as provided by MPM
IN securityStateReference -- as provided by MPM
OUT securityParameters -- filled in by Security Module
OUT wholeMsg -- complete generated message
OUT wholeMsgLength -- length of generated message
OUT tmStateReference -- (NEW) reference to transport state
)
<span class="h3"><a class="selflink" id="section-6.3" href="#section-6.3">6.3</a>. The receiveMessage ASI</span>
The receiveMessage ASI is used to pass a message from the Transport
Subsystem to the Dispatcher. The receiveMessage ASI replaces the
text "Receive SNMP Response Message from Network" that appears in the
diagram in <a href="./rfc3411#section-4.6.1">Section 4.6.1 of RFC 3411</a> and the text "Receive SNMP
Message from Network" from <a href="./rfc3411#section-4.6.2">Section 4.6.2 of RFC3411</a>.
When a message is received on a given transport session, if a cache
does not already exist for that session, the Transport Model might
create one, referenced by tmStateReference. The contents of this
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 24]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-25" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
cache are discussed in <a href="#section-5">Section 5</a>. How this information is determined
is implementation- and Transport-Model-specific.
"Might create one" might sound underspecified, but a Transport Model
might be something like SNMP over UDP over IPv6, where transport
security is not provided, so it might not create a cache.
The Transport Model does not know the securityModel for an incoming
message; this will be determined by the Message Processing Model in a
Message-Processing-Model-dependent manner.
statusInformation =
receiveMessage(
IN transportDomain -- origin transport domain
IN transportAddress -- origin transport address
IN incomingMessage -- the message received
IN incomingMessageLength -- its length
IN tmStateReference -- reference to transport state
)
<span class="h3"><a class="selflink" id="section-6.4" href="#section-6.4">6.4</a>. Changes to <a href="./rfc3411">RFC 3411</a> Incoming ASIs</span>
The tmStateReference parameter has also been added to some of the
incoming ASIs defined in <a href="./rfc3411">RFC 3411</a>. How or if a Message Processing
Model or Security Model uses tmStateReference is message-processing-
and Security-Model-specific.
This might sound underspecified, but a Message Processing Model might
have access to all the information from the cache and from the
message. The Message Processing Model might determine that the USM
Security Model is specified in an SNMPv3 message header; the USM
Security Model has no need of values in the tmStateReference cache to
authenticate and secure the SNMP message, but an Application might
have specified to use a secure transport such as that provided by the
SSH Transport Model to send the message to its destination.
<span class="h4"><a class="selflink" id="section-6.4.1" href="#section-6.4.1">6.4.1</a>. Message Processing Subsystem Primitive</span>
The tmStateReference parameter of prepareDataElements is passed from
the Dispatcher to the Message Processing Subsystem. How or if the
Message Processing Subsystem modifies or utilizes the contents of the
cache is Message-Processing-Model-specific.
result = -- SUCCESS or errorIndication
prepareDataElements(
IN transportDomain -- origin transport domain
IN transportAddress -- origin transport address
IN wholeMsg -- as received from the network
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 25]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-26" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
IN wholeMsgLength -- as received from the network
IN tmStateReference -- (NEW) from the Transport Model
OUT messageProcessingModel -- typically, SNMP version
OUT securityModel -- Security Model to use
OUT securityName -- on behalf of this principal
OUT securityLevel -- Level of Security requested
OUT contextEngineID -- data from/at this entity
OUT contextName -- data from/in this context
OUT pduVersion -- the version of the PDU
OUT PDU -- SNMP Protocol Data Unit
OUT pduType -- SNMP PDU type
OUT sendPduHandle -- handle for matched request
OUT maxSizeResponseScopedPDU -- maximum size sender can accept
OUT statusInformation -- success or errorIndication
-- error counter OID/value if error
OUT stateReference -- reference to state information
-- to be used for possible Response
)
<span class="h4"><a class="selflink" id="section-6.4.2" href="#section-6.4.2">6.4.2</a>. Security Subsystem Primitive</span>
The processIncomingMessage ASI passes tmStateReference from the
Message Processing Subsystem to the Security Subsystem.
If tmStateReference is present and valid, an appropriate Security
Model might utilize the information in the cache. How or if the
Security Subsystem utilizes the information in the cache is Security-
Model-specific.
statusInformation = -- errorIndication or success
-- error counter OID/value if error
processIncomingMsg(
IN messageProcessingModel -- typically, SNMP version
IN maxMessageSize -- of the sending SNMP entity
IN securityParameters -- for the received message
IN securityModel -- for the received message
IN securityLevel -- Level of Security
IN wholeMsg -- as received on the wire
IN wholeMsgLength -- length as received on the wire
IN tmStateReference -- (NEW) from the Transport Model
OUT securityEngineID -- authoritative SNMP entity
OUT securityName -- identification of the principal
OUT scopedPDU, -- message (plaintext) payload
OUT maxSizeResponseScopedPDU -- maximum size sender can handle
OUT securityStateReference -- reference to security state
-- information, needed for response
)
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 26]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-27" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Security Considerations</span>
This document defines an architectural approach that permits SNMP to
utilize transport-layer security services. Each proposed Transport
Model should discuss the security considerations of that Transport
Model.
It is considered desirable by some industry segments that SNMP
Transport Models utilize transport-layer security that addresses
perfect forward secrecy at least for encryption keys. Perfect
forward secrecy guarantees that compromise of long-term secret keys
does not result in disclosure of past session keys. Each proposed
Transport Model should include a discussion in its security
considerations of whether perfect forward secrecy is appropriate for
that Transport Model.
The denial-of-service characteristics of various Transport Models and
security protocols will vary and should be evaluated when determining
the applicability of a Transport Model to a particular deployment
situation.
Since the cache will contain security-related parameters,
implementers SHOULD store this information (in memory or in
persistent storage) in a manner to protect it from unauthorized
disclosure and/or modification.
Care must be taken to ensure that an SNMP engine is sending packets
out over a transport using credentials that are legal for that engine
to use on behalf of that user. Otherwise, an engine that has
multiple transports open might be "tricked" into sending a message
through the wrong transport.
A Security Model might have multiple sources from which to define the
securityName and securityLevel. The use of a secure Transport Model
does not imply that the securityName and securityLevel chosen by the
Security Model represent the transport-authenticated identity or the
transport-provided security services. The securityModel,
securityName, and securityLevel parameters are a related set, and an
administrator should understand how the specified securityModel
selects the corresponding securityName and securityLevel.
<span class="h3"><a class="selflink" id="section-7.1" href="#section-7.1">7.1</a>. Coexistence, Security Parameters, and Access Control</span>
In the <a href="./rfc3411">RFC 3411</a> architecture, the Message Processing Model makes the
decision about which Security Model to use. The architectural change
described by this document does not alter that.
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 27]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-28" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
The architecture change described by this document does, however,
allow SNMP to support two different approaches to security --
message-driven security and transport-driven security. With message-
driven security, SNMP provides its own security and passes security
parameters within the SNMP message; with transport-driven security,
SNMP depends on an external entity to provide security during
transport by "wrapping" the SNMP message.
Using a non-transport-aware Security Model with a secure Transport
Model is NOT RECOMMENDED for the following reasons.
Security Models defined before the Transport Security Model (i.e.,
SNMPv1, SNMPv2c, and USM) do not support transport-based security and
only have access to the security parameters contained within the SNMP
message. They do not know about the security parameters associated
with a secure transport. As a result, the Access Control Subsystem
bases its decisions on the security parameters extracted from the
SNMP message, not on transport-based security parameters.
Implications of combining older Security Models with Secure Transport
Models are known. The securityName used for access control decisions
is based on the message-driven identity, which might be
unauthenticated, and not on the transport-driven, authenticated
identity:
o An SNMPv1 message will always be paired with an SNMPv1 Security
Model (per <a href="./rfc3584">RFC 3584</a>), regardless of the transport mapping or
Transport Model used, and access controls will be based on the
unauthenticated community name.
o An SNMPv2c message will always be paired with an SNMPv2c Security
Model (per <a href="./rfc3584">RFC 3584</a>), regardless of the transport mapping or
Transport Model used, and access controls will be based on the
unauthenticated community name.
o An SNMPv3 message will always be paired with the securityModel
specified in the msgSecurityParameters field of the message (per
<a href="./rfc3412">RFC 3412</a>), regardless of the transport mapping or Transport Model
used. If the SNMPv3 message specifies the User-based Security
Model (USM) with noAuthNoPriv, then the access controls will be
based on the unauthenticated USM user.
o For outgoing messages, if a Secure Transport Model is selected in
combination with a Security Model that does not populate a
tmStateReference, the Secure Transport Model SHOULD detect the
lack of a valid tmStateReference and fail.
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 28]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-29" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
In times of network stress, a Secure Transport Model might not work
properly if its underlying security mechanisms (e.g., Network Time
Protocol (NTP) or Authentication, Authorization, and Accounting (AAA)
protocols or certificate authorities) are not reachable. The User-
based Security Model was explicitly designed to not depend upon
external network services, and provides its own security services.
It is RECOMMENDED that operators provision authPriv USM as a fallback
mechanism to supplement any Security Model or Transport Model that
has external dependencies, so that secure SNMP communications can
continue when the external network service is not available.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. IANA Considerations</span>
IANA has created a new registry in the Simple Network Management
Protocol (SNMP) Number Spaces. The new registry is called "SNMP
Transport Domains". This registry contains US-ASCII alpha-numeric
strings of one to four characters to identify prefixes for
corresponding SNMP transport domains. Each transport domain MUST
have an OID assignment under snmpDomains [<a href="./rfc2578" title=""Structure of Management Information Version 2 (SMIv2)"">RFC2578</a>]. Values are to be
assigned via [<a href="./rfc5226" title="">RFC5226</a>] "Specification Required".
The registry has been populated with the following initial entries:
Registry Name: SNMP Transport Domains
Reference: [<a href="./rfc2578" title=""Structure of Management Information Version 2 (SMIv2)"">RFC2578</a>] [<a href="./rfc3417" title=""Transport Mappings for the Simple Network Management Protocol (SNMP)"">RFC3417</a>] [<a href="./rfc5590">RFC5590</a>]
Registration Procedures: Specification Required
Each domain is assigned a MIB-defined OID under snmpDomains
Prefix snmpDomains Reference
------- ----------------------------- ---------
udp snmpUDPDomain [<a href="./rfc3417" title=""Transport Mappings for the Simple Network Management Protocol (SNMP)"">RFC3417</a>] [<a href="./rfc5590">RFC5590</a>]
clns snmpCLNSDomain [<a href="./rfc3417" title=""Transport Mappings for the Simple Network Management Protocol (SNMP)"">RFC3417</a>] [<a href="./rfc5590">RFC5590</a>]
cons snmpCONSDomain [<a href="./rfc3417" title=""Transport Mappings for the Simple Network Management Protocol (SNMP)"">RFC3417</a>] [<a href="./rfc5590">RFC5590</a>]
ddp snmpDDPDomain [<a href="./rfc3417" title=""Transport Mappings for the Simple Network Management Protocol (SNMP)"">RFC3417</a>] [<a href="./rfc5590">RFC5590</a>]
ipx snmpIPXDomain [<a href="./rfc3417" title=""Transport Mappings for the Simple Network Management Protocol (SNMP)"">RFC3417</a>] [<a href="./rfc5590">RFC5590</a>]
prxy rfc1157Domain [<a href="./rfc3417" title=""Transport Mappings for the Simple Network Management Protocol (SNMP)"">RFC3417</a>] [<a href="./rfc5590">RFC5590</a>]
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Acknowledgments</span>
The Integrated Security for SNMP WG would like to thank the following
people for their contributions to the process.
The authors of submitted Security Model proposals: Chris Elliot, Wes
Hardaker, David Harrington, Keith McCloghrie, Kaushik Narayan, David
Perkins, Joseph Salowey, and Juergen Schoenwaelder.
The members of the Protocol Evaluation Team: Uri Blumenthal,
Lakshminath Dondeti, Randy Presuhn, and Eric Rescorla.
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 29]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-30" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
WG members who performed detailed reviews: Wes Hardaker, Jeffrey
Hutzelman, Tom Petch, Dave Shield, and Bert Wijnen.
<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-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
[<a id="ref-RFC2578">RFC2578</a>] McCloghrie, K., Ed., Perkins, D., Ed., and J.
Schoenwaelder, Ed., "Structure of Management Information
Version 2 (SMIv2)", STD 58, <a href="./rfc2578">RFC 2578</a>, April 1999.
[<a id="ref-RFC3411">RFC3411</a>] Harrington, D., Presuhn, R., and B. Wijnen, "An
Architecture for Describing Simple Network Management
Protocol (SNMP) Management Frameworks", STD 62, <a href="./rfc3411">RFC 3411</a>,
December 2002.
[<a id="ref-RFC3412">RFC3412</a>] Case, J., Harrington, D., Presuhn, R., and B. Wijnen,
"Message Processing and Dispatching for the Simple Network
Management Protocol (SNMP)", STD 62, <a href="./rfc3412">RFC 3412</a>,
December 2002.
[<a id="ref-RFC3413">RFC3413</a>] Levi, D., Meyer, P., and B. Stewart, "Simple Network
Management Protocol (SNMP) Applications", STD 62,
<a href="./rfc3413">RFC 3413</a>, December 2002.
[<a id="ref-RFC3414">RFC3414</a>] Blumenthal, U. and B. Wijnen, "User-based Security Model
(USM) for version 3 of the Simple Network Management
Protocol (SNMPv3)", STD 62, <a href="./rfc3414">RFC 3414</a>, December 2002.
[<a id="ref-RFC3417">RFC3417</a>] Presuhn, R., "Transport Mappings for the Simple Network
Management Protocol (SNMP)", STD 62, <a href="./rfc3417">RFC 3417</a>,
December 2002.
<span class="h3"><a class="selflink" id="section-10.2" href="#section-10.2">10.2</a>. Informative References</span>
[<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-RFC3410">RFC3410</a>] Case, J., Mundy, R., Partain, D., and B. Stewart,
"Introduction and Applicability Statements for Internet-
Standard Management Framework", <a href="./rfc3410">RFC 3410</a>, December 2002.
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 30]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-31" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
[<a id="ref-RFC3584">RFC3584</a>] Frye, R., Levi, D., Routhier, S., and B. Wijnen,
"Coexistence between Version 1, Version 2, and Version 3
of the Internet-standard Network Management Framework",
<a href="https://www.rfc-editor.org/bcp/bcp74">BCP 74</a>, <a href="./rfc3584">RFC 3584</a>, August 2003.
[<a id="ref-RFC4251">RFC4251</a>] Ylonen, T. and C. Lonvick, "The Secure Shell (SSH)
Protocol Architecture", <a href="./rfc4251">RFC 4251</a>, January 2006.
[<a id="ref-RFC4422">RFC4422</a>] Melnikov, A. and K. Zeilenga, "Simple Authentication and
Security Layer (SASL)", <a href="./rfc4422">RFC 4422</a>, June 2006.
[<a id="ref-RFC4741">RFC4741</a>] Enns, R., "NETCONF Configuration Protocol", <a href="./rfc4741">RFC 4741</a>,
December 2006.
[<a id="ref-RFC5226">RFC5226</a>] Narten, T. and H. Alvestrand, "Guidelines for Writing an
IANA Considerations Section in RFCs", <a href="https://www.rfc-editor.org/bcp/bcp26">BCP 26</a>, <a href="./rfc5226">RFC 5226</a>,
May 2008.
[<a id="ref-RFC5246">RFC5246</a>] Dierks, T. and E. Rescorla, "The Transport Layer Security
(TLS) Protocol Version 1.2", <a href="./rfc5246">RFC 5246</a>, August 2008.
[<a id="ref-RFC5424">RFC5424</a>] Gerhards, R., "The Syslog Protocol", <a href="./rfc5424">RFC 5424</a>, March 2009.
[<a id="ref-RFC5591">RFC5591</a>] Harrington, D. and W. Hardaker, "Transport Security Model
for the Simple Network Management Protocol (SNMP)",
<a href="./rfc5591">RFC 5591</a>, June 2009.
[<a id="ref-RFC5592">RFC5592</a>] Harrington, D., Salowey, J., and W. Hardaker, "Secure
Shell Transport Model for the Simple Network Management
Protocol (SNMP)", <a href="./rfc5592">RFC 5592</a>, June 2009.
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 31]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-32" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
<span class="h2"><a class="selflink" id="appendix-A" href="#appendix-A">Appendix A</a>. Why tmStateReference?</span>
This appendix considers why a cache-based approach was selected for
passing parameters.
There are four approaches that could be used for passing information
between the Transport Model and a Security Model.
1. One could define an ASI to supplement the existing ASIs.
2. One could add a header to encapsulate the SNMP message.
3. One could utilize fields already defined in the existing SNMPv3
message.
4. One could pass the information in an implementation-specific
cache or via a MIB module.
<span class="h3"><a class="selflink" id="appendix-A.1" href="#appendix-A.1">A.1</a>. Define an Abstract Service Interface</span>
Abstract Service Interfaces (ASIs) are defined by a set of primitives
that specify the services provided and the abstract data elements
that are to be passed when the services are invoked. Defining
additional ASIs to pass the security and transport information from
the Transport Subsystem to the Security Subsystem has the advantage
of being consistent with existing <a href="./rfc3411">RFC 3411</a>/3412 practice; it also
helps to ensure that any Transport Model proposals pass the necessary
data and do not cause side effects by creating model-specific
dependencies between itself and models or subsystems other than those
that are clearly defined by an ASI.
<span class="h3"><a class="selflink" id="appendix-A.2" href="#appendix-A.2">A.2</a>. Using an Encapsulating Header</span>
A header could encapsulate the SNMP message to pass necessary
information from the Transport Model to the Dispatcher and then to a
Message Processing Model. The message header would be included in
the wholeMessage ASI parameter and would be removed by a
corresponding Message Processing Model. This would imply the (one
and only) Message Dispatcher would need to be modified to determine
which SNMP message version was involved, and a new Message Processing
Model would need to be developed that knew how to extract the header
from the message and pass it to the Security Model.
<span class="h3"><a class="selflink" id="appendix-A.3" href="#appendix-A.3">A.3</a>. Modifying Existing Fields in an SNMP Message</span>
[<a id="ref-RFC3412">RFC3412</a>] defines the SNMPv3 message, which contains fields to pass
security-related parameters. The Transport Subsystem could use these
fields in an SNMPv3 message (or comparable fields in other message
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 32]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-33" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
formats) to pass information between Transport Models in different
SNMP engines and to pass information between a Transport Model and a
corresponding Message Processing Model.
If the fields in an incoming SNMPv3 message are changed by the
Transport Model before passing it to the Security Model, then the
Transport Model will need to decode the ASN.1 message, modify the
fields, and re-encode the message in ASN.1 before passing the message
on to the Message Dispatcher or to the transport layer. This would
require an intimate knowledge of the message format and message
versions in order for the Transport Model to know which fields could
be modified. This would seriously violate the modularity of the
architecture.
<span class="h3"><a class="selflink" id="appendix-A.4" href="#appendix-A.4">A.4</a>. Using a Cache</span>
This document describes a cache into which the Transport Model (TM)
puts information about the security applied to an incoming message; a
Security Model can extract that information from the cache. Given
that there might be multiple TM security caches, a tmStateReference
is passed as an extra parameter in the ASIs between the Transport
Subsystem and the Security Subsystem so that the Security Model knows
which cache of information to consult.
This approach does create dependencies between a specific Transport
Model and a corresponding specific Security Model. However, the
approach of passing a model-independent reference to a model-
dependent cache is consistent with the securityStateReference already
being passed around in the <a href="./rfc3411">RFC 3411</a> ASIs.
<span class="grey">Harrington & Schoenwaelder Standards Track [Page 33]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-34" ></span>
<span class="grey"><a href="./rfc5590">RFC 5590</a> SNMP Transport Subsystem June 2009</span>
Authors' Addresses
David Harrington
Huawei Technologies (USA)
1700 Alma Dr. Suite 100
Plano, TX 75075
USA
Phone: +1 603 436 8634
EMail: ietfdbh@comcast.net
Juergen Schoenwaelder
Jacobs University Bremen
Campus Ring 1
28725 Bremen
Germany
Phone: +49 421 200-3587
EMail: j.schoenwaelder@jacobs-university.de
Harrington & Schoenwaelder Standards Track [Page 34]
</pre>
|