1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237
|
<pre>Internet Engineering Task Force (IETF) S. Nadas, Ed.
Request for Comments: 5798 Ericsson
Obsoletes: <a href="./rfc3768">3768</a> March 2010
Category: Standards Track
ISSN: 2070-1721
<span class="h1">Virtual Router Redundancy Protocol (VRRP) Version 3 for IPv4 and IPv6</span>
Abstract
This memo defines the Virtual Router Redundancy Protocol (VRRP) for
IPv4 and IPv6. It is version three (3) of the protocol, and it is
based on VRRP (version 2) for IPv4 that is defined in <a href="./rfc3768">RFC 3768</a> and in
"Virtual Router Redundancy Protocol for IPv6". VRRP specifies an
election protocol that dynamically assigns responsibility for a
virtual router to one of the VRRP routers on a LAN. The VRRP router
controlling the IPv4 or IPv6 address(es) associated with a virtual
router is called the Master, and it forwards packets sent to these
IPv4 or IPv6 addresses. VRRP Master routers are configured with
virtual IPv4 or IPv6 addresses, and VRRP Backup routers infer the
address family of the virtual addresses being carried based on the
transport protocol. Within a VRRP router, the virtual routers in
each of the IPv4 and IPv6 address families are a domain unto
themselves and do not overlap. The election process provides dynamic
failover in the forwarding responsibility should the Master become
unavailable. For IPv4, the advantage gained from using VRRP is a
higher-availability default path without requiring configuration of
dynamic routing or router discovery protocols on every end-host. For
IPv6, the advantage gained from using VRRP for IPv6 is a quicker
switchover to Backup routers than can be obtained with standard IPv6
Neighbor Discovery mechanisms.
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/rfc5798">http://www.rfc-editor.org/info/rfc5798</a>.
<span class="grey">Nadas Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
Copyright Notice
Copyright (c) 2010 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
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-4">4</a>
<a href="#section-1.1">1.1</a>. A Note on Terminology ......................................<a href="#page-4">4</a>
<a href="#section-1.2">1.2</a>. IPv4 .......................................................<a href="#page-5">5</a>
<a href="#section-1.3">1.3</a>. IPv6 .......................................................<a href="#page-6">6</a>
<a href="#section-1.4">1.4</a>. Requirements Language ......................................<a href="#page-6">6</a>
<a href="#section-1.5">1.5</a>. Scope ......................................................<a href="#page-7">7</a>
<a href="#section-1.6">1.6</a>. Definitions ................................................<a href="#page-7">7</a>
<a href="#section-2">2</a>. Required Features ...............................................<a href="#page-8">8</a>
<a href="#section-2.1">2.1</a>. IPvX Address Backup ........................................<a href="#page-8">8</a>
<a href="#section-2.2">2.2</a>. Preferred Path Indication ..................................<a href="#page-8">8</a>
<a href="#section-2.3">2.3</a>. Minimization of Unnecessary Service Disruptions ............<a href="#page-9">9</a>
<a href="#section-2.4">2.4</a>. Efficient Operation over Extended LANs .....................<a href="#page-9">9</a>
<a href="#section-2.5">2.5</a>. Sub-Second Operation for IPv4 and IPv6 .....................<a href="#page-9">9</a>
<a href="#section-3">3</a>. VRRP Overview ..................................................<a href="#page-10">10</a>
<a href="#section-4">4</a>. Sample Configurations ..........................................<a href="#page-11">11</a>
<a href="#section-4.1">4.1</a>. Sample Configuration 1 ....................................<a href="#page-11">11</a>
<a href="#section-4.2">4.2</a>. Sample Configuration 2 ....................................<a href="#page-13">13</a>
<span class="grey">Nadas Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
<a href="#section-5">5</a>. Protocol .......................................................<a href="#page-14">14</a>
<a href="#section-5.1">5.1</a>. VRRP Packet Format ........................................<a href="#page-15">15</a>
<a href="#section-5.1.1">5.1.1</a>. IPv4 Field Descriptions ............................<a href="#page-15">15</a>
<a href="#section-5.1.1.1">5.1.1.1</a>. Source Address ............................<a href="#page-15">15</a>
<a href="#section-5.1.1.2">5.1.1.2</a>. Destination Address .......................<a href="#page-15">15</a>
<a href="#section-5.1.1.3">5.1.1.3</a>. TTL .......................................<a href="#page-16">16</a>
<a href="#section-5.1.1.4">5.1.1.4</a>. Protocol ..................................<a href="#page-16">16</a>
<a href="#section-5.1.2">5.1.2</a>. IPv6 Field Descriptions ............................<a href="#page-16">16</a>
<a href="#section-5.1.2.1">5.1.2.1</a>. Source Address ............................<a href="#page-16">16</a>
<a href="#section-5.1.2.2">5.1.2.2</a>. Destination Address .......................<a href="#page-16">16</a>
<a href="#section-5.1.2.3">5.1.2.3</a>. Hop Limit .................................<a href="#page-16">16</a>
<a href="#section-5.1.2.4">5.1.2.4</a>. Next Header ...............................<a href="#page-16">16</a>
<a href="#section-5.2">5.2</a>. VRRP Field Descriptions ...................................<a href="#page-16">16</a>
<a href="#section-5.2.1">5.2.1</a>. Version ............................................<a href="#page-16">16</a>
<a href="#section-5.2.2">5.2.2</a>. Type ...............................................<a href="#page-17">17</a>
<a href="#section-5.2.3">5.2.3</a>. Virtual Rtr ID (VRID) ..............................<a href="#page-17">17</a>
<a href="#section-5.2.4">5.2.4</a>. Priority ...........................................<a href="#page-17">17</a>
<a href="#section-5.2.5">5.2.5</a>. Count IPvX Addr ....................................<a href="#page-17">17</a>
<a href="#section-5.2.6">5.2.6</a>. Rsvd ...............................................<a href="#page-17">17</a>
<a href="#section-5.2.7">5.2.7</a>. Maximum Advertisement Interval (Max Adver Int) .....<a href="#page-17">17</a>
<a href="#section-5.2.8">5.2.8</a>. Checksum ...........................................<a href="#page-18">18</a>
<a href="#section-5.2.9">5.2.9</a>. IPvX Address(es) ...................................<a href="#page-18">18</a>
<a href="#section-6">6</a>. Protocol State Machine .........................................<a href="#page-18">18</a>
<a href="#section-6.1">6.1</a>. Parameters Per Virtual Router .............................<a href="#page-18">18</a>
<a href="#section-6.2">6.2</a>. Timers ....................................................<a href="#page-20">20</a>
<a href="#section-6.3">6.3</a>. State Transition Diagram ..................................<a href="#page-21">21</a>
<a href="#section-6.4">6.4</a>. State Descriptions ........................................<a href="#page-21">21</a>
<a href="#section-6.4.1">6.4.1</a>. Initialize .........................................<a href="#page-21">21</a>
<a href="#section-6.4.2">6.4.2</a>. Backup .............................................<a href="#page-22">22</a>
<a href="#section-6.4.3">6.4.3</a>. Master .............................................<a href="#page-24">24</a>
<a href="#section-7">7</a>. Sending and Receiving VRRP Packets .............................<a href="#page-26">26</a>
<a href="#section-7.1">7.1</a>. Receiving VRRP Packets ....................................<a href="#page-26">26</a>
<a href="#section-7.2">7.2</a>. Transmitting VRRP Packets .................................<a href="#page-27">27</a>
<a href="#section-7.3">7.3</a>. Virtual Router MAC Address ................................<a href="#page-28">28</a>
<a href="#section-7.4">7.4</a>. IPv6 Interface Identifiers ................................<a href="#page-28">28</a>
<a href="#section-8">8</a>. Operational Issues .............................................<a href="#page-29">29</a>
<a href="#section-8.1">8.1</a>. IPv4 ......................................................<a href="#page-29">29</a>
<a href="#section-8.1.1">8.1.1</a>. ICMP Redirects .....................................<a href="#page-29">29</a>
<a href="#section-8.1.2">8.1.2</a>. Host ARP Requests ..................................<a href="#page-29">29</a>
<a href="#section-8.1.3">8.1.3</a>. Proxy ARP ..........................................<a href="#page-30">30</a>
<a href="#section-8.2">8.2</a>. IPv6 ......................................................<a href="#page-30">30</a>
<a href="#section-8.2.1">8.2.1</a>. ICMPv6 Redirects ...................................<a href="#page-30">30</a>
<a href="#section-8.2.2">8.2.2</a>. ND Neighbor Solicitation ...........................<a href="#page-30">30</a>
<a href="#section-8.2.3">8.2.3</a>. Router Advertisements ..............................<a href="#page-31">31</a>
<a href="#section-8.3">8.3</a>. IPvX ......................................................<a href="#page-31">31</a>
<a href="#section-8.3.1">8.3.1</a>. Potential Forwarding Loop ..........................<a href="#page-31">31</a>
<a href="#section-8.3.2">8.3.2</a>. Recommendations Regarding Setting Priority Values ..32
<span class="grey">Nadas Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
<a href="#section-8.4">8.4</a>. VRRPv3 and VRRPv2 Interoperation ..........................<a href="#page-32">32</a>
<a href="#section-8.4.1">8.4.1</a>. Assumptions ........................................<a href="#page-32">32</a>
<a href="#section-8.4.2">8.4.2</a>. VRRPv3 Support of VRRPv2 ...........................<a href="#page-32">32</a>
<a href="#section-8.4.3">8.4.3</a>. VRRPv3 Support of VRRPv2 Considerations ............<a href="#page-33">33</a>
<a href="#section-8.4.3.1">8.4.3.1</a>. Slow, High-Priority Masters ...............<a href="#page-33">33</a>
<a href="#section-8.4.3.2">8.4.3.2</a>. Overwhelming VRRPv2 Backups ...............<a href="#page-33">33</a>
<a href="#section-9">9</a>. Security Considerations ........................................<a href="#page-33">33</a>
<a href="#section-10">10</a>. Contributors and Acknowledgments ..............................<a href="#page-34">34</a>
<a href="#section-11">11</a>. IANA Considerations ...........................................<a href="#page-35">35</a>
<a href="#section-12">12</a>. References ....................................................<a href="#page-35">35</a>
<a href="#section-12.1">12.1</a>. Normative References .....................................<a href="#page-35">35</a>
<a href="#section-12.2">12.2</a>. Informative References ...................................<a href="#page-36">36</a>
<a href="#appendix-A">Appendix A</a>. Operation over FDDI, Token Ring, and ATM LANE .........<a href="#page-38">38</a>
<a href="#appendix-A.1">A.1</a>. Operation over FDDI .......................................<a href="#page-38">38</a>
<a href="#appendix-A.2">A.2</a>. Operation over Token Ring .................................<a href="#page-38">38</a>
<a href="#appendix-A.3">A.3</a>. Operation over ATM LANE ...................................<a href="#page-40">40</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
This memo defines the Virtual Router Redundancy Protocol (VRRP) for
IPv4 and IPv6. It is version three (3) of the protocol. It is based
on VRRP (version 2) for IPv4 that is defined in [<a href="./rfc3768" title=""Virtual Router Redundancy Protocol (VRRP)"">RFC3768</a>] and in
[<a href="#ref-VRRP-IPv6" title=""Virtual Router Redundancy Protocol for IPv6"">VRRP-IPv6</a>]. VRRP specifies an election protocol that dynamically
assigns responsibility for a virtual router to one of the VRRP
routers on a LAN. The VRRP router controlling the IPv4 or IPv6
address(es) associated with a virtual router is called the Master,
and it forwards packets sent to these IPv4 or IPv6 addresses. VRRP
Master routers are configured with virtual IPv4 or IPv6 addresses,
and VRRP Backup routers infer the address family of the virtual
addresses being carried based on the transport protocol. Within a
VRRP router, the virtual routers in each of the IPv4 and IPv6 address
families are a domain unto themselves and do not overlap. The
election process provides dynamic failover in the forwarding
responsibility should the Master become unavailable.
VRRP provides a function similar to the proprietary protocols "Hot
Standby Router Protocol (HSRP)" [<a href="./rfc2281" title=""Cisco Hot Standby Router Protocol (HSRP)"">RFC2281</a>] and "IP Standby Protocol"
[<a href="#ref-IPSTB" title=""Development of Router Clusters to Provide Fast Failover in IP Networks"">IPSTB</a>].
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>. A Note on Terminology</span>
This document discusses both IPv4 and IPv6 operation, and with
respect to the VRRP protocol, many of the descriptions and procedures
are common. In this document, it would be less verbose to be able to
refer to "IP" to mean either "IPv4 or IPv6". However, historically,
the term "IP" usually refers to IPv4. For this reason, in this
specification, the term "IPvX" (where X is 4 or 6) is introduced to
mean either "IPv4" or "IPv6". In this text, where the IP version
<span class="grey">Nadas Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
matters, the appropriate term is used and the use of the term "IP" is
avoided.
<span class="h3"><a class="selflink" id="section-1.2" href="#section-1.2">1.2</a>. IPv4</span>
There are a number of methods that an IPv4 end-host can use to
determine its first-hop router towards a particular IPv4 destination.
These include running (or snooping) a dynamic routing protocol such
as Routing Information Protocol [<a href="./rfc2453" title=""RIP Version 2"">RFC2453</a>] or OSPF version 2
[<a href="./rfc2328" title=""OSPF Version 2"">RFC2328</a>], running an ICMP router discovery client [<a href="./rfc1256" title=""ICMP Router Discovery Messages"">RFC1256</a>], or
using a statically configured default route.
Running a dynamic routing protocol on every end-host may be
infeasible for a number of reasons, including administrative
overhead, processing overhead, security issues, or lack of a protocol
implementation for some platforms. Neighbor or router discovery
protocols may require active participation by all hosts on a network,
leading to large timer values to reduce protocol overhead in the face
of large numbers of hosts. This can result in a significant delay in
the detection of a lost (i.e., dead) neighbor; such a delay may
introduce unacceptably long "black hole" periods.
The use of a statically configured default route is quite popular; it
minimizes configuration and processing overhead on the end-host and
is supported by virtually every IPv4 implementation. This mode of
operation is likely to persist as dynamic host configuration
protocols [<a href="./rfc2131" title=""Dynamic Host Configuration Protocol"">RFC2131</a>] are deployed, which typically provide
configuration for an end-host IPv4 address and default gateway.
However, this creates a single point of failure. Loss of the default
router results in a catastrophic event, isolating all end-hosts that
are unable to detect any alternate path that may be available.
The Virtual Router Redundancy Protocol (VRRP) is designed to
eliminate the single point of failure inherent in the static default-
routed environment. VRRP specifies an election protocol that
dynamically assigns responsibility for a virtual router to one of the
VRRP routers on a LAN. The VRRP router controlling the IPv4
address(es) associated with a virtual router is called the Master and
forwards packets sent to these IPv4 addresses. The election process
provides dynamic failover in the forwarding responsibility should the
Master become unavailable. Any of the virtual router's IPv4
addresses on a LAN can then be used as the default first hop
<span class="grey">Nadas Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
router by end-hosts. The advantage gained from using VRRP is a
higher availability default path without requiring configuration of
dynamic routing or router discovery protocols on every end-host.
<span class="h3"><a class="selflink" id="section-1.3" href="#section-1.3">1.3</a>. IPv6</span>
IPv6 hosts on a LAN will usually learn about one or more default
routers by receiving Router Advertisements sent using the IPv6
Neighbor Discovery (ND) protocol [<a href="./rfc4861" title=""Neighbor Discovery for IP version 6 (IPv6)"">RFC4861</a>]. The Router
Advertisements are multicast periodically at a rate that the hosts
will learn about the default routers in a few minutes. They are not
sent frequently enough to rely on the absence of the Router
Advertisement to detect router failures.
Neighbor Discovery (ND) includes a mechanism called Neighbor
Unreachability Detection to detect the failure of a neighbor node
(router or host) or the forwarding path to a neighbor. This is done
by sending unicast ND Neighbor Solicitation messages to the neighbor
node. To reduce the overhead of sending Neighbor Solicitations, they
are only sent to neighbors to which the node is actively sending
traffic and only after there has been no positive indication that the
router is up for a period of time. Using the default parameters in
ND, it will take a host about 38 seconds to learn that a router is
unreachable before it will switch to another default router. This
delay would be very noticeable to users and cause some transport
protocol implementations to time out.
While the ND unreachability detection could be made quicker by
changing the parameters to be more aggressive (note that the current
lower limit for this is 5 seconds), this would have the downside of
significantly increasing the overhead of ND traffic, especially when
there are many hosts all trying to determine the reachability of one
of more routers.
The Virtual Router Redundancy Protocol for IPv6 provides a much
faster switchover to an alternate default router than can be obtained
using standard ND procedures. Using VRRP, a Backup router can take
over for a failed default router in around three seconds (using VRRP
default parameters). This is done without any interaction with the
hosts and a minimum amount of VRRP traffic.
<span class="h3"><a class="selflink" id="section-1.4" href="#section-1.4">1.4</a>. Requirements Language</span>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
<span class="grey">Nadas Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
<span class="h3"><a class="selflink" id="section-1.5" href="#section-1.5">1.5</a>. Scope</span>
The remainder of this document describes the features, design goals,
and theory of operation of VRRP. The message formats, protocol
processing rules, and state machine that guarantee convergence to a
single Virtual Router Master are presented. Finally, operational
issues related to MAC address mapping, handling of ARP requests,
generation of ICMP redirect messages, and security issues are
addressed.
<span class="h3"><a class="selflink" id="section-1.6" href="#section-1.6">1.6</a>. Definitions</span>
VRRP Router A router running the Virtual Router
Redundancy Protocol. It may participate as
one or more virtual routers.
Virtual Router An abstract object managed by VRRP that acts
as a default router for hosts on a shared
LAN. It consists of a Virtual Router
Identifier and either a set of associated
IPv4 addresses or a set of associated IPv6
addresses across a common LAN. A VRRP Router
may back up one or more virtual routers.
IP Address Owner The VRRP router that has the virtual router's
IPvX address(es) as real interface
address(es). This is the router that, when
up, will respond to packets addressed to one
of these IPvX addresses for ICMP pings, TCP
connections, etc.
Primary IP Address In IPv4, an IPv4 address selected from the
set of real interface addresses. One
possible selection algorithm is to always
select the first address. In IPv4 mode, VRRP
advertisements are always sent using the
primary IPv4 address as the source of the
IPv4 packet. In IPv6, the link-local address
of the interface over which the packet is
transmitted is used.
Virtual Router Master The VRRP router that is assuming the
responsibility of forwarding packets sent to
the IPvX address(es) associated with the
virtual router, answering ARP requests
<span class="grey">Nadas Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
for the IPv4 address(es), and answering ND
requests for the IPv6 address(es). Note that
if the IPvX address owner is available, then
it will always become the Master.
Virtual Router Backup The set of VRRP routers available to assume
forwarding responsibility for a virtual
router should the current Master fail.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Required Features</span>
This section outlines the set of features that were considered
mandatory and that guided the design of VRRP.
<span class="h3"><a class="selflink" id="section-2.1" href="#section-2.1">2.1</a>. IPvX Address Backup</span>
Backup of an IPvX address or addresses is the primary function of
VRRP. While providing election of a Virtual Router Master and the
additional functionality described below, the protocol should
strive to:
o Minimize the duration of black holes.
o Minimize the steady-state bandwidth overhead and processing
complexity.
o Function over a wide variety of multiaccess LAN technologies
capable of supporting IPvX traffic.
o Allow multiple virtual routers on a network for load balancing.
o Support multiple logical IPvX subnets on a single LAN segment.
<span class="h3"><a class="selflink" id="section-2.2" href="#section-2.2">2.2</a>. Preferred Path Indication</span>
A simple model of Master election among a set of redundant routers is
to treat each router with equal preference and claim victory after
converging to any router as Master. However, there are likely to be
many environments where there is a distinct preference (or range of
preferences) among the set of redundant routers. For example, this
preference may be based upon access link cost or speed, router
performance or reliability, or other policy considerations. The
protocol should allow the expression of this relative path preference
in an intuitive manner and guarantee Master convergence to the most
preferential router currently available.
<span class="grey">Nadas Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
<span class="h3"><a class="selflink" id="section-2.3" href="#section-2.3">2.3</a>. Minimization of Unnecessary Service Disruptions</span>
Once Master election has been performed, any unnecessary transitions
between Master and Backup routers can result in a disruption in
service. The protocol should ensure after Master election that no
state transition is triggered by any Backup router of equal or lower
preference as long as the Master continues to function properly.
Some environments may find it beneficial to avoid the state
transition triggered when a router that is preferred over the current
Master becomes available. It may be useful to support an override of
the immediate convergence to the preferred path.
<span class="h3"><a class="selflink" id="section-2.4" href="#section-2.4">2.4</a>. Efficient Operation over Extended LANs</span>
Sending IPvX packets (that is, sending either IPv4 or IPv6) on a
multiaccess LAN requires mapping from an IPvX address to a MAC
address. The use of the virtual router MAC address in an extended
LAN employing learning bridges can have a significant effect on the
bandwidth overhead of packets sent to the virtual router. If the
virtual router MAC address is never used as the source address in a
link-level frame, then the station location is never learned,
resulting in flooding of all packets sent to the virtual router. To
improve the efficiency in this environment, the protocol should:
1) use the virtual router MAC address as the source in a packet sent
by the Master to trigger station learning; 2) trigger a message
immediately after transitioning to the Master to update the station
learning; and 3) trigger periodic messages from the Master to
maintain the station learning cache.
<span class="h3"><a class="selflink" id="section-2.5" href="#section-2.5">2.5</a>. Sub-Second Operation for IPv4 and IPv6</span>
Sub-second detection of Master VRRP router failure is needed in both
IPv4 and IPv6 environments. Earlier work proposed that sub-second
operation was for IPv6; this specification leverages that earlier
approach for IPv4 and IPv6.
One possible problematic scenario when using small
VRRP_Advertisement_Intervals may occur when a router is delivering
more packets onto the LAN than can be accommodated, and so a queue
builds up in the router. It is possible that packets being
transmitted onto the VRRP-protected LAN could see larger queueing
delay than the smallest VRRP Advertisement_Interval. In this case,
the Master_Down_Interval will be small enough so that normal queuing
delays might cause a VRRP Backup to conclude that the Master is down,
and therefore promote itself to Master. Very shortly afterwards, the
delayed VRRP packets from the Master cause a switch back to Backup
status. Furthermore, this process can repeat many times per second,
<span class="grey">Nadas Standards Track [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
causing significant disruption to traffic. To mitigate this problem,
priority forwarding of VRRP packets should be considered. It should
be possible for a VRRP Master to observe that this situation is
occurring frequently and at least log the problem.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. VRRP Overview</span>
VRRP specifies an election protocol to provide the virtual router
function described earlier. All protocol messaging is performed
using either IPv4 or IPv6 multicast datagrams; thus, the protocol can
operate over a variety of multiaccess LAN technologies supporting
IPvX multicast. Each link of a VRRP virtual router has a single
well-known MAC address allocated to it. This document currently only
details the mapping to networks using the IEEE 802 48-bit MAC
address. The virtual router MAC address is used as the source in all
periodic VRRP messages sent by the Master router to enable bridge
learning in an extended LAN.
A virtual router is defined by its virtual router identifier (VRID)
and a set of either IPv4 or IPv6 address(es). A VRRP router may
associate a virtual router with its real address on an interface.
The scope of each virtual router is restricted to a single LAN. A
VRRP router may be configured with additional virtual router mappings
and priority for virtual routers it is willing to back up. The
mapping between the VRID and its IPvX address(es) must be coordinated
among all VRRP routers on a LAN.
There is no restriction against reusing a VRID with a different
address mapping on different LANs, nor is there a restriction against
using the same VRID number for a set of IPv4 addresses and a set of
IPv6 addresses; however, these are two different virtual routers.
To minimize network traffic, only the Master for each virtual router
sends periodic VRRP Advertisement messages. A Backup router will not
attempt to preempt the Master unless it has higher priority. This
eliminates service disruption unless a more preferred path becomes
available. It's also possible to administratively prohibit all
preemption attempts. The only exception is that a VRRP router will
always become Master of any virtual router associated with addresses
it owns. If the Master becomes unavailable, then the highest-
priority Backup will transition to Master after a short delay,
providing a controlled transition of the virtual router
responsibility with minimal service interruption.
The VRRP protocol design provides rapid transition from Backup to
Master to minimize service interruption and incorporates
optimizations that reduce protocol complexity while guaranteeing
<span class="grey">Nadas Standards Track [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
controlled Master transition for typical operational scenarios. The
optimizations result in an election protocol with minimal runtime
state requirements, minimal active protocol states, and a single
message type and sender. The typical operational scenarios are
defined to be two redundant routers and/or distinct path preferences
among each router. A side effect when these assumptions are violated
(i.e., more than two redundant paths, all with equal preference) is
that duplicate packets may be forwarded for a brief period during
Master election. However, the typical scenario assumptions are
likely to cover the vast majority of deployments, loss of the Master
router is infrequent, and the expected duration in Master election
convergence is quite small ( << 1 second ). Thus, the VRRP
optimizations represent significant simplifications in the protocol
design while incurring an insignificant probability of brief network
degradation.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Sample Configurations</span>
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. Sample Configuration 1</span>
The following figure shows a simple network with two VRRP routers
implementing one virtual router.
+-----------+ +-----------+
| Rtr1 | | Rtr2 |
|(MR VRID=1)| |(BR VRID=1)|
| | | |
VRID=1 +-----------+ +-----------+
IPvX A--------->* *<---------IPvX B
| |
| |
----------------+------------+-----+----------+----------+----------+--
^ ^ ^ ^
| | | |
default rtr IPvX addrs-------> (IPvX A) (IPvX A) (IPvX A) (IPvX A)
| | | |
IPvX H1->* IpvX H2->* IPvX H3->* IpvX H4->*
+--+--+ +--+--+ +--+--+ +--+--+
| H1 | | H2 | | H3 | | H4 |
+-----+ +-----+ +--+--+ +--+--+
Legend:
--+---+---+-- = Ethernet, Token Ring, or FDDI
H = Host computer
MR = Master Router
BR = Backup Router
* = IPvX Address; X is 4 everywhere in IPv4 case
X is 6 everywhere in IPv6 case
(IPvX) = default router for hosts
<span class="grey">Nadas Standards Track [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
Eliminating all mention of VRRP (VRID=1) from the figure above leaves
it as a typical deployment.
In the IPv4 case (that is, IPvX is IPv4 everywhere in the figure),
each router is permanently assigned an IPv4 address on the LAN
interface (Rtr1 is assigned IPv4 A and Rtr2 is assigned IPv4 B), and
each host installs a static default route through one of the routers
(in this example they all use Rtr1's IPv4 A).
In the IPv6 case (that is, IPvX is IPv6 everywhere in the figure),
each router has a link-local IPv6 address on the LAN interface (Rtr1
is assigned IPv6 Link-Local A and Rtr2 is assigned IPv6 Link-
Local B), and each host learns a default route from Router
Advertisements through one of the routers (in this example, they all
use Rtr1's IPv6 Link-Local A).
Moving to an IPv4 VRRP environment, each router has the exact same
permanently assigned IPv4 address. Rtr1 is said to be the IPv4
address owner of IPv4 A, and Rtr2 is the IPv4 address owner of
IPv4 B. A virtual router is then defined by associating a unique
identifier (the virtual router ID) with the address owned by a
router.
Moving to an IPv6 VRRP environment, each router has the exact same
Link-Local IPv6 address. Rtr1 is said to be the IPv6 address owner
of IPv6 A, and Rtr2 is the IPv6 address owner of IPv6 B. A virtual
router is then defined by associating a unique identifier (the
virtual router ID) with the address owned by a router.
Finally, in both the IPv4 and IPv6 cases, the VRRP protocol manages
virtual router failover to a Backup router.
The IPv4 example above shows a virtual router configured to cover the
IPv4 address owned by Rtr1 (VRID=1, IPv4_Address=A). When VRRP is
enabled on Rtr1 for VRID=1, it will assert itself as Master, with
priority = 255, since it is the IP address owner for the virtual
router IP address. When VRRP is enabled on Rtr2 for VRID=1, it will
transition to Backup, with priority = 100 (the default priority is
100), since it is not the IPv4 address owner. If Rtr1 should fail,
then the VRRP protocol will transition Rtr2 to Master, temporarily
taking over forwarding responsibility for IPv4 A to provide
uninterrupted service to the hosts. When Rtr1 returns to service, it
will re-assert itself as Master.
The IPv6 example above shows a virtual router configured to cover the
IPv6 address owned by Rtr1 (VRID=1, IPv6_Address=A). When VRRP is
enabled on Rtr1 for VRID=1, it will assert itself as Master, with
priority = 255, since it is the IPv6 address owner for the virtual
<span class="grey">Nadas Standards Track [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
router IPv6 address. When VRRP is enabled on Rtr2 for VRID=1, it
will transition to Backup, with priority = 100 (the default priority
is 100), since it is not the IPv6 address owner. If Rtr1 should
fail, then the VRRP protocol will transition Rtr2 to Master,
temporarily taking over forwarding responsibility for IPv6 A to
provide uninterrupted service to the hosts.
Note that in both cases, in this example IPvX B is not backed up; it
is only used by Rtr2 as its interface address. In order to back up
IPvX B, a second virtual router must be configured. This is shown in
the next section.
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. Sample Configuration 2</span>
The following figure shows a configuration with two virtual routers
with the hosts splitting their traffic between them.
+-----------+ +-----------+
| Rtr1 | | Rtr2 |
|(MR VRID=1)| |(BR VRID=1)|
|(BR VRID=2)| |(MR VRID=2)|
VRID=1 +-----------+ +-----------+ VRID=2
IPvX A -------->* *<---------- IPvX B
| |
| |
----------------+------------+-----+----------+----------+----------+--
^ ^ ^ ^
| | | |
default rtr IPvX addrs -----> (IPvX A) (IPvX A) (IPvX B) (IPvX B)
| | | |
IPvX H1->* IpvX H2->* IPvX H3->* IpvX H4->*
+--+--+ +--+--+ +--+--+ +--+--+
| H1 | | H2 | | H3 | | H4 |
+-----+ +-----+ +--+--+ +--+--+
Legend:
---+---+---+-- = Ethernet, Token Ring, or FDDI
H = Host computer
MR = Master Router
BR = Backup Router
* = IPvX Address; X is 4 everywhere in IPv4 case
X is 6 everywhere in IPv6 case
(IPvX) = default router for hosts
In the IPv4 example above (that is, IPvX is IPv4 everywhere in the
figure), half of the hosts have configured a static route through
Rtr1's IPv4 A, and half are using Rtr2's IPv4 B. The configuration
of virtual router VRID=1 is exactly the same as in the first example
(see <a href="#section-4.1">Section 4.1</a>), and a second virtual router has been added to
<span class="grey">Nadas Standards Track [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
cover the IPv4 address owned by Rtr2 (VRID=2, IPv4_Address=B). In
this case, Rtr2 will assert itself as Master for VRID=2 while Rtr1
will act as a Backup. This scenario demonstrates a deployment
providing load splitting when both routers are available, while
providing full redundancy for robustness.
In the IPv6 example above (that is, IPvX is IPv6 everywhere in the
figure), half of the hosts have learned a default route through
Rtr1's IPv6 A, and half are using Rtr2's IPv6 B. The configuration
of virtual router VRID=1 is exactly the same as in the first example
(see <a href="#section-4.1">Section 4.1</a>), and a second virtual router has been added to
cover the IPv6 address owned by Rtr2 (VRID=2, IPv6_Address=B). In
this case, Rtr2 will assert itself as Master for VRID=2 while Rtr1
will act as a Backup. This scenario demonstrates a deployment
providing load splitting when both routers are available, while
providing full redundancy for robustness.
Note that the details of load balancing are out of scope of this
document. However, in a case where the servers need different
weights, it may not make sense to rely on router advertisements alone
to balance the host load between the routers.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Protocol</span>
The purpose of the VRRP packet is to communicate to all VRRP routers
the priority and the state of the Master router associated with the
VRID.
When VRRP is protecting an IPv4 address, VRRP packets are sent
encapsulated in IPv4 packets. They are sent to the IPv4 multicast
address assigned to VRRP.
When VRRP is protecting an IPv6 address, VRRP packets are sent
encapsulated in IPv6 packets. They are sent to the IPv6 multicast
address assigned to VRRP.
<span class="grey">Nadas Standards Track [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. VRRP Packet Format</span>
This section defines the format of the VRRP packet and the relevant
fields in the IP header.
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| IPv4 Fields or IPv6 Fields |
... ...
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Version| Type | Virtual Rtr ID| Priority |Count IPvX Addr|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|(rsvd) | Max Adver Int | Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
+ +
| IPvX Address(es) |
+ +
+ +
+ +
+ +
| |
+ +
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
<span class="h4"><a class="selflink" id="section-5.1.1" href="#section-5.1.1">5.1.1</a>. IPv4 Field Descriptions</span>
<span class="h5"><a class="selflink" id="section-5.1.1.1" href="#section-5.1.1.1">5.1.1.1</a>. Source Address</span>
This is the primary IPv4 address of the interface the packet is being
sent from.
<span class="h5"><a class="selflink" id="section-5.1.1.2" href="#section-5.1.1.2">5.1.1.2</a>. Destination Address</span>
The IPv4 multicast address as assigned by the IANA for VRRP is:
224.0.0.18
This is a link-local scope multicast address. Routers MUST NOT
forward a datagram with this destination address, regardless of its
TTL.
<span class="grey">Nadas Standards Track [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
<span class="h5"><a class="selflink" id="section-5.1.1.3" href="#section-5.1.1.3">5.1.1.3</a>. TTL</span>
The TTL MUST be set to 255. A VRRP router receiving a packet with
the TTL not equal to 255 MUST discard the packet.
<span class="h5"><a class="selflink" id="section-5.1.1.4" href="#section-5.1.1.4">5.1.1.4</a>. Protocol</span>
The IPv4 protocol number assigned by the IANA for VRRP is 112
(decimal).
<span class="h4"><a class="selflink" id="section-5.1.2" href="#section-5.1.2">5.1.2</a>. IPv6 Field Descriptions</span>
<span class="h5"><a class="selflink" id="section-5.1.2.1" href="#section-5.1.2.1">5.1.2.1</a>. Source Address</span>
This is the IPv6 link-local address of the interface the packet is
being sent from.
<span class="h5"><a class="selflink" id="section-5.1.2.2" href="#section-5.1.2.2">5.1.2.2</a>. Destination Address</span>
The IPv6 multicast address assigned by the IANA for VRRP is:
FF02:0:0:0:0:0:0:12
This is a link-local scope multicast address. Routers MUST NOT
forward a datagram with this destination address, regardless of its
Hop Limit.
<span class="h5"><a class="selflink" id="section-5.1.2.3" href="#section-5.1.2.3">5.1.2.3</a>. Hop Limit</span>
The Hop Limit MUST be set to 255. A VRRP router receiving a packet
with the Hop Limit not equal to 255 MUST discard the packet.
<span class="h5"><a class="selflink" id="section-5.1.2.4" href="#section-5.1.2.4">5.1.2.4</a>. Next Header</span>
The IPv6 Next Header protocol assigned by the IANA for VRRP is 112
(decimal).
<span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a>. VRRP Field Descriptions</span>
<span class="h4"><a class="selflink" id="section-5.2.1" href="#section-5.2.1">5.2.1</a>. Version</span>
The version field specifies the VRRP protocol version of this packet.
This document defines version 3.
<span class="grey">Nadas Standards Track [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
<span class="h4"><a class="selflink" id="section-5.2.2" href="#section-5.2.2">5.2.2</a>. Type</span>
The type field specifies the type of this VRRP packet. The only
packet type defined in this version of the protocol is:
1 ADVERTISEMENT
A packet with unknown type MUST be discarded.
<span class="h4"><a class="selflink" id="section-5.2.3" href="#section-5.2.3">5.2.3</a>. Virtual Rtr ID (VRID)</span>
The Virtual Rtr ID field identifies the virtual router this packet is
reporting status for.
<span class="h4"><a class="selflink" id="section-5.2.4" href="#section-5.2.4">5.2.4</a>. Priority</span>
The priority field specifies the sending VRRP router's priority for
the virtual router. Higher values equal higher priority. This field
is an 8-bit unsigned integer field.
The priority value for the VRRP router that owns the IPvX address
associated with the virtual router MUST be 255 (decimal).
VRRP routers backing up a virtual router MUST use priority values
between 1-254 (decimal). The default priority value for VRRP routers
backing up a virtual router is 100 (decimal).
The priority value zero (0) has special meaning, indicating that the
current Master has stopped participating in VRRP. This is used to
trigger Backup routers to quickly transition to Master without having
to wait for the current Master to time out.
<span class="h4"><a class="selflink" id="section-5.2.5" href="#section-5.2.5">5.2.5</a>. Count IPvX Addr</span>
This is the number of either IPv4 addresses or IPv6 addresses
contained in this VRRP advertisement. The minimum value is 1.
<span class="h4"><a class="selflink" id="section-5.2.6" href="#section-5.2.6">5.2.6</a>. Rsvd</span>
This field MUST be set to zero on transmission and ignored on
reception.
<span class="h4"><a class="selflink" id="section-5.2.7" href="#section-5.2.7">5.2.7</a>. Maximum Advertisement Interval (Max Adver Int)</span>
The Maximum Advertisement Interval is a 12-bit field that indicates
the time interval (in centiseconds) between ADVERTISEMENTS. The
default is 100 centiseconds (1 second).
<span class="grey">Nadas Standards Track [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
Note that higher-priority Master routers with slower transmission
rates than their Backup routers are unstable. This is because low-
priority nodes configured to faster rates could come online and
decide they should be Masters before they have heard anything from
the higher-priority Master with a slower rate. When this happens, it
is temporary: once the lower-priority node does hear from the higher-
priority Master, it will relinquish mastership.
<span class="h4"><a class="selflink" id="section-5.2.8" href="#section-5.2.8">5.2.8</a>. Checksum</span>
The checksum field is used to detect data corruption in the VRRP
message.
The checksum is the 16-bit one's complement of the one's complement
sum of the entire VRRP message starting with the version field and a
"pseudo-header" as defined in <a href="./rfc2460#section-8.1">Section 8.1 of [RFC2460]</a>. The next
header field in the "pseudo-header" should be set to 112 (decimal)
for VRRP. For computing the checksum, the checksum field is set to
zero. See <a href="./rfc1071">RFC1071</a> for more detail [<a href="./rfc1071" title=""Computing the Internet checksum"">RFC1071</a>].
<span class="h4"><a class="selflink" id="section-5.2.9" href="#section-5.2.9">5.2.9</a>. IPvX Address(es)</span>
This refers to one or more IPvX addresses associated with the virtual
router. The number of addresses included is specified in the "Count
IP Addr" field. These fields are used for troubleshooting
misconfigured routers. If more than one address is sent, it is
recommended that all routers be configured to send these addresses in
the same order to make it easier to do this comparison.
For IPv4 addresses, this refers to one or more IPv4 addresses that
are backed up by the virtual router.
For IPv6, the first address must be the IPv6 link-local address
associated with the virtual router.
This field contains either one or more IPv4 addresses, or one or more
IPv6 addresses, that is, IPv4 and IPv6 MUST NOT both be carried in
one IPvX Address field.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Protocol State Machine</span>
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. Parameters Per Virtual Router</span>
VRID Virtual Router Identifier. Configurable
item in the range 1-255 (decimal). There
is no default.
<span class="grey">Nadas Standards Track [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
Priority Priority value to be used by this VRRP
router in Master election for this
virtual router. The value of 255
(decimal) is reserved for the router that
owns the IPvX address associated with the
virtual router. The value of 0 (zero) is
reserved for the Master router to
indicate it is releasing responsibility
for the virtual router. The range 1-254
(decimal) is available for VRRP routers
backing up the virtual router. Higher
values indicate higher priorities. The
default value is 100 (decimal).
IPv4_Addresses One or more IPv4 addresses associated
with this virtual router. Configured
item with no default.
IPv6_Addresses One or more IPv6 addresses associated
with this virtual router. Configured
item with no default. The first address
must be the Link-Local address associated
with the virtual router.
Advertisement_Interval Time interval between ADVERTISEMENTS
(centiseconds). Default is 100
centiseconds (1 second).
Master_Adver_Interval Advertisement interval contained in
ADVERTISEMENTS received from the Master
(centiseconds). This value is saved by
virtual routers in the Backup state and
used to compute Skew_Time and
Master_Down_Interval. The initial value
is the same as Advertisement_Interval.
Skew_Time Time to skew Master_Down_Interval in
centiseconds. Calculated as
(((256 - priority) * Master_Adver_Interval) / 256)
Master_Down_Interval Time interval for Backup to declare
Master down (centiseconds).
Calculated as
(3 * Master_Adver_Interval) + Skew_time
<span class="grey">Nadas Standards Track [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
Preempt_Mode Controls whether a (starting or
restarting) higher-priority Backup router
preempts a lower-priority Master router.
Values are True to allow preemption and
False to prohibit preemption. Default is
True.
Note: The exception is that the router
that owns the IPvX address associated
with the virtual router always preempts,
independent of the setting of this flag.
Accept_Mode Controls whether a virtual router in
Master state will accept packets
addressed to the address owner's IPvX
address as its own if it is not the IPvX
address owner. The default is False.
Deployments that rely on, for example,
pinging the address owner's IPvX address
may wish to configure Accept_Mode to
True.
Note: IPv6 Neighbor Solicitations and
Neighbor Advertisements MUST NOT be
dropped when Accept_Mode is False.
Virtual_Router_MAC_Address The MAC address used for the source MAC
address in VRRP advertisements and
advertised in ARP responses as the MAC
address to use for IP_Addresses.
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. Timers</span>
Master_Down_Timer Timer that fires when ADVERTISEMENT has not
been heard for Master_Down_Interval.
Adver_Timer Timer that fires to trigger sending of
ADVERTISEMENT based on
Advertisement_Interval.
<span class="grey">Nadas Standards Track [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
<span class="h3"><a class="selflink" id="section-6.3" href="#section-6.3">6.3</a>. State Transition Diagram</span>
+---------------+
+--------->| |<-------------+
| | Initialize | |
| +------| |----------+ |
| | +---------------+ | |
| | | |
| V V |
+---------------+ +---------------+
| |---------------------->| |
| Master | | Backup |
| |<----------------------| |
+---------------+ +---------------+
<span class="h3"><a class="selflink" id="section-6.4" href="#section-6.4">6.4</a>. State Descriptions</span>
In the state descriptions below, the state names are identified by
{state-name}, and the packets are identified by all-uppercase
characters.
A VRRP router implements an instance of the state machine for each
virtual router election it is participating in.
<span class="h4"><a class="selflink" id="section-6.4.1" href="#section-6.4.1">6.4.1</a>. Initialize</span>
The purpose of this state is to wait for a Startup event, that is, an
implementation-defined mechanism that initiates the protocol once it
has been configured. The configuration mechanism is out of scope of
this specification.
(100) If a Startup event is received, then:
(105) - If the Priority = 255 (i.e., the router owns the IPvX
address associated with the virtual router), then:
(110) + Send an ADVERTISEMENT
(115) + If the protected IPvX address is an IPv4 address, then:
(120) * Broadcast a gratuitous ARP request containing the
virtual router MAC address for each IP address associated
with the virtual router.
(125) + else // IPv6
(130) * For each IPv6 address associated with the virtual
router, send an unsolicited ND Neighbor Advertisement with
<span class="grey">Nadas Standards Track [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
the Router Flag (R) set, the Solicited Flag (S) unset, the
Override flag (O) set, the target address set to the IPv6
address of the virtual router, and the target link-layer
address set to the virtual router MAC address.
(135) +endif // was protected addr IPv4?
(140) + Set the Adver_Timer to Advertisement_Interval
(145) + Transition to the {Master} state
(150) - else // rtr does not own virt addr
(155) + Set Master_Adver_Interval to Advertisement_Interval
(160) + Set the Master_Down_Timer to Master_Down_Interval
(165) + Transition to the {Backup} state
(170) -endif // priority was not 255
(175) endif // startup event was recv
<span class="h4"><a class="selflink" id="section-6.4.2" href="#section-6.4.2">6.4.2</a>. Backup</span>
The purpose of the {Backup} state is to monitor the availability and
state of the Master router.
(300) While in this state, a VRRP router MUST do the following:
(305) - If the protected IPvX address is an IPv4 address, then:
(310) + MUST NOT respond to ARP requests for the IPv4
address(es) associated with the virtual router.
(315) - else // protected addr is IPv6
(320) + MUST NOT respond to ND Neighbor Solicitation messages
for the IPv6 address(es) associated with the virtual router.
(325) + MUST NOT send ND Router Advertisement messages for the
virtual router.
(330) -endif // was protected addr IPv4?
(335) - MUST discard packets with a destination link-layer MAC
address equal to the virtual router MAC address.
<span class="grey">Nadas Standards Track [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
(340) - MUST NOT accept packets addressed to the IPvX address(es)
associated with the virtual router.
(345) - If a Shutdown event is received, then:
(350) + Cancel the Master_Down_Timer
(355) + Transition to the {Initialize} state
(360) -endif // shutdown recv
(365) - If the Master_Down_Timer fires, then:
(370) + Send an ADVERTISEMENT
(375) + If the protected IPvX address is an IPv4 address, then:
(380) * Broadcast a gratuitous ARP request on that interface
containing the virtual router MAC address for each IPv4
address associated with the virtual router.
(385) + else // ipv6
(390) * Compute and join the Solicited-Node multicast
address [<a href="./rfc4291" title=""IP Version 6 Addressing Architecture"">RFC4291</a>] for the IPv6 address(es) associated with
the virtual router.
(395) * For each IPv6 address associated with the virtual
router, send an unsolicited ND Neighbor Advertisement with
the Router Flag (R) set, the Solicited Flag (S) unset, the
Override flag (O) set, the target address set to the IPv6
address of the virtual router, and the target link-layer
address set to the virtual router MAC address.
(400) +endif // was protected addr ipv4?
(405) + Set the Adver_Timer to Advertisement_Interval
(410) + Transition to the {Master} state
(415) -endif // Master_Down_Timer fired
(420) - If an ADVERTISEMENT is received, then:
(425) + If the Priority in the ADVERTISEMENT is zero, then:
(430) * Set the Master_Down_Timer to Skew_Time
<span class="grey">Nadas Standards Track [Page 23]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-24" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
(440) + else // priority non-zero
(445) * If Preempt_Mode is False, or if the Priority in the
ADVERTISEMENT is greater than or equal to the local
Priority, then:
(450) @ Set Master_Adver_Interval to Adver Interval
contained in the ADVERTISEMENT
(455) @ Recompute the Master_Down_Interval
(460) @ Reset the Master_Down_Timer to
Master_Down_Interval
(465) * else // preempt was true or priority was less
(470) @ Discard the ADVERTISEMENT
(475) *endif // preempt test
(480) +endif // was priority zero?
(485) -endif // was advertisement recv?
(490) endwhile // Backup state
<span class="h4"><a class="selflink" id="section-6.4.3" href="#section-6.4.3">6.4.3</a>. Master</span>
While in the {Master} state, the router functions as the forwarding
router for the IPvX address(es) associated with the virtual router.
Note that in the Master state, the Preempt_Mode Flag is not
considered.
(600) While in this state, a VRRP router MUST do the following:
(605) - If the protected IPvX address is an IPv4 address, then:
(610) + MUST respond to ARP requests for the IPv4 address(es)
associated with the virtual router.
(615) - else // ipv6
(620) + MUST be a member of the Solicited-Node multicast
address for the IPv6 address(es) associated with the virtual
router.
<span class="grey">Nadas Standards Track [Page 24]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-25" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
(625) + MUST respond to ND Neighbor Solicitation message for
the IPv6 address(es) associated with the virtual router.
(630) ++ MUST send ND Router Advertisements for the virtual
router.
(635) ++ If Accept_Mode is False: MUST NOT drop IPv6 Neighbor
Solicitations and Neighbor Advertisements.
(640) +-endif // ipv4?
(645) - MUST forward packets with a destination link-layer MAC
address equal to the virtual router MAC address.
(650) - MUST accept packets addressed to the IPvX address(es)
associated with the virtual router if it is the IPvX address owner
or if Accept_Mode is True. Otherwise, MUST NOT accept these
packets.
(655) - If a Shutdown event is received, then:
(660) + Cancel the Adver_Timer
(665) + Send an ADVERTISEMENT with Priority = 0
(670) + Transition to the {Initialize} state
(675) -endif // shutdown recv
(680) - If the Adver_Timer fires, then:
(685) + Send an ADVERTISEMENT
(690) + Reset the Adver_Timer to Advertisement_Interval
(695) -endif // advertisement timer fired
(700) - If an ADVERTISEMENT is received, then:
(705) -+ If the Priority in the ADVERTISEMENT is zero, then:
(710) -* Send an ADVERTISEMENT
(715) -* Reset the Adver_Timer to Advertisement_Interval
(720) -+ else // priority was non-zero
<span class="grey">Nadas Standards Track [Page 25]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-26" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
(725) -* If the Priority in the ADVERTISEMENT is greater
than the local Priority,
(730) -* or
(735) -* If the Priority in the ADVERTISEMENT is equal to
the local Priority and the primary IPvX Address of the
sender is greater than the local primary IPvX Address, then:
(740) -@ Cancel Adver_Timer
(745) -@ Set Master_Adver_Interval to Adver Interval
contained in the ADVERTISEMENT
(750) -@ Recompute the Skew_Time
(755) @ Recompute the Master_Down_Interval
(760) @ Set Master_Down_Timer to Master_Down_Interval
(765) @ Transition to the {Backup} state
(770) * else // new Master logic
(775) @ Discard ADVERTISEMENT
(780) *endif // new Master detected
(785) +endif // was priority zero?
(790) -endif // advert recv
(795) endwhile // in Master
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Sending and Receiving VRRP Packets</span>
<span class="h3"><a class="selflink" id="section-7.1" href="#section-7.1">7.1</a>. Receiving VRRP Packets</span>
The following functions are performed when a VRRP packet is received:
- If the received packet is an IPv4 packet, then:
+ MUST verify that the IPv4 TTL is 255.
- else // ipv6 recv
+ MUST verify that the IPv6 Hop Limit is 255.
<span class="grey">Nadas Standards Track [Page 26]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-27" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
-endif
- MUST verify that the VRRP version is 3.
- MUST verify that the received packet contains the complete VRRP
packet (including fixed fields, and IPvX address).
- MUST verify the VRRP checksum.
- MUST verify that the VRID is configured on the receiving
interface and the local router is not the IPvX address owner
(Priority = 255 (decimal)).
If any one of the above checks fails, the receiver MUST discard the
packet, SHOULD log the event, and MAY indicate via network management
that an error occurred.
- MAY verify that "Count IPvX Addrs" and the list of IPvX
address(es) match the IPvX Address(es) configured for the VRID.
If the above check fails, the receiver SHOULD log the event and MAY
indicate via network management that a misconfiguration was detected.
<span class="h3"><a class="selflink" id="section-7.2" href="#section-7.2">7.2</a>. Transmitting VRRP Packets</span>
The following operations MUST be performed when transmitting a VRRP
packet:
- Fill in the VRRP packet fields with the appropriate virtual
router configuration state
- Compute the VRRP checksum
- If the protected address is an IPv4 address, then:
+ Set the source MAC address to virtual router MAC Address
+ Set the source IPv4 address to interface primary IPv4 address
- else // ipv6
+ Set the source MAC address to virtual router MAC Address
+ Set the source IPv6 address to interface link-local IPv6
address
-endif
<span class="grey">Nadas Standards Track [Page 27]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-28" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
- Set the IPvX protocol to VRRP
- Send the VRRP packet to the VRRP IPvX multicast group
Note: VRRP packets are transmitted with the virtual router MAC
address as the source MAC address to ensure that learning bridges
correctly determine the LAN segment the virtual router is
attached to.
<span class="h3"><a class="selflink" id="section-7.3" href="#section-7.3">7.3</a>. Virtual Router MAC Address</span>
The virtual router MAC address associated with a virtual router is an
IEEE 802 MAC Address in the following format:
IPv4 case: 00-00-5E-00-01-{VRID} (in hex, in Internet-standard bit-
order)
The first three octets are derived from the IANA's Organizational
Unique Identifier (OUI). The next two octets (00-01) indicate the
address block assigned to the VRRP for IPv4 protocol. {VRID} is the
VRRP Virtual Router Identifier. This mapping provides for up to 255
IPv4 VRRP routers on a network.
IPv6 case: 00-00-5E-00-02-{VRID} (in hex, in Internet-standard bit-
order)
The first three octets are derived from the IANA's OUI. The next two
octets (00-02) indicate the address block assigned to the VRRP for
IPv6 protocol. {VRID} is the VRRP Virtual Router Identifier. This
mapping provides for up to 255 IPv6 VRRP routers on a network.
<span class="h3"><a class="selflink" id="section-7.4" href="#section-7.4">7.4</a>. IPv6 Interface Identifiers</span>
IPv6 routers running VRRP MUST create their Interface Identifiers in
the normal manner (e.g., "Transmission of IPv6 Packets over Ethernet
Networks" [<a href="./rfc2464" title=""Transmission of IPv6 Packets over Ethernet Networks"">RFC2464</a>]). They MUST NOT use the virtual router MAC
address to create the Modified Extended Unique Identifier (EUI)-64
identifiers.
This VRRP specification describes how to advertise and resolve the
VRRP router's IPv6 link-local address and other associated IPv6
addresses into the virtual router MAC address.
<span class="grey">Nadas Standards Track [Page 28]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-29" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Operational Issues</span>
<span class="h3"><a class="selflink" id="section-8.1" href="#section-8.1">8.1</a>. IPv4</span>
<span class="h4"><a class="selflink" id="section-8.1.1" href="#section-8.1.1">8.1.1</a>. ICMP Redirects</span>
ICMP redirects may be used normally when VRRP is running between a
group of routers. This allows VRRP to be used in environments where
the topology is not symmetric.
The IPv4 source address of an ICMP redirect should be the address
that the end-host used when making its next-hop routing decision. If
a VRRP router is acting as Master for virtual router(s) containing
addresses it does not own, then it must determine which virtual
router the packet was sent to when selecting the redirect source
address. One method to deduce the virtual router used is to examine
the destination MAC address in the packet that triggered the
redirect.
It may be useful to disable redirects for specific cases where VRRP
is being used to load-share traffic between a number of routers in a
symmetric topology.
<span class="h4"><a class="selflink" id="section-8.1.2" href="#section-8.1.2">8.1.2</a>. Host ARP Requests</span>
When a host sends an ARP request for one of the virtual router IPv4
addresses, the Virtual Router Master MUST respond to the ARP request
with an ARP response that indicates the virtual MAC address for the
virtual router. Note that the source address of the Ethernet frame
of this ARP response is the physical MAC address of the physical
router. The Virtual Router Master MUST NOT respond with its physical
MAC address in the ARP response. This allows the client to always
use the same MAC address regardless of the current Master router.
When a VRRP router restarts or boots, it SHOULD NOT send any ARP
messages using its physical MAC address for the IPv4 address it owns;
it should only send ARP messages that include virtual MAC addresses.
This may entail the following:
o When configuring an interface, Virtual Router Master routers
should broadcast a gratuitous ARP request containing the virtual
router MAC address for each IPv4 address on that interface.
o At system boot, when initializing interfaces for VRRP operation,
delay gratuitous ARP requests and ARP responses until both the
IPv4 address and the virtual router MAC address are configured.
<span class="grey">Nadas Standards Track [Page 29]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-30" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
o When, for example, ssh access to a particular VRRP router is
required, an IP address known to belong to that router must be
used.
<span class="h4"><a class="selflink" id="section-8.1.3" href="#section-8.1.3">8.1.3</a>. Proxy ARP</span>
If Proxy ARP is to be used on a VRRP router, then the VRRP router
must advertise the virtual router MAC address in the Proxy ARP
message. Doing otherwise could cause hosts to learn the real MAC
address of the VRRP router.
<span class="h3"><a class="selflink" id="section-8.2" href="#section-8.2">8.2</a>. IPv6</span>
<span class="h4"><a class="selflink" id="section-8.2.1" href="#section-8.2.1">8.2.1</a>. ICMPv6 Redirects</span>
ICMPv6 redirects may be used normally when VRRP is running between a
group of routers [<a href="./rfc4443" title=""Internet Control Message Protocol (ICMPv6) for the Internet Protocol Version 6 (IPv6) Specification"">RFC4443</a>]. This allows VRRP to be used in
environments where the topology is not symmetric (e.g., the VRRP
routers do not connect to the same destinations).
The IPv6 source address of an ICMPv6 redirect should be the address
that the end-host used when making its next-hop routing decision. If
a VRRP router is acting as Master for virtual router(s) containing
addresses it does not own, then it must determine which virtual
router the packet was sent to when selecting the redirect source
address. A method to deduce the virtual router used is to examine
the destination MAC address in the packet that triggered the
redirect.
<span class="h4"><a class="selflink" id="section-8.2.2" href="#section-8.2.2">8.2.2</a>. ND Neighbor Solicitation</span>
When a host sends an ND Neighbor Solicitation message for the virtual
router IPv6 address, the Virtual Router Master MUST respond to the ND
Neighbor Solicitation message with the virtual MAC address for the
virtual router. The Virtual Router Master MUST NOT respond with its
physical MAC address. This allows the client to always use the same
MAC address regardless of the current Master router.
When a Virtual Router Master sends an ND Neighbor Solicitation
message for a host's IPv6 address, the Virtual Router Master MUST
include the virtual MAC address for the virtual router if it sends a
source link-layer address option in the neighbor solicitation
message. It MUST NOT use its physical MAC address in the source
link-layer address option.
When a VRRP router restarts or boots, it SHOULD NOT send any ND
messages with its physical MAC address for the IPv6 address it owns;
it should only send ND messages that include virtual MAC addresses.
<span class="grey">Nadas Standards Track [Page 30]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-31" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
This may entail the following:
o When configuring an interface, Virtual Router Master routers
should send an unsolicited ND Neighbor Advertisement message
containing the virtual router MAC address for the IPv6 address on
that interface.
o At system boot, when initializing interfaces for VRRP operation,
all ND Router and Neighbor Advertisements and Solicitation
messages must be delayed until both the IPv6 address and the
virtual router MAC address are configured.
Note that on a restarting Master router where the VRRP protected
address is the interface address, (that is, priority 255) duplicate
address detection (DAD) may fail, as the Backup router may answer
that it owns the address. One solution is to not run DAD in this
case.
<span class="h4"><a class="selflink" id="section-8.2.3" href="#section-8.2.3">8.2.3</a>. Router Advertisements</span>
When a Backup VRRP router has become Master for a virtual router, it
is responsible for sending Router Advertisements for the virtual
router as specified in <a href="#section-6.4.3">Section 6.4.3</a>. The Backup routers must be
configured to send the same Router Advertisement options as the
address owner.
Router Advertisement options that advertise special services (e.g.,
Home Agent Information Option) that are present in the address owner
should not be sent by the address owner unless the Backup routers are
prepared to assume these services in full and have a complete and
synchronized database for this service.
<span class="h3"><a class="selflink" id="section-8.3" href="#section-8.3">8.3</a>. IPvX</span>
<span class="h4"><a class="selflink" id="section-8.3.1" href="#section-8.3.1">8.3.1</a>. Potential Forwarding Loop</span>
If it is not the address owner, a VRRP router SHOULD NOT forward
packets addressed to the IPvX address for which it becomes Master.
Forwarding these packets would result in unnecessary traffic. Also,
in the case of LANs that receive packets they transmit (e.g., Token
Ring), this can result in a forwarding loop that is only terminated
when the IPvX TTL expires.
One such mechanism for VRRP routers is to add/delete a reject host
route for each adopted IPvX address when transitioning to/from MASTER
state.
<span class="grey">Nadas Standards Track [Page 31]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-32" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
<span class="h4"><a class="selflink" id="section-8.3.2" href="#section-8.3.2">8.3.2</a>. Recommendations Regarding Setting Priority Values</span>
A priority value of 255 designates a particular router as the "IPvX
address owner". Care must be taken not to configure more than one
router on the link in this way for a single VRID.
Routers with priority 255 will, as soon as they start up, preempt all
lower-priority routers. No more than one router on the link is to be
configured with priority 255, especially if preemption is set. If no
router has this priority, and preemption is disabled, then no
preemption will occur.
When there are multiple Backup routers, their priority values should
be uniformly distributed. For example, if one Backup router has the
default priority of 100 and another Backup Router is added, a
priority of 50 would be a better choice for it than 99 or 100, in
order to facilitate faster convergence.
<span class="h3"><a class="selflink" id="section-8.4" href="#section-8.4">8.4</a>. VRRPv3 and VRRPv2 Interoperation</span>
<span class="h4"><a class="selflink" id="section-8.4.1" href="#section-8.4.1">8.4.1</a>. Assumptions</span>
1. VRRPv2 and VRRPv3 interoperation is optional.
2. Mixing VRRPv2 and VRRPv3 should only be done when transitioning
from VRRPv2 to VRRPv3. Mixing the two versions should not be
considered a permanent solution.
<span class="h4"><a class="selflink" id="section-8.4.2" href="#section-8.4.2">8.4.2</a>. VRRPv3 Support of VRRPv2</span>
As mentioned above, this support is intended for upgrade scenarios
and is NOT recommended for permanent deployments.
An implementation MAY implement a configuration flag that tells it to
listen for and send both VRRPv2 and VRRPv3 advertisements.
When a virtual router is configured this way and is the Master, it
MUST send both types at the configured rate, even if sub-second.
When a virtual router is configured this way and is the Backup, it
should time out based on the rate advertised by the Master; in the
case of a VRRPv2 Master, this means it must translate the timeout
value it receives (in seconds) into centiseconds. Also, a Backup
should ignore VRRPv2 advertisements from the current Master if it is
also receiving VRRPv3 packets from it. It MAY report when a VRRPv3
Master is *not* sending VRRPv2 packets: that suggests they don't
agree on whether they're supporting VRRPv2 routers.
<span class="grey">Nadas Standards Track [Page 32]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-33" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
<span class="h4"><a class="selflink" id="section-8.4.3" href="#section-8.4.3">8.4.3</a>. VRRPv3 Support of VRRPv2 Considerations</span>
<span class="h5"><a class="selflink" id="section-8.4.3.1" href="#section-8.4.3.1">8.4.3.1</a>. Slow, High-Priority Masters</span>
See also <a href="#section-5.2.7">Section 5.2.7</a>, "Maximum Advertisement Interval
(Max Adver Int)".
The VRRPv2 Master router interacting with a sub-second VRRPv3 Backup
router is the most important example of this.
A VRRPv2 implementation should not be given a higher priority than a
VRRPv2/VRRPv3 implementation it is interacting with if the VRRPv2/
VRRPv3 rate is sub-second.
<span class="h5"><a class="selflink" id="section-8.4.3.2" href="#section-8.4.3.2">8.4.3.2</a>. Overwhelming VRRPv2 Backups</span>
It seems possible that a VRRPv3 Master router sending at centisecond
rates could potentially overwhelm a VRRPv2 Backup router with
potentially unclear results.
In this upgrade case, a deployment should initially run the VRRPv3
Master routers with lower frequencies (e.g., 100 centiseconds) until
the VRRPv2 routers are upgraded. Then, once the deployment has
convinced itself that VRRPv3 is working properly, the VRRPv2 support
may be unconfigured and then the desired sub-second rates configured.
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Security Considerations</span>
VRRP for IPvX does not currently include any type of authentication.
Earlier versions of the VRRP (for IPv4) specification included
several types of authentication ranging from none to strong.
Operational experience and further analysis determined that these did
not provide sufficient security to overcome the vulnerability of
misconfigured secrets, causing multiple Masters to be elected. Due
to the nature of the VRRP protocol, even if VRRP messages are
cryptographically protected, it does not prevent hostile nodes from
behaving as if they are a VRRP Master, creating multiple Masters.
Authentication of VRRP messages could have prevented a hostile node
from causing all properly functioning routers from going into Backup
state. However, having multiple Masters can cause as much disruption
as no routers, which authentication cannot prevent. Also, even if a
hostile node could not disrupt VRRP, it can disrupt ARP and create
the same effect as having all routers go into Backup.
<span class="grey">Nadas Standards Track [Page 33]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-34" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
Some L2 switches provide the capability to filter out, for example,
ARP and/or ND messages from end-hosts on a switch-port basis. This
mechanism could also filter VRRP messages from switch ports
associated with end-hosts and can be considered for deployments with
untrusted hosts.
It should be noted that these attacks are not worse and are a subset
of the attacks that any node attached to a LAN can do independently
of VRRP. The kind of attacks a malicious node on a LAN can do
include promiscuously receiving packets for any router's MAC address;
sending packets with the router's MAC address as the source MAC
address in the L2 header to tell the L2 switches to send packets
addressed to the router to the malicious node instead of the router;
send redirects to tell the hosts to send their traffic somewhere
else; send unsolicited ND replies; answer ND requests; etc. All of
this can be done independently of implementing VRRP. VRRP does not
add to these vulnerabilities.
Independent of any authentication type, VRRP includes a mechanism
(setting TTL = 255, checking on receipt) that protects against VRRP
packets being injected from another remote network. This limits most
vulnerabilities to local attacks.
VRRP does not provide any confidentiality. Confidentiality is not
necessary for the correct operation of VRRP, and there is no
information in the VRRP messages that must be kept secret from other
nodes on the LAN.
In the context of IPv6 operation, if SEcure Neighbor Discovery (SEND)
is deployed, VRRP is compatible with the "trust anchor" and "trust
anchor or cga" modes of SEND [<a href="./rfc3971" title=""SEcure Neighbor Discovery (SEND)"">RFC3971</a>]. The SEND configuration needs
to give the Master and Backup routers the same prefix delegation in
the certificates so that Master and Backup routers advertise the same
set of subnet prefixes. However, the Master and Backup routers
should have their own key pairs to avoid private key sharing.
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. Contributors and Acknowledgments</span>
The editor would like to thank V. Ullanatt for his review of an early
version. This document consists of very little new material (there
is some new text in <a href="#appendix-A">Appendix A</a>) and was created by merging and
"xml-izing" [<a href="#ref-VRRP-IPv6" title=""Virtual Router Redundancy Protocol for IPv6"">VRRP-IPv6</a>] and [<a href="./rfc3768" title=""Virtual Router Redundancy Protocol (VRRP)"">RFC3768</a>], and then adding in the changes
discussed recently on the Virtual Router Redundancy Protocol working
group's mailing list. R. Hinden is the author and J. Cruz the editor
of the former. The contributors for the latter appear below.
<span class="grey">Nadas Standards Track [Page 34]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-35" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
The IPv6 text in this specification is based on [<a href="./rfc2338" title=""Virtual Router Redundancy Protocol"">RFC2338</a>]. The
authors of <a href="./rfc2338">RFC2338</a> are S. Knight, D. Weaver, D. Whipple, R. Hinden,
D. Mitzel, P. Hunt, P. Higginson, M. Shand, and A. Lindem.
The author of [<a href="#ref-VRRP-IPv6" title=""Virtual Router Redundancy Protocol for IPv6"">VRRP-IPv6</a>] would also like to thank Erik Nordmark,
Thomas Narten, Steve Deering, Radia Perlman, Danny Mitzel, Mukesh
Gupta, Don Provan, Mark Hollinger, John Cruz, and Melissa Johnson for
their helpful suggestions.
The IPv4 text in this specification is based on [<a href="./rfc3768" title=""Virtual Router Redundancy Protocol (VRRP)"">RFC3768</a>]. The
authors of that specification would like to thank Glen Zorn, Michael
Lane, Clark Bremer, Hal Peterson, Tony Li, Barbara Denny, Joel
Halpern, Steve Bellovin, Thomas Narten, Rob Montgomery, Rob Coltun,
Radia Perlman, Russ Housley, Harald Alvestrand, Steve Bellovin, Ned
Freed, Ted Hardie, Russ Housley, Bert Wijnen, Bill Fenner, and Alex
Zinin for their comments and suggestions.
<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>. IANA Considerations</span>
IANA has assigned an IPv6 link-local scope multicast address for VRRP
for IPv6. The IPv6 multicast address is as follows:
FF02:0:0:0:0:0:0:12
The values assigned address should be entered into <a href="#section-5.1.2.2">Section 5.1.2.2</a>.
The IANA has reserved a block of IANA Ethernet unicast addresses for
VRRP for IPv6 in the range
00-00-5E-00-02-00 to 00-00-5E-00-02-FF (in hex)
Similar assignments are documented at:
<a href="http://www.iana.org">http://www.iana.org</a>
<span class="h2"><a class="selflink" id="section-12" href="#section-12">12</a>. References</span>
<span class="h3"><a class="selflink" id="section-12.1" href="#section-12.1">12.1</a>. Normative References</span>
[<a id="ref-ISO.10038.1993">ISO.10038.1993</a>] International Organization for Standardization,
"Information technology - Telecommunications and
information exchange between systems - Local area
networks - Media access control (MAC) bridges", ISO
Standard 10038, 1993.
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
<span class="grey">Nadas Standards Track [Page 35]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-36" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
[<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-RFC3768">RFC3768</a>] Hinden, R., "Virtual Router Redundancy Protocol
(VRRP)", <a href="./rfc3768">RFC 3768</a>, April 2004.
[<a id="ref-RFC4291">RFC4291</a>] Hinden, R. and S. Deering, "IP Version 6 Addressing
Architecture", <a href="./rfc4291">RFC 4291</a>, February 2006.
[<a id="ref-RFC4443">RFC4443</a>] Conta, A., Deering, S., and M. Gupta, Ed.,
"Internet Control Message Protocol (ICMPv6) for the
Internet Protocol Version 6 (IPv6) Specification",
<a href="./rfc4443">RFC 4443</a>, March 2006.
[<a id="ref-RFC4861">RFC4861</a>] Narten, T., Nordmark, E., Simpson, W., and H.
Soliman, "Neighbor Discovery for IP version 6
(IPv6)", <a href="./rfc4861">RFC 4861</a>, September 2007.
<span class="h3"><a class="selflink" id="section-12.2" href="#section-12.2">12.2</a>. Informative References</span>
[<a id="ref-VRRP-IPv6">VRRP-IPv6</a>] Hinden, R. and J. Cruz, "Virtual Router Redundancy
Protocol for IPv6", Work in Progress, March 2007.
[<a id="ref-IPSTB">IPSTB</a>] Higginson, P. and M. Shand, "Development of Router
Clusters to Provide Fast Failover in IP Networks",
Digital Technical Journal, Volume 9 Number 3,
Winter 1997.
[<a id="ref-IPX">IPX</a>] Novell Incorporated, "IPX Router Specification
Version 1.10", October 1992.
[<a id="ref-RFC1071">RFC1071</a>] Braden, R., Borman, D., Partridge, C., and W.
Plummer, "Computing the Internet checksum", <a href="./rfc1071">RFC</a>
<a href="./rfc1071">1071</a>, September 1988.
[<a id="ref-RFC1256">RFC1256</a>] Deering, S., Ed., "ICMP Router Discovery Messages",
<a href="./rfc1256">RFC 1256</a>, September 1991.
[<a id="ref-RFC1469">RFC1469</a>] Pusateri, T., "IP Multicast over Token-Ring Local
Area Networks", <a href="./rfc1469">RFC 1469</a>, June 1993.
[<a id="ref-RFC2131">RFC2131</a>] Droms, R., "Dynamic Host Configuration Protocol",
<a href="./rfc2131">RFC 2131</a>, March 1997.
[<a id="ref-RFC2281">RFC2281</a>] Li, T., Cole, B., Morton, P., and D. Li, "Cisco Hot
Standby Router Protocol (HSRP)", <a href="./rfc2281">RFC 2281</a>, March
1998.
<span class="grey">Nadas Standards Track [Page 36]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-37" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
[<a id="ref-RFC2328">RFC2328</a>] Moy, J., "OSPF Version 2", STD 54, <a href="./rfc2328">RFC 2328</a>, April
1998.
[<a id="ref-RFC2338">RFC2338</a>] Knight, S., Weaver, D., Whipple, D., Hinden, R.,
Mitzel, D., Hunt, P., Higginson, P., Shand, M., and
A. Lindem, "Virtual Router Redundancy Protocol",
<a href="./rfc2338">RFC 2338</a>, April 1998.
[<a id="ref-RFC2453">RFC2453</a>] Malkin, G., "RIP Version 2", STD 56, <a href="./rfc2453">RFC 2453</a>,
November 1998.
[<a id="ref-RFC2464">RFC2464</a>] Crawford, M., "Transmission of IPv6 Packets over
Ethernet Networks", <a href="./rfc2464">RFC 2464</a>, December 1998.
[<a id="ref-RFC3971">RFC3971</a>] Arkko, J., Ed., Kempf, J., Zill, B., and P.
Nikander, "SEcure Neighbor Discovery (SEND)", <a href="./rfc3971">RFC</a>
<a href="./rfc3971">3971</a>, March 2005.
[<a id="ref-TKARCH">TKARCH</a>] IBM Incorporated, "IBM Token-Ring Network,
Architecture Specification, Publication
SC30-3374-02, Third Edition", September 1989.
<span class="grey">Nadas Standards Track [Page 37]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-38" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
<span class="h2"><a class="selflink" id="appendix-A" href="#appendix-A">Appendix A</a>. Operation over FDDI, Token Ring, and ATM LANE</span>
<span class="h3"><a class="selflink" id="appendix-A.1" href="#appendix-A.1">A.1</a>. Operation over FDDI</span>
FDDI interfaces remove from the FDDI ring frames that have a source
MAC address matching the device's hardware address. Under some
conditions, such as router isolations, ring failures, protocol
transitions, etc., VRRP may cause there to be more than one Master
router. If a Master router installs the virtual router MAC address
as the hardware address on a FDDI device, then other Masters'
ADVERTISEMENTS will be removed from the ring during the Master
convergence, and convergence will fail.
To avoid this, an implementation SHOULD configure the virtual router
MAC address by adding a unicast MAC filter in the FDDI device, rather
than changing its hardware MAC address. This will prevent a Master
router from removing any ADVERTISEMENTS it did not originate.
<span class="h3"><a class="selflink" id="appendix-A.2" href="#appendix-A.2">A.2</a>. Operation over Token Ring</span>
Token Ring has several characteristics that make running VRRP
difficult. These include the following:
o In order to switch to a new Master located on a different bridge
Token-Ring segment from the previous Master when using source-
route bridges, a mechanism is required to update cached source-
route information.
o No general multicast mechanism is supported across old and new
Token-Ring adapter implementations. While many newer Token-Ring
adapters support group addresses, Token-Ring functional-address
support is the only generally available multicast mechanism. Due
to the limited number of Token-Ring functional addresses, these
may collide with other usage of the same Token-Ring functional
addresses.
Due to these difficulties, the preferred mode of operation over Token
Ring will be to use a Token-Ring functional address for the VRID
virtual MAC address. Token-Ring functional addresses have the two
high-order bits in the first MAC address octet set to B'1'. They
range from 03-00-00-00-00-80 to 03-00-02-00-00-00 (canonical format).
However, unlike multicast addresses, there is only one unique
functional address per bit position. The functional addresses
03-00-00-10-00-00 through 03-00-02-00-00-00 are reserved by the
Token-Ring Architecture [<a href="#ref-TKARCH" title=""IBM Token-Ring Network, Architecture Specification, Publication SC30-3374-02, Third Edition"">TKARCH</a>] for user-defined applications.
However, since there are only 12 user-defined Token-Ring functional
addresses, there may be other non-IPvX protocols using the same
functional address. Since the Novell IPX [<a href="#ref-IPX" title=""IPX Router Specification Version 1.10"">IPX</a>] protocol uses the
<span class="grey">Nadas Standards Track [Page 38]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-39" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
03-00-00-10-00-00 functional address, operation of VRRP over Token
Ring will avoid use of this functional address. In general, Token-
Ring VRRP users will be responsible for resolution of other user-
defined Token-Ring functional address conflicts.
VRIDs are mapped directly to Token-Ring functional addresses. In
order to decrease the likelihood of functional-address conflicts,
allocation will begin with the largest functional address. Most non-
IPvX protocols use the first or first couple user-defined functional
addresses, and it is expected that VRRP users will choose VRIDs
sequentially, starting with 1.
VRID Token-Ring Functional Address
---- -----------------------------
1 03-00-02-00-00-00
2 03-00-04-00-00-00
3 03-00-08-00-00-00
4 03-00-10-00-00-00
5 03-00-20-00-00-00
6 03-00-40-00-00-00
7 03-00-80-00-00-00
8 03-00-00-01-00-00
9 03-00-00-02-00-00
10 03-00-00-04-00-00
11 03-00-00-08-00-00
Or, more succinctly, octets 3 and 4 of the functional address are
equal to (0x4000 >> (VRID - 1)) in non-canonical format.
Since a functional address cannot be used as a MAC-level source
address, the real MAC address is used as the MAC source address in
VRRP advertisements. This is not a problem for bridges, since
packets addressed to functional addresses will be sent on the
spanning-tree explorer path [<a href="#ref-ISO.10038.1993" title=""Information technology - Telecommunications and information exchange between systems - Local area networks - Media access control (MAC) bridges"">ISO.10038.1993</a>].
The functional-address mode of operation MUST be implemented by
routers supporting VRRP on Token Ring.
Additionally, routers MAY support the unicast mode of operation to
take advantage of newer Token-Ring adapter implementations that
support non-promiscuous reception for multiple unicast MAC addresses
and to avoid both the multicast traffic and usage conflicts
associated with the use of Token-Ring functional addresses. Unicast
mode uses the same mapping of VRIDs to virtual MAC addresses as
Ethernet. However, one important difference exists. ND
request/reply packets contain the virtual MAC address as the source
MAC address. The reason for this is that some Token-Ring driver
<span class="grey">Nadas Standards Track [Page 39]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-40" ></span>
<span class="grey"><a href="./rfc5798">RFC 5798</a> VRRPv3 for IPv4 and IPv6 March 2010</span>
implementations keep a cache of MAC address/source-routing
information independent of the ND cache.
Hence, these implementations have to receive a packet with the
virtual MAC address as the source address in order to transmit to
that MAC address in a source-route-bridged network.
Unicast mode on Token Ring has one limitation that should be
considered. If there are VRID routers on different source-route-
bridge segments, and there are host implementations that keep their
source-route information in the ND cache and do not listen to
gratuitous NDs, these hosts will not update their ND source-route
information correctly when a switchover occurs. The only possible
solution is to put all routers with the same VRID on the same source-
route-bridge segment and use techniques to prevent that bridge
segment from being a single point of failure. These techniques are
beyond the scope of this document.
For both the multicast and unicast mode of operation, VRRP
advertisements sent to 224.0.0.18 should be encapsulated as described
in [<a href="./rfc1469" title=""IP Multicast over Token-Ring Local Area Networks"">RFC1469</a>].
<span class="h3"><a class="selflink" id="appendix-A.3" href="#appendix-A.3">A.3</a>. Operation over ATM LANE</span>
Operation of VRRP over ATM LANE on routers with ATM LANE interfaces
and/or routers behind proxy LAN Emulation Clients (LECs) are beyond
the scope of this document.
Author's Address
Stephen Nadas (editor)
Ericsson
900 Chelmsford St., T3 4th Floor
Lowell, MA 01851
USA
Phone: +1 978 275 7448
EMail: stephen.nadas@ericsson.com
Nadas Standards Track [Page 40]
</pre>
|