1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845
|
<pre>Internet Engineering Task Force (IETF) L. Blunk
Request for Comments: 6396 M. Karir
Category: Standards Track Merit Network
ISSN: 2070-1721 C. Labovitz
Deepfield Networks
October 2011
<span class="h1">Multi-Threaded Routing Toolkit (MRT) Routing Information Export Format</span>
Abstract
This document describes the MRT format for routing information
export. This format was developed in concert with the Multi-threaded
Routing Toolkit (MRT) from whence the format takes it name. The
format can be used to export routing protocol messages, state
changes, and routing information base contents.
Status of This Memo
This is an Internet Standards Track document.
This document is a product of the Internet Engineering Task Force
(IETF). It represents the consensus of the IETF community. It has
received public review and has been approved for publication by the
Internet Engineering Steering Group (IESG). Further information on
Internet Standards is available in <a href="./rfc5741#section-2">Section 2 of RFC 5741</a>.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
<a href="http://www.rfc-editor.org/info/rfc6396">http://www.rfc-editor.org/info/rfc6396</a>.
Copyright Notice
Copyright (c) 2011 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
<span class="grey">Blunk, et al. Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
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.
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-1.1">1.1</a>. Specification of Requirements . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-2">2</a>. MRT Common Header . . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-3">3</a>. Extended Timestamp MRT Header . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-4">4</a>. MRT Types . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
<a href="#section-4.1">4.1</a>. OSPFv2 Type . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
<a href="#section-4.2">4.2</a>. TABLE_DUMP Type . . . . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-4.3">4.3</a>. TABLE_DUMP_V2 Type . . . . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-4.3.1">4.3.1</a>. PEER_INDEX_TABLE Subtype . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-4.3.2">4.3.2</a>. AFI/SAFI-Specific RIB Subtypes . . . . . . . . . . . . <a href="#page-11">11</a>
<a href="#section-4.3.3">4.3.3</a>. RIB_GENERIC Subtype . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<a href="#section-4.3.4">4.3.4</a>. RIB Entries . . . . . . . . . . . . . . . . . . . . . <a href="#page-12">12</a>
<a href="#section-4.4">4.4</a>. BGP4MP Type . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-13">13</a>
<a href="#section-4.4.1">4.4.1</a>. BGP4MP_STATE_CHANGE Subtype . . . . . . . . . . . . . <a href="#page-13">13</a>
<a href="#section-4.4.2">4.4.2</a>. BGP4MP_MESSAGE Subtype . . . . . . . . . . . . . . . . <a href="#page-14">14</a>
<a href="#section-4.4.3">4.4.3</a>. BGP4MP_MESSAGE_AS4 Subtype . . . . . . . . . . . . . . <a href="#page-15">15</a>
<a href="#section-4.4.4">4.4.4</a>. BGP4MP_STATE_CHANGE_AS4 Subtype . . . . . . . . . . . <a href="#page-15">15</a>
<a href="#section-4.4.5">4.4.5</a>. BGP4MP_MESSAGE_LOCAL Subtype . . . . . . . . . . . . . <a href="#page-16">16</a>
<a href="#section-4.4.6">4.4.6</a>. BGP4MP_MESSAGE_AS4_LOCAL Subtype . . . . . . . . . . . <a href="#page-16">16</a>
<a href="#section-4.5">4.5</a>. ISIS Type . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-16">16</a>
<a href="#section-4.6">4.6</a>. OSPFv3 Type . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-17">17</a>
<a href="#section-5">5</a>. IANA Considerations . . . . . . . . . . . . . . . . . . . . . <a href="#page-17">17</a>
<a href="#section-5.1">5.1</a>. Type Codes . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-17">17</a>
<a href="#section-5.2">5.2</a>. Subtype Codes . . . . . . . . . . . . . . . . . . . . . . <a href="#page-18">18</a>
<a href="#section-5.3">5.3</a>. Defined Type Codes . . . . . . . . . . . . . . . . . . . . <a href="#page-18">18</a>
<a href="#section-5.4">5.4</a>. Defined BGP, BGP4PLUS, and BGP4PLUS_01 Subtype Codes . . . <a href="#page-19">19</a>
<a href="#section-5.5">5.5</a>. Defined TABLE_DUMP Subtype Codes . . . . . . . . . . . . . <a href="#page-19">19</a>
<a href="#section-5.6">5.6</a>. Defined TABLE_DUMP_V2 Subtype Codes . . . . . . . . . . . <a href="#page-19">19</a>
<a href="#section-5.7">5.7</a>. Defined BGP4MP and BGP4MP_ET Subtype Codes . . . . . . . . <a href="#page-20">20</a>
<a href="#section-6">6</a>. Security Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-20">20</a>
<a href="#section-7">7</a>. References . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-21">21</a>
<a href="#section-7.1">7.1</a>. Normative References . . . . . . . . . . . . . . . . . . . <a href="#page-21">21</a>
<a href="#section-7.2">7.2</a>. Informative References . . . . . . . . . . . . . . . . . . <a href="#page-21">21</a>
<span class="grey">Blunk, et al. Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
<a href="#appendix-A">Appendix A</a>. MRT Encoding Examples . . . . . . . . . . . . . . . . <a href="#page-23">23</a>
<a href="#appendix-B">Appendix B</a>. Deprecated MRT Types . . . . . . . . . . . . . . . . <a href="#page-26">26</a>
<a href="#appendix-B.1">B.1</a>. Deprecated MRT Informational Types . . . . . . . . . . . . <a href="#page-26">26</a>
<a href="#appendix-B.1.1">B.1.1</a>. NULL Type . . . . . . . . . . . . . . . . . . . . . . <a href="#page-26">26</a>
<a href="#appendix-B.1.2">B.1.2</a>. START Type . . . . . . . . . . . . . . . . . . . . . . <a href="#page-27">27</a>
<a href="#appendix-B.1.3">B.1.3</a>. DIE Type . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-27">27</a>
<a href="#appendix-B.1.4">B.1.4</a>. I_AM_DEAD Type . . . . . . . . . . . . . . . . . . . . <a href="#page-27">27</a>
<a href="#appendix-B.1.5">B.1.5</a>. PEER_DOWN Type . . . . . . . . . . . . . . . . . . . . <a href="#page-27">27</a>
<a href="#appendix-B.2">B.2</a>. Other Deprecated MRT Types . . . . . . . . . . . . . . . . <a href="#page-27">27</a>
<a href="#appendix-B.2.1">B.2.1</a>. BGP Type . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-27">27</a>
<a href="#appendix-B.2.2">B.2.2</a>. RIP Type . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-30">30</a>
<a href="#appendix-B.2.3">B.2.3</a>. IDRP Type . . . . . . . . . . . . . . . . . . . . . . <a href="#page-30">30</a>
<a href="#appendix-B.2.4">B.2.4</a>. RIPNG Type . . . . . . . . . . . . . . . . . . . . . . <a href="#page-31">31</a>
<a href="#appendix-B.2.5">B.2.5</a>. BGP4PLUS and BGP4PLUS_01 Types . . . . . . . . . . . . <a href="#page-31">31</a>
<a href="#appendix-B.2.6">B.2.6</a>. Deprecated BGP4MP Subtypes . . . . . . . . . . . . . . <a href="#page-32">32</a>
<a href="#appendix-C">Appendix C</a>. Acknowledgements . . . . . . . . . . . . . . . . . . <a href="#page-34">34</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
Researchers and engineers often wish to analyze network behavior by
studying routing protocol transactions and routing information base
snapshots. To this end, the MRT record format was developed to
encapsulate, export, and archive this information in a standardized
data representation.
The BGP routing protocol, in particular, has been the subject of
extensive study and analysis, which have been significantly aided by
the availability of the MRT format. Two examples of large-scale MRT-
based BGP archival projects include the University of Oregon Route
Views Project and the RIPE NCC Routing Information Service (RIS).
The MRT format was initially defined in the MRT Programmer's Guide
[<a href="#ref-MRT_PROG_GUIDE" title=""MRT Programmer's Guide"">MRT_PROG_GUIDE</a>]. Subsequent extensions were made in the GNU Zebra
software routing suite and the Sprint Advanced Technology Labs Python
Routing Toolkit (PyRT). Further extensions may be introduced at a
later date through additional definitions of the MRT Type field and
Subtype fields.
A number of MRT record types listed in the MRT Programmer's Guide
[<a href="#ref-MRT_PROG_GUIDE" title=""MRT Programmer's Guide"">MRT_PROG_GUIDE</a>] are not known to have been implemented and, in some
cases, were incompletely specified. Further, several types were
employed in early MRT implementations, but saw limited use and were
updated by improved versions. These types are considered to be
deprecated and are documented in the Deprecated MRT Types
(Appendix B) section at the end of this document. The deprecated
types consist of codes 0 through 10 inclusive. Some of the
deprecated types may be of interest to researchers examining
historical MRT format archives.
<span class="grey">Blunk, et al. Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
Fields which contain multi-octet numeric values are encoded in
network octet order from most significant octet to least significant
octet. Fields that contain routing message fields are encoded in the
same order as they appear in the packet contents.
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>. Specification of Requirements</span>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. MRT Common Header</span>
All MRT format records have a Common Header that consists of a
Timestamp, Type, Subtype, and Length field. The header is followed
by a Message field. The MRT Common Header is illustrated below.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Timestamp |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Subtype |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Message... (variable)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 1: MRT Common Header
Header Field Descriptions:
Timestamp:
A 4-octet field whose integer value is the number of seconds,
excluding leap seconds, elapsed since midnight proleptic
Coordinated Universal Time (UTC). This representation of time
is sometimes called "UNIX time" [<a href="#ref-POSIX" title=""P1003.1, Information Technology Portable Operating System Interface (POSIX) Part 1: System Application Program Interface (API) [C Language], 1990."">POSIX</a>]. This time format
cannot represent time values prior to January 1, 1970. The
latest UTC time value that can be represented by a 4-octet
integer value is 03:14:07 on January 19, 2038, which is
represented by the hexadecimal value 7FFFFFFF. Implementations
that wish to create MRT records after this date will need to
provide an alternate EPOCH time base for the Timestamp field.
Mechanisms for indicating this alternate EPOCH are currently
outside the scope of this document.
<span class="grey">Blunk, et al. Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
Type:
A 2-octet field that indicates the Type of information
contained in the Message field. Types 0 through 4 are
informational messages pertaining to the state of an MRT
collector, while Types 5 and higher are used to convey routing
information.
Subtype:
A 2-octet field that is used to further distinguish message
information within a particular record Type.
Length:
A 4-octet message length field. The Length field contains the
number of octets within the message. The Length field does not
include the length of the MRT Common Header.
Message:
A variable-length message. The contents of this field are
context dependent upon the Type and Subtype fields.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Extended Timestamp MRT Header</span>
Several MRT format record types support a variant type with an
extended timestamp field. The purpose of this field is to support
measurements at sub-second resolutions. This field, Microsecond
Timestamp, contains an unsigned 32BIT offset value in microseconds,
which is added to the Timestamp field value. The Timestamp field
remains as defined in the MRT Common Header. The Microsecond
Timestamp immediately follows the Length field in the MRT Common
Header and precedes all other fields in the message. The Microsecond
Timestamp is included in the computation of the Length field value.
The Extended Timestamp MRT Header is illustrated below.
<span class="grey">Blunk, et al. Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Timestamp |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Subtype |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Microsecond Timestamp |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Message... (variable)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 2: Extended Timestamp MRT Header
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. MRT Types</span>
The following MRT Types are currently defined for the MRT format.
The MRT Types that contain the "_ET" suffix in their names identify
those types that use an Extended Timestamp MRT Header. The Subtype
and Message fields in these types remain as defined for the MRT Types
of the same name without the "_ET" suffix.
11 OSPFv2
12 TABLE_DUMP
13 TABLE_DUMP_V2
16 BGP4MP
17 BGP4MP_ET
32 ISIS
33 ISIS_ET
48 OSPFv3
49 OSPFv3_ET
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. OSPFv2 Type</span>
This type supports the OSPFv2 protocol as defined in <a href="./rfc2328">RFC 2328</a>
[<a href="./rfc2328" title=""OSPF Version 2"">RFC2328</a>]. It is used to encode the exchange of OSPF protocol
packets.
<span class="grey">Blunk, et al. Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
The format of the MRT Message field for the OSPFv2 Type is as
follows:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Remote IP Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Local IP Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| OSPF Message Contents (variable)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 3: OSPFv2 Type
The Remote IP Address field contains the Source IPv4 [<a href="./rfc0791" title=""Internet Protocol"">RFC0791</a>]
address from the IP header of the OSPF message. The Local IP Address
contains the Destination IPv4 address from the IP header. The OSPF
Message Contents field contains the complete contents of the OSPF
packet following the IP header.
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. TABLE_DUMP Type</span>
The TABLE_DUMP Type is used to encode the contents of a BGP Routing
Information Base (RIB). Each RIB entry is encoded in a distinct
sequential MRT record. It is RECOMMENDED that new MRT encoding
implementations use the TABLE_DUMP_V2 Type (see below) instead of the
TABLE_DUMP Type due to limitations in this type. However, due to the
significant volume of historical data encoded with this type, MRT
decoding applications MAY wish to support this type.
The Subtype field is used to encode whether the RIB entry contains
IPv4 or IPv6 [<a href="./rfc2460" title=""Internet Protocol, Version 6 (IPv6) Specification"">RFC2460</a>] addresses. There are two possible values for
the Subtype as shown below.
1 AFI_IPv4
2 AFI_IPv6
<span class="grey">Blunk, et al. Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
The format of the TABLE_DUMP Type is illustrated below.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| View Number | Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Prefix (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Prefix Length | Status |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Originated Time |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer IP Address (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer AS | Attribute Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| BGP Attribute... (variable)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 4: TABLE_DUMP Type
The View Number field is normally 0 and is intended for cases where
an implementation may have multiple RIB views (such as a route
server). In cases where multiple RIB views are present, an
implementation MAY use the View Number field to distinguish entries
from each view. The Sequence Number field is a simple incremental
counter for each RIB entry. A typical RIB dump will exceed the
16-bit bounds of this counter, and an implementation SHOULD simply
wrap back to zero and continue incrementing the counter in such
cases.
The Prefix field contains the IP address of a particular RIB entry.
The size of this field is dependent on the value of the Subtype for
this record. The AFI_IPv4 Subtype value specifies an Address Family
Identifier (AFI) type of IPv4 [<a href="#ref-IANA-AF" title=""Address Family Numbers"">IANA-AF</a>]. It specifies a Prefix field
length of 4 octets. For AFI_IPv6, it is 16 octets in length. The
Prefix Length field indicates the length in bits of the prefix mask
for the preceding Prefix field.
The Status octet is unused in the TABLE_DUMP Type and SHOULD be set
to 1.
The Originated Time contains the 4-octet time at which this prefix
was heard. The value represents the time in seconds since 1 January
1970 00:00:00 UTC.
<span class="grey">Blunk, et al. Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
The Peer IP Address field is the IP address of the peer that provided
the update for this RIB entry. As with the Prefix field, the size of
this field is dependent on the Subtype. AFI_IPv4 indicates a 4-octet
field and an IPv4 address, while a Subtype of AFI_IPv6 requires a
16-octet field and an IPv6 address. The Peer AS field contains the
2-octet Autonomous System (AS) number of the peer.
The TABLE_DUMP Type does not permit 4-byte Peer AS numbers, nor does
it allow the AFI of the peer IP to differ from the AFI of the Prefix
field. The TABLE_DUMP_V2 Type MUST be used in these situations.
Attribute Length contains the length of the Attribute field and is 2
octets. The BGP Attribute field contains the BGP attribute
information for the RIB entry. The AS_PATH attribute MUST only
consist of 2-byte AS numbers. The TABLE_DUMP_V2 supports 4-byte AS
numbers in the AS_PATH attribute.
<span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a>. TABLE_DUMP_V2 Type</span>
The TABLE_DUMP_V2 Type updates the TABLE_DUMP Type to include 4-byte
Autonomous System Number (ASN) support and full support for BGP
multiprotocol extensions. It also improves upon the space efficiency
of the TABLE_DUMP Type by employing an index table for peers and
permitting a single MRT record per Network Layer Reachability
Information (NLRI) entry. The following subtypes are used with the
TABLE_DUMP_V2 Type.
1 PEER_INDEX_TABLE
2 RIB_IPV4_UNICAST
3 RIB_IPV4_MULTICAST
4 RIB_IPV6_UNICAST
5 RIB_IPV6_MULTICAST
6 RIB_GENERIC
<span class="h4"><a class="selflink" id="section-4.3.1" href="#section-4.3.1">4.3.1</a>. PEER_INDEX_TABLE Subtype</span>
An initial PEER_INDEX_TABLE MRT record provides the BGP ID of the
collector, an OPTIONAL view name, and a list of indexed peers.
Following the PEER_INDEX_TABLE MRT record, a series of MRT records is
used to encode RIB table entries. This series of MRT records uses
subtypes 2-6 and is separate from the PEER_INDEX_TABLE MRT record
itself and includes full MRT record headers. The RIB entry MRT
records MUST immediately follow the PEER_INDEX_TABLE MRT record.
The header of the PEER_INDEX_TABLE Subtype is shown below. The View
Name is OPTIONAL and, if not present, the View Name Length MUST be
set to 0. The View Name encoding MUST follow the UTF-8
transformation format [<a href="./rfc3629" title=""UTF-8, a transformation format of ISO 10646"">RFC3629</a>].
<span class="grey">Blunk, et al. Standards Track [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Collector BGP ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| View Name Length | View Name (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer Count | Peer Entries (variable)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 5: PEER_INDEX_TABLE Subtype
The format of the Peer Entries is shown below. The PEER_INDEX_TABLE
record contains Peer Count number of Peer Entries.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer Type |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer BGP ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer IP Address (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer AS (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 6: Peer Entries
The Peer Type, Peer BGP ID, Peer IP Address, and Peer AS fields are
repeated as indicated by the Peer Count field. The position of the
peer in the PEER_INDEX_TABLE is used as an index in the subsequent
TABLE_DUMP_V2 MRT records. The index number begins with 0.
The Peer Type field is a bit field that encodes the type of the AS
and IP address as identified by the A and I bits, respectively,
below.
0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+
| | | | | | |A|I|
+-+-+-+-+-+-+-+-+
Bit 6: Peer AS number size: 0 = 16 bits, 1 = 32 bits
Bit 7: Peer IP Address family: 0 = IPv4, 1 = IPv6
Figure 7: Peer Type Field
<span class="grey">Blunk, et al. Standards Track [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
The MRT records that follow the PEER_INDEX_TABLE MRT record consist
of the subtypes listed below and contain the actual RIB table
entries. They include a header that specifies a sequence number, an
NLRI field, and a count of the number of RIB entries contained within
the record.
<span class="h4"><a class="selflink" id="section-4.3.2" href="#section-4.3.2">4.3.2</a>. AFI/SAFI-Specific RIB Subtypes</span>
The AFI/SAFI-specific RIB Subtypes consist of the RIB_IPV4_UNICAST,
RIB_IPV4_MULTICAST, RIB_IPV6_UNICAST, and RIB_IPV6_MULTICAST
Subtypes. These specific RIB table entries are given their own MRT
TABLE_DUMP_V2 subtypes as they are the most common type of RIB table
instances, and providing specific MRT subtypes for them permits more
compact encodings. These subtypes permit a single MRT record to
encode multiple RIB table entries for a single prefix. The Prefix
Length and Prefix fields are encoded in the same manner as the BGP
NLRI encoding for IPv4 and IPv6 prefixes. Namely, the Prefix field
contains address prefixes followed by enough trailing bits to make
the end of the field fall on an octet boundary. The value of
trailing bits is irrelevant.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Prefix Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Prefix (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Entry Count | RIB Entries (variable)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 8: RIB Entry Header
<span class="h4"><a class="selflink" id="section-4.3.3" href="#section-4.3.3">4.3.3</a>. RIB_GENERIC Subtype</span>
The RIB_GENERIC header is shown below. It is used to cover RIB
entries that do not fall under the common case entries defined above.
It consists of an AFI, Subsequent AFI (SAFI), and a single NLRI
entry. The NLRI information is specific to the AFI and SAFI values.
An implementation that does not recognize particular AFI and SAFI
values SHOULD discard the remainder of the MRT record.
<span class="grey">Blunk, et al. Standards Track [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Address Family Identifier |Subsequent AFI |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Network Layer Reachability Information (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Entry Count | RIB Entries (variable)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 9: RIB_GENERIC Entry Header
<span class="h4"><a class="selflink" id="section-4.3.4" href="#section-4.3.4">4.3.4</a>. RIB Entries</span>
The RIB Entries are repeated Entry Count times. These entries share
a common format as shown below. They include a Peer Index from the
PEER_INDEX_TABLE MRT record, an originated time for the RIB Entry,
and the BGP path attribute length and attributes. All AS numbers in
the AS_PATH attribute MUST be encoded as 4-byte AS numbers.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer Index |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Originated Time |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Attribute Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| BGP Attributes... (variable)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 10: RIB Entries
There is one exception to the encoding of BGP attributes for the BGP
MP_REACH_NLRI attribute (BGP Type Code 14) [<a href="./rfc4760" title=""Multiprotocol Extensions for BGP-4"">RFC4760</a>]. Since the AFI,
SAFI, and NLRI information is already encoded in the RIB Entry Header
or RIB_GENERIC Entry Header, only the Next Hop Address Length and
Next Hop Address fields are included. The Reserved field is omitted.
The attribute length is also adjusted to reflect only the length of
the Next Hop Address Length and Next Hop Address fields.
<span class="grey">Blunk, et al. Standards Track [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
<span class="h3"><a class="selflink" id="section-4.4" href="#section-4.4">4.4</a>. BGP4MP Type</span>
This type was initially defined in the Zebra software package for the
BGP protocol with multiprotocol extension support as defined by <a href="./rfc4760">RFC</a>
<a href="./rfc4760">4760</a> [<a href="./rfc4760" title=""Multiprotocol Extensions for BGP-4"">RFC4760</a>]. The BGP4MP Type has six Subtypes, which are defined
as follows:
0 BGP4MP_STATE_CHANGE
1 BGP4MP_MESSAGE
4 BGP4MP_MESSAGE_AS4
5 BGP4MP_STATE_CHANGE_AS4
6 BGP4MP_MESSAGE_LOCAL
7 BGP4MP_MESSAGE_AS4_LOCAL
<span class="h4"><a class="selflink" id="section-4.4.1" href="#section-4.4.1">4.4.1</a>. BGP4MP_STATE_CHANGE Subtype</span>
This message is used to encode state changes in the BGP finite state
machine (FSM). The BGP FSM states are encoded in the Old State and
New State fields to indicate the previous and current state. In some
cases, the Peer AS Number may be undefined. In such cases, the value
of this field MAY be set to zero. The format is illustrated below:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer AS Number | Local AS Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Interface Index | Address Family |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer IP Address (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Local IP Address (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Old State | New State |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 11: BGP4MP_STATE_CHANGE Subtype
The FSM states are defined in <a href="./rfc4271">RFC 4271</a> <a href="./rfc4271#section-8.2.2">[RFC4271], Section 8.2.2</a>.
Both the Old State value and the New State value are encoded as
2-octet numbers. The state values are defined numerically as
follows:
<span class="grey">Blunk, et al. Standards Track [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
1 Idle
2 Connect
3 Active
4 OpenSent
5 OpenConfirm
6 Established
The BGP4MP_STATE_CHANGE message also includes Interface Index and
Address Family fields. The Interface Index provides the interface
number of the peering session. The index value is OPTIONAL and MAY
be zero if unknown or unsupported. The Address Family indicates what
types of addresses are in the address fields. At present, the
following AFI Types are supported:
1 AFI_IPv4
2 AFI_IPv6
<span class="h4"><a class="selflink" id="section-4.4.2" href="#section-4.4.2">4.4.2</a>. BGP4MP_MESSAGE Subtype</span>
This subtype is used to encode BGP messages. It can be used to
encode any Type of BGP message. The entire BGP message is
encapsulated in the BGP Message field, including the 16-octet marker,
the 2-octet length, and the 1-octet type fields. The BGP4MP_MESSAGE
Subtype does not support 4-byte AS numbers. The AS_PATH contained in
these messages MUST only consist of 2-byte AS numbers. The
BGP4MP_MESSAGE_AS4 Subtype updates the BGP4MP_MESSAGE Subtype in
order to support 4-byte AS numbers. The BGP4MP_MESSAGE fields are
shown below:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer AS Number | Local AS Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Interface Index | Address Family |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer IP Address (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Local IP Address (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| BGP Message... (variable)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 12: BGP4MP_MESSAGE Subtype
<span class="grey">Blunk, et al. Standards Track [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
The Interface Index provides the interface number of the peering
session. The index value is OPTIONAL and MAY be zero if unknown or
unsupported. The Address Family indicates what types of addresses
are in the subsequent address fields. At present, the following AFI
Types are supported:
1 AFI_IPv4
2 AFI_IPv6
The Address Family value only applies to the IP addresses contained
in the MRT header. The BGP4MP_MESSAGE Subtype is otherwise
transparent to the contents of the actual message that may contain
any valid AFI/SAFI values. Only one BGP message SHALL be encoded in
the BGP4MP_MESSAGE Subtype.
<span class="h4"><a class="selflink" id="section-4.4.3" href="#section-4.4.3">4.4.3</a>. BGP4MP_MESSAGE_AS4 Subtype</span>
This subtype updates the BGP4MP_MESSAGE Subtype to support 4-byte AS
numbers. The BGP4MP_MESSAGE_AS4 Subtype is otherwise identical to
the BGP4MP_MESSAGE Subtype. The AS_PATH in these messages MUST only
consist of 4-byte AS numbers. The BGP4MP_MESSAGE_AS4 fields are
shown below:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer AS Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Local AS Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Interface Index | Address Family |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer IP Address (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Local IP Address (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| BGP Message... (variable)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 13: BGP4MP_MESSAGE_AS4 Subtype
<span class="h4"><a class="selflink" id="section-4.4.4" href="#section-4.4.4">4.4.4</a>. BGP4MP_STATE_CHANGE_AS4 Subtype</span>
This subtype updates the BGP4MP_STATE_CHANGE Subtype to support
4-byte AS numbers. As with the BGP4MP_STATE_CHANGE Subtype, the BGP
FSM states are encoded in the Old State and New State fields to
indicate the previous and current state. Aside from the extension of
the Peer and Local AS Number fields to 4 bytes, this subtype is
<span class="grey">Blunk, et al. Standards Track [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
otherwise identical to the BGP4MP_STATE_CHANGE Subtype. The
BGP4MP_STATE_CHANGE_AS4 fields are shown below:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer AS Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Local AS Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Interface Index | Address Family |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer IP Address (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Local IP Address (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Old State | New State |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 14: BGP4MP_STATE_CHANGE_AS4 Subtype
<span class="h4"><a class="selflink" id="section-4.4.5" href="#section-4.4.5">4.4.5</a>. BGP4MP_MESSAGE_LOCAL Subtype</span>
Implementations of MRT have largely focused on collecting remotely
generated BGP messages in a passive route collector role. However,
for active BGP implementations, it can be useful to archive locally
generated BGP messages in addition to remote messages. This subtype
is added to indicate a locally generated BGP message. The fields
remain identical to the BGP4MP_MESSAGE type including the Peer and
Local IP and AS fields. The Local fields continue to refer to the
local IP and AS number of the collector that generated the BGP
message, and the Peer IP and AS fields refer to the recipient of the
generated BGP messages.
<span class="h4"><a class="selflink" id="section-4.4.6" href="#section-4.4.6">4.4.6</a>. BGP4MP_MESSAGE_AS4_LOCAL Subtype</span>
As with the BGP4MP_MESSAGE_LOCAL type, this type indicates locally
generated messages. The fields are identical to the
BGP4MP_MESSAGE_AS4 message type.
<span class="h3"><a class="selflink" id="section-4.5" href="#section-4.5">4.5</a>. ISIS Type</span>
This type supports the IS-IS routing protocol as defined in <a href="./rfc1195">RFC 1195</a>
[<a href="./rfc1195" title=""Use of OSI IS-IS for routing in TCP/IP and dual environments"">RFC1195</a>]. There is no Type-specific header for the ISIS Type. The
Subtype code for this type is undefined. The ISIS PDU directly
follows the MRT Common Header fields.
<span class="grey">Blunk, et al. Standards Track [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
<span class="h3"><a class="selflink" id="section-4.6" href="#section-4.6">4.6</a>. OSPFv3 Type</span>
The OSPFv3 Type extends the original OSPFv2 Type to support IPv6
addresses for the OSPFv3 protocol as defined in <a href="./rfc5340">RFC 5340</a> [<a href="./rfc5340" title=""OSPF for IPv6"">RFC5340</a>].
The format of the MRT Message field for the OSPFv3 Type is as
follows:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Address Family |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Remote IP Address (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Local IP Address (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| OSPF Message Contents (variable)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 15: OSPFv3 Type
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. IANA Considerations</span>
This section provides guidance to the Internet Assigned Numbers
Authority (IANA) regarding registration of values related to the MRT
specification, in accordance with <a href="https://www.rfc-editor.org/bcp/bcp26">BCP 26</a>, <a href="./rfc5226">RFC 5226</a> [<a href="./rfc5226" title="">RFC5226</a>].
There are two name spaces in MRT that have been registered: Type
Codes and Subtype Codes. Type Codes and Subtype Codes are each 16
bits in length.
MRT is not intended as a general-purpose specification for protocol
information export, and allocations should not be made for purposes
unrelated to routing protocol information export.
The following policies are used here with the meanings defined in <a href="https://www.rfc-editor.org/bcp/bcp26">BCP</a>
<a href="https://www.rfc-editor.org/bcp/bcp26">26</a>: "Specification Required", "IETF Consensus", "Experimental Use",
"First Come First Served". Assignments consist of a name and the
value.
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. Type Codes</span>
Type Codes have a range from 0 to 65535, of which 0-64 are reserved.
New Type Codes MUST be allocated starting at 65. Type Codes 65-511
are assigned by IETF Review. Type Codes 512-2047 are assigned based
on Specification Required. Type Codes 2048-64511 are available on a
<span class="grey">Blunk, et al. Standards Track [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
First Come First Served policy. Type Codes 64512 - 65534 are
available for Experimental Use. The Type Code Value 65535 is
reserved.
<span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a>. Subtype Codes</span>
Subtype Codes have a range from 0 to 65535. Subtype definitions are
specific to a particular Type Code definition. New Subtype Code
definitions must reference an existing Type Code to which the Subtype
belongs. Subtype assignments follow the assignment rules for the
Type Codes to which they belong.
<span class="h3"><a class="selflink" id="section-5.3" href="#section-5.3">5.3</a>. Defined Type Codes</span>
This document defines the following message Type Codes:
Name Value Definition
---- ----- ----------
NULL 0 See <a href="#appendix-B.1.1">Appendix B.1.1</a>
START 1 See <a href="#appendix-B.1.2">Appendix B.1.2</a>
DIE 2 See <a href="#appendix-B.1.3">Appendix B.1.3</a>
I_AM_DEAD 3 See <a href="#appendix-B.1.4">Appendix B.1.4</a>
PEER_DOWN 4 See <a href="#appendix-B.1.5">Appendix B.1.5</a>
BGP 5 See <a href="#appendix-B.2.1">Appendix B.2.1</a>
RIP 6 See <a href="#appendix-B.2.2">Appendix B.2.2</a>
IDRP 7 See <a href="#appendix-B.2.3">Appendix B.2.3</a>
RIPNG 8 See <a href="#appendix-B.2.4">Appendix B.2.4</a>
BGP4PLUS 9 See <a href="#appendix-B.2.5">Appendix B.2.5</a>
BGP4PLUS_01 10 See <a href="#appendix-B.2.5">Appendix B.2.5</a>
OSPFv2 11 See <a href="#section-4.1">Section 4.1</a>
TABLE_DUMP 12 See <a href="#section-4.2">Section 4.2</a>
TABLE_DUMP_V2 13 See <a href="#section-4.3">Section 4.3</a>
BGP4MP 16 See <a href="#section-4.4">Section 4.4</a>
BGP4MP_ET 17 See <a href="#section-4.4">Section 4.4</a>
ISIS 32 See <a href="#section-4.5">Section 4.5</a>
ISIS_ET 33 See <a href="#section-4.5">Section 4.5</a>
OSPFv3 48 See <a href="#section-4.6">Section 4.6</a>
OSPFv3_ET 49 See <a href="#section-4.6">Section 4.6</a>
<span class="grey">Blunk, et al. Standards Track [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
<span class="h3"><a class="selflink" id="section-5.4" href="#section-5.4">5.4</a>. Defined BGP, BGP4PLUS, and BGP4PLUS_01 Subtype Codes</span>
This document defines the following message Subtype Codes for the
BGP, BGP4PLUS, and BGP4PLUS_01 Types:
Name Value Definition
---- ----- ----------
BGP_NULL 0 See <a href="#appendix-B.2.1">Appendix B.2.1</a>
BGP_UPDATE 1 See <a href="#appendix-B.2.1">Appendix B.2.1</a>
BGP_PREF_UPDATE 2 See <a href="#appendix-B.2.1">Appendix B.2.1</a>
BGP_STATE_CHANGE 3 See <a href="#appendix-B.2.1">Appendix B.2.1</a>
BGP_SYNC 4 See <a href="#appendix-B.2.1">Appendix B.2.1</a>
BGP_OPEN 5 See <a href="#appendix-B.2.1">Appendix B.2.1</a>
BGP_NOTIFY 6 See <a href="#appendix-B.2.1">Appendix B.2.1</a>
BGP_KEEPALIVE 7 See <a href="#appendix-B.2.1">Appendix B.2.1</a>
<span class="h3"><a class="selflink" id="section-5.5" href="#section-5.5">5.5</a>. Defined TABLE_DUMP Subtype Codes</span>
This document defines the following message Subtype Codes for the
TABLE_DUMP Type:
Name Value Definition
---- ----- ----------
AFI_IPv4 1 See <a href="#section-4.2">Section 4.2</a>
AFI_IPv6 2 See <a href="#section-4.2">Section 4.2</a>
<span class="h3"><a class="selflink" id="section-5.6" href="#section-5.6">5.6</a>. Defined TABLE_DUMP_V2 Subtype Codes</span>
This document defines the following message Subtype Codes for the
TABLE_DUMP_V2 Type:
Name Value Definition
---- ----- ----------
PEER_INDEX_TABLE 1 See <a href="#section-4.3">Section 4.3</a>
RIB_IPV4_UNICAST 2 See <a href="#section-4.3">Section 4.3</a>
RIB_IPV4_MULTICAST 3 See <a href="#section-4.3">Section 4.3</a>
RIB_IPV6_UNICAST 4 See <a href="#section-4.3">Section 4.3</a>
RIB_IPV6_MULTICAST 5 See <a href="#section-4.3">Section 4.3</a>
RIB_GENERIC 6 See <a href="#section-4.3">Section 4.3</a>
<span class="grey">Blunk, et al. Standards Track [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
<span class="h3"><a class="selflink" id="section-5.7" href="#section-5.7">5.7</a>. Defined BGP4MP and BGP4MP_ET Subtype Codes</span>
This document defines the following message Subtype Codes for the
BGP4MP Type:
Name Value Definition
---- ----- ----------
BGP4MP_STATE_CHANGE 0 See <a href="#section-4.4">Section 4.4</a>
BGP4MP_MESSAGE 1 See <a href="#section-4.4">Section 4.4</a>
BGP4MP_ENTRY 2 See <a href="#section-4.4">Section 4.4</a>
BGP4MP_SNAPSHOT 3 See <a href="#section-4.4">Section 4.4</a>
BGP4MP_MESSAGE_AS4 4 See <a href="#section-4.4">Section 4.4</a>
BGP4MP_STATE_CHANGE_AS4 5 See <a href="#section-4.4">Section 4.4</a>
BGP4MP_MESSAGE_LOCAL 6 See <a href="#section-4.4">Section 4.4</a>
BGP4MP_MESSAGE_AS4_LOCAL 7 See <a href="#section-4.4">Section 4.4</a>
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Security Considerations</span>
The MRT Format utilizes a structure that can store routing protocol
information data. The fields defined in the MRT specification are of
a descriptive nature and provide information that is useful to
facilitate the analysis of routing data. As such, the fields
currently defined in the MRT specification do not in themselves
create additional security risks, since the fields are not used to
induce any particular behavior by the recipient application.
Some information contained in an MRT data structure might be
considered sensitive or private. For example, a BGP peer that sends
a message to an MRT-enabled router might not expect that message to
be shared beyond the AS to which it is sent.
Information that could be considered sensitive includes BGP peer IP
addresses, BGP Next Hop IP addresses, and BGP Path Attributes. Such
information could be useful to mount attacks against the BGP protocol
and routing infrastructure. <a href="./rfc4272">RFC 4272</a> [<a href="./rfc4272" title=""BGP Security Vulnerabilities Analysis"">RFC4272</a>] examines a number of
weaknesses in the BGP protocol that could potentially be exploited.
An organization that intends to use the MRT structure to export
routing information beyond the domain where it is normally accessible
(e.g., publishing MRT dumps for use by researchers) should verify
with any peers whose information might be included, and possibly
remove sensitive fields.
The proposed geolocation extension to MRT could reveal the location
of an MRT router's peers [<a href="#ref-GEOMRT" title=""Multi-Threaded Routing Toolkit (MRT) Border Gateway Protocol (BGP) Routing Information Export Format with Geo-Location Extensions"">GEOMRT</a>].
<span class="grey">Blunk, et al. Standards Track [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. References</span>
<span class="h3"><a class="selflink" id="section-7.1" href="#section-7.1">7.1</a>. Normative References</span>
[<a id="ref-IANA-AF">IANA-AF</a>] IANA, "Address Family Numbers",
<<a href="http://www.iana.org/numbers.html">http://www.iana.org/numbers.html</a>>.
[<a id="ref-RFC0791">RFC0791</a>] Postel, J., "Internet Protocol", STD 5, <a href="./rfc791">RFC 791</a>,
September 1981.
[<a id="ref-RFC1195">RFC1195</a>] Callon, R., "Use of OSI IS-IS for routing in TCP/IP
and dual environments", <a href="./rfc1195">RFC 1195</a>, December 1990.
[<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-RFC2328">RFC2328</a>] Moy, J., "OSPF Version 2", STD 54, <a href="./rfc2328">RFC 2328</a>,
April 1998.
[<a id="ref-RFC2460">RFC2460</a>] Deering, S. and R. Hinden, "Internet Protocol,
Version 6 (IPv6) Specification", <a href="./rfc2460">RFC 2460</a>,
December 1998.
[<a id="ref-RFC3629">RFC3629</a>] Yergeau, F., "UTF-8, a transformation format of ISO
10646", STD 63, <a href="./rfc3629">RFC 3629</a>, November 2003.
[<a id="ref-RFC4271">RFC4271</a>] Rekhter, Y., Li, T., and S. Hares, "A Border
Gateway Protocol 4 (BGP-4)", <a href="./rfc4271">RFC 4271</a>,
January 2006.
[<a id="ref-RFC4760">RFC4760</a>] Bates, T., Chandra, R., Katz, D., and Y. Rekhter,
"Multiprotocol Extensions for BGP-4", <a href="./rfc4760">RFC 4760</a>,
January 2007.
[<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-RFC5340">RFC5340</a>] Coltun, R., Ferguson, D., Moy, J., and A. Lindem,
"OSPF for IPv6", <a href="./rfc5340">RFC 5340</a>, July 2008.
<span class="h3"><a class="selflink" id="section-7.2" href="#section-7.2">7.2</a>. Informative References</span>
[<a id="ref-GEOMRT">GEOMRT</a>] Manderson, T., "Multi-Threaded Routing Toolkit
(MRT) Border Gateway Protocol (BGP) Routing
Information Export Format with Geo-Location
Extensions", <a href="./rfc6397">RFC 6397</a>, October 2011.
<span class="grey">Blunk, et al. Standards Track [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
[<a id="ref-MRT_PROG_GUIDE">MRT_PROG_GUIDE</a>] Labovitz, C., "MRT Programmer's Guide",
November 1999, <<a href="http://www.merit.edu/networkresearch/mrtprogrammer.pdf">http://www.merit.edu/</a>
<a href="http://www.merit.edu/networkresearch/mrtprogrammer.pdf">networkresearch/mrtprogrammer.pdf</a>>.
[<a id="ref-POSIX">POSIX</a>] Institute of Electrical and Electronics Engineers,
"P1003.1, Information Technology Portable Operating
System Interface (POSIX) Part 1: System Application
Program Interface (API) [C Language], 1990.",
IEEE Standard P1003.1.
[<a id="ref-RFC2080">RFC2080</a>] Malkin, G. and R. Minnear, "RIPng for IPv6",
<a href="./rfc2080">RFC 2080</a>, January 1997.
[<a id="ref-RFC2453">RFC2453</a>] Malkin, G., "RIP Version 2", STD 56, <a href="./rfc2453">RFC 2453</a>,
November 1998.
[<a id="ref-RFC4272">RFC4272</a>] Murphy, S., "BGP Security Vulnerabilities
Analysis", <a href="./rfc4272">RFC 4272</a>, January 2006.
<span class="grey">Blunk, et al. Standards Track [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
<span class="h2"><a class="selflink" id="appendix-A" href="#appendix-A">Appendix A</a>. MRT Encoding Examples</span>
This appendix, which is not normative, contains MRT encoding
examples.
The following example shows the encoding for an MRT record type of
BGP4MP and subtype BGP4MP_MESSAGE_AS4. The Peer AS and Local AS
numbers are encoded in 4-byte fields due to the use of the
BGP4MP_MESSAGE_AS4 subtype. The encoded BGP Update is shown in
hexadecimal. The AS numbers in the ASPATH in the BGP Update are
encoded as 4-byte values in accord with the MRT BGP4MP_MESSAGE_AS4
subtype.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Timestamp = 1300475700 epoch sec (2011-03-18 19:15:00) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type = 16 | Subtype = 4 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Length = 82 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer AS = 64496 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Local AS = 64497 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Interface Index = 0 | Address Family = 1 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer IP Address = 192.0.2.85 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Local IP Address = 198.51.100.4 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| BGP Update =
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
00 3e 02 00 00 00 1f 40 01 01 02 40 02 0e 02 03
00 00 fb f0 00 00 fb ff 00 00 fb f6 40 03 04 c6
33 64 55 c0 08 04 fb f0 00 0e 18 cb 00 71
Figure 16: MRT BGP4MP_MESSAGE_AS4 Example
<span class="grey">Blunk, et al. Standards Track [Page 23]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-24" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
The contents of the BGP Update Message above are as follows:
ORIGIN: INCOMPLETE
ASPATH: 64496 64511 64502
NEXT_HOP: 198.51.100.188
COMMUNITY: 64496:14
NLRI: 203.0.113.0/24
Figure 17: BGP Message Contents
The following example displays the encoding for an MRT record type of
TABLE_DUMP_V2 and subtype PEER_INDEX_TABLE. The table in this
example contains 2 entries.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Timestamp = 1300475700 epoch sec (2011-03-18 19:15:00) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type = 13 | Subtype = 1 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Length = 34 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Collector BGP ID = 198.51.100.4 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| View Name Length = 0 | Peer Count = 2 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer Type = 2 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer BGP ID = 198.51.100.5 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer IP Address = 198.51.100.5 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer AS = 65541 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer Type = 2 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer BGP ID = 192.0.2.33 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer IP Address = 192.0.2.33 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer AS = 65542 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 18: MRT PEER_INDEX_TABLE Example
<span class="grey">Blunk, et al. Standards Track [Page 24]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-25" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
The following example displays the encoding for an MRT record type of
TABLE_DUMP_V2 and subtype RIB_IPV6_UNICAST. This entry applies to
the NLRI prefix of 2001:0DB8::/32. There is a single entry for this
prefix. The entry applies to the peer identified by index location
15 in a preceding MRT PEER_INDEX_TABLE record.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Timestamp = 1300475700 epoch sec (2011-03-18 19:15:00) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type = 13 | Subtype = 4 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Length = 87 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Sequence Number = 42 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Preflen = 32 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Prefix = 2001:0DB8::/32 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Entry Count = 1 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer Index = 15 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Originated Time = 1300475700 epoch sec (2011-03-18 19:15:00) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Attribute Length = 68 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| BGP Path Attributes =
40 01 01 00 50 02 00 0e 02 03 00 00 fb f0 00 00
fb ff 00 00 fb f6 80 0e 2b 00 02 01 20 20 01 0d
b8 00 0d 00 ff 00 00 00 00 00 00 01 87 fe 80 00
00 00 00 00 00 02 12 f2 ff fe 9f 1b 00 00 00 20
20 01 0d b8
Figure 19: MRT RIB_IPV6_UNICAST Example
<span class="grey">Blunk, et al. Standards Track [Page 25]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-26" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
The contents of the BGP Path Attribute field above are as follows:
ORIGIN: IGP
ASPATH: 64496 64511 64502
MP_REACH_NLRI(IPv6 Unicast)
NEXT_HOP: 2001:db8:d:ff::187
NEXT_HOP: fe80::212:f2ff:fe9f:1b00
NLRI: 2001:0DB8::/32
Figure 20: BGP Path Attribute Contents
<span class="h2"><a class="selflink" id="appendix-B" href="#appendix-B">Appendix B</a>. Deprecated MRT Types</span>
This appendix lists deprecated MRT types. These types are documented
for informational purposes.
<span class="h3"><a class="selflink" id="appendix-B.1" href="#appendix-B.1">B.1</a>. Deprecated MRT Informational Types</span>
The initial MRT format defined five Informational Type records.
These records were intended to signal the state of an MRT data
collector and do not contain routing information. These records were
intended for use when MRT records were sent over a network to a
remote repository store. However, MRT record repository stores have
traditionally resided on the same device as the collector, and these
Informational Types are not known to be implemented. Further,
transport mechanisms for MRT records are considered to be outside the
scope of this document.
The Message field MAY contain an OPTIONAL string for diagnostic
purposes. The message string encoding MUST follow the UTF-8
transformation format [<a href="./rfc3629" title=""UTF-8, a transformation format of ISO 10646"">RFC3629</a>]. The Subtype field is unused for
these Types and SHOULD be set to 0.
The MRT Informational Types are defined below:
0 NULL
1 START
2 DIE
3 I_AM_DEAD
4 PEER_DOWN
<span class="h4"><a class="selflink" id="appendix-B.1.1" href="#appendix-B.1.1">B.1.1</a>. NULL Type</span>
The NULL Type message causes no operation.
<span class="grey">Blunk, et al. Standards Track [Page 26]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-27" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
<span class="h4"><a class="selflink" id="appendix-B.1.2" href="#appendix-B.1.2">B.1.2</a>. START Type</span>
The START Type indicates that a collector is about to begin
generating MRT records.
<span class="h4"><a class="selflink" id="appendix-B.1.3" href="#appendix-B.1.3">B.1.3</a>. DIE Type</span>
The DIE Type signals a remote MRT repository that it SHOULD stop
accepting messages.
<span class="h4"><a class="selflink" id="appendix-B.1.4" href="#appendix-B.1.4">B.1.4</a>. I_AM_DEAD Type</span>
An I_AM_DEAD MRT record indicates that a collector has shut down and
has stopped generating MRT records.
<span class="h4"><a class="selflink" id="appendix-B.1.5" href="#appendix-B.1.5">B.1.5</a>. PEER_DOWN Type</span>
The PEER_DOWN message was intended to indicate that a collector had
lost association with a BGP peer. However, the MRT format provides
BGP state change message types that duplicate this functionality.
<span class="h3"><a class="selflink" id="appendix-B.2" href="#appendix-B.2">B.2</a>. Other Deprecated MRT Types</span>
5 BGP
6 RIP
7 IDRP
8 RIPNG
9 BGP4PLUS
10 BGP4PLUS_01
<span class="h4"><a class="selflink" id="appendix-B.2.1" href="#appendix-B.2.1">B.2.1</a>. BGP Type</span>
The BGP Type indicates that the Message field contains BGP routing
information. The BGP routing protocol is defined in <a href="./rfc4271">RFC 4271</a>
[<a href="./rfc4271" title=""A Border Gateway Protocol 4 (BGP-4)"">RFC4271</a>]. The information in the message is dependent on the
Subtype value. The BGP Type and all associated Subtypes below are
considered to be deprecated by the BGP4MP Type.
The following BGP Subtypes are defined for the MRT BGP Type. As with
the BGP Type itself, they are all considered to be deprecated.
<span class="grey">Blunk, et al. Standards Track [Page 27]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-28" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
0 BGP_NULL
1 BGP_UPDATE
2 BGP_PREF_UPDATE
3 BGP_STATE_CHANGE
4 BGP_SYNC
5 BGP_OPEN
6 BGP_NOTIFY
7 BGP_KEEPALIVE
<span class="h5"><a class="selflink" id="appendix-B.2.1.1" href="#appendix-B.2.1.1">B.2.1.1</a>. BGP_NULL Subtype</span>
The BGP_NULL Subtype is a reserved Subtype.
<span class="h5"><a class="selflink" id="appendix-B.2.1.2" href="#appendix-B.2.1.2">B.2.1.2</a>. BGP_UPDATE Subtype</span>
The BGP_UPDATE Subtype is used to encode BGP UPDATE messages. The
format of the MRT Message field for this subtype is as follows:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer AS Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer IP Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Local AS Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Local IP Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| BGP UPDATE Contents (variable)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 21: BGP_UPDATE Subtype
The BGP UPDATE Contents include the entire BGP UPDATE message, which
follows the BGP Message Header. The BGP Message Header itself is not
included. The Peer AS Number and IP Address fields contain the AS
number and IP address of the remote system that is generating the BGP
UPDATE messages. The Local AS Number and IP Address fields contain
the AS number and IP address of the local collector system that is
archiving the messages.
<span class="h5"><a class="selflink" id="appendix-B.2.1.3" href="#appendix-B.2.1.3">B.2.1.3</a>. BGP_PREF_UPDATE Subtype</span>
The BGP_PREF_UPDATE Subtype is not defined.
<span class="grey">Blunk, et al. Standards Track [Page 28]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-29" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
<span class="h5"><a class="selflink" id="appendix-B.2.1.4" href="#appendix-B.2.1.4">B.2.1.4</a>. BGP_STATE_CHANGE Subtype</span>
The BGP_STATE_CHANGE Subtype is used to reflect changes in the BGP
finite state machine. These FSM states are defined in <a href="./rfc4271">RFC 4271</a>
<a href="./rfc4271#section-8.2.2">[RFC4271], Section 8.2.2</a>. Both the Old State value and the New State
value are encoded as 2-octet numbers. The state values are defined
numerically as follows:
1 Idle
2 Connect
3 Active
4 OpenSent
5 OpenConfirm
6 Established
The format of the BGP_STATE_CHANGE Subtype MRT Message field is as
follows:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer AS Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer IP Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Old State | New State |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 22: BGP_STATE_CHANGE Subtype
<span class="h5"><a class="selflink" id="appendix-B.2.1.5" href="#appendix-B.2.1.5">B.2.1.5</a>. BGP_SYNC Subtype</span>
The BGP_SYNC Subtype was intended to convey a system file name where
BGP Table Dump messages MAY be recorded. The View Number was to
correspond to the View Number provided in the TABLE_DUMP Type
records. There are no known implementations of this subtype, and it
SHOULD be ignored. The following format applies to this subtype:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| View Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| File Name... (variable)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 23: BGP_SYNC Subtype
<span class="grey">Blunk, et al. Standards Track [Page 29]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-30" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
The File Name is terminated with a NULL (0) character.
<span class="h5"><a class="selflink" id="appendix-B.2.1.6" href="#appendix-B.2.1.6">B.2.1.6</a>. BGP_OPEN Subtype</span>
The BGP_OPEN Subtype is used to encode BGP OPEN messages. The format
of the MRT Message field for this subtype is the same as the
BGP_UPDATE; however, the last field contains the contents of the BGP
OPEN message.
<span class="h5"><a class="selflink" id="appendix-B.2.1.7" href="#appendix-B.2.1.7">B.2.1.7</a>. BGP_NOTIFY Subtype</span>
The BGP_NOTIFY Subtype is used to encode BGP NOTIFICATION messages.
The format of the MRT Message field for this subtype is the same as
the BGP_UPDATE; however, the last field contains the contents of the
BGP NOTIFICATION message.
<span class="h5"><a class="selflink" id="appendix-B.2.1.8" href="#appendix-B.2.1.8">B.2.1.8</a>. BGP_KEEPALIVE Subtype</span>
The BGP_KEEPALIVE Subtype is used to encode BGP KEEPALIVE messages.
The format of the MRT Message field for this subtype is the same as
the BGP_UPDATE; however, the last field contains no information.
<span class="h4"><a class="selflink" id="appendix-B.2.2" href="#appendix-B.2.2">B.2.2</a>. RIP Type</span>
The RIP Type is used to export RIP packets as defined in <a href="./rfc2453">RFC 2453</a>
[<a href="./rfc2453" title=""RIP Version 2"">RFC2453</a>]. The Subtype field is currently reserved for this type and
SHOULD be set to 0.
The format of the MRT Message field for the RIP Type is as follows:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer IP Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Local IP Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| RIP Message Contents (variable)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 24: RIP Type
<span class="h4"><a class="selflink" id="appendix-B.2.3" href="#appendix-B.2.3">B.2.3</a>. IDRP Type</span>
The IDRP Type was intended to be used to export Inter-Domain Routing
Protocol (IDRP) information as defined in the ISO/IEC 10747 standard.
However, this type has seen no known use, and there are no details on
protocol encoding for this type.
<span class="grey">Blunk, et al. Standards Track [Page 30]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-31" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
<span class="h4"><a class="selflink" id="appendix-B.2.4" href="#appendix-B.2.4">B.2.4</a>. RIPNG Type</span>
The RIPNG Type is used to export RIPNG protocol packets as defined in
<a href="./rfc2080">RFC 2080</a> [<a href="./rfc2080" title=""RIPng for IPv6"">RFC2080</a>]. The RIPNG protocol updates the RIP protocol to
support IPv6. The Subtype field is currently reserved for this type
and SHOULD be set to 0.
The format of the MRT Message field for the RIPNG Type is as follows:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
~ Peer IPv6 Address ~
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
~ Local IPv6 Address ~
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| RIPNG Message Contents (variable)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 25: RIPNG Type
<span class="h4"><a class="selflink" id="appendix-B.2.5" href="#appendix-B.2.5">B.2.5</a>. BGP4PLUS and BGP4PLUS_01 Types</span>
The BGP4PLUS and BGP4PLUS_01 Types were defined to support IPv6 BGP
routing information. The BGP4PLUS Type was specified based on the
initial Internet-Draft that became <a href="./rfc4760">RFC 4760</a>, "Multiprotocol
Extensions to BGP-4". The BGP4PLUS_01 Type was specified to
correspond to the -01 revision of that Internet-Draft. The two Types
share the same definitions in terms of their MRT format
specifications.
The Subtype field definitions are shared with the BGP Type; however,
the address fields in the BGP_UPDATE, BGP_OPEN, BGP_NOTIFY,
BGP_KEEPALIVE, and BGP_STATE_CHANGE Subtype records are extended to
16 octets for IPv6 addresses. As with the BGP Type, the BGP4PLUS and
BGP4PLUS_01 Types are deprecated as they were superseded by the
BGP4MP Type.
<span class="grey">Blunk, et al. Standards Track [Page 31]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-32" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
<span class="h4"><a class="selflink" id="appendix-B.2.6" href="#appendix-B.2.6">B.2.6</a>. Deprecated BGP4MP Subtypes</span>
The following two subtypes of the BGP4MP Type are considered to be
deprecated.
2 BGP4MP_ENTRY
3 BGP4MP_SNAPSHOT
<span class="h5"><a class="selflink" id="appendix-B.2.6.1" href="#appendix-B.2.6.1">B.2.6.1</a>. BGP4MP_ENTRY Subtype</span>
This subtype is similar to the TABLE_DUMP Type and is used to record
RIB table entries. It was intended to include true multiprotocol
support. However, this subtype does not support 4-byte AS numbers
and has not been widely implemented.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer AS Number | Local AS Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Interface Index | Address Family |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer IP Address (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Local IP Address (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| View Number | Status |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Time Last Change |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Address Family | SAFI | Next-Hop-Len |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Next Hop Address (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Prefix Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Address Prefix (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Attribute Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| BGP Attribute... (variable)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 26: BGP4MP_ENTRY Subtype
<span class="grey">Blunk, et al. Standards Track [Page 32]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-33" ></span>
<span class="grey"><a href="./rfc6396">RFC 6396</a> MRT Format October 2011</span>
<span class="h5"><a class="selflink" id="appendix-B.2.6.2" href="#appendix-B.2.6.2">B.2.6.2</a>. BGP4MP_SNAPSHOT Subtype</span>
This subtype was intended to convey a system file name where
BGP4MP_ENTRY records MAY be recorded. It is similar to the BGP_SYNC
Subtype and is deprecated.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| View Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| File Name... (variable)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 27: BGP4MP_SNAPSHOT Subtype
<span class="h2"><a class="selflink" id="appendix-C" href="#appendix-C">Appendix C</a>. Acknowledgements</span>
The initial MRT specification was developed by Craig Labovitz for use
in the Multi-thread Routing Toolkit (MRT) project. The BGP4MP Type
was introduced in the Zebra routing software project by Kunihiro
Ishiguro. The BGP4MP_ET, ISIS, and ISIS_ET Types were defined in the
Python Routing Toolkit (PyRT) developed by Richard Mortier while at
Sprint Advanced Technology Labs.
Authors' Addresses
Larry Blunk
Merit Network
EMail: ljb@merit.edu
Manish Karir
Merit Network
EMail: mkarir@merit.edu
Craig Labovitz
Deepfield Networks
EMail: labovit@deepfield.net
Blunk, et al. Standards Track [Page 33]
</pre>
|