OPsec Working GroupInternet Engineering Task Force (IETF) M. BehringerInternet-DraftRequest for Comments: 7404 E. VynckeIntended status:Category: Informational CiscoExpires: March 29, 2015 September 25,ISSN: 2070-1721 November 2014 Using Only Link-Local Addressing Inside an IPv6 Networkdraft-ietf-opsec-lla-only-11Abstract In an IPv6networknetwork, it is possible to use only link-local addresses on infrastructure links between routers. This document discusses the advantages and disadvantages of this approach tohelpfacilitate the decision process for a given network. Status of This Memo ThisInternet-Draftdocument issubmitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documentsnot an Internet Standards Track specification; it is published for informational purposes. This document is a product of the Internet Engineering Task Force (IETF).Note that other groups may also distribute working documents as Internet-Drafts. The listIt represents the consensus ofcurrent Internet- Drafts is at http://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents validthe 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 amaximumcandidate for any level of Internet Standard; see Section 2 of RFC 5741. Information about the current status ofsix monthsthis document, any errata, and how to provide feedback on it may beupdated, replaced, or obsoleted by other documentsobtained atany time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on March 29, 2015.http://www.rfc-editor.org/info/rfc7404. Copyright Notice Copyright (c) 2014 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) 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. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 2. Using Link-Local Addressing on Infrastructure Links . . . . . 2 2.1. The Approach . . . . . . . . . . . . . . . . . . . . . . 3 2.2. Advantages . . . . . . . . . . . . . . . . . . . . . . . 4 2.3. Caveats . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.4. Internet Exchange Points . . . . . . . . . . . . . . . . 6 2.5. Summary . . . . . . . . . . . . . . . . . . . . . . . . . 7 3. Security Considerations . . . . . . . . . . . . . . . . . . .7 4. IANA Considerations . . . . . . . . . . . . . . . . . . . . .85. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 8 6.4. Informative References . . . . . . . . . . . . . . . . . . . 8Authors' Addresses . . . . .Appendix A. Acknowledgments . . . . . . . . . . . . . . . . . .1011 1. Introduction An infrastructure link between a set of routers typically does not require global or unique local addresses [RFC4193]. Using only link- local addressing on such links has a number ofadvantages. Foradvantages; for example,thatrouting tables do not need to carry linkaddressing,addressing and can therefore be significantly smaller. This helps to decrease failover times in certain routing convergence events. An interface of a router is also not reachable beyond the link boundaries, therefore reducing the attack surface. This document discusses the advantages and caveats of this approach. Note that sometraditionally usedtraditional techniques used to operate anetworknetwork, such as pinginginterfaces,interfaces or seeing interface information in atraceroutetraceroute, do not work with this approach. Details are discussed below. During WG and IETF lastcallcall, the technical correctness of the documenthas been reviewed, howeverwas reviewed; however, debate exists as to whether to recommend this technique. The deployment of this technique is appropriate where it is found to be necessary. 2. Using Link-Local Addressing on Infrastructure Links This document discusses the approach of using only link-local addresses(LLA)(LLAs) on all router interfaces on infrastructure links. Routers don't typically need to receive packets from hosts or nodes outside the network. For a network operator, there may be reasons to use addresses that are greater than link-local scopeaddresseson infrastructure interfaces for certain operational tasks, such as pings to an interface or traceroutes across the network. This document discusses such cases and proposes alternative procedures. 2.1. The Approach In thisapproachapproach, neither globally routed IPv6 addresses nor unique local addresses are configured on infrastructure links. In the absence of specific global or unique local address definitions, the default behavior of routers is to use link-localaddressesaddresses, notably for routing protocols. The sending of ICMPv6 [RFC4443] error messages(packet-too-big, time- exceeded...)("packet-too-big", "time-exceeded", etc.) is required for routers. Therefore, another interface must be configured with an IPv6 addresswiththat has a greater scope than link-local. This address will usually be a loopback interface with a global scope address belonging to the operator and part of an announced prefix (with a suitable prefix length) to avoid being dropped by other routers implementing ingress filtering [RFC3704]. This is implementation dependent. For the remainder of thisdocumentdocument, we will refer to this interface as a "loopback interface". [RFC6724] recommends thatgreater than link-local scopeIPv6 addresses that are greater than link- local scope be used as the source IPv6 address for all generated ICMPv6 messages sent to a non-link-local address, with the exception of ICMPv6 redirectmessages, asmessages (as defined in[RFC4861] section 4.5.Section 4.5 of [RFC4861]). The effect on specific traffic types is as follows: o Most control planeprotocols, suchprotocols (such as BGP [RFC4271],ISISIS-IS [IS-IS], OSPFv3 [RFC5340],RIPngRouting Information Protocol Next Generation (RIPng) [RFC2080], and PIM[RFC4609][RFC4609]) work by default or can be configured to work with link-local addresses. Exceptions are explained in the caveats section (Section 2.3). o Management planetraffic, suchtraffic (such asSSHSecure SHell (SSH) Protocol [RFC4251], Telnet [RFC0495],SNMPSimple Network Management Protocol (SNMP) [RFC1157], and ICMPv6echo request [RFC4443],Echo Request [RFC4443]) can use the address of the router loopback interface as the destination address. Router management can also be done over out-of-band channels. o ICMP error messages are usually sourced from a loopback interface with a scope that is greater thanlink-local address scope. [RFC4861] sectionlink-local. Section 4.5 of [RFC4861] explains one exception: ICMP redirect messages can also be sourced from a link-local address. o Data plane traffic is forwarded independently of the link address type. o Neighbor discovery (neighbor solicitation and neighbor advertisement) is done by using link-local unicast and multicast addresses.ThereforeTherefore, neighbor discovery is not affected.We thereforeThus, we conclude that it is possible to construct a working network in this way. 2.2. Advantages The following list of advantages is in no particular order. Smaller routing tables: Since the routing protocol only needs to carry one global address (the loopback interface) per router, it is smaller than the traditional approach where every infrastructure link address is carried in the routing protocol. This reduces memoryconsumption,consumption and increases the convergence speed in some routing failover cases. Because the Forwarding Information Base to be downloaded to line cards issmallersmaller, and there are fewer prefixes in the Routing Information Base, the routing algorithm is accelerated.Note:Note that smaller routing tables can also be achieved by putting interfaces in passive mode for the Interior Gateway Protocol (IGP). Simpler address management: Only loopback interface addresses need to be considered in an addressing plan. This also allows for easier renumbering. Lower configuration complexity:link-localLink-local addresses require no specific configuration, thereby lowering the complexity and size of router configurations. This also reduces the likelihood of configuration mistakes. Simpler DNS: Less routable address space in use also means less reverse and forward mapping DNS resource records to maintain. Of course, if the operator selects not to enter any global interface addresses in the DNS anyway, then this is less of an advantage. Reduced attack surface: Every routable address on a router constitutes a potential attackpoint:point; a remote attacker can send traffic to that address, forexampleexample, a TCP SYN flood (see [RFC4987]). If a network only uses the addresses of the router loopback interface(s), only those addresses need to be protected from outside the network. This may ease protection measures, such asinfrastructure access control listsInfrastructure Access Control Lists (iACL). Without using link-local addresses, it is still possible to achieve the simple iACL if the network addressing scheme is set up such that all link and loopback interfaces have addresses that are greater than link-localaddressesand are aggregatable, and if the infrastructure access list covers that entire aggregated space. See also [RFC6752] for further discussion on this topic. [RFC6860] describes another approach to hide addressing on infrastructure links for OSPFv2 andOSPFv3,OSPFv3 by modifying the existing protocols. This document does not modify anyprotocol, howeverprotocol; however, it works only for IPv6. 2.3. Caveats The caveats listed in this section are in no particular order. Interface ping:ifIf an interface doesn't have a routable address, it can only be pinged from a node on the same link. Therefore, it is not possible to ping a specific link interface remotely. A possible workaround is to ping the loopback address of a router instead. In most cases today, it is not possible to see which link the packet was received on; however, [RFC5837] suggests including the interface identifier of the interface a packet was received on in the ICMPv6response; itresponse. It must be noted that there are few implementations of this ICMPv6 extension. With thisapproachapproach, it would be possible to ping a router on the addresses of loopback interfaces, yet see which interface the packet was received on. To check liveliness of a specific interface, it may be necessary to use other methods, such as connecting to the router via SSH and checking locally or using SNMP. Traceroute:similarSimilar to the ping case, a reply to a traceroute packet would come from the address of a loopback interface, and current implementations do not display the specific interface the packets came in on.Also here,Again, [RFC5837] provides a solution. As in the ping case above, it is not possible to traceroute to a particular interface if it only has a link-local address. Conversely, this approach may make network topology discovery from outside the networksimpler; becausesimpler: instead of responding with multiple different interface IP addresses, which have to be correlated by the outsider, a router will always respond with the same loopback address. If reverse DNS mapping is used, the mapping is trivial in either case. Hardware dependency: LLAs have usually beenEUI-64 based,based on 64-bit Extended Unique Identifiers (EUI-64); hence, they change when theMACMessage Authentication Code (MAC) address is changed. This could pose a problem in a case where the routing neighbor must be configured explicitly(e.g.(e.g., BGP) and a line card needs to be physicallyreplacedreplaced, hence changing the EUI-64 LLA and breaking the routing neighborship. LLAs can be staticallyconfiguredconfigured, such as fe80::1 andfe80::2fe80::2, which can be used to configure any required static routing neighborship. However, this static LLA configuration may be more complex to operate than statically configured addresses that are greater than link-localscope addresses,scope. This is because LLAs are inherentlyambiguous forambiguous. For a multi-linknodenode, such as arouter;router, to deal with the ambiguity, the link zone index must also be considered explicitly, e.g., using the extended textual notation described in[RFC4007][RFC4007], as in thisexample:example, 'BGP neighbor fe80::1%eth0 is down'. Network Management System (NMS) toolkits:ifIf there is any NMS tool that makes use of an interface IP address of a router to carry out any of its NMS functions, then it would no longer work if the interface does not have a routable address. A possible workaround for such tools is to use the routable address of the router loopback interface instead. Most vendor implementations allow the specification of loopback interface addresses for SYSLOG,IPfix,IPFIX, and SNMP. Theprotocol LLDPLink Layer Discovery Protocol (LLDP) (IEEE 802.1AB-2009) runs directly over Ethernet and does not require any IPv6 address, so dynamic network discovery is not hindered when using LLDP. But, network discovery based onNDPNeighbor Discovery Protocol (NDP) cache content will only display the link-local addresses and not the addresses of the loopback interfaces; therefore, network discovery should rather be based on the Route Information Base to detect adjacent nodes. MPLS andRSVP-TERSVP-Traffic Engineering (RSVP-TE) [RFC3209] allowestablishingthe establishment of an MPLSLSPLabel Switched Path (LSP) on a path that is explicitly identified by a strict sequence of IP prefixes or addresses (each pertaining to an interface or a router on the path). This is commonly used for FastRe-RouteReroute (FRR). However, if an interface uses only a link-local address, then such LSPs cannot be established. At the time of writing this document, there is no workaround for this case; therefore, where RSVP-TE is being used, the approach described in this document does not work. 2.4. Internet Exchange Points Internet Exchange Points (IXPs) have a special importance in the globalInternet,Internet because they connect a high number of networks in a singlelocation,location and because a significant part of Internet traffic passes through at least one IXP. An IXPrequires thereforerequires, therefore, a very high level of security. The address space used on an IXP is generally known, as it is registered in the global Internet Route Registry, or it is easily discoverable through traceroute. The IXP prefix is especiallycritical,critical because practically all addresses on this prefix are critical systems in the Internet. Apart from general device security guidelines, there aregenerallybasically two additional ways to raise security (see also[I-D.ietf-opsec-bgp-security]):[BGP-OPSEC]): 1. Not to announce the prefix in question, and 2. To drop all traffic from remote locations destined to the IXP prefixes. Not announcing the prefix of the IXP would frequently result in traceroute and similar packets (required forPMTUD) to bePath MTU Discovery (PMTUD)) being dropped due to unicast Reverse Path Forwarding (uRPF) checks. Given that PMTUD is critical, this is generally not acceptable. Dropping all external traffic to the IXP prefix is hard toimplement,implement because if only one service provider connected to an IXP does not filter correctly, then all IXP routers are reachable from at least that service provider network. As the prefix used in the IXP is usually longer than a /48, it is frequently dropped by route filters on the Internet having the same net effect as not announcing the prefix. Using link-local addresses on the IXP may help in this scenario. In this case, the generated ICMPv6 packets would be generated from loopback interfaces or from any other interface with a globally routable address without any configuration.HoweverHowever, in this case, each service provider would usehistheir own address space, making a generic attack against all devices on the IXP harder. All of an IXP's loopback interface addresses can be discovered by a potential attacker with a simple traceroute; a generic attackis thereforeis, therefore, still possible, but it would require more work. In somecasescases, service providers carry the IXP addresses in their IGP for certain forms of traffic engineering across multiple exit points. Link-local addresses cannot be used for this purpose; in this case, the service provider would have to employ other methods of traffic engineering. If an Internet Exchange Point is using a global prefix registered for this purpose, a traceroute will indicate whether the trace crosses an IXP rather than a private interconnect. Iflink locallink-local addressing is used instead, a traceroute will not provide this distinction. 2.5. SummaryUsing exclusivelyExclusively using link-local addressing on infrastructure links has a number of advantages and disadvantages, both of which arebothdescribed in detail in this document. A network operator can use this document to evaluate whether or not using link-local addressing on infrastructure links is a good idea in the context of his/hernetwork or not.network. This document makes no particular recommendation either infavourfavor or against. 3. Security Considerations Using only LLAs on infrastructure links reduces the attack surface of arouter: loopbackrouter. Loopback interfaces with routed addresses are still reachable and must be secured, but infrastructure links can only be attacked from the local link. This simplifies security of control and management planes. The approach does not impact the security of the data plane. The link-local-only approach does not address control plane [RFC6192] attacks generated by data plane packets (such as hop-limit expiration or packets containing a hop-by-hop extension header). For additional security considerations, as previously stated, see also [RFC5837] and[I-D.ietf-opsec-bgp-security].[BGP-OPSEC]. 4.IANA Considerations There are no IANA considerations or implications that arise from this document. 6.Informative References[I-D.ietf-opsec-bgp-security][BGP-OPSEC] Durand, J., Pepelnjak, I., and G. Doering, "BGP operations and security",draft-ietf-opsec-bgp-security-05 (workWork inprogress),Progress, draft-ietf-opsec-bgp- security-05, August 2014. [IS-IS]ISO/IEC 10589, ,International Organization for Standardization, "Intermediate System to Intermediate SystemIntra-Domain Routing Exchange Protocolintra-domain routeing information exchange protocol for use inConjunctionconjunction with theProtocolprotocol forProvidingproviding theConnectionless-mode Network Serviceconnectionless-mode network service (ISO 8473)",June 1992.ISO Standard 10589, 2002. [RFC0495] McKenzie, A., "Telnet Protocol specifications", RFC 495, May1973.1973, <http://www.rfc-editor.org/info/rfc0495>. [RFC1157] Case, J., Fedor, M., Schoffstall, M., and J. Davin, "Simple Network Management Protocol (SNMP)", STD 15, RFC 1157, May1990.1990, <http://www.rfc-editor.org/info/rfc1157>. [RFC2080] Malkin, G. and R. Minnear, "RIPng for IPv6", RFC 2080, January1997.1997, <http://www.rfc-editor.org/info/rfc2080>. [RFC3209] Awduche, D., Berger, L., Gan, D., Li, T., Srinivasan, V., and G. Swallow, "RSVP-TE: Extensions to RSVP for LSP Tunnels", RFC 3209, December2001.2001, <http://www.rfc-editor.org/info/rfc3209>. [RFC3704] Baker, F. and P. Savola, "Ingress Filtering for Multihomed Networks", BCP 84, RFC 3704, March2004.2004, <http://www.rfc-editor.org/info/rfc3704>. [RFC4007] Deering, S., Haberman, B., Jinmei, T., Nordmark, E., and B. Zill, "IPv6 Scoped Address Architecture", RFC 4007, March2005.2005, <http://www.rfc-editor.org/info/rfc4007>. [RFC4193] Hinden, R. and B. Haberman, "Unique Local IPv6 Unicast Addresses", RFC 4193, October2005.2005, <http://www.rfc-editor.org/info/rfc4193>. [RFC4251] Ylonen, T. and C. Lonvick, "The Secure Shell (SSH) Protocol Architecture", RFC 4251, January2006.2006, <http://www.rfc-editor.org/info/rfc4251>. [RFC4271] Rekhter, Y., Li, T., and S. Hares, "A Border Gateway Protocol 4 (BGP-4)", RFC 4271, January2006.2006, <http://www.rfc-editor.org/info/rfc4271>. [RFC4443] Conta, A., Deering, S., and M. Gupta, "Internet Control Message Protocol (ICMPv6) for the Internet Protocol Version 6 (IPv6) Specification", RFC 4443, March2006.2006, <http://www.rfc-editor.org/info/rfc4443>. [RFC4609] Savola, P., Lehtonen, R., and D. Meyer, "Protocol Independent Multicast - Sparse Mode (PIM-SM) Multicast Routing Security Issues and Enhancements", RFC 4609, October2006.2006, <http://www.rfc-editor.org/info/rfc4609>. [RFC4861] Narten, T., Nordmark, E., Simpson, W., and H. Soliman, "Neighbor Discovery for IP version 6 (IPv6)", RFC 4861, September2007.2007, <http://rfc-editor.org/info/rfc4861>. [RFC4987] Eddy, W., "TCP SYN Flooding Attacks and Common Mitigations", RFC 4987, August2007.2007, <http://www.rfc-editor.org/info/rfc4987>. [RFC5340] Coltun, R., Ferguson, D., Moy, J., and A. Lindem, "OSPF for IPv6", RFC 5340, July2008.2008, <http://www.rfc-editor.org/info/rfc5340>. [RFC5837] Atlas, A., Bonica, R., Pignataro, C., Shen, N., and JR. Rivers, "Extending ICMP for Interface and Next-Hop Identification", RFC 5837, April2010.2010, <http://www.rfc-editor.org/info/rfc5837>. [RFC6192] Dugal, D., Pignataro, C., and R. Dunn, "Protecting the Router Control Plane", RFC 6192, March2011.2011, <http://www.rfc-editor.org/info/rfc6192>. [RFC6724] Thaler, D., Draves, R., Matsumoto, A., and T. Chown, "Default Address Selection for Internet Protocol Version 6 (IPv6)", RFC 6724, September2012.2012, <http://www.rfc-editor.org/info/rfc6724>. [RFC6752] Kirkham, A., "Issues with Private IP Addressing in the Internet", RFC 6752, September2012.2012, <http://www.rfc-editor.org/info/rfc6752>. [RFC6860] Yang, Y., Retana, A., and A. Roy, "Hiding Transit-Only Networks in OSPF", RFC 6860, January2013.2013, <http://www.rfc-editor.org/info/rfc6860>. Appendix A. Acknowledgments The authors would like to thank Salman Asadullah, Brian Carpenter, Bill Cerveny, Benoit Claise, Rama Darbha, Simon Eng, Wes George, Fernando Gont, Jen Linkova, Harald Michl, Janos Mohacsi, Ivan Pepelnjak, Alvaro Retana, Jinmei Tatuya, and Peter Yee for their useful comments about this work. Authors' Addresses Michael Behringer Cisco Building D, 45 Allee des Ormes Mougins 06250 FranceEmail:EMail: mbehring@cisco.com Eric Vyncke Cisco De Kleetlaan, 6A Diegem 1831 BelgiumEmail:EMail: evyncke@cisco.com