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
  
     | 
    
      <pre>Internet Engineering Task Force (IETF)                      D. Farinacci
Request for Comments: 8060                                   lispers.net
Category: Experimental                                          D. Meyer
ISSN: 2070-1721                                                  Brocade
                                                             J. Snijders
                                                                     NTT
                                                           February 2017
                  <span class="h1">LISP Canonical Address Format (LCAF)</span>
Abstract
   This document defines a canonical address format encoding used in
   Locator/ID Separation Protocol (LISP) control messages and in the
   encoding of lookup keys for the LISP Mapping Database System.
Status of This Memo
   This document is not an Internet Standards Track specification; it is
   published for examination, experimental implementation, and
   evaluation.
   This document defines an Experimental Protocol for the Internet
   community.  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).  Not
   all documents approved by the IESG are a candidate for any level of
   Internet Standard; see <a href="./rfc7841#section-2">Section 2 of RFC 7841</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/rfc8060">http://www.rfc-editor.org/info/rfc8060</a>.
<span class="grey">Farinacci, et al.             Experimental                      [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
Copyright Notice
   Copyright (c) 2017 IETF Trust and the persons identified as the
   document authors.  All rights reserved.
   This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document.  Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.
<span class="grey">Farinacci, et al.             Experimental                      [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
Table of Contents
   <a href="#section-1">1</a>. Introduction ....................................................<a href="#page-4">4</a>
   <a href="#section-2">2</a>. Terminology .....................................................<a href="#page-5">5</a>
      <a href="#section-2.1">2.1</a>. Requirements Language ......................................<a href="#page-5">5</a>
      <a href="#section-2.2">2.2</a>. Definition of Terms ........................................<a href="#page-5">5</a>
   <a href="#section-3">3</a>. LISP Canonical Address Format Encodings .........................<a href="#page-6">6</a>
   <a href="#section-4">4</a>. LISP Canonical Address Applications .............................<a href="#page-8">8</a>
      <a href="#section-4.1">4.1</a>. Segmentation Using LISP ....................................<a href="#page-8">8</a>
      <a href="#section-4.2">4.2</a>. Carrying AS Numbers in the Mapping Database ................<a href="#page-9">9</a>
      <a href="#section-4.3">4.3</a>. Assigning Geo-Coordinates to Locator Addresses ............<a href="#page-10">10</a>
      <a href="#section-4.4">4.4</a>. NAT Traversal Scenarios ...................................<a href="#page-11">11</a>
      <a href="#section-4.5">4.5</a>. Multicast Group Membership Information ....................<a href="#page-13">13</a>
      <a href="#section-4.6">4.6</a>. Traffic Engineering Using Re-encapsulating Tunnels ........<a href="#page-15">15</a>
      <a href="#section-4.7">4.7</a>. Storing Security Data in the Mapping Database .............<a href="#page-16">16</a>
      <a href="#section-4.8">4.8</a>. Source/Destination 2-Tuple Lookups ........................<a href="#page-17">17</a>
      <a href="#section-4.9">4.9</a>. Replication List Entries for Multicast Forwarding .........<a href="#page-18">18</a>
      <a href="#section-4.10">4.10</a>. Applications for AFI List LCAF Type ......................<a href="#page-19">19</a>
           <a href="#section-4.10.1">4.10.1</a>. Binding IPv4 and IPv6 Addresses ...................<a href="#page-19">19</a>
           <a href="#section-4.10.2">4.10.2</a>. Layer 2 VPNs ......................................<a href="#page-20">20</a>
           <a href="#section-4.10.3">4.10.3</a>. ASCII Names in the Mapping Database ...............<a href="#page-21">21</a>
           <a href="#section-4.10.4">4.10.4</a>. Using Recursive LISP Canonical Address Encodings ..22
           <a href="#section-4.10.5">4.10.5</a>. Compatibility Mode Use Case .......................<a href="#page-23">23</a>
   <a href="#section-5">5</a>. Experimental LISP Canonical Address Applications ...............<a href="#page-24">24</a>
      <a href="#section-5.1">5.1</a>. Convey Application-Specific Data ..........................<a href="#page-24">24</a>
      <a href="#section-5.2">5.2</a>. Generic Database Mapping Lookups ..........................<a href="#page-25">25</a>
      <a href="#section-5.3">5.3</a>. PETR Admission Control Functionality ......................<a href="#page-26">26</a>
      <a href="#section-5.4">5.4</a>. Data Model Encoding .......................................<a href="#page-27">27</a>
      <a href="#section-5.5">5.5</a>. Encoding Key/Value Address Pairs ..........................<a href="#page-28">28</a>
      <a href="#section-5.6">5.6</a>. Multiple Data-Planes ......................................<a href="#page-29">29</a>
   <a href="#section-6">6</a>. Security Considerations ........................................<a href="#page-31">31</a>
   <a href="#section-7">7</a>. IANA Considerations ............................................<a href="#page-31">31</a>
   <a href="#section-8">8</a>. References .....................................................<a href="#page-32">32</a>
      <a href="#section-8.1">8.1</a>. Normative References ......................................<a href="#page-32">32</a>
      <a href="#section-8.2">8.2</a>. Informative References ....................................<a href="#page-33">33</a>
   Acknowledgments ...................................................<a href="#page-35">35</a>
   Authors' Addresses ................................................<a href="#page-36">36</a>
<span class="grey">Farinacci, et al.             Experimental                      [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>.  Introduction</span>
   The LISP architecture and protocol [<a href="./rfc6830" title=""The Locator/ID Separation Protocol (LISP)"">RFC6830</a>] introduces two new
   numbering spaces: Endpoint Identifiers (EIDs) and Routing Locators
   (RLOCs).  To provide flexibility for current and future applications,
   these values can be encoded in LISP control messages using a general
   syntax that includes Address Family Identifier (AFI), length, and
   value fields.
   Currently defined AFIs include IPv4 and IPv6 addresses, which are
   formatted according to code-points assigned in the "Address Family
   Numbers" registry [<a href="#ref-AFN" title=""Address Family Numbers"">AFN</a>] as follows:
   IPv4-Encoded Address:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |            AFI = 1            |       IPv4 Address ...        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |     ...  IPv4 Address         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   IPv6-Encoded Address:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |            AFI = 2            |       IPv6 Address ...        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                     ...  IPv6 Address  ...                    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                     ...  IPv6 Address  ...                    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                     ...  IPv6 Address  ...                    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |     ...  IPv6 Address         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   This document describes the currently defined AFIs that LISP uses
   along with their encodings and introduces the LISP Canonical Address
   Format (LCAF) that can be used to define the LISP-specific encodings
   for arbitrary AFI values.
   Specific detailed uses for the LCAF Types defined in this document
   can be found in the use-case documents that implement them.  The same
   LCAF Type may be used by more than one use-case document.  As an
   Experimental specification, this work is, by definition, incomplete.
<span class="grey">Farinacci, et al.             Experimental                      [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   The LCAF Types defined in this document are to support
   experimentation and are intended for cautious use in self-contained
   environments in support of the corresponding use-case documents.
   This document provides assignment for an initial set of approved LCAF
   Types (registered with IANA) and additional unapproved LCAF Types
   [<a href="./rfc6830" title=""The Locator/ID Separation Protocol (LISP)"">RFC6830</a>].  The unapproved LCAF encodings are defined to support
   further study and experimentation.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>.  Terminology</span>
<span class="h3"><a class="selflink" id="section-2.1" href="#section-2.1">2.1</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="h3"><a class="selflink" id="section-2.2" href="#section-2.2">2.2</a>.  Definition of Terms</span>
   Address Family Identifier (AFI):  a term used to describe an address
      encoding in a packet.  Address families are defined for IPv4 and
      IPv6.  See [<a href="#ref-AFN" title=""Address Family Numbers"">AFN</a>] and [<a href="./rfc3232" title=""Assigned Numbers: RFC 1700 is Replaced by an On-line Database"">RFC3232</a>] for details.  The reserved AFI
      value of 0 is used in this specification to indicate an
      unspecified encoded address where the length of the address is 0
      bytes following the 16-bit AFI value of 0.
   Unspecified Address Format:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |            AFI = 0            |      <no address follows>
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Endpoint ID (EID):  a 32-bit (for IPv4) or 128-bit (for IPv6) value
      used in the source and destination address fields of the first
      (most inner) LISP header of a packet.  The host obtains a
      destination EID the same way it obtains a destination address
      today, for example, through a DNS lookup or SIP exchange.  The
      source EID is obtained via existing mechanisms used to set a
      host's "local" IP address.  An EID is allocated to a host from an
      EID-prefix block associated with the site where the host is
      located.  An EID can be used by a host to refer to other hosts.
   Routing Locator (RLOC):  the IPv4 or IPv6 address of an Egress Tunnel
      Router (ETR).  It is the output of an EID-to-RLOC mapping lookup.
      An EID maps to one or more RLOCs.  Typically, RLOCs are numbered
      from topologically aggregatable blocks that are assigned to a site
      at each point to which it attaches to the global Internet; where
<span class="grey">Farinacci, et al.             Experimental                      [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
      the topology is defined by the connectivity of provider networks,
      RLOCs can be thought of as Provider-Assigned (PA) addresses.
      Multiple RLOCs can be assigned to the same ETR device or to
      multiple ETR devices at a site.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>.  LISP Canonical Address Format Encodings</span>
   IANA has assigned AFI value 16387 (0x4003) to the LISP Canonical
   Address Format (LCAF).  This specification defines the encoding
   format of the LISP Canonical Address (LCA).  This section defines all
   Types for which an initial allocation in the LISP-LCAF registry is
   requested.  See <a href="#section-7">Section 7</a> for the complete list of such Types.
   The AFI definitions in [<a href="#ref-AFN" title=""Address Family Numbers"">AFN</a>] only allocate code-points for the AFI
   value itself.  The length of the address or entity that follows is
   not defined and is implied based on conventional experience.  When
   LISP uses LCAF definitions from this document, the AFI-based address
   lengths are specified in this document.  When new LCAF definitions
   are defined in other use-case documents, the AFI-based address
   lengths for any new AFI-encoded addresses are specified in those
   documents.
   The first 6 bytes of a LISP Canonical Address are followed by a
   variable number of fields of variable length:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Type       |     Rsvd2     |            Length             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                             . . .                             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Rsvd1/Rsvd2:  these 8-bit fields are reserved for future use and MUST
      be transmitted as 0 and ignored on receipt.
   Flags:  this 8-bit field is for future definition and use.  For now,
      set to zero on transmission and ignored on receipt.
   Type:  this 8-bit field is specific to the LISP Canonical Address
      Format encodings.  Both approved and unapproved values are listed
      below.  Unapproved values are indicated; see <a href="#section-5">Section 5</a> for more
      details.
<span class="grey">Farinacci, et al.             Experimental                      [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   Type 0:  Null Body
   Type 1:  AFI List
   Type 2:  Instance ID
   Type 3:  AS Number
   Type 4:  Application Data (unapproved; see <a href="#section-5">Section 5</a>)
   Type 5:  Geo-Coordinates
   Type 6:  Opaque Key (unapproved; see <a href="#section-5">Section 5</a>)
   Type 7:  NAT-Traversal
   Type 8:  Nonce Locator (unapproved; see <a href="#section-5">Section 5</a>)
   Type 9:  Multicast Info
   Type 10:  Explicit Locator Path
   Type 11:  Security Key
   Type 12:  Source/Dest Key
   Type 13:  Replication List Entry
   Type 14:  JSON Data Model (unapproved; see <a href="#section-5">Section 5</a>)
   Type 15:  Key/Value Address Pair (unapproved; see <a href="#section-5">Section 5</a>)
   Type 16:  Encapsulation Format (unapproved; see <a href="#section-5">Section 5</a>)
   Length:  this 16-bit field is in units of bytes and covers all of the
      LISP Canonical Address payload, starting and including the byte
      after the Length field.  When including the AFI, an LCAF-encoded
      address will have a minimum length of 8 bytes when the Length
      field is 0.  The 8 bytes include the AFI, Flags, Type, Rsvd1,
      Rsvd2, and Length fields.  When the AFI is not next to an encoded
      address in a control message, the encoded address will have a
      minimum length of 6 bytes when the Length field is 0.  The 6 bytes
      include the Flags, Type, Rsvd1, Rsvd2, and Length fields.
<span class="grey">Farinacci, et al.             Experimental                      [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   [<a id="ref-RFC6830">RFC6830</a>] states RLOC-records based on an IP address are sorted when
   encoded in control messages, so the locator-set has consistent order
   across all xTRs for a given EID.  The sort order is based on sort-key
   {afi, RLOC-address}.  When an RLOC based on an IP address is LCAF
   encoded, the sort-key is {afi, LCAF-Type}.  Therefore, when a
   locator-set has a mix of AFI records and LCAF records, they are
   ordered from smallest to largest AFI value.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>.  LISP Canonical Address Applications</span>
   The following sections define the LCAF for the currently approved
   initial set of Type values.
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>.  Segmentation Using LISP</span>
   When multiple organizations inside of a LISP site are using private
   addresses [<a href="./rfc1918" title=""Address Allocation for Private Internets"">RFC1918</a>] as EID prefixes, their address spaces must remain
   segregated due to possible address duplication.  An Instance ID in
   the address encoding can aid in making the entire AFI-based address
   unique.
   Another use for the Instance ID LISP Canonical Address Format is when
   creating multiple segmented VPNs inside of a LISP site where keeping
   EID-prefix-based subnets is desirable.
   Instance ID LISP Canonical Address Format:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type = 2    | IID mask-len  |            Length             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                         Instance ID                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              AFI = x          |         Address  ...          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   IID mask-len:  if the AFI is set to 0, then this format is not
      encoding an extended EID prefix, but rather an Instance ID range
      where the 'IID mask-len' indicates the number of high-order bits
      used in the Instance ID field for the range.  The low-order bits
      of the Instance ID field must be 0.
   Length:  length in bytes starting and including the byte after this
      Length field.
<span class="grey">Farinacci, et al.             Experimental                      [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   Instance ID:  the low-order 24 bits that can go into a LISP data
      header when the I bit is set.  See [<a href="./rfc6830" title=""The Locator/ID Separation Protocol (LISP)"">RFC6830</a>] for details.  The
      reason for the length difference is so that the maximum number of
      instances supported per mapping system is 2^32, while conserving
      space in the LISP data header.  This comes at the expense of
      limiting the maximum number of instances per xTR to 2^24.  If an
      xTR is configured with multiple Instance IDs where the value in
      the high-order 8 bits is the same, then the low-order 24 bits MUST
      be unique.
   AFI = x:  x can be any AFI value from [<a href="#ref-AFN" title=""Address Family Numbers"">AFN</a>].
   This LISP Canonical Address Type can be used to encode either EID or
   RLOC addresses.
   Usage: When used as a lookup key, the EID is regarded as an extended-
   EID in the mapping system.  This encoding is used in EID-records in
   Map-Request, Map-Reply, Map-Register, and Map-Notify messages.  When
   LISP Delegated Database Tree (LISP-DDT) [<a href="#ref-LISP-DDT" title=""LISP Delegated Database Tree"">LISP-DDT</a>] is used as the
   mapping system mechanism, extended EIDs are used in Map-Referral
   messages.
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>.  Carrying AS Numbers in the Mapping Database</span>
   When an Autonomous System (AS) number is stored in the LISP Mapping
   Database System for either policy or documentation reasons, it can be
   encoded in a LISP Canonical Address.
   AS Number LISP Canonical Address Format:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type = 3    |     Rsvd2     |             Length            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           AS Number                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              AFI = x          |         Address  ...          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Length:  length in bytes starting and including the byte after this
      Length field.
   AS Number:  the 32-bit AS number of the autonomous system that has
      been assigned to either the EID or RLOC that follows.
<span class="grey">Farinacci, et al.             Experimental                      [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   AFI = x:  x can be any AFI value from [<a href="#ref-AFN" title=""Address Family Numbers"">AFN</a>].
   The AS Number LCAF Type can be used to encode either EID or RLOC
   addresses.  The former is used to describe the LISP-ALT AS number the
   EID prefix for the site is being carried for.  The latter is used to
   describe the AS that is carrying RLOC based prefixes in the
   underlying routing system.
   Usage: This encoding can be used in EID-records or RLOC-records in
   Map-Request, Map-Reply, Map-Register, and Map-Notify messages.  When
   LISP-DDT [<a href="#ref-LISP-DDT" title=""LISP Delegated Database Tree"">LISP-DDT</a>] is used as the mapping system mechanism, extended
   EIDs are used in Map-Referral messages.
<span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a>.  Assigning Geo-Coordinates to Locator Addresses</span>
   If an ETR desires to send a Map-Reply describing the Geo-Coordinates
   for each locator in its locator-set, it can use the Geo-Coordinates
   LCAF Type to convey physical location information.
   Coordinates are specified using the WGS 84 (World Geodetic System
   1984) reference coordinate system [<a href="#ref-WGS-84" title=""Department of Defense World Geodetic System 1984"">WGS-84</a>].
   Geo-Coordinates LISP Canonical Address Format:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type = 5    |     Rsvd2     |            Length             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |N|     Latitude Degrees        |    Minutes    |    Seconds    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |E|     Longitude Degrees       |    Minutes    |    Seconds    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                            Altitude                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              AFI = x          |         Address  ...          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Length:  length in bytes starting and including the byte after this
      Length field.
   N: When set to 1 means north; otherwise, south.
   Latitude Degrees:  Valid values range from 0 to 90 degrees above or
      below the equator (northern or southern hemisphere, respectively).
<span class="grey">Farinacci, et al.             Experimental                     [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   Latitude Minutes:  Valid values range from 0 to 59.
   Latitude Seconds:  Valid values range from 0 to 59.
   E: When set to 1 means east; otherwise, west.
   Longitude Degrees:  Valid values are from 0 to 180 degrees right or
      left of the Prime Meridian.
   Longitude Minutes:  Valid values range from 0 to 59.
   Longitude Seconds:  Valid values range from 0 to 59.
   Altitude:  Height relative to sea level in meters.  This is a two's
      complement signed integer meaning that the altitude could be below
      sea level.  A value of 0x7fffffff indicates no Altitude value is
      encoded.
   AFI = x:  x can be any AFI value from [<a href="#ref-AFN" title=""Address Family Numbers"">AFN</a>].
   The Geo-Coordinates LCAF Type can be used to encode either EID or
   RLOC addresses.  When used for EID encodings, you can determine the
   physical location of an EID along with the topological location by
   observing the locator-set.
   Usage: This encoding can be used in EID-records or RLOC-records in
   Map-Request, Map-Reply, Map-Register, and Map-Notify messages.  When
   LISP-DDT [<a href="#ref-LISP-DDT" title=""LISP Delegated Database Tree"">LISP-DDT</a>] is used as the mapping system mechanism, extended
   EIDs are used in Map-Referral messages.
   The use of the Geo-Coordinates LCAF encoding raises privacy issues as
   location information is privacy sensitive, and possibly unexpectedly
   privacy-sensitive information may be conveyed, e.g., if the location
   information corresponds to a router located in a person's home.
   Therefore, this encoding should not be used unless needed for
   operation of a LISP deployment.  Before electing to utilize this
   encoding, care should be taken to ensure the appropriate policies are
   being used by the EID for controlling the conveyed information.
<span class="h3"><a class="selflink" id="section-4.4" href="#section-4.4">4.4</a>.  NAT Traversal Scenarios</span>
   When a LISP system is conveying global-address and mapped-port
   information when traversing through a NAT device, the NAT-Traversal
   LCAF Type is used.  See [<a href="#ref-NAT-LISP" title=""NAT traversal for LISP"">NAT-LISP</a>] for details.
<span class="grey">Farinacci, et al.             Experimental                     [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   NAT-Traversal Canonical Address Format:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type = 7    |     Rsvd2     |             Length            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |       MS UDP Port Number      |      ETR UDP Port Number      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              AFI = x          |  Global ETR RLOC Address  ... |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              AFI = x          |       MS RLOC Address  ...    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              AFI = x          | Private ETR RLOC Address  ... |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              AFI = x          |      RTR RLOC Address 1 ...   |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              AFI = x          |      RTR RLOC Address k ...   |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Length:  length in bytes starting and including the byte after this
      Length field.
   MS UDP Port Number:  this is the UDP port number of the Map-Server
      and is set to 4342.
   ETR UDP Port Number:  this is the port number returned to a LISP
      system that was copied from the source port from a packet that has
      flowed through a NAT device.
   AFI = x:  x can be any AFI value from [<a href="#ref-AFN" title=""Address Family Numbers"">AFN</a>].
   Global ETR RLOC Address:  this is an address known to be globally
      unique built by NAT-traversal functionality in a LISP router.
   MS RLOC Address:  this is the address of the Map-Server used in the
      destination RLOC of a packet that has flowed through a NAT device.
   Private ETR RLOC Address:  this is an address known to be a private
      address inserted in this LCAF by a LISP router that resides on the
      private side of a NAT device.
   RTR RLOC Address:  this is an encapsulation address used by an
      Ingress Tunnel Router (ITR) or Proxy Ingress Tunnel Router (PITR)
      that resides behind a NAT device.  This address is known to have
      state in a NAT device so packets can flow from it to the LISP ETR
<span class="grey">Farinacci, et al.             Experimental                     [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
      behind the NAT.  There can be one or more NAT Re-encapsulating
      Tunnel Router (RTR) [<a href="#ref-NAT-LISP" title=""NAT traversal for LISP"">NAT-LISP</a>] addresses supplied in these set of
      fields.  The number of RTRs encoded is determined by parsing each
      field.  When there are no RTRs supplied, the RTR fields can be
      omitted and reflected by the LCAF length field or an AFI of 0 can
      be used to indicate zero RTRs encoded.
   Usage: This encoding can be used in Info-Request and Info-Reply
   messages.  The mapping system does not store this information.  The
   information is used by an xTR and Map-Server to convey private and
   public address information when traversing NAT and firewall devices.
   Care should be taken to protect privacy against the adverse use of a
   Global or Private ETR RLOC Address by ensuring policy controls are
   used during EID registrations that use this LCAF Type in RLOC-
   records.  Refer to the use-case documents for additional information.
<span class="h3"><a class="selflink" id="section-4.5" href="#section-4.5">4.5</a>.  Multicast Group Membership Information</span>
   Multicast group information can be published in the mapping database.
   So a lookup on a group address EID can return a replication list of
   RLOC group addresses or RLOC unicast addresses.  The intent of this
   type of unicast replication is to deliver packets to multiple ETRs at
   receiver LISP multicast sites.  The locator-set encoding for this
   EID-record Type can be a list of ETRs when they each register with
   "Merge Semantics".  The encoding can be a typical AFI-encoded locator
   address.  When an RTR list is being registered (with multiple levels
   according to [<a href="#ref-LISP-RE" title=""LISP Replication Engineering"">LISP-RE</a>]), the Replication List Entry LCAF Type is used
   for locator encoding.
   This LCAF encoding can be used to send broadcast packets to all
   members of a subnet when an EID is away from its home subnet
   location.
<span class="grey">Farinacci, et al.             Experimental                     [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   Multicast Info Canonical Address Format:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type = 9    |     Rsvd2     |             Length            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                         Instance ID                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |            Reserved           | Source MaskLen| Group MaskLen |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              AFI = x          |   Source/Subnet Address  ...  |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              AFI = x          |       Group Address  ...      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Length:  length in bytes starting and including the byte after this
      Length field.
   Reserved:  must be set to zero and ignored on receipt.
   Instance ID:  the low-order 24 bits that can go into a LISP data
      header when the I bit is set.  See [<a href="./rfc6830" title=""The Locator/ID Separation Protocol (LISP)"">RFC6830</a>] for details.  The use
      of the Instance ID in this LCAF Type is to associate a multicast
      forwarding entry for a given VPN.  The Instance ID describes the
      VPN and is registered to the mapping database system as a 3-tuple
      of (Instance ID, S-prefix, G-prefix).
   Source MaskLen:  the mask length of the source prefix that follows.
      The length is the number of high-order mask bits set.
   Group MaskLen:  the mask length of the group prefix that follows.
      The length is the number of high-order mask bits set.
   AFI = x:  x can be any AFI value from [<a href="#ref-AFN" title=""Address Family Numbers"">AFN</a>].  When a specific address
      family has a multicast address semantic, this field must be either
      a group address or a broadcast address.
   Source/Subnet Address:  the source address or prefix for encoding an
      (S,G) multicast entry.
   Group Address:  the group address or group prefix for encoding (S,G)
      or (*,G) multicast entries.
<span class="grey">Farinacci, et al.             Experimental                     [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   Usage: This encoding can be used in EID-records in Map-Request, Map-
   Reply, Map-Register, and Map-Notify messages.  When LISP-DDT
   [<a href="#ref-LISP-DDT" title=""LISP Delegated Database Tree"">LISP-DDT</a>] is used as the mapping system mechanism, extended EIDs are
   used in Map-Referral messages.
<span class="h3"><a class="selflink" id="section-4.6" href="#section-4.6">4.6</a>.  Traffic Engineering Using Re-encapsulating Tunnels</span>
   For a given EID lookup into the mapping database, this LCAF can be
   returned to provide a list of locators in an explicit
   re-encapsulation path.  See [<a href="#ref-LISP-TE" title=""LISP Traffic Engineering Use-Cases"">LISP-TE</a>] for details.
   Explicit Locator Path (ELP) Canonical Address Format:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type = 10   |     Rsvd2     |            Length             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           Rsvd3         |L|P|S|           AFI = x             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                         Reencap Hop 1  ...                    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           Rsvd3         |L|P|S|           AFI = x             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                         Reencap Hop k  ...                    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Length:  length in bytes starting and including the byte after this
      Length field.
   Rsvd3:  this field is reserved for future use and MUST be transmitted
      as 0 and ignored on receipt.
   Lookup bit (L):  this is the Lookup bit used to indicate to the user
      of the ELP not to use this address for encapsulation but to look
      it up in the mapping database system to obtain an encapsulating
      RLOC address.
   RLOC Probe bit (P):  this is the RLOC Probe bit that means the
      Reencap Hop allows RLOC-probe messages to be sent to it.  When the
      R bit is set to 0, RLOC-probes must not be sent.  When a Reencap
      Hop is an anycast address then multiple physical Reencap Hops are
      using the same RLOC address.  In this case, RLOC-probes are not
      needed because when the closest RLOC address is not reachable,
      another RLOC address can be reachable.
<span class="grey">Farinacci, et al.             Experimental                     [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   Strict bit (S):  this is the Strict bit, which means the associated
      Reencap Hop is required to be used.  If this bit is 0, the
      re-encapsulator can skip this Reencap Hop and go to the next one
      in the list.
   AFI = x:  x can be any AFI value from [<a href="#ref-AFN" title=""Address Family Numbers"">AFN</a>].  When a specific AFI has
      its own encoding of a multicast address, this field must be either
      a group address or a broadcast address.
   Usage: This encoding can be used in RLOC-records in Map-Request, Map-
   Reply, Map-Register, and Map-Notify messages.  This encoding does not
   need to be understood by the mapping system for mapping database
   lookups, since this LCAF Type is not a lookup key.
<span class="h3"><a class="selflink" id="section-4.7" href="#section-4.7">4.7</a>.  Storing Security Data in the Mapping Database</span>
   When a locator in a locator-set has a security key associated with
   it, this LCAF will be used to encode key material.  See [<a href="#ref-LISP-DDT" title=""LISP Delegated Database Tree"">LISP-DDT</a>]
   for details.
   Security Key Canonical Address Format:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type = 11   |      Rsvd2    |             Length            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Key Count   |      Rsvd3    | Key Algorithm |   Rsvd4     |R|
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           Key Length          |       Key Material ...        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                        ... Key Material                       |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              AFI = x          |       Locator Address ...     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Length:  length in bytes starting and including the byte after this
      Length field.
   Key Count:  the Key Count field declares the number of Key sections
      included in this LCAF.  A Key section is made up of Key Length and
      Key Material fields.
   Rsvd3:  this field is reserved for future use and MUST be transmitted
      as 0 and ignored on receipt.
<span class="grey">Farinacci, et al.             Experimental                     [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   Key Algorithm:  the Key Algorithm field identifies the key's
      cryptographic algorithm and specifies the format of the Public Key
      field.  Refer to the [<a href="#ref-LISP-DDT" title=""LISP Delegated Database Tree"">LISP-DDT</a>] and [<a href="./rfc8061" title=""Locator/ID Separation Protocol (LISP) Data-Plane Confidentiality"">RFC8061</a>] use cases for
      definitions of this field.
   Rsvd4:  this field is reserved for future use and MUST be transmitted
      as 0 and ignored on receipt.
   R bit:  this is the Revoke bit and, if set, it specifies that this
      key is being revoked.
   Key Length:  this field determines the length in bytes of the Key
      Material field.
   Key Material:  the Key Material field stores the key material.  The
      format of the key material stored depends on the Key Algorithm
      field.
   AFI = x:  x can be any AFI value from [<a href="#ref-AFN" title=""Address Family Numbers"">AFN</a>].  This is the locator
      address that owns the encoded security key.
   Usage: This encoding can be used in EID-records or RLOC-records in
   Map-Request, Map-Reply, Map-Register, and Map-Notify messages.  When
   LISP-DDT [<a href="#ref-LISP-DDT" title=""LISP Delegated Database Tree"">LISP-DDT</a>] is used as the mapping system mechanism, extended
   EIDs are used in Map-Referral messages.
<span class="h3"><a class="selflink" id="section-4.8" href="#section-4.8">4.8</a>.  Source/Destination 2-Tuple Lookups</span>
   When both a source and destination address of a flow need
   consideration for different locator-sets, this 2-tuple key is used in
   EID fields in LISP control messages.  When the Source/Dest key is
   registered to the mapping database, it can be encoded as a source-
   prefix and destination-prefix.  When the Source/Dest is used as a key
   for a mapping database lookup, the source and destination come from a
   data packet.
<span class="grey">Farinacci, et al.             Experimental                     [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   Source/Dest Key Canonical Address Format:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type = 12   |     Rsvd2     |             Length            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |            Reserved           |   Source-ML   |    Dest-ML    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              AFI = x          |         Source-Prefix ...     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              AFI = y          |     Destination-Prefix ...    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Length:  length in bytes starting and including the byte after this
      Length field.
   Reserved:  must be set to zero and ignored on receipt.
   Source-ML:  the mask length of the source prefix that follows.  The
      length is the number of high-order mask bits set.
   Dest-ML:  the mask length of the destination prefix that follows.
      The length is the number of high-order mask bits set.
   AFI = x:  x can be any AFI value from [<a href="#ref-AFN" title=""Address Family Numbers"">AFN</a>].
   AFI = y:  y can be any AFI value from [<a href="#ref-AFN" title=""Address Family Numbers"">AFN</a>].  When a specific address
      family has a multicast address semantic, this field must be either
      a group address or a broadcast address.
   Usage: This encoding can be used in EID-records in Map-Request, Map-
   Reply, Map-Register, and Map-Notify messages.  When LISP-DDT
   [<a href="#ref-LISP-DDT" title=""LISP Delegated Database Tree"">LISP-DDT</a>] is used as the mapping system mechanism, extended EIDs are
   used in Map-Referral messages.  Refer to [<a href="#ref-LISP-TE" title=""LISP Traffic Engineering Use-Cases"">LISP-TE</a>] for usage details
   of this LCAF Type.
<span class="h3"><a class="selflink" id="section-4.9" href="#section-4.9">4.9</a>.  Replication List Entries for Multicast Forwarding</span>
   The Replication List Entry LCAF Type is an encoding for a locator
   being used for unicast replication according to the specification in
   [<a href="#ref-LISP-RE" title=""LISP Replication Engineering"">LISP-RE</a>].  This locator encoding is pointed to by a Multicast Info
   LCAF Type and is registered by Re-encapsulating Tunnel Routers (RTRs)
   that are participating in an overlay distribution tree.  Each RTR
   will register its locator address and its configured level in the
   distribution tree.
<span class="grey">Farinacci, et al.             Experimental                     [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   Replication List Entry Canonical Address Format:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type = 13   |    Rsvd2      |             Length            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              Rsvd3            |     Rsvd4     |  Level Value  |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              AFI = x          |           RTR/ETR #1 ...      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              Rsvd3            |     Rsvd4     |  Level Value  |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              AFI = x          |           RTR/ETR  #n ...     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Length:  length in bytes starting and including the byte after this
      Length field.
   Rsvd3/Rsvd4:  must be set to zero and ignored on receipt.
   Level Value:  this value is associated with the level within the
      overlay distribution tree hierarchy where the RTR resides.  The
      level numbers are ordered from lowest value being close to the ITR
      (meaning that ITRs replicate to level-0 RTRs) and higher levels
      are further downstream on the distribution tree closer to ETRs of
      multicast receiver sites.
   AFI = x:  x can be any AFI value from [<a href="#ref-AFN" title=""Address Family Numbers"">AFN</a>].  A specific AFI has its
      own encoding of either a unicast or multicast locator address.
      For efficiency reasons, all RTR/ETR entries for the same level
      should be combined by a Map-Server to avoid searching through the
      entire multilevel list of locator entries in a Map-Reply message.
   Usage: This encoding can be used in RLOC-records in Map-Request, Map-
   Reply, Map-Register, and Map-Notify messages.
<span class="h3"><a class="selflink" id="section-4.10" href="#section-4.10">4.10</a>.  Applications for AFI List LCAF Type</span>
<span class="h4"><a class="selflink" id="section-4.10.1" href="#section-4.10.1">4.10.1</a>.  Binding IPv4 and IPv6 Addresses</span>
   When header translation between IPv4 and IPv6 is desirable, a LISP
   Canonical Address can use the AFI List LCAF Type to carry a variable
   number of AFIs in one LCAF AFI.
<span class="grey">Farinacci, et al.             Experimental                     [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   Address Binding LISP Canonical Address Format:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type = 1    |     Rsvd2     |            Length             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |            AFI = 1            |       IPv4 Address ...        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |     ...  IPv4 Address         |            AFI = 2            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                          IPv6 Address ...                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                     ...  IPv6 Address  ...                    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                     ...  IPv6 Address  ...                    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                     ...  IPv6 Address                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Length:  length in bytes starting and including the byte after this
      Length field.
   This type of address format can be included in a Map-Request when the
   address is being used as an EID, but the LISP Mapping Database System
   lookup destination can use only the IPv4 address.  This is so a
   Mapping Database Service Transport System, such as LISP-ALT
   [<a href="./rfc6836" title=""Locator/ID Separation Protocol Alternative Logical Topology (LISP+ALT)"">RFC6836</a>], can use the Map-Request destination address to route the
   control message to the desired LISP site.
   Usage: This encoding can be used in EID-records or RLOC-records in
   Map-Request, Map-Reply, Map-Register, and Map-Notify messages.  See
   the other subsections in this section for specific use cases.
<span class="h4"><a class="selflink" id="section-4.10.2" href="#section-4.10.2">4.10.2</a>.  Layer 2 VPNs</span>
   When Media Access Control (MAC) addresses are stored in the LISP
   Mapping Database System, the AFI List LCAF Type can be used to carry
   AFI 6.
<span class="grey">Farinacci, et al.             Experimental                     [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   MAC Address LISP Canonical Address Format:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type = 1    |     Rsvd2     |             Length            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |             AFI = 6           |    Layer 2 MAC Address  ...   |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                    ... Layer 2 MAC Address                    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Length:  length in bytes starting and including the byte after this
      Length field.
   This address format can be used to connect Layer 2 domains together
   using LISP over an IPv4 or IPv6 core network to create a Layer 2 VPN.
   In this use case, a MAC address is being used as an EID, and the
   locator-set that this EID maps to can be an IPv4 or IPv6 RLOC, or
   even another MAC address being used as an RLOC.  See [<a href="#ref-EID-MOBILITY">EID-MOBILITY</a>]
   for how Layer 2 VPNs operate when doing EID mobility.
   Care should be taken to protect privacy against the adverse use of a
   Layer 2 MAC address by ensuring policy controls are used during EID
   registrations that use AFI=6 encodings in RLOC-records.  Refer to the
   use-case documents for additional information.
<span class="h4"><a class="selflink" id="section-4.10.3" href="#section-4.10.3">4.10.3</a>.  ASCII Names in the Mapping Database</span>
   If DNS names [<a href="./rfc1035" title=""Domain names - implementation and specification"">RFC1035</a>] or URIs [<a href="./rfc3986" title=""Uniform Resource Identifier (URI): Generic Syntax"">RFC3986</a>] are stored in the LISP
   Mapping Database System, the AFI List LCAF Type can be used to carry
   an ASCII string.
   ASCII LISP Canonical Address Format:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type = 1    |     Rsvd2     |            Length             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |             AFI = 17          |      DNS Name or URI  ...     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
<span class="grey">Farinacci, et al.             Experimental                     [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   Length:  length in bytes starting and including the byte after this
      Length field.
   An example for using DNS names is when an ETR registers a mapping
   with an EID-record encoded as (AFI=1, 10.0.0.0/8) with an RLOC-record
   (AFI=17, "router.abc.com").
<span class="h4"><a class="selflink" id="section-4.10.4" href="#section-4.10.4">4.10.4</a>.  Using Recursive LISP Canonical Address Encodings</span>
   When any combination of above is desirable, the AFI List LCAF Type
   value can be used to carry within the LCAF AFI another LCAF AFI (for
   example, Application-Specific Data in <a href="#section-5.1">Section 5.1</a>).
   Recursive LISP Canonical Address Format:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type = 1    |     Rsvd2     |            Length             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type = 4    |     Rsvd2     |            Length2            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   IP TOS, IPv6 TC or Flow Label               |    Protocol   |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Local Port (lower-range)   |    Local Port (upper-range)   |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Remote Port (lower-range)   |   Remote Port (upper-range)   |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |            AFI = 1            |       IPv4 Address ...        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |     ...  IPv4 Address         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Length:  length in bytes starting and including the byte after this
      Length field.
   Length2:  length in bytes starting and including the byte after this
      Length2 field.
   This format could be used by a Mapping Database Service Transport
   System, such as LISP-ALT [<a href="./rfc6836" title=""Locator/ID Separation Protocol Alternative Logical Topology (LISP+ALT)"">RFC6836</a>], where the AFI=1 IPv4 address is
   used as an EID and placed in the Map-Request destination address by
   the sending LISP system.  The ALT system can deliver the Map-Request
   to the LISP destination site independent of the Application Data LCAF
<span class="grey">Farinacci, et al.             Experimental                     [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   Type AFI payload values.  When this AFI is processed by the
   destination LISP site, it can return different locator-sets based on
   the type of application or level of service that is being requested.
<span class="h4"><a class="selflink" id="section-4.10.5" href="#section-4.10.5">4.10.5</a>.  Compatibility Mode Use Case</span>
   A LISP system should use the AFI List LCAF Type format when sending
   to LISP systems that do not support a particular LCAF Type used to
   encode locators.  This allows the receiving system to be able to
   parse a locator address for encapsulation purposes.  The list of AFIs
   in an AFI List LCAF Type has no semantic ordering and a receiver
   should parse each AFI element no matter what the ordering.
   Compatibility Mode Address Format:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type = 1    |     Rsvd2     |           Length              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type = 5    |     Rsvd2     |           Length2             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |N|     Latitude Degrees        |    Minutes    |    Seconds    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |E|     Longitude Degrees       |    Minutes    |    Seconds    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                            Altitude                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              AFI = 0          |           AFI = 1             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                          IPv4 Address                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Length:  length in bytes starting and including the byte after this
      Length field.
   Length2:  length in bytes starting and including the byte after this
      Length2 field.
   If a system does not recognized the Geo-Coordinates LCAF Type that is
   accompanying a locator address, an encoder can include the Geo-
   Coordinates LCAF Type embedded in an AFI List LCAF Type where the AFI
<span class="grey">Farinacci, et al.             Experimental                     [Page 23]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-24" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   in the Geo-Coordinates LCAF Type is set to 0 and the AFI encoded next
   in the list is encoded with a valid AFI value to identify the locator
   address.
   A LISP system is required to support the AFI List LCAF Type to use
   this procedure.  It would skip over 10 bytes of the Geo-Coordinates
   LCAF Type to get to the locator address encoding (an IPv4 locator
   address).  A LISP system that does support the Geo-Coordinates LCAF
   Type can support parsing the locator address within the Geo-
   Coordinates LCAF Type encoding or in the locator encoding that
   follows in the AFI List LCAF Type.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>.  Experimental LISP Canonical Address Applications</span>
   The following sections describe experimental LCAF encodings.  These
   LCAF Types are not approved (i.e., not registered with IANA).  The
   inclusion of these encodings in this document is in support of
   further study and experimentation to determine whether these
   encodings are functional, if there is a demand for these use cases,
   and to better understand deployment considerations.  As noted
   previously, these LCAF Types are restricted to cautious use in self-
   contained environments in support of the corresponding use-case
   documents.
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>.  Convey Application-Specific Data</span>
   When a locator-set needs to be conveyed based on the type of
   application or the Per-Hop Behavior (PHB) of a packet, the
   Application Data LCAF Type can be used.
   Application Data LISP Canonical Address Format:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type = 4    |     Rsvd2     |            Length             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |       IP TOS, IPv6 TC, or Flow Label          |    Protocol   |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Local Port (lower-range)   |    Local Port (upper-range)   |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Remote Port (lower-range)   |   Remote Port (upper-range)   |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              AFI = x          |         Address  ...          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
<span class="grey">Farinacci, et al.             Experimental                     [Page 24]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-25" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   Length:  length in bytes starting and including the byte after this
      Length field.
   IP TOS, IPv6 TC, or Flow Label:  this field stores the 8-bit IPv4 TOS
      field used in an IPv4 header, the 8-bit IPv6 Traffic Class or Flow
      Label used in an IPv6 header.
   Local Port/Remote Port Ranges:  these fields are from the TCP, UDP,
      or Stream Control Transmission Protocol (SCTP) transport header.
      A range can be specified by using a lower value and an upper
      value.  When a single port is encoded, the lower and upper value
      fields are the same.
   AFI = x:  x can be any AFI value from [<a href="#ref-AFN" title=""Address Family Numbers"">AFN</a>].
   The Application Data LCAF Type is used for an EID encoding when an
   ITR wants a locator-set for a specific application.  When used for an
   RLOC encoding, the ETR is supplying a locator-set for each specific
   application is has been configured to advertise.
   Usage: This encoding can be used in EID-records in Map-Request, Map-
   Reply, Map-Register, and Map-Notify messages.  When LISP-DDT
   [<a href="#ref-LISP-DDT" title=""LISP Delegated Database Tree"">LISP-DDT</a>] is used as the mapping system mechanism, extended EIDs are
   used in Map-Referral messages.  This LCAF Type is used as a lookup
   key to the mapping system that can return a longest-match or exact-
   match entry.
<span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a>.  Generic Database Mapping Lookups</span>
   When the LISP Mapping Database System holds information accessed by a
   generic formatted key (where the key is not the usual IPv4 or IPv6
   address), an opaque key may be desirable.
   Opaque Key LISP Canonical Address Format:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type = 6    |     Rsvd2     |             Length            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Key Field Num |      Key Wildcard Fields      |   Key . . .   |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                       . . . Key                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
<span class="grey">Farinacci, et al.             Experimental                     [Page 25]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-26" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   Length:  length in bytes starting and including the byte after this
      Length field.
   Key Field Num:  the value of this field is the number of "Key" sub-
      fields minus 1, the Key field can be broken up into.  So, if this
      field has a value of 0, there is one sub-field in the "Key".  The
      width of the sub-fields are fixed length.  So, for a key size of 8
      bytes, with a Key Field Num of 3, four sub-fields of 2 bytes each
      in length are allowed.  Allowing for a reasonable number of 16
      sub-field separators, valid values range from 0 to 15.
   Key Wildcard Fields:  describes which fields in the key are not used
      as part of the key lookup.  This wildcard encoding is a bitfield.
      Each bit is a don't-care bit for a corresponding field in the key.
      Bit 0 (the low-order bit) in this bitfield corresponds the first
      field, the low-order field in the key, bit 1 the second field, and
      so on.  When a bit is set in the bitfield, it is a don't-care bit
      and should not be considered as part of the database lookup.  When
      the entire 16 bits are set to 0, then all bits of the key are used
      for the database lookup.
   Key:  the variable length key used to do a LISP Mapping Database
      System lookup.  The length of the key is the value n (as shown
      above).
   Usage: This is an experimental Type where the usage has not yet been
   defined.
<span class="h3"><a class="selflink" id="section-5.3" href="#section-5.3">5.3</a>.  PETR Admission Control Functionality</span>
   When a public Proxy Egress Tunnel Router (PETR) device wants to
   verify who is encapsulating to it, it can check for a specific nonce
   value in the LISP-encapsulated packet.  To convey the nonce to
   admitted ITRs or PITRs, this LCAF is used in a Map-Register or Map-
   Reply locator-record.
<span class="grey">Farinacci, et al.             Experimental                     [Page 26]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-27" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   Nonce Locator Canonical Address Format:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type = 8    |     Rsvd2     |             Length            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Reserved    |                  Nonce                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              AFI = x          |         Address  ...          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Length:  length in bytes starting and including the byte after this
      Length field.
   Reserved:  must be set to zero and ignored on receipt.
   Nonce:  a nonce value returned by an ETR in a Map-Reply locator-
      record to be used by an ITR or PITR when encapsulating to the
      locator address encoded in the AFI field of this LCAF Type.  This
      nonce value is inserted in the nonce field in the LISP header
      encapsulation.
   AFI = x:  x can be any AFI value from [<a href="#ref-AFN" title=""Address Family Numbers"">AFN</a>].
   Usage: This is an experimental Type where the usage has not yet been
   defined.
<span class="h3"><a class="selflink" id="section-5.4" href="#section-5.4">5.4</a>.  Data Model Encoding</span>
   This Type allows a JSON data model to be encoded as either an EID or
   an RLOC.
   JSON Data Model Type Address Format:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type = 14   |    Rsvd2    |B|            Length             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           JSON length         | JSON binary/text encoding ... |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              AFI = x          |       Optional Address ...    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
<span class="grey">Farinacci, et al.             Experimental                     [Page 27]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-28" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   Length:  length in bytes starting and including the byte after this
      Length field.
   B bit:  indicates that the JSON field is binary encoded according to
      [<a href="#ref-JSON-BINARY">JSON-BINARY</a>] when the bit is set to 1.  Otherwise, the encoding
      is based on text encoding according to [<a href="./rfc7159" title=""The JavaScript Object Notation (JSON) Data Interchange Format"">RFC7159</a>].
   JSON length:  length in octets of the following JSON binary/text
      encoding field.
   JSON binary/text encoding:  a variable-length field that contains
      either binary or text encodings.
   AFI = x:  x can be any AFI value from [<a href="#ref-AFN" title=""Address Family Numbers"">AFN</a>].  A specific AFI has its
      own encoding of either a unicast or multicast locator address.
      All RTR/ETR entries for the same level should be combined by a
      Map-Server to avoid searching through the entire multilevel list
      of locator entries in a Map-Reply message.
   Usage: This is an experimental Type where the usage has not yet been
   defined.  An example mapping is an EID-record encoded as a
   distinguished-name "cpe-router" and an RLOC-record encoded as a JSON
   string "{ "router-address" : "1.1.1.1", "router-mask" : "8" }".
<span class="h3"><a class="selflink" id="section-5.5" href="#section-5.5">5.5</a>.  Encoding Key/Value Address Pairs</span>
   The Key/Value pair is, for example, useful for attaching attributes
   to other elements of LISP packets, such as EIDs or RLOCs.  When
   attaching attributes to EIDs or RLOCs, it's necessary to distinguish
   between the element that should be used as EID or RLOC and, hence, as
   the key for lookups and additional attributes.  This is especially
   the case when the difference cannot be determined from the Types of
   the elements, such as when two IP addresses are being used.
   Key/Value Address Pair Address Format:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type = 15   |     Rsvd2     |            Length             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              AFI = x          |       Address as Key ...      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              AFI = y          |       Address as Value ...    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
<span class="grey">Farinacci, et al.             Experimental                     [Page 28]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-29" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   Length:  length in bytes starting and including the byte after this
      Length field.
   AFI = x:  x is the "Address as Key" AFI that can have any value from
      [<a href="#ref-AFN" title=""Address Family Numbers"">AFN</a>].  A specific AFI has its own encoding of either a unicast or
      a multicast locator address.  All RTR/ETR entries for the same
      level should be combined by a Map-Server to avoid searching
      through the entire multilevel list of locator entries in a Map-
      Reply message.
   Address as Key:  AFI-encoded address that will be attached with the
      attributes encoded in "Address as Value", which follows this
      field.
   AFI = y:  y is the "Address of Value" AFI that can have any value
      from [<a href="#ref-AFN" title=""Address Family Numbers"">AFN</a>].  A specific AFI has its own encoding of either a
      unicast or a multicast locator address.  All RTR/ETR entries for
      the same level should be combined by a Map-Server to avoid
      searching through the entire multilevel list of locator entries in
      a Map-Reply message.
   Address as Value:  AFI-encoded address that will be the attribute
      address that goes along with "Address as Key" which precedes this
      field.
   Usage: This is an experimental Type where the usage has not yet been
   defined.
<span class="h3"><a class="selflink" id="section-5.6" href="#section-5.6">5.6</a>.  Multiple Data-Planes</span>
   Overlays are becoming popular in many parts of the network, which has
   created an explosion of data-plane encapsulation headers.  Since the
   LISP mapping system can hold many types of address formats, it can
   represent the encapsulation format supported by an RLOC as well.
   When an encapsulator receives a Map-Reply with an Encapsulation
   Format LCAF Type encoded in an RLOC-record, it can select an
   encapsulation format, that it can support, from any of the
   encapsulation protocols that have the bit set to 1 in this LCAF Type.
<span class="grey">Farinacci, et al.             Experimental                     [Page 29]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-30" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   Encapsulation Format Address Format:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           AFI = 16387         |     Rsvd1     |     Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type = 16   |     Rsvd2     |             Length            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |        Reserved-for-Future-Encapsulations       |U|G|N|v|V|l|L|
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              AFI = x          |          Address ...          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   Length:  length in bytes starting and including the byte after this
      Length field.
   Reserved-for-Future-Encapsulations:  must be set to zero and ignored
      on receipt.  This field will get bits allocated to future
      encapsulations, as they are created.
   U: The RLOCs listed in the AFI-encoded addresses in the next longword
      can accept Generic UDP Encapsulation (GUE) using destination UDP
      port 6080 [<a href="#ref-GUE" title=""Generic UDP Encapsulation"">GUE</a>].
   G: The RLOCs listed in the AFI-encoded addresses in the next longword
      can accept Geneve encapsulation using destination UDP port 6081
      [<a href="#ref-GENEVE" title=""Geneve: Generic Network Virtualization Encapsulation"">GENEVE</a>].
   N: The RLOCs listed in the AFI-encoded addresses in the next longword
      can accept NV-GRE (Network Virtualization - Generic Routing
      Encapsulation) using IPv4/IPv6 protocol number 47 [<a href="./rfc7637" title=""NVGRE: Network Virtualization Using Generic Routing Encapsulation"">RFC7637</a>].
   v: The RLOCs listed in the AFI-encoded addresses in the next longword
      can accept VXLAN-GPE (Generic Protocol Extension) encapsulation
      using destination UDP port 4790 [<a href="#ref-GPE-VXLAN">GPE-VXLAN</a>].
   V: The RLOCs listed in the AFI-encoded addresses in the next longword
      can accept Virtual eXtensible Local Area Network (VXLAN)
      encapsulation using destination UDP port 4789 [<a href="./rfc7348" title=""Virtual eXtensible Local Area Network (VXLAN): A Framework for Overlaying Virtualized Layer 2 Networks over Layer 3 Networks"">RFC7348</a>].
   l: The RLOCs listed in the AFI-encoded addresses in the next longword
      can accept Layer 2 LISP encapsulation using destination UDP port
      8472 [<a href="#ref-LISP-L2" title=""Layer 2 (L2) LISP Encapsulation Format"">LISP-L2</a>].
   L: The RLOCs listed in the AFI-encoded addresses in the next longword
      can accept Layer 3 LISP encapsulation using destination UDP port
      4341 [<a href="./rfc6830" title=""The Locator/ID Separation Protocol (LISP)"">RFC6830</a>].
<span class="grey">Farinacci, et al.             Experimental                     [Page 30]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-31" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   Usage: This encoding can be used in RLOC-records in Map-Request, Map-
   Reply, Map-Register, and Map-Notify messages.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>.  Security Considerations</span>
   This document is classified as Experimental.  The LCAF encodings
   defined in this document are intended to be used with their
   corresponding use cases and in self-contained environments.  Users
   should carefully consider how the [<a href="#ref-LISP-SEC" title=""LISP-Security (LISP-SEC)"">LISP-SEC</a>] threat model applies to
   their particular use case.
   The use of the Geo-Coordinates LCAF Type may raise physical privacy
   issues.  Care should be taken when configuring the mapping system to
   use specific policy parameters so geolocation information is not
   returned gratuitously.  It is recommended that any documents that
   specify the use of the Geo-Coordinates LCAF Type should consider the
   applicability of <a href="./rfc6280">RFC 6280</a> (<a href="https://www.rfc-editor.org/bcp/bcp160">BCP 160</a>) [<a href="./rfc6280" title=""An Architecture for Location and Location Privacy in Internet Applications"">RFC6280</a>] for location-based
   privacy protection.
   Additional privacy concerns have arisen since publication of <a href="https://www.rfc-editor.org/bcp/bcp160">BCP 160</a>,
   and future work on LISP should examine potential threats beyond <a href="https://www.rfc-editor.org/bcp/bcp160">BCP</a>
   <a href="https://www.rfc-editor.org/bcp/bcp160">160</a> and address improving privacy and security for LISP deployments.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>.  IANA Considerations</span>
   This document defines a canonical address format encoding used in
   LISP control messages and in the encoding of lookup keys for the LISP
   Mapping Database System.  Such an address format is based on a fixed
   AFI (16387) and a LISP LCAF Type field.
   The LISP LCAF Type field is an 8-bit field specific to the LISP
   Canonical Address Format encodings.  IANA has created a new registry
   (as outlined in [<a href="./rfc5226" title="">RFC5226</a>]) titled "LISP Canonical Address Format
   (LCAF) Types".  Initial values for the "LISP Canonical Address Format
   (LCAF) Types" registry are given below.  Future assignments are to be
   made using the Specification Required policy [<a href="./rfc5226" title="">RFC5226</a>].  Assignments
   consist of a LISP LCAF Type Name and its associated value:
<span class="grey">Farinacci, et al.             Experimental                     [Page 31]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-32" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
              +-------+------------------------+-----------+
              | Value | LISP LCAF Type Name    | Reference |
              +-------+------------------------+-----------+
              | 0     | Null Body              | <a href="#section-3">Section 3</a> |
              | 1     | AFI List               | <a href="#section-3">Section 3</a> |
              | 2     | Instance ID            | <a href="#section-3">Section 3</a> |
              | 3     | AS Number              | <a href="#section-3">Section 3</a> |
              | 5     | Geo-Coordinates        | <a href="#section-3">Section 3</a> |
              | 7     | NAT-Traversal          | <a href="#section-3">Section 3</a> |
              | 9     | Multicast Info         | <a href="#section-3">Section 3</a> |
              | 10    | Explicit Locator Path  | <a href="#section-3">Section 3</a> |
              | 11    | Security Key           | <a href="#section-3">Section 3</a> |
              | 12    | Source/Dest Key        | <a href="#section-3">Section 3</a> |
              | 13    | Replication List Entry | <a href="#section-3">Section 3</a> |
              +-------+------------------------+-----------+
                      Table 1: Initial Values in the
           "LISP Canonical Address Format (LCAF) Types" Registry
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>.  References</span>
<span class="h3"><a class="selflink" id="section-8.1" href="#section-8.1">8.1</a>.  Normative References</span>
   [<a id="ref-RFC1035">RFC1035</a>]  Mockapetris, P., "Domain names - implementation and
              specification", STD 13, <a href="./rfc1035">RFC 1035</a>, DOI 10.17487/RFC1035,
              November 1987, <<a href="http://www.rfc-editor.org/info/rfc1035">http://www.rfc-editor.org/info/rfc1035</a>>.
   [<a id="ref-RFC1918">RFC1918</a>]  Rekhter, Y., Moskowitz, B., Karrenberg, D., de Groot, G.,
              and E. Lear, "Address Allocation for Private Internets",
              <a href="https://www.rfc-editor.org/bcp/bcp5">BCP 5</a>, <a href="./rfc1918">RFC 1918</a>, DOI 10.17487/RFC1918, February 1996,
              <<a href="http://www.rfc-editor.org/info/rfc1918">http://www.rfc-editor.org/info/rfc1918</a>>.
   [<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>,
              DOI 10.17487/RFC2119, March 1997,
              <<a href="http://www.rfc-editor.org/info/rfc2119">http://www.rfc-editor.org/info/rfc2119</a>>.
   [<a id="ref-RFC3232">RFC3232</a>]  Reynolds, J., Ed., "Assigned Numbers: <a href="./rfc1700">RFC 1700</a> is Replaced
              by an On-line Database", <a href="./rfc3232">RFC 3232</a>, DOI 10.17487/RFC3232,
              January 2002, <<a href="http://www.rfc-editor.org/info/rfc3232">http://www.rfc-editor.org/info/rfc3232</a>>.
   [<a id="ref-RFC3986">RFC3986</a>]  Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform
              Resource Identifier (URI): Generic Syntax", STD 66,
              <a href="./rfc3986">RFC 3986</a>, DOI 10.17487/RFC3986, January 2005,
              <<a href="http://www.rfc-editor.org/info/rfc3986">http://www.rfc-editor.org/info/rfc3986</a>>.
<span class="grey">Farinacci, et al.             Experimental                     [Page 32]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-33" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   [<a id="ref-RFC5226">RFC5226</a>]  Narten, T. and H. Alvestrand, "Guidelines for Writing an
              IANA Considerations Section in RFCs", <a href="https://www.rfc-editor.org/bcp/bcp26">BCP 26</a>, <a href="./rfc5226">RFC 5226</a>,
              DOI 10.17487/RFC5226, May 2008,
              <<a href="http://www.rfc-editor.org/info/rfc5226">http://www.rfc-editor.org/info/rfc5226</a>>.
   [<a id="ref-RFC6280">RFC6280</a>]  Barnes, R., Lepinski, M., Cooper, A., Morris, J.,
              Tschofenig, H., and H. Schulzrinne, "An Architecture for
              Location and Location Privacy in Internet Applications",
              <a href="https://www.rfc-editor.org/bcp/bcp160">BCP 160</a>, <a href="./rfc6280">RFC 6280</a>, DOI 10.17487/RFC6280, July 2011,
              <<a href="http://www.rfc-editor.org/info/rfc6280">http://www.rfc-editor.org/info/rfc6280</a>>.
   [<a id="ref-RFC6830">RFC6830</a>]  Farinacci, D., Fuller, V., Meyer, D., and D. Lewis, "The
              Locator/ID Separation Protocol (LISP)", <a href="./rfc6830">RFC 6830</a>,
              DOI 10.17487/RFC6830, January 2013,
              <<a href="http://www.rfc-editor.org/info/rfc6830">http://www.rfc-editor.org/info/rfc6830</a>>.
   [<a id="ref-RFC6836">RFC6836</a>]  Fuller, V., Farinacci, D., Meyer, D., and D. Lewis,
              "Locator/ID Separation Protocol Alternative Logical
              Topology (LISP+ALT)", <a href="./rfc6836">RFC 6836</a>, DOI 10.17487/RFC6836,
              January 2013, <<a href="http://www.rfc-editor.org/info/rfc6836">http://www.rfc-editor.org/info/rfc6836</a>>.
   [<a id="ref-RFC7159">RFC7159</a>]  Bray, T., Ed., "The JavaScript Object Notation (JSON) Data
              Interchange Format", <a href="./rfc7159">RFC 7159</a>, DOI 10.17487/RFC7159, March
              2014, <<a href="http://www.rfc-editor.org/info/rfc7159">http://www.rfc-editor.org/info/rfc7159</a>>.
   [<a id="ref-RFC7348">RFC7348</a>]  Mahalingam, M., Dutt, D., Duda, K., Agarwal, P., Kreeger,
              L., Sridhar, T., Bursell, M., and C. Wright, "Virtual
              eXtensible Local Area Network (VXLAN): A Framework for
              Overlaying Virtualized Layer 2 Networks over Layer 3
              Networks", <a href="./rfc7348">RFC 7348</a>, DOI 10.17487/RFC7348, August 2014,
              <<a href="http://www.rfc-editor.org/info/rfc7348">http://www.rfc-editor.org/info/rfc7348</a>>.
   [<a id="ref-RFC7637">RFC7637</a>]  Garg, P., Ed. and Y. Wang, Ed., "NVGRE: Network
              Virtualization Using Generic Routing Encapsulation",
              <a href="./rfc7637">RFC 7637</a>, DOI 10.17487/RFC7637, September 2015,
              <<a href="http://www.rfc-editor.org/info/rfc7637">http://www.rfc-editor.org/info/rfc7637</a>>.
<span class="h3"><a class="selflink" id="section-8.2" href="#section-8.2">8.2</a>.  Informative References</span>
   [<a id="ref-AFN">AFN</a>]      IANA, "Address Family Numbers",
              <<a href="http://www.iana.org/assignments/address-family-numbers/">http://www.iana.org/assignments/address-family-numbers/</a>>.
   [<a id="ref-EID-MOBILITY">EID-MOBILITY</a>]
              Portoles-Comeras, M., Ashtaputre, V., Moreno, V., Maino,
              F., and D. Farinacci, "LISP L2/L3 EID Mobility Using a
              Unified Control Plane", Work in Progress,
              <a href="./draft-portoles-lisp-eid-mobility-01">draft-portoles-lisp-eid-mobility-01</a>, October 2016.
<span class="grey">Farinacci, et al.             Experimental                     [Page 33]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-34" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   [<a id="ref-GENEVE">GENEVE</a>]   Gross, J., Ganga, I., and T. Sridhar, "Geneve: Generic
              Network Virtualization Encapsulation", Work in Progress,
              <a href="./draft-ietf-nvo3-geneve-03">draft-ietf-nvo3-geneve-03</a>, September 2016.
   [<a id="ref-GPE-VXLAN">GPE-VXLAN</a>]
              Maino, F., Kreeger, L., and U. Elzur, "Generic Protocol
              Extension for VXLAN", Work in Progress,
              <a href="./draft-ietf-nvo3-vxlan-gpe-03">draft-ietf-nvo3-vxlan-gpe-03</a>, October 2016.
   [<a id="ref-GUE">GUE</a>]      Herbert, T., Yong, L., and O. Zia, "Generic UDP
              Encapsulation", Work in Progress, <a href="./draft-ietf-nvo3-gue-05">draft-ietf-nvo3-gue-05</a>,
              October 2016.
   [<a id="ref-JSON-BINARY">JSON-BINARY</a>]
              "Universal Binary JSON Specification",
              <<a href="http://ubjson.org">http://ubjson.org</a>>.
   [<a id="ref-LISP-DDT">LISP-DDT</a>] Fuller, V., Lewis, D., Ermagan, V., Jain, A., and A.
              Smirnov, "LISP Delegated Database Tree", Work in
              Progress, <a href="./draft-ietf-lisp-ddt-09">draft-ietf-lisp-ddt-09</a>, January 2017.
   [<a id="ref-LISP-L2">LISP-L2</a>]  Smith, M., Dutt, D., Farinacci, D., and F. Maino, "Layer 2
              (L2) LISP Encapsulation Format", Work in Progress,
              <a href="./draft-smith-lisp-layer2-03">draft-smith-lisp-layer2-03</a>, September 2013.
   [<a id="ref-LISP-RE">LISP-RE</a>]  Coras, F., Cabellos-Aparicio, A., Domingo-Pascual, J.,
              Maino, F., and D. Farinacci, "LISP Replication
              Engineering", Work in Progress,
              <a href="./draft-coras-lisp-re-08">draft-coras-lisp-re-08</a>, November 2015.
   [<a id="ref-LISP-SEC">LISP-SEC</a>] Maino, F., Ermagan, V., Cabellos, A., and D. Saucez,
              "LISP-Security (LISP-SEC)", Work in Progress,
              <a href="./draft-ietf-lisp-sec-12">draft-ietf-lisp-sec-12</a>, November 2016.
   [<a id="ref-LISP-TE">LISP-TE</a>]  Farinacci, D., Kowal, M., and P. Lahiri, "LISP Traffic
              Engineering Use-Cases", Work in Progress,
              <a href="./draft-farinacci-lisp-te-11">draft-farinacci-lisp-te-11</a>, September 2016.
   [<a id="ref-NAT-LISP">NAT-LISP</a>] Ermagan, V., Farinacci, D., Lewis, D., Skriver, J., Maino,
              F., and C. White, "NAT traversal for LISP", Work in
              Progress, <a href="./draft-ermagan-lisp-nat-traversal-11">draft-ermagan-lisp-nat-traversal-11</a>, August
              2016.
<span class="grey">Farinacci, et al.             Experimental                     [Page 34]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-35" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
   [<a id="ref-RFC8061">RFC8061</a>]  Farinacci, D. and B. Weis, "Locator/ID Separation Protocol
              (LISP) Data-Plane Confidentiality", <a href="./rfc8061">RFC 8061</a>,
              DOI 10.17487/RFC8061, February 2017,
              <<a href="http://www.rfc-editor.org/info/rfc8061">http://www.rfc-editor.org/info/rfc8061</a>>.
   [<a id="ref-WGS-84">WGS-84</a>]   National Imagery and Mapping Agency, "Department of
              Defense World Geodetic System 1984", NIMA TR8350.2,
              January 2000, <<a href="http://earth-info.nga.mil/GandG/publications/tr8350.2/wgs84fin.pdf">http://earth-info.nga.mil/GandG/</a>
              <a href="http://earth-info.nga.mil/GandG/publications/tr8350.2/wgs84fin.pdf">publications/tr8350.2/wgs84fin.pdf</a>>.
Acknowledgments
   The authors would like to thank Vince Fuller, Gregg Schudel, Jesper
   Skriver, Luigi Iannone, Isidor Kouvelas, and Sander Steffann for
   their technical and editorial commentary.
   The authors would like to thank Victor Moreno for discussions that
   led to the definition of the Multicast Info LCAF Type.
   The authors would like to thank Parantap Lahiri and Michael Kowal for
   discussions that led to the definition of the Explicit Locator Path
   (ELP) LCAF Type.
   The authors would like to thank Fabio Maino and Vina Ermagan for
   discussions that led to the definition of the Security Key LCAF Type.
   The authors would like to thank Albert Cabellos-Aparicio and Florin
   Coras for discussions that led to the definition of the Replication
   List Entry LCAF Type.
   Thanks goes to Michiel Blokzijl and Alberto Rodriguez-Natal for
   suggesting new LCAF Types.
   Thanks also goes to Terry Manderson for assistance obtaining a LISP
   AFI value from IANA.
   And finally, the authors thank Stephen Farrell (Security Area
   Director) and Deborah Brungard (Routing Area Director) for their
   suggested text to get the document through IESG review.
<span class="grey">Farinacci, et al.             Experimental                     [Page 35]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-36" ></span>
<span class="grey"><a href="./rfc8060">RFC 8060</a>          LISP Canonical Address Format (LCAF)     February 2017</span>
Authors' Addresses
   Dino Farinacci
   lispers.net
   San Jose, CA
   United States of America
   Email: farinacci@gmail.com
   Dave Meyer
   Brocade
   San Jose, CA
   United States of America
   Email: dmm@1-4-5.net
   Job Snijders
   NTT Communications
   Theodorus Majofskistraat 100
   Amsterdam  1065 SZ
   The Netherlands
   Email: job@ntt.net
Farinacci, et al.             Experimental                     [Page 36]
</pre>
 
     |